手动创建任务

This commit is contained in:
shidongli 2024-07-11 10:19:28 +08:00
parent 20303f7cee
commit 9d2bf3e236

View File

@ -40,13 +40,29 @@
:key="index" :key="index"
> >
<!-- 且或 --> <!-- 且或 -->
<div style="width: 60px; position: absolute; left: 3%; top: 220px;background-color: red;" <div
v-if="updata.triggerConditionList.length === 3"> 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" /> <img src="@/assets/images/images.png" class="login-code-img" />
<el-select v-model="item.triggerLogic" style="width: 60px" placeholder="" <el-select
@change="changetriggerLogicsname($event, index)"> v-model="item.triggerLogic"
<el-option v-for="itemh in optionslistS" :key="itemh.dictValue" :label="itemh.dictLabel" style="width: 60px"
:value="itemh.dictValue"> placeholder=""
@change="changetriggerLogicsname($event, index)"
>
<el-option
v-for="itemh in optionslistS"
:key="itemh.dictValue"
:label="itemh.dictLabel"
:value="itemh.dictValue"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
@ -80,7 +96,7 @@
</el-option> </el-option>
</el-select> </el-select>
<el-input <el-input
v-if="item.dictDataType == 'STRING'||!dictDataType" v-if="item.dictDataType == 'STRING' || !dictDataType"
v-model="item.triggerConditionValue" v-model="item.triggerConditionValue"
style="width: 300px" style="width: 300px"
placeholder="请输入触发条件" placeholder="请输入触发条件"
@ -170,7 +186,6 @@
></i> ></i>
</div> --> </div> -->
<!-- <el-button @click="submit" style="float:right">保存触发条件</el-button> --> <!-- <el-button @click="submit" style="float:right">保存触发条件</el-button> -->
</el-form> </el-form>
</div> </div>
<div class="nodes"> <div class="nodes">
@ -384,6 +399,17 @@
" "
> >
<span>推送方式公众号</span> <span>推送方式公众号</span>
<div class="pushMethod">
模板
<span>
<officialAccount
@on-template="officialAccountontemplate"
:templateId="formInline.officialTemplateId"
:templateName="formInline.officialTemplateName"
>
</officialAccount>
</span>
</div>
<el-switch <el-switch
v-model="formInline.officialPushSign" v-model="formInline.officialPushSign"
active-color="#13ce66" active-color="#13ce66"
@ -401,6 +427,17 @@
" "
> >
<span>推送方式小程序</span> <span>推送方式小程序</span>
<div class="pushMethod">
模板
<span>
<miniProgram
@on-template="miniProgramtemplate"
:templateId="formInline.appletTemplateId"
:templateName="formInline.appletTemplateName"
>
</miniProgram>
</span>
</div>
<el-switch <el-switch
v-model="formInline.appletPushSign" v-model="formInline.appletPushSign"
active-color="#13ce66" active-color="#13ce66"
@ -409,6 +446,34 @@
> >
</el-switch> </el-switch>
</div> </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>
<div <div
class="PushMethodrg" class="PushMethodrg"
@ -485,7 +550,7 @@
</div> </div>
<div class="flex"> <div class="flex">
<div class="itemlist"> <div class="itemlist">
重播次数 重播次数111
<span> <span>
<el-select <el-select
v-model="formInline.phoneRedialTimes" v-model="formInline.phoneRedialTimes"
@ -562,20 +627,22 @@ import scriptphone from "../components/script.vue";
import scripts from "../components/script.vue"; import scripts from "../components/script.vue";
import message from "../components/message.vue"; import message from "../components/message.vue";
import question from "../components/question.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 { signrouteadd } from "@/api/system/ManuallyCreatingTasks";
import { getAgencytype } from "@/api/system/agency"; import { getAgencytype } from "@/api/system/agency";
import { list,triggerCondition,getList, } from "@/api/system/specialDiseaseNode"; import { list, triggerCondition, getList, } from "@/api/system/specialDiseaseNode";
export default { export default {
components: { scriptphone, question, propaganda, scripts, message }, components: { scriptphone, question, propaganda, scripts, message, officialAccount, miniProgram },
name: "ManuallyCreatingTasks", name: "ManuallyCreatingTasks",
data() { data() {
return { return {
optionsname:'', optionsname: '',
options: [], options: [],
optionslist: [], optionslist: [],
optionslistS: [], optionslistS: [],
optionslisttime:[], optionslisttime: [],
parentDictCodelist: [], parentDictCodelist: [],
updata: { updata: {
signPatientRecordId: "", signPatientRecordId: "",
@ -849,12 +916,25 @@ export default {
this.formInline.phoneMessageTemplateName = item.templateName; this.formInline.phoneMessageTemplateName = item.templateName;
this.formInline.messagePreview = item.templateContent; this.formInline.messagePreview = item.templateContent;
}, },
// //
messageontemplateword(item) { messageontemplateword(item) {
this.formInline.phoneId = item.templateId; this.formInline.phoneId = item.templateId;
this.formInline.phoneTemplateName = item.templateName; this.formInline.phoneTemplateName = item.templateName;
// this.form.messagePreview = item.templateContent; // 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) { clicktimelineitem(item, index) {
this.formInline = item; this.formInline = item;
this.listindex = index; this.listindex = index;
@ -888,19 +968,19 @@ export default {
delitem(item, index, list) { delitem(item, index, list) {
list.splice(index, 1); list.splice(index, 1);
}, },
changephoneDialMethod(e){ changephoneDialMethod(e) {
console.log(e,'e') console.log(e, 'e')
if(e=='AI'){ if (e == 'AI') {
// this.form.templateId='' // this.form.templateId=''
this.formInline.phoneId='' this.formInline.phoneId = ''
this.formInline.phoneTemplateName='' this.formInline.phoneTemplateName = ''
}else if(e=='COMMON'){ } else if (e == 'COMMON') {
this.formInline.questionInfoId='' this.formInline.questionInfoId = ''
this.formInline.questionInfoName='' this.formInline.questionInfoName = ''
this.formInline.phoneId='' this.formInline.phoneId = ''
this.formInline.phoneTemplateName='' this.formInline.phoneTemplateName = ''
} }
}, },
upload() { upload() {
@ -911,7 +991,7 @@ export default {
el.templateType = "QUESTIONNAIRE"; el.templateType = "QUESTIONNAIRE";
} else if (el.phoneDialMethod == "COMMON" && el.phoneId) { } else if (el.phoneDialMethod == "COMMON" && el.phoneId) {
el.templateType = "SCRIPT"; el.templateType = "SCRIPT";
}else if (el.phoneDialMethod == "AI" && el.phoneId) { } else if (el.phoneDialMethod == "AI" && el.phoneId) {
el.templateType = "SCRIPT"; el.templateType = "SCRIPT";
} }
}); });
@ -922,7 +1002,7 @@ export default {
}); });
delete this.updata.triggerConditionList.optionstriggerConditionOperator delete this.updata.triggerConditionList.optionstriggerConditionOperator
console.log(this.updata,'updata') console.log(this.updata, 'updata')
// return // return
signrouteadd(this.updata).then((res) => { signrouteadd(this.updata).then((res) => {
@ -988,19 +1068,19 @@ export default {
height: 30px; height: 30px;
margin-top: 30px; margin-top: 30px;
line-height: 30px; line-height: 30px;
font-size: 13px; font-size: 14px;
color: #64666a; color: #64666a;
.spanname { .spanname {
pointer-events: none; pointer-events: none;
} }
::v-deep .el-input__inner { ::v-deep .el-input__inner {
color: black; color: black;
font-size: 13px; font-size: 14px;
} }
span { span {
color: black; color: black;
font-size: 13px; font-size: 14px;
} }
} }
} }
@ -1020,9 +1100,7 @@ export default {
.el-icon-delete { .el-icon-delete {
padding-left: 10px; padding-left: 10px;
} }
} }
} }
.selectnamelist { .selectnamelist {
// position: absolute; // position: absolute;
@ -1030,7 +1108,6 @@ export default {
// top: -8px; // top: -8px;
} }
.PushMethod { .PushMethod {
height: 100px; height: 100px;
padding: 20px; padding: 20px;