eoss-ui 0.4.67 → 0.4.69

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 (77) hide show
  1. package/lib/button-group.js +11 -11
  2. package/lib/button.js +11 -11
  3. package/lib/card.js +2 -2
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +12 -12
  6. package/lib/clients.js +2 -2
  7. package/lib/data-table-form.js +11 -12
  8. package/lib/data-table.js +18 -19
  9. package/lib/date-picker.js +11 -11
  10. package/lib/dialog.js +13 -16
  11. package/lib/enterprise.js +2 -2
  12. package/lib/eoss-ui.common.js +1898 -3874
  13. package/lib/error-page.js +2 -2
  14. package/lib/flow-group.js +1019 -908
  15. package/lib/flow-list.js +453 -1432
  16. package/lib/flow.js +20 -36
  17. package/lib/form.js +37 -37
  18. package/lib/handle-user.js +12 -12
  19. package/lib/handler.js +12 -12
  20. package/lib/icons.js +4 -4
  21. package/lib/index.js +1 -1
  22. package/lib/input-number.js +18 -18
  23. package/lib/input.js +43 -43
  24. package/lib/label.js +2 -2
  25. package/lib/login.js +110 -101
  26. package/lib/main.js +82 -72
  27. package/lib/menu.js +5 -2
  28. package/lib/nav.js +11 -11
  29. package/lib/notify.js +4 -4
  30. package/lib/page.js +18 -18
  31. package/lib/pagination.js +2 -2
  32. package/lib/player.js +23 -23
  33. package/lib/qr-code.js +13 -13
  34. package/lib/radio-group.js +12 -12
  35. package/lib/retrial-auth.js +12 -12
  36. package/lib/select-ganged.js +11 -11
  37. package/lib/select.js +14 -14
  38. package/lib/selector-panel.js +66 -56
  39. package/lib/selector.js +14 -14
  40. package/lib/sizer.js +12 -12
  41. package/lib/steps.js +11 -11
  42. package/lib/switch.js +11 -11
  43. package/lib/table-form.js +36 -36
  44. package/lib/tabs-panel.js +26 -8
  45. package/lib/tabs.js +16 -13
  46. package/lib/theme-chalk/index.css +1 -1
  47. package/lib/tips.js +19 -19
  48. package/lib/toolbar.js +2 -2
  49. package/lib/tree-group.js +11 -11
  50. package/lib/tree.js +12 -12
  51. package/lib/upload.js +12 -12
  52. package/lib/wujie.js +11 -11
  53. package/lib/wxlogin.js +11 -11
  54. package/package.json +1 -1
  55. package/packages/data-table/src/main.vue +3 -3
  56. package/packages/flow/src/processForm.vue +0 -3
  57. package/packages/flow-group/src/main.vue +263 -248
  58. package/packages/flow-list/src/main.vue +22 -114
  59. package/packages/main/src/main.vue +56 -39
  60. package/packages/main/src/message.vue +6 -8
  61. package/packages/menu/src/main.vue +3 -0
  62. package/packages/tabs/src/main.vue +3 -1
  63. package/packages/tabs-panel/src/main.vue +15 -4
  64. package/packages/theme-chalk/lib/index.css +1 -1
  65. package/packages/theme-chalk/src/index.scss +0 -1
  66. package/src/index.js +1 -4
  67. package/lib/editor.js +0 -1345
  68. package/lib/theme-chalk/editor.css +0 -1
  69. package/packages/editor/index.js +0 -5
  70. package/packages/editor/src/color.vue +0 -148
  71. package/packages/editor/src/editor.vue +0 -25
  72. package/packages/editor/src/main.vue +0 -114
  73. package/packages/editor/src/minx.js +0 -213
  74. package/packages/editor/src/toolbar.vue +0 -224
  75. package/packages/flow-list/src/flow-table.vue +0 -441
  76. package/packages/theme-chalk/lib/editor.css +0 -1
  77. package/packages/theme-chalk/src/editor.scss +0 -94
@@ -13,20 +13,14 @@
13
13
  >
14
14
  <div class="es-flow-list-box">
