eoss-ui 0.5.81-beta21 → 0.5.81-beta22

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.
package/lib/main.js CHANGED
@@ -3941,7 +3941,7 @@ module.exports = require("wujie-vue2");
3941
3941
  // ESM COMPAT FLAG
3942
3942
  __webpack_require__.r(__webpack_exports__);
3943
3943
 
3944
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=46c88986&
3944
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=a3c25372&
3945
3945
  var render = function () {
3946
3946
  var _vm = this
3947
3947
  var _h = _vm.$createElement
@@ -4015,10 +4015,10 @@ var staticRenderFns = []
4015
4015
  render._withStripped = true
4016
4016
 
4017
4017
 
4018
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=46c88986&
4018
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=a3c25372&
4019
4019
 
4020
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=ded4ba88&scoped=true&
4021
- var simplicityvue_type_template_id_ded4ba88_scoped_true_render = function () {
4020
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=7188d482&scoped=true&
4021
+ var simplicityvue_type_template_id_7188d482_scoped_true_render = function () {
4022
4022
  var _vm = this
4023
4023
  var _h = _vm.$createElement
4024
4024
  var _c = _vm._self._c || _h
@@ -4616,11 +4616,11 @@ var simplicityvue_type_template_id_ded4ba88_scoped_true_render = function () {
4616
4616
  ),
4617
4617
  ])
4618
4618
  }
4619
- var simplicityvue_type_template_id_ded4ba88_scoped_true_staticRenderFns = []
4620
- simplicityvue_type_template_id_ded4ba88_scoped_true_render._withStripped = true
4619
+ var simplicityvue_type_template_id_7188d482_scoped_true_staticRenderFns = []
4620
+ simplicityvue_type_template_id_7188d482_scoped_true_render._withStripped = true
4621
4621
 
4622
4622
 
4623
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=ded4ba88&scoped=true&
4623
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=7188d482&scoped=true&
4624
4624
 
