eoss-ui 0.5.90 → 0.5.92

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 (56) hide show
  1. package/lib/button-group.js +9 -3
  2. package/lib/button.js +9 -3
  3. package/lib/checkbox-group.js +9 -3
  4. package/lib/data-table-form.js +9 -3
  5. package/lib/data-table.js +9 -3
  6. package/lib/date-picker.js +9 -3
  7. package/lib/dialog.js +9 -3
  8. package/lib/eoss-ui.common.js +4780 -4501
  9. package/lib/flow-group.js +9 -3
  10. package/lib/flow-list.js +9 -3
  11. package/lib/flow.js +9 -3
  12. package/lib/form.js +4500 -4242
  13. package/lib/handle-user.js +9 -3
  14. package/lib/handler.js +206 -195
  15. package/lib/icon.js +9 -3
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +9 -3
  18. package/lib/input.js +9 -3
  19. package/lib/login.js +23 -7
  20. package/lib/main.js +32 -26
  21. package/lib/nav.js +9 -3
  22. package/lib/page.js +9 -3
  23. package/lib/pagination.js +9 -3
  24. package/lib/player.js +9 -3
  25. package/lib/qr-code.js +9 -3
  26. package/lib/radio-group.js +9 -3
  27. package/lib/retrial-auth.js +9 -3
  28. package/lib/select-ganged.js +9 -3
  29. package/lib/select.js +9 -3
  30. package/lib/selector-panel.js +17 -10
  31. package/lib/selector.js +16 -5
  32. package/lib/sizer.js +9 -3
  33. package/lib/steps.js +9 -3
  34. package/lib/switch.js +9 -3
  35. package/lib/table-form.js +9 -3
  36. package/lib/tabs.js +9 -3
  37. package/lib/tips.js +9 -3
  38. package/lib/tree-group.js +9 -3
  39. package/lib/tree.js +9 -3
  40. package/lib/upload.js +9 -3
  41. package/lib/utils/util.js +9 -3
  42. package/lib/wujie.js +9 -3
  43. package/lib/wxlogin.js +9 -3
  44. package/package.json +1 -1
  45. package/packages/.DS_Store +0 -0
  46. package/packages/form/src/main.vue +1863 -1759
  47. package/packages/handler/src/main.vue +95 -97
  48. package/packages/login/src/main.vue +17 -6
  49. package/packages/main/src/main.vue +2 -1
  50. package/packages/main/src/public/search.vue +6 -4
  51. package/packages/main/src/simplicity/index.vue +2 -1
  52. package/packages/selector/src/main.vue +4 -0
  53. package/packages/selector-panel/src/main.vue +19 -5
  54. package/src/.DS_Store +0 -0
  55. package/src/index.js +1 -1
  56. package/src/utils/util.js +426 -238
@@ -1,108 +1,105 @@
1
1
  <template>
2
2
  <ul class="es-handler">
