eoss-mobiles 0.3.19 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/lib/button-group.js +2 -2
  2. package/lib/button.js +2 -2
  3. package/lib/cell.js +2 -2
  4. package/lib/checkbox.js +59 -48
  5. package/lib/circle.js +2 -2
  6. package/lib/config/api.js +11 -3
  7. package/lib/empty.js +2 -2
  8. package/lib/eoss-mobile.common.js +659 -87
  9. package/lib/field.js +2 -2
  10. package/lib/flow-btn.js +60 -49
  11. package/lib/flow-list.js +687 -117
  12. package/lib/flow.js +149 -143
  13. package/lib/grid-item.js +2 -2
  14. package/lib/grid.js +2 -2
  15. package/lib/index.js +1 -1
  16. package/lib/list.js +2 -2
  17. package/lib/loading.js +2 -2
  18. package/lib/nav-bar.js +2 -2
  19. package/lib/picker.js +62 -50
  20. package/lib/radio.js +62 -50
  21. package/lib/retrial-auth.js +61 -50
  22. package/lib/search.js +2 -2
  23. package/lib/selector.js +93 -77
  24. package/lib/switch.js +2 -2
  25. package/lib/tab.js +2 -2
  26. package/lib/table-column.js +62 -50
  27. package/lib/tabs.js +2 -2
  28. package/lib/tag.js +2 -2
  29. package/lib/theme-chalk/flow-list-task-read.css +1 -0
  30. package/lib/theme-chalk/flow-list.css +1 -1
  31. package/lib/theme-chalk/flow.css +1 -1
  32. package/lib/theme-chalk/index.css +1 -1
  33. package/lib/uploader.js +2 -2
  34. package/package.json +1 -1
  35. package/packages/flow/src/components/Message.vue +7 -3
  36. package/packages/flow/src/components/supervise.vue +72 -64
  37. package/packages/flow-list/src/main.vue +42 -23
  38. package/packages/flow-list/src/taskRead.vue +234 -0
  39. package/packages/selector/src/tree.vue +25 -17
  40. package/packages/theme-chalk/lib/flow-list-task-read.css +1 -0
  41. package/packages/theme-chalk/lib/flow-list.css +1 -1
  42. package/packages/theme-chalk/lib/flow.css +1 -1
  43. package/packages/theme-chalk/lib/index.css +1 -1
  44. package/packages/theme-chalk/src/flow-list-task-read.scss +112 -0
  45. package/packages/theme-chalk/src/flow-list.scss +2 -2
  46. package/packages/theme-chalk/src/flow.scss +5 -0
  47. package/src/config/api.js +13 -2
  48. package/src/index.js +1 -1
package/lib/uploader.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 25);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 26);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 25:
195
+ /***/ 26:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-mobiles",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -79,6 +79,10 @@ export default {
79
79
  type: Boolean,
80
80
  default: true
81
81
  },
82
+ showCheckType: {
83
+ type: Boolean,
84
+ default: true
85
+ },
82
86
  baseUrl: String,
83
87
  userId: {
84
88
  type: String,
@@ -142,7 +146,7 @@ export default {
142
146
  });
143
147
  });
144
148
  this.form.notificationType = JSON.parse(JSON.stringify(arr));
145
- this.showCheck = true
149
+ this.showCheck = this.showCheckType
146
150
  // this.$emit('onInputMsg', this.form);
147
151
  }
148
152
 
@@ -177,10 +181,10 @@ export default {
177
181
  });
178
182
  });
179
183
  this.form.notificationType = arr;
180
- this.showCheck = true
184
+ this.showCheck = this.showCheckType
181
185
  this.$emit('onInputMsg', this.form);
182
186
  }else if(this.onlyShowType){
183
- this.showCheck = true
187
+ this.showCheck = this.showCheckType
184
188
  }
