Browse Source

feat: 邀请入群配置 - 新增"群聊类型"

zhengxy 1 year ago
parent
commit
3e6f6fac6b

+ 20 - 13
project/src/components/manage/InviteIntoGroup/createData.vue

70
       <!-- E 选择客户 -->
70
       <!-- E 选择客户 -->
71
 
71
 
72
 
72
 
73
-
73
+      <!-- 群聊类型 -->
74
+      <div class="regulations" style="margin-top: 20px;">
75
+        <label><em>*</em>群聊类型:</label>
76
+        <el-radio-group v-model="main_msg_data.owner_type">
77
+          <el-radio :label="2">其他客服群聊</el-radio>
78
+          <el-radio :label="1">当前客服群聊</el-radio>
79
+        </el-radio-group>
80
+      </div>
74
       <!-- 选择群聊 -->
81
       <!-- 选择群聊 -->
75
       <div class="regulations">
82
       <div class="regulations">
76
         <label><em>*</em>选择群聊:</label>
83
         <label><em>*</em>选择群聊:</label>
190
       is_for_all: 1,
197
       is_for_all: 1,
191
       user_id_list: [],
198
       user_id_list: [],
192
       main_msg_data: {
199
       main_msg_data: {
200
+        owner_type: 2, // 群聊类型 2其他客服群聊 1当前客服群聊
193
         join_type: 1, // 进群方式 1:顺序进群 2:随机进群
201
         join_type: 1, // 进群方式 1:顺序进群 2:随机进群
194
         chat_group_config: [],
202
         chat_group_config: [],
195
         is_limit:0
203
         is_limit:0
348
           this.main_msg_data.is_limit = 1
356
           this.main_msg_data.is_limit = 1
349
           //进群方式
357
           //进群方式
350
           this.main_msg_data.join_type = res.rst.join_type
358
           this.main_msg_data.join_type = res.rst.join_type
359
+          //群聊类型
360
+          this.main_msg_data.owner_type = res.rst.owner_type
351
 
361
 
352
           //表格排序
362
           //表格排序
353
           this.$nextTick(() => {
363
           this.$nextTick(() => {
368
 
378
 
369
     massMsg_set () {//提交
379
     massMsg_set () {//提交
370
       if (this.is_for_all == 0 && (!this.user_id_list || this.user_id_list.length == 0)) {
380
       if (this.is_for_all == 0 && (!this.user_id_list || this.user_id_list.length == 0)) {
371
-        this.$message({
372
-          message: '请选择客服!',
373
-          type: "warning"
374
-        })
381
+        this.$message.warning('请选择客服!')
375
         return
382
         return
376
       }
383
       }
377
 
384
 
386
       }
393
       }
387
 
394
 
388
       if (this.name == '') {
395
       if (this.name == '') {
389
-        this.$message({
390
-          message: '请输入标题!',
391
-          type: "warning"
392
-        })
396
+        this.$message.warning('请输入标题!')
397
+        return
398
+      }
399
+
400
+      if (!this.main_msg_data.owner_type) {
401
+        this.$message.warning('请选择群聊类型')
393
         return
402
         return
394
       }
403
       }
395
 
404
 
396
       if (!this.main_msg_data.chat_group_config || this.main_msg_data.chat_group_config.length == 0) {
405
       if (!this.main_msg_data.chat_group_config || this.main_msg_data.chat_group_config.length == 0) {
397
-        this.$message({
398
-          message: '请选择群聊!',
399
-          type: "warning"
400
-        })
406
+        this.$message.warning('请选择群聊!')
401
         return
407
         return
402
       }
408
       }
403
 
409
 
428
         is_for_all:this.is_for_all,
434
         is_for_all:this.is_for_all,
429
         users:this.user_id_list&&this.user_id_list.length>0 ? this.user_id_list.join(',') : '',
435
         users:this.user_id_list&&this.user_id_list.length>0 ? this.user_id_list.join(',') : '',
430
         invite_config:JSON.stringify(this.main_msg_data.chat_group_config),
436
         invite_config:JSON.stringify(this.main_msg_data.chat_group_config),
437
+        owner_type:this.main_msg_data.owner_type,
431
         join_type:this.main_msg_data.join_type,
438
         join_type:this.main_msg_data.join_type,
432
         customer_filter: this.customer_filter,
439
         customer_filter: this.customer_filter,
433
         // S 自定义筛选参数
440
         // S 自定义筛选参数

+ 8 - 5
project/src/components/manage/InviteIntoGroup/inviteRuleList.vue

52
       </el-table-column>
52
       </el-table-column>
53
     </el-table>
53
     </el-table>
54
     <div class="pagination" v-show="total>0">
54
     <div class="pagination" v-show="total>0">
55
-      <el-pagination background :current-page="page" @current-change="handleCurrentChange" layout="prev, pager, next" :page-count='Number(pages)'>
56
-      </el-pagination>
55
+      <el-pagination background :current-page="page" @current-change="handleCurrentChange" layout="prev, pager, next" :page-count="Number(pages)" />
57
     </div>
56
     </div>
58
     <el-drawer size="1200px" :visible.sync="massMsgFlag" :with-header="false">
57
     <el-drawer size="1200px" :visible.sync="massMsgFlag" :with-header="false">
59
-      <createData ref="createMassMsg" v-if="massMsgFlag" :title="detail_rule_id?'配置详情':'新建配置'" :rule_id='detail_rule_id' @close="detailClose"></createData>
58
+      <createData
59
+        v-if="massMsgFlag"
60
+        ref="createMassMsg"
61
+        :rule_id='detail_rule_id'
62
+        :title="detail_rule_id ? '配置详情' : '新建配置'"
63
+        @close="detailClose"
64
+      />
60
     </el-drawer>
65
     </el-drawer>
61
   </div>
66
   </div>
62
 </template>
67
 </template>
93
     this.height = document.documentElement.clientHeight - 290
98
     this.height = document.documentElement.clientHeight - 290
94
     this.init(1)
99
     this.init(1)
95
   },
100
   },
96
-  mounted() {
97
-  },
98
   methods: {
101
   methods: {
99
     //删除
102
     //删除
100
     deleEvent(row){
103
     deleEvent(row){