手动创建任务

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"
>
<!-- 且或 -->
<div style="width: 60px; position: absolute; left: 3%; top: 220px;background-color: red;"
v-if="updata.triggerConditionList.length === 3">
<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-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>
@ -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,12 +627,14 @@ 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";
export default {
components: { scriptphone, question, propaganda, scripts, message },
components: { scriptphone, question, propaganda, scripts, message, officialAccount, miniProgram },
name: "ManuallyCreatingTasks",
data() {
return {
@ -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;
@ -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;
}
}
}
@ -1021,8 +1101,6 @@ export default {
padding-left: 10px;
}
}
}
.selectnamelist {
// position: absolute;
@ -1030,7 +1108,6 @@ export default {
// top: -8px;
}
.PushMethod {
height: 100px;
padding: 20px;