|
@@ -114,6 +114,18 @@
|
|
|
iceRaftManage: false,
|
|
iceRaftManage: false,
|
|
|
remark: '',
|
|
remark: '',
|
|
|
},
|
|
},
|
|
|
|
|
+ defaultRuleForm: {
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ appName: '',
|
|
|
|
|
+ companyCoordinate: '',
|
|
|
|
|
+ companyAddress: '',
|
|
|
|
|
+ coldKey: '',
|
|
|
|
|
+ isIceReleaseCold: false,
|
|
|
|
|
+ isCoolerReleaseCold: false,
|
|
|
|
|
+ isOutStorage: false,
|
|
|
|
|
+ iceRaftManage: false,
|
|
|
|
|
+ remark: '',
|
|
|
|
|
+ },
|
|
|
confirmLoading: false,
|
|
confirmLoading: false,
|
|
|
|
|
|
|
|
treeData: employee(),
|
|
treeData: employee(),
|
|
@@ -228,6 +240,7 @@
|
|
|
this.staffTitle = '添加子级'
|
|
this.staffTitle = '添加子级'
|
|
|
this.staffDialogVisible = true
|
|
this.staffDialogVisible = true
|
|
|
this.parentId = row.id
|
|
this.parentId = row.id
|
|
|
|
|
+ this.ruleForm = JSON.parse(JSON.stringify(this.defaultRuleForm))
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
openModel(type) {
|
|
openModel(type) {
|
|
@@ -237,6 +250,7 @@
|
|
|
this.staffTitle = '添加'
|
|
this.staffTitle = '添加'
|
|
|
this.staffDialogVisible = true
|
|
this.staffDialogVisible = true
|
|
|
this.operationType = type
|
|
this.operationType = type
|
|
|
|
|
+ this.ruleForm = JSON.parse(JSON.stringify(this.defaultRuleForm))
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 打开导入公司对话框
|
|
// 打开导入公司对话框
|
|
@@ -386,16 +400,7 @@
|
|
|
},
|
|
},
|
|
|
// 清空表单
|
|
// 清空表单
|
|
|
closeDialog() {
|
|
closeDialog() {
|
|
|
- // this.ruleForm = {}
|
|
|
|
|
- this.ruleForm.name = ''
|
|
|
|
|
- this.ruleForm.appName = ''
|
|
|
|
|
- this.ruleForm.companyAddress = ''
|
|
|
|
|
- this.ruleForm.coldKey = ''
|
|
|
|
|
- this.ruleForm.isIceReleaseCold = false
|
|
|
|
|
- this.ruleForm.isCoolerReleaseCold = false
|
|
|
|
|
- this.ruleForm.isOutStorage = false
|
|
|
|
|
- this.ruleForm.iceRaftManage = false
|
|
|
|
|
- this.ruleForm.remark = ''
|
|
|
|
|
|
|
+ this.ruleForm = JSON.parse(JSON.stringify(this.defaultRuleForm))
|
|
|
this.$refs.childRules.resetCheck();
|
|
this.$refs.childRules.resetCheck();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|