Commit 2a3a235f by test

群发附件字段调整

1 parent 3eb45008
......@@ -376,12 +376,12 @@
let list = this.resetData(materialData.materialMsgList)
let myObj = {
content: materialData.welcomeMsg,
attachments: [{
attachmentsList: [{
content: materialData.welcomeMsg,
msgType: 'text'
}]
}
myObj.attachments.push(...list)
myObj.attachmentsList.push(...list)
let data = Object.assign({}, this.form, myObj)
data.senderList = []
data = JSON.parse(JSON.stringify(data))
......
......@@ -7,7 +7,7 @@
<div class="name">
群发统计
</div>
<div class="operation" v-if="isTask">
<div class="operation" v-if="isTask !== 1">
<span v-if="data.refreshTime">最近同步时间:{{data.refreshTime}}</span>
<el-button style="margin-left:20px;" type="primary" size="mini" @click="setFn">同步</el-button>
</div>
......@@ -204,13 +204,15 @@
total1: 0,
total0: 0,
msgId: '',
isTask: 0
isTask: 0,
status: 0
}
},
watch: {},
computed: {},
created () {
this.isTask = this.$route.query.isTask
this.status = this.$route.query.status
this.msgId = this.$route.query.id
this.queryMember.msgTemplateId = this.msgId
this.queryCustomer.msgTemplateId = this.msgId
......
......@@ -2,7 +2,7 @@
<div>
<div>
<div>
<el-button type="primary" style="margin-bottom: 20px;" @click="goRoute('', '', 'add')">新建群发</el-button>
<el-button type="primary" style="margin-bottom: 20px;" @click="goRoute('', '', '','add')">新建群发</el-button>
</div>
<el-form :model="query" ref="queryForm" :inline="true" label-position="left" class="top-search" label-width="70px">
<el-form-item label="群发内容" prop="content">
......@@ -47,7 +47,7 @@
<el-table-column label="操作" align="center" width="180">
<template slot-scope="scope">
<!-- v-hasPermi="['enterpriseWechat:view']" -->
<el-button size="mini" type="text" @click="goRoute(scope.row.id, scope.row.isTask, 'detail')">详情</el-button>
<el-button size="mini" type="text" @click="goRoute(scope.row.id, scope.row.isTask, scope.row.status, 'detail')">详情</el-button>
<el-divider v-if="scope.row.isTask === 1 && scope.row.status === 0" direction="vertical"></el-divider>
<el-button size="mini" v-if="scope.row.isTask === 1 && scope.row.status === 0" type="text" @click="cancelSend(scope.row)">取消发送</el-button>
<!-- <el-button v-hasPermi="['enterpriseWechat:edit']" size="mini" type="text" disabled=""
......@@ -166,7 +166,7 @@
})
.catch(function () { })
},
goRoute (id, isTask, path) {
goRoute (id, isTask, status,path) {
const query = {}
if (id) {
query.id = id
......@@ -174,6 +174,9 @@
if (isTask) {
query.isTask = isTask
}
if (status) {
query.status = status
}
this.$router.push({
path: '/customerMaintain/groupMessage/' + path,
query
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!