This commit is contained in:
2024-04-23 16:44:13 +08:00
parent 4115f0394f
commit e1da96626d

View File

@ -328,7 +328,6 @@ export default {
this.updata = this.lookitem this.updata = this.lookitem
this.updata.specialDiseaseRouteId = this.lookitem.id this.updata.specialDiseaseRouteId = this.lookitem.id
this.taskinfo(); this.taskinfo();
this.info();
}, },
beforeDestroy() { }, beforeDestroy() { },
watch: { watch: {
@ -336,7 +335,6 @@ export default {
this.updata = newValue; this.updata = newValue;
this.updata.specialDiseaseRouteId = newValue.id this.updata.specialDiseaseRouteId = newValue.id
this.taskinfo(); this.taskinfo();
this.info();
} }
}, },
mounted() { mounted() {
@ -442,9 +440,7 @@ export default {
taskinfo() { taskinfo() {
selectTaskTypeList().then(res => { selectTaskTypeList().then(res => {
this.selectTaskTypeList = res.data this.selectTaskTypeList = res.data
}) this.info();
taskStatusDictList().then(res => {
this.taskStatusDictList = res.data
}) })
}, },
// //
@ -462,8 +458,13 @@ export default {
} }
}) })
}, },
//
changetaskSubdivision(code, type) { changetaskSubdivision(code, type) {
this.form.taskSubdivisionName = this.taskPartitionList?.find(e => e.taskPartitionCode == code)?.taskPartitionName this.form.taskSubdivisionName = this.taskPartitionList?.find(e => e.taskPartitionCode == code)?.taskPartitionName
let id = this.taskPartitionList?.find(e => e.taskPartitionCode == code)?.id
taskStatusDictList(id).then(res => {
this.taskStatusDictList = res.data
})
this.taskPartitionList.forEach(el => { this.taskPartitionList.forEach(el => {
if (code == el.taskPartitionCode) { if (code == el.taskPartitionCode) {
this.form.executionTime = el.executionTime this.form.executionTime = el.executionTime