|
@@ -69,8 +69,16 @@
|
69
|
69
|
/>
|
70
|
70
|
</div>
|
71
|
71
|
</div>
|
|
72
|
+ <!-- S 群管理表格 开启"渠道群管理"时显示 -->
|
72
|
73
|
<div v-show="groupForm.is_limit" class="listBox">
|
73
|
74
|
<el-table border :data="groupForm.chat_id_list" tooltip-effect="dark" :header-cell-style="()=>{return { backgroundColor: '#f9f9f9 !important' }}" style="width: 100%">
|
|
75
|
+ <el-table-column label="拖拽排序" width="80" align="center">
|
|
76
|
+ <template slot-scope="{ row }">
|
|
77
|
+ <div class="drag-handler">
|
|
78
|
+ <i class="el-icon-rank" />
|
|
79
|
+ </div>
|
|
80
|
+ </template>
|
|
81
|
+ </el-table-column>
|
74
|
82
|
<el-table-column label="群名称" align="center" prop="name" />
|
75
|
83
|
<el-table-column label="人数上限" align="center">
|
76
|
84
|
<template slot="header" slot-scope="scope">
|
|
@@ -97,7 +105,7 @@
|
97
|
105
|
</template>
|
98
|
106
|
</el-table-column>
|
99
|
107
|
</el-table>
|
100
|
|
- </div>
|
|
108
|
+ </div><!-- E 群管理表格 -->
|
101
|
109
|
<!-- E 基础信息 -->
|
102
|
110
|
|
103
|
111
|
<!-- S 客服设置 -->
|
|
@@ -194,8 +202,6 @@ export default {
|
194
|
202
|
created() {
|
195
|
203
|
// 获取分组列表
|
196
|
204
|
this.handleGetGroupOptions()
|
197
|
|
- console.log('isEdit => ', this.isEdit)
|
198
|
|
- console.log('isCopy => ', this.isCopy)
|
199
|
205
|
// 编辑、复制 => 获取群活码详情
|
200
|
206
|
if (this.isEdit || this.isCopy) {
|
201
|
207
|
this.handleGetDetail()
|
|
@@ -208,7 +214,6 @@ export default {
|
208
|
214
|
methods: {
|
209
|
215
|
// 获取群活码详情数据
|
210
|
216
|
async handleGetDetail() {
|
211
|
|
- console.log('handleGetDetail => ')
|
212
|
217
|
try {
|
213
|
218
|
this.loading = true
|
214
|
219
|
const { data: res = {} } = await this.$axios.get(this.URL.BASEURL + this.URL.groupCode_ruleDetail, {
|
|
@@ -267,6 +272,7 @@ export default {
|
267
|
272
|
const tbody = document.querySelector('.el-table__body-wrapper tbody')
|
268
|
273
|
const _this = this
|
269
|
274
|
Sortable.create(tbody, {
|
|
275
|
+ handle: '.drag-handler',
|
270
|
276
|
onEnd({ newIndex, oldIndex }) {
|
271
|
277
|
if (newIndex == oldIndex) return
|
272
|
278
|
_this.groupForm.chat_id_list.splice(
|
|
@@ -564,4 +570,7 @@ export default {
|
564
|
570
|
cursor: pointer;
|
565
|
571
|
display: inline-block;
|
566
|
572
|
}
|
|
573
|
+.drag-handler {
|
|
574
|
+ cursor: move;
|
|
575
|
+}
|
567
|
576
|
</style>
|