子路径修改

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

View File

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