修改
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) {
|
export function triggerCondition(id) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@ -29,3 +29,11 @@ export function specialDiseaseNode(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//查询主路径详情
|
||||||
|
export function selectSpecialDisease(id) {
|
||||||
|
return request({
|
||||||
|
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -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",
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user