子路径修改回显问题

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

View File

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