优化pd-dialog添加菜单icon

This commit is contained in:
吕金泽
2022-01-01 14:28:03 +08:00
parent 5d577a99a6
commit 7269b13382
60 changed files with 189 additions and 482 deletions
@@ -34,10 +34,6 @@
export default {
name: 'UserForm',
props: {
visible: {
type: Boolean,
default: false
},
dialogStatus: {
type: String,
default: ''
@@ -53,24 +49,6 @@ export default {
temp: this.getTemp()
}
},
computed: {
dialogVisible: {
get() {
return this.visible
},
set(val) {
this.$emit('update:visible', val)
}
}
},
watch: {
visible(newVal) {
this.temp = this.getTemp()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
}
},
created() {
this.$get('role/list?size=999999').then(response => {
const { data } = response
@@ -89,6 +67,12 @@ export default {
roles: []
}
},
resetTemp() {
this.temp = this.getTemp()
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
},
save() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {