子路径修改
This commit is contained in:
parent
57f72f18e0
commit
29f7432150
@ -216,15 +216,6 @@
|
|||||||
:value="item.dictValue"
|
:value="item.dictValue"
|
||||||
>
|
>
|
||||||
</el-option>
|
</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-select>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="item.routeNodeDay"
|
v-model="item.routeNodeDay"
|
||||||
@ -235,10 +226,7 @@
|
|||||||
<span>天</span>
|
<span>天</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<i
|
<i class="el-icon-delete" @click="delitemh(item, index)"></i>
|
||||||
class="el-icon-delete"
|
|
||||||
@click="delitemlisth(item, index)"
|
|
||||||
></i>
|
|
||||||
<i
|
<i
|
||||||
class="el-icon-circle-plus-outline"
|
class="el-icon-circle-plus-outline"
|
||||||
@click="additem(item)"
|
@click="additem(item)"
|
||||||
@ -268,16 +256,6 @@
|
|||||||
>
|
>
|
||||||
<p style="height: 16px">{{ uitem.taskSubdivisionName }}</p>
|
<p style="height: 16px">{{ uitem.taskSubdivisionName }}</p>
|
||||||
</el-card>
|
</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-item>
|
||||||
</el-timeline>
|
</el-timeline>
|
||||||
</div>
|
</div>
|
||||||
@ -346,7 +324,7 @@
|
|||||||
prop=""
|
prop=""
|
||||||
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'"
|
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'"
|
||||||
>
|
>
|
||||||
<question
|
<question
|
||||||
@on-template="questionontemplate"
|
@on-template="questionontemplate"
|
||||||
:templateId="form.templateId"
|
:templateId="form.templateId"
|
||||||
:templateName="form.templateName"
|
:templateName="form.templateName"
|
||||||
@ -717,7 +695,6 @@
|
|||||||
v-if="index != 0"
|
v-if="index != 0"
|
||||||
></el-button>
|
></el-button>
|
||||||
|
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
@ -949,18 +926,12 @@ export default {
|
|||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.form = this.lists[0].list[0];
|
// this.form = this.lists[0].list[0];
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
delitemlisth(item, index) {
|
// 短信提醒
|
||||||
item.list.splice(this.itemindex, 1);
|
|
||||||
if (item.list.length == 0) {
|
|
||||||
this.lists.splice(index, 1);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
infolistword() {
|
infolistword() {
|
||||||
var dictType = "text_message_remind";
|
var dictType = "text_message_remind";
|
||||||
getAgencytype(dictType).then((res) => {
|
getAgencytype(dictType).then((res) => {
|
||||||
@ -968,6 +939,7 @@ export default {
|
|||||||
// this.taskinfo();
|
// this.taskinfo();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 重播次数
|
||||||
infolistMESSAGE() {
|
infolistMESSAGE() {
|
||||||
var dictType = "redial_times";
|
var dictType = "redial_times";
|
||||||
getAgencytype(dictType).then((res) => {
|
getAgencytype(dictType).then((res) => {
|
||||||
@ -975,6 +947,7 @@ export default {
|
|||||||
this.taskinfo();
|
this.taskinfo();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 弹框确定
|
||||||
upload() {
|
upload() {
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
lock: true,
|
lock: true,
|
||||||
@ -992,12 +965,13 @@ export default {
|
|||||||
this.$notify({
|
this.$notify({
|
||||||
type: "success",
|
type: "success",
|
||||||
title: "提示",
|
title: "提示",
|
||||||
message: "修改触发条件成功成功",
|
message: "修改触发条件成功",
|
||||||
});
|
});
|
||||||
this.infolist();
|
this.infolist();
|
||||||
this.openfalse();
|
this.openfalse();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 关闭弹框
|
||||||
openfalse() {
|
openfalse() {
|
||||||
this.openlist.triggerConditionList = [
|
this.openlist.triggerConditionList = [
|
||||||
{
|
{
|
||||||
@ -1016,6 +990,7 @@ export default {
|
|||||||
this.open = false;
|
this.open = false;
|
||||||
this.resetForm("openlist");
|
this.resetForm("openlist");
|
||||||
},
|
},
|
||||||
|
// 批量新增添加属性
|
||||||
addtriggerCondition() {
|
addtriggerCondition() {
|
||||||
this.idd++;
|
this.idd++;
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -1035,9 +1010,9 @@ export default {
|
|||||||
this.$message.error("最多批量添加2条");
|
this.$message.error("最多批量添加2条");
|
||||||
} else {
|
} else {
|
||||||
this.openlist.triggerConditionList.push(obj);
|
this.openlist.triggerConditionList.push(obj);
|
||||||
// console.log(this.form)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 删除属性
|
||||||
delitemlistname(index, item) {
|
delitemlistname(index, item) {
|
||||||
this.openlist.triggerConditionList.splice(index, 1);
|
this.openlist.triggerConditionList.splice(index, 1);
|
||||||
},
|
},
|
||||||
@ -1100,9 +1075,7 @@ export default {
|
|||||||
addlistname() {
|
addlistname() {
|
||||||
this.show3 = !this.show3;
|
this.show3 = !this.show3;
|
||||||
},
|
},
|
||||||
delitemlist(index, item) {
|
// 适用范围
|
||||||
this.updata.splice(index, 1);
|
|
||||||
},
|
|
||||||
changeoptions(e) {
|
changeoptions(e) {
|
||||||
this.parentDictCode = this.options.find(
|
this.parentDictCode = this.options.find(
|
||||||
(el) => el.dictValue == e
|
(el) => el.dictValue == e
|
||||||
@ -1114,6 +1087,7 @@ export default {
|
|||||||
this.parentDictCodelist = res.rows;
|
this.parentDictCodelist = res.rows;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 回显
|
||||||
info() {
|
info() {
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
lock: true,
|
lock: true,
|
||||||
@ -1136,12 +1110,7 @@ export default {
|
|||||||
loading.close();
|
loading.close();
|
||||||
this.agreeNumber = res.data.agreeNumber;
|
this.agreeNumber = res.data.agreeNumber;
|
||||||
this.totalNumber = res.data.totalNumber;
|
this.totalNumber = res.data.totalNumber;
|
||||||
console.log(
|
|
||||||
res.data.specialDiseaseNodeList,
|
|
||||||
"res.data.specialDiseaseNodeList"
|
|
||||||
);
|
|
||||||
res.data.specialDiseaseNodeList.forEach((e) => {
|
res.data.specialDiseaseNodeList.forEach((e) => {
|
||||||
console.log(e, "eeeeeeeeeeeeeeeee");
|
|
||||||
if (e.messagePushSign) {
|
if (e.messagePushSign) {
|
||||||
e.messagePushSign = "" + e.messagePushSign;
|
e.messagePushSign = "" + e.messagePushSign;
|
||||||
}
|
}
|
||||||
@ -1161,11 +1130,8 @@ export default {
|
|||||||
"routeNodeName"
|
"routeNodeName"
|
||||||
);
|
);
|
||||||
this.form = this.lists[0].list[0];
|
this.form = this.lists[0].list[0];
|
||||||
console.log(this.form, "this.form");
|
|
||||||
if (this.form.taskType) {
|
if (this.form.taskType) {
|
||||||
console.log(111111111111);
|
|
||||||
this.changeTaskType(this.form.taskType, this.form.taskSubdivision);
|
this.changeTaskType(this.form.taskType, this.form.taskSubdivision);
|
||||||
console.log(this.form.taskSubdivision, "this.form.taskSubdivision");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -1196,7 +1162,6 @@ export default {
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
this.form = this.lists[0].list[0];
|
this.form = this.lists[0].list[0];
|
||||||
console.log(this.form, "6555555555555555");
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleData(list, key, keytwo) {
|
handleData(list, key, keytwo) {
|
||||||
@ -1216,7 +1181,7 @@ export default {
|
|||||||
ite.routeNodeName == item.routeNodeName
|
ite.routeNodeName == item.routeNodeName
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
let keys = [...new Set(array)];
|
let keys = [...new Set(array)];
|
||||||
let newList = keys.map((item) => {
|
let newList = keys.map((item) => {
|
||||||
return {
|
return {
|
||||||
@ -1230,7 +1195,7 @@ export default {
|
|||||||
});
|
});
|
||||||
return newList;
|
return newList;
|
||||||
},
|
},
|
||||||
|
|
||||||
// 且或
|
// 且或
|
||||||
infolistoptionslistS() {
|
infolistoptionslistS() {
|
||||||
var dictType = "trigger_logic";
|
var dictType = "trigger_logic";
|
||||||
@ -1262,12 +1227,12 @@ export default {
|
|||||||
getAgencytype(dictType).then((res) => {
|
getAgencytype(dictType).then((res) => {
|
||||||
this.options = res.data;
|
this.options = res.data;
|
||||||
});
|
});
|
||||||
this.infolist()
|
this.infolist();
|
||||||
},
|
},
|
||||||
|
// 展示触发条件
|
||||||
infolist() {
|
infolist() {
|
||||||
this.routeId = this.$route.query.id;
|
this.routeId = this.$route.query.id;
|
||||||
triggerConditionList(this.routeId).then((res) => {
|
triggerConditionList(this.routeId).then((res) => {
|
||||||
console.log(res, "res");
|
|
||||||
this.openlist.triggerConditionList = res.data;
|
this.openlist.triggerConditionList = res.data;
|
||||||
|
|
||||||
if (res.data.length == 1) {
|
if (res.data.length == 1) {
|
||||||
@ -1295,12 +1260,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//wangeditor传值
|
//wangeditor传值
|
||||||
onNodeContent(item) {
|
onNodeContent(item) {
|
||||||
console.log(item, "itemfu");
|
|
||||||
this.form.nodeContent = item.nodeContent;
|
this.form.nodeContent = item.nodeContent;
|
||||||
var abc = new RegExp("<br>", "g");
|
var abc = new RegExp("<br>", "g");
|
||||||
var bbb = this.form.nodeContent.replace(abc, "");
|
var bbb = this.form.nodeContent.replace(abc, "");
|
||||||
this.form.nodeContent = bbb;
|
this.form.nodeContent = bbb;
|
||||||
console.log(this.form.nodeContent, " this.form.nodeContent");
|
|
||||||
},
|
},
|
||||||
//小程序传值
|
//小程序传值
|
||||||
miniProgramtemplate(item) {
|
miniProgramtemplate(item) {
|
||||||
@ -1322,7 +1285,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 短信
|
// 短信
|
||||||
messageontemplateMESSAGE(item) {
|
messageontemplateMESSAGE(item) {
|
||||||
console.log(item, "2222222");
|
|
||||||
this.form.phoneMessageTemplateId = item.templateId;
|
this.form.phoneMessageTemplateId = item.templateId;
|
||||||
this.form.phoneMessageTemplateName = item.templateName;
|
this.form.phoneMessageTemplateName = item.templateName;
|
||||||
this.form.messagePreview = item.templateContent;
|
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 =
|
||||||
// this.updata.specialDiseaseNodeList.filter(
|
// this.updata.specialDiseaseNodeList.filter(
|
||||||
// (e) =>
|
// (e) =>
|
||||||
@ -1398,8 +1356,9 @@ export default {
|
|||||||
this.form.templateId = item.templateId;
|
this.form.templateId = item.templateId;
|
||||||
this.form.templateName = item.templateName;
|
this.form.templateName = item.templateName;
|
||||||
},
|
},
|
||||||
|
|
||||||
bottomclickevent(uitem, index, uindex) {
|
bottomclickevent(uitem, index, uindex) {
|
||||||
|
console.log(uitem, index, uindex, "uitem, index, uindex");
|
||||||
if (
|
if (
|
||||||
this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" &&
|
this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" &&
|
||||||
this.form.taskSubdivisiontemplateType != "PROPAGANDA"
|
this.form.taskSubdivisiontemplateType != "PROPAGANDA"
|
||||||
@ -1487,56 +1446,72 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 添加管理路径节点
|
||||||
addlist() {
|
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({
|
this.lists.push({
|
||||||
routeNodeName: "",
|
routeNodeName: "",
|
||||||
routeNodeDay: "",
|
routeNodeDay: "",
|
||||||
list: [
|
list: [
|
||||||
{
|
{
|
||||||
nodeContent: "",
|
nodeContent: "<p></p>",
|
||||||
templateId: "",
|
templateId: "",
|
||||||
templateName: "",
|
templateName: "",
|
||||||
taskType: "",
|
taskType: "",
|
||||||
taskTypeName: "",
|
officialRemindContent: "",
|
||||||
taskSubdivision: "",
|
taskSubdivision: "",
|
||||||
taskSubdivisionName: "",
|
taskSubdivisionName: "",
|
||||||
|
appletRemindContent: "",
|
||||||
|
appletPromptDescription: "",
|
||||||
taskStatus: "",
|
taskStatus: "",
|
||||||
secondClassifyDescribe: "",
|
secondClassifyDescribe: "",
|
||||||
executionTime: "",
|
executionTime: "",
|
||||||
appletPushSign: "0",
|
appletPushSign: "0",
|
||||||
officialPushSign: "0",
|
officialPushSign: "0",
|
||||||
messagePushSign: "0",
|
messagePushSign: "0",
|
||||||
|
messagePreview: "",
|
||||||
taskSubdivisiontemplateType: "",
|
taskSubdivisiontemplateType: "",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
|
// 添加节点
|
||||||
additem(item) {
|
additem(item) {
|
||||||
item.list.push({
|
item.list.push({
|
||||||
nodeContent: "",
|
nodeContent: "<p></p>",
|
||||||
templateId: "",
|
templateId: "",
|
||||||
templateName: "",
|
templateName: "",
|
||||||
taskType: "",
|
taskType: "",
|
||||||
taskTypeName: "",
|
officialRemindContent: "",
|
||||||
taskSubdivision: "",
|
taskSubdivision: "",
|
||||||
taskSubdivisionName: "",
|
taskSubdivisionName: "",
|
||||||
|
appletRemindContent: "",
|
||||||
|
appletPromptDescription: "",
|
||||||
taskStatus: "",
|
taskStatus: "",
|
||||||
secondClassifyDescribe: "",
|
secondClassifyDescribe: "",
|
||||||
executionTime: "",
|
executionTime: "",
|
||||||
appletPushSign: "0",
|
appletPushSign: "0",
|
||||||
officialPushSign: "0",
|
officialPushSign: "0",
|
||||||
messagePushSign: "0",
|
messagePushSign: "0",
|
||||||
|
messagePreview: "",
|
||||||
taskSubdivisiontemplateType: "",
|
taskSubdivisiontemplateType: "",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 删除节点
|
||||||
delitemh(item, index) {
|
delitemh(item, index) {
|
||||||
item.list.splice(this.itemindex, 1);
|
item.list.splice(this.itemindex, 1);
|
||||||
if (item.list.length == 0) {
|
if (item.list.length == 0) {
|
||||||
this.lists.splice(index, 1);
|
this.lists.splice(index, 1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -45,15 +45,7 @@
|
|||||||
:value="item.dictValue"
|
:value="item.dictValue"
|
||||||
>
|
>
|
||||||
</el-option>
|
</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-select>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="item.routeNodeDay"
|
v-model="item.routeNodeDay"
|
||||||
@ -830,6 +822,8 @@ export default {
|
|||||||
this.form.templateName = item.templateName;
|
this.form.templateName = item.templateName;
|
||||||
},
|
},
|
||||||
bottomclickevent(uitem, index, uindex) {
|
bottomclickevent(uitem, index, uindex) {
|
||||||
|
console.log(uitem, index, uindex, "uitem, index, uindex");
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" &&
|
this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" &&
|
||||||
this.form.taskSubdivisiontemplateType != "PROPAGANDA"
|
this.form.taskSubdivisiontemplateType != "PROPAGANDA"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user