|
@@ -43,8 +43,6 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async selectBizUnAddTemplates() {
|
|
|
- this.$refs.ruleForm.resetFields()
|
|
|
- this.ruleForm = {}
|
|
|
const res = await selectBizUnAddTemplates(this.bizId)
|
|
|
if (res.code === 200) {
|
|
|
this.modelList = res.data
|
|
@@ -57,6 +55,9 @@ export default {
|
|
|
const res = await addBizTemplates(data)
|
|
|
if (res.code === 200) {
|
|
|
this.$emit('update')
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.ruleForm.resetFields()
|
|
|
+ })
|
|
|
this.$message({ message: '模块添加成功', type: 'success', duration: 1000, offset: 150 })
|
|
|
}
|
|
|
}
|
|
@@ -64,6 +65,7 @@ export default {
|
|
|
},
|
|
|
handleClose() {
|
|
|
this.$emit('update')
|
|
|
+ this.ruleForm.name = []
|
|
|
}
|
|
|
}
|
|
|
}
|