eoss-ui 0.8.22 → 0.8.23
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 +29 -24
- package/lib/index.js +1 -1
- package/lib/main.js +28 -23
- package/package.json +1 -1
- package/packages/main/src/simplicity/index.vue +11 -5
- package/src/index.js +1 -1
package/lib/main.js
CHANGED
|
@@ -5485,8 +5485,8 @@ render._withStripped = true
|
|
|
5485
5485
|
// EXTERNAL MODULE: ./src/config/image.js
|
|
5486
5486
|
var config_image = __webpack_require__(19);
|
|
5487
5487
|
|
|
5488
|
-
// 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=
|
|
5489
|
-
var
|
|
5488
|
+
// 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=7b9689e2&scoped=true&
|
|
5489
|
+
var simplicityvue_type_template_id_7b9689e2_scoped_true_render = function () {
|
|
5490
5490
|
var _vm = this
|
|
5491
5491
|
var _h = _vm.$createElement
|
|
5492
5492
|
var _c = _vm._self._c || _h
|
|
@@ -6252,11 +6252,11 @@ var simplicityvue_type_template_id_65535c71_scoped_true_render = function () {
|
|
|
6252
6252
|
),
|
|
6253
6253
|
])
|
|
6254
6254
|
}
|
|
6255
|
-
var
|
|
6256
|
-
|
|
6255
|
+
var simplicityvue_type_template_id_7b9689e2_scoped_true_staticRenderFns = []
|
|
6256
|
+
simplicityvue_type_template_id_7b9689e2_scoped_true_render._withStripped = true
|
|
6257
6257
|
|
|
6258
6258
|
|
|
6259
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
6259
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=7b9689e2&scoped=true&
|
|
6260
6260
|
|
|
6261
6261
|
// 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&
|
|
6262
6262
|
var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
|
|
@@ -13672,6 +13672,8 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
13672
13672
|
* @date 2024年9月7日
|
|
13673
13673
|
**/
|
|
13674
13674
|
handleRefresh: function handleRefresh(arg) {
|
|
13675
|
+
var _this7 = this;
|
|
13676
|
+
|
|
13675
13677
|
var i = arg && arg != true && arg !== 'pageData' && !((typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg.path) ? util["a" /* default */].indexOfObj(this.tabs, arg, 'appCode,code,id,url') : util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
13676
13678
|
var tab = this.tabs[i];
|
|
13677
13679
|
if (isIE || tab.method === 'iframe') {
|
|
@@ -13700,11 +13702,14 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
13700
13702
|
if (arg && (typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg.path) {
|
|
13701
13703
|
url = this.buildWujieUrl(tab.url, arg);
|
|
13702
13704
|
}
|
|
13703
|
-
|
|
13705
|
+
// 1. 获取带新时间戳的 URL
|
|
13706
|
+
var newUrl = util["a" /* default */].handlerUrl(url);
|
|
13707
|
+
// 2. 关键:先置空,等待 Wujie 销毁实例
|
|
13704
13708
|
tab.url = '';
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13709
|
+
// 3. 使用 setTimeout 替代 $nextTick,给 Wujie 更多时间清理内存和 DOM
|
|
13710
|
+
setTimeout(function () {
|
|
13711
|
+
_this7.$set(_this7.tabs, i, simplicityvue_type_script_lang_js_extends({}, tab, { url: newUrl }));
|
|
13712
|
+
}, 50); // 50ms 的延迟通常足以让 Wujie 完成卸载
|
|
13708
13713
|
}
|
|
13709
13714
|
return;
|
|
13710
13715
|
}
|
|
@@ -13949,7 +13954,7 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
13949
13954
|
* @date 2024年9月7日
|
|
13950
13955
|
**/
|
|
13951
13956
|
handleQuit: function handleQuit() {
|
|
13952
|
-
var
|
|
13957
|
+
var _this8 = this;
|
|
13953
13958
|
|
|
13954
13959
|
this.$confirm('确定退出吗?', '退出系统', {
|
|
13955
13960
|
confirmButtonText: '确定',
|
|
@@ -13965,19 +13970,19 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
13965
13970
|
}
|
|
13966
13971
|
break;
|
|
13967
13972
|
}
|
|
13968
|
-
if (
|
|
13969
|
-
for (var _i2 = 0; _i2 <
|
|
13973
|
+
if (_this8.singleLogout) {
|
|
13974
|
+
for (var _i2 = 0; _i2 < _this8.singleLogout.length; _i2++) {
|
|
13970
13975
|
var iframe = document.createElement('iframe');
|
|
13971
13976
|
iframe.style.display = 'none';
|
|
13972
|
-
iframe.src =
|
|
13977
|
+
iframe.src = _this8.singleLogout[_i2];
|
|
13973
13978
|
document.body.appendChild(iframe);
|
|
13974
13979
|
}
|
|
13975
13980
|
}
|
|
13976
13981
|
util["a" /* default */].ajax({ method: 'post', url: api["yb" /* logout */] }).then(function (res) {
|
|
13977
13982
|
if (res.rCode == 0) {
|
|
13978
13983
|
util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
13979
|
-
if (
|
|
13980
|
-
|
|
13984
|
+
if (_this8.onQuit && typeof _this8.onQuit === 'function') {
|
|
13985
|
+
_this8.onQuit();
|
|
13981
13986
|
} else {
|
|
13982
13987
|
try {
|
|
13983
13988
|
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
@@ -14021,7 +14026,7 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
14021
14026
|
}
|
|
14022
14027
|
}).catch(function (err) {
|
|
14023
14028
|
if (err.message && err.message !== 'canceled') {
|
|
14024
|
-
|
|
14029
|
+
_this8.$message.error(err.message);
|
|
14025
14030
|
}
|
|
14026
14031
|
});
|
|
14027
14032
|
}).catch(function (e) {});
|
|
@@ -14079,13 +14084,13 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
14079
14084
|
* @date 2024年9月7日
|
|
14080
14085
|
**/
|
|
14081
14086
|
handleOpened: function handleOpened(res) {
|
|
14082
|
-
var
|
|
14087
|
+
var _this9 = this;
|
|
14083
14088
|
|
|
14084
14089
|
if (res === undefined) {
|
|
14085
14090
|
this.sysMsg = [];
|
|
14086
14091
|
} else if (res == false && this.sysMsg.length) {
|
|
14087
14092
|
this.sysMsgOut = setTimeout(function () {
|
|
14088
|
-
|
|
14093
|
+
_this9.sysMsg = [];
|
|
14089
14094
|
}, 3000);
|
|
14090
14095
|
} else if (this.sysMsgOut) {
|
|
14091
14096
|
clearTimeout(this.sysMsgOut);
|
|
@@ -14161,13 +14166,13 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
14161
14166
|
|
|
14162
14167
|
//监听改变菜单
|
|
14163
14168
|
handleListener: function handleListener() {
|
|
14164
|
-
var
|
|
14169
|
+
var _this10 = this;
|
|
14165
14170
|
|
|
14166
14171
|
util["a" /* default */].win.addEventListener('message', function (e) {
|
|
14167
14172
|
var msg = e.data;
|
|
14168
14173
|
if (msg.key == 'jump_Menu') {
|
|
14169
14174
|
var res = msg.data1;
|
|
14170
|
-
|
|
14175
|
+
_this10.jumpMenu(res);
|
|
14171
14176
|
}
|
|
14172
14177
|
}, false);
|
|
14173
14178
|
},
|
|
@@ -14204,11 +14209,11 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
14204
14209
|
|
|
14205
14210
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
14206
14211
|
src_simplicityvue_type_script_lang_js_,
|
|
14207
|
-
|
|
14208
|
-
|
|
14212
|
+
simplicityvue_type_template_id_7b9689e2_scoped_true_render,
|
|
14213
|
+
simplicityvue_type_template_id_7b9689e2_scoped_true_staticRenderFns,
|
|
14209
14214
|
false,
|
|
14210
14215
|
null,
|
|
14211
|
-
"
|
|
14216
|
+
"7b9689e2",
|
|
14212
14217
|
null
|
|
14213
14218
|
|
|
14214
14219
|
)
|
package/package.json
CHANGED
|
@@ -1856,7 +1856,10 @@ export default {
|
|
|
1856
1856
|
**/
|
|
1857
1857
|
handleRefresh(arg) {
|
|
1858
1858
|
let i =
|
|
1859
|
-
arg &&
|
|
1859
|
+
arg &&
|
|
1860
|
+
arg != true &&
|
|
1861
|
+
arg !== 'pageData' &&
|
|
1862
|
+
!(typeof arg === 'object' && arg.path)
|
|
1860
1863
|
? util.indexOfObj(this.tabs, arg, 'appCode,code,id,url')
|
|
1861
1864
|
: util.indexOfObj(this.tabs, this.activeName, 'id');
|
|
1862
1865
|
let tab = this.tabs[i];
|
|
@@ -1890,11 +1893,14 @@ export default {
|
|
|
1890
1893
|
if (arg && typeof arg === 'object' && arg.path) {
|
|
1891
1894
|
url = this.buildWujieUrl(tab.url, arg);
|
|
1892
1895
|
}
|
|
1893
|
-
|
|
1896
|
+
// 1. 获取带新时间戳的 URL
|
|
1897
|
+
const newUrl = util.handlerUrl(url);
|
|
1898
|
+
// 2. 关键:先置空,等待 Wujie 销毁实例
|
|
1894
1899
|
tab.url = '';
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1900
|
+
// 3. 使用 setTimeout 替代 $nextTick,给 Wujie 更多时间清理内存和 DOM
|
|
1901
|
+
setTimeout(() => {
|
|
1902
|
+
this.$set(this.tabs, i, { ...tab, url: newUrl });
|
|
1903
|
+
}, 50); // 50ms 的延迟通常足以让 Wujie 完成卸载
|
|
1898
1904
|
}
|
|
1899
1905
|
return;
|
|
1900
1906
|
}
|