4625
4625
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=1560e8bf&scoped=true&
4626
4626
  var avatarvue_type_template_id_1560e8bf_scoped_true_render = function () {
@@ -8904,6 +8904,7 @@ var events = [function (tabs, index, that) {
8904
8904
  type: Boolean,
8905
8905
  default: true
8906
8906
  },
8907
+ sysCode: String,
8907
8908
  appCode: String,
8908
8909
  //logo
8909
8910
  logo: String,
@@ -9407,8 +9408,9 @@ var events = [function (tabs, index, that) {
9407
9408
  _this2.setTips(_this2.menus);
9408
9409
  store["a" /* default */].set('nav', _this2.menus);
9409
9410
  if (_this2.appCode) {
9411
+ var code = _this2.sysCode || _this2.appCode;
9410
9412
  var app = _this2.userApps.filter(function (item) {
9411
- return item.code === _this2.appCode;
9413
+ return item.code === code;
9412
9414
  })[0];
9413
9415
  if (app) {
9414
9416
  _this2.active = app.id;
@@ -9423,13 +9425,14 @@ var events = [function (tabs, index, that) {
9423
9425
  }
9424
9426
  }
9425
9427
  }
9426
- var ids = _this2.getId(_this2.menus, _this2.appCode);
9427
- var subMenus = void 0;
9428
- if (ids && Array.isArray(ids) && ids.length > 1) {
9429
- subMenus = _this2.getMenu(_this2.menus, ids[0], 'id');
9428
+ if (_this2.sysCode) {
9429
+ var subMenus = _this2.getMenu(_this2.menus, _this2.sysCode, 'appCode');
9430
9430
  if (subMenus) {
9431
- var _obj = _this2.getMenu(_this2.menus, ids[ids.length - 1], 'id');
9431
+ var _obj = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
9432
9432
  if (_obj) {
9433
+ if (!_obj.url) {
9434
+ _obj = _this2.getFirst(_obj);
9435
+ }
9433
9436
  _this2.subActive = _obj.id;
9434
9437
  var _tab = _this2.setIframeType(_obj);
9435
9438
  _this2.tabs = [_tab];
@@ -9437,12 +9440,17 @@ var events = [function (tabs, index, that) {
9437
9440
  } else {
9438
9441
  _this2.subActive = '';
9439
9442
  }
9443
+ _this2.subMenus = subMenus;
9444
+ _this2.showMenu = true;
9445
+ } else {
9446
+ _this2.subMenus = null;
9447
+ _this2.showMenu = false;
9440
9448
  }
9441
9449
  } else {
9442
- subMenus = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
9443
- if (subMenus) {
9450
+ var _subMenus = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
9451
+ if (_subMenus) {
9444
9452
  if (_this2.tabs.length == 0) {
9445
- var _obj2 = _this2.getFirst(subMenus);
9453
+ var _obj2 = _this2.getFirst(_subMenus);
9446
9454
  if (_obj2) {
9447
9455
  _this2.subActive = _obj2.id;
9448
9456
  var _tab2 = _this2.setIframeType(_obj2);
@@ -9452,15 +9460,13 @@ var events = [function (tabs, index, that) {
9452
9460
  _this2.subActive = '';
9453
9461
  }
9454
9462
  }
9463
+ _this2.subMenus = _subMenus;
9464
+ _this2.showMenu = true;
9465
+ } else {
9466
+ _this2.subMenus = null;
9467
+ _this2.showMenu = false;
9455
9468
  }
9456
9469
  }
9457
- if (subMenus) {
9458
- _this2.subMenus = subMenus;
9459
- _this2.showMenu = true;
9460
- } else {
9461
- _this2.subMenus = null;
9462
- _this2.showMenu = false;
9463
- }
9464
9470
  } else {
9465
9471
  if (_this2.indexUrl) {
9466
9472
  var _obj3 = _this2.getMenu(_this2.menus, _this2.indexUrl);
@@ -10284,11 +10290,11 @@ var events = [function (tabs, index, that) {
10284
10290
 
10285
10291
  var simplicity_component = Object(componentNormalizer["a" /* default */])(
10286
10292
  src_simplicityvue_type_script_lang_js_,
10287
- simplicityvue_type_template_id_ded4ba88_scoped_true_render,
10288
- simplicityvue_type_template_id_ded4ba88_scoped_true_staticRenderFns,
10293
+ simplicityvue_type_template_id_7188d482_scoped_true_render,
10294
+ simplicityvue_type_template_id_7188d482_scoped_true_staticRenderFns,
10289
10295
  false,
10290
10296
  null,
10291
- "ded4ba88",
10297
+ "7188d482",
10292
10298
  null
10293
10299
 
10294
10300
  )
@@ -14430,6 +14436,7 @@ var bus = external_wujie_vue2_default.a.bus;
14430
14436
  watch: {},
14431
14437
  data: function data() {
14432
14438
  return {
14439
+ sysCode: '',
14433
14440
  appCode: '',
14434
14441
  params: {},
14435
14442
  dialogs: [],
@@ -14438,6 +14445,7 @@ var bus = external_wujie_vue2_default.a.bus;
14438
14445
  },
14439
14446
  created: function created() {
14440
14447
  this.params = util["a" /* default */].getParams() || {};
14448
+ this.sysCode = this.params.sysCode;
14441
14449
  this.appCode = this.params.appCode;
14442
14450
  this.getConfig(this.params);
14443
14451
  // 主应用监听事件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.81-beta21",
3
+ "version": "0.5.81-beta22",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -64,6 +64,7 @@ export default {
64
64
  watch: {},
65
65
  data() {
66
66
  return {
67
+ sysCode: '',
67
68
  appCode: '',
68
69
  params: {},
69
70
  dialogs: [],
@@ -72,6 +73,7 @@ export default {
72
73
  },
73
74
  created() {
74
75
  this.params = util.getParams() || {};
76
+ this.sysCode = this.params.sysCode;
75
77
  this.appCode = this.params.appCode;
76
78
  this.getConfig(this.params);
77
79
  // 主应用监听事件
@@ -408,6 +408,7 @@ export default {
408
408
  type: Boolean,
409
409
  default: true
410
410
  },
411
+ sysCode: String,
411
412
  appCode: String,
412
413
  //logo
413
414
  logo: String,
@@ -920,8 +921,9 @@ export default {
920
921
  this.setTips(this.menus);
921
922
  store.set('nav', this.menus);
922
923
  if (this.appCode) {
924
+ let code = this.sysCode || this.appCode;
923
925
  let app = this.userApps.filter((item) => {
924
- return item.code === this.appCode;
926
+ return item.code === code;
925
927
  })[0];
926
928
  if (app) {
927
929
  this.active = app.id;
@@ -936,17 +938,18 @@ export default {
936
938
  }
937
939
  }
938
940
  }
939
- let ids = this.getId(this.menus, this.appCode);
940
- let subMenus;
941
- if (ids && Array.isArray(ids) && ids.length > 1) {
942
- subMenus = this.getMenu(this.menus, ids[0], 'id');
941
+ if (this.sysCode) {
942
+ let subMenus = this.getMenu(
943
+ this.menus,
944
+ this.sysCode,
945
+ 'appCode'
946
+ );
943
947
  if (subMenus) {
944
- let obj = this.getMenu(
945
- this.menus,
946
- ids[ids.length - 1],
947
- 'id'
948
- );
948
+ let obj = this.getMenu(this.menus, this.appCode, 'appCode');
949
949
  if (obj) {
950
+ if (!obj.url) {
951
+ obj = this.getFirst(obj);
952
+ }
950
953
  this.subActive = obj.id;
951
954
  let tab = this.setIframeType(obj);
952
955
  this.tabs = [tab];
@@ -954,9 +957,18 @@ export default {
954
957
  } else {
955
958
  this.subActive = '';
956
959
  }
960
+ this.subMenus = subMenus;
961
+ this.showMenu = true;
962
+ } else {
963
+ this.subMenus = null;
964
+ this.showMenu = false;
957
965
  }
958
966
  } else {
959
- subMenus = this.getMenu(this.menus, this.appCode, 'appCode');
967
+ let subMenus = this.getMenu(
968
+ this.menus,
969
+ this.appCode,
970
+ 'appCode'
971
+ );
960
972
  if (subMenus) {
961
973
  if (this.tabs.length == 0) {
962
974
  let obj = this.getFirst(subMenus);
@@ -969,15 +981,13 @@ export default {
969
981
  this.subActive = '';
970
982
  }
971
983
  }
984
+ this.subMenus = subMenus;
985
+ this.showMenu = true;
986
+ } else {
987
+ this.subMenus = null;
988
+ this.showMenu = false;
972
989
  }
973
990
  }
974
- if (subMenus) {
975
- this.subMenus = subMenus;
976
- this.showMenu = true;
977
- } else {
978
- this.subMenus = null;
979
- this.showMenu = false;
980
- }
981
991
  } else {
982
992
  if (this.indexUrl) {
983
993
  let obj = this.getMenu(this.menus, this.indexUrl);
package/src/index.js CHANGED
@@ -1,112 +1,112 @@
1
1
  /* Automatically generated by './build/bin/build-entry.js' */
2
2
 
3
- import Button from '../packages/button/index.js';
4
- import ButtonGroup from '../packages/button-group/index.js';
5
- import Calendar from '../packages/calendar/index.js';
6
- import Card from '../packages/card/index.js';
7
- import Cascader from '../packages/cascader/index.js';
8
- import CheckboxGroup from '../packages/checkbox-group/index.js';
9
- import Clients from '../packages/clients/index.js';
10
- import DataTable from '../packages/data-table/index.js';
11
- import DataTableForm from '../packages/data-table-form/index.js';
12
- import DatePicker from '../packages/date-picker/index.js';
13
- import Dialog from '../packages/dialog/index.js';
14
- import Enterprise from '../packages/enterprise/index.js';
15
- import ErrorPage from '../packages/error-page/index.js';
16
- import Form from '../packages/form/index.js';
17
- import Flow from '../packages/flow/index.js';
18
- import FlowGroup from '../packages/flow-group/index.js';
19
- import FlowList from '../packages/flow-list/index.js';
20
- import HandleUser from '../packages/handle-user/index.js';
21
- import Handler from '../packages/handler/index.js';
22
- import Icon from '../packages/icon/index.js';
23
- import Icons from '../packages/icons/index.js';
24
- import Input from '../packages/input/index.js';
25
- import InputNumber from '../packages/input-number/index.js';
26
- import Label from '../packages/label/index.js';
27
- import Layout from '../packages/layout/index.js';
28
- import Login from '../packages/login/index.js';
29
- import Main from '../packages/main/index.js';
30
- import Menu from '../packages/menu/index.js';
31
- import Nav from '../packages/nav/index.js';
32
- import Notify from '../packages/notify/index.js';
33
- import Pagination from '../packages/pagination/index.js';
34
- import Page from '../packages/page/index.js';
35
- import Player from '../packages/player/index.js';
36
- import QrCode from '../packages/qr-code/index.js';
37
- import RadioGroup from '../packages/radio-group/index.js';
38
- import RetrialAuth from '../packages/retrial-auth/index.js';
39
- import Select from '../packages/select/index.js';
40
- import SelectGanged from '../packages/select-ganged/index.js';
41
- import Selector from '../packages/selector/index.js';
42
- import SelectorPanel from '../packages/selector-panel/index.js';
43
- import Sizer from '../packages/sizer/index.js';
44
- import Steps from '../packages/steps/index.js';
45
- import Switch from '../packages/switch/index.js';
46
- import Tabs from '../packages/tabs/index.js';
47
- import TabsPanel from '../packages/tabs-panel/index.js';
48
- import Tips from '../packages/tips/index.js';
49
- import Tree from '../packages/tree/index.js';
50
- import TreeGroup from '../packages/tree-group/index.js';
51
- import Toolbar from '../packages/toolbar/index.js';
52
- import TableForm from '../packages/table-form/index.js';
53
- import Upload from '../packages/upload/index.js';
54
- import Wujie from '../packages/wujie/index.js';
3
+ import Button from '../packages/button/index.js';
4
+ import ButtonGroup from '../packages/button-group/index.js';
5
+ import Calendar from '../packages/calendar/index.js';
6
+ import Card from '../packages/card/index.js';
7
+ import Cascader from '../packages/cascader/index.js';
8
+ import CheckboxGroup from '../packages/checkbox-group/index.js';
9
+ import Clients from '../packages/clients/index.js';
10
+ import DataTable from '../packages/data-table/index.js';
11
+ import DataTableForm from '../packages/data-table-form/index.js';
12
+ import DatePicker from '../packages/date-picker/index.js';
13
+ import Dialog from '../packages/dialog/index.js';
14
+ import Enterprise from '../packages/enterprise/index.js';
15
+ import ErrorPage from '../packages/error-page/index.js';
16
+ import Form from '../packages/form/index.js';
17
+ import Flow from '../packages/flow/index.js';
18
+ import FlowGroup from '../packages/flow-group/index.js';
19
+ import FlowList from '../packages/flow-list/index.js';
20
+ import HandleUser from '../packages/handle-user/index.js';
21
+ import Handler from '../packages/handler/index.js';
22
+ import Icon from '../packages/icon/index.js';
23
+ import Icons from '../packages/icons/index.js';
24
+ import Input from '../packages/input/index.js';
25
+ import InputNumber from '../packages/input-number/index.js';
26
+ import Label from '../packages/label/index.js';
27
+ import Layout from '../packages/layout/index.js';
28
+ import Login from '../packages/login/index.js';
29
+ import Main from '../packages/main/index.js';
30
+ import Menu from '../packages/menu/index.js';
31
+ import Nav from '../packages/nav/index.js';
32
+ import Notify from '../packages/notify/index.js';
33
+ import Pagination from '../packages/pagination/index.js';
34
+ import Page from '../packages/page/index.js';
35
+ import Player from '../packages/player/index.js';
36
+ import QrCode from '../packages/qr-code/index.js';
37
+ import RadioGroup from '../packages/radio-group/index.js';
38
+ import RetrialAuth from '../packages/retrial-auth/index.js';
39
+ import Select from '../packages/select/index.js';
40
+ import SelectGanged from '../packages/select-ganged/index.js';
41
+ import Selector from '../packages/selector/index.js';
42
+ import SelectorPanel from '../packages/selector-panel/index.js';
43
+ import Sizer from '../packages/sizer/index.js';
44
+ import Steps from '../packages/steps/index.js';
45
+ import Switch from '../packages/switch/index.js';
46
+ import Tabs from '../packages/tabs/index.js';
47
+ import TabsPanel from '../packages/tabs-panel/index.js';
48
+ import Tips from '../packages/tips/index.js';
49
+ import Tree from '../packages/tree/index.js';
50
+ import TreeGroup from '../packages/tree-group/index.js';
51
+ import Toolbar from '../packages/toolbar/index.js';
52
+ import TableForm from '../packages/table-form/index.js';
53
+ import Upload from '../packages/upload/index.js';
54
+ import Wujie from '../packages/wujie/index.js';
55
55
  import Wxlogin from '../packages/wxlogin/index.js';
56
56
 
57
57
  const components = [
58
- Button,
59
- ButtonGroup,
60
- Calendar,
61
- Card,
62
- Cascader,
63
- CheckboxGroup,
64
- Clients,
65
- DataTable,
66
- DataTableForm,
67
- DatePicker,
68
- Dialog,
69
- Enterprise,
70
- ErrorPage,
71
- Form,
72
- Flow,
73
- FlowGroup,
74
- FlowList,
75
- HandleUser,
76
- Handler,
77
- Icon,
78
- Icons,
79
- Input,
80
- InputNumber,
81
- Label,
82
- Layout,
83
- Login,
84
- Main,
85
- Menu,
86
- Nav,
87
- Notify,
88
- Pagination,
89
- Page,
90
- Player,
91
- QrCode,
92
- RadioGroup,
93
- RetrialAuth,
94
- Select,
95
- SelectGanged,
96
- Selector,
97
- SelectorPanel,
98
- Sizer,
99
- Steps,
100
- Switch,
101
- Tabs,
102
- TabsPanel,
103
- Tips,
104
- Tree,
105
- TreeGroup,
106
- Toolbar,
107
- TableForm,
108
- Upload,
109
- Wujie,
58
+ Button,
59
+ ButtonGroup,
60
+ Calendar,
61
+ Card,
62
+ Cascader,
63
+ CheckboxGroup,
64
+ Clients,
65
+ DataTable,
66
+ DataTableForm,
67
+ DatePicker,
68
+ Dialog,
69
+ Enterprise,
70
+ ErrorPage,
71
+ Form,
72
+ Flow,
73
+ FlowGroup,
74
+ FlowList,
75
+ HandleUser,
76
+ Handler,
77
+ Icon,
78
+ Icons,
79
+ Input,
80
+ InputNumber,
81
+ Label,
82
+ Layout,
83
+ Login,
84
+ Main,
85
+ Menu,
86
+ Nav,
87
+ Notify,
88
+ Pagination,
89
+ Page,
90
+ Player,
91
+ QrCode,
92
+ RadioGroup,
93
+ RetrialAuth,
94
+ Select,
95
+ SelectGanged,
96
+ Selector,
97
+ SelectorPanel,
98
+ Sizer,
99
+ Steps,
100
+ Switch,
101
+ Tabs,
102
+ TabsPanel,
103
+ Tips,
104
+ Tree,
105
+ TreeGroup,
106
+ Toolbar,
107
+ TableForm,
108
+ Upload,
109
+ Wujie,
110
110
  Wxlogin
111
111
  ];
112
112
 
@@ -121,59 +121,59 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.81-beta21',
124
+ version: '0.5.81-beta22',
125
125
  install,
126
- Button,
127
- ButtonGroup,
128
- Calendar,
129
- Card,
130
- Cascader,
131
- CheckboxGroup,
132
- Clients,
133
- DataTable,
134
- DataTableForm,
135
- DatePicker,
136
- Dialog,
137
- Enterprise,
138
- ErrorPage,
139
- Form,
140
- Flow,
141
- FlowGroup,
142
- FlowList,
143
- HandleUser,
144
- Handler,
145
- Icon,
146
- Icons,
147
- Input,
148
- InputNumber,
149
- Label,
150
- Layout,
151
- Login,
152
- Main,
153
- Menu,
154
- Nav,
155
- Notify,
156
- Pagination,
157
- Page,
158
- Player,
159
- QrCode,
160
- RadioGroup,
161
- RetrialAuth,
162
- Select,
163
- SelectGanged,
164
- Selector,
165
- SelectorPanel,
166
- Sizer,
167
- Steps,
168
- Switch,
169
- Tabs,
170
- TabsPanel,
171
- Tips,
172
- Tree,
173
- TreeGroup,
174
- Toolbar,
175
- TableForm,
176
- Upload,
177
- Wujie,
126
+ Button,
127
+ ButtonGroup,
128
+ Calendar,
129
+ Card,
130
+ Cascader,
131
+ CheckboxGroup,
132
+ Clients,
133
+ DataTable,
134
+ DataTableForm,
135
+ DatePicker,
136
+ Dialog,
137
+ Enterprise,
138
+ ErrorPage,
139
+ Form,
140
+ Flow,
141
+ FlowGroup,
142
+ FlowList,
143
+ HandleUser,
144
+ Handler,
145
+ Icon,
146
+ Icons,
147
+ Input,
148
+ InputNumber,
149
+ Label,
150
+ Layout,
151
+ Login,
152
+ Main,
153
+ Menu,
154
+ Nav,
155
+ Notify,
156
+ Pagination,
157
+ Page,
158
+ Player,
159
+ QrCode,
160
+ RadioGroup,
161
+ RetrialAuth,
162
+ Select,
163
+ SelectGanged,
164
+ Selector,
165
+ SelectorPanel,
166
+ Sizer,
167
+ Steps,
168
+ Switch,
169
+ Tabs,
170
+ TabsPanel,
171
+ Tips,
172
+ Tree,
173
+ TreeGroup,
174
+ Toolbar,
175
+ TableForm,
176
+ Upload,
177
+ Wujie,
178
178
  Wxlogin
179
179
  };