185
189
  } else {
186
190
  this.$toast(message);
@@ -1,21 +1,30 @@
1
1
  <template>
2
2
  <div class="flow-supervise">
3
- <em-input v-model="form.pendTitle" label-width="90" label="标题" readonly />
3
+ <!-- <em-input v-model="form.pendTitle" label-width="90" label="标题" readonly />
4
4
  <em-input v-model="form.currentHandleNode" label-width="90" label="当前办理节点" readonly />
5
- <em-input v-model="form.pendingUserNames" label-width="90" label="当前办理人" readonly />
5
+ <em-input v-model="form.pendingUserNames" label-width="90" label="当前办理人" readonly /> -->
6
6
  <Message
7
7
  ref="message"
8
8
  :code="'notification_type'"
9
9
  :baseUrl="baseUrl"
10
+ :showCheckType="false"
10
11
  :showMsg="true"
12
+ label=""
11
13
  :defaultNotificationType="form.noticeType"
12
14
  :defaultNotificationMsg="form.notifyMessage"
13
15
  onlyShowType
14
16
  @onInputMsg="onInputMsg"
15
17
  ></Message>
18
+ <em-flow-list
19
+ style="flex: 1; overflow-y: auto"
20
+ type="4"
21
+ ref="flowList"
22
+ businessId="7358f2ba425d49018e13386eb987cd45"
23
+ :show-btn="false"
24
+ />
16
25
  <div class="btn-list">
17
26
  <div class="btn" @click="goBack">取消</div>
18
- <div class="btn" @click="onSubmit">确定</div>
27
+ <div class="btn" @click="onSubmit">发送</div>
19
28
  </div>
20
29
  </div>
21
30
  </template>
@@ -23,16 +32,16 @@
23
32
  <script>
24
33
  import Message from './Message.vue';
25
34
  import {
26
- toTaskSupervise,
27
- toTaskSuperviseSub
35
+ toTaskSupervise,
36
+ toTaskSuperviseSub
28
37
  } from '../../../../src/config/api';
29
38
  import request from '../../../../src/utils/http.js';
30
39
  import util from '../../../../src/utils/util.js';
31
40
  export default {
32
41
  components: { Message },
33
- props: {
42
+ props: {
34
43
  baseUrl: String,
35
- businessId:String
44
+ businessId: String
36
45
  },
37
46
  data() {
38
47
  return {
@@ -45,74 +54,73 @@ export default {
45
54
  this.getFlowInfo();
46
55
  },
47
56
  methods: {
48
-
49
- onSubmit(){
50
- console.log('点击了提交')
51
- if(this.form.noticeType.length == 0){
52
- this.$toast('请选择通知方式');
53
- return
54
- }
55
- if(!this.form.notificationMsg){
56
- this.$toast('请填写通知消息内容');
57
- return
58
- }
59
- let {noticeType,notificationMsg,pendingUserIds} = this.form
60
- let params = {
61
- url:toTaskSuperviseSub,
62
- params:{
63
- userId:util.getStorage('userId'),
64
- urgeUserIds:pendingUserIds,
65
- notificationType:noticeType,notificationMessage:notificationMsg,
66
- businessId:this.businessId
67
- }
57
+ onSubmit() {
58
+ console.log('点击了提交');
59
+ let selectInfo = this.$refs.flowList.$children[0].selectedData;
60
+ if(selectInfo.length == 0) return this.$toast('请选择需要督办的流程');
61
+ console.log(selectInfo)
62
+ return;
63
+ if (!this.form.notificationMsg) {
64
+ this.$toast('请填写通知消息内容');
65
+ return;
66
+ }
67
+ let { noticeType, notificationMsg, pendingUserIds } = this.form;
68
+ let params = {
69
+ url: toTaskSuperviseSub,
70
+ params: {
71
+ userId: util.getStorage('userId'),
72
+ urgeUserIds: pendingUserIds,
73
+ notificationType: noticeType,
74
+ notificationMessage: notificationMsg,
75
+ businessId: this.businessId
68
76
  }
69
- this.$toast.loading({
70
- duration: 0,
71
- forbidClick: true,
72
- message: '提交中...'
73
- });
74
- request(params).then(res => {
75
- this.$toast.clear();
76
- if(res.rCode == 0 || res.status=='success'){
77
- this.$toast('提交成功');
78
- this.$parent.$emit('success')
79
- }else{
80
- this.$message.error(res.message || '系统错误,请联系管理员!');
77
+ };
78
+ this.$toast.loading({
79
+ duration: 0,
80
+ forbidClick: true,
81
+ message: '提交中...'
82
+ });
83
+ request(params).then((res) => {
84
+ this.$toast.clear();
85
+ if (res.rCode == 0 || res.status == 'success') {
86
+ this.$toast('提交成功');
87
+ this.$parent.$emit('success');
88
+ } else {
89
+ this.$message.error(res.message || '系统错误,请联系管理员!');
81
90
  }
82
- })
91
+ });
83
92
  },
84
93
  goBack() {
85
94
  this.$parent.$emit('close');
86
95
  },
87
96
  getFlowInfo() {
88
- this.$toast.loading({
89
- duration: 0,
90
- forbidClick: true,
91
- message: '加载中...'
92
- });
97
+ this.$toast.loading({
98
+ duration: 0,
99
+ forbidClick: true,
100
+ message: '加载中...'
101
+ });
93
102
  request({
94
- url: toTaskSupervise,
95
- params: {
96
- businessId: this.businessId,
97
- userId: util.getStorage('userId')
98
- }
99
- })
100
- .then((res) => {
101
- this.$toast.clear();
102
- if(res.rCode == 0){
103
- this.form = res.results
104
- this.form.noticeType = res.results.defaultNotificationType.split(',');
105
- }else{
106
- this.$toast(res.msg)
107
- this.goBack()
108
- }
109
- });
103
+ url: toTaskSupervise,
104
+ params: {
105
+ businessId: this.businessId,
106
+ userId: util.getStorage('userId')
107
+ }
108
+ }).then((res) => {
109
+ this.$toast.clear();
110
+ if (res.rCode == 0) {
111
+ this.form = res.results;
112
+ this.form.noticeType = res.results.defaultNotificationType.split(',');
113
+ } else {
114
+ this.$toast(res.msg);
115
+ this.goBack();
116
+ }
117
+ });
110
118
  },
111
- // 通知消息回调
119
+ // 通知消息回调
112
120
  onInputMsg(obj) {
113
121
  this.form.noticeType = obj.notificationType.join(',');
114
122
  this.form.notificationMsg = obj.notificationMsg;
115
- },
116
- },
123
+ }
124
+ }
117
125
  };
118
126
  </script>
@@ -1,6 +1,10 @@
1
1
  <template>
2
- <div class="em-flow-list">
3
- <div v-if="isgw && processList.length > 0" class="list">
2
+ <div
3
+ class="em-flow-list"
4
+ :style="`background:${type == '3' ? 'unset' : '#fff'}`"
5
+ >
6
+ <TaskRead v-if="type == '3' || type == '4'" :businessId="businessId" :type="type" v-bind="$attrs" />
7
+ <div v-else-if="isgw && processList.length > 0" class="list">
4
8
  <div
5
9
  v-for="(item, index) in processList"
6
10
  :key="index"
@@ -16,7 +20,11 @@
16
20
  串行会签预备("串行会签预备", 5),
17
21
  自动办理("自动办理", 6); -->
18
22
  <i class="iconfont icon-gou" v-if="item.flowList.length > 0" />
19
- <div v-else class="process-pending" :style="` background: rgba( ${rgbColor}, 0.1)`">
23
+ <div
24
+ v-else
25
+ class="process-pending"
26
+ :style="` background: rgba( ${rgbColor}, 0.1)`"
27
+ >
20
28
  <i class="process-pending-yuan" />
21
29
  </div>
22
30
  <div class="item-box">
@@ -33,20 +41,20 @@
33
41
  >
34
42
  <div class="two">
35
43
  <img
36
- style="width:100px;height:100px"
44
+ style="width: 100px; height: 100px"
37
45
  v-if="x.doresult && x.doresult.startsWith('http')"
38
46
  :src="x.doresult"
39
47
  alt=""
40
48
  />
41
49
  <span v-else>{{ x.doresult }}</span>
42
- <span v-if="x.handleInfo" style="color:#ADADA5">{{
50
+ <span v-if="x.handleInfo" style="color: #adada5">{{
43
51
  (x.doresult ? '&' : '') + x.handleInfo
44
52
  }}</span>
45
53
  </div>
46
54
  <div class="tree">
47
- <div style="display:flex;align-items:center">
55
+ <div style="display: flex; align-items: center">
48
56
  <span>{{ x.userName }}</span>
49
- <span style="margin-left:10px">{{
57
+ <span style="margin-left: 10px">{{
50
58
  x.createtime | transformTimestamp
51
59
  }}</span>
52
60
  </div>
@@ -68,7 +76,7 @@
68
76
  <span
69
77
  v-if="item.flowList.length > 2"
70
78
  class="more"
71
- style="display:inline-block;width: 100%;text-align: center;"
79
+ style="display: inline-block; width: 100%; text-align: center"
72
80
  @click="changeMore(index)"
73
81
  >{{ item.showMore ? '收起' : '展示更多' }}</span
74
82
  >
@@ -94,7 +102,11 @@
94
102
  class="iconfont icon-gou"
95
103
  v-if="item.pendstate == 2 || item.pendstate == 6"
96
104
  />
97
- <div v-else class="process-pending" :style="` background: rgba( ${rgbColor}, 0.1)`">
105
+ <div
106
+ v-else
107
+ class="process-pending"
108
+ :style="` background: rgba( ${rgbColor}, 0.1)`"
109
+ >
98
110
  <i class="process-pending-yuan" />
99
111
  </div>
100
112
  <div class="item-box">
@@ -105,20 +117,20 @@
105
117
  </div>
106
118
  <div class="two">
107
119
  <img
108
- style="width:100px;height:100px"
120
+ style="width: 100px; height: 100px"
109
121
  v-if="item.isImageOpinion == 1"
110
122
  :src="item.doresult"
111
123
  alt=""
112
124
  />
113
125
  <span v-else>{{ item.doresult }}</span>
114
- <span v-if="item.handleInfo" style="color:#ADADA5">{{
126
+ <span v-if="item.handleInfo" style="color: #adada5">{{
115
127
  (item.doresult ? '&' : '') + item.handleInfo
116
128
  }}</span>
117
129
  </div>
118
130
  <div class="tree">
119
- <div style="display:flex;align-items:center">
131
+ <div style="display: flex; align-items: center">
120
132
  <span>{{ item.userid }}</span>
121
- <span style="margin-left:10px">{{
133
+ <span style="margin-left: 10px">{{
122
134
  item.createTime | transformTimestamp
123
135
  }}</span>
124
136
  </div>
@@ -154,6 +166,7 @@
154
166
  <script>
155
167
  import { pendedhistoryList } from '../../../src/config/api.js';
156
168
  import request from '../../../src/utils/http.js';
169
+ import TaskRead from './taskRead.vue';
157
170
  import $ from '../../../src/utils/util';
158
171
  export default {
159
172
  name: 'EmFlowList',
@@ -161,7 +174,7 @@ export default {
161
174
  businessId: {
162
175
  type: String,
163
176
  default: ''
164
- },
177
+ },
165
178
  type: {
166
179
  type: String,
167
180
  default: '0'
@@ -175,6 +188,9 @@ export default {
175
188
  default: false
176
189
  }
177
190
  },
191
+ components: {
192
+ TaskRead
193
+ },
178
194
  filters: {
179
195
  transformTimestamp(val) {
180
196
  return $.formatDate(Number(val), 'yyyy-MM-dd');
@@ -183,16 +199,19 @@ export default {
183
199
  data() {
184
200
  return {
185
201
  processList: [],
186
- rgbColor:''
202
+ rgbColor: ''
187
203
  };
188
204
  },
189
- mounted(){
190
- let bgColor = document.documentElement.style.getPropertyValue('--theme-primary') || '#12278B'
191
- this.rgbColor = $.getRgb(bgColor).join(',')
205
+ mounted() {
206
+ let bgColor =
207
+ document.documentElement.style.getPropertyValue('--theme-primary') ||
208
+ '#12278B';
209
+ this.rgbColor = $.getRgb(bgColor).join(',');
192
210
  },
193
211
  watch: {
194
212
  businessId: {
195
213
  handler(val) {
214
+ if (this.type == 3 || this.type == 4) return;
196
215
  if (val && this.data.length === 0) {
197
216
  this.getFlowList(val);
198
217
  } else {
@@ -211,12 +230,12 @@ export default {
211
230
  type: 'post',
212
231
  params: {
213
232
  type: this.type,
214
- apprecordId
233
+ apprecordid: apprecordId
215
234
  }
216
- }).then(res => {
217
- const { rCode, msg, results } = res;
218
- if (rCode === 0) {
219
- this.processList = results;
235
+ }).then((res) => {
236
+ const { status, data } = res;
237
+ if (status == 'success') {
238
+ this.processList = this.type == '0'? data.wfHistoryList : data.fyHistoryList;
220
239
  } else {
221
240
  this.$toast(msg);
222
241
  }
@@ -0,0 +1,234 @@
1
+ <template>
2
+ <div class="process-page">
3
+ <div class="main">
4
+ <div v-if="type == 4" class="box">
5
+ <div class="title">
6
+ 流程列表
7
+ <div
8
+ class="check-btn"
9
+ v-if="handleUserList.length"
10
+ @click="handleToggel"
11
+ >
12
+ <van-checkbox v-model="isSelectAll">全选</van-checkbox>
13
+ </div>
14
+ </div>
15
+ <div v-if="isLoad && !handleUserList.length" class="no-data">
16
+ 暂无数据
17
+ </div>
18
+ <div class="list-area">
19
+ <van-checkbox-group
20
+ v-model="selectedIds"
21
+ @change="handleSelectChange"
22
+ >
23
+ <van-checkbox
24
+ v-for="(item, index) in handleUserList"
25
+ :key="index"
26
+ :name="item.id"
27
+ class="list-item"
28
+ >
29
+ <p class="name-area">
30
+ <span class="handle-name-flow">{{ item.userName }}</span>
31
+ <span class="user-name-flow">{{ item.itemname }}</span>
32
+ <span :class="`handle-status ${item.pendstate == 1?'success' : ''}`">{{ item.querykeywords }}</span>
33
+ </p>
34
+ <p class="time">{{ item.createtime }}</p>
35
+ </van-checkbox>
36
+ </van-checkbox-group>
37
+ </div>
38
+ </div>
39
+ <div v-if="type == 3" class="box">
40
+ <div class="title">
41
+ 未处理分阅列表
42
+ <div
43
+ class="check-btn"
44
+ v-if="handleUserList.length"
45
+ @click="handleToggel"
46
+ >
47
+ <van-checkbox v-model="isSelectAll">全选</van-checkbox>
48
+ </div>
49
+ </div>
50
+ <div v-if="isLoad && !handleUserList.length" class="no-data">
51
+ 暂无数据
52
+ </div>
53
+ <div class="list-area">
54
+ <van-checkbox-group
55
+ v-model="selectedIds"
56
+ @change="handleSelectChange"
57
+ >
58
+ <van-checkbox
59
+ v-for="(item, index) in handleUserList"
60
+ :key="index"
61
+ :name="item.id"
62
+ class="list-item"
63
+ >
64
+ <p class="name-area">
65
+ <span class="user-name">{{ item.itemname }}</span>
66
+ <span class="handle-name">{{ item.userName }}</span>
67
+ <span class="handle-status">{{ item.pendstate }}</span>
68
+ </p>
69
+ <p class="time">创建时间:{{ item.createtime }}</p>
70
+ </van-checkbox>
71
+ </van-checkbox-group>
72
+ </div>
73
+ </div>
74
+ <div v-if="type == 3" class="box" style="margin-top: 12px">
75
+ <div class="title">已处理分阅列表</div>
76
+ <div v-if="isLoad && !hadDoUserList.length" class="no-data">
77
+ 暂无数据
78
+ </div>
79
+ <div class="list-area list-area2">
80
+ <div
81
+ v-for="(item, index) in hadDoUserList"
82
+ :key="index"
83
+ class="list-item list-item2"
84
+ >
85
+ <p class="name-area">
86
+ <span class="user-name">{{ item.itemname }}</span>
87
+ <span class="handle-name">{{ item.userName }}</span>
88
+ <span class="handle-status success">已办理</span>
89
+ </p>
90
+ <p class="time">办理时间:{{ item.doendtime || item.doetime }}</p>
91
+ <p class="time">代办人:{{ item.doUserName || item.doetime }}</p>
92
+ <p class="time">意见:{{ item.doresult }}</p>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ <div class="btn-area" v-if="showBtn">
98
+ <van-button round class="btn" @click="handleClose">取消</van-button>
99
+ <van-button type="primary" round class="btn" @click="handleConfirm"
100
+ >撤销分阅</van-button
101
+ >
102
+ </div>
103
+ </div>
104
+ </template>
105
+
106
+ <script>
107
+ import {
108
+ taskReadList,
109
+ cancelTaskRead,
110
+ pendedhistoryList
111
+ } from '../../../src/config/api.js';
112
+ import request from '../../../src/utils/http.js';
113
+ export default {
114
+ props: {
115
+ businessId: {
116
+ type: String,
117
+ default: ''
118
+ },
119
+ type: {
120
+ type: String,
121
+ default: '3'
122
+ },
123
+ showBtn:{
124
+ type: Boolean,
125
+ default: true
126
+ }
127
+ },
128
+ data() {
129
+ return {
130
+ isLoad: false,
131
+ hadDoUserList: [],
132
+ handleUserList: [],
133
+ isSelectAll: false,
134
+ selectedIds: [],
135
+ selectedData: [],
136
+ };
137
+ },
138
+ mounted() {
139
+ if (this.type == 3) {
140
+ this.getReadData(1);
141
+ this.getReadData(2);
142
+ } else if (this.type == 4) {
143
+ this.getpendedhistoryList();
144
+ }
145
+ },
146
+ methods: {
147
+ getpendedhistoryList() {
148
+ request({
149
+ url: pendedhistoryList,
150
+ type: 'post',
151
+ params: {
152
+ type: 0,
153
+ apprecordid: this.businessId
154
+ }
155
+ }).then((res) => {
156
+ const { status, data } = res;
157
+ if (status == 'success') {
158
+ this.handleUserList = data.wfHistoryList.filter(x => x.pendstate == 0 || x.pendstate == 1);
159
+ } else {
160
+ this.$toast(msg);
161
+ }
162
+ });
163
+ },
164
+ getReadData(status) {
165
+ request({
166
+ url: taskReadList,
167
+ params: {
168
+ appRecordId: this.businessId,
169
+ status
170
+ }
171
+ }).then((res) => {
172
+ this.isLoad = true;
173
+ if (status == 1) {
174
+ this.handleUserList = res.data || [];
175
+ } else {
176
+ this.hadDoUserList = res.data || [];
177
+ }
178
+ });
179
+ },
180
+ handleConfirm() {
181
+ if (!this.selectedIds.length) {
182
+ this.$toast('请选择需要撤销的分阅数据!');
183
+ return;
184
+ }
185
+ this.$toast.loading({
186
+ message: '提交中...',
187
+ forbidClick: true,
188
+ loadingType: 'spinner',
189
+ overlay: true,
190
+ duration: 0
191
+ });
192
+ request({
193
+ url: cancelTaskRead,
194
+ params: {
195
+ appRecordId: this.businessId,
196
+ pendingIds: this.selectedIds.join(',')
197
+ }
198
+ }).then((res) => {
199
+ this.$toast.clear();
200
+ if (res.rCode == 0) {
201
+ this.$toast('操作成功');
202
+ this.selectedIds = [];
203
+ this.selectedData = []
204
+ this.getReadData(1);
205
+ this.getReadData(2);
206
+ } else {
207
+ this.$toast(res.msg);
208
+ }
209
+ });
210
+ },
211
+ handleClose() {
212
+ this.$parent.$emit('close');
213
+ },
214
+ handleSelectChange(val) {
215
+ console.log(val,'点击了')
216
+ this.selectedData = this.handleUserList.filter(x => val.includes(x.id))
217
+ if (this.selectedIds.length === this.handleUserList.length) {
218
+ this.isSelectAll = true;
219
+ } else {
220
+ this.isSelectAll = false;
221
+ }
222
+ },
223
+ handleToggel() {
224
+ if (!this.isSelectAll) {
225
+ this.selectedIds = this.handleUserList.map((i) => i.id);
226
+ this.selectedData = this.handleUserList
227
+ } else {
228
+ this.selectedIds = [];
229
+ this.selectedData = [];
230
+ }
231
+ }
232
+ }
233
+ };
234
+ </script>