diff --git a/magic-boot-ui/src/components/Psyduck/pd-dialog.vue b/magic-boot-ui/src/components/Psyduck/pd-dialog.vue
index d37a0d7..a6c0ce9 100644
--- a/magic-boot-ui/src/components/Psyduck/pd-dialog.vue
+++ b/magic-boot-ui/src/components/Psyduck/pd-dialog.vue
@@ -1,16 +1,15 @@
-
- {{ content }}
-
-
+
@@ -23,11 +22,6 @@ export default {
type: String,
default: ''
},
- content: {
- type: String,
- default: '',
- require: false
- },
width: {
type: String,
default: '50%'
diff --git a/magic-boot-ui/src/views/system/dict/dict-items.vue b/magic-boot-ui/src/views/system/dict/dict-items.vue
index 0927be8..4d9f144 100644
--- a/magic-boot-ui/src/views/system/dict/dict-items.vue
+++ b/magic-boot-ui/src/views/system/dict/dict-items.vue
@@ -19,30 +19,24 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -115,12 +109,7 @@ export default {
}
]
},
- textMap: {
- update: '修改',
- create: '添加'
- },
- dialogFormVisible: false,
- dialogStatus: '',
+ dialogTitle: '',
rules: {
value: [{ required: true, message: '请输入值', trigger: 'change' }],
label: [{ required: true, message: '请输入标签名', trigger: 'change' }],
@@ -162,8 +151,8 @@ export default {
handleCreate() {
this.temp = this.getTemp()
this.getSort()
- this.dialogStatus = 'create'
- this.dialogFormVisible = true
+ this.dialogTitle = '添加'
+ this.$refs.formDialog.show()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
@@ -172,10 +161,10 @@ export default {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$post('dict/items/save', this.temp).then(() => {
- this.dialogFormVisible = false
+ this.$refs.formDialog.hide()
this.$notify({
title: '成功',
- message: (this.dialogStatus === 'create' ? '创建' : '修改') + '成功',
+ message: this.dialogTitle + '成功',
type: 'success',
duration: 2000
})
@@ -187,8 +176,8 @@ export default {
},
handleUpdate(row) {
this.$common.objAssign(this.temp, row)
- this.dialogStatus = 'update'
- this.dialogFormVisible = true
+ this.dialogTitle = '修改'
+ this.$refs.formDialog.show()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
diff --git a/magic-boot-ui/src/views/system/dict/dict-list.vue b/magic-boot-ui/src/views/system/dict/dict-list.vue
index 17e2493..917a1c2 100644
--- a/magic-boot-ui/src/views/system/dict/dict-list.vue
+++ b/magic-boot-ui/src/views/system/dict/dict-list.vue
@@ -19,37 +19,33 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
@@ -130,7 +126,7 @@ export default {
title: '字典项',
type: 'primary',
click: (row) => {
- this.dictItemsVisible = true
+ this.$refs.dictItemsDialog.show()
this.dictId = row.id
}
}
@@ -140,21 +136,13 @@ export default {
},
dictId: '',
temp: this.getTemp(),
- dialogFormVisible: false,
- dictItemsVisible: false,
- dialogStatus: '',
- textMap: {
- update: '修改',
- create: '添加'
- },
- pvData: [],
+ dialogTitle: '',
rules: {
dictType: [{ required: true, message: '请输入标签', trigger: 'change' }],
type: [{ required: true, message: '请输入类型', trigger: 'change' }],
sort: [{ required: true, message: '请输入排序', trigger: 'change' }],
descRibe: [{ required: true, message: '请输入描述', trigger: 'change' }]
- },
- downloadLoading: false
+ }
}
},
methods: {
@@ -179,8 +167,8 @@ export default {
handleCreate() {
this.temp = this.getTemp()
this.getSort()
- this.dialogStatus = 'create'
- this.dialogFormVisible = true
+ this.dialogTitle = '添加'
+ this.$refs.dictDialog.show()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
@@ -190,10 +178,10 @@ export default {
if (valid) {
this.$post('dict/save', this.temp).then((response) => {
this.temp.id = response.data
- this.dialogFormVisible = false
+ this.$refs.dictDialog.hide()
this.$notify({
title: '成功',
- message: (this.dialogStatus === 'create' ? '创建' : '修改') + '成功',
+ message: this.dialogTitle + '成功',
type: 'success',
duration: 2000
})
@@ -205,8 +193,8 @@ export default {
},
handleUpdate(row) {
this.$common.objAssign(this.temp, row)
- this.dialogStatus = 'update'
- this.dialogFormVisible = true
+ this.dialogTitle = '修改'
+ this.$refs.dictDialog.show()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
diff --git a/magic-boot-ui/src/views/system/menu/menu-list.vue b/magic-boot-ui/src/views/system/menu/menu-list.vue
index def0741..c010754 100644
--- a/magic-boot-ui/src/views/system/menu/menu-list.vue
+++ b/magic-boot-ui/src/views/system/menu/menu-list.vue
@@ -24,7 +24,7 @@
-
+
@@ -185,11 +185,7 @@ export default {
}
]
},
- dialogStatus: '',
- textMap: {
- update: '修改',
- create: '添加'
- },
+ dialogTitle: '',
searchTimeout: ''
}
},
@@ -223,7 +219,7 @@ export default {
},500)
},
addSubMenu(id) {
- this.dialogStatus = 'create'
+ this.dialogTitle = '添加'
this.$refs.menuFormDialog.show()
this.$nextTick(() => {
this.$refs.menuForm.addSubMenu(id)
@@ -237,7 +233,7 @@ export default {
})
},
handleUpdate(row) {
- this.dialogStatus = 'update'
+ this.dialogTitle = '修改'
this.$refs.menuFormDialog.show()
this.$nextTick(() => {
this.$refs.menuForm.getInfo(row);
diff --git a/magic-boot-ui/src/views/system/office/office-list.vue b/magic-boot-ui/src/views/system/office/office-list.vue
index 7123405..c23c393 100644
--- a/magic-boot-ui/src/views/system/office/office-list.vue
+++ b/magic-boot-ui/src/views/system/office/office-list.vue
@@ -30,7 +30,7 @@
-
+
@@ -184,18 +184,13 @@ export default {
}
]
},
- dialogFormVisible: false,
- dialogStatus: '',
- textMap: {
- update: '修改',
- create: '添加'
- },
+ dialogTitle: '',
temp: this.getTemp(),
- listConfigDialogVisible: false,
- formConfigDialogVisible: false,
rules: {
+ type: [{ required: true, message: '请选择机构类型', trigger: 'change' }],
pid: [{ required: true, message: '请选择上级机构', trigger: 'change' }],
- name: [{ required: true, message: '请输入机构名称', trigger: 'change' }]
+ name: [{ required: true, message: '请输入机构名称', trigger: 'change' }],
+ code: [{ required: true, message: '请输入机构编码', trigger: 'change' }]
},
searchTimeout: ''
}
@@ -254,7 +249,7 @@ export default {
this.temp.pid = id
this.temp.id = this.$common.uuid()
this.getSort()
- this.dialogStatus = 'create'
+ this.dialogTitle = '添加'
this.$refs.officeFormDialog.show()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
@@ -286,7 +281,7 @@ export default {
this.$refs.officeFormDialog.hide()
this.$notify({
title: '成功',
- message: (this.dialogStatus === 'create' ? '创建' : '修改') + '成功',
+ message: dialogTitle + '成功',
type: 'success',
duration: 2000
})
@@ -305,7 +300,7 @@ export default {
this.temp[t] = row[t]
}
this.temp.name = this.temp.name.replaceAll(/(.*?)<\/font>/g,'$1')
- this.dialogStatus = 'update'
+ this.dialogTitle = '修改'
this.$refs.officeFormDialog.show()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
diff --git a/magic-boot-ui/src/views/system/role/role-list.vue b/magic-boot-ui/src/views/system/role/role-list.vue
index 3c30c06..ca72e4c 100644
--- a/magic-boot-ui/src/views/system/role/role-list.vue
+++ b/magic-boot-ui/src/views/system/role/role-list.vue
@@ -22,7 +22,7 @@
-
+
@@ -66,7 +66,7 @@
-
+
{ $refs.assignPermissionsDialog.hide(); temp.id = '' }" />
@@ -163,12 +163,8 @@ export default {
}
]
},
+ dialogTitle: '',
temp: this.getTemp(),
- dialogStatus: '',
- textMap: {
- update: '修改',
- create: '添加'
- },
rules: {
name: [{ required: true, message: '请输入角色名称', trigger: 'change' }],
code: [{ required: true, message: '请输入角色编码', trigger: 'change' }]
@@ -203,7 +199,7 @@ export default {
},
handleCreate() {
this.resetTemp()
- this.dialogStatus = 'create'
+ this.dialogTitle = '添加'
this.$refs.roleFormDialog.show()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
@@ -217,7 +213,7 @@ export default {
this.$refs.roleFormDialog.hide()
this.$notify({
title: '成功',
- message: (this.dialogStatus === 'create' ? '创建' : '修改') + '成功',
+ message: this.dialogTitle + '成功',
type: 'success',
duration: 2000
})
@@ -235,7 +231,7 @@ export default {
this.$get('office/by/role',{ roleId: row.id }).then(res => {
this.temp.offices = res.data.join(',')
})
- this.dialogStatus = 'update'
+ this.dialogTitle = '修改'
this.$refs.roleFormDialog.show()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
diff --git a/magic-boot-ui/src/views/system/user/user-form.vue b/magic-boot-ui/src/views/system/user/user-form.vue
index 73d467e..742ffec 100644
--- a/magic-boot-ui/src/views/system/user/user-form.vue
+++ b/magic-boot-ui/src/views/system/user/user-form.vue
@@ -53,7 +53,7 @@ export default {
name: 'UserForm',
components: { Treeselect },
props: {
- dialogStatus: {
+ dialogTitle: {
type: String,
default: ''
}
@@ -105,7 +105,7 @@ export default {
this.dialogVisible = false
this.$notify({
title: '成功',
- message: (this.dialogStatus === 'create' ? '创建' : '修改') + '成功',
+ message: this.dialogTitle + '成功',
type: 'success',
duration: 2000
})
diff --git a/magic-boot-ui/src/views/system/user/user-list.vue b/magic-boot-ui/src/views/system/user/user-list.vue
index 0db7aa9..d2388e2 100644
--- a/magic-boot-ui/src/views/system/user/user-list.vue
+++ b/magic-boot-ui/src/views/system/user/user-list.vue
@@ -45,9 +45,9 @@
-
+
-
+
@@ -141,7 +141,7 @@ export default {
}
]
},
- dialogStatus: '',
+ dialogTitle: '',
downloadLoading: false,
ids: []
}
@@ -163,12 +163,12 @@ export default {
this.$refs.table.reloadList()
},
handleCreate() {
- this.dialogStatus = 'create'
+ this.dialogTitle = '添加'
this.$refs.userFormDialog.show()
this.$nextTick(() => { this.$refs.userForm.resetTemp() })
},
handleUpdate(row) {
- this.dialogStatus = 'update'
+ this.dialogTitle = '修改'
this.$refs.userFormDialog.show()
this.$nextTick(() => {
this.$refs.userForm.getInfo(row)