修改
This commit is contained in:
parent
8a2bba13cf
commit
b2cb39bd84
@ -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) {
|
||||
return request({
|
||||
|
||||
@ -29,3 +29,11 @@ export function specialDiseaseNode(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//查询主路径详情
|
||||
export function selectSpecialDisease(id) {
|
||||
return request({
|
||||
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@ -170,7 +170,7 @@ import {
|
||||
updateSpecialDiseaseRoute,
|
||||
} from "@/api/system/specialDiseaseRoute";
|
||||
import {
|
||||
specialDiseaseRoute, selectSpecialDisease, triggerConditiondel, specialDiseaseRoutedel, triggerConditionadd, triggerCondition, triggerConditionedit
|
||||
specialDiseaseRoute, triggerConditiondel, specialDiseaseRoutedel, triggerConditionadd, triggerCondition, triggerConditionedit
|
||||
} from "@/api/system/editorialSpecialization";
|
||||
export default {
|
||||
name: "editorialSpecialization",
|
||||
|
||||
@ -265,11 +265,8 @@ import propaganda from '../components/propaganda.vue'
|
||||
import officialAccount from '../components/officialAccount.vue'
|
||||
import miniProgram from '../components/miniProgram.vue'
|
||||
import {
|
||||
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode
|
||||
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDisease
|
||||
} from '@/api/system/specialDiseaseNode'
|
||||
import {
|
||||
selectSpecialDisease
|
||||
} from "@/api/system/editorialSpecialization";
|
||||
export default {
|
||||
components: { wangeditor, question, propaganda, message, officialAccount, miniProgram },
|
||||
name: "specialDiseaseNode",
|
||||
@ -303,7 +300,42 @@ export default {
|
||||
},
|
||||
itemindex: 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: "",
|
||||
routeNodeDay: '',
|
||||
list: [
|
||||
@ -328,31 +360,13 @@ export default {
|
||||
appletPromptDescription: '',
|
||||
},
|
||||
],
|
||||
}],
|
||||
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 => {
|
||||
// })
|
||||
})
|
||||
this.form = this.lists[0].list[0]
|
||||
}
|
||||
},
|
||||
beforeDestroy() { },
|
||||
watch: {},
|
||||
mounted() {
|
||||
this.form = this.lists[0].list[0]
|
||||
},
|
||||
methods: {
|
||||
//wangeditor传值
|
||||
@ -380,6 +394,7 @@ export default {
|
||||
//暂存
|
||||
TemporaryStorage() {
|
||||
this.$refs.wangeditor.emit()
|
||||
this.updata.specialDiseaseNodeList = []
|
||||
this.lists.forEach(e => {
|
||||
e.list.length > 0 ? e.list.forEach(el => {
|
||||
el.routeNodeDay = e.routeNodeDay
|
||||
@ -422,16 +437,19 @@ export default {
|
||||
})
|
||||
},
|
||||
//任务细分
|
||||
changeTaskType(id) {
|
||||
changeTaskType(id, taskSubdivision) {
|
||||
taskPartitionList(id).then(res => {
|
||||
this.taskPartitionList = res.data
|
||||
})
|
||||
this.form.taskSubdivision = ''
|
||||
this.form.taskSubdivisionName = ''
|
||||
this.form.taskSubdivisiontemplateType = ''
|
||||
this.selectTaskTypeList.forEach(el => {
|
||||
if (id == el.id) {
|
||||
this.form.taskTypeName = el.taskTypeName
|
||||
this.form.taskSubdivision = ''
|
||||
this.form.taskSubdivisionName = ''
|
||||
this.form.taskSubdivisiontemplateType = ''
|
||||
this.selectTaskTypeList.forEach(el => {
|
||||
if (id == el.id) {
|
||||
this.form.taskTypeName = el.taskTypeName
|
||||
}
|
||||
})
|
||||
if (taskSubdivision) {
|
||||
this.changetaskSubdivision(taskSubdivision)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user