Commit 42134635 by xinla

修改bug

1 parent 926309e1
......@@ -2,7 +2,7 @@ import request from '@/utils/request'
const service = window.CONFIG.services.wecom + '/customerMessagePush'
/**
* 新增企业id
* 新增群发
* @param {Object} data
{
"pushType": "群发类型 0 发给客户 1 发给客户群",
......@@ -37,7 +37,7 @@ export function add(data) {
return request({
url: service + '/add',
method: 'post',
data,
data
})
}
......@@ -54,7 +54,7 @@ endTime:结束时间}
export function getList(params) {
return request({
url: service + '/list',
params,
params
})
}
......@@ -65,7 +65,7 @@ export function getList(params) {
export function getDetail(messageId) {
return request({
url: service + '/getInfo',
params: { messageId },
params: { messageId }
})
}
......@@ -78,7 +78,7 @@ status:发送状态 0-未发送 1-已发送 2-因客户不是好友导致发送
export function getPushResult(params) {
return request({
url: service + '/pushResults',
params,
params
})
}
......@@ -92,6 +92,6 @@ export function syncMsg(data) {
return request({
url: service + '/asyncResult',
method: 'post',
data,
data
})
}
......@@ -36,7 +36,7 @@ export default {
this.$store.dispatch(
'app/setBusininessDesc',
`
<div>从通讯录将离职员工删除后,可以分配他的客户及客户群给其他员工继续跟进。</div>
<div>将离职成员的客户和客户群分配给其他成员跟进并继续提供服务。</div>
`
)
},
......
......@@ -63,7 +63,7 @@ export default {
this.$store.dispatch(
'app/setBusininessDesc',
`
<div>开启后,当员工被客户删除时,被删除的员工将收到一条消息提醒</div>
<div>当企业成员被客户删除时,会在流失列表中产生一条记录,开启删除通知后,被删除的成员会收到一条推送</div>
`
)
},
......
......@@ -23,35 +23,35 @@ export default {
messageType: '0',
imageMessage: {
media_id: '', // '图片的media_id',
pic_url: '', // '图片的链接',
pic_url: '' // '图片的链接',
},
linkMessage: {
title: '', // '图文消息标题',
picurl: '', // '图文消息封面的url',
desc: '', // '图文消息的描述,最多512个字节',
url: '', // '图文消息的链接',
url: '' // '图文消息的链接',
},
textMessage: {
content: '', //'消息文本内容,最多4000个字节',
content: '' //'消息文本内容,最多4000个字节',
},
miniprogramMessage: {
title: '', // '小程序消息标题,最多64个字节',
pic_media_id: '', // '小程序消息封面的mediaid,封面图建议尺寸为520*416',
appid: '', // '小程序appid,必须是关联到企业的小程序应用',
page: '', // '小程序page路径',
},
page: '' // '小程序page路径',
}
},
userParty: [],
rules: {},
statusOptions: Object.freeze([
{ label: '发送给客户', value: '0' },
{ label: '发送给客户群', value: '1' },
{ label: '发送给客户群', value: '1' }
]),
activeName: '0',
dialogVisibleSelectCustomer: false,
dialogVisibleSelectUser: false,
dialogVisibleSelectTag: false,
dialogVisibleSelectMaterial: false,
dialogVisibleSelectMaterial: false
}
},
watch: {},
......@@ -71,7 +71,7 @@ export default {
}${this.userParty[0] && this.isOnlyTag ? ',且' : ''}${
this.isOnlyTag ? '满足' + this.form.tag[0].name + '等标签的' : ''
}${this.form.pushType == 0 ? '客户' : '客户群'}`
},
}
},
created() {
this.$store.dispatch(
......@@ -133,10 +133,12 @@ export default {
},
// 选择素材确认按钮
submitSelectMaterial(text, image, file) {
this.form.textMessage.content = text.content
// this.form.imageMessage.media_id = image.id
this.form.imageMessage.pic_url = image.materialUrl
this.form.imageMessage._materialName = image.materialName
if (this.activeName == 0) {
this.form.textMessage.content = text.content
} else if (this.activeName == 1) {
this.form.imageMessage.pic_url = image.materialUrl
this.form.imageMessage._materialName = image.materialName
}
},
submit() {
this.loading = true
......@@ -149,7 +151,7 @@ export default {
let dataMediaId = {
url: form.imageMessage.pic_url,
type: '0',
name: form.imageMessage._materialName,
name: form.imageMessage._materialName
}
return getMaterialMediaId(dataMediaId).then((res) => {
// debugger
......@@ -167,13 +169,13 @@ export default {
.then(({ data }) => {
this.msgSuccess('操作成功')
this.loading = false
this.$router.back()
this.$router.push('record')
})
.catch(() => {
this.loading = false
})
},
},
}
}
}
</script>
......
......@@ -74,6 +74,7 @@ export default {
<style lang="scss" scoped>
.img-wrap {
position: relative;
height: 200px;
&:hover .actions {
opacity: 1;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!