|
@@ -10,7 +10,7 @@
|
10
|
10
|
<selfInputV2 style="margin-left: -20px;" :labelWidth="true" v-model="filter.user_name" label_name="成员" placeholder="请输入" @change="onChangeUserName" />
|
11
|
11
|
<!-- <selfChannelV2 v-model="filter.platform_id" title="平台" type="platform" labelWidth multiple collapseTags :multipleLimit="3" @change="onChangePlatform" /> -->
|
12
|
12
|
<selfChannelV2 v-model="filter.msg_type" title="消息类型" type="msgType" labelWidth @change="onChangeMsgType" />
|
13
|
|
- <selfChannelV2 v-model="filter.send_status" title="发送状态" type="msgSendStatus" labelWidth @change="onChangeSendStatus" />
|
|
13
|
+ <!-- <selfChannelV2 v-model="filter.send_status" title="发送状态" type="msgSendStatus" labelWidth @change="onChangeSendStatus" /> -->
|
14
|
14
|
<div class="reset" @click="onClickReset">重置</div>
|
15
|
15
|
</div>
|
16
|
16
|
<!-- E 筛选区 -->
|
|
@@ -67,6 +67,12 @@
|
67
|
67
|
<detailRuleZNQF v-if="isShowDetailZNQF" title="智能推送详情" :rule_id='currentRuleId' :sysMsgCorpid="currentCorpid" :isCopy="false" :createGroupId="currentGroupId" @close="detailClose" />
|
68
|
68
|
</el-drawer>
|
69
|
69
|
<!-- E 详情 - 智能群发 -->
|
|
70
|
+
|
|
71
|
+ <!-- S 详情 - 客户朋友圈 -->
|
|
72
|
+ <el-drawer size="1100px" :visible.sync="isShowRuleKHPYQ" :with-header="false">
|
|
73
|
+ <detailRuleKHPYQ v-if="isShowRuleKHPYQ" :is_copy='false' title="朋友圈详情" :rule_id='currentRuleId' :sysMsgCorpid="currentCorpid" @close="detailClose" />
|
|
74
|
+ </el-drawer>
|
|
75
|
+ <!-- E 详情 - 客户朋友圈 -->
|
70
|
76
|
</div>
|
71
|
77
|
<!-- E 明细表 detailsTable -->
|
72
|
78
|
</div>
|
|
@@ -86,6 +92,8 @@ import detailKHQF from '@/components/customOperate/massMsgDetail/index.vue' //
|
86
|
92
|
|
87
|
93
|
import detailRuleZNQF from '@/components/smartPushV3/createMassMsg.vue' // 智能群发-规则详情
|
88
|
94
|
|
|
95
|
+import detailRuleKHPYQ from '@/components/customOperate/createFriendsCircle.vue' // 客户朋友圈-规则详情
|
|
96
|
+
|
89
|
97
|
export default {
|
90
|
98
|
components: {
|
91
|
99
|
selfInputV2,
|
|
@@ -97,6 +105,7 @@ export default {
|
97
|
105
|
detailRuleKHQF,
|
98
|
106
|
detailKHQF,
|
99
|
107
|
detailRuleZNQF,
|
|
108
|
+ detailRuleKHPYQ,
|
100
|
109
|
},
|
101
|
110
|
data() {
|
102
|
111
|
const DEFAULT_TIME = [this.$getDay(-30, false), this.$getDay(0, false)]
|
|
@@ -111,7 +120,7 @@ export default {
|
111
|
120
|
{ column: 'corp_name', name: '企微主体', 'min_width': 200, fixed: '', },
|
112
|
121
|
{ column: 'user_name', name: '成员', 'min_width': 140, fixed: '', },
|
113
|
122
|
{ column: 'msg_type_text', name: '消息类型', 'min_width': 140, fixed: '', },
|
114
|
|
- { column: 'send_status_text', name: '发送状态', 'min_width': 140, fixed: '', },
|
|
123
|
+ // { column: 'send_status_text', name: '发送状态', 'min_width': 140, fixed: '', },
|
115
|
124
|
{ column: 'notice', name: '消息内容', 'min_width': 400, fixed: '', },
|
116
|
125
|
{ column: 'handler', name: '操作', 'min_width': 90, fixed: 'right', },
|
117
|
126
|
],
|
|
@@ -127,8 +136,8 @@ export default {
|
127
|
136
|
corpid: '', // 企微主体
|
128
|
137
|
user_name: '', // 成员
|
129
|
138
|
// platform_id: [], // 平台
|
130
|
|
- send_status: 1,
|
131
|
|
- msg_type: '',
|
|
139
|
+ // send_status: 1,
|
|
140
|
+ msg_type: 1,
|
132
|
141
|
},
|
133
|
142
|
|
134
|
143
|
currentCorpid: '',
|
|
@@ -139,6 +148,7 @@ export default {
|
139
|
148
|
isShowRuleKHQF: false,
|
140
|
149
|
isShowDetailKHQF: false,
|
141
|
150
|
isShowDetailZNQF: false,
|
|
151
|
+ isShowRuleKHPYQ: false,
|
142
|
152
|
}
|
143
|
153
|
},
|
144
|
154
|
created() {
|
|
@@ -159,13 +169,13 @@ export default {
|
159
|
169
|
end_date: this.filter.time[1],
|
160
|
170
|
corp_id: this.filter.corpid,
|
161
|
171
|
user_name: this.filter.user_name,
|
162
|
|
- send_status: this.filter.send_status,
|
|
172
|
+ // send_status: this.filter.send_status,
|
163
|
173
|
msg_type: this.filter.msg_type,
|
164
|
174
|
// platform_id: this.filter.platform_id,
|
165
|
175
|
page: this.pagination.page,
|
166
|
176
|
page_size: this.pagination.page_size,
|
167
|
177
|
}
|
168
|
|
- const url = `${this.URL.BASEURL}${this.URL.system_sendNoticeList}`
|
|
178
|
+ const url = `${this.URL.BASEURL}${this.URL.system_sendNoticeListNew}`
|
169
|
179
|
const { data: res = {} } = await this.$axios.get(url, { params })
|
170
|
180
|
if (res && res.errno == 0) {
|
171
|
181
|
const detailsTableList = Array.isArray(res.rst.data) ? res.rst.data : []
|
|
@@ -211,21 +221,18 @@ export default {
|
211
|
221
|
},
|
212
|
222
|
// // 监听平台选择变化
|
213
|
223
|
// onChangePlatform(val) {
|
214
|
|
- // console.log('onChangePlatform => ', val)
|
215
|
224
|
// this.filter.platform_id = val
|
216
|
225
|
// this.pagination.page = 1
|
217
|
226
|
// this.handleGetData()
|
218
|
227
|
// },
|
219
|
228
|
// 发送状态
|
220
|
|
- onChangeSendStatus(val) {
|
221
|
|
- console.log('onChangeSendStatus => ', val)
|
222
|
|
- this.filter.send_status = val
|
223
|
|
- this.pagination.page = 1
|
224
|
|
- this.handleGetData()
|
225
|
|
- },
|
|
229
|
+ // onChangeSendStatus(val) {
|
|
230
|
+ // this.filter.send_status = val
|
|
231
|
+ // this.pagination.page = 1
|
|
232
|
+ // this.handleGetData()
|
|
233
|
+ // },
|
226
|
234
|
// 消息类型
|
227
|
235
|
onChangeMsgType(val) {
|
228
|
|
- console.log('onChangeSendStatus => ', val)
|
229
|
236
|
this.filter.msg_type = val
|
230
|
237
|
this.pagination.page = 1
|
231
|
238
|
this.handleGetData()
|
|
@@ -236,8 +243,8 @@ export default {
|
236
|
243
|
this.filter.time = this.default_time
|
237
|
244
|
this.filter.corpid = ''
|
238
|
245
|
this.filter.user_name = ''
|
239
|
|
- this.filter.send_status = 1
|
240
|
|
- this.filter.msg_type = ''
|
|
246
|
+ this.filter.msg_type = 1
|
|
247
|
+ // this.filter.send_status = 1
|
241
|
248
|
// this.filter.platform_id = []
|
242
|
249
|
this.pagination.page = 1
|
243
|
250
|
this.handleGetData()
|
|
@@ -250,8 +257,6 @@ export default {
|
250
|
257
|
},
|
251
|
258
|
|
252
|
259
|
onClickDetail({ send_status, msg_type, rule_id, corpid, group_id }) {
|
253
|
|
- console.log('onClickDetail => send_status ', send_status)
|
254
|
|
- console.log('onClickDetail => msg_type ', msg_type)
|
255
|
260
|
this.currentRuleId = rule_id
|
256
|
261
|
this.currentCorpid = corpid
|
257
|
262
|
this.currentGroupId = group_id
|
|
@@ -261,30 +266,35 @@ export default {
|
261
|
266
|
if (msg_type == 2) this.handleShowKHQQF(send_status)
|
262
|
267
|
// 智能群发
|
263
|
268
|
if (msg_type == 3) this.handleShowZNQF(send_status)
|
|
269
|
+ // 智能群发
|
|
270
|
+ if (msg_type == 4) this.handleShowKHPYQ(send_status)
|
264
|
271
|
},
|
265
|
272
|
// 客户群发详情
|
266
|
273
|
handleShowKHQF(send_status) {
|
267
|
|
- console.log('handleShowKHQF => ', send_status)
|
268
|
|
- if (send_status == 1) { // 待发送
|
269
|
|
- this.isShowRuleKHQF = true
|
270
|
|
- } else { // 已发送
|
271
|
|
- this.isShowDetailKHQF = true
|
272
|
|
- }
|
|
274
|
+ // if (send_status == 1) { // 待发送
|
|
275
|
+ // this.isShowRuleKHQF = true
|
|
276
|
+ // } else { // 已发送
|
|
277
|
+ // this.isShowDetailKHQF = true
|
|
278
|
+ // }
|
|
279
|
+ this.isShowRuleKHQF = true // 目前列表返回的都是待发送状态消息(直接查看配置规则详情)
|
273
|
280
|
},
|
274
|
281
|
// 客户群群发
|
275
|
282
|
handleShowKHQQF(send_status) {
|
276
|
|
- console.log('handleShowKHQQF => ', send_status)
|
277
|
|
- if (send_status == 1) { // 待发送
|
278
|
|
- this.isShowRuleKHQQF = true
|
279
|
|
- } else { // 已发送
|
280
|
|
- this.isShowDetailKHQQF = true
|
281
|
|
- }
|
|
283
|
+ // if (send_status == 1) { // 待发送
|
|
284
|
+ // this.isShowRuleKHQQF = true
|
|
285
|
+ // } else { // 已发送
|
|
286
|
+ // this.isShowDetailKHQQF = true
|
|
287
|
+ // }
|
|
288
|
+ this.isShowRuleKHQQF = true // 目前列表返回的都是待发送状态消息(直接查看配置规则详情)
|
282
|
289
|
},
|
283
|
290
|
// 智能群发
|
284
|
291
|
handleShowZNQF(send_status) {
|
285
|
|
- console.log('handleShowZNQF => ', send_status)
|
286
|
292
|
this.isShowDetailZNQF = true
|
287
|
293
|
},
|
|
294
|
+ // 客户朋友圈
|
|
295
|
+ handleShowKHPYQ(send_status) {
|
|
296
|
+ this.isShowRuleKHPYQ = true // 目前列表返回的都是待发送状态消息(直接查看配置规则详情)
|
|
297
|
+ },
|
288
|
298
|
|
289
|
299
|
detailClose() {
|
290
|
300
|
this.currentCorpid = ''
|
|
@@ -295,6 +305,7 @@ export default {
|
295
|
305
|
this.isShowRuleKHQF = false
|
296
|
306
|
this.isShowDetailKHQF = false
|
297
|
307
|
this.isShowDetailZNQF = false
|
|
308
|
+ this.isShowRuleKHPYQ = false
|
298
|
309
|
},
|
299
|
310
|
},
|
300
|
311
|
}
|