Commit f808e2ef by test

消息群发详情立即发送状态下隐藏同步按钮

1 parent bd45b149
......@@ -8,7 +8,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
// 创建axios实例
const service = axios.create({
// axios中请求配置有baseURL选项,表示请求URL公共部分
baseURL: process.env.NODE_ENV === 'development' ? '/api' : process.env.VUE_APP_BASE_API,
baseURL: process.env.NODE_ENV === 'development' ? 'http://demo.linkwechat.cn/dev-api' : process.env.VUE_APP_BASE_API,
// 超时
timeout: 10000
})
......
......@@ -373,7 +373,6 @@
return arr
},
save (materialData) {
console.log(materialData)
let list = this.resetData(materialData.materialMsgList)
let myObj = {
content: materialData.welcomeMsg,
......
......@@ -7,7 +7,7 @@
<div class="name">
群发统计
</div>
<div class="operation">
<div class="operation" v-if="isTask">
<span v-if="data.refreshTime">最近同步时间:{{data.refreshTime}}</span>
<el-button style="margin-left:20px;" type="primary" size="mini" @click="setFn">同步</el-button>
</div>
......@@ -203,12 +203,14 @@
activeName: '0',
total1: 0,
total0: 0,
msgId: ''
msgId: '',
isTask: 0
}
},
watch: {},
computed: {},
created () {
this.isTask = this.$route.query.isTask
this.msgId = this.$route.query.id
this.queryMember.msgTemplateId = this.msgId
this.queryCustomer.msgTemplateId = this.msgId
......@@ -226,6 +228,8 @@
}).then(() => {
syncMsg(this.msgId).then(fdfd => {
this.getDetail()
this.getMemberList()
this.getCustomerList()
this.$message({
type: 'success',
message: '同步成功!'
......@@ -286,18 +290,18 @@
arr.push(obj)
} else if (dd.msgType === 'link') {
let ob = {
msgType: '7',
msgType: '8',
materialName: dd.title,
content: dd.linkUrl
materialUrl: dd.linkUrl
}
arr.push(ob)
} else if (dd.msgType === 'miniprogram') {
let ff = {
msgType: '8',
materialUrl: dd.appId,
msgType: '9',
digest: dd.appId,
materialName: dd.title,
coverUrl: dd.picUrl,
content: dd.linkUrl
materialUrl: dd.linkUrl
}
arr.push(ff)
}
......
......@@ -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, 'detail')">详情</el-button>
<el-button size="mini" type="text" @click="goRoute(scope.row.id, scope.row.isTask, '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,11 +166,14 @@
})
.catch(function () { })
},
goRoute (id, path) {
goRoute (id, isTask, path) {
const query = {}
if (id) {
query.id = id
}
if (isTask) {
query.isTask = isTask
}
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!