子路径修改

This commit is contained in:
闫晓茹 2024-06-21 09:22:21 +08:00
parent 57f72f18e0
commit 29f7432150
2 changed files with 42 additions and 73 deletions

View File

@ -216,15 +216,6 @@
:value="item.dictValue"
>
</el-option>
<!-- <el-option label="出院后" value="AFTER_DISCHARGE" />
<el-option label="入院后" value="AFTER_ADMISSION" />
<el-option label="就诊后" value="AFTER_CONSULTATION" />
<el-option
label="就诊/出院后"
value="AFTER_VISIT_DISCHARGE"
/>
<el-option label="术前" value="PREOPERATIVE" />
<el-option label="术后" value="POSTOPERATIVE" /> -->
</el-select>
<el-input
v-model="item.routeNodeDay"
@ -235,10 +226,7 @@
<span></span>
</div>
<div>
<i
class="el-icon-delete"
@click="delitemlisth(item, index)"
></i>
<i class="el-icon-delete" @click="delitemh(item, index)"></i>
<i
class="el-icon-circle-plus-outline"
@click="additem(item)"
@ -268,16 +256,6 @@
>
<p style="height: 16px">{{ uitem.taskSubdivisionName }}</p>
</el-card>
<!--
<el-card
v-for="(uitem, uindex) in item.list"
:key="uitem.id"
@click.native="bottomclickevent(uitem, index, uindex)"
:class="listindex == index && itemindex == uindex ? 'cards' : ''"
>
<h3 style="height: 20px">{{ uitem.taskTypeName }}</h3>
<p style="height: 16px">{{ uitem.taskSubdivisionName }}</p>
</el-card> -->
</el-timeline-item>
</el-timeline>
</div>
@ -346,7 +324,7 @@
prop=""
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'"
>
<question
<question
@on-template="questionontemplate"
:templateId="form.templateId"
:templateName="form.templateName"
@ -717,7 +695,6 @@
v-if="index != 0"
></el-button>
<el-button
type="primary"
plain
@ -949,18 +926,12 @@ export default {
},
deep: true,
},
},
mounted() {
// this.form = this.lists[0].list[0];
},
methods: {
delitemlisth(item, index) {
item.list.splice(this.itemindex, 1);
if (item.list.length == 0) {
this.lists.splice(index, 1);
}
},
//
infolistword() {
var dictType = "text_message_remind";
getAgencytype(dictType).then((res) => {
@ -968,6 +939,7 @@ export default {
// this.taskinfo();
});
},
//
infolistMESSAGE() {
var dictType = "redial_times";
getAgencytype(dictType).then((res) => {
@ -975,6 +947,7 @@ export default {
this.taskinfo();
});
},
//
upload() {
const loading = this.$loading({
lock: true,
@ -992,12 +965,13 @@ export default {
this.$notify({
type: "success",
title: "提示",
message: "修改触发条件成功成功",
message: "修改触发条件成功",
});
this.infolist();
this.openfalse();
});
},
//
openfalse() {
this.openlist.triggerConditionList = [
{
@ -1016,6 +990,7 @@ export default {
this.open = false;
this.resetForm("openlist");
},
//
addtriggerCondition() {
this.idd++;
var obj = {
@ -1035,9 +1010,9 @@ export default {
this.$message.error("最多批量添加2条");
} else {
this.openlist.triggerConditionList.push(obj);
// console.log(this.form)
}
},
//
delitemlistname(index, item) {
this.openlist.triggerConditionList.splice(index, 1);
},
@ -1100,9 +1075,7 @@ export default {
addlistname() {
this.show3 = !this.show3;
},
delitemlist(index, item) {
this.updata.splice(index, 1);
},
//
changeoptions(e) {
this.parentDictCode = this.options.find(
(el) => el.dictValue == e
@ -1114,6 +1087,7 @@ export default {
this.parentDictCodelist = res.rows;
});
},
//
info() {
const loading = this.$loading({
lock: true,
@ -1136,12 +1110,7 @@ export default {
loading.close();
this.agreeNumber = res.data.agreeNumber;
this.totalNumber = res.data.totalNumber;
console.log(
res.data.specialDiseaseNodeList,
"res.data.specialDiseaseNodeList"
);
res.data.specialDiseaseNodeList.forEach((e) => {
console.log(e, "eeeeeeeeeeeeeeeee");
if (e.messagePushSign) {
e.messagePushSign = "" + e.messagePushSign;
}
@ -1161,11 +1130,8 @@ export default {
"routeNodeName"
);
this.form = this.lists[0].list[0];
console.log(this.form, "this.form");
if (this.form.taskType) {
console.log(111111111111);
this.changeTaskType(this.form.taskType, this.form.taskSubdivision);
console.log(this.form.taskSubdivision, "this.form.taskSubdivision");
}
});
} else {
@ -1196,7 +1162,6 @@ export default {
],
});
this.form = this.lists[0].list[0];
console.log(this.form, "6555555555555555");
}
},
handleData(list, key, keytwo) {
@ -1216,7 +1181,7 @@ export default {
ite.routeNodeName == item.routeNodeName
)
);
let keys = [...new Set(array)];
let newList = keys.map((item) => {
return {
@ -1230,7 +1195,7 @@ export default {
});
return newList;
},
//
infolistoptionslistS() {
var dictType = "trigger_logic";
@ -1262,12 +1227,12 @@ export default {
getAgencytype(dictType).then((res) => {
this.options = res.data;
});
this.infolist()
this.infolist();
},
//
infolist() {
this.routeId = this.$route.query.id;
triggerConditionList(this.routeId).then((res) => {
console.log(res, "res");
this.openlist.triggerConditionList = res.data;
if (res.data.length == 1) {
@ -1295,12 +1260,10 @@ export default {
},
//wangeditor
onNodeContent(item) {
console.log(item, "itemfu");
this.form.nodeContent = item.nodeContent;
var abc = new RegExp("<br>", "g");
var bbb = this.form.nodeContent.replace(abc, "");
this.form.nodeContent = bbb;
console.log(this.form.nodeContent, " this.form.nodeContent");
},
//
miniProgramtemplate(item) {
@ -1322,7 +1285,6 @@ export default {
},
//
messageontemplateMESSAGE(item) {
console.log(item, "2222222");
this.form.phoneMessageTemplateId = item.templateId;
this.form.phoneMessageTemplateName = item.templateName;
this.form.messagePreview = item.templateContent;
@ -1364,10 +1326,6 @@ export default {
})
: "";
});
console.log(
this.itemlist.specialDiseaseNodeList,
" this.itemlist.specialDiseaseNodeList"
);
// this.updata.specialDiseaseNodeList =
// this.updata.specialDiseaseNodeList.filter(
// (e) =>
@ -1398,8 +1356,9 @@ export default {
this.form.templateId = item.templateId;
this.form.templateName = item.templateName;
},
bottomclickevent(uitem, index, uindex) {
console.log(uitem, index, uindex, "uitem, index, uindex");
if (
this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" &&
this.form.taskSubdivisiontemplateType != "PROPAGANDA"
@ -1487,56 +1446,72 @@ export default {
}
});
},
//
addlist() {
list(this.parentDictCode).then((res) => {
// this.parentDictCodelist = res.rows;
res.rows.forEach((e) => {
this.lists.forEach((el) => {
el.routeNodeName = e.dictLabel;
});
});
});
this.lists.push({
routeNodeName: "",
routeNodeDay: "",
list: [
{
nodeContent: "",
nodeContent: "<p></p>",
templateId: "",
templateName: "",
taskType: "",
taskTypeName: "",
officialRemindContent: "",
taskSubdivision: "",
taskSubdivisionName: "",
appletRemindContent: "",
appletPromptDescription: "",
taskStatus: "",
secondClassifyDescribe: "",
executionTime: "",
appletPushSign: "0",
officialPushSign: "0",
messagePushSign: "0",
messagePreview: "",
taskSubdivisiontemplateType: "",
},
],
});
// },
},
//
additem(item) {
item.list.push({
nodeContent: "",
nodeContent: "<p></p>",
templateId: "",
templateName: "",
taskType: "",
taskTypeName: "",
officialRemindContent: "",
taskSubdivision: "",
taskSubdivisionName: "",
appletRemindContent: "",
appletPromptDescription: "",
taskStatus: "",
secondClassifyDescribe: "",
executionTime: "",
appletPushSign: "0",
officialPushSign: "0",
messagePushSign: "0",
messagePreview: "",
taskSubdivisiontemplateType: "",
});
},
//
delitemh(item, index) {
item.list.splice(this.itemindex, 1);
if (item.list.length == 0) {
this.lists.splice(index, 1);
}
},
},
};
</script>

View File

@ -45,15 +45,7 @@
:value="item.dictValue"
>
</el-option>
<!-- <el-option label="出院后" value="AFTER_DISCHARGE" />
<el-option label="入院后" value="AFTER_ADMISSION" />
<el-option label="就诊后" value="AFTER_CONSULTATION" />
<el-option
label="就诊/出院后"
value="AFTER_VISIT_DISCHARGE"
/>
<el-option label="术前" value="PREOPERATIVE" />
<el-option label="术后" value="POSTOPERATIVE" /> -->
</el-select>
<el-input
v-model="item.routeNodeDay"
@ -830,6 +822,8 @@ export default {
this.form.templateName = item.templateName;
},
bottomclickevent(uitem, index, uindex) {
console.log(uitem, index, uindex, "uitem, index, uindex");
if (
this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" &&
this.form.taskSubdivisiontemplateType != "PROPAGANDA"