Browse Source

2024.1.26 角色列表 dataForm置空

java8
yuejiayang 2 years ago
parent
commit
bb3df85603
  1. 13
      src/views/modules/sys/user-add-or-update.vue
  2. 7
      src/views/modules/sys/user.vue

13
src/views/modules/sys/user-add-or-update.vue

@ -2,6 +2,7 @@
<div class="user-add-or-update"> <div class="user-add-or-update">
<el-dialog <el-dialog
width="530px" width="530px"
@close="closeDialog"
:title="!dataForm.id ? buttons.add :buttons.edit" :title="!dataForm.id ? buttons.add :buttons.edit"
:close-on-click-modal="false" :close-on-click-modal="false"
:visible.sync="visible"> :visible.sync="visible">
@ -227,6 +228,18 @@ export default {
}) })
} }
}) })
},
closeDialog(){
this.dataForm.id = 0
this.dataForm.userName = ''
this.dataForm.password = ''
this.dataForm.comfirmPassword = ''
this.dataForm.email = ''
this.dataForm.mobile = ''
this.dataForm.roleIdList = []
this.dataForm.status = 1
this.dataForm.site = ''
this.dataForm.userDisplay = ''
} }
}, },
created() { created() {

7
src/views/modules/sys/user.vue

@ -98,7 +98,7 @@
</el-pagination> </el-pagination>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList" @close="closeDialog"></add-or-update>
<!-- 审核权限 --> <!-- 审核权限 -->
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputSearch1" :visible.sync="setUp.reviewFlag" width="518px"> <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputSearch1" :visible.sync="setUp.reviewFlag" width="518px">
<template> <template>
@ -1346,7 +1346,10 @@ export default {
this.$message.error(data.msg) this.$message.error(data.msg)
} }
}) })
}
},
closeDialog() {
this.$refs.addOrUpdate.closeDialog()
},
}, },
created() { created() {
this.getFunctionButtonList() this.getFunctionButtonList()

Loading…
Cancel
Save