手动创建任务
This commit is contained in:
parent
c039f4e38b
commit
2ad4770bd5
@ -623,10 +623,14 @@ export default {
|
|||||||
messageontemplateMESSAGE(item) {
|
messageontemplateMESSAGE(item) {
|
||||||
this.formInline.phoneMessageTemplateId = item.templateId;
|
this.formInline.phoneMessageTemplateId = item.templateId;
|
||||||
this.formInline.phoneMessageTemplateName = item.templateName;
|
this.formInline.phoneMessageTemplateName = item.templateName;
|
||||||
|
this.list[this.listindex].messageTemplateCode=item.messageTemplateCode
|
||||||
|
|
||||||
},
|
},
|
||||||
messageontemplateMESSAGEtwo(item) {
|
messageontemplateMESSAGEtwo(item) {
|
||||||
this.formInline.messageTemplateId = item.templateId;
|
this.formInline.messageTemplateId = item.templateId;
|
||||||
this.formInline.messageTemplateName = item.templateName;
|
this.formInline.messageTemplateName = item.templateName;
|
||||||
|
this.list[this.listindex].messageTemplateCode=item.messageTemplateCode
|
||||||
|
|
||||||
},
|
},
|
||||||
// 话术
|
// 话术
|
||||||
messageontemplateword(item) {
|
messageontemplateword(item) {
|
||||||
@ -640,12 +644,15 @@ export default {
|
|||||||
this.formInline.officialTemplateId = item.templateId;
|
this.formInline.officialTemplateId = item.templateId;
|
||||||
this.formInline.officialTemplateName = item.templateName;
|
this.formInline.officialTemplateName = item.templateName;
|
||||||
this.formInline.officialRemindContent = item.templateContent;
|
this.formInline.officialRemindContent = item.templateContent;
|
||||||
|
this.list[this.listindex].officialTemplateCode=item.officialTemplateCode
|
||||||
|
|
||||||
},
|
},
|
||||||
//小程序传值
|
//小程序传值
|
||||||
miniProgramtemplate(item) {
|
miniProgramtemplate(item) {
|
||||||
this.formInline.appletTemplateId = item.templateId;
|
this.formInline.appletTemplateId = item.templateId;
|
||||||
this.formInline.appletTemplateName = item.templateName;
|
this.formInline.appletTemplateName = item.templateName;
|
||||||
this.formInline.appletRemindContent = item.templateContent;
|
this.formInline.appletRemindContent = item.templateContent;
|
||||||
|
this.list[this.listindex].appletTemplateCode=item.appletTemplateCode
|
||||||
},
|
},
|
||||||
clicktimelineitem(item, index) {
|
clicktimelineitem(item, index) {
|
||||||
this.formInline = item;
|
this.formInline = item;
|
||||||
|
|||||||
@ -156,6 +156,7 @@ export default {
|
|||||||
templateId: "",
|
templateId: "",
|
||||||
templateName: "",
|
templateName: "",
|
||||||
templateContent: "",
|
templateContent: "",
|
||||||
|
messageTemplateCode:"",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleselect(item) {
|
handleselect(item) {
|
||||||
@ -165,6 +166,7 @@ export default {
|
|||||||
templateId: item.id,
|
templateId: item.id,
|
||||||
templateName: item.textMessageName,
|
templateName: item.textMessageName,
|
||||||
templateContent: item.templateContent,
|
templateContent: item.templateContent,
|
||||||
|
messageTemplateCode:item.messageTemplateCode
|
||||||
});
|
});
|
||||||
this.classificationOpen = false;
|
this.classificationOpen = false;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -164,6 +164,8 @@ export default {
|
|||||||
templateId: "",
|
templateId: "",
|
||||||
templateName: "",
|
templateName: "",
|
||||||
templateContent: "",
|
templateContent: "",
|
||||||
|
appletTemplateCode:""
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleselect(item) {
|
handleselect(item) {
|
||||||
@ -173,6 +175,9 @@ export default {
|
|||||||
templateId: item.id,
|
templateId: item.id,
|
||||||
templateName: item.wechatTemplateName,
|
templateName: item.wechatTemplateName,
|
||||||
templateContent: item.textMessageContent,
|
templateContent: item.textMessageContent,
|
||||||
|
appletTemplateCode:item.appletTemplateCode
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
this.classificationOpen = false;
|
this.classificationOpen = false;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,65 +1,161 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-button size="small" @click="classificationOpen = true"
|
<el-button
|
||||||
style="width: 200px;font-size:14px;text-align:left;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;"
|
size="small"
|
||||||
:style="handleselectName ? 'color:black' : 'color:#C0C4CC'">{{ handleselectName ? handleselectName :
|
@click="classificationOpen = true"
|
||||||
'选择公众号模板' }}</el-button>
|
style="
|
||||||
<el-dialog title="公众号模板选择" :visible.sync="classificationOpen" width="70%"
|
width: 200px;
|
||||||
:before-close="classificationOpenfalse">
|
font-size: 14px;
|
||||||
|
text-align: left;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
"
|
||||||
|
:style="handleselectName ? 'color:black' : 'color:#C0C4CC'"
|
||||||
|
>{{ handleselectName ? handleselectName : "选择公众号模板" }}</el-button
|
||||||
|
>
|
||||||
|
<el-dialog
|
||||||
|
title="公众号模板选择"
|
||||||
|
:visible.sync="classificationOpen"
|
||||||
|
width="70%"
|
||||||
|
:before-close="classificationOpenfalse"
|
||||||
|
>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<!--部门数据-->
|
<!--部门数据-->
|
||||||
<el-col :span="6" :xs="24">
|
<el-col :span="6" :xs="24">
|
||||||
<DepartmentList ref="DepartmentList" :modal="false" @clickdepartment="clickdepartment"
|
<DepartmentList
|
||||||
:methods="'listWechatTemplateNumtwo'">
|
ref="DepartmentList"
|
||||||
|
:modal="false"
|
||||||
|
@clickdepartment="clickdepartment"
|
||||||
|
:methods="'listWechatTemplateNumtwo'"
|
||||||
|
>
|
||||||
</DepartmentList>
|
</DepartmentList>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!--用户数据-->
|
<!--用户数据-->
|
||||||
<el-col :span="18" :xs="24">
|
<el-col :span="18" :xs="24">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
<el-form
|
||||||
label-width="68px">
|
:model="queryParams"
|
||||||
<el-form-item label="微信模版名称" prop="wechatTemplateName" label-width="100px">
|
ref="queryForm"
|
||||||
<el-input v-model="queryParams.wechatTemplateName" placeholder="请输入模版名称" clearable
|
size="small"
|
||||||
@keyup.enter.native="handleQuery" />
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="68px"
|
||||||
|
>
|
||||||
|
<el-form-item
|
||||||
|
label="微信模版名称"
|
||||||
|
prop="wechatTemplateName"
|
||||||
|
label-width="100px"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.wechatTemplateName"
|
||||||
|
placeholder="请输入模版名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="模板ID" prop="templateId">
|
<el-form-item label="模板ID" prop="templateId">
|
||||||
<el-input v-model="queryParams.templateId" placeholder="请输入模板ID" clearable
|
<el-input
|
||||||
@keyup.enter.native="handleQuery" />
|
v-model="queryParams.templateId"
|
||||||
|
placeholder="请输入模板ID"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini"
|
<el-button
|
||||||
@click="handleQuery">搜索</el-button>
|
type="primary"
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
icon="el-icon-search"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
|
>重置</el-button
|
||||||
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table v-loading="loading" :data="templateList" @row-dblclick="handleselect">
|
<el-table
|
||||||
<el-table-column type="index" width="55" align="center" label="序号" />
|
v-loading="loading"
|
||||||
<el-table-column label="微信模版名称" align="center" prop="wechatTemplateName" />
|
:data="templateList"
|
||||||
|
@row-dblclick="handleselect"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
width="55"
|
||||||
|
align="center"
|
||||||
|
label="序号"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="微信模版名称"
|
||||||
|
align="center"
|
||||||
|
prop="wechatTemplateName"
|
||||||
|
/>
|
||||||
<el-table-column label="模板ID" align="center" prop="templateId" />
|
<el-table-column label="模板ID" align="center" prop="templateId" />
|
||||||
<el-table-column label="模板来源" align="center" prop="templateSource">
|
<el-table-column
|
||||||
|
label="模板来源"
|
||||||
|
align="center"
|
||||||
|
prop="templateSource"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.templateSource == "WE_CHAT_APPLET" ? "小程序" : "" }}
|
{{
|
||||||
{{ scope.row.templateSource == "WE_CHAT_OFFICIAL_ACCOUNT" ? "公众号" : "" }}
|
scope.row.templateSource == "WE_CHAT_APPLET" ? "小程序" : ""
|
||||||
|
}}
|
||||||
|
{{
|
||||||
|
scope.row.templateSource == "WE_CHAT_OFFICIAL_ACCOUNT"
|
||||||
|
? "公众号"
|
||||||
|
: ""
|
||||||
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="适用任务类型" align="center" prop="suitTaskTypeName"
|
<el-table-column
|
||||||
:show-overflow-tooltip="true" />
|
label="适用任务类型"
|
||||||
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" />
|
align="center"
|
||||||
<el-table-column label="模板内容" align="center" prop="templateContent" />
|
prop="suitTaskTypeName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="病种名称"
|
||||||
|
align="center"
|
||||||
|
prop="diseaseTypeName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="模板内容"
|
||||||
|
align="center"
|
||||||
|
prop="templateContent"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<el-table-column
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
<el-button
|
||||||
v-if="handleselectId != scope.row.templateId">选择</el-button>
|
size="mini"
|
||||||
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
type="text"
|
||||||
v-if="handleselectId == scope.row.templateId">取消选择</el-button>
|
@click="handleselect(scope.row)"
|
||||||
|
v-if="handleselectId != scope.row.templateId"
|
||||||
|
>选择</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
@click="nohandleselect(scope.row)"
|
||||||
|
v-if="handleselectId == scope.row.templateId"
|
||||||
|
>取消选择</el-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
<pagination
|
||||||
:limit.sync="queryParams.pageSize" @pagination="getList" />
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -146,12 +242,17 @@ export default {
|
|||||||
nohandleselect() {
|
nohandleselect() {
|
||||||
this.handleselectId = ''
|
this.handleselectId = ''
|
||||||
this.handleselectName = ''
|
this.handleselectName = ''
|
||||||
this.$emit("on-template", { templateId: '', templateName: '', templateContent: "" });
|
this.$emit("on-template", { templateId: '', templateName: '', templateContent: "",officialTemplateCode:"" });
|
||||||
},
|
},
|
||||||
handleselect(item) {
|
handleselect(item) {
|
||||||
this.handleselectId = item.id
|
this.handleselectId = item.id
|
||||||
this.handleselectName = item.wechatTemplateName
|
this.handleselectName = item.wechatTemplateName
|
||||||
this.$emit("on-template", { templateId: item.id, templateName: item.wechatTemplateName, templateContent: item.textMessageContent });
|
this.$emit("on-template", {
|
||||||
|
templateId: item.id,
|
||||||
|
templateName: item.wechatTemplateName,
|
||||||
|
templateContent: item.textMessageContent,
|
||||||
|
officialTemplateCode: item.officialTemplateCode,
|
||||||
|
});
|
||||||
this.classificationOpen = false
|
this.classificationOpen = false
|
||||||
},
|
},
|
||||||
/** 查询微信模板信息列表 */
|
/** 查询微信模板信息列表 */
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
" :style="handleselectName ? 'color:black' : 'color:#C0C4CC'">{{ handleselectName ? handleselectName : "请选择"
|
" :style="handleselectName ? 'color:black' : 'color:#C0C4CC'">{{ handleselectName ? handleselectName : "请选择"
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
<el-dialog title="话书库模板选择" :visible.sync="classificationOpen" width="70%" :before-close="classificationOpenfalse">
|
<el-dialog title="话术库模板选择" :visible.sync="classificationOpen" width="70%" :before-close="classificationOpenfalse">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<!--部门数据-->
|
<!--部门数据-->
|
||||||
<el-col :span="6" :xs="24">
|
<el-col :span="6" :xs="24">
|
||||||
@ -184,6 +184,8 @@ export default {
|
|||||||
templateId: "",
|
templateId: "",
|
||||||
templateName: "",
|
templateName: "",
|
||||||
templateContent: "",
|
templateContent: "",
|
||||||
|
scriptInfoId:'',
|
||||||
|
phoneTemplateId:'',
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleselect(item) {
|
handleselect(item) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user