手动创建任务
This commit is contained in:
parent
20303f7cee
commit
9d2bf3e236
@ -40,17 +40,33 @@
|
||||
:key="index"
|
||||
>
|
||||
<!-- 且或 -->
|
||||
<div style="width: 60px; position: absolute; left: 3%; top: 220px;background-color: red;"
|
||||
v-if="updata.triggerConditionList.length === 3">
|
||||
<img src="@/assets/images/images.png" class="login-code-img" />
|
||||
<el-select v-model="item.triggerLogic" style="width: 60px" placeholder=""
|
||||
@change="changetriggerLogicsname($event, index)">
|
||||
<el-option v-for="itemh in optionslistS" :key="itemh.dictValue" :label="itemh.dictLabel"
|
||||
:value="itemh.dictValue">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
|
||||
<div
|
||||
style="
|
||||
width: 60px;
|
||||
position: absolute;
|
||||
left: 3%;
|
||||
top: 220px;
|
||||
background-color: red;
|
||||
"
|
||||
v-if="updata.triggerConditionList.length === 3"
|
||||
>
|
||||
<img src="@/assets/images/images.png" class="login-code-img" />
|
||||
<el-select
|
||||
v-model="item.triggerLogic"
|
||||
style="width: 60px"
|
||||
placeholder=""
|
||||
@change="changetriggerLogicsname($event, index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="itemh in optionslistS"
|
||||
:key="itemh.dictValue"
|
||||
:label="itemh.dictLabel"
|
||||
:value="itemh.dictValue"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
|
||||
<!-- 诊断 在这里-->
|
||||
<el-select
|
||||
v-model="item.triggerConditionCode"
|
||||
@ -80,7 +96,7 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-input
|
||||
v-if="item.dictDataType == 'STRING'||!dictDataType"
|
||||
v-if="item.dictDataType == 'STRING' || !dictDataType"
|
||||
v-model="item.triggerConditionValue"
|
||||
style="width: 300px"
|
||||
placeholder="请输入触发条件"
|
||||
@ -170,7 +186,6 @@
|
||||
></i>
|
||||
</div> -->
|
||||
<!-- <el-button @click="submit" style="float:right">保存触发条件</el-button> -->
|
||||
|
||||
</el-form>
|
||||
</div>
|
||||
<div class="nodes">
|
||||
@ -384,6 +399,17 @@
|
||||
"
|
||||
>
|
||||
<span>推送方式:公众号</span>
|
||||
<div class="pushMethod">
|
||||
模板:
|
||||
<span>
|
||||
<officialAccount
|
||||
@on-template="officialAccountontemplate"
|
||||
:templateId="formInline.officialTemplateId"
|
||||
:templateName="formInline.officialTemplateName"
|
||||
>
|
||||
</officialAccount>
|
||||
</span>
|
||||
</div>
|
||||
<el-switch
|
||||
v-model="formInline.officialPushSign"
|
||||
active-color="#13ce66"
|
||||
@ -401,6 +427,17 @@
|
||||
"
|
||||
>
|
||||
<span>推送方式:小程序</span>
|
||||
<div class="pushMethod">
|
||||
模板:
|
||||
<span>
|
||||
<miniProgram
|
||||
@on-template="miniProgramtemplate"
|
||||
:templateId="formInline.appletTemplateId"
|
||||
:templateName="formInline.appletTemplateName"
|
||||
>
|
||||
</miniProgram>
|
||||
</span>
|
||||
</div>
|
||||
<el-switch
|
||||
v-model="formInline.appletPushSign"
|
||||
active-color="#13ce66"
|
||||
@ -409,6 +446,34 @@
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
<div
|
||||
class="PushMethod"
|
||||
v-if="
|
||||
formInline.taskType == 'TEXT_REMIND' ||
|
||||
formInline.taskType == 'PROPAGANDA_ARTICLE' ||
|
||||
formInline.taskType == 'QUESTIONNAIRE_SCALE'
|
||||
"
|
||||
>
|
||||
<span
|
||||
style="display: inline-block; width: 128px"
|
||||
>推送方式:短信</span
|
||||
>
|
||||
<div class="pushMethod">
|
||||
模板:
|
||||
<message
|
||||
@on-template="messageontemplateMESSAGE"
|
||||
:templateId="formInline.phoneMessageTemplateId"
|
||||
:templateName="formInline.phoneMessageTemplateName"
|
||||
></message>
|
||||
</div>
|
||||
<el-switch
|
||||
v-model="formInline.messagePushSign"
|
||||
active-color="#13ce66"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
>
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="PushMethodrg"
|
||||
@ -485,7 +550,7 @@
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="itemlist">
|
||||
重播次数:
|
||||
重播次数111:
|
||||
<span>
|
||||
<el-select
|
||||
v-model="formInline.phoneRedialTimes"
|
||||
@ -562,20 +627,22 @@ import scriptphone from "../components/script.vue";
|
||||
import scripts from "../components/script.vue";
|
||||
import message from "../components/message.vue";
|
||||
import question from "../components/question.vue";
|
||||
import officialAccount from "../components/officialAccount.vue";
|
||||
import miniProgram from "../components/miniProgram.vue";
|
||||
import { signrouteadd } from "@/api/system/ManuallyCreatingTasks";
|
||||
import { getAgencytype } from "@/api/system/agency";
|
||||
import { list,triggerCondition,getList, } from "@/api/system/specialDiseaseNode";
|
||||
import { list, triggerCondition, getList, } from "@/api/system/specialDiseaseNode";
|
||||
|
||||
export default {
|
||||
components: { scriptphone, question, propaganda, scripts, message },
|
||||
components: { scriptphone, question, propaganda, scripts, message, officialAccount, miniProgram },
|
||||
name: "ManuallyCreatingTasks",
|
||||
data() {
|
||||
return {
|
||||
optionsname:'',
|
||||
optionsname: '',
|
||||
options: [],
|
||||
optionslist: [],
|
||||
optionslistS: [],
|
||||
optionslisttime:[],
|
||||
optionslisttime: [],
|
||||
parentDictCodelist: [],
|
||||
updata: {
|
||||
signPatientRecordId: "",
|
||||
@ -660,8 +727,8 @@ export default {
|
||||
this.updata.departmentName = this.$route.query.departmentName;
|
||||
},
|
||||
methods: {
|
||||
// 且或
|
||||
infolistoptionslistS() {
|
||||
// 且或
|
||||
infolistoptionslistS() {
|
||||
var dictType = "trigger_logic";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.optionslistS = res.data;
|
||||
@ -720,8 +787,8 @@ export default {
|
||||
this.$forceUpdate();
|
||||
});
|
||||
},
|
||||
// 包含
|
||||
optiononditionOperator() {
|
||||
// 包含
|
||||
optiononditionOperator() {
|
||||
var dictType = "trigger_condition_operator";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.updata.triggerConditionList.optionstriggerConditionOperator = res.data;
|
||||
@ -799,8 +866,8 @@ export default {
|
||||
this.parentDictCodelist = res.rows;
|
||||
});
|
||||
},
|
||||
// 删除属性
|
||||
delitemlistname(index, item) {
|
||||
// 删除属性
|
||||
delitemlistname(index, item) {
|
||||
this.updata.triggerConditionList.splice(index, 1);
|
||||
},
|
||||
addtriggerCondition() {
|
||||
@ -849,12 +916,25 @@ export default {
|
||||
this.formInline.phoneMessageTemplateName = item.templateName;
|
||||
this.formInline.messagePreview = item.templateContent;
|
||||
},
|
||||
|
||||
// 话术
|
||||
messageontemplateword(item) {
|
||||
this.formInline.phoneId = item.templateId;
|
||||
this.formInline.phoneTemplateName = item.templateName;
|
||||
// this.form.messagePreview = item.templateContent;
|
||||
},
|
||||
//公众号传值
|
||||
officialAccountontemplate(item) {
|
||||
this.formInline.officialTemplateId = item.templateId;
|
||||
this.formInline.officialTemplateName = item.templateName;
|
||||
this.formInline.officialRemindContent = item.templateContent;
|
||||
},
|
||||
//小程序传值
|
||||
miniProgramtemplate(item) {
|
||||
this.formInline.appletTemplateId = item.templateId;
|
||||
this.formInline.appletTemplateName = item.templateName;
|
||||
this.formInline.appletRemindContent = item.templateContent;
|
||||
},
|
||||
clicktimelineitem(item, index) {
|
||||
this.formInline = item;
|
||||
this.listindex = index;
|
||||
@ -888,19 +968,19 @@ export default {
|
||||
delitem(item, index, list) {
|
||||
list.splice(index, 1);
|
||||
},
|
||||
changephoneDialMethod(e){
|
||||
console.log(e,'e')
|
||||
if(e=='AI'){
|
||||
changephoneDialMethod(e) {
|
||||
console.log(e, 'e')
|
||||
if (e == 'AI') {
|
||||
// this.form.templateId=''
|
||||
this.formInline.phoneId=''
|
||||
this.formInline.phoneTemplateName=''
|
||||
this.formInline.phoneId = ''
|
||||
this.formInline.phoneTemplateName = ''
|
||||
|
||||
}else if(e=='COMMON'){
|
||||
this.formInline.questionInfoId=''
|
||||
this.formInline.questionInfoName=''
|
||||
} else if (e == 'COMMON') {
|
||||
this.formInline.questionInfoId = ''
|
||||
this.formInline.questionInfoName = ''
|
||||
|
||||
this.formInline.phoneId=''
|
||||
this.formInline.phoneTemplateName=''
|
||||
this.formInline.phoneId = ''
|
||||
this.formInline.phoneTemplateName = ''
|
||||
}
|
||||
},
|
||||
upload() {
|
||||
@ -911,7 +991,7 @@ export default {
|
||||
el.templateType = "QUESTIONNAIRE";
|
||||
} else if (el.phoneDialMethod == "COMMON" && el.phoneId) {
|
||||
el.templateType = "SCRIPT";
|
||||
}else if (el.phoneDialMethod == "AI" && el.phoneId) {
|
||||
} else if (el.phoneDialMethod == "AI" && el.phoneId) {
|
||||
el.templateType = "SCRIPT";
|
||||
}
|
||||
});
|
||||
@ -922,7 +1002,7 @@ export default {
|
||||
|
||||
});
|
||||
delete this.updata.triggerConditionList.optionstriggerConditionOperator
|
||||
console.log(this.updata,'updata')
|
||||
console.log(this.updata, 'updata')
|
||||
// return
|
||||
|
||||
signrouteadd(this.updata).then((res) => {
|
||||
@ -988,19 +1068,19 @@ export default {
|
||||
height: 30px;
|
||||
margin-top: 30px;
|
||||
line-height: 30px;
|
||||
font-size: 13px;
|
||||
font-size: 14px;
|
||||
color: #64666a;
|
||||
.spanname {
|
||||
pointer-events: none;
|
||||
}
|
||||
::v-deep .el-input__inner {
|
||||
color: black;
|
||||
font-size: 13px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: black;
|
||||
font-size: 13px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1014,23 +1094,20 @@ export default {
|
||||
// position: relative;
|
||||
// padding-left: 20px;
|
||||
.node {
|
||||
margin-bottom: 10px;
|
||||
margin-left: 102px;
|
||||
margin-bottom: 10px;
|
||||
margin-left: 102px;
|
||||
|
||||
.el-icon-delete {
|
||||
padding-left: 10px;
|
||||
.el-icon-delete {
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
.selectnamelist {
|
||||
// position: absolute;
|
||||
// right: 54px;
|
||||
// top: -8px;
|
||||
}
|
||||
|
||||
|
||||
.PushMethod {
|
||||
height: 100px;
|
||||
padding: 20px;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user