eoss-ui 0.7.33 → 0.7.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 +65 -54
- package/lib/index.js +1 -1
- package/lib/main.js +59 -48
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/main.vue +25 -4
- package/packages/main/src/simplicity/index.vue +23 -26
- package/src/index.js +1 -1
package/lib/main.js
CHANGED
|
@@ -4527,7 +4527,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
|
|
|
4527
4527
|
// ESM COMPAT FLAG
|
|
4528
4528
|
__webpack_require__.r(__webpack_exports__);
|
|
4529
4529
|
|
|
4530
|
-
// 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=
|
|
4530
|
+
// 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=1439fd41&
|
|
4531
4531
|
var render = function () {
|
|
4532
4532
|
var _vm = this
|
|
4533
4533
|
var _h = _vm.$createElement
|
|
@@ -4590,7 +4590,7 @@ var render = function () {
|
|
|
4590
4590
|
key: item.appCode || item.id || item.name || index,
|
|
4591
4591
|
attrs: {
|
|
4592
4592
|
visible: item.visible,
|
|
4593
|
-
title: item.name,
|
|
4593
|
+
title: item.name || item.title,
|
|
4594
4594
|
width: item.width,
|
|
4595
4595
|
height: item.height,
|
|
4596
4596
|
size: item.size,
|
|
@@ -4646,13 +4646,13 @@ var staticRenderFns = []
|
|
|
4646
4646
|
render._withStripped = true
|
|
4647
4647
|
|
|
4648
4648
|
|
|
4649
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
4649
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=1439fd41&
|
|
4650
4650
|
|
|
4651
4651
|
// EXTERNAL MODULE: ./src/config/image.js
|
|
4652
4652
|
var config_image = __webpack_require__(20);
|
|
4653
4653
|
|
|
4654
|
-
// 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=
|
|
4655
|
-
var
|
|
4654
|
+
// 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=2bc408e2&scoped=true&
|
|
4655
|
+
var simplicityvue_type_template_id_2bc408e2_scoped_true_render = function () {
|
|
4656
4656
|
var _vm = this
|
|
4657
4657
|
var _h = _vm.$createElement
|
|
4658
4658
|
var _c = _vm._self._c || _h
|
|
@@ -5362,11 +5362,11 @@ var simplicityvue_type_template_id_772635c6_scoped_true_render = function () {
|
|
|
5362
5362
|
),
|
|
5363
5363
|
])
|
|
5364
5364
|
}
|
|
5365
|
-
var
|
|
5366
|
-
|
|
5365
|
+
var simplicityvue_type_template_id_2bc408e2_scoped_true_staticRenderFns = []
|
|
5366
|
+
simplicityvue_type_template_id_2bc408e2_scoped_true_render._withStripped = true
|
|
5367
5367
|
|
|
5368
5368
|
|
|
5369
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
5369
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=2bc408e2&scoped=true&
|
|
5370
5370
|
|
|
5371
5371
|
// 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&
|
|
5372
5372
|
var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
|
|
@@ -12480,32 +12480,29 @@ var events = [function (tabs, index, that) {
|
|
|
12480
12480
|
handleRefresh: function handleRefresh(arg) {
|
|
12481
12481
|
var i = arg && arg != true && arg !== 'pageData' ? util["a" /* default */].indexOfObj(this.tabs, arg, 'appCode,code,id,url') : util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
12482
12482
|
var tab = this.tabs[i];
|
|
12483
|
-
if (tab.method === 'iframe') {
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
var iframe = document.getElementById(_tab6.id || _tab6.appCode);
|
|
12490
|
-
iframe.contentWindow.postMessage({ method: 'refresh' }, _tab6.url);
|
|
12491
|
-
} else {
|
|
12492
|
-
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url));
|
|
12493
|
-
}
|
|
12483
|
+
if (isIE || tab.method === 'iframe') {
|
|
12484
|
+
if (arg && arg === 'pageData') {
|
|
12485
|
+
var iframe = document.getElementById(tab.id || tab.appCode);
|
|
12486
|
+
iframe.contentWindow.postMessage({ method: 'refresh' }, tab.url);
|
|
12487
|
+
} else {
|
|
12488
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(tab.url));
|
|
12494
12489
|
}
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12490
|
+
return;
|
|
12491
|
+
}
|
|
12492
|
+
if (tab.method === 'wujie' && tab.appCode) {
|
|
12493
|
+
if (arg && arg === 'pageData') {
|
|
12494
|
+
external_wujie_vue2_default.a.$emit('refresh', tab);
|
|
12495
|
+
} else {
|
|
12496
|
+
window.document.querySelector('iframe[name=' + tab.appCode + ']').contentWindow.location.reload(true);
|
|
12501
12497
|
}
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12498
|
+
return;
|
|
12499
|
+
}
|
|
12500
|
+
if (tab.method === 'router') {
|
|
12501
|
+
if (arg && arg === 'pageData') {
|
|
12502
|
+
var bus = this.bus || this.$root.Bus;
|
|
12503
|
+
bus.$emit('refresh', tab);
|
|
12504
|
+
} else {
|
|
12505
|
+
this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
|
|
12509
12506
|
}
|
|
12510
12507
|
}
|
|
12511
12508
|
},
|
|
@@ -12846,16 +12843,16 @@ var events = [function (tabs, index, that) {
|
|
|
12846
12843
|
this.$set(tab, 'url', util["a" /* default */].handlerUrl(tab.url, param));
|
|
12847
12844
|
this.tabs.splice(n + 1, 0, tab);
|
|
12848
12845
|
} else {
|
|
12849
|
-
var
|
|
12850
|
-
if (
|
|
12851
|
-
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(
|
|
12846
|
+
var _tab6 = this.tabs[i];
|
|
12847
|
+
if (_tab6.method === 'iframe') {
|
|
12848
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url, param));
|
|
12852
12849
|
}
|
|
12853
|
-
if (
|
|
12854
|
-
var url = param ? util["a" /* default */].handlerUrl(
|
|
12850
|
+
if (_tab6.method === 'wujie' && _tab6.appCode) {
|
|
12851
|
+
var url = param ? util["a" /* default */].handlerUrl(_tab6.url, param) : _tab6.url;
|
|
12855
12852
|
if (reload || param) {
|
|
12856
|
-
|
|
12853
|
+
_tab6.url = '';
|
|
12857
12854
|
this.$nextTick(function () {
|
|
12858
|
-
|
|
12855
|
+
_tab6.url = url;
|
|
12859
12856
|
});
|
|
12860
12857
|
}
|
|
12861
12858
|
// if (param) {
|
|
@@ -12868,8 +12865,8 @@ var events = [function (tabs, index, that) {
|
|
|
12868
12865
|
// .contentWindow.location.reload(true);
|
|
12869
12866
|
// }
|
|
12870
12867
|
}
|
|
12871
|
-
if (
|
|
12872
|
-
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(
|
|
12868
|
+
if (_tab6.method === 'router') {
|
|
12869
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url, param));
|
|
12873
12870
|
this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
|
|
12874
12871
|
}
|
|
12875
12872
|
}
|
|
@@ -12933,11 +12930,11 @@ var events = [function (tabs, index, that) {
|
|
|
12933
12930
|
|
|
12934
12931
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
12935
12932
|
src_simplicityvue_type_script_lang_js_,
|
|
12936
|
-
|
|
12937
|
-
|
|
12933
|
+
simplicityvue_type_template_id_2bc408e2_scoped_true_render,
|
|
12934
|
+
simplicityvue_type_template_id_2bc408e2_scoped_true_staticRenderFns,
|
|
12938
12935
|
false,
|
|
12939
12936
|
null,
|
|
12940
|
-
"
|
|
12937
|
+
"2bc408e2",
|
|
12941
12938
|
null
|
|
12942
12939
|
|
|
12943
12940
|
)
|
|
@@ -17292,7 +17289,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
17292
17289
|
height = _ref$height === undefined ? '100%' : _ref$height,
|
|
17293
17290
|
appCode = _ref.appCode,
|
|
17294
17291
|
id = _ref.id,
|
|
17295
|
-
size = _ref.size
|
|
17292
|
+
size = _ref.size,
|
|
17293
|
+
config = _objectWithoutProperties(_ref, ['url', 'name', 'width', 'height', 'appCode', 'id', 'size']);
|
|
17296
17294
|
|
|
17297
17295
|
id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
|
|
17298
17296
|
var openModel = util["a" /* default */].getStorage('openModel');
|
|
@@ -17307,7 +17305,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
17307
17305
|
src = pathname + url.replace('./', '/');
|
|
17308
17306
|
}
|
|
17309
17307
|
if (openModel && openModel == 'dialog') {
|
|
17310
|
-
var _dialog = {
|
|
17308
|
+
var _dialog = mainvue_type_script_lang_js_extends({
|
|
17311
17309
|
id: id,
|
|
17312
17310
|
url: src,
|
|
17313
17311
|
name: name,
|
|
@@ -17316,7 +17314,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
17316
17314
|
appCode: appCode,
|
|
17317
17315
|
visible: false,
|
|
17318
17316
|
size: size
|
|
17319
|
-
};
|
|
17317
|
+
}, config);
|
|
17320
17318
|
var n = this.dialogs.push(_dialog);
|
|
17321
17319
|
this.$nextTick(function () {
|
|
17322
17320
|
_this5.$set(_dialog, 'index', n - 1);
|
|
@@ -17460,7 +17458,11 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
17460
17458
|
* @date 2024年9月7日
|
|
17461
17459
|
**/
|
|
17462
17460
|
handleClosed: function handleClosed(res, index) {
|
|
17463
|
-
this
|
|
17461
|
+
var _this6 = this;
|
|
17462
|
+
|
|
17463
|
+
this.$nextTick(function () {
|
|
17464
|
+
_this6.dialogs.splice(index, 1);
|
|
17465
|
+
});
|
|
17464
17466
|
},
|
|
17465
17467
|
|
|
17466
17468
|
/**
|
|
@@ -17485,6 +17487,15 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
17485
17487
|
},
|
|
17486
17488
|
beforeDestroy: function beforeDestroy() {
|
|
17487
17489
|
window.removeEventListener('message', this.handleMessage);
|
|
17490
|
+
var bus = this.bus || this.$root.Bus;
|
|
17491
|
+
if (bus) {
|
|
17492
|
+
bus.$off('reLogin');
|
|
17493
|
+
bus.$off('refresh');
|
|
17494
|
+
bus.$off('windowOpen');
|
|
17495
|
+
bus.$off('windowClose');
|
|
17496
|
+
bus.$off('jumpMenu');
|
|
17497
|
+
bus.$off('emit');
|
|
17498
|
+
}
|
|
17488
17499
|
external_wujie_vue2_default.a.bus.$off('reLogin');
|
|
17489
17500
|
external_wujie_vue2_default.a.bus.$off('refresh');
|
|
17490
17501
|
external_wujie_vue2_default.a.bus.$off('jumpMenu');
|
package/package.json
CHANGED
package/packages/.DS_Store
CHANGED
|
Binary file
|
package/packages/main/.DS_Store
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
v-for="(item, index) in dialogs"
|
|
28
28
|
:visible.sync="item.visible"
|
|
29
29
|
:key="item.appCode || item.id || item.name || index"
|
|
30
|
-
:title="item.name"
|
|
30
|
+
:title="item.name || item.title"
|
|
31
31
|
:width="item.width"
|
|
32
32
|
:height="item.height"
|
|
33
33
|
:size="item.size"
|
|
@@ -345,7 +345,16 @@ export default {
|
|
|
345
345
|
* @author huangbo
|
|
346
346
|
* @date 2024年9月7日
|
|
347
347
|
**/
|
|
348
|
-
winOpen({
|
|
348
|
+
winOpen({
|
|
349
|
+
url,
|
|
350
|
+
name,
|
|
351
|
+
width = '100%',
|
|
352
|
+
height = '100%',
|
|
353
|
+
appCode,
|
|
354
|
+
id,
|
|
355
|
+
size,
|
|
356
|
+
...config
|
|
357
|
+
}) {
|
|
349
358
|
id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
|
|
350
359
|
const openModel = util.getStorage('openModel');
|
|
351
360
|
let src = url;
|
|
@@ -367,7 +376,8 @@ export default {
|
|
|
367
376
|
height,
|
|
368
377
|
appCode,
|
|
369
378
|
visible: false,
|
|
370
|
-
size
|
|
379
|
+
size,
|
|
380
|
+
...config
|
|
371
381
|
};
|
|
372
382
|
let n = this.dialogs.push(dialog);
|
|
373
383
|
this.$nextTick(() => {
|
|
@@ -496,7 +506,9 @@ export default {
|
|
|
496
506
|
* @date 2024年9月7日
|
|
497
507
|
**/
|
|
498
508
|
handleClosed(res, index) {
|
|
499
|
-
this
|
|
509
|
+
this.$nextTick(() => {
|
|
510
|
+
this.dialogs.splice(index, 1);
|
|
511
|
+
});
|
|
500
512
|
},
|
|
501
513
|
/**
|
|
502
514
|
* @desc:主应用向子应用发送事件
|
|
@@ -524,6 +536,15 @@ export default {
|
|
|
524
536
|
},
|
|
525
537
|
beforeDestroy() {
|
|
526
538
|
window.removeEventListener('message', this.handleMessage);
|
|
539
|
+
const bus = this.bus || this.$root.Bus;
|
|
540
|
+
if (bus) {
|
|
541
|
+
bus.$off('reLogin');
|
|
542
|
+
bus.$off('refresh');
|
|
543
|
+
bus.$off('windowOpen');
|
|
544
|
+
bus.$off('windowClose');
|
|
545
|
+
bus.$off('jumpMenu');
|
|
546
|
+
bus.$off('emit');
|
|
547
|
+
}
|
|
527
548
|
WujieVue.bus.$off('reLogin');
|
|
528
549
|
WujieVue.bus.$off('refresh');
|
|
529
550
|
WujieVue.bus.$off('jumpMenu');
|
|
@@ -1809,34 +1809,31 @@ export default {
|
|
|
1809
1809
|
? util.indexOfObj(this.tabs, arg, 'appCode,code,id,url')
|
|
1810
1810
|
: util.indexOfObj(this.tabs, this.activeName, 'id');
|
|
1811
1811
|
let tab = this.tabs[i];
|
|
1812
|
-
if (tab.method === 'iframe') {
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
const iframe = document.getElementById(tab.id || tab.appCode);
|
|
1819
|
-
iframe.contentWindow.postMessage({ method: 'refresh' }, tab.url);
|
|
1820
|
-
} else {
|
|
1821
|
-
this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
|
|
1822
|
-
}
|
|
1812
|
+
if (isIE || tab.method === 'iframe') {
|
|
1813
|
+
if (arg && arg === 'pageData') {
|
|
1814
|
+
const iframe = document.getElementById(tab.id || tab.appCode);
|
|
1815
|
+
iframe.contentWindow.postMessage({ method: 'refresh' }, tab.url);
|
|
1816
|
+
} else {
|
|
1817
|
+
this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
|
|
1823
1818
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1819
|
+
return;
|
|
1820
|
+
}
|
|
1821
|
+
if (tab.method === 'wujie' && tab.appCode) {
|
|
1822
|
+
if (arg && arg === 'pageData') {
|
|
1823
|
+
WujieVue.$emit('refresh', tab);
|
|
1824
|
+
} else {
|
|
1825
|
+
window.document
|
|
1826
|
+
.querySelector(`iframe[name=${tab.appCode}]`)
|
|
1827
|
+
.contentWindow.location.reload(true);
|
|
1832
1828
|
}
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1829
|
+
return;
|
|
1830
|
+
}
|
|
1831
|
+
if (tab.method === 'router') {
|
|
1832
|
+
if (arg && arg === 'pageData') {
|
|
1833
|
+
const bus = this.bus || this.$root.Bus;
|
|
1834
|
+
bus.$emit('refresh', tab);
|
|
1835
|
+
} else {
|
|
1836
|
+
this.$set(this.tabs[i], 'keys', util.uuid());
|
|
1840
1837
|
}
|
|
1841
1838
|
}
|
|
1842
1839
|
},
|