diff --git a/src/router/index.js b/src/router/index.js index 0c62dc0..f71d573 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -101,12 +101,12 @@ export const constantRoutes = [ path: '*', // 匹配未定义的路由 redirect: '/dashboard', // 重定向 hidden: true - }, + }/* , { path: '*', // 匹配未定义的路由 redirect: '/404', // 重定向 hidden: true - } + } */ // tableRouter // { // path: '/documentation', diff --git a/src/views/announcement/index.vue b/src/views/announcement/index.vue index 621c8c9..2efeeb1 100644 --- a/src/views/announcement/index.vue +++ b/src/views/announcement/index.vue @@ -74,7 +74,7 @@ - + @@ -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() diff --git a/src/views/audit/index.vue b/src/views/audit/index.vue index b5fc0ee..2c07e7a 100644 --- a/src/views/audit/index.vue +++ b/src/views/audit/index.vue @@ -48,7 +48,7 @@ - + @@ -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()