eoss-mobiles 0.2.69 → 0.2.71

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/CHANGELOG.md +5 -1
  2. package/lib/checkbox.js +0 -2
  3. package/lib/date.js +11 -6
  4. package/lib/eoss-mobile.common.js +634 -345
  5. package/lib/esign.js +3 -3
  6. package/lib/field.js +10 -5
  7. package/lib/flow-btn.js +3 -7
  8. package/lib/flow-list.js +0 -2
  9. package/lib/flow.js +8 -12
  10. package/lib/form.js +2 -5
  11. package/lib/index.js +1 -1
  12. package/lib/picker.js +133 -45
  13. package/lib/radio.js +0 -2
  14. package/lib/retrial-auth.js +0 -2
  15. package/lib/selector.js +428 -232
  16. package/lib/table-column.js +0 -2
  17. package/lib/table.js +0 -2
  18. package/lib/theme-chalk/flow.css +1 -1
  19. package/lib/theme-chalk/index.css +1 -1
  20. package/lib/theme-chalk/picker.css +1 -1
  21. package/lib/theme-chalk/selector.css +1 -1
  22. package/lib/theme-chalk/tree.css +1 -1
  23. package/lib/utils/http.js +0 -1
  24. package/lib/utils/util.js +0 -1
  25. package/package.json +1 -1
  26. package/packages/date/src/main.vue +2 -2
  27. package/packages/esign/src/main.vue +1 -1
  28. package/packages/field/src/main.vue +3 -2
  29. package/packages/flow/src/components/Opinion.vue +1 -2
  30. package/packages/flow/src/flowMix.js +0 -1
  31. package/packages/flow-btn/src/main.vue +0 -1
  32. package/packages/form/src/main.vue +163 -166
  33. package/packages/picker/src/main.vue +52 -6
  34. package/packages/selector/src/main.vue +71 -25
  35. package/packages/selector/src/selector-field.vue +7 -8
  36. package/packages/selector/src/selector-tree.vue +48 -3
  37. package/packages/selector/src/tree.vue +120 -41
  38. package/packages/theme-chalk/lib/flow.css +1 -1
  39. package/packages/theme-chalk/lib/index.css +1 -1
  40. package/packages/theme-chalk/lib/picker.css +1 -1
  41. package/packages/theme-chalk/lib/selector.css +1 -1
  42. package/packages/theme-chalk/lib/tree.css +1 -1
  43. package/packages/theme-chalk/src/picker.scss +15 -11
  44. package/packages/theme-chalk/src/selector.scss +11 -1
  45. package/packages/theme-chalk/src/tree.scss +14 -2
  46. package/src/index.js +1 -1
  47. package/src/utils/http.js +0 -1
  48. package/src/utils/util.js +0 -1
@@ -13,9 +13,9 @@
13
13
  :placeholder="
14
14
  pickerValue
15
15
  ? pickerValue
16
- : disabled || readonly
16
+ : (disabled || readonly) && placeholder == undefined
17
17
  ? '暂无数据'
18
- : placeholder
18
+ : placeholder != undefined
19
19
  ? placeholder
20
20
  : `请选择${label}`
21
21
  "
@@ -52,9 +52,9 @@
52
52
  </div>
53
53
  <div v-else style="color:#c8c9cc">
54
54
  {{
55
- disabled || readonly
55
+ (disabled || readonly) && placeholder == undefined
56
56
  ? ' 暂无数据'
57
- : !placeholder
57
+ : placeholder == undefined
58
58
  ? '请选择' + label
59
59
  : placeholder
60
60
  }}
@@ -75,6 +75,13 @@
75
75
  @cancel="showPicker = false"
76
76
  @confirm="onConfirm($event, true)"
77
77
  >
78
+ <template slot="columns-top" v-if="isSearch">
79
+ <em-search
80
+ v-model="keyWord"
81
+ @search="handleSearch"
82
+ placeholder="请输入搜索关键词"
83
+ />
84
+ </template>
78
85
  <template v-for="(index, name) in $slots" :slot="name">
79
86
  <slot :name="name" />
80
87
  </template>
@@ -92,7 +99,14 @@
92
99
  @cancel="onConfirm"
93
100
  @confirm="onConfirm($event, true)"
94
101
  >
