Commit 2a3a235f by test

群发附件字段调整

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