子路径修改

This commit is contained in:
闫晓茹 2024-06-21 14:06:29 +08:00
parent 9661ae223f
commit d8b6f155b7
2 changed files with 36 additions and 20 deletions

View File

@ -7,6 +7,7 @@
<div class="nodes">
<!-- 一级 -->
<div class="node" v-if="updata">
<!-- {{ updata.length }} -->
<el-select
v-model="updata.triggerConditionCode"
style="width: 120px"
@ -777,6 +778,8 @@ import {
list,
triggerConditionList,
} from "@/api/system/specialDiseaseNode";
import Cookies from "js-cookie";
export default {
components: {
wangeditor,
@ -893,6 +896,7 @@ export default {
routeName: "",
specialDiseaseNodeList: [],
},
updataname: "",
rules: {
routeCheckStatus: [
{ required: true, message: "请选择节点审核状态", trigger: "change" },
@ -966,6 +970,10 @@ export default {
message: "修改触发条件成功",
});
this.routeName = res.data;
Cookies.remove("routeName");
Cookies.set("routeName", this.routeName);
// Cookies.set("username", this.loginForm.username, { expires: 30 });
}
this.infolist();
this.openfalse();
@ -973,20 +981,20 @@ export default {
},
//
openfalse() {
this.openlist.triggerConditionList = [
{
routeId: "",
routeName: "",
triggerConditionName: "",
triggerConditionOperator: "",
triggerConditionValue: "",
triggerConditionName: "",
triggerConditionOperatorName: "",
// this.openlist.triggerConditionList = [
// {
// routeId: "",
// routeName: "",
// triggerConditionName: "",
// triggerConditionOperator: "",
// triggerConditionValue: "",
// triggerConditionName: "",
// triggerConditionOperatorName: "",
triggerLogic: "",
triggerLogicName: "",
},
];
// triggerLogic: "",
// triggerLogicName: "",
// },
// ];
this.open = false;
this.resetForm("openlist");
},
@ -1105,7 +1113,11 @@ export default {
this.changelisy();
}, 30);
this.itemlist.specialDiseaseRouteId = this.$route.query.id;
this.itemlist.routeName = this.$route.query.routeName;
this.itemlist.routeName = Cookies.get("routeName");
console.log(this.itemlist.routeName, " this.itemlist.routeName");
// Cookies.remove("routeName");
// this.itemlist.routeName = this.$route.query.routeName;
selectSpecialDisease(this.$route.query.id).then((res) => {
loading.close();
this.agreeNumber = res.data.agreeNumber;
@ -1235,9 +1247,9 @@ export default {
this.routeId = this.$route.query.id;
triggerConditionList(this.routeId).then((res) => {
this.openlist.triggerConditionList = res.data;
if (res.data.length == 1) {
this.updata = res.data[0];
this.updatalist = [];
} else {
this.updata = res.data[0];
res.data.splice(0, 1);
@ -1342,11 +1354,12 @@ export default {
// !e.taskSubdivision &&
// !e.taskStatus
// );
if (this.routeName) {
this.itemlist.routeName = this.routeName;
} else {
this.itemlist.routeName = this.$route.query.routeName;
}
// if (this.routeName) {
// this.itemlist.routeName = this.routeName;
// } else {
// this.itemlist.routeName = this.$route.query.routeName;
// }
this.itemlist.routeName = Cookies.get("routeName");
specialDiseaseNode(this.itemlist).then((res) => {
this.info();
loading.close();

View File

@ -351,6 +351,7 @@ import {
triggerCondition,
triggerConditionedit,
} from "@/api/system/editorialSpecialization";
import Cookies from "js-cookie";
import { servicepackageinfo } from "@/api/manage/signRecord.js";
import { getAgencytype } from "@/api/system/agency";
@ -695,6 +696,8 @@ export default {
routeName: uitem.routeName,
},
});
Cookies.set("routeName", uitem.routeName);
// const loading = this.$loading({
// lock: true,
// text: "Loading",