Browse Source

feat: 安卓工具配置 - 筛选逻辑

zhengxy 1 year ago
parent
commit
084c2fe024

+ 8 - 1
project/src/components/assembly/screen/channelV2.vue

@@ -505,7 +505,14 @@ export default {
505 505
         this.options = [
506 506
           ...licenseTaskStatusOptions
507 507
         ]
508
-      } else {
508
+      } else if (this.type == 'enableStatus') { // 启用 禁用
509
+        this.options = [
510
+          { key: 1, val: '启用' },
511
+          { key: 0, val: '禁用' },
512
+        ]
513
+        this.placeholderVal = '请选择'
514
+      }
515
+      else {
509 516
         this.init()
510 517
       }
511 518
     },

+ 1 - 1
project/src/components/feedback/index.vue

@@ -7,7 +7,7 @@
7 7
       </div>
8 8
       <el-button type="primary" size="mini" @click="onClickGetUserLink">获取反馈链接</el-button>
9 9
       <!-- 使用说明 -->
10
-      <instructions doc="feedback" style="margin-left:20px;"></instructions>
10
+      <!-- <instructions doc="feedback" style="margin-left:20px;"></instructions> -->
11 11
     </div>
12 12
     <el-table :height="height" :data="list" tooltip-effect="dark" style="width: 100%;margin-top:10px">
13 13
       <el-table-column label="客服" prop="user_name" min-width="160" align="center" fixed="left" />

+ 16 - 2
project/src/components/manage/InviteIntoGroup/deviceBind/index.vue

@@ -2,7 +2,9 @@
2 2
   <div v-loading="loading">
3 3
     <div class="screenBox" style="align-items: center;padding-right:16px">
4 4
       <div class="flex-align-center" style="flex:1">
5
-        <selfInputV2 style="margin-left: -20px;"  :labelWidth="true" v-model="keyword" label_name="标题" placeholder="请输入" @change="onChangeKeyword" />
5
+        <selfInputV2 style="width: auto;margin-left:-20px;" :labelWidth="true" v-model="keyword" label_name="标题" placeholder="请输入" @change="onChangeKeyword" />
6
+        <!-- 关联客服 -->
7
+        <serviceSingle style="width: auto;" title="关联客服" placeholder="请选择" @customerDefine="onChangeUser" />
6 8
       </div>
7 9
       <el-button type="primary" size="mini" @click="onClickBind">设备绑定</el-button>
8 10
     </div>
@@ -40,9 +42,15 @@
40 42
 </template>
41 43
 <script>
42 44
 import selfInputV2 from '@/components/assembly/screen/inputV2.vue'
45
+import serviceSingle from '@/components/assembly/screen/serviceSingle.vue'
43 46
 import deviceBindDialog from './deviceBindDialog.vue'
47
+
44 48
 export default {
45
-  components: { selfInputV2, deviceBindDialog, },
49
+  components: {
50
+    serviceSingle,
51
+    selfInputV2,
52
+    deviceBindDialog,
53
+  },
46 54
   data () {
47 55
     return {
48 56
       bindDialogVisible: false,
@@ -55,6 +63,7 @@ export default {
55 63
       height: '',
56 64
       currentDeviceId: '',
57 65
       keyword: '',
66
+      user_id: '',
58 67
     }
59 68
   },
60 69
   created () {
@@ -85,6 +94,10 @@ export default {
85 94
       this.keyword = val
86 95
       this.init(1)
87 96
     },
97
+    onChangeUser(val) {
98
+      this.user_id = val ? val.user_id : ''
99
+      this.init(1)
100
+    },
88 101
     // 获取列表数据
89 102
     async init (page, type) {
90 103
       if (type != 'export') {
@@ -103,6 +116,7 @@ export default {
103 116
         const url = `${this.URL.BASEURL}${this.URL.deviceBind_deviceList}`
104 117
         const params = {
105 118
           keyword: this.keyword,
119
+          user_id: this.user_id,
106 120
           page: type == 'export' ? 1 : this.page,
107 121
           page_size: type == 'export' ? this.$store.state.exportNumber : this.page_size,
108 122
         }

+ 27 - 6
project/src/components/manage/InviteIntoGroup/inviteRuleList.vue

@@ -3,10 +3,11 @@
3 3
     <div class="screenBox" style="align-items: center;padding-right:16px">
4 4
       <div class="flex-align-center" style="flex:1">
5 5
         <!-- 搜索配置 -->
6
-        <self-input label_name='关键词'
7
-                    :hasLabel="false"
8
-                    :noMarLeft="true"
9
-                    @inputChange='(val)=>{keyword = val;init(1)}'></self-input>
6
+        <self-input style="width: auto;" label_name='关键词' :hasLabel="false" :noMarLeft="true" @inputChange='(val)=>{keyword = val;init(1)}' />
7
+        <!-- 关联客服 -->
8
+        <serviceSingle style="width: auto;" title="关联客服" placeholder="请选择" @customerDefine="onChangeUser" />
9
+        <!-- 状态 -->
10
+        <selfChannelV2 v-model="status" type="enableStatus" title="规则状态" :labelWidth="true" @change="onChangeStatus" />
10 11
       </div>
11 12
       <el-button type="primary" size="mini" @click="createdMassMsg">新建配置</el-button>
12 13
     </div>
@@ -62,8 +63,16 @@
62 63
 <script>
63 64
 import createData from './createData.vue'
64 65
 import selfInput from '@/components/assembly/screen/input.vue'
66
+import serviceSingle from '@/components/assembly/screen/serviceSingle.vue'
67
+import selfChannelV2 from '@/components/assembly/screen/channelV2.vue'
68
+
65 69
 export default {
66
-  components: { selfInput,createData },
70
+  components: {
71
+    selfInput,
72
+    createData,
73
+    serviceSingle,
74
+    selfChannelV2,
75
+  },
67 76
   data () {
68 77
     return {
69 78
       massMsgFlag: false,
@@ -76,6 +85,8 @@ export default {
76 85
       height: '',
77 86
       detail_rule_id: '',
78 87
       keyword:'',
88
+      user_id: '',
89
+      status: '',
79 90
     }
80 91
   },
81 92
   created () {
@@ -174,7 +185,9 @@ export default {
174 185
         params: {
175 186
           page: type == 'export' ? 1 : this.page,
176 187
           page_size: type == 'export' ? this.$store.state.exportNumber : this.page_size,
177
-          keyword: this.keyword
188
+          keyword: this.keyword,
189
+          user_id: this.user_id,
190
+          status: this.status,
178 191
         }
179 192
       }).then((res) => {
180 193
         var res = res.data
@@ -200,6 +213,14 @@ export default {
200 213
     handleCurrentChange (val) {
201 214
       this.init(val)
202 215
     },
216
+    onChangeUser(val) {
217
+      this.user_id = val ? val.user_id : ''
218
+      this.init(1)
219
+    },
220
+    onChangeStatus(val) {
221
+      this.status = val
222
+      this.init(1)
223
+    },
203 224
     exportEvent (data) {
204 225
       let list = data;
205 226
       let tHeader = ['标题', '创建人', '拉群类型', '规则状态']