eoss-ui 0.5.85 → 0.5.86
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/button-group.js +4 -4
- package/lib/button.js +4 -4
- package/lib/checkbox-group.js +4 -4
- package/lib/data-table-form.js +4 -4
- package/lib/data-table.js +4 -4
- package/lib/date-picker.js +4 -4
- package/lib/dialog.js +4 -4
- package/lib/eoss-ui.common.js +15 -14
- package/lib/flow-group.js +4 -4
- package/lib/flow-list.js +4 -4
- package/lib/flow.js +4 -4
- package/lib/form.js +4 -4
- package/lib/handle-user.js +4 -4
- package/lib/handler.js +4 -4
- package/lib/icon.js +4 -4
- package/lib/index.js +1 -1
- package/lib/input-number.js +4 -4
- package/lib/input.js +4 -4
- package/lib/login.js +4 -4
- package/lib/main.js +242 -241
- package/lib/nav.js +4 -4
- package/lib/page.js +4 -4
- package/lib/pagination.js +4 -4
- package/lib/player.js +4 -4
- package/lib/qr-code.js +4 -4
- package/lib/radio-group.js +4 -4
- package/lib/retrial-auth.js +4 -4
- package/lib/select-ganged.js +4 -4
- package/lib/select.js +4 -4
- package/lib/selector-panel.js +4 -4
- package/lib/selector.js +4 -4
- package/lib/sizer.js +4 -4
- package/lib/steps.js +4 -4
- package/lib/switch.js +4 -4
- package/lib/table-form.js +4 -4
- package/lib/tabs.js +4 -4
- package/lib/tips.js +4 -4
- package/lib/tree-group.js +4 -4
- package/lib/tree.js +4 -4
- package/lib/upload.js +4 -4
- package/lib/utils/util.js +4 -4
- package/lib/wujie.js +4 -4
- package/lib/wxlogin.js +4 -4
- package/package.json +1 -1
- package/packages/main/src/simplicity/apps.vue +1 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +4 -4
package/lib/main.js
CHANGED
|
@@ -2015,19 +2015,19 @@ var identical = function identical(_ref7) {
|
|
|
2015
2015
|
* @date 2022年5月7日
|
|
2016
2016
|
* @param {Array} [arry] - 被查找的数组
|
|
2017
2017
|
* @param {Object} [target] - 目标对象
|
|
2018
|
-
* @param {String} [key] - 目标对象的属性名
|
|
2018
|
+
* @param {String/Array} [key] - 目标对象的属性名
|
|
2019
2019
|
**/
|
|
2020
2020
|
var indexOfObj = function indexOfObj(arry, target, key) {
|
|
2021
2021
|
for (var i = 0; i < arry.length; i++) {
|
|
2022
2022
|
if (key) {
|
|
2023
|
-
if (key.indexOf(',') > -1) {
|
|
2024
|
-
var keys = key.split(',');
|
|
2023
|
+
if (key.indexOf(',') > -1 || Array.isArray(key)) {
|
|
2024
|
+
var keys = key.indexOf(',') > -1 ? key.split(',') : key;
|
|
2025
2025
|
for (var n = 0; n < keys.length; n++) {
|
|
2026
2026
|
var k = keys[n];
|
|
2027
2027
|
if (typeof target === 'string' && arry[i][k] === target) {
|
|
2028
2028
|
return i;
|
|
2029
2029
|
}
|
|
2030
|
-
if (target[k] === arry[i][k]) {
|
|
2030
|
+
if (target[k] && arry[i][k] && target[k] === arry[i][k]) {
|
|
2031
2031
|
return i;
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
@@ -4719,7 +4719,7 @@ avatarvue_type_template_id_1560e8bf_scoped_true_render._withStripped = true
|
|
|
4719
4719
|
// CONCATENATED MODULE: ./packages/main/src/simplicity/avatar.vue?vue&type=template&id=1560e8bf&scoped=true&
|
|
4720
4720
|
|
|
4721
4721
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
4722
|
-
var
|
|
4722
|
+
var util = __webpack_require__(0);
|
|
4723
4723
|
|
|
4724
4724
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4725
4725
|
var api = __webpack_require__(1);
|
|
@@ -4793,7 +4793,7 @@ var api = __webpack_require__(1);
|
|
|
4793
4793
|
methods: {
|
|
4794
4794
|
handleSuccess: function handleSuccess(response, file) {
|
|
4795
4795
|
var res = file.response;
|
|
4796
|
-
if (res.url &&
|
|
4796
|
+
if (res.url && util["a" /* default */].startWith(res.url, ['http', 'https', '/'])) {
|
|
4797
4797
|
this.userHead = res.url;
|
|
4798
4798
|
} else {
|
|
4799
4799
|
this.userHead = api["r" /* downloadByAdjunctId */] + '?adjunctId=' + res.adjunctId;
|
|
@@ -5062,14 +5062,14 @@ handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
|
|
|
5062
5062
|
});
|
|
5063
5063
|
},
|
|
5064
5064
|
isClick: function isClick() {
|
|
5065
|
-
var useCaseCodes =
|
|
5065
|
+
var useCaseCodes = util["a" /* default */].getStorage('useCaseCodes');
|
|
5066
5066
|
return useCaseCodes && useCaseCodes.includes('sys_user_onlineList');
|
|
5067
5067
|
}
|
|
5068
5068
|
},
|
|
5069
5069
|
watch: {},
|
|
5070
5070
|
created: function created() {
|
|
5071
5071
|
//this.time = util.timeCycle() + '好!';
|
|
5072
|
-
this.date =
|
|
5072
|
+
this.date = util["a" /* default */].formatDate('', 'yyyy年M月d日');
|
|
5073
5073
|
},
|
|
5074
5074
|
mounted: function mounted() {
|
|
5075
5075
|
this.getTime();
|
|
@@ -5081,7 +5081,7 @@ handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
|
|
|
5081
5081
|
|
|
5082
5082
|
this.timer && clearInterval(this.timer);
|
|
5083
5083
|
this.timer = setInterval(function () {
|
|
5084
|
-
_this2.time =
|
|
5084
|
+
_this2.time = util["a" /* default */].formatDate('', 'HH:mm:ss');
|
|
5085
5085
|
});
|
|
5086
5086
|
},
|
|
5087
5087
|
isShow: function isShow(res) {
|
|
@@ -5508,10 +5508,10 @@ menu_listvue_type_template_id_43b0ff18_scoped_true_render._withStripped = true
|
|
|
5508
5508
|
this.defaultActive = res.id;
|
|
5509
5509
|
if (res.url) {
|
|
5510
5510
|
if (res.urlopenmode == 1) {
|
|
5511
|
-
|
|
5511
|
+
util["a" /* default */].win.open(res.url);
|
|
5512
5512
|
return;
|
|
5513
5513
|
} else if (res.urlopenmode == 2) {
|
|
5514
|
-
|
|
5514
|
+
util["a" /* default */].win.open(res.url, '_self');
|
|
5515
5515
|
return;
|
|
5516
5516
|
}
|
|
5517
5517
|
this.$emit('command', res);
|
|
@@ -5808,8 +5808,8 @@ var sub_menu_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5808
5808
|
)
|
|
5809
5809
|
|
|
5810
5810
|
/* harmony default export */ var sub_menu = (sub_menu_component.exports);
|
|
5811
|
-
// 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/apps.vue?vue&type=template&id=
|
|
5812
|
-
var
|
|
5811
|
+
// 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/apps.vue?vue&type=template&id=71b9cb14&scoped=true&
|
|
5812
|
+
var appsvue_type_template_id_71b9cb14_scoped_true_render = function () {
|
|
5813
5813
|
var this$1 = this
|
|
5814
5814
|
var _vm = this
|
|
5815
5815
|
var _h = _vm.$createElement
|
|
@@ -6221,11 +6221,11 @@ var appsvue_type_template_id_37754599_scoped_true_render = function () {
|
|
|
6221
6221
|
]
|
|
6222
6222
|
)
|
|
6223
6223
|
}
|
|
6224
|
-
var
|
|
6225
|
-
|
|
6224
|
+
var appsvue_type_template_id_71b9cb14_scoped_true_staticRenderFns = []
|
|
6225
|
+
appsvue_type_template_id_71b9cb14_scoped_true_render._withStripped = true
|
|
6226
6226
|
|
|
6227
6227
|
|
|
6228
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/apps.vue?vue&type=template&id=
|
|
6228
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/apps.vue?vue&type=template&id=71b9cb14&scoped=true&
|
|
6229
6229
|
|
|
6230
6230
|
// EXTERNAL MODULE: external "throttle-debounce"
|
|
6231
6231
|
var external_throttle_debounce_ = __webpack_require__(11);
|
|
@@ -6426,6 +6426,7 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
6426
6426
|
|
|
6427
6427
|
|
|
6428
6428
|
|
|
6429
|
+
|
|
6429
6430
|
/* harmony default export */ var appsvue_type_script_lang_js_ = ({
|
|
6430
6431
|
name: 'Apps',
|
|
6431
6432
|
components: {},
|
|
@@ -6575,7 +6576,7 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
6575
6576
|
}
|
|
6576
6577
|
},
|
|
6577
6578
|
handleClick: function handleClick(res) {
|
|
6578
|
-
util.ajax({
|
|
6579
|
+
util["a" /* default */].ajax({
|
|
6579
6580
|
url: api["mb" /* recordUserApp */],
|
|
6580
6581
|
params: {
|
|
6581
6582
|
userId: this.user.userId,
|
|
@@ -6615,11 +6616,11 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
6615
6616
|
|
|
6616
6617
|
var apps_component = Object(componentNormalizer["a" /* default */])(
|
|
6617
6618
|
simplicity_appsvue_type_script_lang_js_,
|
|
6618
|
-
|
|
6619
|
-
|
|
6619
|
+
appsvue_type_template_id_71b9cb14_scoped_true_render,
|
|
6620
|
+
appsvue_type_template_id_71b9cb14_scoped_true_staticRenderFns,
|
|
6620
6621
|
false,
|
|
6621
6622
|
null,
|
|
6622
|
-
"
|
|
6623
|
+
"71b9cb14",
|
|
6623
6624
|
null
|
|
6624
6625
|
|
|
6625
6626
|
)
|
|
@@ -6984,19 +6985,19 @@ userinfovue_type_template_id_9a76ed7c_render._withStripped = true
|
|
|
6984
6985
|
handleFormSubmit: function handleFormSubmit() {
|
|
6985
6986
|
var _this2 = this;
|
|
6986
6987
|
|
|
6987
|
-
var initLogin =
|
|
6988
|
+
var initLogin = util["a" /* default */].getStorage('initLogin');
|
|
6988
6989
|
initLogin && (initLogin = JSON.parse(initLogin));
|
|
6989
|
-
|
|
6990
|
+
util["a" /* default */].ajax({
|
|
6990
6991
|
url: api["Zb" /* updateUserInfo */],
|
|
6991
6992
|
params: {
|
|
6992
6993
|
email: this.model.email,
|
|
6993
6994
|
officeTel: this.model.officeTel,
|
|
6994
6995
|
phone: this.model.phone,
|
|
6995
|
-
oldPassword: this.secret && initLogin && initLogin.secret && this.model.oldpassword ?
|
|
6996
|
+
oldPassword: this.secret && initLogin && initLogin.secret && this.model.oldpassword ? util["a" /* default */].esmEncrypt({
|
|
6996
6997
|
data: this.model.oldpassword,
|
|
6997
6998
|
key: initLogin.secret
|
|
6998
6999
|
}) : this.model.oldpassword,
|
|
6999
|
-
password: this.secret && initLogin && initLogin.secret && this.model.password ?
|
|
7000
|
+
password: this.secret && initLogin && initLogin.secret && this.model.password ? util["a" /* default */].esmEncrypt({
|
|
7000
7001
|
data: this.model.password,
|
|
7001
7002
|
key: initLogin.secret
|
|
7002
7003
|
}) : this.model.password
|
|
@@ -7010,12 +7011,12 @@ userinfovue_type_template_id_9a76ed7c_render._withStripped = true
|
|
|
7010
7011
|
closeOnClickModal: false,
|
|
7011
7012
|
type: 'warning'
|
|
7012
7013
|
}).then(function () {
|
|
7013
|
-
var loginPage =
|
|
7014
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
7014
7015
|
try {
|
|
7015
7016
|
if (loginPage) {
|
|
7016
7017
|
var src = void 0;
|
|
7017
|
-
if (!
|
|
7018
|
-
var pathname =
|
|
7018
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
7019
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
7019
7020
|
if (pathname !== '/') {
|
|
7020
7021
|
pathname = pathname.split('/');
|
|
7021
7022
|
pathname.splice(pathname.length - 1);
|
|
@@ -7027,20 +7028,20 @@ userinfovue_type_template_id_9a76ed7c_render._withStripped = true
|
|
|
7027
7028
|
} else {
|
|
7028
7029
|
src = loginPage;
|
|
7029
7030
|
}
|
|
7030
|
-
|
|
7031
|
-
} else if (
|
|
7032
|
-
|
|
7031
|
+
util["a" /* default */].win.top.location.href = src;
|
|
7032
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
7033
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
7033
7034
|
} else {
|
|
7034
|
-
var hash =
|
|
7035
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
7035
7036
|
if (hash) {
|
|
7036
|
-
var len =
|
|
7037
|
-
|
|
7037
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
7038
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
7038
7039
|
} else {
|
|
7039
|
-
|
|
7040
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
7040
7041
|
}
|
|
7041
7042
|
}
|
|
7042
7043
|
} catch (error) {
|
|
7043
|
-
|
|
7044
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
7044
7045
|
}
|
|
7045
7046
|
}).catch(function (e) {});
|
|
7046
7047
|
}
|
|
@@ -7052,7 +7053,7 @@ userinfovue_type_template_id_9a76ed7c_render._withStripped = true
|
|
|
7052
7053
|
},
|
|
7053
7054
|
repassword: function repassword(rule, value, callback) {
|
|
7054
7055
|
if (this.model.oldpassword && this.model.password && value) {
|
|
7055
|
-
|
|
7056
|
+
util["a" /* default */].identical({ value: [value, this.model.password], callback: callback });
|
|
7056
7057
|
} else {
|
|
7057
7058
|
callback();
|
|
7058
7059
|
return true;
|
|
@@ -7209,7 +7210,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7209
7210
|
getData: function getData() {
|
|
7210
7211
|
var _this2 = this;
|
|
7211
7212
|
|
|
7212
|
-
|
|
7213
|
+
util["a" /* default */].ajax({
|
|
7213
7214
|
url: api["ab" /* initUserSet */]
|
|
7214
7215
|
}).then(function (res) {
|
|
7215
7216
|
if (res.rCode === 0) {
|
|
@@ -7249,7 +7250,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7249
7250
|
var _this3 = this;
|
|
7250
7251
|
|
|
7251
7252
|
var notify = this.checked.join(',');
|
|
7252
|
-
|
|
7253
|
+
util["a" /* default */].ajax({
|
|
7253
7254
|
method: 'post',
|
|
7254
7255
|
url: api["Yb" /* updateUserCustomInfo */],
|
|
7255
7256
|
data: {
|
|
@@ -7279,25 +7280,25 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7279
7280
|
var _this4 = this;
|
|
7280
7281
|
|
|
7281
7282
|
if (this.user.identityId !== res.id) {
|
|
7282
|
-
|
|
7283
|
+
util["a" /* default */].ajax({
|
|
7283
7284
|
method: 'post',
|
|
7284
7285
|
url: api["wb" /* switchUserTo */],
|
|
7285
7286
|
data: { userId: res.value }
|
|
7286
7287
|
}).then(function (res) {
|
|
7287
7288
|
if (res.rCode == 0) {
|
|
7288
7289
|
_this4.$emit('close');
|
|
7289
|
-
|
|
7290
|
+
util["a" /* default */].setStorage({
|
|
7290
7291
|
type: _this4.storage,
|
|
7291
7292
|
key: 'userId',
|
|
7292
7293
|
value: res.value
|
|
7293
7294
|
});
|
|
7294
|
-
|
|
7295
|
+
util["a" /* default */].removeStorage(['mainConfig', 'jump']);
|
|
7295
7296
|
_this4.$message({
|
|
7296
7297
|
message: res.msg,
|
|
7297
7298
|
type: 'success',
|
|
7298
7299
|
duration: 500,
|
|
7299
7300
|
onClose: function onClose() {
|
|
7300
|
-
if (
|
|
7301
|
+
if (util["a" /* default */].win.location.href.indexOf('#/main') > -1 || util["a" /* default */].win.location.href.indexOf('/main.html') > -1) {
|
|
7301
7302
|
location.reload();
|
|
7302
7303
|
} else {
|
|
7303
7304
|
_this4.$router.replace('/main');
|
|
@@ -7656,7 +7657,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7656
7657
|
};
|
|
7657
7658
|
},
|
|
7658
7659
|
mounted: function mounted() {
|
|
7659
|
-
|
|
7660
|
+
util["a" /* default */].win.deleteMsg = this.handleRemove;
|
|
7660
7661
|
},
|
|
7661
7662
|
|
|
7662
7663
|
methods: {
|
|
@@ -7666,7 +7667,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7666
7667
|
|
|
7667
7668
|
if (this.pageNum <= this.pageCount) {
|
|
7668
7669
|
this.loading = true;
|
|
7669
|
-
|
|
7670
|
+
util["a" /* default */].ajax({
|
|
7670
7671
|
url: api["xb" /* sysMsgPage */],
|
|
7671
7672
|
params: {
|
|
7672
7673
|
pageNum: reload ? 1 : this.pageNum,
|
|
@@ -7699,7 +7700,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7699
7700
|
handleIgnore: function handleIgnore(res, i) {
|
|
7700
7701
|
var _this2 = this;
|
|
7701
7702
|
|
|
7702
|
-
|
|
7703
|
+
util["a" /* default */].ajax({
|
|
7703
7704
|
url: api["W" /* ignoreSysMsg */],
|
|
7704
7705
|
params: {
|
|
7705
7706
|
id: res.id
|
|
@@ -7719,7 +7720,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7719
7720
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
7720
7721
|
var _this3 = this;
|
|
7721
7722
|
|
|
7722
|
-
|
|
7723
|
+
util["a" /* default */].ajax({
|
|
7723
7724
|
url: api["V" /* ignoreAllSysMsg */]
|
|
7724
7725
|
}).then(function (res) {
|
|
7725
7726
|
_this3.count = 0;
|
|
@@ -7737,7 +7738,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7737
7738
|
this.count -= 1;
|
|
7738
7739
|
this.msgs.splice(index, 1);
|
|
7739
7740
|
if (this.winopen) {
|
|
7740
|
-
|
|
7741
|
+
util["a" /* default */].win.open(item.handlerUrl);
|
|
7741
7742
|
} else {
|
|
7742
7743
|
this.dialog = {
|
|
7743
7744
|
show: true,
|
|
@@ -8064,7 +8065,7 @@ noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
|
8064
8065
|
handleIgnore: function handleIgnore(res, i) {
|
|
8065
8066
|
var _this = this;
|
|
8066
8067
|
|
|
8067
|
-
|
|
8068
|
+
util["a" /* default */].ajax({
|
|
8068
8069
|
url: api["W" /* ignoreSysMsg */],
|
|
8069
8070
|
params: {
|
|
8070
8071
|
id: res.id
|
|
@@ -8083,7 +8084,7 @@ noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
|
8083
8084
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
8084
8085
|
var _this2 = this;
|
|
8085
8086
|
|
|
8086
|
-
|
|
8087
|
+
util["a" /* default */].ajax({
|
|
8087
8088
|
url: api["V" /* ignoreAllSysMsg */]
|
|
8088
8089
|
}).then(function (res) {
|
|
8089
8090
|
_this2.msgs = [];
|
|
@@ -8099,7 +8100,7 @@ noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
|
8099
8100
|
//处理消息
|
|
8100
8101
|
handleMessage: function handleMessage(item, index) {
|
|
8101
8102
|
if (item.urlopenmode === 1 || this.winopen) {
|
|
8102
|
-
|
|
8103
|
+
util["a" /* default */].win.open(item.handlerUrl);
|
|
8103
8104
|
} else {
|
|
8104
8105
|
this.dialog = {
|
|
8105
8106
|
show: true,
|
|
@@ -8335,7 +8336,7 @@ settingsvue_type_template_id_48437ba0_render._withStripped = true
|
|
|
8335
8336
|
res = res.toLowerCase();
|
|
8336
8337
|
// const rgb = util.getRgb(res);
|
|
8337
8338
|
// const luma = 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];
|
|
8338
|
-
|
|
8339
|
+
util["a" /* default */].updateTheme(res);
|
|
8339
8340
|
this.color = res;
|
|
8340
8341
|
this.$emit('change', { type: 'theme', value: res });
|
|
8341
8342
|
//this.setTheme(res);
|
|
@@ -8427,7 +8428,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
8427
8428
|
|
|
8428
8429
|
methods: {
|
|
8429
8430
|
jump: function jump() {
|
|
8430
|
-
var params =
|
|
8431
|
+
var params = util["a" /* default */].getParams({ url: this.url });
|
|
8431
8432
|
this.$router.push({
|
|
8432
8433
|
path: this.path,
|
|
8433
8434
|
query: _extends({}, this.query, params)
|
|
@@ -9240,7 +9241,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9240
9241
|
getTypes: function getTypes() {
|
|
9241
9242
|
var _this2 = this;
|
|
9242
9243
|
|
|
9243
|
-
|
|
9244
|
+
util["a" /* default */].ajax({
|
|
9244
9245
|
url: this.searchType,
|
|
9245
9246
|
method: 'post',
|
|
9246
9247
|
format: false,
|
|
@@ -9332,7 +9333,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9332
9333
|
if (this.active == '0') {
|
|
9333
9334
|
this.isLoading = true;
|
|
9334
9335
|
}
|
|
9335
|
-
|
|
9336
|
+
util["a" /* default */].ajax({
|
|
9336
9337
|
url: obj.dataRequestUrl,
|
|
9337
9338
|
method: 'post',
|
|
9338
9339
|
data: {
|
|
@@ -9747,12 +9748,12 @@ var simplicityvue_type_script_lang_js_extends = Object.assign || function (targe
|
|
|
9747
9748
|
|
|
9748
9749
|
|
|
9749
9750
|
var isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
9750
|
-
var systemMode =
|
|
9751
|
+
var systemMode = util["a" /* default */].win.systemMode || 'default';
|
|
9751
9752
|
var events = [function (tabs, index, that) {
|
|
9752
9753
|
var tab = tabs[index];
|
|
9753
9754
|
|
|
9754
9755
|
if (tab.method == 'iframe') {
|
|
9755
|
-
tabs[index].url =
|
|
9756
|
+
tabs[index].url = util["a" /* default */].handlerUrl(tab.url);
|
|
9756
9757
|
} else {
|
|
9757
9758
|
tabs[index].refresh = false;
|
|
9758
9759
|
that.$nextTick(function () {
|
|
@@ -9761,7 +9762,7 @@ var events = [function (tabs, index, that) {
|
|
|
9761
9762
|
}
|
|
9762
9763
|
return tabs;
|
|
9763
9764
|
}, function (tabs, index, that) {
|
|
9764
|
-
var i =
|
|
9765
|
+
var i = util["a" /* default */].indexOfObj(tabs, that.activeName, 'id');
|
|
9765
9766
|
if (tabs.length == 1) {
|
|
9766
9767
|
that.activeName = '';
|
|
9767
9768
|
} else if (i == index) {
|
|
@@ -9778,14 +9779,14 @@ var events = [function (tabs, index, that) {
|
|
|
9778
9779
|
that.activeName = tab[0].id;
|
|
9779
9780
|
return tab;
|
|
9780
9781
|
}, function (tabs, index, that) {
|
|
9781
|
-
var i =
|
|
9782
|
+
var i = util["a" /* default */].indexOfObj(tabs, that.activeName, 'id');
|
|
9782
9783
|
if (i < index) {
|
|
9783
9784
|
that.activeName = tabs[index].id;
|
|
9784
9785
|
}
|
|
9785
9786
|
tabs.splice(0, index);
|
|
9786
9787
|
return tabs;
|
|
9787
9788
|
}, function (tabs, index, that) {
|
|
9788
|
-
var i =
|
|
9789
|
+
var i = util["a" /* default */].indexOfObj(tabs, that.activeName, 'id');
|
|
9789
9790
|
if (i > index) {
|
|
9790
9791
|
that.activeName = tabs[index].id;
|
|
9791
9792
|
}
|
|
@@ -10077,7 +10078,7 @@ var events = [function (tabs, index, that) {
|
|
|
10077
10078
|
}
|
|
10078
10079
|
},
|
|
10079
10080
|
created: function created() {
|
|
10080
|
-
var mainConfig =
|
|
10081
|
+
var mainConfig = util["a" /* default */].getStorage('mainConfig');
|
|
10081
10082
|
if (mainConfig) {
|
|
10082
10083
|
var results = JSON.parse(mainConfig);
|
|
10083
10084
|
if (Object.keys(results).length) {
|
|
@@ -10156,7 +10157,7 @@ var events = [function (tabs, index, that) {
|
|
|
10156
10157
|
this.initWebSocket();
|
|
10157
10158
|
}
|
|
10158
10159
|
sessionStorage.setItem('mainConfig', JSON.stringify(results));
|
|
10159
|
-
|
|
10160
|
+
util["a" /* default */].setStorage({
|
|
10160
10161
|
type: this.storage,
|
|
10161
10162
|
key: {
|
|
10162
10163
|
depId: results.userModel.depId,
|
|
@@ -10180,23 +10181,23 @@ var events = [function (tabs, index, that) {
|
|
|
10180
10181
|
this.indexUrl = results[i];
|
|
10181
10182
|
}
|
|
10182
10183
|
if (i === 'doorIndex' && results[i]) {
|
|
10183
|
-
|
|
10184
|
+
util["a" /* default */].win.open(results[i]);
|
|
10184
10185
|
this.doorIndex = results[i];
|
|
10185
10186
|
}
|
|
10186
10187
|
if (i === 'subsystemName' && results[i]) {
|
|
10187
10188
|
document.title = results[i];
|
|
10188
10189
|
}
|
|
10189
10190
|
if (i === 'loginPage' && results[i]) {
|
|
10190
|
-
|
|
10191
|
+
util["a" /* default */].setStorage('loginPage', results[i]);
|
|
10191
10192
|
}
|
|
10192
10193
|
if (i === 'sysLogoIco' && results[i]) {
|
|
10193
10194
|
sessionStorage.setItem('sysLogoIco', results[i]);
|
|
10194
|
-
|
|
10195
|
+
util["a" /* default */].setFavicon(results[i]);
|
|
10195
10196
|
}
|
|
10196
10197
|
if (i === 'userStyle' && results[i]) {
|
|
10197
10198
|
if (results[i].color) {
|
|
10198
10199
|
var color = unescape(results[i].color).toLowerCase();
|
|
10199
|
-
if (
|
|
10200
|
+
if (util["a" /* default */].startWith(color, '#')) {
|
|
10200
10201
|
this.themeColor = color;
|
|
10201
10202
|
}
|
|
10202
10203
|
}
|
|
@@ -10206,7 +10207,7 @@ var events = [function (tabs, index, that) {
|
|
|
10206
10207
|
if (i === 'subsystemExtend' && results[i]) {
|
|
10207
10208
|
if (results[i].themeColor) {
|
|
10208
10209
|
var _color = unescape(results[i].themeColor).toLowerCase();
|
|
10209
|
-
if (
|
|
10210
|
+
if (util["a" /* default */].startWith(_color, '#')) {
|
|
10210
10211
|
this.themeColor = _color;
|
|
10211
10212
|
}
|
|
10212
10213
|
}
|
|
@@ -10215,14 +10216,14 @@ var events = [function (tabs, index, that) {
|
|
|
10215
10216
|
}
|
|
10216
10217
|
if (results[i].webPageWatermark) {
|
|
10217
10218
|
try {
|
|
10218
|
-
|
|
10219
|
-
|
|
10219
|
+
util["a" /* default */].win.top.webPageWatermark = results[i].webPageWatermark;
|
|
10220
|
+
util["a" /* default */].watermark(results[i].webPageWatermark);
|
|
10220
10221
|
} catch (error) {
|
|
10221
|
-
|
|
10222
|
+
util["a" /* default */].win.postMessage({ type: 2, content: results[i].webPageWatermark }, '*');
|
|
10222
10223
|
}
|
|
10223
10224
|
}
|
|
10224
10225
|
if (results[i].loginPage) {
|
|
10225
|
-
|
|
10226
|
+
util["a" /* default */].setStorage('loginPage', results[i].loginPage);
|
|
10226
10227
|
}
|
|
10227
10228
|
if (results[i].aiConfig) {
|
|
10228
10229
|
if (typeof results[i].aiConfig == 'string') {
|
|
@@ -10244,7 +10245,7 @@ var events = [function (tabs, index, that) {
|
|
|
10244
10245
|
}
|
|
10245
10246
|
if (i === 'userModel' && results[i]) {
|
|
10246
10247
|
if (results[i].userHeadUrl) {
|
|
10247
|
-
results[i].userHeadUrl =
|
|
10248
|
+
results[i].userHeadUrl = util["a" /* default */].jointUrl({
|
|
10248
10249
|
url: results[i].userHeadUrl,
|
|
10249
10250
|
reg: '/main2'
|
|
10250
10251
|
});
|
|
@@ -10268,8 +10269,8 @@ var events = [function (tabs, index, that) {
|
|
|
10268
10269
|
getApplications: function getApplications() {
|
|
10269
10270
|
var _this = this;
|
|
10270
10271
|
|
|
10271
|
-
var loading =
|
|
10272
|
-
|
|
10272
|
+
var loading = util["a" /* default */].loading('', '加载中...');
|
|
10273
|
+
util["a" /* default */].ajax({
|
|
10273
10274
|
url: this.appsUrl,
|
|
10274
10275
|
defaults: true
|
|
10275
10276
|
}).then(function (res) {
|
|
@@ -10316,7 +10317,7 @@ var events = [function (tabs, index, that) {
|
|
|
10316
10317
|
getMenus: function getMenus(loading) {
|
|
10317
10318
|
var _this2 = this;
|
|
10318
10319
|
|
|
10319
|
-
|
|
10320
|
+
util["a" /* default */].ajax({ url: this._menuUrl }).then(function (res) {
|
|
10320
10321
|
loading.close();
|
|
10321
10322
|
if (res.rCode === 0) {
|
|
10322
10323
|
if (res.results && res.results.length) {
|
|
@@ -10456,7 +10457,7 @@ var events = [function (tabs, index, that) {
|
|
|
10456
10457
|
res.method = 'router';
|
|
10457
10458
|
res.path = path;
|
|
10458
10459
|
} else {
|
|
10459
|
-
var urlopenmode =
|
|
10460
|
+
var urlopenmode = util["a" /* default */].getParams({
|
|
10460
10461
|
url: url,
|
|
10461
10462
|
name: 'urlopenmode'
|
|
10462
10463
|
});
|
|
@@ -10605,7 +10606,7 @@ var events = [function (tabs, index, that) {
|
|
|
10605
10606
|
initWebSocket: function initWebSocket() {
|
|
10606
10607
|
var _this4 = this;
|
|
10607
10608
|
|
|
10608
|
-
this.webSocket =
|
|
10609
|
+
this.webSocket = util["a" /* default */].socket({
|
|
10609
10610
|
url: api["fc" /* wss */],
|
|
10610
10611
|
take: api["Vb" /* topic */],
|
|
10611
10612
|
success: function success(res) {
|
|
@@ -10640,8 +10641,8 @@ var events = [function (tabs, index, that) {
|
|
|
10640
10641
|
if (_this4.$eventBus) {
|
|
10641
10642
|
_this4.$eventBus.$emit('websocket', data);
|
|
10642
10643
|
}
|
|
10643
|
-
if (
|
|
10644
|
-
|
|
10644
|
+
if (util["a" /* default */].win.eventBus) {
|
|
10645
|
+
util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
10645
10646
|
}
|
|
10646
10647
|
}
|
|
10647
10648
|
});
|
|
@@ -10676,7 +10677,7 @@ var events = [function (tabs, index, that) {
|
|
|
10676
10677
|
if (res.permission === false) {
|
|
10677
10678
|
return false;
|
|
10678
10679
|
}
|
|
10679
|
-
var i =
|
|
10680
|
+
var i = util["a" /* default */].indexOfObj(this.newApps, res, 'id');
|
|
10680
10681
|
if (i == -1) {
|
|
10681
10682
|
this.newApps.push(res);
|
|
10682
10683
|
}
|
|
@@ -10705,24 +10706,24 @@ var events = [function (tabs, index, that) {
|
|
|
10705
10706
|
if (res.url) {
|
|
10706
10707
|
if (res.urlopenmode == 1 || res.openModel == 1) {
|
|
10707
10708
|
set = false;
|
|
10708
|
-
|
|
10709
|
+
util["a" /* default */].win.open(res.url);
|
|
10709
10710
|
} else if (res.urlopenmode == 2 || res.openModel == 2) {
|
|
10710
10711
|
set = false;
|
|
10711
|
-
|
|
10712
|
+
util["a" /* default */].win.open(res.url, '_self');
|
|
10712
10713
|
} else {
|
|
10713
|
-
var i =
|
|
10714
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, res, 'id');
|
|
10714
10715
|
this.activeName = res.id;
|
|
10715
10716
|
if (i == -1) {
|
|
10716
10717
|
var obj = this.getMenu(this.menus, res.url);
|
|
10717
10718
|
if (obj) {
|
|
10718
|
-
var n =
|
|
10719
|
+
var n = util["a" /* default */].indexOfObj(this.tabs, obj, 'id');
|
|
10719
10720
|
if (n == -1) {
|
|
10720
10721
|
var tab = this.setIframeType(obj);
|
|
10721
10722
|
this.tabs.push(tab);
|
|
10722
10723
|
this.activeName = tab.id;
|
|
10723
10724
|
} else {
|
|
10724
10725
|
if (obj.method == 'iframe') {
|
|
10725
|
-
obj.url =
|
|
10726
|
+
obj.url = util["a" /* default */].handlerUrl(obj.url);
|
|
10726
10727
|
}
|
|
10727
10728
|
}
|
|
10728
10729
|
} else {
|
|
@@ -10732,7 +10733,7 @@ var events = [function (tabs, index, that) {
|
|
|
10732
10733
|
}
|
|
10733
10734
|
} else {
|
|
10734
10735
|
if (res.method == 'iframe') {
|
|
10735
|
-
res.url =
|
|
10736
|
+
res.url = util["a" /* default */].handlerUrl(res.url);
|
|
10736
10737
|
}
|
|
10737
10738
|
}
|
|
10738
10739
|
}
|
|
@@ -10750,14 +10751,14 @@ var events = [function (tabs, index, that) {
|
|
|
10750
10751
|
this.showMenu = subMenus !== false;
|
|
10751
10752
|
this.showApps = false;
|
|
10752
10753
|
if (subMenus && subMenus.url) {
|
|
10753
|
-
var _i =
|
|
10754
|
+
var _i = util["a" /* default */].indexOfObj(this.tabs, subMenus, 'id');
|
|
10754
10755
|
this.activeName = subMenus.id;
|
|
10755
10756
|
if (_i == -1) {
|
|
10756
10757
|
var _tab6 = this.setIframeType(subMenus);
|
|
10757
10758
|
this.tabs.push(_tab6);
|
|
10758
10759
|
} else {
|
|
10759
10760
|
if (subMenus.method == 'iframe') {
|
|
10760
|
-
subMenus.url =
|
|
10761
|
+
subMenus.url = util["a" /* default */].handlerUrl(subMenus.url);
|
|
10761
10762
|
}
|
|
10762
10763
|
}
|
|
10763
10764
|
}
|
|
@@ -10779,7 +10780,7 @@ var events = [function (tabs, index, that) {
|
|
|
10779
10780
|
this.drawer.mounted = res.mounted;
|
|
10780
10781
|
this.drawer.url = res.url;
|
|
10781
10782
|
if (res.mounted === 'wujie') {
|
|
10782
|
-
this.drawer.name = res.name ||
|
|
10783
|
+
this.drawer.name = res.name || util["a" /* default */].uuid();
|
|
10783
10784
|
}
|
|
10784
10785
|
},
|
|
10785
10786
|
|
|
@@ -10800,7 +10801,7 @@ var events = [function (tabs, index, that) {
|
|
|
10800
10801
|
handlerClickMenu: function handlerClickMenu(res) {
|
|
10801
10802
|
var _this5 = this;
|
|
10802
10803
|
|
|
10803
|
-
|
|
10804
|
+
util["a" /* default */].ajax({
|
|
10804
10805
|
url: api["mb" /* recordUserApp */],
|
|
10805
10806
|
params: {
|
|
10806
10807
|
userId: this.user.userId,
|
|
@@ -10809,7 +10810,7 @@ var events = [function (tabs, index, that) {
|
|
|
10809
10810
|
}).then(function () {}).catch(function () {});
|
|
10810
10811
|
this.showMsg = false;
|
|
10811
10812
|
this.showSet = false;
|
|
10812
|
-
var i =
|
|
10813
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, res, 'id');
|
|
10813
10814
|
if (i == -1) {
|
|
10814
10815
|
var tab = this.setIframeType(res);
|
|
10815
10816
|
this.tabs.push(tab);
|
|
@@ -10818,7 +10819,7 @@ var events = [function (tabs, index, that) {
|
|
|
10818
10819
|
var _tab7 = this.tabs[i];
|
|
10819
10820
|
if (_tab7.method === 'iframe') {
|
|
10820
10821
|
this.activeName = res.id;
|
|
10821
|
-
this.$set(this.tabs[i], 'url',
|
|
10822
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url));
|
|
10822
10823
|
} else {
|
|
10823
10824
|
this.$set(this.tabs[i], 'refresh', false);
|
|
10824
10825
|
if (_tab7.method === 'wujie') {
|
|
@@ -10880,14 +10881,14 @@ var events = [function (tabs, index, that) {
|
|
|
10880
10881
|
handleRefresh: function handleRefresh() {
|
|
10881
10882
|
var _this6 = this;
|
|
10882
10883
|
|
|
10883
|
-
var i =
|
|
10884
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
10884
10885
|
var tab = this.tabs[i];
|
|
10885
10886
|
if (tab.method === 'iframe') {
|
|
10886
|
-
tab.url =
|
|
10887
|
+
tab.url = util["a" /* default */].handlerUrl(tab.url);
|
|
10887
10888
|
} else {
|
|
10888
10889
|
var _tab8 = this.tabs[i];
|
|
10889
10890
|
if (_tab8.method === 'iframe') {
|
|
10890
|
-
this.$set(this.tabs[i], 'url',
|
|
10891
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab8.url));
|
|
10891
10892
|
} else {
|
|
10892
10893
|
this.$set(this.tabs[i], 'refresh', false);
|
|
10893
10894
|
this.$nextTick(function () {
|
|
@@ -10904,7 +10905,7 @@ var events = [function (tabs, index, that) {
|
|
|
10904
10905
|
**/
|
|
10905
10906
|
handleRemove: function handleRemove(name) {
|
|
10906
10907
|
var len = this.tabs.length - 1;
|
|
10907
|
-
var i =
|
|
10908
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, name, 'id,code,appCode');
|
|
10908
10909
|
if (i > -1) {
|
|
10909
10910
|
this.tabs.splice(i, 1);
|
|
10910
10911
|
if (this.tabs.length == 0) {
|
|
@@ -10982,9 +10983,9 @@ var events = [function (tabs, index, that) {
|
|
|
10982
10983
|
if (event) {
|
|
10983
10984
|
event();
|
|
10984
10985
|
} else if (open) {
|
|
10985
|
-
|
|
10986
|
+
util["a" /* default */].win.open(open);
|
|
10986
10987
|
} else if (link) {
|
|
10987
|
-
|
|
10988
|
+
util["a" /* default */].win.open(link, '_self');
|
|
10988
10989
|
} else {
|
|
10989
10990
|
switch (type) {
|
|
10990
10991
|
case 'quit':
|
|
@@ -11004,20 +11005,20 @@ var events = [function (tabs, index, that) {
|
|
|
11004
11005
|
this.showSet = false;
|
|
11005
11006
|
break;
|
|
11006
11007
|
case 'index':
|
|
11007
|
-
|
|
11008
|
+
util["a" /* default */].win.open(this.doorIndex, '_self');
|
|
11008
11009
|
break;
|
|
11009
11010
|
case 'set':
|
|
11010
11011
|
this.showSet = !this.showSet;
|
|
11011
11012
|
this.showMsg = false;
|
|
11012
11013
|
break;
|
|
11013
11014
|
case 'home':
|
|
11014
|
-
var i =
|
|
11015
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, this.homePage.id, 'id');
|
|
11015
11016
|
if (i == -1) {
|
|
11016
11017
|
this.tabs.unshift(this.homePage);
|
|
11017
11018
|
} else {
|
|
11018
11019
|
var tab = this.tabs[i];
|
|
11019
11020
|
if (tab.method === 'iframe') {
|
|
11020
|
-
this.$set(this.tabs[i], 'url',
|
|
11021
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(tab.url));
|
|
11021
11022
|
} else {
|
|
11022
11023
|
this.$set(this.tabs[i], 'refresh', false);
|
|
11023
11024
|
this.$nextTick(function () {
|
|
@@ -11039,7 +11040,7 @@ var events = [function (tabs, index, that) {
|
|
|
11039
11040
|
this.showSet = false;
|
|
11040
11041
|
break;
|
|
11041
11042
|
case 'goView':
|
|
11042
|
-
|
|
11043
|
+
util["a" /* default */].win.open(res.path, '_blank');
|
|
11043
11044
|
break;
|
|
11044
11045
|
}
|
|
11045
11046
|
}
|
|
@@ -11059,18 +11060,18 @@ var events = [function (tabs, index, that) {
|
|
|
11059
11060
|
cancelButtonText: '取消',
|
|
11060
11061
|
type: 'warning'
|
|
11061
11062
|
}).then(function () {
|
|
11062
|
-
|
|
11063
|
+
util["a" /* default */].ajax({ method: 'post', url: api["eb" /* logout */] }).then(function (res) {
|
|
11063
11064
|
if (res.rCode == 0) {
|
|
11064
|
-
|
|
11065
|
+
util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
11065
11066
|
if (_this8.onQuit && typeof _this8.onQuit === 'function') {
|
|
11066
11067
|
_this8.onQuit();
|
|
11067
11068
|
} else {
|
|
11068
11069
|
try {
|
|
11069
|
-
var loginPage =
|
|
11070
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
11070
11071
|
if (loginPage) {
|
|
11071
11072
|
var src = void 0;
|
|
11072
|
-
if (!
|
|
11073
|
-
var pathname =
|
|
11073
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
11074
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
11074
11075
|
if (pathname !== '/') {
|
|
11075
11076
|
pathname = pathname.split('/');
|
|
11076
11077
|
pathname.splice(pathname.length - 1);
|
|
@@ -11082,20 +11083,20 @@ var events = [function (tabs, index, that) {
|
|
|
11082
11083
|
} else {
|
|
11083
11084
|
src = loginPage;
|
|
11084
11085
|
}
|
|
11085
|
-
|
|
11086
|
-
} else if (
|
|
11087
|
-
|
|
11086
|
+
util["a" /* default */].win.top.location.href = src;
|
|
11087
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
11088
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
11088
11089
|
} else {
|
|
11089
|
-
var hash =
|
|
11090
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
11090
11091
|
if (hash) {
|
|
11091
|
-
var len =
|
|
11092
|
-
|
|
11092
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
11093
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
11093
11094
|
} else {
|
|
11094
|
-
|
|
11095
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
11095
11096
|
}
|
|
11096
11097
|
}
|
|
11097
11098
|
} catch (error) {
|
|
11098
|
-
|
|
11099
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
11099
11100
|
}
|
|
11100
11101
|
}
|
|
11101
11102
|
}
|
|
@@ -11167,8 +11168,8 @@ var events = [function (tabs, index, that) {
|
|
|
11167
11168
|
}
|
|
11168
11169
|
var obj = this.getMenu(this.menus, apps[apps.length - 1]);
|
|
11169
11170
|
if (obj) {
|
|
11170
|
-
var i =
|
|
11171
|
-
var n =
|
|
11171
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, obj, 'id,code,appCode');
|
|
11172
|
+
var n = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
11172
11173
|
var old = this.activeName;
|
|
11173
11174
|
this.activeName = obj.id;
|
|
11174
11175
|
if (i == -1) {
|
|
@@ -11177,7 +11178,7 @@ var events = [function (tabs, index, that) {
|
|
|
11177
11178
|
} else {
|
|
11178
11179
|
var _tab9 = this.tabs[i];
|
|
11179
11180
|
if (_tab9.method === 'iframe') {
|
|
11180
|
-
this.$set(this.tabs[i], 'url',
|
|
11181
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab9.url));
|
|
11181
11182
|
} else {
|
|
11182
11183
|
this.$set(this.tabs[i], 'refresh', false);
|
|
11183
11184
|
this.$nextTick(function () {
|
|
@@ -11189,7 +11190,7 @@ var events = [function (tabs, index, that) {
|
|
|
11189
11190
|
if (close === old) {
|
|
11190
11191
|
this.tabs.splice(n, 0);
|
|
11191
11192
|
} else {
|
|
11192
|
-
var d =
|
|
11193
|
+
var d = util["a" /* default */].indexOfObj(this.tabs, close, 'id,code,appCode');
|
|
11193
11194
|
if (d > -1) {
|
|
11194
11195
|
this.tabs.splice(d, 0);
|
|
11195
11196
|
}
|
|
@@ -11204,7 +11205,7 @@ var events = [function (tabs, index, that) {
|
|
|
11204
11205
|
handleListener: function handleListener() {
|
|
11205
11206
|
var _this11 = this;
|
|
11206
11207
|
|
|
11207
|
-
|
|
11208
|
+
util["a" /* default */].win.addEventListener('message', function (e) {
|
|
11208
11209
|
var msg = e.data;
|
|
11209
11210
|
if (msg.key == 'jump_Menu') {
|
|
11210
11211
|
var res = msg.data1;
|
|
@@ -11911,12 +11912,12 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11911
11912
|
|
|
11912
11913
|
methods: {
|
|
11913
11914
|
getQrcode: function getQrcode() {
|
|
11914
|
-
this.qrcode =
|
|
11915
|
+
this.qrcode = util["a" /* default */].getStorage('host') + this.userScanBindImgUrl + '&_tt=' + Math.random().toString().split('.')[1];
|
|
11915
11916
|
},
|
|
11916
11917
|
getData: function getData() {
|
|
11917
11918
|
var _this2 = this;
|
|
11918
11919
|
|
|
11919
|
-
|
|
11920
|
+
util["a" /* default */].ajax({
|
|
11920
11921
|
url: api["ab" /* initUserSet */]
|
|
11921
11922
|
}).then(function (res) {
|
|
11922
11923
|
if (res.rCode === 0) {
|
|
@@ -11937,7 +11938,7 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11937
11938
|
// this.values.officeTel = results.simpleUserInfo.officeTel;
|
|
11938
11939
|
if (results.userScanBindImgUrl) {
|
|
11939
11940
|
_this2.userScanBindImgUrl = results.userScanBindImgUrl;
|
|
11940
|
-
_this2.qrcode =
|
|
11941
|
+
_this2.qrcode = util["a" /* default */].getStorage('host') + results.userScanBindImgUrl;
|
|
11941
11942
|
} else {
|
|
11942
11943
|
_this2.qrcode = '';
|
|
11943
11944
|
}
|
|
@@ -11966,20 +11967,20 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11966
11967
|
|
|
11967
11968
|
switch (type) {
|
|
11968
11969
|
case 'job':
|
|
11969
|
-
|
|
11970
|
+
util["a" /* default */].ajax({ url: api["wb" /* switchUserTo */], params: { userId: value.value } }).then(function (res) {
|
|
11970
11971
|
if (res.rCode == 0) {
|
|
11971
|
-
|
|
11972
|
+
util["a" /* default */].setStorage({
|
|
11972
11973
|
type: _this3.storage,
|
|
11973
11974
|
key: 'userId',
|
|
11974
11975
|
value: value.value
|
|
11975
11976
|
});
|
|
11976
|
-
|
|
11977
|
+
util["a" /* default */].removeStorage(['mainConfig', 'jump']);
|
|
11977
11978
|
_this3.$message({
|
|
11978
11979
|
message: res.msg,
|
|
11979
11980
|
type: 'success',
|
|
11980
11981
|
duration: 500,
|
|
11981
11982
|
onClose: function onClose() {
|
|
11982
|
-
if (
|
|
11983
|
+
if (util["a" /* default */].win.location.href.indexOf('#/main') > -1 || util["a" /* default */].win.location.href.indexOf('/main.html') > -1) {
|
|
11983
11984
|
location.reload();
|
|
11984
11985
|
} else {
|
|
11985
11986
|
_this3.$router.replace('/main');
|
|
@@ -12004,19 +12005,19 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
12004
12005
|
handleFormSubmit: function handleFormSubmit() {
|
|
12005
12006
|
var _this4 = this;
|
|
12006
12007
|
|
|
12007
|
-
var initLogin =
|
|
12008
|
+
var initLogin = util["a" /* default */].getStorage('initLogin');
|
|
12008
12009
|
initLogin && (initLogin = JSON.parse(initLogin));
|
|
12009
|
-
|
|
12010
|
+
util["a" /* default */].ajax({
|
|
12010
12011
|
url: api["Zb" /* updateUserInfo */],
|
|
12011
12012
|
params: {
|
|
12012
12013
|
email: this.values.email,
|
|
12013
12014
|
officeTel: this.values.officeTel,
|
|
12014
12015
|
phone: this.values.phone,
|
|
12015
|
-
oldPassword: this.secret && initLogin && initLogin.secret && this.values.oldpassword ?
|
|
12016
|
+
oldPassword: this.secret && initLogin && initLogin.secret && this.values.oldpassword ? util["a" /* default */].esmEncrypt({
|
|
12016
12017
|
data: this.values.oldpassword,
|
|
12017
12018
|
key: initLogin.secret
|
|
12018
12019
|
}) : this.values.oldpassword,
|
|
12019
|
-
password: this.secret && initLogin && initLogin.secret && this.values.password ?
|
|
12020
|
+
password: this.secret && initLogin && initLogin.secret && this.values.password ? util["a" /* default */].esmEncrypt({
|
|
12020
12021
|
data: this.values.password,
|
|
12021
12022
|
key: initLogin.secret
|
|
12022
12023
|
}) : this.values.password
|
|
@@ -12030,12 +12031,12 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
12030
12031
|
closeOnClickModal: false,
|
|
12031
12032
|
type: 'warning'
|
|
12032
12033
|
}).then(function () {
|
|
12033
|
-
var loginPage =
|
|
12034
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
12034
12035
|
try {
|
|
12035
12036
|
if (loginPage) {
|
|
12036
12037
|
var src = void 0;
|
|
12037
|
-
if (!
|
|
12038
|
-
var pathname =
|
|
12038
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
12039
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
12039
12040
|
if (pathname !== '/') {
|
|
12040
12041
|
pathname = pathname.split('/');
|
|
12041
12042
|
pathname.splice(pathname.length - 1);
|
|
@@ -12047,27 +12048,27 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
12047
12048
|
} else {
|
|
12048
12049
|
src = loginPage;
|
|
12049
12050
|
}
|
|
12050
|
-
|
|
12051
|
-
} else if (
|
|
12052
|
-
|
|
12051
|
+
util["a" /* default */].win.top.location.href = src;
|
|
12052
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
12053
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
12053
12054
|
} else {
|
|
12054
|
-
var hash =
|
|
12055
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
12055
12056
|
if (hash) {
|
|
12056
|
-
var len =
|
|
12057
|
-
|
|
12057
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
12058
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
12058
12059
|
} else {
|
|
12059
|
-
|
|
12060
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
12060
12061
|
}
|
|
12061
12062
|
}
|
|
12062
12063
|
} catch (error) {
|
|
12063
|
-
|
|
12064
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
12064
12065
|
}
|
|
12065
12066
|
}).catch(function (e) {});
|
|
12066
12067
|
} else {
|
|
12067
12068
|
_this4.$emit('reGetConfig');
|
|
12068
12069
|
var notify = _this4.values.notify.sort().join(',');
|
|
12069
12070
|
if (notify != _this4.notify.split(',').sort().join(',')) {
|
|
12070
|
-
|
|
12071
|
+
util["a" /* default */].ajax({
|
|
12071
12072
|
url: api["Yb" /* updateUserCustomInfo */],
|
|
12072
12073
|
params: {
|
|
12073
12074
|
notify: notify
|
|
@@ -12096,7 +12097,7 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
12096
12097
|
},
|
|
12097
12098
|
repassword: function repassword(rule, value, callback) {
|
|
12098
12099
|
if (this.values.oldpassword && this.values.password && value) {
|
|
12099
|
-
|
|
12100
|
+
util["a" /* default */].identical({ value: [value, this.values.password], callback: callback });
|
|
12100
12101
|
} else {
|
|
12101
12102
|
callback();
|
|
12102
12103
|
return true;
|
|
@@ -12589,7 +12590,7 @@ settingsvue_type_template_id_2d7a058d_render._withStripped = true
|
|
|
12589
12590
|
res = res.toLowerCase();
|
|
12590
12591
|
// const rgb = util.getRgb(res);
|
|
12591
12592
|
// const luma = 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];
|
|
12592
|
-
|
|
12593
|
+
util["a" /* default */].updateTheme(res);
|
|
12593
12594
|
this.color = res;
|
|
12594
12595
|
this.$emit('change', { type: 'theme', value: res });
|
|
12595
12596
|
//this.setTheme(res);
|
|
@@ -12898,7 +12899,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12898
12899
|
};
|
|
12899
12900
|
},
|
|
12900
12901
|
mounted: function mounted() {
|
|
12901
|
-
|
|
12902
|
+
util["a" /* default */].win.deleteMsg = this.handleRemove;
|
|
12902
12903
|
},
|
|
12903
12904
|
|
|
12904
12905
|
methods: {
|
|
@@ -12908,7 +12909,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12908
12909
|
|
|
12909
12910
|
if (this.pageNum <= this.pageCount) {
|
|
12910
12911
|
this.loading = true;
|
|
12911
|
-
|
|
12912
|
+
util["a" /* default */].ajax({
|
|
12912
12913
|
url: api["xb" /* sysMsgPage */],
|
|
12913
12914
|
params: {
|
|
12914
12915
|
pageNum: reload ? 1 : this.pageNum,
|
|
@@ -12941,7 +12942,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12941
12942
|
handleIgnore: function handleIgnore(res, i) {
|
|
12942
12943
|
var _this2 = this;
|
|
12943
12944
|
|
|
12944
|
-
|
|
12945
|
+
util["a" /* default */].ajax({
|
|
12945
12946
|
url: api["W" /* ignoreSysMsg */],
|
|
12946
12947
|
params: {
|
|
12947
12948
|
id: res.id
|
|
@@ -12961,7 +12962,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12961
12962
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
12962
12963
|
var _this3 = this;
|
|
12963
12964
|
|
|
12964
|
-
|
|
12965
|
+
util["a" /* default */].ajax({
|
|
12965
12966
|
url: api["V" /* ignoreAllSysMsg */]
|
|
12966
12967
|
}).then(function (res) {
|
|
12967
12968
|
_this3.count = 0;
|
|
@@ -12979,7 +12980,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12979
12980
|
this.count -= 1;
|
|
12980
12981
|
this.msgs.splice(index, 1);
|
|
12981
12982
|
if (this.winopen) {
|
|
12982
|
-
|
|
12983
|
+
util["a" /* default */].win.open(item.handlerUrl);
|
|
12983
12984
|
} else {
|
|
12984
12985
|
this.dialog = {
|
|
12985
12986
|
show: true,
|
|
@@ -13281,7 +13282,7 @@ noticevue_type_template_id_2f7f31eb_render._withStripped = true
|
|
|
13281
13282
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
13282
13283
|
var _this = this;
|
|
13283
13284
|
|
|
13284
|
-
|
|
13285
|
+
util["a" /* default */].ajax({
|
|
13285
13286
|
url: api["V" /* ignoreAllSysMsg */]
|
|
13286
13287
|
}).then(function (res) {
|
|
13287
13288
|
_this.count = 0;
|
|
@@ -13298,7 +13299,7 @@ noticevue_type_template_id_2f7f31eb_render._withStripped = true
|
|
|
13298
13299
|
//处理消息
|
|
13299
13300
|
handleMessage: function handleMessage(item, index) {
|
|
13300
13301
|
if (item.urlopenmode === 1 || this.winopen) {
|
|
13301
|
-
|
|
13302
|
+
util["a" /* default */].win.open(item.handlerUrl);
|
|
13302
13303
|
} else {
|
|
13303
13304
|
this.dialog = {
|
|
13304
13305
|
show: true,
|
|
@@ -13564,8 +13565,8 @@ var defaultvue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
13564
13565
|
|
|
13565
13566
|
|
|
13566
13567
|
var defaultvue_type_script_lang_js_isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
13567
|
-
var log =
|
|
13568
|
-
var appCode =
|
|
13568
|
+
var log = util["a" /* default */].getParams('console');
|
|
13569
|
+
var appCode = util["a" /* default */].getParams('appCode') || util["a" /* default */].getParams('appcode');
|
|
13569
13570
|
/* harmony default export */ var defaultvue_type_script_lang_js_ = ({
|
|
13570
13571
|
name: 'MainDefault',
|
|
13571
13572
|
inheritAttrs: false,
|
|
@@ -13648,7 +13649,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13648
13649
|
storage: {
|
|
13649
13650
|
type: String,
|
|
13650
13651
|
default: function _default() {
|
|
13651
|
-
return
|
|
13652
|
+
return util["a" /* default */].getStorage('storage');
|
|
13652
13653
|
}
|
|
13653
13654
|
},
|
|
13654
13655
|
//是否启用子应用菜单接口
|
|
@@ -13757,11 +13758,11 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13757
13758
|
return this.isSide !== null ? this.isSide : this.sideNav;
|
|
13758
13759
|
},
|
|
13759
13760
|
isHomePage: function isHomePage() {
|
|
13760
|
-
if (
|
|
13761
|
+
if (util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId')) {
|
|
13761
13762
|
return false;
|
|
13762
13763
|
}
|
|
13763
|
-
if (
|
|
13764
|
-
var hash =
|
|
13764
|
+
if (util["a" /* default */].getStorage('mainConfig')) {
|
|
13765
|
+
var hash = util["a" /* default */].win.location.hash;
|
|
13765
13766
|
if (hash && hash.split('?')[0] !== '#/' && hash.split('?')[0] !== '#/main') {
|
|
13766
13767
|
return false;
|
|
13767
13768
|
}
|
|
@@ -13864,7 +13865,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13864
13865
|
handler: function handler(val) {
|
|
13865
13866
|
if (this.set) {
|
|
13866
13867
|
localStorage.setItem('theme', val);
|
|
13867
|
-
|
|
13868
|
+
util["a" /* default */].updateTheme(val);
|
|
13868
13869
|
}
|
|
13869
13870
|
}
|
|
13870
13871
|
}
|
|
@@ -13936,7 +13937,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13936
13937
|
//显示设置面板
|
|
13937
13938
|
showSet: false,
|
|
13938
13939
|
//当前设置的主题
|
|
13939
|
-
color:
|
|
13940
|
+
color: util["a" /* default */].getStorage('theme') ? util["a" /* default */].getStorage('theme') : this.theme,
|
|
13940
13941
|
//显示用户信息
|
|
13941
13942
|
showUserInfo: false,
|
|
13942
13943
|
userInfoContents: undefined,
|
|
@@ -13966,15 +13967,15 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13966
13967
|
};
|
|
13967
13968
|
},
|
|
13968
13969
|
created: function created() {
|
|
13969
|
-
var params =
|
|
13970
|
+
var params = util["a" /* default */].getParams() || {};
|
|
13970
13971
|
if (typeof this.loadHomePage === 'string') {
|
|
13971
13972
|
this.homePage = this.loadHomePage;
|
|
13972
13973
|
}
|
|
13973
13974
|
this.isHeader = params.header;
|
|
13974
13975
|
var sysLogoIco = sessionStorage.getItem('sysLogoIco');
|
|
13975
|
-
sysLogoIco &&
|
|
13976
|
+
sysLogoIco && util["a" /* default */].setFavicon(sysLogoIco);
|
|
13976
13977
|
|
|
13977
|
-
var mainConfig =
|
|
13978
|
+
var mainConfig = util["a" /* default */].getStorage('mainConfig');
|
|
13978
13979
|
if (mainConfig) {
|
|
13979
13980
|
var results = JSON.parse(mainConfig);
|
|
13980
13981
|
if (Object.keys(results).length) {
|
|
@@ -13985,12 +13986,12 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13985
13986
|
},
|
|
13986
13987
|
mounted: function mounted() {
|
|
13987
13988
|
this.handleListener();
|
|
13988
|
-
|
|
13989
|
+
util["a" /* default */].win.addEventListener('popstate', this.stateHandle, false);
|
|
13989
13990
|
},
|
|
13990
13991
|
|
|
13991
13992
|
methods: {
|
|
13992
13993
|
stateHandle: function stateHandle() {
|
|
13993
|
-
|
|
13994
|
+
util["a" /* default */].win.location.reload();
|
|
13994
13995
|
},
|
|
13995
13996
|
menuSuccess: function menuSuccess(res) {
|
|
13996
13997
|
this.menuType = 'custom';
|
|
@@ -14029,7 +14030,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14029
14030
|
renderMenu: function renderMenu() {
|
|
14030
14031
|
if (this.data !== undefined && this.data.length) {
|
|
14031
14032
|
this.menus = JSON.parse(JSON.stringify(this.data));
|
|
14032
|
-
var applicationid =
|
|
14033
|
+
var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
|
|
14033
14034
|
if (applicationid) {
|
|
14034
14035
|
var ids = this.getId(this.menus, applicationid);
|
|
14035
14036
|
if (ids) {
|
|
@@ -14044,13 +14045,13 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14044
14045
|
//this.navIds = ids;
|
|
14045
14046
|
this.setTitle(_ids[0]);
|
|
14046
14047
|
}
|
|
14047
|
-
} else if (
|
|
14048
|
-
var hash =
|
|
14048
|
+
} else if (util["a" /* default */].win.location.hash) {
|
|
14049
|
+
var hash = util["a" /* default */].win.location.hash;
|
|
14049
14050
|
if (hash) {
|
|
14050
14051
|
hash = hash.split('?')[0];
|
|
14051
14052
|
}
|
|
14052
14053
|
if (hash !== '#/' && hash !== '#/main') {
|
|
14053
|
-
var _ids2 = this.getId(this.menus,
|
|
14054
|
+
var _ids2 = this.getId(this.menus, util["a" /* default */].win.location.hash);
|
|
14054
14055
|
if (_ids2) {
|
|
14055
14056
|
this.defaultActive = _ids2;
|
|
14056
14057
|
//this.navIds = ids;
|
|
@@ -14076,7 +14077,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14076
14077
|
if (!color) {
|
|
14077
14078
|
return;
|
|
14078
14079
|
}
|
|
14079
|
-
|
|
14080
|
+
util["a" /* default */].ajax({
|
|
14080
14081
|
url: api["Yb" /* updateUserCustomInfo */],
|
|
14081
14082
|
params: { color: escape(color.toLowerCase()) },
|
|
14082
14083
|
data: { color: escape(color.toLowerCase()) }
|
|
@@ -14084,7 +14085,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14084
14085
|
if (res.rCode === 0) {
|
|
14085
14086
|
_this.color = color;
|
|
14086
14087
|
localStorage.setItem('theme', color);
|
|
14087
|
-
var _mainConfig = JSON.parse(
|
|
14088
|
+
var _mainConfig = JSON.parse(util["a" /* default */].getStorage('mainConfig'));
|
|
14088
14089
|
_mainConfig.userStyle.color = _this.color;
|
|
14089
14090
|
sessionStorage.setItem('mainConfig', JSON.stringify(_mainConfig));
|
|
14090
14091
|
_this.$emit('setting', 'theme', _this.color);
|
|
@@ -14120,7 +14121,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14120
14121
|
this.initWebSocket();
|
|
14121
14122
|
}
|
|
14122
14123
|
sessionStorage.setItem('mainConfig', JSON.stringify(results));
|
|
14123
|
-
|
|
14124
|
+
util["a" /* default */].setStorage({
|
|
14124
14125
|
type: this.storage,
|
|
14125
14126
|
key: {
|
|
14126
14127
|
depId: results.userModel.depId,
|
|
@@ -14141,8 +14142,8 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14141
14142
|
this.results[i] = results[i].split(',');
|
|
14142
14143
|
}
|
|
14143
14144
|
if (i === 'indexUrl' && results[i] && this.loadHomePage) {
|
|
14144
|
-
var applicationid =
|
|
14145
|
-
var hash =
|
|
14145
|
+
var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
|
|
14146
|
+
var hash = util["a" /* default */].win.location.hash;
|
|
14146
14147
|
if (hash) {
|
|
14147
14148
|
hash = hash.split('?')[0];
|
|
14148
14149
|
}
|
|
@@ -14173,15 +14174,15 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14173
14174
|
document.title = results[i];
|
|
14174
14175
|
}
|
|
14175
14176
|
if (i === 'loginPage' && results[i]) {
|
|
14176
|
-
|
|
14177
|
+
util["a" /* default */].setStorage('loginPage', results[i]);
|
|
14177
14178
|
}
|
|
14178
14179
|
if (i === 'sysLogoIco' && results[i]) {
|
|
14179
14180
|
sessionStorage.setItem('sysLogoIco', results[i]);
|
|
14180
|
-
|
|
14181
|
+
util["a" /* default */].setFavicon(results[i]);
|
|
14181
14182
|
}
|
|
14182
14183
|
if (i === 'userStyle' && results[i] && results[i].color) {
|
|
14183
14184
|
var color = unescape(results[i].color).toLowerCase();
|
|
14184
|
-
if (
|
|
14185
|
+
if (util["a" /* default */].startWith(color, '#')) {
|
|
14185
14186
|
this.color = color;
|
|
14186
14187
|
}
|
|
14187
14188
|
}
|
|
@@ -14194,14 +14195,14 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14194
14195
|
}
|
|
14195
14196
|
if (results[i].webPageWatermark) {
|
|
14196
14197
|
try {
|
|
14197
|
-
|
|
14198
|
-
|
|
14198
|
+
util["a" /* default */].win.top.webPageWatermark = results[i].webPageWatermark;
|
|
14199
|
+
util["a" /* default */].watermark(results[i].webPageWatermark);
|
|
14199
14200
|
} catch (error) {
|
|
14200
|
-
|
|
14201
|
+
util["a" /* default */].win.postMessage({ type: 2, content: results[i].webPageWatermark }, '*');
|
|
14201
14202
|
}
|
|
14202
14203
|
}
|
|
14203
14204
|
if (results[i].loginPage) {
|
|
14204
|
-
|
|
14205
|
+
util["a" /* default */].setStorage('loginPage', results[i].loginPage);
|
|
14205
14206
|
}
|
|
14206
14207
|
if (results[i].portalPage || results[i].portalpage) {
|
|
14207
14208
|
this.doorIndex = results[i].portalPage || results[i].portalpage;
|
|
@@ -14227,7 +14228,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14227
14228
|
reGetConfig: function reGetConfig() {
|
|
14228
14229
|
var _this2 = this;
|
|
14229
14230
|
|
|
14230
|
-
|
|
14231
|
+
util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
|
|
14231
14232
|
if (res && res.rCode === 0) {
|
|
14232
14233
|
var results = JSON.parse(JSON.stringify(res.results));
|
|
14233
14234
|
_this2.setConfig(results, 1);
|
|
@@ -14258,9 +14259,9 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14258
14259
|
this.hideSubMenu = hide;
|
|
14259
14260
|
}
|
|
14260
14261
|
var option = { url: res, isUrl: isUrl, param: param };
|
|
14261
|
-
if (
|
|
14262
|
+
if (util["a" /* default */].isObject(res)) {
|
|
14262
14263
|
if (res.urlopenmode == 1) {
|
|
14263
|
-
|
|
14264
|
+
util["a" /* default */].win.open(res.url);
|
|
14264
14265
|
return;
|
|
14265
14266
|
} else if (res.urlopenmode == 2) {
|
|
14266
14267
|
location.href = res.url;
|
|
@@ -14285,7 +14286,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14285
14286
|
if (routes) {
|
|
14286
14287
|
var path = this.hasRouter(routes, option.url);
|
|
14287
14288
|
if (path) {
|
|
14288
|
-
var params =
|
|
14289
|
+
var params = util["a" /* default */].getParams({ url: option.url });
|
|
14289
14290
|
this.$router.push({
|
|
14290
14291
|
path: path,
|
|
14291
14292
|
query: params
|
|
@@ -14416,7 +14417,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14416
14417
|
|
|
14417
14418
|
var param = this.menuCode ? { menuCode: this.menuCode } : {};
|
|
14418
14419
|
var params = defaultvue_type_script_lang_js_extends({}, this.param, param);
|
|
14419
|
-
|
|
14420
|
+
util["a" /* default */].ajax({ url: this.action, params: params }).then(function (res) {
|
|
14420
14421
|
if (res.rCode === 0) {
|
|
14421
14422
|
if (res.results && res.results.length) {
|
|
14422
14423
|
_this4.menus = JSON.parse(JSON.stringify(res.results));
|
|
@@ -14439,19 +14440,19 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14439
14440
|
|
|
14440
14441
|
//设置默认左侧导航
|
|
14441
14442
|
setMenu: function setMenu(res) {
|
|
14442
|
-
var applicationid =
|
|
14443
|
+
var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
|
|
14443
14444
|
if (applicationid) {
|
|
14444
14445
|
var ids = this.getId(this.menus, applicationid);
|
|
14445
14446
|
if (ids) {
|
|
14446
14447
|
this.defaultActive = ids;
|
|
14447
14448
|
}
|
|
14448
|
-
} else if (
|
|
14449
|
-
var hash =
|
|
14449
|
+
} else if (util["a" /* default */].win.location.hash) {
|
|
14450
|
+
var hash = util["a" /* default */].win.location.hash;
|
|
14450
14451
|
if (hash) {
|
|
14451
14452
|
hash = hash.split('?')[0];
|
|
14452
14453
|
}
|
|
14453
14454
|
if (hash !== '#/' && hash !== '#/main') {
|
|
14454
|
-
var _ids4 = this.getId(this.menus,
|
|
14455
|
+
var _ids4 = this.getId(this.menus, util["a" /* default */].win.location.hash);
|
|
14455
14456
|
if (_ids4) {
|
|
14456
14457
|
this.defaultActive = _ids4;
|
|
14457
14458
|
//this.navIds = ids;
|
|
@@ -14470,7 +14471,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14470
14471
|
this.isDefault = false;
|
|
14471
14472
|
this.setDefault(res, this.defaultActive);
|
|
14472
14473
|
} else {
|
|
14473
|
-
if (this.homePage || !
|
|
14474
|
+
if (this.homePage || !util["a" /* default */].getStorage('mainConfig')) {
|
|
14474
14475
|
this.isDefault = true;
|
|
14475
14476
|
if (this.homePage && (!this.defaultActive || !this.defaultActive.length)) {
|
|
14476
14477
|
var _ids6 = this.getId(this.menus, this.homePage);
|
|
@@ -14537,7 +14538,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14537
14538
|
if (id && this.menu[0].id !== id) {
|
|
14538
14539
|
this.active.push(id);
|
|
14539
14540
|
} else {
|
|
14540
|
-
var _hash =
|
|
14541
|
+
var _hash = util["a" /* default */].win.location.hash;
|
|
14541
14542
|
if (_hash) {
|
|
14542
14543
|
_hash = _hash.split('?')[0];
|
|
14543
14544
|
if (_hash !== '#/' && _hash !== '#/main') {
|
|
@@ -14721,14 +14722,14 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14721
14722
|
},
|
|
14722
14723
|
setUrl: function setUrl(url, param) {
|
|
14723
14724
|
var obj = param ? param : {};
|
|
14724
|
-
var params =
|
|
14725
|
+
var params = util["a" /* default */].getParams({ url: url }, true);
|
|
14725
14726
|
for (var i in params) {
|
|
14726
14727
|
if (i != 'model' && i != 'view' && i != '_baseUrl') {
|
|
14727
14728
|
obj[i] = params[i];
|
|
14728
14729
|
}
|
|
14729
14730
|
}
|
|
14730
14731
|
var _url = params._baseUrl ? params._baseUrl : './primary.html';
|
|
14731
|
-
return
|
|
14732
|
+
return util["a" /* default */].urlJoinParams({ url: _url, param: obj });
|
|
14732
14733
|
},
|
|
14733
14734
|
handleVisibleChange: function handleVisibleChange(res) {
|
|
14734
14735
|
this.showJobs = res;
|
|
@@ -14949,7 +14950,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14949
14950
|
});
|
|
14950
14951
|
break;
|
|
14951
14952
|
case 'index':
|
|
14952
|
-
|
|
14953
|
+
util["a" /* default */].win.open(this.doorIndex, '_self');
|
|
14953
14954
|
break;
|
|
14954
14955
|
case 'user':
|
|
14955
14956
|
this.showUserInfo = true;
|
|
@@ -14968,7 +14969,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14968
14969
|
this.handleSet();
|
|
14969
14970
|
break;
|
|
14970
14971
|
case 'goView':
|
|
14971
|
-
|
|
14972
|
+
util["a" /* default */].win.open(res.path, '_blank');
|
|
14972
14973
|
break;
|
|
14973
14974
|
}
|
|
14974
14975
|
this.$emit('handler-click', res);
|
|
@@ -14979,7 +14980,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14979
14980
|
var _this8 = this;
|
|
14980
14981
|
|
|
14981
14982
|
if (this.method === 'iframe') {
|
|
14982
|
-
this.page =
|
|
14983
|
+
this.page = util["a" /* default */].handlerUrl(this.page);
|
|
14983
14984
|
} else {
|
|
14984
14985
|
this.refresh = false;
|
|
14985
14986
|
this.$nextTick(function () {
|
|
@@ -15003,18 +15004,18 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
15003
15004
|
this.pid = res.pid;
|
|
15004
15005
|
}
|
|
15005
15006
|
}
|
|
15006
|
-
if (
|
|
15007
|
+
if (util["a" /* default */].win.location.hash === page && prevPage === page) {
|
|
15007
15008
|
this.refresh = true;
|
|
15008
15009
|
return;
|
|
15009
15010
|
}
|
|
15010
15011
|
if (type == 1) {
|
|
15011
|
-
|
|
15012
|
+
util["a" /* default */].win.open(page);
|
|
15012
15013
|
} else if (type == 2) {
|
|
15013
15014
|
location.href = page;
|
|
15014
15015
|
} else if (type == 3 || this.loadWujie === false || this.downgrade && defaultvue_type_script_lang_js_isIE) {
|
|
15015
15016
|
this.method = 'iframe';
|
|
15016
15017
|
this.refresh = false;
|
|
15017
|
-
this.page =
|
|
15018
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
15018
15019
|
} else if (page) {
|
|
15019
15020
|
var urls = page.split('?');
|
|
15020
15021
|
if (urls[0].indexOf('.js') > 1) {
|
|
@@ -15027,19 +15028,19 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
15027
15028
|
} else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
|
|
15028
15029
|
this.method = 'iframe';
|
|
15029
15030
|
this.refresh = false;
|
|
15030
|
-
this.page =
|
|
15031
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
15031
15032
|
} else {
|
|
15032
15033
|
if (urls[0].indexOf('.html') === -1 && urls[0].indexOf('#/') === -1) {
|
|
15033
15034
|
this.method = 'iframe';
|
|
15034
15035
|
this.refresh = false;
|
|
15035
|
-
this.page =
|
|
15036
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
15036
15037
|
} else {
|
|
15037
15038
|
this.method = 'router';
|
|
15038
15039
|
var routes = this.$router.options.routes;
|
|
15039
15040
|
if (routes) {
|
|
15040
15041
|
var path = this.hasRouter(routes, urls[0]);
|
|
15041
15042
|
if (path) {
|
|
15042
|
-
var params =
|
|
15043
|
+
var params = util["a" /* default */].getParams({ url: page });
|
|
15043
15044
|
if (param) {
|
|
15044
15045
|
params = defaultvue_type_script_lang_js_extends({}, params, param);
|
|
15045
15046
|
}
|
|
@@ -15057,14 +15058,14 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
15057
15058
|
_this9.refresh = true;
|
|
15058
15059
|
});
|
|
15059
15060
|
} else {
|
|
15060
|
-
var urlopenmode =
|
|
15061
|
+
var urlopenmode = util["a" /* default */].getParams({
|
|
15061
15062
|
url: page,
|
|
15062
15063
|
name: 'urlopenmode'
|
|
15063
15064
|
});
|
|
15064
15065
|
if (this.loadWujie === false || this.downgrade && defaultvue_type_script_lang_js_isIE || urlopenmode == 3) {
|
|
15065
15066
|
this.method = 'iframe';
|
|
15066
15067
|
this.refresh = false;
|
|
15067
|
-
this.page =
|
|
15068
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
15068
15069
|
} else {
|
|
15069
15070
|
this.method = 'wujie';
|
|
15070
15071
|
this.wjName = res && res.appCode ? res.appCode : 'application';
|
|
@@ -15077,7 +15078,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
15077
15078
|
} else {
|
|
15078
15079
|
this.method = 'iframe';
|
|
15079
15080
|
this.refresh = false;
|
|
15080
|
-
this.page =
|
|
15081
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
15081
15082
|
this.$nextTick(function () {
|
|
15082
15083
|
_this9.refresh = true;
|
|
15083
15084
|
});
|
|
@@ -15200,7 +15201,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
15200
15201
|
handleListener: function handleListener() {
|
|
15201
15202
|
var _this10 = this;
|
|
15202
15203
|
|
|
15203
|
-
|
|
15204
|
+
util["a" /* default */].win.addEventListener('message', function (e) {
|
|
15204
15205
|
var msg = e.data;
|
|
15205
15206
|
if (msg.key == 'jump_Menu') {
|
|
15206
15207
|
var res = msg.data1;
|
|
@@ -15216,7 +15217,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
15216
15217
|
initWebSocket: function initWebSocket() {
|
|
15217
15218
|
var _this11 = this;
|
|
15218
15219
|
|
|
15219
|
-
this.webSocket =
|
|
15220
|
+
this.webSocket = util["a" /* default */].socket({
|
|
15220
15221
|
url: api["fc" /* wss */],
|
|
15221
15222
|
take: api["Vb" /* topic */],
|
|
15222
15223
|
success: function success(res) {
|
|
@@ -15251,8 +15252,8 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
15251
15252
|
if (_this11.$eventBus) {
|
|
15252
15253
|
_this11.$eventBus.$emit('websocket', data);
|
|
15253
15254
|
}
|
|
15254
|
-
if (
|
|
15255
|
-
|
|
15255
|
+
if (util["a" /* default */].win.eventBus) {
|
|
15256
|
+
util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
15256
15257
|
}
|
|
15257
15258
|
}
|
|
15258
15259
|
});
|
|
@@ -15291,7 +15292,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
15291
15292
|
if (this.webSocket) {
|
|
15292
15293
|
this.webSocket.destroy();
|
|
15293
15294
|
}
|
|
15294
|
-
|
|
15295
|
+
util["a" /* default */].win.removeEventListener('popstate', this.tateHandle);
|
|
15295
15296
|
}
|
|
15296
15297
|
});
|
|
15297
15298
|
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=script&lang=js&
|
|
@@ -15397,7 +15398,7 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15397
15398
|
};
|
|
15398
15399
|
},
|
|
15399
15400
|
created: function created() {
|
|
15400
|
-
this.params =
|
|
15401
|
+
this.params = util["a" /* default */].getParams() || {};
|
|
15401
15402
|
this.sysCode = this.params.sysCode;
|
|
15402
15403
|
this.appCode = this.params.appCode;
|
|
15403
15404
|
this.getConfig(this.params);
|
|
@@ -15406,16 +15407,16 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15406
15407
|
mounted: function mounted() {
|
|
15407
15408
|
var _this = this;
|
|
15408
15409
|
|
|
15409
|
-
if (
|
|
15410
|
-
|
|
15411
|
-
|
|
15410
|
+
if (util["a" /* default */].win.$wujie) {
|
|
15411
|
+
util["a" /* default */].win.$wujie.bus.$on('changeTheme', function (res) {
|
|
15412
|
+
util["a" /* default */].updateTheme(res);
|
|
15412
15413
|
});
|
|
15413
15414
|
}
|
|
15414
15415
|
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15416
|
+
util["a" /* default */].win.reLogin = this.handleReLogin;
|
|
15417
|
+
util["a" /* default */].win.windowOpen = this.openPage;
|
|
15418
|
+
util["a" /* default */].win.refresh = this.$refs.main.handleRefresh;
|
|
15419
|
+
util["a" /* default */].win.jumpMenu = this.$refs.main.jumpMenu;
|
|
15419
15420
|
bus.$on('reLogin', this.handleReLogin);
|
|
15420
15421
|
bus.$on('refresh', this.$refs.main.handleRefresh);
|
|
15421
15422
|
bus.$on('jumpMenu', this.$refs.main.jumpMenu);
|
|
@@ -15498,13 +15499,13 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15498
15499
|
console.log('handleReLogin');
|
|
15499
15500
|
sessionStorage.setItem('remind', 1);
|
|
15500
15501
|
_this2.$confirm(msg, btn).then(function () {
|
|
15501
|
-
|
|
15502
|
-
var loginPage =
|
|
15502
|
+
util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
15503
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
15503
15504
|
try {
|
|
15504
15505
|
if (loginPage) {
|
|
15505
15506
|
var src = void 0;
|
|
15506
|
-
if (!
|
|
15507
|
-
var pathname =
|
|
15507
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
15508
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
15508
15509
|
if (pathname !== '/') {
|
|
15509
15510
|
pathname = pathname.split('/');
|
|
15510
15511
|
pathname.splice(pathname.length - 1);
|
|
@@ -15516,20 +15517,20 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15516
15517
|
} else {
|
|
15517
15518
|
src = loginPage;
|
|
15518
15519
|
}
|
|
15519
|
-
|
|
15520
|
-
} else if (
|
|
15521
|
-
|
|
15520
|
+
util["a" /* default */].win.top.location.href = src;
|
|
15521
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
15522
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
15522
15523
|
} else {
|
|
15523
|
-
var hash =
|
|
15524
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
15524
15525
|
if (hash) {
|
|
15525
|
-
var len =
|
|
15526
|
-
|
|
15526
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
15527
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
15527
15528
|
} else {
|
|
15528
|
-
|
|
15529
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
15529
15530
|
}
|
|
15530
15531
|
}
|
|
15531
15532
|
} catch (error) {
|
|
15532
|
-
|
|
15533
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
15533
15534
|
}
|
|
15534
15535
|
}).catch(function (e) {
|
|
15535
15536
|
sessionStorage.removeItem('remind');
|
|
@@ -15546,13 +15547,13 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15546
15547
|
getConfig: function getConfig(query) {
|
|
15547
15548
|
var _this3 = this;
|
|
15548
15549
|
|
|
15549
|
-
var token =
|
|
15550
|
+
var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
|
|
15550
15551
|
if (!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType')) {
|
|
15551
15552
|
return false;
|
|
15552
15553
|
}
|
|
15553
|
-
var mainConfig =
|
|
15554
|
+
var mainConfig = util["a" /* default */].getStorage('mainConfig');
|
|
15554
15555
|
if (!mainConfig || mainConfig == '{}') {
|
|
15555
|
-
|
|
15556
|
+
util["a" /* default */].getMainConfig(function (res) {
|
|
15556
15557
|
_this3.$refs.main.init(res);
|
|
15557
15558
|
});
|
|
15558
15559
|
}
|
|
@@ -15565,7 +15566,7 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15565
15566
|
**/
|
|
15566
15567
|
openPage: function openPage(url, name, width, height) {
|
|
15567
15568
|
var src = url;
|
|
15568
|
-
if (!
|
|
15569
|
+
if (!util["a" /* default */].startWith(url, ['http', '/'], true)) {
|
|
15569
15570
|
var pathname = window.location.pathname;
|
|
15570
15571
|
if (pathname !== '/') {
|
|
15571
15572
|
pathname = pathname.split('/');
|
|
@@ -15578,15 +15579,15 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15578
15579
|
var w = 0;
|
|
15579
15580
|
var h = 0;
|
|
15580
15581
|
try {
|
|
15581
|
-
w = width ? width :
|
|
15582
|
-
h = height ? height :
|
|
15582
|
+
w = width ? width : util["a" /* default */].win.top.screen.availWidth - 10;
|
|
15583
|
+
h = height ? height : util["a" /* default */].win.top.screen.availHeight - 60;
|
|
15583
15584
|
} catch (error) {
|
|
15584
|
-
w = width ? width :
|
|
15585
|
-
h = height ? height :
|
|
15585
|
+
w = width ? width : util["a" /* default */].win.screen.availWidth - 10;
|
|
15586
|
+
h = height ? height : util["a" /* default */].win.screen.availHeight - 60;
|
|
15586
15587
|
}
|
|
15587
|
-
return
|
|
15588
|
+
return util["a" /* default */].win.open(src, name, 'width=' + w + 'px,height=' + h + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
|
|
15588
15589
|
} else {
|
|
15589
|
-
return
|
|
15590
|
+
return util["a" /* default */].win.open(src);
|
|
15590
15591
|
}
|
|
15591
15592
|
},
|
|
15592
15593
|
|
|
@@ -15599,7 +15600,7 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15599
15600
|
var data = _ref.data,
|
|
15600
15601
|
attrs = _ref.attrs;
|
|
15601
15602
|
|
|
15602
|
-
return
|
|
15603
|
+
return util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
|
|
15603
15604
|
},
|
|
15604
15605
|
|
|
15605
15606
|
/**
|