3
- <li
4
- v-for="(item, index) in lists"
5
- :key="index"
6
- class="es-handler-item"
7
- v-if="!item.hide"
8
- >
9
- <es-handle-user
10
- v-if="item.type === 'user'"
11
- class="es-handler-user"
12
- :data="item"
13
- :userModel="userModel"
14
- :job-scrollbar="jobScrollbar"
15
- @visible-change="handleVisibleChange"
16
- @click="handleClick"
17
- @change="handleChange"
18
- ></es-handle-user>
19
- <div v-else-if="item.type === 'date'" class="es-handler-date">
20
- <div>
21
- {{ time }}
22
- <span v-if="show"
23
- >当前<span
24
- class="es-online-num"
25
- :class="{ 'es-pointer': onlineList }"
26
- @click.stop="onlineList ? handleClick({ type: 'online' }) : ''"
27
- >{{ online }}</span
28
- >人在线</span
29
- >
30
- </div>
31
- <div>今 天:{{ date }}</div>
32
- </div>
33
- <el-popover
34
- v-else-if="item.type === 'system'"
35
- placement="bottom"
36
- trigger="hover"
37
- ref="system"
38
- :popper-class="
39
- system.length > 4
40
- ? 'es-popper-sub-system is-width'
41
- : 'es-popper-sub-system'
42
- "
43
- @show="showPopper = true"
44
- @hide="showPopper = false"
45
- >
46
- <el-scrollbar :max-height="maxHeight" v-if="system.length">
47
- <ul class="es-sub-system">
48
- <li
49
- v-for="ele in system"
50
- class="es-sub-system-item"
51
- :class="{
52
- 'es-disabled':
53
- (application && !ele.hasPermission) ||
54
- (ele.extendData && ele.extendData.businessStatus == 0)
55
- }"
56
- :key="ele.id"
57
- :title="ele.text"
58
- @click.stop="handleSelect({ node: ele })"
3
+ <li v-for="(item, index) in lists" :key="index" class="es-handler-item">
4
+ <template v-if="!item.hide">
5
+ <es-handle-user
6
+ v-if="item.type === 'user'"
7
+ class="es-handler-user"
8
+ :data="item"
9
+ :userModel="userModel"
10
+ :job-scrollbar="jobScrollbar"
11
+ @visible-change="handleVisibleChange"
12
+ @click="handleClick"
13
+ @change="handleChange"
14
+ ></es-handle-user>
15
+ <div v-else-if="item.type === 'date'" class="es-handler-date">
16
+ <div>
17
+ {{ time }}
18
+ <span v-if="show"
19
+ >当前<span
20
+ class="es-online-num"
21
+ :class="{ 'es-pointer': onlineList }"
22
+ @click.stop="onlineList ? handleClick({ type: 'online' }) : ''"
23
+ >{{ online }}</span
24
+ >人在线</span
59
25
  >
60
- <el-badge
61
- :is-dot="typeof ele.tips === 'boolean'"
62
- :hidden="!ele.tips"
63
- :max="99"
64
- :value="typeof ele.tips !== 'boolean' ? ele.tips : 0"
65
- ><i
66
- :class="[
67
- unicode(ele.icons) ? ele.icons : 'es-icon',
68
- 'es-sub-system-icon',
69
- { 'es-icon-yingyong': !ele.icons }
70
- ]"
71
- v-html="unicode(ele.icons) ? '' : ele.icons"
72
- ></i
73
- ></el-badge>
74
- <div class="es-sub-system-title">{{ ele.text }}</div>
75
- </li>
76
- </ul>
77
- </el-scrollbar>
78
- <div
79
- slot="reference"
80
- class="es-handler-icon"
81
- :title="item.title"
82
- :class="item.icon"
83
- ></div>
84
- </el-popover>
85
- <el-badge
86
- class="es-badge"
87
- v-else-if="item.type === 'notice'"
88
- :value="notice"
89
- :max="99"
90
- :hidden="notice === 0"
91
- >
26
+ </div>
27
+ <div>今 天:{{ date }}</div>
28
+ </div>
29
+ <el-popover
30
+ v-else-if="item.type === 'system'"
31
+ placement="bottom"
32
+ trigger="hover"
33
+ ref="system"
34
+ :popper-class="
35
+ system.length > 4
36
+ ? 'es-popper-sub-system is-width'
37
+ : 'es-popper-sub-system'
38
+ "
39
+ @show="showPopper = true"
40
+ @hide="showPopper = false"
41
+ >
42
+ <el-scrollbar :max-height="maxHeight" v-if="system.length">
43
+ <ul class="es-sub-system">
44
+ <li
45
+ v-for="ele in system"
46
+ class="es-sub-system-item"
47
+ :class="{
48
+ 'es-disabled':
49
+ (application && !ele.hasPermission) ||
50
+ (ele.extendData && ele.extendData.businessStatus == 0)
51
+ }"
52
+ :key="ele.id"
53
+ :title="ele.text"
54
+ @click.stop="handleSelect({ node: ele })"
55
+ >
56
+ <el-badge
57
+ :is-dot="typeof ele.tips === 'boolean'"
58
+ :hidden="!ele.tips"
59
+ :max="99"
60
+ :value="typeof ele.tips !== 'boolean' ? ele.tips : 0"
61
+ ><i
62
+ :class="[
63
+ unicode(ele.icons) ? ele.icons : 'es-icon',
64
+ 'es-sub-system-icon',
65
+ { 'es-icon-yingyong': !ele.icons }
66
+ ]"
67
+ v-html="unicode(ele.icons) ? '' : ele.icons"
68
+ ></i
69
+ ></el-badge>
70
+ <div class="es-sub-system-title">{{ ele.text }}</div>
71
+ </li>
72
+ </ul>
73
+ </el-scrollbar>
74
+ <div
75
+ slot="reference"
76
+ class="es-handler-icon"
77
+ :title="item.title"
78
+ :class="item.icon"
79
+ ></div>
80
+ </el-popover>
81
+ <el-badge
82
+ class="es-badge"
83
+ v-else-if="item.type === 'notice'"
84
+ :value="notice"
85
+ :max="99"
86
+ :hidden="notice === 0"
87
+ >
88
+ <div
89
+ class="es-handler-icon"
90
+ :title="item.title"
91
+ :class="item.icon"
92
+ @click.stop="handleClick(item)"
93
+ ></div>
94
+ </el-badge>
92
95
  <div
