修改
This commit is contained in:
parent
2594762cb3
commit
dfb9ae926a
@ -101,12 +101,12 @@ export const constantRoutes = [
|
||||
path: '*', // 匹配未定义的路由
|
||||
redirect: '/dashboard', // 重定向
|
||||
hidden: true
|
||||
},
|
||||
}/* ,
|
||||
{
|
||||
path: '*', // 匹配未定义的路由
|
||||
redirect: '/404', // 重定向
|
||||
hidden: true
|
||||
}
|
||||
} */
|
||||
// tableRouter
|
||||
// {
|
||||
// path: '/documentation',
|
||||
|
@ -74,7 +74,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />-->
|
||||
<el-dialog title="发布公告" :visible.sync="dialogFormVisible">
|
||||
<el-dialog :title="dialogTitle" :visible.sync="dialogFormVisible">
|
||||
<el-form ref="form" :rules="rules" :model="form" label-position="left" label-width="80px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="公告标题" prop="title">
|
||||
<el-input v-model="form.title" />
|
||||
@ -152,6 +152,7 @@ export default {
|
||||
},
|
||||
dialogFormVisible: false,
|
||||
dialogStatus: '',
|
||||
dialogTitle: '发布公告',
|
||||
listLoading: true,
|
||||
anncList: [],
|
||||
visibleAddannouncement: false,
|
||||
@ -182,8 +183,15 @@ export default {
|
||||
methods: {
|
||||
handleUpdate(row) {
|
||||
console.log(row)
|
||||
this.form = row
|
||||
this.form.title = row.title
|
||||
this.form.version = row.version
|
||||
this.form.model = row.model
|
||||
this.form.type = row.type
|
||||
this.form.content = row.content
|
||||
this.form.is_effect = row.is_effect
|
||||
|
||||
this.dialogStatus = 'update'
|
||||
this.dialogTitle = '修改公告'
|
||||
this.dialogFormVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs['form'].clearValidate()
|
||||
@ -199,6 +207,7 @@ export default {
|
||||
handleCreate() {
|
||||
this.resetTemp()
|
||||
this.dialogStatus = 'create'
|
||||
this.dialogTitle = '发布公告'
|
||||
this.dialogFormVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs['form'].clearValidate()
|
||||
|
@ -48,7 +48,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />-->
|
||||
<el-dialog title="新增" :visible.sync="dialogFormVisible">
|
||||
<el-dialog :title="dialogTitle" :visible.sync="dialogFormVisible">
|
||||
<el-form ref="form" :rules="rules" :model="form" label-position="left" label-width="90px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="Version" prop="version">
|
||||
<el-input v-model="form.version" />
|
||||
@ -102,6 +102,7 @@ export default {
|
||||
},
|
||||
dialogFormVisible: false,
|
||||
dialogStatus: '',
|
||||
dialogTitle: '新增',
|
||||
listLoading: true,
|
||||
auditList: [],
|
||||
rules: {
|
||||
@ -127,8 +128,11 @@ export default {
|
||||
methods: {
|
||||
handleUpdate(row) {
|
||||
console.log(row)
|
||||
this.form = row
|
||||
this.form.version = row.version
|
||||
this.form.model = row.model
|
||||
this.form.is_auditing = row.is_auditing
|
||||
this.dialogStatus = 'update'
|
||||
this.dialogTitle = '编辑'
|
||||
this.dialogFormVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs['form'].clearValidate()
|
||||
@ -144,6 +148,7 @@ export default {
|
||||
handleCreate() {
|
||||
this.resetTemp()
|
||||
this.dialogStatus = 'create'
|
||||
this.dialogTitle = '新增'
|
||||
this.dialogFormVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs['form'].clearValidate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user