This commit is contained in:
2024-04-08 10:35:35 +08:00
parent 8a2bba13cf
commit b2cb39bd84
4 changed files with 60 additions and 42 deletions

View File

@ -8,14 +8,6 @@ export function specialDiseaseRoute(id) {
}) })
} }
//查询主路径详情
export function selectSpecialDisease(id) {
return request({
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
method: 'get'
})
}
//查询触发条件详情 //查询触发条件详情
export function triggerCondition(id) { export function triggerCondition(id) {
return request({ return request({

View File

@ -29,3 +29,11 @@ export function specialDiseaseNode(data) {
data data
}) })
} }
//查询主路径详情
export function selectSpecialDisease(id) {
return request({
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
method: 'get'
})
}

View File

@ -170,7 +170,7 @@ import {
updateSpecialDiseaseRoute, updateSpecialDiseaseRoute,
} from "@/api/system/specialDiseaseRoute"; } from "@/api/system/specialDiseaseRoute";
import { import {
specialDiseaseRoute, selectSpecialDisease, triggerConditiondel, specialDiseaseRoutedel, triggerConditionadd, triggerCondition, triggerConditionedit specialDiseaseRoute, triggerConditiondel, specialDiseaseRoutedel, triggerConditionadd, triggerCondition, triggerConditionedit
} from "@/api/system/editorialSpecialization"; } from "@/api/system/editorialSpecialization";
export default { export default {
name: "editorialSpecialization", name: "editorialSpecialization",

View File

@ -265,11 +265,8 @@ import propaganda from '../components/propaganda.vue'
import officialAccount from '../components/officialAccount.vue' import officialAccount from '../components/officialAccount.vue'
import miniProgram from '../components/miniProgram.vue' import miniProgram from '../components/miniProgram.vue'
import { import {
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDisease
} from '@/api/system/specialDiseaseNode' } from '@/api/system/specialDiseaseNode'
import {
selectSpecialDisease
} from "@/api/system/editorialSpecialization";
export default { export default {
components: { wangeditor, question, propaganda, message, officialAccount, miniProgram }, components: { wangeditor, question, propaganda, message, officialAccount, miniProgram },
name: "specialDiseaseNode", name: "specialDiseaseNode",
@ -303,7 +300,42 @@ export default {
}, },
itemindex: 0, itemindex: 0,
listindex: 0, listindex: 0,
lists: [{ lists: [],
value: '',
input: '',
//
selectTaskTypeList: [],
//
taskStatusDictList: [],
//
taskPartitionList: [],
};
},
created() {
this.taskinfo();
if (this.$route.query) {
this.updata.suitRange = this.$route.query.suitRange
this.updata.routeName = this.$route.query.routeName
this.updata.specialDiseaseRouteId = this.$route.query.id
selectSpecialDisease(this.$route.query.id).then(res => {
res.data.specialDiseaseNodeList.forEach(e => {
if (e.taskType) {
e.taskType = Number(e.taskType)
this.changeTaskType(e.taskType, e.taskSubdivision)
}
e.taskSubdivision = Number(e.taskSubdivision)
e.taskStatus = Number(e.taskStatus)
let item = {
routeNodeName: e.routeNodeName,
routeNodeDay: e.routeNodeDay,
list: res.data.specialDiseaseNodeList
}
this.lists.push(item)
})
this.form = this.lists[0].list[0]
})
} else {
this.lists.push({
routeNodeName: "", routeNodeName: "",
routeNodeDay: '', routeNodeDay: '',
list: [ list: [
@ -328,31 +360,13 @@ export default {
appletPromptDescription: '', appletPromptDescription: '',
}, },
], ],
}], })
value: '', this.form = this.lists[0].list[0]
input: '',
//
selectTaskTypeList: [],
//
taskStatusDictList: [],
//
taskPartitionList: [],
};
},
created() {
this.taskinfo();
if (this.$route.query) {
this.updata.suitRange = this.$route.query.suitRange
this.updata.routeName = this.$route.query.routeName
this.updata.specialDiseaseRouteId = this.$route.query.id
// selectSpecialDisease(this.$route.query.id).then(res => {
// })
} }
}, },
beforeDestroy() { }, beforeDestroy() { },
watch: {}, watch: {},
mounted() { mounted() {
this.form = this.lists[0].list[0]
}, },
methods: { methods: {
//wangeditor //wangeditor
@ -380,6 +394,7 @@ export default {
// //
TemporaryStorage() { TemporaryStorage() {
this.$refs.wangeditor.emit() this.$refs.wangeditor.emit()
this.updata.specialDiseaseNodeList = []
this.lists.forEach(e => { this.lists.forEach(e => {
e.list.length > 0 ? e.list.forEach(el => { e.list.length > 0 ? e.list.forEach(el => {
el.routeNodeDay = e.routeNodeDay el.routeNodeDay = e.routeNodeDay
@ -422,16 +437,19 @@ export default {
}) })
}, },
// //
changeTaskType(id) { changeTaskType(id, taskSubdivision) {
taskPartitionList(id).then(res => { taskPartitionList(id).then(res => {
this.taskPartitionList = res.data this.taskPartitionList = res.data
}) this.form.taskSubdivision = ''
this.form.taskSubdivision = '' this.form.taskSubdivisionName = ''
this.form.taskSubdivisionName = '' this.form.taskSubdivisiontemplateType = ''
this.form.taskSubdivisiontemplateType = '' this.selectTaskTypeList.forEach(el => {
this.selectTaskTypeList.forEach(el => { if (id == el.id) {
if (id == el.id) { this.form.taskTypeName = el.taskTypeName
this.form.taskTypeName = el.taskTypeName }
})
if (taskSubdivision) {
this.changetaskSubdivision(taskSubdivision)
} }
}) })
}, },