96
+ v-else
93
97
  class="es-handler-icon"
94
98
  :title="item.title"
95
99
  :class="item.icon"
96
100
  @click.stop="handleClick(item)"
97
101
  ></div>
98
- </el-badge>
99
- <div
100
- v-else
101
- class="es-handler-icon"
102
- :title="item.title"
103
- :class="item.icon"
104
- @click.stop="handleClick(item)"
105
- ></div>
102
+ </template>
106
103
  </li>
107
104
  </ul>
108
105
  </template>
@@ -317,7 +314,8 @@ export default {
317
314
  'menus',
318
315
  'useCaseCodes',
319
316
  'mainConfig',
320
- 'jump'
317
+ 'jump',
318
+ 'showLaunch'
321
319
  ]);
322
320
  if (this.onQuit && typeof this.onQuit === 'function') {
323
321
  this.onQuit();
@@ -641,11 +641,20 @@ export default {
641
641
  }
642
642
  },
643
643
  warnInfo() {
644
- return this.warning === false
645
- ? false
646
- : typeof this.warning === 'string'
647
- ? this.warning
648
- : '本系统为非涉密系统,禁止上传和处理任何涉密文件';
644
+ if (this.warning === false && !this.warningText) {
645
+ return false;
646
+ }
647
+ if (
648
+ this.warningText &&
649
+ this.warningText !== 'true' &&
650
+ this.warningText !== true
651
+ ) {
652
+ return this.warningText;
653
+ }
654
+ if (this.warning && typeof this.warning === 'string') {
655
+ return this.warning;
656
+ }
657
+ return '本系统为非涉密系统,禁止上传和处理任何涉密文件';
649
658
  },
650
659
  switchs() {
651
660
  return Array.isArray(this.loginModel)
@@ -803,6 +812,7 @@ export default {
803
812
  checkCode: '',
804
813
  showAssistance: false,
805
814
  doAssistance: null,
815
+ warningText: '',
806
816
  safes: {
807
817
  paste: (event) => {
808
818
  event.preventDefault();
@@ -835,7 +845,8 @@ export default {
835
845
  'deviceUnique',
836
846
  'userId',
837
847
  'userName',
838
- 'useCaseCodes'
848
+ 'useCaseCodes',
849
+ 'showLaunch'
839
850
  ]);
840
851
  },
841
852
  created() {
@@ -180,7 +180,8 @@ export default {
180
180
  'menus',
181
181
  'useCaseCodes',
182
182
  'mainConfig',
183
- 'jump'
183
+ 'jump',
184
+ 'showLaunch'
184
185
  ]);
185
186
  const loginPage =
186
187
  util.getStorage('login') || util.getStorage('loginPage');
@@ -235,7 +235,7 @@ export default {
235
235
  this.searchAll(res);
236
236
  });
237
237
  this.handleSearchd = debounce(500, (obj, index) => {
238
- this.handleSearch(obj, index);
238
+ this.handleSearch(obj, index, false);
239
239
  });
240
240
  },
241
241
  created() {
@@ -335,7 +335,7 @@ export default {
335
335
  this.$set(this.noMore, item.id || String(i), true);
336
336
  } else if (item.dataRequestUrl) {
337
337
  this.isLoading = true;
338
- this.handleSearch(item, i);
338
+ this.handleSearch(item, i, true);
339
339
  } else {
340
340
  this.types[i].records = [];
341
341
  this.types[i].totalCount = 0;
@@ -371,7 +371,7 @@ export default {
371
371
  });
372
372
  return records;
373
373
  },
