Commit 147a2436 by xinlaa

群发调试

1 parent adde9ccc
import request from '@/utils/request' import request from '@/utils/request'
const service = window.CONFIG.services.wecom + '/push' const service = window.CONFIG.services.wecom + '/customerMessagePush'
/** /**
* 新增企业id * 新增企业id
......
...@@ -10,6 +10,7 @@ export default { ...@@ -10,6 +10,7 @@ export default {
props: {}, props: {},
data() { data() {
return { return {
loading: false,
// 表单参数 // 表单参数
form: { form: {
pushType: '0', pushType: '0',
...@@ -18,7 +19,7 @@ export default { ...@@ -18,7 +19,7 @@ export default {
department: [], department: [],
staffId: [], staffId: [],
settingTime: '', settingTime: '',
messageType: '', messageType: '0',
imageMessage: { imageMessage: {
media_id: '', // '图片的media_id', media_id: '', // '图片的media_id',
pic_url: '', // '图片的链接', pic_url: '', // '图片的链接',
...@@ -97,13 +98,16 @@ export default { ...@@ -97,13 +98,16 @@ export default {
}, },
// 选择素材确认按钮 // 选择素材确认按钮
submitSelectMaterial(text, image, file) { submitSelectMaterial(text, image, file) {
debugger
this.form.textMessage.content = text.content this.form.textMessage.content = text.content
this.form.imageMessage.media_id = image.categoryId this.form.imageMessage.media_id = image.categoryId
this.form.textMessage.pic_url = image.materialUrl this.form.imageMessage.pic_url = image.materialUrl
}, },
submit() { submit() {
add(this.form) let form = JSON.parse(JSON.stringify(this.form))
form.tag += ''
form.department += ''
form.staffId += ''
add(form)
.then(({ data }) => { .then(({ data }) => {
this.msgSuccess('操作成功') this.msgSuccess('操作成功')
this.loading = false this.loading = false
...@@ -144,7 +148,7 @@ export default { ...@@ -144,7 +148,7 @@ export default {
<el-date-picker <el-date-picker
v-model="form.settingTime" v-model="form.settingTime"
style="width: 240px" style="width: 240px"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" type="datetime"
placeholder="选择日期时间" placeholder="选择日期时间"
></el-date-picker> ></el-date-picker>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!