eoss-ui 0.6.33 → 0.6.34
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/eoss-ui.common.js +39 -27
- package/lib/index.js +1 -1
- package/lib/main.js +33 -21
- package/package.json +2 -2
- package/packages/main/src/default/index.vue +1 -1
- package/packages/main/src/main.vue +2 -2
- package/packages/main/src/simplicity/index.vue +21 -5
- package/src/index.js +1 -1
package/lib/main.js
CHANGED
|
@@ -3991,7 +3991,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
|
|
|
3991
3991
|
// ESM COMPAT FLAG
|
|
3992
3992
|
__webpack_require__.r(__webpack_exports__);
|
|
3993
3993
|
|
|
3994
|
-
// 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=
|
|
3994
|
+
// 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=774e8f3b&
|
|
3995
3995
|
var render = function () {
|
|
3996
3996
|
var _vm = this
|
|
3997
3997
|
var _h = _vm.$createElement
|
|
@@ -4089,13 +4089,13 @@ var staticRenderFns = []
|
|
|
4089
4089
|
render._withStripped = true
|
|
4090
4090
|
|
|
4091
4091
|
|
|
4092
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
4092
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=774e8f3b&
|
|
4093
4093
|
|
|
4094
4094
|
// EXTERNAL MODULE: ./src/config/image.js
|
|
4095
4095
|
var config_image = __webpack_require__(18);
|
|
4096
4096
|
|
|
4097
|
-
// 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=
|
|
4098
|
-
var
|
|
4097
|
+
// 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=00d9126a&scoped=true&
|
|
4098
|
+
var simplicityvue_type_template_id_00d9126a_scoped_true_render = function () {
|
|
4099
4099
|
var _vm = this
|
|
4100
4100
|
var _h = _vm.$createElement
|
|
4101
4101
|
var _c = _vm._self._c || _h
|
|
@@ -4731,11 +4731,11 @@ var simplicityvue_type_template_id_9473ec14_scoped_true_render = function () {
|
|
|
4731
4731
|
),
|
|
4732
4732
|
])
|
|
4733
4733
|
}
|
|
4734
|
-
var
|
|
4735
|
-
|
|
4734
|
+
var simplicityvue_type_template_id_00d9126a_scoped_true_staticRenderFns = []
|
|
4735
|
+
simplicityvue_type_template_id_00d9126a_scoped_true_render._withStripped = true
|
|
4736
4736
|
|
|
4737
4737
|
|
|
4738
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
4738
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=00d9126a&scoped=true&
|
|
4739
4739
|
|
|
4740
4740
|
// 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=e722b45c&scoped=true&
|
|
4741
4741
|
var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
|
|
@@ -10001,6 +10001,8 @@ var search_component = Object(componentNormalizer["a" /* default */])(
|
|
|
10001
10001
|
var store = __webpack_require__(13);
|
|
10002
10002
|
|
|
10003
10003
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=script&lang=js&
|
|
10004
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
10005
|
+
|
|
10004
10006
|
var simplicityvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
10005
10007
|
|
|
10006
10008
|
//
|
|
@@ -11132,7 +11134,7 @@ var events = [function (tabs, index, that) {
|
|
|
11132
11134
|
if (item[key] === res) {
|
|
11133
11135
|
return item;
|
|
11134
11136
|
}
|
|
11135
|
-
} else if (item.url === res || item.id === res) {
|
|
11137
|
+
} else if (item.url === res || item.id === res || item.appCode && item.appCode === res) {
|
|
11136
11138
|
return item;
|
|
11137
11139
|
}
|
|
11138
11140
|
if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
|
|
@@ -11831,8 +11833,12 @@ var events = [function (tabs, index, that) {
|
|
|
11831
11833
|
},
|
|
11832
11834
|
jumpMenu: function jumpMenu(res, close) {
|
|
11833
11835
|
var apps = res;
|
|
11836
|
+
var param = null;
|
|
11834
11837
|
if (typeof res === 'string') {
|
|
11835
11838
|
apps = res.split(',');
|
|
11839
|
+
} else if ((typeof res === 'undefined' ? 'undefined' : _typeof(res)) === 'object') {
|
|
11840
|
+
apps = res.appCode.split(',');
|
|
11841
|
+
param = res.param;
|
|
11836
11842
|
}
|
|
11837
11843
|
var obj = this.getMenu(this.menus, apps[apps.length - 1]);
|
|
11838
11844
|
if (obj) {
|
|
@@ -11842,16 +11848,22 @@ var events = [function (tabs, index, that) {
|
|
|
11842
11848
|
this.activeName = obj.id;
|
|
11843
11849
|
if (i == -1) {
|
|
11844
11850
|
var tab = this.setIframeType(obj);
|
|
11851
|
+
this.$set(tab, 'url', util["a" /* default */].handlerUrl(tab.url, param));
|
|
11845
11852
|
this.tabs.splice(n + 1, 0, tab);
|
|
11846
11853
|
} else {
|
|
11847
11854
|
var _tab7 = this.tabs[i];
|
|
11848
11855
|
if (_tab7.method === 'iframe') {
|
|
11849
|
-
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url));
|
|
11856
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url, param));
|
|
11850
11857
|
}
|
|
11851
11858
|
if (_tab7.method === 'wujie' && _tab7.appCode) {
|
|
11852
|
-
|
|
11859
|
+
if (param) {
|
|
11860
|
+
window.document.querySelector('iframe[name=' + _tab7.appCode + ']').contentWindow.location.href = util["a" /* default */].handlerUrl(_tab7.url, param);
|
|
11861
|
+
} else {
|
|
11862
|
+
window.document.querySelector('iframe[name=' + _tab7.appCode + ']').contentWindow.location.reload(true);
|
|
11863
|
+
}
|
|
11853
11864
|
}
|
|
11854
11865
|
if (_tab7.method === 'router') {
|
|
11866
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url, param));
|
|
11855
11867
|
this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
|
|
11856
11868
|
}
|
|
11857
11869
|
}
|
|
@@ -11912,18 +11924,18 @@ var events = [function (tabs, index, that) {
|
|
|
11912
11924
|
|
|
11913
11925
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
11914
11926
|
src_simplicityvue_type_script_lang_js_,
|
|
11915
|
-
|
|
11916
|
-
|
|
11927
|
+
simplicityvue_type_template_id_00d9126a_scoped_true_render,
|
|
11928
|
+
simplicityvue_type_template_id_00d9126a_scoped_true_staticRenderFns,
|
|
11917
11929
|
false,
|
|
11918
11930
|
null,
|
|
11919
|
-
"
|
|
11931
|
+
"00d9126a",
|
|
11920
11932
|
null
|
|
11921
11933
|
|
|
11922
11934
|
)
|
|
11923
11935
|
|
|
11924
11936
|
/* harmony default export */ var simplicity = (simplicity_component.exports);
|
|
11925
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=
|
|
11926
|
-
var
|
|
11937
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=3e631434&
|
|
11938
|
+
var defaultvue_type_template_id_3e631434_render = function () {
|
|
11927
11939
|
var _vm = this
|
|
11928
11940
|
var _h = _vm.$createElement
|
|
11929
11941
|
var _c = _vm._self._c || _h
|
|
@@ -12320,11 +12332,11 @@ var defaultvue_type_template_id_0e385525_render = function () {
|
|
|
12320
12332
|
1
|
|
12321
12333
|
)
|
|
12322
12334
|
}
|
|
12323
|
-
var
|
|
12324
|
-
|
|
12335
|
+
var defaultvue_type_template_id_3e631434_staticRenderFns = []
|
|
12336
|
+
defaultvue_type_template_id_3e631434_render._withStripped = true
|
|
12325
12337
|
|
|
12326
12338
|
|
|
12327
|
-
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=
|
|
12339
|
+
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=3e631434&
|
|
12328
12340
|
|
|
12329
12341
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=template&id=b6520920&
|
|
12330
12342
|
var userinfovue_type_template_id_b6520920_render = function () {
|
|
@@ -14564,7 +14576,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14564
14576
|
}
|
|
14565
14577
|
for (var i = 0; i < menus.length; i++) {
|
|
14566
14578
|
var item = menus[i];
|
|
14567
|
-
if (item.id === url) {
|
|
14579
|
+
if (item.id === url || item.appCode && item.appCode === url) {
|
|
14568
14580
|
if (item.url) {
|
|
14569
14581
|
if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
|
|
14570
14582
|
var id = this.getId(item.children, item.url);
|
|
@@ -15553,8 +15565,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
15553
15565
|
|
|
15554
15566
|
var default_component = Object(componentNormalizer["a" /* default */])(
|
|
15555
15567
|
src_defaultvue_type_script_lang_js_,
|
|
15556
|
-
|
|
15557
|
-
|
|
15568
|
+
defaultvue_type_template_id_3e631434_render,
|
|
15569
|
+
defaultvue_type_template_id_3e631434_staticRenderFns,
|
|
15558
15570
|
false,
|
|
15559
15571
|
null,
|
|
15560
15572
|
null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.34",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"stompjs": "^2.3.3",
|
|
71
71
|
"throttle-debounce": "^5.0.2",
|
|
72
72
|
"video.js": "^8.0.4",
|
|
73
|
-
"wujie-vue2": "^1.0.
|
|
73
|
+
"wujie-vue2": "^1.0.26"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"vue": "^2.5.22"
|
|
@@ -1033,7 +1033,7 @@ export default {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
for (let i = 0; i < menus.length; i++) {
|
|
1035
1035
|
let item = menus[i];
|
|
1036
|
-
if (item.id === url) {
|
|
1036
|
+
if (item.id === url || (item.appCode && item.appCode === url)) {
|
|
1037
1037
|
if (item.url) {
|
|
1038
1038
|
if (
|
|
1039
1039
|
Object.prototype.hasOwnProperty.call(item, 'children') &&
|
|
@@ -134,7 +134,7 @@ export default {
|
|
|
134
134
|
bus.$on('reLogin', this.handleReLogin);
|
|
135
135
|
bus.$on('refresh', this.$refs.main.handleRefresh);
|
|
136
136
|
bus.$on('jumpMenu', this.$refs.main.jumpMenu);
|
|
137
|
-
bus.$on('emit',
|
|
137
|
+
bus.$on('emit', (method, args) => {
|
|
138
138
|
// 主应用发送事件
|
|
139
139
|
bus.$emit(method, args);
|
|
140
140
|
});
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
146
146
|
WujieVue.bus.$on('reLogin', this.handleReLogin);
|
|
147
147
|
WujieVue.bus.$on('refresh', this.$refs.main.handleRefresh);
|
|
148
148
|
WujieVue.bus.$on('jumpMenu', this.$refs.main.jumpMenu);
|
|
149
|
-
WujieVue.bus.$on('emit',
|
|
149
|
+
WujieVue.bus.$on('emit', (method, args) => {
|
|
150
150
|
// 主应用发送事件
|
|
151
151
|
WujieVue.bus.$emit(method, args);
|
|
152
152
|
});
|
|
@@ -1166,7 +1166,11 @@ export default {
|
|
|
1166
1166
|
if (item[key] === res) {
|
|
1167
1167
|
return item;
|
|
1168
1168
|
}
|
|
1169
|
-
} else if (
|
|
1169
|
+
} else if (
|
|
1170
|
+
item.url === res ||
|
|
1171
|
+
item.id === res ||
|
|
1172
|
+
(item.appCode && item.appCode === res)
|
|
1173
|
+
) {
|
|
1170
1174
|
return item;
|
|
1171
1175
|
}
|
|
1172
1176
|
if (
|
|
@@ -1889,8 +1893,12 @@ export default {
|
|
|
1889
1893
|
},
|
|
1890
1894
|
jumpMenu(res, close) {
|
|
1891
1895
|
let apps = res;
|
|
1896
|
+
let param = null;
|
|
1892
1897
|
if (typeof res === 'string') {
|
|
1893
1898
|
apps = res.split(',');
|
|
1899
|
+
} else if (typeof res === 'object') {
|
|
1900
|
+
apps = res.appCode.split(',');
|
|
1901
|
+
param = res.param;
|
|
1894
1902
|
}
|
|
1895
1903
|
let obj = this.getMenu(this.menus, apps[apps.length - 1]);
|
|
1896
1904
|
if (obj) {
|
|
@@ -1900,18 +1908,26 @@ export default {
|
|
|
1900
1908
|
this.activeName = obj.id;
|
|
1901
1909
|
if (i == -1) {
|
|
1902
1910
|
let tab = this.setIframeType(obj);
|
|
1911
|
+
this.$set(tab, 'url', util.handlerUrl(tab.url, param));
|
|
1903
1912
|
this.tabs.splice(n + 1, 0, tab);
|
|
1904
1913
|
} else {
|
|
1905
1914
|
let tab = this.tabs[i];
|
|
1906
1915
|
if (tab.method === 'iframe') {
|
|
1907
|
-
this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
|
|
1916
|
+
this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url, param));
|
|
1908
1917
|
}
|
|
1909
1918
|
if (tab.method === 'wujie' && tab.appCode) {
|
|
1910
|
-
|
|
1911
|
-
.querySelector(
|
|
1912
|
-
|
|
1919
|
+
if (param) {
|
|
1920
|
+
window.document.querySelector(
|
|
1921
|
+
`iframe[name=${tab.appCode}]`
|
|
1922
|
+
).contentWindow.location.href = util.handlerUrl(tab.url, param);
|
|
1923
|
+
} else {
|
|
1924
|
+
window.document
|
|
1925
|
+
.querySelector(`iframe[name=${tab.appCode}]`)
|
|
1926
|
+
.contentWindow.location.reload(true);
|
|
1927
|
+
}
|
|
1913
1928
|
}
|
|
1914
1929
|
if (tab.method === 'router') {
|
|
1930
|
+
this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url, param));
|
|
1915
1931
|
this.$set(this.tabs[i], 'keys', util.uuid());
|
|
1916
1932
|
}
|
|
1917
1933
|
}
|