flx:修复分部分项校验问题
This commit is contained in:
parent
ad4dd03372
commit
d8f539e16d
@ -506,7 +506,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="分部分项名称"
|
||||
prop="taskName"
|
||||
prop="parentTaskName"
|
||||
v-if="dialogType == 3"
|
||||
>
|
||||
<el-input
|
||||
@ -834,7 +834,7 @@ export default {
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("message.personnelPosition.required"),
|
||||
trigger: "blur",
|
||||
// trigger: "blur",
|
||||
},
|
||||
],
|
||||
taskName: [
|
||||
@ -954,8 +954,13 @@ export default {
|
||||
this.getHierarchyEnterpriseList();
|
||||
this.getTreeList();
|
||||
},
|
||||
// watch:{
|
||||
// "dialogVisible"() {
|
||||
// this.$refs['addEditForm'] && this.$refs['addEditForm'].clearValidate();
|
||||
// }
|
||||
// },
|
||||
methods: {
|
||||
selectFormChange() {
|
||||
selectFormChange(val) {
|
||||
if (!val) {
|
||||
this.selectFormVal = "";
|
||||
this.workerInfo.qualityRegionId = "";
|
||||
@ -1248,8 +1253,22 @@ export default {
|
||||
.catch(() => {});
|
||||
},
|
||||
close() {
|
||||
this.workerInfo = {};
|
||||
this.workerInfo.parentId = 0;
|
||||
this.workerInfo = {
|
||||
taskName: "",
|
||||
startDate: "",
|
||||
finishDate: "",
|
||||
actualStartDate: "",
|
||||
actualFinishDate: "",
|
||||
dutyUserId: "",
|
||||
qualityRegionId: "",
|
||||
enterpriseId: "",
|
||||
enterpriseName: "",
|
||||
progressRatio: "",
|
||||
remark: "",
|
||||
parentId: 0,
|
||||
status: 0,
|
||||
};
|
||||
// this.workerInfo.parentId = 0;
|
||||
this.selectFormVal = "";
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addEditForm.clearValidate();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user