eoss-ui 0.8.21 → 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 +174 -31
- package/lib/index.js +1 -1
- package/lib/main.js +173 -30
- package/package.json +1 -1
- package/packages/main/src/simplicity/index.vue +72 -4
- package/packages/main/src/simplicityTop/index.vue +65 -3
- package/packages/theme-chalk/lib/base.css +1 -0
- package/packages/theme-chalk/lib/button-group.css +1 -0
- package/packages/theme-chalk/lib/button.css +1 -0
- package/packages/theme-chalk/lib/calendar.css +1 -0
- package/packages/theme-chalk/lib/calogin.css +0 -0
- package/packages/theme-chalk/lib/card.css +1 -0
- package/packages/theme-chalk/lib/cascader.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +1 -0
- package/packages/theme-chalk/lib/clients.css +1 -0
- package/packages/theme-chalk/lib/data-table-form.css +1 -0
- package/packages/theme-chalk/lib/data-table.css +1 -0
- package/packages/theme-chalk/lib/date-picker.css +1 -0
- package/packages/theme-chalk/lib/dialog.css +1 -0
- package/packages/theme-chalk/lib/enable-drag.css +1 -0
- package/packages/theme-chalk/lib/enterprise.css +1 -0
- package/packages/theme-chalk/lib/error-page.css +1 -0
- package/packages/theme-chalk/lib/flow-chart.css +0 -0
- package/packages/theme-chalk/lib/flow-group.css +1 -0
- package/packages/theme-chalk/lib/flow-list.css +1 -0
- package/packages/theme-chalk/lib/flow.css +1 -0
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/form.css +1 -0
- package/packages/theme-chalk/lib/handle-user.css +1 -0
- package/packages/theme-chalk/lib/handler.css +1 -0
- package/packages/theme-chalk/lib/icon.css +1 -0
- package/packages/theme-chalk/lib/icons.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -0
- package/packages/theme-chalk/lib/input-number.css +0 -0
- package/packages/theme-chalk/lib/input.css +1 -0
- package/packages/theme-chalk/lib/label.css +1 -0
- package/packages/theme-chalk/lib/layout.css +1 -0
- package/packages/theme-chalk/lib/login.css +1 -0
- package/packages/theme-chalk/lib/main.css +1 -0
- package/packages/theme-chalk/lib/menu.css +1 -0
- package/packages/theme-chalk/lib/nav.css +1 -0
- package/packages/theme-chalk/lib/notify.css +0 -0
- package/packages/theme-chalk/lib/page.css +1 -0
- package/packages/theme-chalk/lib/pagination.css +1 -0
- package/packages/theme-chalk/lib/player.css +1 -0
- package/packages/theme-chalk/lib/qr-code.css +1 -0
- package/packages/theme-chalk/lib/radio-group.css +1 -0
- package/packages/theme-chalk/lib/retrial-auth.css +1 -0
- package/packages/theme-chalk/lib/select-ganged.css +1 -0
- package/packages/theme-chalk/lib/select.css +1 -0
- package/packages/theme-chalk/lib/selector-panel.css +1 -0
- package/packages/theme-chalk/lib/selector.css +1 -0
- package/packages/theme-chalk/lib/simplicity-top.css +1 -0
- package/packages/theme-chalk/lib/simplicity.css +1 -0
- package/packages/theme-chalk/lib/sizer.css +1 -0
- package/packages/theme-chalk/lib/steps.css +1 -0
- package/packages/theme-chalk/lib/switch.css +1 -0
- package/packages/theme-chalk/lib/table-form.css +0 -0
- package/packages/theme-chalk/lib/tabs-panel.css +0 -0
- package/packages/theme-chalk/lib/tabs.css +1 -0
- package/packages/theme-chalk/lib/tips.css +1 -0
- package/packages/theme-chalk/lib/toolbar.css +1 -0
- package/packages/theme-chalk/lib/tree-group.css +1 -0
- package/packages/theme-chalk/lib/tree.css +1 -0
- package/packages/theme-chalk/lib/upload.css +1 -0
- package/packages/theme-chalk/lib/wujie.css +0 -0
- package/packages/theme-chalk/lib/wxlogin.css +1 -0
- package/src/index.js +1 -1
- package/packages/theme-chalk/gulpfile.js +0 -25
package/lib/eoss-ui.common.js
CHANGED
|
@@ -63515,8 +63515,8 @@ mainvue_type_template_id_b3cc50dc_render._withStripped = true
|
|
|
63515
63515
|
|
|
63516
63516
|
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=b3cc50dc&
|
|
63517
63517
|
|
|
63518
|
-
// 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=
|
|
63519
|
-
var
|
|
63518
|
+
// 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&
|
|
63519
|
+
var simplicityvue_type_template_id_7b9689e2_scoped_true_render = function () {
|
|
63520
63520
|
var _vm = this
|
|
63521
63521
|
var _h = _vm.$createElement
|
|
63522
63522
|
var _c = _vm._self._c || _h
|
|
@@ -64282,11 +64282,11 @@ var simplicityvue_type_template_id_8605940a_scoped_true_render = function () {
|
|
|
64282
64282
|
),
|
|
64283
64283
|
])
|
|
64284
64284
|
}
|
|
64285
|
-
var
|
|
64286
|
-
|
|
64285
|
+
var simplicityvue_type_template_id_7b9689e2_scoped_true_staticRenderFns = []
|
|
64286
|
+
simplicityvue_type_template_id_7b9689e2_scoped_true_render._withStripped = true
|
|
64287
64287
|
|
|
64288
64288
|
|
|
64289
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
64289
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=7b9689e2&scoped=true&
|
|
64290
64290
|
|
|
64291
64291
|
// 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&
|
|
64292
64292
|
var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
|
|
@@ -69893,6 +69893,8 @@ var search_component = normalizeComponent(
|
|
|
69893
69893
|
|
|
69894
69894
|
/* harmony default export */ var public_search = (search_component.exports);
|
|
69895
69895
|
// 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&
|
|
69896
|
+
var simplicityvue_type_script_lang_js_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; };
|
|
69897
|
+
|
|
69896
69898
|
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; };
|
|
69897
69899
|
|
|
69898
69900
|
//
|
|
@@ -71681,7 +71683,9 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
71681
71683
|
* @date 2024年9月7日
|
|
71682
71684
|
**/
|
|
71683
71685
|
handleRefresh: function handleRefresh(arg) {
|
|
71684
|
-
var
|
|
71686
|
+
var _this7 = this;
|
|
71687
|
+
|
|
71688
|
+
var i = arg && arg != true && arg !== 'pageData' && !((typeof arg === 'undefined' ? 'undefined' : simplicityvue_type_script_lang_js_typeof(arg)) === 'object' && arg.path) ? utils_util.indexOfObj(this.tabs, arg, 'appCode,code,id,url') : utils_util.indexOfObj(this.tabs, this.activeName, 'id');
|
|
71685
71689
|
var tab = this.tabs[i];
|
|
71686
71690
|
if (simplicityvue_type_script_lang_js_isIE || tab.method === 'iframe') {
|
|
71687
71691
|
if (arg && arg === 'pageData') {
|
|
@@ -71701,7 +71705,22 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
71701
71705
|
if (arg && arg === 'pageData') {
|
|
71702
71706
|
external_wujie_vue2_default.a.$emit('pageData', tab);
|
|
71703
71707
|
} else {
|
|
71704
|
-
window.document
|
|
71708
|
+
// window.document
|
|
71709
|
+
// .querySelector(`iframe[name=${tab.appCode}]`)
|
|
71710
|
+
// .contentWindow.location.reload(true);
|
|
71711
|
+
var url = tab.url;
|
|
71712
|
+
// 如果传入了路由参数,需要更新 URL
|
|
71713
|
+
if (arg && (typeof arg === 'undefined' ? 'undefined' : simplicityvue_type_script_lang_js_typeof(arg)) === 'object' && arg.path) {
|
|
71714
|
+
url = this.buildWujieUrl(tab.url, arg);
|
|
71715
|
+
}
|
|
71716
|
+
// 1. 获取带新时间戳的 URL
|
|
71717
|
+
var newUrl = utils_util.handlerUrl(url);
|
|
71718
|
+
// 2. 关键:先置空,等待 Wujie 销毁实例
|
|
71719
|
+
tab.url = '';
|
|
71720
|
+
// 3. 使用 setTimeout 替代 $nextTick,给 Wujie 更多时间清理内存和 DOM
|
|
71721
|
+
setTimeout(function () {
|
|
71722
|
+
_this7.$set(_this7.tabs, i, simplicityvue_type_script_lang_js_extends({}, tab, { url: newUrl }));
|
|
71723
|
+
}, 50); // 50ms 的延迟通常足以让 Wujie 完成卸载
|
|
71705
71724
|
}
|
|
71706
71725
|
return;
|
|
71707
71726
|
}
|
|
@@ -71715,6 +71734,61 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
71715
71734
|
}
|
|
71716
71735
|
},
|
|
71717
71736
|
|
|
71737
|
+
/**
|
|
71738
|
+
* @desc:构建 Wujie 子应用 URL(处理路由参数)
|
|
71739
|
+
* @param {String} baseUrl - 基础 URL
|
|
71740
|
+
* @param {Object} routeInfo - 路由信息 { path, params, query }
|
|
71741
|
+
* @returns {String} 拼接后的完整 URL
|
|
71742
|
+
**/
|
|
71743
|
+
buildWujieUrl: function buildWujieUrl(baseUrl, routeInfo) {
|
|
71744
|
+
var path = routeInfo.path,
|
|
71745
|
+
_routeInfo$params = routeInfo.params,
|
|
71746
|
+
params = _routeInfo$params === undefined ? {} : _routeInfo$params,
|
|
71747
|
+
_routeInfo$query = routeInfo.query,
|
|
71748
|
+
query = _routeInfo$query === undefined ? {} : _routeInfo$query;
|
|
71749
|
+
|
|
71750
|
+
|
|
71751
|
+
if (!path) {
|
|
71752
|
+
return baseUrl;
|
|
71753
|
+
}
|
|
71754
|
+
|
|
71755
|
+
// 1. 处理 path + params(Vue Router 风格:params 作为路径参数)
|
|
71756
|
+
var fullPath = path;
|
|
71757
|
+
|
|
71758
|
+
// 如果 params 中有值,将其拼接到 path 后面
|
|
71759
|
+
// 例如:path='/aa/bb', params={action:'action', id:'ddd', did:'33333'}
|
|
71760
|
+
// 结果:'/aa/bb/action/ddd/33333'
|
|
71761
|
+
var paramValues = Object.values(params).filter(function (val) {
|
|
71762
|
+
return val !== undefined && val !== null;
|
|
71763
|
+
});
|
|
71764
|
+
if (paramValues.length > 0) {
|
|
71765
|
+
// 确保 path 不以 / 结尾
|
|
71766
|
+
var cleanPath = path.endsWith('/') ? path.slice(0, -1) : path;
|
|
71767
|
+
fullPath = cleanPath + '/' + paramValues.join('/');
|
|
71768
|
+
}
|
|
71769
|
+
|
|
71770
|
+
// 2. 处理 query 参数
|
|
71771
|
+
var queryKeys = Object.keys(query);
|
|
71772
|
+
if (queryKeys.length > 0) {
|
|
71773
|
+
var queryString = queryKeys.map(function (key) {
|
|
71774
|
+
return encodeURIComponent(key) + '=' + encodeURIComponent(query[key]);
|
|
71775
|
+
}).join('&');
|
|
71776
|
+
fullPath += '?' + queryString;
|
|
71777
|
+
}
|
|
71778
|
+
|
|
71779
|
+
// 3. 从 baseUrl 中提取基础部分(去掉 hash 路由部分)
|
|
71780
|
+
// 例如:baseUrl = 'http://example.com/app#/old/path'
|
|
71781
|
+
// 提取:'http://example.com/app#'
|
|
71782
|
+
var baseUrlPrefix = baseUrl;
|
|
71783
|
+
var hashIndex = baseUrl.indexOf('#');
|
|
71784
|
+
if (hashIndex > -1) {
|
|
71785
|
+
baseUrlPrefix = baseUrl.substring(0, hashIndex + 1); // 保留 #
|
|
71786
|
+
}
|
|
71787
|
+
|
|
71788
|
+
// 4. 拼接最终 URL
|
|
71789
|
+
return baseUrlPrefix + fullPath;
|
|
71790
|
+
},
|
|
71791
|
+
|
|
71718
71792
|
/**
|
|
71719
71793
|
* @desc:删除iframe
|
|
71720
71794
|
* @author huangbo
|
|
@@ -71891,7 +71965,7 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
71891
71965
|
* @date 2024年9月7日
|
|
71892
71966
|
**/
|
|
71893
71967
|
handleQuit: function handleQuit() {
|
|
71894
|
-
var
|
|
71968
|
+
var _this8 = this;
|
|
71895
71969
|
|
|
71896
71970
|
this.$confirm('确定退出吗?', '退出系统', {
|
|
71897
71971
|
confirmButtonText: '确定',
|
|
@@ -71907,19 +71981,19 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
71907
71981
|
}
|
|
71908
71982
|
break;
|
|
71909
71983
|
}
|
|
71910
|
-
if (
|
|
71911
|
-
for (var _i2 = 0; _i2 <
|
|
71984
|
+
if (_this8.singleLogout) {
|
|
71985
|
+
for (var _i2 = 0; _i2 < _this8.singleLogout.length; _i2++) {
|
|
71912
71986
|
var iframe = document.createElement('iframe');
|
|
71913
71987
|
iframe.style.display = 'none';
|
|
71914
|
-
iframe.src =
|
|
71988
|
+
iframe.src = _this8.singleLogout[_i2];
|
|
71915
71989
|
document.body.appendChild(iframe);
|
|
71916
71990
|
}
|
|
71917
71991
|
}
|
|
71918
71992
|
utils_util.ajax({ method: 'post', url: logout }).then(function (res) {
|
|
71919
71993
|
if (res.rCode == 0) {
|
|
71920
71994
|
utils_util.removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
71921
|
-
if (
|
|
71922
|
-
|
|
71995
|
+
if (_this8.onQuit && typeof _this8.onQuit === 'function') {
|
|
71996
|
+
_this8.onQuit();
|
|
71923
71997
|
} else {
|
|
71924
71998
|
try {
|
|
71925
71999
|
var loginPage = utils_util.getStorage('login') || utils_util.getStorage('loginPage');
|
|
@@ -71963,7 +72037,7 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
71963
72037
|
}
|
|
71964
72038
|
}).catch(function (err) {
|
|
71965
72039
|
if (err.message && err.message !== 'canceled') {
|
|
71966
|
-
|
|
72040
|
+
_this8.$message.error(err.message);
|
|
71967
72041
|
}
|
|
71968
72042
|
});
|
|
71969
72043
|
}).catch(function (e) {});
|
|
@@ -72021,13 +72095,13 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
72021
72095
|
* @date 2024年9月7日
|
|
72022
72096
|
**/
|
|
72023
72097
|
handleOpened: function handleOpened(res) {
|
|
72024
|
-
var
|
|
72098
|
+
var _this9 = this;
|
|
72025
72099
|
|
|
72026
72100
|
if (res === undefined) {
|
|
72027
72101
|
this.sysMsg = [];
|
|
72028
72102
|
} else if (res == false && this.sysMsg.length) {
|
|
72029
72103
|
this.sysMsgOut = setTimeout(function () {
|
|
72030
|
-
|
|
72104
|
+
_this9.sysMsg = [];
|
|
72031
72105
|
}, 3000);
|
|
72032
72106
|
} else if (this.sysMsgOut) {
|
|
72033
72107
|
clearTimeout(this.sysMsgOut);
|
|
@@ -72103,13 +72177,13 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
72103
72177
|
|
|
72104
72178
|
//监听改变菜单
|
|
72105
72179
|
handleListener: function handleListener() {
|
|
72106
|
-
var
|
|
72180
|
+
var _this10 = this;
|
|
72107
72181
|
|
|
72108
72182
|
utils_util.win.addEventListener('message', function (e) {
|
|
72109
72183
|
var msg = e.data;
|
|
72110
72184
|
if (msg.key == 'jump_Menu') {
|
|
72111
72185
|
var res = msg.data1;
|
|
72112
|
-
|
|
72186
|
+
_this10.jumpMenu(res);
|
|
72113
72187
|
}
|
|
72114
72188
|
}, false);
|
|
72115
72189
|
},
|
|
@@ -72146,18 +72220,18 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
72146
72220
|
|
|
72147
72221
|
var simplicity_component = normalizeComponent(
|
|
72148
72222
|
src_simplicityvue_type_script_lang_js_,
|
|
72149
|
-
|
|
72150
|
-
|
|
72223
|
+
simplicityvue_type_template_id_7b9689e2_scoped_true_render,
|
|
72224
|
+
simplicityvue_type_template_id_7b9689e2_scoped_true_staticRenderFns,
|
|
72151
72225
|
false,
|
|
72152
72226
|
null,
|
|
72153
|
-
"
|
|
72227
|
+
"7b9689e2",
|
|
72154
72228
|
null
|
|
72155
72229
|
|
|
72156
72230
|
)
|
|
72157
72231
|
|
|
72158
72232
|
/* harmony default export */ var simplicity = (simplicity_component.exports);
|
|
72159
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=template&id=
|
|
72160
|
-
var
|
|
72233
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=template&id=c03e4732&scoped=true&
|
|
72234
|
+
var simplicityTopvue_type_template_id_c03e4732_scoped_true_render = function () {
|
|
72161
72235
|
var _vm = this
|
|
72162
72236
|
var _h = _vm.$createElement
|
|
72163
72237
|
var _c = _vm._self._c || _h
|
|
@@ -72724,11 +72798,11 @@ var simplicityTopvue_type_template_id_bb63a666_scoped_true_render = function ()
|
|
|
72724
72798
|
1
|
|
72725
72799
|
)
|
|
72726
72800
|
}
|
|
72727
|
-
var
|
|
72728
|
-
|
|
72801
|
+
var simplicityTopvue_type_template_id_c03e4732_scoped_true_staticRenderFns = []
|
|
72802
|
+
simplicityTopvue_type_template_id_c03e4732_scoped_true_render._withStripped = true
|
|
72729
72803
|
|
|
72730
72804
|
|
|
72731
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=
|
|
72805
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=c03e4732&scoped=true&
|
|
72732
72806
|
|
|
72733
72807
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/avatar.vue?vue&type=template&id=30391b69&scoped=true&
|
|
72734
72808
|
var avatarvue_type_template_id_30391b69_scoped_true_render = function () {
|
|
@@ -75014,6 +75088,8 @@ var simplicityTop_router_page_component = normalizeComponent(
|
|
|
75014
75088
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=script&lang=js&
|
|
75015
75089
|
|
|
75016
75090
|
|
|
75091
|
+
var simplicityTopvue_type_script_lang_js_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; };
|
|
75092
|
+
|
|
75017
75093
|
var simplicityTopvue_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; };
|
|
75018
75094
|
|
|
75019
75095
|
function simplicityTopvue_type_script_lang_js_asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
|
|
@@ -77094,7 +77170,19 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.getWinTopProper
|
|
|
77094
77170
|
if (arg && arg === 'pageData') {
|
|
77095
77171
|
external_wujie_vue2_default.a.$emit('pageData', tab);
|
|
77096
77172
|
} else {
|
|
77097
|
-
window.document
|
|
77173
|
+
// window.document
|
|
77174
|
+
// .querySelector(`iframe[name=${tab.appCode}]`)
|
|
77175
|
+
// .contentWindow.location.reload(true);
|
|
77176
|
+
var url = tab.url;
|
|
77177
|
+
// 如果传入了路由参数,需要更新 URL
|
|
77178
|
+
if (arg && (typeof arg === 'undefined' ? 'undefined' : simplicityTopvue_type_script_lang_js_typeof(arg)) === 'object' && arg.path) {
|
|
77179
|
+
url = this.buildWujieUrl(tab.url, arg);
|
|
77180
|
+
}
|
|
77181
|
+
|
|
77182
|
+
tab.url = '';
|
|
77183
|
+
this.$nextTick(function () {
|
|
77184
|
+
tab.url = utils_util.handlerUrl(url);
|
|
77185
|
+
});
|
|
77098
77186
|
}
|
|
77099
77187
|
return;
|
|
77100
77188
|
}
|
|
@@ -77109,6 +77197,61 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.getWinTopProper
|
|
|
77109
77197
|
}
|
|
77110
77198
|
},
|
|
77111
77199
|
|
|
77200
|
+
/**
|
|
77201
|
+
* @desc:构建 Wujie 子应用 URL(处理路由参数)
|
|
77202
|
+
* @param {String} baseUrl - 基础 URL
|
|
77203
|
+
* @param {Object} routeInfo - 路由信息 { path, params, query }
|
|
77204
|
+
* @returns {String} 拼接后的完整 URL
|
|
77205
|
+
**/
|
|
77206
|
+
buildWujieUrl: function buildWujieUrl(baseUrl, routeInfo) {
|
|
77207
|
+
var path = routeInfo.path,
|
|
77208
|
+
_routeInfo$params = routeInfo.params,
|
|
77209
|
+
params = _routeInfo$params === undefined ? {} : _routeInfo$params,
|
|
77210
|
+
_routeInfo$query = routeInfo.query,
|
|
77211
|
+
query = _routeInfo$query === undefined ? {} : _routeInfo$query;
|
|
77212
|
+
|
|
77213
|
+
|
|
77214
|
+
if (!path) {
|
|
77215
|
+
return baseUrl;
|
|
77216
|
+
}
|
|
77217
|
+
|
|
77218
|
+
// 1. 处理 path + params(Vue Router 风格:params 作为路径参数)
|
|
77219
|
+
var fullPath = path;
|
|
77220
|
+
|
|
77221
|
+
// 如果 params 中有值,将其拼接到 path 后面
|
|
77222
|
+
// 例如:path='/aa/bb', params={action:'action', id:'ddd', did:'33333'}
|
|
77223
|
+
// 结果:'/aa/bb/action/ddd/33333'
|
|
77224
|
+
var paramValues = Object.values(params).filter(function (val) {
|
|
77225
|
+
return val !== undefined && val !== null;
|
|
77226
|
+
});
|
|
77227
|
+
if (paramValues.length > 0) {
|
|
77228
|
+
// 确保 path 不以 / 结尾
|
|
77229
|
+
var cleanPath = path.endsWith('/') ? path.slice(0, -1) : path;
|
|
77230
|
+
fullPath = cleanPath + '/' + paramValues.join('/');
|
|
77231
|
+
}
|
|
77232
|
+
|
|
77233
|
+
// 2. 处理 query 参数
|
|
77234
|
+
var queryKeys = Object.keys(query);
|
|
77235
|
+
if (queryKeys.length > 0) {
|
|
77236
|
+
var queryString = queryKeys.map(function (key) {
|
|
77237
|
+
return encodeURIComponent(key) + '=' + encodeURIComponent(query[key]);
|
|
77238
|
+
}).join('&');
|
|
77239
|
+
fullPath += '?' + queryString;
|
|
77240
|
+
}
|
|
77241
|
+
|
|
77242
|
+
// 3. 从 baseUrl 中提取基础部分(去掉 hash 路由部分)
|
|
77243
|
+
// 例如:baseUrl = 'http://example.com/app#/old/path'
|
|
77244
|
+
// 提取:'http://example.com/app#'
|
|
77245
|
+
var baseUrlPrefix = baseUrl;
|
|
77246
|
+
var hashIndex = baseUrl.indexOf('#');
|
|
77247
|
+
if (hashIndex > -1) {
|
|
77248
|
+
baseUrlPrefix = baseUrl.substring(0, hashIndex + 1); // 保留 #
|
|
77249
|
+
}
|
|
77250
|
+
|
|
77251
|
+
// 4. 拼接最终 URL
|
|
77252
|
+
return baseUrlPrefix + fullPath;
|
|
77253
|
+
},
|
|
77254
|
+
|
|
77112
77255
|
/**
|
|
77113
77256
|
* @desc:删除iframe
|
|
77114
77257
|
* @author huangbo
|
|
@@ -77600,11 +77743,11 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.getWinTopProper
|
|
|
77600
77743
|
|
|
77601
77744
|
var simplicityTop_component = normalizeComponent(
|
|
77602
77745
|
src_simplicityTopvue_type_script_lang_js_,
|
|
77603
|
-
|
|
77604
|
-
|
|
77746
|
+
simplicityTopvue_type_template_id_c03e4732_scoped_true_render,
|
|
77747
|
+
simplicityTopvue_type_template_id_c03e4732_scoped_true_staticRenderFns,
|
|
77605
77748
|
false,
|
|
77606
77749
|
null,
|
|
77607
|
-
"
|
|
77750
|
+
"c03e4732",
|
|
77608
77751
|
null
|
|
77609
77752
|
|
|
77610
77753
|
)
|
|
@@ -103076,7 +103219,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
103076
103219
|
}
|
|
103077
103220
|
|
|
103078
103221
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
103079
|
-
version: '0.8.
|
|
103222
|
+
version: '0.8.23',
|
|
103080
103223
|
install: install,
|
|
103081
103224
|
Button: packages_button,
|
|
103082
103225
|
ButtonGroup: button_group,
|