子路径修改回显问题

This commit is contained in:
闫晓茹 2024-06-20 15:02:44 +08:00
parent 5dfddd0039
commit 57f72f18e0

View File

@ -1,6 +1,6 @@
<template>
<div class="app-container">
<el-descriptions title="编辑触发条件" />
<el-descriptions title="编辑触发条件" style="height: 25px; width: 99px" />
<div class="title">
<!-- <div >触发条件</div> -->
@ -328,19 +328,16 @@
<el-form-item label="二级分类描述" prop="">
<el-input
v-model="form.secondClassifyDescribe"
style="width: 100px"
style="width: 110px"
disabled
></el-input>
</el-form-item>
<el-form-item label="执行时间" prop="">
<el-time-select
v-model="form.executionTime"
style="width: 120px"
:picker-options="{
start: '08:30',
step: '00:30',
end: '18:30',
}"
placeholder="选择时间"
disabled
>
</el-time-select>
</el-form-item>
@ -349,7 +346,11 @@
prop=""
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'"
>
<question @on-template="questionontemplate"></question>
<question
@on-template="questionontemplate"
:templateId="form.templateId"
:templateName="form.templateName"
></question>
</el-form-item>
<el-form-item
label="宣教库模板选择"
@ -716,17 +717,7 @@
v-if="index != 0"
></el-button>
<!-- <i
class="el-icon-delete"
@click="delitem(index)"
v-if="index != 0"
></i> -->
<!-- <i
v-if="index == 0"
class="el-icon-circle-plus-outline"
@click="addtriggerCondition(index)"
>添加触发条件</i
> -->
<el-button
type="primary"
plain
@ -798,12 +789,9 @@ import wangeditor from "../components/wangEditor.vue";
import question from "../components/question.vue";
import message from "../components/message.vue";
import scripts from "../components/script.vue";
import propaganda from "../components/propaganda.vue";
import officialAccount from "../components/officialAccount.vue";
import miniProgram from "../components/miniProgram.vue";
import { triggerConditionedit } from "@/api/system/editorialSpecialization";
import { getAgencytype } from "@/api/system/agency";
import {
selectTaskTypeList,
@ -941,21 +929,11 @@ export default {
created() {
if (this.$route.query) {
this.$set(this.form, "specialDiseaseNodeId", this.$route.query.id);
console.log(
this.form.specialDiseaseNodeId,
" this.form.specialDiseaseNodeId"
);
// this.$set(this.updata, "suitRange", this.$route.query.suitRange);
this.$set(this.openlist, "suitRange", this.$route.query.suitRange);
console.log(this.updata.suitRange, "5555555555555555");
this.openlist.routeId = this.$route.query.id;
}
this.taskinfo();
this.infolists();
this.infolist();
this.infolistoptionslistS();
this.infolistMESSAGE();
this.infolistword();
@ -964,7 +942,6 @@ export default {
watch: {
"form.phoneMessageRemind": {
handler(newValue, oldValue) {
console.log(newValue, "2222221111122");
if (newValue == "NOT_SEND_MESSAGE") {
this.form.phoneMessageTemplateId = "";
this.form.phoneMessageTemplateName = "";
@ -972,17 +949,7 @@ export default {
},
deep: true,
},
// "form.phoneTemplateId": {
// handler(newValue, oldValue) {
// console.log(newValue, "phoneTemplateId");
// // if (newValue == "NOT_SEND_MESSAGE") {
// this.form.phoneTemplateId = newValue;
// // this.form.phoneMessageTemplateName = "";
// // }
// },
// deep: true,
// // phoneTemplateId
// },
},
mounted() {
// this.form = this.lists[0].list[0];
@ -1009,20 +976,19 @@ export default {
});
},
upload() {
// const loading = this.$loading({
// lock: true,
// text: "Loading",
// spinner: "el-icon-loading",
// background: "rgba(0, 0, 0, 0.7)",
// });
const loading = this.$loading({
lock: true,
text: "Loading",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)",
});
this.openlist.triggerConditionList.forEach((e) => {
e.routeId = this.$route.query.id;
e.routeName = this.$route.query.routeName;
});
console.log(this.openlist, "(this.triggerConditionList");
triggerCondition(this.openlist).then((res) => {
// loading.close();
loading.close();
this.$notify({
type: "success",
title: "提示",
@ -1250,14 +1216,7 @@ export default {
ite.routeNodeName == item.routeNodeName
)
);
// for (var i = 0; i < keysArr.length; i++) {
// for (var j = i + 1; j < keysArr.length; j++) {
// if (keysArr[i].routeNodeDay == keysArr[j].routeNodeDay && keysArr[i].routeNodeName == keysArr[j].routeNodeName) {
// keysArr.splice(j, 1);
// j--;
// }
// }
// }
let keys = [...new Set(array)];
let newList = keys.map((item) => {
return {
@ -1271,28 +1230,7 @@ export default {
});
return newList;
},
// addtriggerConditionlist() {
// this.idd++;
// var obj = {
// routeId: "",
// routeName: "",
// triggerConditionName: "",
// triggerConditionOperator: "",
// triggerConditionValue: "",
// triggerConditionName: "",
// triggerConditionOperatorName: "",
// triggerLogic: "",
// triggerLogicName: "",
// };
// if (this.updata.length == 3) {
// this.$message.error("2");
// } else {
// this.updata.push(obj);
// // console.log(this.form)
// }
// },
//
infolistoptionslistS() {
var dictType = "trigger_logic";
@ -1324,6 +1262,7 @@ export default {
getAgencytype(dictType).then((res) => {
this.options = res.data;
});
this.infolist()
},
infolist() {
this.routeId = this.$route.query.id;
@ -1459,15 +1398,7 @@ export default {
this.form.templateId = item.templateId;
this.form.templateName = item.templateName;
},
// topclickevent(index) {
// this.listindex = index;
// this.itemindex = 0;
// },
// bottomclickevent(uitem, index, uindex) {
// this.form = uitem;
// this.listindex = index;
// this.itemindex = uindex;
// },
bottomclickevent(uitem, index, uindex) {
if (
this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" &&
@ -1605,13 +1536,16 @@ export default {
this.lists.splice(index, 1);
}
},
// addtriggerCondition() {
// this.updata.push({});
// },
},
};
</script>
<style scoped lang="scss">
::v-deep .el-input.is-disabled .el-input__inner {
background-color: #fff !important;
color: #606266 !important;
}
.el-icon-arrow-down {
margin-left: 50px;
}
@ -1721,6 +1655,7 @@ export default {
::v-deep .el-input__inner {
color: black;
font-size: 13px;
cursor: default !important;
}
}
}
@ -1777,22 +1712,8 @@ export default {
.title {
display: flex;
// align-items: center;
padding-left: 100px;
// height: 400px;
margin-left: 100px;
// div {
// // display: flex;
// // padding-left: 27px;
// // margin-left: 3%;
// font-weight: 600;
// // align-items: center;
// }
.el-icon-arrow-down {
// color: #409EFF;
// margin-top: 10px;
// margin-left: 30px;
}
.select {
font-weight: 550;
// margin-left: 10%;