374
- handleSearch(obj, index) {
374
+ handleSearch(obj, index, reset) {
375
375
  if (obj.pageNum < obj.pageCount && this.keyWords) {
376
376
  this.$set(this.loadings, obj.id || String(index), true);
377
377
  if (this.active == '0') {
@@ -406,7 +406,9 @@ export default {
406
406
  obj.totalCount = results.totalCount;
407
407
  obj.pageCount = results.pageCount;
408
408
  obj.pageNum = results.pageNum;
409
- obj.records = obj.records.concat(results.records);
409
+ obj.records = reset
410
+ ? results.records
411
+ : obj.records.concat(results.records);
410
412
  this.$set(
411
413
  this.noMore,
412
414
  obj.id || String(index),
@@ -1707,7 +1707,8 @@ export default {
1707
1707
  'menus',
1708
1708
  'useCaseCodes',
1709
1709
  'mainConfig',
1710
- 'jump'
1710
+ 'jump',
1711
+ 'showLaunch'
1711
1712
  ]);
1712
1713
  if (this.onQuit && typeof this.onQuit === 'function') {
1713
1714
  this.onQuit();
@@ -203,6 +203,7 @@
203
203
  :type="types"
204
204
  :mix="mix"
205
205
  :isShowLevel3="isShowLevel3"
206
+ @tabschage="tabschage"
206
207
  @click.capture="stopd"
207
208
  @confirm="handleConfirm"
208
209
  @cancel="handleCancel"
@@ -536,6 +537,9 @@ export default {
536
537
  handleBlur() {
537
538
  this.focus = false;
538
539
  },
540
+ tabschage(trees, active) {
541
+ this.$emit('tabs-change', trees, active);
542
+ },
539
543
  handleClose(res) {
540
544
  if (!this.multiple && this.selected[0] === this.words) {
541
545
  this.selected = [];
@@ -652,12 +652,15 @@ export default {
652
652
  this.nodeData = this.trees[active].nodeData;
653
653
  } else {
654
654
  if (typeof this.selection === 'string') {
655
+ let params = this.param[this.activeName]
656
+ ? this.param[this.activeName]
657
+ : this.param;
655
658
  util
656
659
  .ajax({
657
660
  method: this.method,
658
661
  url: this.host + this.selection,
659
- params: this.param,
660
- data: this.param
662
+ params: params,
663
+ data: params
661
664
  })
662
665
  .then((res) => {
663
666
  if (res.rCode === 0) {
@@ -677,7 +680,11 @@ export default {
677
680
  }
678
681
  },
679
682
  getTreeData(url, params, id) {
680
- let data = util.extend({}, params, this.param);
683
+ let data = util.extend(
684
+ {},
685
+ params,
686
+ this.param[this.activeName] ? this.param[this.activeName] : this.param
687
+ );
681
688
  if (id !== undefined) {
682
689
  data.id = id;
683
690
  }
@@ -715,7 +722,12 @@ export default {
715
722
  if (flag) {
716
723
  if (data.selection === undefined || data.selection.length === 0) {
717
724
  this.checkAll = false;
718
- let params = util.extend({}, this.param);
725
+ let params = util.extend(
726
+ {},
727
+ this.param[this.activeName]
728
+ ? this.param[this.activeName]
729
+ : this.param
730
+ );
719
731
  params.type = this.activeName;
720
732
  params.mid = data.id;
721
733
  if (this.activeName === 'enterprise') {
@@ -772,7 +784,9 @@ export default {
772
784
  let params = util.extend(
773
785
  {},
774
786
  this.newTabs[this.activeName].param,
775
- this.param
787
+ this.param[this.activeName]
788
+ ? this.param[this.activeName]
789
+ : this.param
776
790
  );
777
791
  params.id = data.id;
778
792
  util
package/src/.DS_Store ADDED
Binary file
package/src/index.js CHANGED
@@ -121,7 +121,7 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.90',
124
+ version: '0.5.92',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,