95
- <template slot="columns-top">
102
+ <template slot="columns-top" v-if="isSearch">
103
+ <em-search
104
+ v-model="keyWord"
105
+ @search="handleSearch"
106
+ placeholder="请输入搜索关键词"
107
+ />
108
+ </template>
109
+ <template slot="columns-bottom">
96
110
  <div class="em-picker__columns">
97
111
  <em-list
98
112
  v-model="listLoading"
@@ -133,6 +147,7 @@ export default {
133
147
  return {
134
148
  showPicker: false,
135
149
  newLoading: false,
150
+ keyWord: '',
136
151
  newLabelKey: '',
137
152
  newValueKey: '',
138
153
  listLoading: false,
@@ -150,6 +165,10 @@ export default {
150
165
  type: [String, Array, Object],
151
166
  default: ''
152
167
  },
168
+ isSearch: {
169
+ type: Boolean,
170
+ default: false
171
+ },
153
172
  hideLabel: {
154
173
  type: Boolean,
155
174
  default: false
@@ -197,6 +216,10 @@ export default {
197
216
  type: String,
198
217
  default: 'value'
199
218
  },
219
+ searchKey: {
220
+ type: String,
221
+ default: 'keyWord'
222
+ },
200
223
  labelKey: {
201
224
  type: String,
202
225
  default: 'name'
@@ -270,6 +293,10 @@ export default {
270
293
  }
271
294
  },
272
295
  watch: {
296
+ events: {
297
+ type: Object,
298
+ default: () => {}
299
+ },
273
300
  labelKey: {
274
301
  handler(val) {
275
302
  this.newLabelKey = val;
@@ -330,6 +357,21 @@ export default {
330
357
  }
331
358
  },
332
359
  methods: {
360
+ handleSearch() {
361
+ this.$emit('search', this.keyWord);
362
+
363
+ if (this.columns.length > 0) {
364
+ this.newColumns = this.columns.filter(
365
+ x => x[this.labelKey].indexOf(this.keyWord) != -1
366
+ );
367
+ if (!this.keyWord) {
368
+ this.newColumns = this.columns;
369
+ }
370
+ }
371
+
372
+ if ((this.columns && this.columns.length == 0) || !this.columns)
373
+ this.getSysCode();
374
+ },
333
375
  handleClick(val) {
334
376
  if (this.linkTag) {
335
377
  this.$emit('tagClick', val);
@@ -361,6 +403,7 @@ export default {
361
403
  this.pickerValue.splice(val, 1);
362
404
  this.checkList = this.checkList.filter(x => x != res.value);
363
405
  this.$emit('input', this.pickerValue);
406
+
364
407
  this.$emit('tagDelete', this.pickerValue);
365
408
  },
366
409
  toggle(index) {
@@ -464,7 +507,7 @@ export default {
464
507
  return value;
465
508
  },
466
509
  getSysCode() {
467
- const { url, method, sysAppCode, param } = this;
510
+ let { url, method, sysAppCode, param, keyWord } = this;
468
511
  let params = {
469
512
  url: this.baseUrl
470
513
  ? this.baseUrl + (url || findSysCode)
@@ -476,6 +519,9 @@ export default {
476
519
  ...param
477
520
  }
478
521
  };
522
+ if (this.isSearch) {
523
+ params.params[this.searchKey] = keyWord;
524
+ }
479
525
  this.newLoading = true;
480
526
  request(params)
481
527
  .then(res => {
@@ -3,13 +3,14 @@
3
3
  <selector-field
4
4
  v-if="!this.$scopedSlots.input && !this.$slots.input && !showTree"
5
5
  v-bind="$attrs"
6
+ :input-value="inputValue"
6
7
  :data="selectList"
7
8
  @change="handleChangeSel"
8
9
  @click="handleSelector"
9
10
  />
10
11
  <slot v-else name="input" :click="handleSelector" />
11
12
  <em-selector-tree
12
- v-if="(showSelectorTree || showTree) && (typeof value !== 'string')"
13
+ v-if="(showSelectorTree || showTree) && typeof value !== 'string'"
13
14
  v-bind="$attrs"
14
15
  v-on="$listeners"
15
16
  :showTree="showTree"
@@ -19,26 +20,42 @@
19
20
  @dispose="handleDispose"
20
21
  @close="handleDispose()"
21
22
  >
22
- <template v-if="$scopedSlots['tree-icon']" slot="tree-icon" slot-scope="{value}">
23
- <slot v-if="$scopedSlots['tree-icon']" name="tree-icon" :value="value"></slot>
24
- </template>
23
+ <template
24
+ v-if="$scopedSlots['tree-icon']"
25
+ slot="tree-icon"
26
+ slot-scope="{ value }"
27
+ >
28
+ <slot
29
+ v-if="$scopedSlots['tree-icon']"
30
+ name="tree-icon"
31
+ :value="value"
32
+ ></slot>
33
+ </template>
25
34
  </em-selector-tree>
26
35
  <div v-if="typeof value === 'string'">
27
36
  <em-selector-tree
28
- v-show="showSelectorTree || showTree"
29
- v-bind="$attrs"
30
- v-on="$listeners"
31
- :showTree="showTree"
32
- :showMore="$listeners['left-icon'] == undefined"
33
- :isTreeIcon=" $scopedSlots['tree-icon'] != undefined"
34
- :selectList.sync="selectList"
35
- @dispose="handleDispose"
36
- @close="handleDispose()"
37
- >
38
- <template v-if="$scopedSlots['tree-icon']" slot="tree-icon" slot-scope="{value}">
39
- <slot v-if="$scopedSlots['tree-icon']" name="tree-icon" :value="value"></slot>
40
- </template>
41
- </em-selector-tree>
37
+ v-show="showSelectorTree || showTree"
38
+ v-bind="$attrs"
39
+ v-on="$listeners"
40
+ :showTree="showTree"
41
+ :showMore="$listeners['left-icon'] == undefined"
42
+ :isTreeIcon="$scopedSlots['tree-icon'] != undefined"
43
+ :selectList.sync="selectList"
44
+ @dispose="handleDispose"
45
+ @close="handleDispose()"
46
+ >
47
+ <template
48
+ v-if="$scopedSlots['tree-icon']"
49
+ slot="tree-icon"
50
+ slot-scope="{ value }"
51
+ >
52
+ <slot
53
+ v-if="$scopedSlots['tree-icon']"
54
+ name="tree-icon"
55
+ :value="value"
56
+ ></slot>
57
+ </template>
58
+ </em-selector-tree>
42
59
  </div>
43
60
  </div>
44
61
  </template>
@@ -51,25 +68,33 @@ export default {
51
68
  name: 'EmSelector',
52
69
  inheritAttrs: false,
53
70
  props: {
54
- value: { type: [Array,String], default: () => [] },
71
+ value: { type: [Array, String], default: () => [] },
55
72
  showTree: {
56
73
  type: Boolean,
57
74
  default: false
58
- },
75
+ }
59
76
  },
60
77
  data() {
61
78
  return {
62
79
  showSelectorTree: false,
80
+ inputValue: ''
63
81
  // newSelectList:[]
64
82
  };
65
83
  },
66
- watch:{
67
- value:{
68
- handler(val){
84
+ watch: {
85
+ value: {
86
+ handler(val) {
69
87
  this.selectList = val;
88
+ if (this.selectList.length > 0) {
89
+ this.inputValue = this.selectList[0][
90
+ this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
91
+ ];
92
+ } else {
93
+ this.inputValue = '';
94
+ }
70
95
  },
71
- deep:true,
72
- immediate:true
96
+ deep: true,
97
+ immediate: true
73
98
  }
74
99
  },
75
100
  computed: {
@@ -99,9 +124,18 @@ export default {
99
124
  * @param {Object} val 选中的人员/单位
100
125
  */
101
126
  handleDispose(val) {
127
+ this.inputValue = '';
102
128
  if (val) {
103
129
  const { list } = val;
104
130
  this.selectList = list;
131
+ if (val.list.length > 0) {
132
+ this.inputValue =
133
+ list[0][
134
+ this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
135
+ ];
136
+ } else {
137
+ this.inputValue = '';
138
+ }
105
139
  }
106
140
  this.showSelectorTree = false;
107
141
  },
@@ -113,6 +147,18 @@ export default {
113
147
  * @param {Array} val 变化后的选中数据
114
148
  */
115
149
  handleChangeSel(val) {
150
+ if (val) {
151
+ const { list } = val;
152
+ this.selectList = list;
153
+ if (val.list.length > 0) {
154
+ this.inputValue =
155
+ list[0][
156
+ this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
157
+ ];
158
+ } else {
159
+ this.inputValue = '';
160
+ }
161
+ }
116
162
  this.$emit('input', val.list);
117
163
  }
118
164
  }
@@ -3,6 +3,7 @@
3
3
  <em-input
4
4
  :class="{ 'hide-label': hideLabel }"
5
5
  v-bind="$attrs"
6
+ v-model="inputValue"
6
7
  readonly
7
8
  clickable
8
9
  @click="clickTree()"
@@ -58,12 +59,7 @@
58
59
 
59
60
  <div v-else style="color:#c8c9cc">
60
61
  {{
61
- disabled
62
- ? $attrs.placeholder
63
- ? $attrs.placeholder
64
- : ' 暂无数据'
65
- : !$attrs.placeholder
66
- ? '请选择' + $attrs.label
62
+ disabled && !$attrs.placeholder ?'暂无数据' : !$attrs.placeholder ? '请选择' + $attrs.label
67
63
  : $attrs.placeholder
68
64
  }}
69
65
  </div>
@@ -79,7 +75,7 @@ export default {
79
75
  return {
80
76
  newSelectList: [],
81
77
  newNextUserList: [],
82
- selectValue: ''
78
+ selectValue: '',
83
79
  };
84
80
  },
85
81
  props: {
@@ -91,6 +87,10 @@ export default {
91
87
  type: Boolean,
92
88
  default: false
93
89
  },
90
+ inputValue:{
91
+ type:String,
92
+ default:''
93
+ },
94
94
  readonly: { type: Boolean, default: false },
95
95
  selectDisabled: {
96
96
  type: Boolean,
@@ -182,7 +182,6 @@ export default {
182
182
  }, []);
183
183
  },
184
184
  handleChange(val, info) {
185
- console.log('点击了');
186
185
  const _this = this;
187
186
  if (_this.multiple) {
188
187
  if (info.checked) {
@@ -44,6 +44,14 @@
44
44
  :departmentLabelKey="departmentLabelKey"
45
45
  :departmentValueKey="departmentValueKey"
46
46
  :nodeKey="nodeKey"
47
+ :showCount="showCount"
48
+ :countKey="countKey"
49
+ :showNameIcon="showNameIcon"
50
+ :nameColor="nameColor"
51
+ :nameBgColor="nameBgColor"
52
+ :countPosition="countPosition"
53
+ :nameSize="nameSize"
54
+ :unit="unit"
47
55
  v-on="$listeners"
48
56
  @popen="open"
49
57
  :isAllCheck="isAllCheck"
@@ -100,6 +108,42 @@ export default {
100
108
  type: Boolean,
101
109
  default: false
102
110
  },
111
+ nameSize:{
112
+ type:[String,Number],
113
+ default:38
114
+ },
115
+ nameBgColor:{
116
+ tpe:String,
117
+ default:''
118
+ },
119
+ countPosition:{
120
+ type:String,
121
+ default:'right'
122
+ },
123
+ showNameIcon:{
124
+ type: Boolean,
125
+ default: false
126
+ },
127
+ nameColor:{
128
+ type:String,
129
+ default:'#fff'
130
+ },
131
+ showNameIcon: {
132
+ type: Boolean,
133
+ default: false
134
+ },
135
+ countKey: {
136
+ type: String,
137
+ default: 'count'
138
+ },
139
+ showCount: {
140
+ type: Boolean,
141
+ default: false
142
+ },
143
+ unit: {
144
+ type: String,
145
+ default: '人'
146
+ },
103
147
  showSearch: {
104
148
  type: Boolean,
105
149
  default: true
@@ -684,7 +728,8 @@ export default {
684
728
  ].param.selecttype;
685
729
  if (this.newParam.selecttype === 'persongroup') {
686
730
  this.newParam.pid = 'root';
687
- this.newParam.myUserid = this.newParam.myUserid || $.getStorage('userId');
731
+ this.newParam.myUserid =
732
+ this.newParam.myUserid || $.getStorage('userId');
688
733
  } else {
689
734
  this.newParam.pid = this.param.pid || 'root';
690
735
  }
@@ -812,7 +857,7 @@ export default {
812
857
  }
813
858
  }
814
859
  let newData = res.obj;
815
- if (!newData.children && !isStart) {
860
+ if ((!newData.children || newData.children.length == 0) && !isStart) {
816
861
  if (this.nodeList && this.nodeList.length > 0) {
817
862
  this.$toast.loading({
818
863
  message: '加载中...',
@@ -867,7 +912,7 @@ export default {
867
912
  this.$toast.clear();
868
913
  }
869
914
  } else {
870
- if (!res.obj.children) {
915
+ if (!res.obj.children || res.obj.children.length == 0) {
871
916
  this.getData(res.obj);
872
917
  }
873
918
  }
@@ -7,13 +7,14 @@
7
7
  :class="{ active: item.open }"
8
8
  >
9
9
  <div v-if="item[nodeKey] && isShowNode(item[valueKey])">
10
- <div v-tap="{ methods: handleClickIcon, obj: item }" class="title">
10
+ <div v-tap="{ methods: handleClickIcon, obj: item }" class="title">
11
11
  <div class="text">
12
12
  <div
13
13
  class="label"
14
14
  v-if="
15
15
  (item.parentshowid === '' || item.parentshowid === 'root') &&
16
- !isTreeIcon
16
+ !isTreeIcon &&
17
+ !showNameIcon
17
18
  "
18
19
  >
19
20
  <!-- item[labelKey] && item[labelKey].length > 12
@@ -21,36 +22,74 @@
21
22
  : item[labelKey] -->
22
23
  </div>
23
24
  <div
24
- v-if="isTreeIcon"
25
+ v-if="showNameIcon"
26
+ class="label-name-icon"
27
+ :style="{
28
+ width: nameSize + 'px',
29
+ height: nameSize + 'px',
30
+ color: item.color || nameColor,
31
+ backgroundColor: item.bgColor || nameBgColor
32
+ }"
33
+ >
34
+ {{ item[labelKey].substring(0, 1) }}
35
+ </div>
36
+ <div
37
+ v-else-if="isTreeIcon"
25
38
  v-tap.stop="{ methods: handleClickIcon, obj: item }"
26
39
  >
27
40
  <slot name="tree-icon" :value="item"></slot>
28
41
  </div>
29
- <span v-tap.stop="{ methods: opened, obj: item }">{{ item[labelKey] }}</span>
42
+ <span
43
+ v-tap.stop="{ methods: opened, obj: item }"
44
+ class="label-name-text"
45
+ :style="{
46
+ display: countPosition === 'right' ? 'flex' : 'unset',
47
+ flex: countPosition === 'right' ? '1' : 'unset'
48
+ }"
49
+ >{{ item[labelKey] }}</span
50
+ >
51
+ <span
52
+ class="selector-left-count"
53
+ v-if="showCount && countPosition === 'left' && item[countKey]"
54
+ >{{ item[countKey] + unit }}</span
55
+ >
56
+ </div>
57
+ <div class="selector-right">
58
+ <span
59
+ class="selector-right-count"
60
+ v-if="showCount && countPosition === 'right' && item[countKey]"
61
+ >{{ item[countKey] + unit }}</span
62
+ >
63
+ <van-icon
64
+ name="arrow"
65
+ v-tap.stop="{ methods: handleClickIcon, obj: item }"
66
+ class="right"
67
+ :style="{ transform: item.open ? 'rotate(90deg)' : '' }"
68
+ v-if="showMore"
69
+ />
70
+ <i
71
+ class="iconfont icon-gou select-icon"
72
+ v-show="
73
+ (enterprise ||
74
+ (department &&
75
+ item[departmentLabelKey] == departmentValueKey)) &&
76
+ !showTree
77
+ "
78
+ v-tap.stop="{ methods: checke, obj: item }"
79
+ v-if="item.checked"
80
+ ></i>
81
+ <i
82
+ class="iconfont icon-quan select-icon"
83
+ v-show="
84
+ (enterprise ||
85
+ (department &&
86
+ item[departmentLabelKey] == departmentValueKey)) &&
87
+ !showTree
88
+ "
89
+ v-tap.stop="{ methods: checke, obj: item }"
90
+ v-else
91
+ ></i>
30
92
  </div>
31
- <van-icon name="arrow" v-tap.stop="{ methods: handleClickIcon, obj: item }" class="right" v-if="showMore" />
32
- <i
33
- class="iconfont icon-gou select-icon"
34
- v-show="
35
- (enterprise ||
36
- (department &&
37
- item[departmentLabelKey] == departmentValueKey)) &&
38
- !showTree
39
- "
40
- v-tap.stop="{ methods: checke, obj: item }"
41
- v-if="item.checked"
42
- ></i>
43
- <i
44
- class="iconfont icon-quan select-icon"
45
- v-show="
46
- (enterprise ||
47
- (department &&
48
- item[departmentLabelKey] == departmentValueKey)) &&
49
- !showTree
50
- "
51
- v-tap.stop="{ methods: checke, obj: item }"
52
- v-else
53
- ></i>
54
93
  </div>
55
94
  <template v-if="item.children && item.children.length > 0">
56
95
  <em-tree
@@ -65,6 +104,14 @@
65
104
  :label-key="labelKey"
66
105
  :value-key="valueKey"
67
106
  :showTree="showTree"
107
+ :showCount="showCount"
108
+ :countKey="countKey"
109
+ :showNameIcon="showNameIcon"
110
+ :nameBgColor="nameBgColor"
111
+ :countPosition="countPosition"
112
+ :nameColor="nameColor"
113
+ :nameSize="nameSize"
114
+ :unit="unit"
68
115
  :showMore="showMore"
69
116
  :enterprise="enterprise"
70
117
  :isTreeIcon="isTreeIcon"
@@ -96,7 +143,7 @@
96
143
  "
97
144
  ></div>
98
145
  <div
99
- class="head"
146
+ class="em-show-tree-head"
100
147
  v-if="
101
148
  ((item.attr && JSON.parse(item.attr).sex) ||
102
149
  item.sex ||
@@ -162,6 +209,38 @@ export default {
162
209
  inheritAttrs: false,
163
210
  props: {
164
211
  model: Array,
212
+ nameSize: {
213
+ type: [String, Number],
214
+ default: 38
215
+ },
216
+ showNameIcon: {
217
+ type: Boolean,
218
+ default: false
219
+ },
220
+ nameBgColor: {
221
+ tpe: String,
222
+ default: ''
223
+ },
224
+ countPosition: {
225
+ type: String,
226
+ default: 'right'
227
+ },
228
+ nameColor: {
229
+ type: String,
230
+ default: '#fff'
231
+ },
232
+ countKey: {
233
+ type: String,
234
+ default: 'count'
235
+ },
236
+ showCount: {
237
+ type: Boolean,
238
+ default: false
239
+ },
240
+ unit: {
241
+ type: String,
242
+ default: '人'
243
+ },
165
244
  enterprise: {
166
245
  type: Boolean,
167
246
  default: false
@@ -207,13 +286,13 @@ export default {
207
286
  type: String,
208
287
  default: 'showshortname'
209
288
  },
210
- isAllCheck:{
211
- type:Boolean,
212
- default:false
289
+ isAllCheck: {
290
+ type: Boolean,
291
+ default: false
213
292
  },
214
- showMore:{
215
- type:Boolean,
216
- default:true
293
+ showMore: {
294
+ type: Boolean,
295
+ default: true
217
296
  },
218
297
  oldIsSearch: Boolean,
219
298
  isSearch: Boolean
@@ -244,17 +323,17 @@ export default {
244
323
  });
245
324
  },
246
325
  methods: {
247
- handleClickIcon(res, isStart){
248
- if(!this.$listeners['left-icon'] && !this.showMore) return
249
- this.$emit('popen', res, res.isStart || isStart,true,'node');
326
+ handleClickIcon(res, isStart) {
327
+ if (!this.$listeners['left-icon'] && !this.showMore) return;
328
+ this.$emit('popen', res, res.isStart || isStart, true, 'node');
250
329
  },
251
330
  opened(res, isStart) {
252
- this.$emit('popen', res, res.isStart || isStart,true,'title');
331
+ this.$emit('popen', res, res.isStart || isStart, true, 'title');
253
332
  },
254
333
  checke(res) {
255
- let model = undefined
256
- if(this.isAllCheck) model = this.model
257
- this.$emit('checke', res,model);
334
+ let model = undefined;
335
+ if (this.isAllCheck) model = this.model;
336
+ this.$emit('checke', res, model);
258
337
  },
259
338
  isShowNode(id) {
260
339
  let isShow = true;