子路径修改

This commit is contained in:
闫晓茹 2024-06-21 11:22:58 +08:00
parent 354dbeb91a
commit 10393882e5
2 changed files with 21 additions and 46 deletions

View File

@ -160,11 +160,7 @@
<div class="select"> <div class="select">
<span> 适用范围 </span> <span> 适用范围 </span>
<el-select <el-select v-model="updata.suitRange" placeholder="请选择" disabled>
v-model="updata.suitRange"
placeholder="请选择"
@change="changeoptions"
>
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.dictValue" :key="item.dictValue"
@ -961,11 +957,17 @@ export default {
}); });
triggerCondition(this.openlist).then((res) => { triggerCondition(this.openlist).then((res) => {
loading.close(); loading.close();
this.$notify({
type: "success", if (res.code == 200) {
title: "提示", this.$notify({
message: "修改触发条件成功", type: "success",
}); title: "提示",
message: "修改触发条件成功",
});
this.itemlist.routeName = res.data;
// this.updata.suitRange=this.openlist.suitRange
}
this.infolist(); this.infolist();
this.openfalse(); this.openfalse();
}); });
@ -1102,7 +1104,7 @@ export default {
)?.dictCode; )?.dictCode;
setTimeout(() => { setTimeout(() => {
this.changelisy(); this.changelisy();
}, 10); }, 20);
this.itemlist.specialDiseaseRouteId = this.$route.query.id; this.itemlist.specialDiseaseRouteId = this.$route.query.id;
this.itemlist.routeName = this.$route.query.routeName; this.itemlist.routeName = this.$route.query.routeName;
selectSpecialDisease(this.$route.query.id).then((res) => { selectSpecialDisease(this.$route.query.id).then((res) => {
@ -1237,13 +1239,16 @@ export default {
if (res.data.length == 1) { if (res.data.length == 1) {
this.updata = res.data[0]; this.updata = res.data[0];
// this.$set(this.openlist, "triggerConditionName", this.$route.query.suitRange);
} else { } else {
this.updata = res.data[0]; this.updata = res.data[0];
res.data.splice(0, 1); res.data.splice(0, 1);
this.updatalist = res.data; this.updatalist = res.data;
} }
this.$set(this.openlist, "suitRange", this.$route.query.suitRange); if (this.open == true) {
this.$set(this.openlist, "suitRange", this.$route.query.suitRange);
} else {
this.$set(this.updata, "suitRange", this.openlist.suitRange);
}
}); });
}, },
// //
@ -1251,7 +1256,8 @@ export default {
this.routeId = this.$route.query.id; this.routeId = this.$route.query.id;
triggerConditionList(this.routeId).then((res) => { triggerConditionList(this.routeId).then((res) => {
this.openlist.triggerConditionList = res.data; this.openlist.triggerConditionList = res.data;
this.$set(this.updata, "suitRange", this.$route.query.suitRange); this.$set(this.updata, "suitRange", this.openlist.suitRange);
console.log(this.updata.suitRange, "updatabianji");
}); });
}, },
// //
@ -1337,7 +1343,6 @@ export default {
// !e.taskSubdivision && // !e.taskSubdivision &&
// !e.taskStatus // !e.taskStatus
// ); // );
console.log(this.itemlist, "itemlist");
specialDiseaseNode(this.itemlist).then((res) => { specialDiseaseNode(this.itemlist).then((res) => {
this.info(); this.info();
loading.close(); loading.close();
@ -1360,7 +1365,6 @@ export default {
}, },
bottomclickevent(uitem, index, uindex) { bottomclickevent(uitem, index, uindex) {
console.log(uitem, index, uindex, "uitem, index, uindex");
if ( if (
this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" && this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" &&
this.form.taskSubdivisiontemplateType != "PROPAGANDA" this.form.taskSubdivisiontemplateType != "PROPAGANDA"
@ -1389,7 +1393,6 @@ export default {
}, },
// //
changeTaskType(code, taskSubdivision) { changeTaskType(code, taskSubdivision) {
console.log(code, taskSubdivision, "code");
let id = this.selectTaskTypeList?.find((e) => e.taskTypeCode == code)?.id; let id = this.selectTaskTypeList?.find((e) => e.taskTypeCode == code)?.id;
this.form.taskTypeName = this.selectTaskTypeList?.find( this.form.taskTypeName = this.selectTaskTypeList?.find(
(e) => e.taskTypeCode == code (e) => e.taskTypeCode == code
@ -1401,7 +1404,6 @@ export default {
this.form.taskSubdivisiontemplateType = ""; this.form.taskSubdivisiontemplateType = "";
this.taskStatusDictList = []; this.taskStatusDictList = [];
if (taskSubdivision) { if (taskSubdivision) {
console.log(2222222222);
this.form.taskSubdivision = taskSubdivision; this.form.taskSubdivision = taskSubdivision;
this.changetaskSubdivision(taskSubdivision, 1); this.changetaskSubdivision(taskSubdivision, 1);
} }
@ -1409,7 +1411,6 @@ export default {
}, },
// //
changetaskSubdivision(code, type) { changetaskSubdivision(code, type) {
console.log(code, type, "code, type");
this.form.taskSubdivisionName = this.taskPartitionList?.find( this.form.taskSubdivisionName = this.taskPartitionList?.find(
(e) => e.taskPartitionCode == code (e) => e.taskPartitionCode == code
)?.taskPartitionName; )?.taskPartitionName;
@ -1437,10 +1438,6 @@ export default {
) { ) {
this.form.nodeContent = `<p></p>`; this.form.nodeContent = `<p></p>`;
} }
console.log(
this.form.taskSubdivisiontemplateType,
"this.form.taskSubdivisiontemplateType"
);
if (!type) { if (!type) {
this.form.templateId = ""; this.form.templateId = "";
this.form.templateName = ""; this.form.templateName = "";
@ -1487,7 +1484,6 @@ export default {
}, },
// //
additem(item) { additem(item) {
console.log(item);
item.list.push({ item.list.push({
nodeContent: "<p></p>", nodeContent: "<p></p>",
templateId: "", templateId: "",

View File

@ -91,7 +91,7 @@
<div <div
class="item" class="item"
v-for="(uitem, uindex) in list.childrenRouteList" v-for="(uitem, uindex) in list.childrenRouteList"
:key="uitem.specialDiseaseRouteId" :key="uindex"
> >
<div class="title"> <div class="title">
<el-tag type="success">触发条件</el-tag> <el-tag type="success">触发条件</el-tag>
@ -459,34 +459,23 @@ export default {
methods: { methods: {
// //
changetriggerLogic(e, index) { changetriggerLogic(e, index) {
// console.log(e,index,'index')
this.updata.triggerConditionList[index].triggerConditionOperatorName = this.updata.triggerConditionList[index].triggerConditionOperatorName =
this.optionstriggerConditionOperator.find((el) => el.value == e).label; this.optionstriggerConditionOperator.find((el) => el.value == e).label;
this.updata.triggerConditionList[index].triggerConditionValue = null; this.updata.triggerConditionList[index].triggerConditionValue = null;
// console.log( this.updata.triggerConditionList[index].triggerConditionOperatorName,"this.updata.triggerConditionList[index].triggerConditionOperatorName");
}, },
// //
changetriggerConditionName(e, index) { changetriggerConditionName(e, index) {
// console.log(e,index, "eeeeeeeee");
this.updata.triggerConditionList[index].triggerConditionName = this.updata.triggerConditionList[index].triggerConditionName =
this.optionsname.find((el) => el.value == e).label; this.optionsname.find((el) => el.value == e).label;
this.updata.triggerConditionList[index].triggerConditionOperator = null; this.updata.triggerConditionList[index].triggerConditionOperator = null;
this.updata.triggerConditionList[index].triggerConditionValue = null; this.updata.triggerConditionList[index].triggerConditionValue = null;
// console.log(this.updata.triggerConditionList[index].triggerConditionName, " this.form.triggerConditionName");
}, },
changeoptions() {}, changeoptions() {},
// //
changetriggerLogicsname(e, index) { changetriggerLogicsname(e, index) {
console.log(e, index, "eeeeeeeeeeeeeeeeee");
this.updata.triggerConditionList[index].triggerLogic = e; this.updata.triggerConditionList[index].triggerLogic = e;
this.updata.triggerConditionList[index].triggerLogicName = this.updata.triggerConditionList[index].triggerLogicName =
this.optionslistS.find((el) => el.dictValue == e).dictLabel; this.optionslistS.find((el) => el.dictValue == e).dictLabel;
console.log(
this.updata.triggerConditionList[index].triggerLogic,
this.updata.triggerConditionList[index].triggerLogicName,
" this.form.triggerLogicName"
);
}, },
infolist() { infolist() {
var dictType = "suit_range"; var dictType = "suit_range";
@ -577,21 +566,11 @@ export default {
triggerLogic: "", triggerLogic: "",
triggerLogicName: "", triggerLogicName: "",
}; };
// if (this.form.voList.length == 5) {
// this.$message.error("5");
// } else {
// this.form.voList.push(obj);
// // console.log(this.form)
// }
// this.updata.triggerConditionList.push({
// });
// },
if (this.updata.triggerConditionList.length == 3) { if (this.updata.triggerConditionList.length == 3) {
this.$message.error("最多批量添加2条"); this.$message.error("最多批量添加2条");
} else { } else {
this.updata.triggerConditionList.push(obj); this.updata.triggerConditionList.push(obj);
// console.log(this.form)
} }
}, },
editopenfalse() { editopenfalse() {