This commit is contained in:
2024-04-19 10:58:35 +08:00
parent cf88299bd0
commit f2f7299618
5 changed files with 10 additions and 30 deletions

View File

@ -146,15 +146,11 @@ export default {
this.Departmentlist(); this.Departmentlist();
}, },
templateId(newValue, oldValue) { templateId(newValue, oldValue) {
if (newValue) {
this.handleselectId = newValue; this.handleselectId = newValue;
}
}, },
templateName(newValue, oldValue) { templateName(newValue, oldValue) {
if (newValue) {
this.handleselectName = newValue; this.handleselectName = newValue;
} }
}
}, },
mounted() { mounted() {
this.handleselectId = this.templateId; this.handleselectId = this.templateId;

View File

@ -146,15 +146,11 @@ export default {
this.Departmentlist(); this.Departmentlist();
}, },
templateId(newValue, oldValue) { templateId(newValue, oldValue) {
if (newValue) {
this.handleselectId = newValue; this.handleselectId = newValue;
}
}, },
templateName(newValue, oldValue) { templateName(newValue, oldValue) {
if (newValue) {
this.handleselectName = newValue; this.handleselectName = newValue;
} }
}
}, },
mounted() { mounted() {
this.handleselectId = this.templateId; this.handleselectId = this.templateId;

View File

@ -146,15 +146,11 @@ export default {
this.Departmentlist(); this.Departmentlist();
}, },
templateId(newValue, oldValue) { templateId(newValue, oldValue) {
if (newValue) {
this.handleselectId = newValue; this.handleselectId = newValue;
}
}, },
templateName(newValue, oldValue) { templateName(newValue, oldValue) {
if (newValue) {
this.handleselectName = newValue; this.handleselectName = newValue;
} }
}
}, },
mounted() { mounted() {
this.handleselectId = this.templateId; this.handleselectId = this.templateId;

View File

@ -165,15 +165,11 @@ export default {
}, },
watch: { watch: {
templateId(newValue, oldValue) { templateId(newValue, oldValue) {
if (newValue) {
this.handleselectId = newValue; this.handleselectId = newValue;
}
}, },
templateName(newValue, oldValue) { templateName(newValue, oldValue) {
if (newValue) {
this.handleselectName = newValue; this.handleselectName = newValue;
} }
}
}, },
computed: { computed: {
pickerStartTime() { pickerStartTime() {

View File

@ -125,15 +125,11 @@ export default {
}, },
watch: { watch: {
templateId(newValue, oldValue) { templateId(newValue, oldValue) {
if (newValue) {
this.handleselectId = newValue; this.handleselectId = newValue;
}
}, },
templateName(newValue, oldValue) { templateName(newValue, oldValue) {
if (newValue) {
this.handleselectName = newValue; this.handleselectName = newValue;
} }
}
}, },
methods: { methods: {
clickDepartmenitem(item) { clickDepartmenitem(item) {