15
15
  <es-data-table
16
+ v-if="show"
16
17
  :class="{ 'es-flow-group-data-table': item.type !== 'sign' }"
18
+ :display="display"
17
19
  number
18
20
  @cell-click="handleCellClick"
19
21
  full
20
22
  v-bind="item"
21
- :data="
22
- item.type === 'preset'
23
- ? presetData
24
- : item.type === 'sign'
25
- ? signData
26
- : item.type === 'splitReading'
27
- ? splitReadingData
28
- : flowData
29
- "
23
+ :data="returnData(item.type)"
30
24
  @btn-click="handleBtnClick"
31
25
  ></es-data-table>
32
26
  </div>
@@ -56,6 +50,7 @@
56
50
  >
57
51
  <div style="height: 400px" v-loading="pressLoading">
58
52
  <es-data-table
53
+ v-if="show"
59
54
  :data="pressTableList"
60
55
  :thead="pressThead"
61
56
  @page-size-change="handleSizeChange"
@@ -85,103 +80,6 @@
85
80
  >
86
81
  </es-form>
87
82
  </es-dialog>
88
- <!-- <div
89
- v-if="hide.indexOf('flow') == -1"
90
- :class="
91
- fyTableList != undefined && fyTableList.length != 0
92
- ? 'preset-list'
93
- : 'preset-list-tow'
94
- "
95
- style="flex: 1"
96
- >
97
- <div class="es-toolbar" >
98
- 流程列表
99
- <div v-if="isShort != 1" style="display:inline-block;margin-left:10px">
100
-
101
- <el-radio-group
102
- class="list-radio"
103
- v-model="showSuggest"
104
- @input="handleChange"
105
- >
106
- <el-radio label="all">显示全部</el-radio>
107
- <el-radio label="have">显示已填意见</el-radio>
108
- </el-radio-group>
109
- <es-select
110
- v-model="viewType"
111
- placeholder="请选择"
112
- @change="handleChange"
113
- >
114
- <el-option
115
- v-for="item in options"
116
- :key="item.value"
117
- :label="item.label"
118
- :value="item.value"
119
- >
120
- </el-option>
121
- </es-select>
122
- </div>
123
- </div>
124
- <FlowTable
125
- v-if="show"
126
- style="height: calc(100% - 60px)"
127
- :data="flowTableList"
128
- :modify="modify"
129
- :toolbar="newToolbar"
130
- :fileStyle="attachmentPaperClipCssStyle"
131
- v-bind="flowTableInfo"
132
- @success="handleChange"
133
- />
134
- </div>
135
- <div
136
- v-if="
137
- fyTableList != undefined &&
138
- fyTableList.length != 0 &&
139
- show &&
140
- hide.indexOf('splitReading') == -1
141
- "
142
- :class="'preset-list'"
143
- :style="hide.indexOf('preset') != -1 ? 'flex:1' : ''"
144
- >
145
- <FlowTable
146
- style="height: calc(100% - 40px)"
147
- :toolbar="[
148
- {
149
- type: 'text',
150
- contents: (taskReadName ? taskReadName : '非流程') + '列表'
151
- }
152
- ]"
153
- :data="fyTableList"
154
- v-bind="flowTableInfo"
155
- @success="handleChange"
156
- />
157
- </div>
158
- <div
159
- v-if="show && hide.indexOf('preset') == -1"
160
- :class="
161
- fyTableList != undefined && fyTableList.length != 0
162
- ? 'preset-list'
163
- : 'preset-list-tow'
164
- "
165
- :style="
166
- fyTableList != undefined && fyTableList.length != 0 ? '' : 'flex:1'
167
- "
168
- >
169
- <es-data-table
170
- numbers
171
- :data="presetData"
172
- :thead="thead"
173
- :toolbar="[
174
- {
175
- type: 'text',
176
- contents: '预设列表'
177
- }
178
- ]"
179
- stripe
180
- full
181
- style="width: 100%"
182
- @btnClick="handleClick"
183
- />
184
- </div> -->
185
83
  </div>
186
84
  </template>
187
85
 
