Commit 42134635 by xinla

修改bug

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