@@ -195,12 +93,10 @@ import {
195
93
  deleteFlow
196
94
  } from 'eoss-ui/src/config/api';
197
95
  import FileList from '../../flow/src/component/FileList.vue';
198
- import FlowTable from './flow-table.vue';
199
96
  import util from 'eoss-ui/src/utils/util';
200
97
  export default {
201
98
  name: 'EsFlowList',
202
99
  components: {
203
- [FlowTable.name]: FlowTable,
204
100
  [FileList.name]: FileList
205
101
  },
206
102
  props: {
@@ -221,7 +117,8 @@ export default {
221
117
  default() {
222
118
  return ['flow', 'splitReading', 'preset'];
223
119
  }
224
- }
120
+ },
121
+ display: Boolean
225
122
  },
226
123
  inheritAttrs: false,
227
124
  data() {
@@ -705,7 +602,7 @@ export default {
705
602
  };
706
603
  },
707
604
  content() {
708
- return this.contents.map((item) => {
605
+ let contents = this.contents.map((item) => {
709
606
  if (typeof item === 'string') {
710
607
  return {
711
608
  type: item,
@@ -725,6 +622,7 @@ export default {
725
622
  return item;
726
623
  }
727
624
  });
625
+ return contents;
728
626
  },
729
627
  newToolbar() {
730
628
  if (this.toolbar && this.toolbar.length > 0) {
@@ -844,12 +742,22 @@ export default {
844
742
  this.getFlowList();
845
743
  this.getSysInfo('preset_type');
846
744
  this.getSysInfo('is_edit');
847
- this.$nextTick(() => {
848
- this.getListInfo();
849
- });
745
+ this.getListInfo();
850
746
  },
851
747
 
852
748
  methods: {
749
+ returnData(type) {
750
+ switch (type) {
751
+ case 'preset':
752
+ return this.presetData;
753
+ case 'sign':
754
+ return this.signData;
755
+ case 'splitReading':
756
+ return this.splitReadingData;
757
+ default:
758
+ return this.flowData;
759
+ }
760
+ },
853
761
  handleCellClick(row, column) {
854
762
  if (column.property == 'hasAdjunct' && row.hasAdjunct) {
855
763
  this.showFile(row.wfpendingid);
@@ -1052,10 +960,10 @@ export default {
1052
960
  this.flowData = wfHistoryList;
1053
961
  this.splitReadingData = fyHistoryList;
1054
962
  this.modify = modify;
963
+ this.show = true;
1055
964
  } else {
1056
965
  this.$message.error(message || '系统错误,请联系管理员!');
1057
966
  }
1058
- this.show = true;
1059
967
  })
1060
968
  .catch((err) => {
1061
969
  this.loading.close();
@@ -365,7 +365,10 @@ export default {
365
365
  type: String,
366
366
  default: '/main'
367
367
  },
368
- setFirstAsDefault: Boolean,
368
+ setFirstAsDefault: {
369
+ type: Boolean,
370
+ default: true
371
+ },
369
372
  pathUrl: {
370
373
  type: String,
371
374
  default: '/primary'
@@ -641,8 +644,10 @@ export default {
641
644
  menuSuccess(res) {
642
645
  // this.menus
643
646
  this.menuType = 'custom';
644
- this.customMenu = res;
645
- this.setMenu(res);
647
+ if (res && res.length) {
648
+ this.customMenu = res;
649
+ this.setMenu(res);
650
+ }
646
651
  },
647
652
  //获取主题模板JSON
648
653
  getMainDetail(id) {
@@ -682,8 +687,10 @@ export default {
682
687
  if (_that.showDefault && _that.data === undefined) {
683
688
  _that.getMenu();
684
689
  } else if (_that.showDefault) {
685
- _that.menus = JSON.parse(JSON.stringify(_that.data));
686
- _that.setMenu(_that.data);
690
+ if (_that.data && _that.data.length) {
691
+ _that.menus = JSON.parse(JSON.stringify(_that.data));
692
+ _that.setMenu(_that.data);
693
+ }
687
694
  }
688
695
  })
689
696
  .catch((err) => {
@@ -838,7 +845,7 @@ export default {
838
845
  if (i === 'indexUrl') {
839
846
  this.homePage = results[i];
840
847
  if (this.isHomePage) {
841
- if (this.menus) {
848
+ if (this.menus && this.menus.length) {
842
849
  let ids = null;
843
850
  this.homePage && (ids = this.getId(this.menus, this.homePage));
844
851
  if (ids) {
@@ -995,26 +1002,43 @@ export default {
995
1002
  .ajax({ url: this.action, params: this.param ? this.param : {} })
996
1003
  .then((res) => {
997
1004
  if (res.rCode === 0) {
998
- this.menus = JSON.parse(JSON.stringify(res.results));
999
- let applicationid =
1000
- util.getParams('applicationid') ||
1001
- util.getParams('applicationId');
1002
- if (applicationid) {
1003
- let ids = this.getId(this.menus, applicationid);
1004
- if (ids) {
1005
- this.defaultActive = ids;
1006
- }
1007
- } else if (util.win.location.hash) {
1008
- let hash = util.win.location.hash;
1009
- if (hash) {
1010
- hash = hash.split('?')[0];
1011
- }
1012
- if (hash !== '#/' && hash !== '#/main') {
1013
- let ids = this.getId(this.menus, util.win.location.hash, true);
1005
+ if (res.results && res.results.length) {
1006
+ this.menus = JSON.parse(JSON.stringify(res.results));
1007
+ let applicationid =
1008
+ util.getParams('applicationid') ||
1009
+ util.getParams('applicationId');
1010
+ if (applicationid) {
1011
+ let ids = this.getId(this.menus, applicationid);
1014
1012
  if (ids) {
1015
1013
  this.defaultActive = ids;
1016
- this.navIds = ids;
1017
- this.setTitle(ids[0]);
1014
+ }
1015
+ } else if (util.win.location.hash) {
1016
+ let hash = util.win.location.hash;
1017
+ if (hash) {
1018
+ hash = hash.split('?')[0];
1019
+ }
1020
+ if (hash !== '#/' && hash !== '#/main') {
1021
+ let ids = this.getId(
1022
+ this.menus,
1023
+ util.win.location.hash,
1024
+ true
1025
+ );
1026
+ if (ids) {
1027
+ this.defaultActive = ids;
1028
+ this.navIds = ids;
1029
+ this.setTitle(ids[0]);
1030
+ }
1031
+ } else if (sessionStorage.getItem('jump') && this.history) {
1032
+ let ids = this.getId(
1033
+ this.menus,
1034
+ sessionStorage.getItem('jump'),
1035
+ true
1036
+ );
1037
+ if (ids) {
1038
+ this.defaultActive = ids;
1039
+ this.navIds = ids;
1040
+ this.setTitle(ids[0]);
1041
+ }
1018
1042
  }
1019
1043
  } else if (sessionStorage.getItem('jump') && this.history) {
1020
1044
  let ids = this.getId(
@@ -1028,21 +1052,12 @@ export default {
1028
1052
  this.setTitle(ids[0]);
1029
1053
  }
1030
1054
  }
1031
- } else if (sessionStorage.getItem('jump') && this.history) {
1032
- let ids = this.getId(
1033
- this.menus,
1034
- sessionStorage.getItem('jump'),
1035
- true
1036
- );
1037
- if (ids) {
1038
- this.defaultActive = ids;
1039
- this.navIds = ids;
1040
- this.setTitle(ids[0]);
1041
- }
1055
+ this.setTips(this.menus);
1056
+ store.set('nav', this.menus);
1057
+ this.setMenu(this.menus);
1058
+ } else {
1059
+ this.$message.error('未分配菜单权限,请联系管理员!');
1042
1060
  }
1043
- this.setTips(this.menus);
1044
- store.set('nav', this.menus);
1045
- this.setMenu(this.menus);
1046
1061
  } else {
1047
1062
  let msg = res.msg || '系统错误,请联系管理员!';
1048
1063
  this.$message.error(msg);
@@ -1541,7 +1556,9 @@ export default {
1541
1556
  this.active = [];
1542
1557
  this.defaultActive = [];
1543
1558
  this.tabs = [];
1544
- this.setMenu(this.menus);
1559
+ if (this.menus && this.menus.length) {
1560
+ this.setMenu(this.menus);
1561
+ }
1545
1562
  this.$nextTick(() => {
1546
1563
  this.reset = true;
1547
1564
  });
@@ -38,9 +38,7 @@
38
38
  </div>
39
39
  </el-card>
40
40
  <p class="es-msg-tips" v-if="loading">加载中...</p>
41
- <p class="es-msg-tips" v-if="noMore && count > 0">
42
- 没有更多了
43
- </p>
41
+ <p class="es-msg-tips" v-if="noMore && count > 0">没有更多了</p>
44
42
  </div>
45
43
  </el-scrollbar>
46
44
  </div>
@@ -145,7 +143,7 @@ export default {
145
143
  pageSize: this.pageSize
146
144
  }
147
145
  })
148
- .then(res => {
146
+ .then((res) => {
149
147
  if (res && res.rCode === 0) {
150
148
  this.pageCount = res.results.pageCount;
151
149
  this.loading = false;
@@ -160,7 +158,7 @@ export default {
160
158
  this.$message.error(msg);
161
159
  }
162
160
  })
163
- .catch(err => {
161
+ .catch((err) => {
164
162
  this.loading = false;
165
163
  if (err.message && err.message !== 'canceled') {
166
164
  this.$message.error(err.message);
@@ -177,7 +175,7 @@ export default {
177
175
  id: res.id
178
176
  }
179
177
  })
180
- .then(res => {
178
+ .then((res) => {
181
179
  if (res.rCode == 0) {
182
180
  this.count -= 1;
183
181
  this.msgs.splice(i, 1);
@@ -193,12 +191,12 @@ export default {
193
191
  .ajax({
194
192
  url: ignoreAllSysMsg
195
193
  })
196
- .then(res => {
194
+ .then((res) => {
197
195
  this.count = 0;
198
196
  this.msgs = [];
199
197
  this.$emit('ignore', { type: 'ignore', value: 'all' });
200
198
  })
201
- .catch(err => {
199
+ .catch((err) => {
202
200
  if (err.message && err.message !== 'canceled') {
203
201
  this.$message.error(err.message);
204
202
  }
@@ -196,6 +196,9 @@ export default {
196
196
  'es-dot-right': item.tips && typeof item.tips === 'boolean'
197
197
  }
198
198
  ],
199
+ attrs:{
200
+ title: item.text.length > 18 ? item.text : undefined,
201
+ },
199
202
  props:
200
203
  typeof item.tips === 'boolean' && item.tips
201
204
  ? {
@@ -37,7 +37,9 @@
37
37
  </span>
38
38
  </template>
39
39
  <es-tabs-panel v-bind="items" :show="activeName === String(indexs)">
40
- <template slot-scope="{ contents, average, data, title, show }">
40
+ <template
41
+ slot-scope="{ contents, average, data, title, show, isShow }"
42
+ >
41
43
  <template v-if="Array.isArray(contents)">
42
44
  <template v-for="(item, index) in contents">
43
45
  <div class="es-tab-pane-list" :key="index" v-if="average">
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="es-tabs-panel">
3
- <slot v-bind="$attrs"></slot>
3
+ <slot v-bind="$attrs" :show="show" :isShow="isShow"></slot>
4
4
  </div>
5
5
  </template>
6
6
 
@@ -8,10 +8,21 @@
8
8
  export default {
9
9
  name: 'EsTabsPanel',
10
10
  inheritAttrs: false,
11
- props: {},
12
- watch: {},
11
+ props: {
12
+ show: Boolean
13
+ },
14
+ watch: {
15
+ show: {
16
+ immediate: true,
17
+ handler(val) {
18
+ val && (this.isShow = true);
19
+ }
20
+ }
21
+ },
13
22
  data() {
14
- return {};
23
+ return {
24
+ isShow: false
25
+ };
15
26
  },
16
27
  mounted() {}
17
28
  };