eoss-ui 0.5.81-beta16 → 0.5.81-beta18
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/data-table.js +208 -54
- package/lib/eoss-ui.common.js +368 -112
- package/lib/flow.js +69 -10
- package/lib/index.js +1 -1
- package/lib/main.js +297 -254
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/package.json +1 -1
- package/packages/data-table/src/column.vue +111 -41
- package/packages/data-table/src/{forms.vue → formItem.vue} +23 -7
- package/packages/data-table/src/main.vue +1 -0
- package/packages/flow/src/main.vue +30 -17
- package/packages/main/src/simplicity/index.vue +48 -14
- package/packages/main/src/simplicity/menu-list.vue +2 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/toolbar.scss +2 -1
- package/src/index.js +1 -1
package/lib/main.js
CHANGED
|
@@ -3975,8 +3975,8 @@ render._withStripped = true
|
|
|
3975
3975
|
|
|
3976
3976
|
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=d62e142c&
|
|
3977
3977
|
|
|
3978
|
-
// 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=
|
|
3979
|
-
var
|
|
3978
|
+
// 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=5cf6ab5c&scoped=true&
|
|
3979
|
+
var simplicityvue_type_template_id_5cf6ab5c_scoped_true_render = function () {
|
|
3980
3980
|
var _vm = this
|
|
3981
3981
|
var _h = _vm.$createElement
|
|
3982
3982
|
var _c = _vm._self._c || _h
|
|
@@ -4585,11 +4585,11 @@ var simplicityvue_type_template_id_46b7eb38_scoped_true_render = function () {
|
|
|
4585
4585
|
),
|
|
4586
4586
|
])
|
|
4587
4587
|
}
|
|
4588
|
-
var
|
|
4589
|
-
|
|
4588
|
+
var simplicityvue_type_template_id_5cf6ab5c_scoped_true_staticRenderFns = []
|
|
4589
|
+
simplicityvue_type_template_id_5cf6ab5c_scoped_true_render._withStripped = true
|
|
4590
4590
|
|
|
4591
4591
|
|
|
4592
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
4592
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=5cf6ab5c&scoped=true&
|
|
4593
4593
|
|
|
4594
4594
|
// 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=1560e8bf&scoped=true&
|
|
4595
4595
|
var avatarvue_type_template_id_1560e8bf_scoped_true_render = function () {
|
|
@@ -4639,7 +4639,7 @@ avatarvue_type_template_id_1560e8bf_scoped_true_render._withStripped = true
|
|
|
4639
4639
|
// CONCATENATED MODULE: ./packages/main/src/simplicity/avatar.vue?vue&type=template&id=1560e8bf&scoped=true&
|
|
4640
4640
|
|
|
4641
4641
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
4642
|
-
var
|
|
4642
|
+
var util = __webpack_require__(0);
|
|
4643
4643
|
|
|
4644
4644
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4645
4645
|
var api = __webpack_require__(1);
|
|
@@ -4713,7 +4713,7 @@ var api = __webpack_require__(1);
|
|
|
4713
4713
|
methods: {
|
|
4714
4714
|
handleSuccess: function handleSuccess(response, file) {
|
|
4715
4715
|
var res = file.response;
|
|
4716
|
-
if (res.url &&
|
|
4716
|
+
if (res.url && util["a" /* default */].startWith(res.url, ['http', 'https', '/'])) {
|
|
4717
4717
|
this.userHead = res.url;
|
|
4718
4718
|
} else {
|
|
4719
4719
|
this.userHead = api["r" /* downloadByAdjunctId */] + '?adjunctId=' + res.adjunctId;
|
|
@@ -4984,14 +4984,14 @@ var doorIndex = sessionStorage.getItem('doorIndex');
|
|
|
4984
4984
|
});
|
|
4985
4985
|
},
|
|
4986
4986
|
isClick: function isClick() {
|
|
4987
|
-
var useCaseCodes =
|
|
4987
|
+
var useCaseCodes = util["a" /* default */].getStorage('useCaseCodes');
|
|
4988
4988
|
return useCaseCodes && useCaseCodes.includes('sys_user_onlineList');
|
|
4989
4989
|
}
|
|
4990
4990
|
},
|
|
4991
4991
|
watch: {},
|
|
4992
4992
|
created: function created() {
|
|
4993
4993
|
//this.time = util.timeCycle() + '好!';
|
|
4994
|
-
this.date =
|
|
4994
|
+
this.date = util["a" /* default */].formatDate('', 'yyyy年M月d日');
|
|
4995
4995
|
},
|
|
4996
4996
|
mounted: function mounted() {
|
|
4997
4997
|
this.getTime();
|
|
@@ -5003,7 +5003,7 @@ var doorIndex = sessionStorage.getItem('doorIndex');
|
|
|
5003
5003
|
|
|
5004
5004
|
this.timer && clearInterval(this.timer);
|
|
5005
5005
|
this.timer = setInterval(function () {
|
|
5006
|
-
_this2.time =
|
|
5006
|
+
_this2.time = util["a" /* default */].formatDate('', 'HH:mm:ss');
|
|
5007
5007
|
});
|
|
5008
5008
|
},
|
|
5009
5009
|
isShow: function isShow(res) {
|
|
@@ -5214,8 +5214,8 @@ sub_menuvue_type_template_id_629b4bf1_scoped_true_render._withStripped = true
|
|
|
5214
5214
|
|
|
5215
5215
|
// CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue?vue&type=template&id=629b4bf1&scoped=true&
|
|
5216
5216
|
|
|
5217
|
-
// 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/menu-list.vue?vue&type=template&id=
|
|
5218
|
-
var
|
|
5217
|
+
// 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/menu-list.vue?vue&type=template&id=43b0ff18&scoped=true&
|
|
5218
|
+
var menu_listvue_type_template_id_43b0ff18_scoped_true_render = function () {
|
|
5219
5219
|
var _vm = this
|
|
5220
5220
|
var _h = _vm.$createElement
|
|
5221
5221
|
var _c = _vm._self._c || _h
|
|
@@ -5317,11 +5317,11 @@ var menu_listvue_type_template_id_225f2794_scoped_true_render = function () {
|
|
|
5317
5317
|
),
|
|
5318
5318
|
])
|
|
5319
5319
|
}
|
|
5320
|
-
var
|
|
5321
|
-
|
|
5320
|
+
var menu_listvue_type_template_id_43b0ff18_scoped_true_staticRenderFns = []
|
|
5321
|
+
menu_listvue_type_template_id_43b0ff18_scoped_true_render._withStripped = true
|
|
5322
5322
|
|
|
5323
5323
|
|
|
5324
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/menu-list.vue?vue&type=template&id=
|
|
5324
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/menu-list.vue?vue&type=template&id=43b0ff18&scoped=true&
|
|
5325
5325
|
|
|
5326
5326
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/menu-list.vue?vue&type=script&lang=js&
|
|
5327
5327
|
//
|
|
@@ -5370,6 +5370,7 @@ menu_listvue_type_template_id_225f2794_scoped_true_render._withStripped = true
|
|
|
5370
5370
|
//
|
|
5371
5371
|
//
|
|
5372
5372
|
|
|
5373
|
+
|
|
5373
5374
|
/* harmony default export */ var menu_listvue_type_script_lang_js_ = ({
|
|
5374
5375
|
name: 'MenuList',
|
|
5375
5376
|
components: {},
|
|
@@ -5429,10 +5430,10 @@ menu_listvue_type_template_id_225f2794_scoped_true_render._withStripped = true
|
|
|
5429
5430
|
this.defaultActive = res.id;
|
|
5430
5431
|
if (res.url) {
|
|
5431
5432
|
if (res.urlopenmode == 1) {
|
|
5432
|
-
util.win.open(res.url);
|
|
5433
|
+
util["a" /* default */].win.open(res.url);
|
|
5433
5434
|
return;
|
|
5434
5435
|
} else if (res.urlopenmode == 2) {
|
|
5435
|
-
util.win.
|
|
5436
|
+
util["a" /* default */].win.open(res.url, '_self');
|
|
5436
5437
|
return;
|
|
5437
5438
|
}
|
|
5438
5439
|
this.$emit('command', res);
|
|
@@ -5461,11 +5462,11 @@ menu_listvue_type_template_id_225f2794_scoped_true_render._withStripped = true
|
|
|
5461
5462
|
|
|
5462
5463
|
var menu_list_component = Object(componentNormalizer["a" /* default */])(
|
|
5463
5464
|
simplicity_menu_listvue_type_script_lang_js_,
|
|
5464
|
-
|
|
5465
|
-
|
|
5465
|
+
menu_listvue_type_template_id_43b0ff18_scoped_true_render,
|
|
5466
|
+
menu_listvue_type_template_id_43b0ff18_scoped_true_staticRenderFns,
|
|
5466
5467
|
false,
|
|
5467
5468
|
null,
|
|
5468
|
-
"
|
|
5469
|
+
"43b0ff18",
|
|
5469
5470
|
null
|
|
5470
5471
|
|
|
5471
5472
|
)
|
|
@@ -6879,19 +6880,19 @@ userinfovue_type_template_id_0dbd4cc6_render._withStripped = true
|
|
|
6879
6880
|
handleFormSubmit: function handleFormSubmit() {
|
|
6880
6881
|
var _this2 = this;
|
|
6881
6882
|
|
|
6882
|
-
var initLogin =
|
|
6883
|
+
var initLogin = util["a" /* default */].getStorage('initLogin');
|
|
6883
6884
|
initLogin && (initLogin = JSON.parse(initLogin));
|
|
6884
|
-
|
|
6885
|
+
util["a" /* default */].ajax({
|
|
6885
6886
|
url: api["Yb" /* updateUserInfo */],
|
|
6886
6887
|
params: {
|
|
6887
6888
|
email: this.model.email,
|
|
6888
6889
|
officeTel: this.model.officeTel,
|
|
6889
6890
|
phone: this.model.phone,
|
|
6890
|
-
oldPassword: this.secret && initLogin && initLogin.secret && this.model.oldpassword ?
|
|
6891
|
+
oldPassword: this.secret && initLogin && initLogin.secret && this.model.oldpassword ? util["a" /* default */].esmEncrypt({
|
|
6891
6892
|
data: this.model.oldpassword,
|
|
6892
6893
|
key: initLogin.secret
|
|
6893
6894
|
}) : this.model.oldpassword,
|
|
6894
|
-
password: this.secret && initLogin && initLogin.secret && this.model.password ?
|
|
6895
|
+
password: this.secret && initLogin && initLogin.secret && this.model.password ? util["a" /* default */].esmEncrypt({
|
|
6895
6896
|
data: this.model.password,
|
|
6896
6897
|
key: initLogin.secret
|
|
6897
6898
|
}) : this.model.password
|
|
@@ -6905,12 +6906,12 @@ userinfovue_type_template_id_0dbd4cc6_render._withStripped = true
|
|
|
6905
6906
|
closeOnClickModal: false,
|
|
6906
6907
|
type: 'warning'
|
|
6907
6908
|
}).then(function () {
|
|
6908
|
-
var loginPage =
|
|
6909
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
6909
6910
|
try {
|
|
6910
6911
|
if (loginPage) {
|
|
6911
6912
|
var src = void 0;
|
|
6912
|
-
if (!
|
|
6913
|
-
var pathname =
|
|
6913
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
6914
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
6914
6915
|
if (pathname !== '/') {
|
|
6915
6916
|
pathname = pathname.split('/');
|
|
6916
6917
|
pathname.splice(pathname.length - 1);
|
|
@@ -6922,20 +6923,20 @@ userinfovue_type_template_id_0dbd4cc6_render._withStripped = true
|
|
|
6922
6923
|
} else {
|
|
6923
6924
|
src = loginPage;
|
|
6924
6925
|
}
|
|
6925
|
-
|
|
6926
|
-
} else if (
|
|
6927
|
-
|
|
6926
|
+
util["a" /* default */].win.top.location.href = src;
|
|
6927
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
6928
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
6928
6929
|
} else {
|
|
6929
|
-
var hash =
|
|
6930
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
6930
6931
|
if (hash) {
|
|
6931
|
-
var len =
|
|
6932
|
-
|
|
6932
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
6933
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
6933
6934
|
} else {
|
|
6934
|
-
|
|
6935
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
6935
6936
|
}
|
|
6936
6937
|
}
|
|
6937
6938
|
} catch (error) {
|
|
6938
|
-
|
|
6939
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
6939
6940
|
}
|
|
6940
6941
|
}).catch(function (e) {});
|
|
6941
6942
|
}
|
|
@@ -6947,7 +6948,7 @@ userinfovue_type_template_id_0dbd4cc6_render._withStripped = true
|
|
|
6947
6948
|
},
|
|
6948
6949
|
repassword: function repassword(rule, value, callback) {
|
|
6949
6950
|
if (this.model.oldpassword && this.model.password && value) {
|
|
6950
|
-
|
|
6951
|
+
util["a" /* default */].identical({ value: [value, this.model.password], callback: callback });
|
|
6951
6952
|
} else {
|
|
6952
6953
|
callback();
|
|
6953
6954
|
return true;
|
|
@@ -7104,7 +7105,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7104
7105
|
getData: function getData() {
|
|
7105
7106
|
var _this2 = this;
|
|
7106
7107
|
|
|
7107
|
-
|
|
7108
|
+
util["a" /* default */].ajax({
|
|
7108
7109
|
url: api["ab" /* initUserSet */]
|
|
7109
7110
|
}).then(function (res) {
|
|
7110
7111
|
if (res.rCode === 0) {
|
|
@@ -7144,7 +7145,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7144
7145
|
var _this3 = this;
|
|
7145
7146
|
|
|
7146
7147
|
var notify = this.checked.join(',');
|
|
7147
|
-
|
|
7148
|
+
util["a" /* default */].ajax({
|
|
7148
7149
|
method: 'post',
|
|
7149
7150
|
url: api["Xb" /* updateUserCustomInfo */],
|
|
7150
7151
|
data: {
|
|
@@ -7174,25 +7175,25 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7174
7175
|
var _this4 = this;
|
|
7175
7176
|
|
|
7176
7177
|
if (this.user.identityId !== res.id) {
|
|
7177
|
-
|
|
7178
|
+
util["a" /* default */].ajax({
|
|
7178
7179
|
method: 'post',
|
|
7179
7180
|
url: api["vb" /* switchUserTo */],
|
|
7180
7181
|
data: { userId: res.value }
|
|
7181
7182
|
}).then(function (res) {
|
|
7182
7183
|
if (res.rCode == 0) {
|
|
7183
7184
|
_this4.$emit('close');
|
|
7184
|
-
|
|
7185
|
+
util["a" /* default */].setStorage({
|
|
7185
7186
|
type: _this4.storage,
|
|
7186
7187
|
key: 'userId',
|
|
7187
7188
|
value: res.value
|
|
7188
7189
|
});
|
|
7189
|
-
|
|
7190
|
+
util["a" /* default */].removeStorage(['mainConfig', 'jump']);
|
|
7190
7191
|
_this4.$message({
|
|
7191
7192
|
message: res.msg,
|
|
7192
7193
|
type: 'success',
|
|
7193
7194
|
duration: 500,
|
|
7194
7195
|
onClose: function onClose() {
|
|
7195
|
-
if (
|
|
7196
|
+
if (util["a" /* default */].win.location.href.indexOf('#/main') > -1 || util["a" /* default */].win.location.href.indexOf('/main.html') > -1) {
|
|
7196
7197
|
location.reload();
|
|
7197
7198
|
} else {
|
|
7198
7199
|
_this4.$router.replace('/main');
|
|
@@ -7551,7 +7552,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7551
7552
|
};
|
|
7552
7553
|
},
|
|
7553
7554
|
mounted: function mounted() {
|
|
7554
|
-
|
|
7555
|
+
util["a" /* default */].win.deleteMsg = this.handleRemove;
|
|
7555
7556
|
},
|
|
7556
7557
|
|
|
7557
7558
|
methods: {
|
|
@@ -7561,7 +7562,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7561
7562
|
|
|
7562
7563
|
if (this.pageNum <= this.pageCount) {
|
|
7563
7564
|
this.loading = true;
|
|
7564
|
-
|
|
7565
|
+
util["a" /* default */].ajax({
|
|
7565
7566
|
url: api["wb" /* sysMsgPage */],
|
|
7566
7567
|
params: {
|
|
7567
7568
|
pageNum: reload ? 1 : this.pageNum,
|
|
@@ -7594,7 +7595,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7594
7595
|
handleIgnore: function handleIgnore(res, i) {
|
|
7595
7596
|
var _this2 = this;
|
|
7596
7597
|
|
|
7597
|
-
|
|
7598
|
+
util["a" /* default */].ajax({
|
|
7598
7599
|
url: api["W" /* ignoreSysMsg */],
|
|
7599
7600
|
params: {
|
|
7600
7601
|
id: res.id
|
|
@@ -7614,7 +7615,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7614
7615
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
7615
7616
|
var _this3 = this;
|
|
7616
7617
|
|
|
7617
|
-
|
|
7618
|
+
util["a" /* default */].ajax({
|
|
7618
7619
|
url: api["V" /* ignoreAllSysMsg */]
|
|
7619
7620
|
}).then(function (res) {
|
|
7620
7621
|
_this3.count = 0;
|
|
@@ -7632,7 +7633,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7632
7633
|
this.count -= 1;
|
|
7633
7634
|
this.msgs.splice(index, 1);
|
|
7634
7635
|
if (this.winopen) {
|
|
7635
|
-
|
|
7636
|
+
util["a" /* default */].win.open(item.handlerUrl);
|
|
7636
7637
|
} else {
|
|
7637
7638
|
this.dialog = {
|
|
7638
7639
|
show: true,
|
|
@@ -7959,7 +7960,7 @@ noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
|
7959
7960
|
handleIgnore: function handleIgnore(res, i) {
|
|
7960
7961
|
var _this = this;
|
|
7961
7962
|
|
|
7962
|
-
|
|
7963
|
+
util["a" /* default */].ajax({
|
|
7963
7964
|
url: api["W" /* ignoreSysMsg */],
|
|
7964
7965
|
params: {
|
|
7965
7966
|
id: res.id
|
|
@@ -7978,7 +7979,7 @@ noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
|
7978
7979
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
7979
7980
|
var _this2 = this;
|
|
7980
7981
|
|
|
7981
|
-
|
|
7982
|
+
util["a" /* default */].ajax({
|
|
7982
7983
|
url: api["V" /* ignoreAllSysMsg */]
|
|
7983
7984
|
}).then(function (res) {
|
|
7984
7985
|
_this2.msgs = [];
|
|
@@ -7994,7 +7995,7 @@ noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
|
7994
7995
|
//处理消息
|
|
7995
7996
|
handleMessage: function handleMessage(item, index) {
|
|
7996
7997
|
if (item.urlopenmode === 1 || this.winopen) {
|
|
7997
|
-
|
|
7998
|
+
util["a" /* default */].win.open(item.handlerUrl);
|
|
7998
7999
|
} else {
|
|
7999
8000
|
this.dialog = {
|
|
8000
8001
|
show: true,
|
|
@@ -8230,7 +8231,7 @@ settingsvue_type_template_id_48437ba0_render._withStripped = true
|
|
|
8230
8231
|
res = res.toLowerCase();
|
|
8231
8232
|
// const rgb = util.getRgb(res);
|
|
8232
8233
|
// const luma = 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];
|
|
8233
|
-
|
|
8234
|
+
util["a" /* default */].updateTheme(res);
|
|
8234
8235
|
this.color = res;
|
|
8235
8236
|
this.$emit('change', { type: 'theme', value: res });
|
|
8236
8237
|
//this.setTheme(res);
|
|
@@ -8326,7 +8327,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
8326
8327
|
},
|
|
8327
8328
|
created: function created() {},
|
|
8328
8329
|
mounted: function mounted() {
|
|
8329
|
-
this.params =
|
|
8330
|
+
this.params = util["a" /* default */].getParams({ url: this.url });
|
|
8330
8331
|
this.jump();
|
|
8331
8332
|
},
|
|
8332
8333
|
|
|
@@ -8793,7 +8794,6 @@ var simplicityvue_type_script_lang_js_extends = Object.assign || function (targe
|
|
|
8793
8794
|
//
|
|
8794
8795
|
//
|
|
8795
8796
|
|
|
8796
|
-
var dataTableMode = utils_util["a" /* default */].win.dataTableMode || 'default';
|
|
8797
8797
|
|
|
8798
8798
|
|
|
8799
8799
|
|
|
@@ -8808,11 +8808,12 @@ var dataTableMode = utils_util["a" /* default */].win.dataTableMode || 'default'
|
|
|
8808
8808
|
|
|
8809
8809
|
|
|
8810
8810
|
var isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
8811
|
+
var dataTableMode = util["a" /* default */].win.dataTableMode || 'default';
|
|
8811
8812
|
var events = [function (tabs, index, that) {
|
|
8812
8813
|
var tab = tabs[index];
|
|
8813
8814
|
|
|
8814
8815
|
if (tab.method == 'iframe') {
|
|
8815
|
-
tabs[index].url =
|
|
8816
|
+
tabs[index].url = util["a" /* default */].handlerUrl(tab.url);
|
|
8816
8817
|
} else {
|
|
8817
8818
|
tabs[index].refresh = false;
|
|
8818
8819
|
that.$nextTick(function () {
|
|
@@ -8821,7 +8822,7 @@ var events = [function (tabs, index, that) {
|
|
|
8821
8822
|
}
|
|
8822
8823
|
return tabs;
|
|
8823
8824
|
}, function (tabs, index, that) {
|
|
8824
|
-
var i =
|
|
8825
|
+
var i = util["a" /* default */].indexOfObj(tabs, that.activeName, 'id');
|
|
8825
8826
|
if (tabs.length == 1) {
|
|
8826
8827
|
that.activeName = '';
|
|
8827
8828
|
} else if (i == index) {
|
|
@@ -8838,14 +8839,14 @@ var events = [function (tabs, index, that) {
|
|
|
8838
8839
|
that.activeName = tab[0].id;
|
|
8839
8840
|
return tab;
|
|
8840
8841
|
}, function (tabs, index, that) {
|
|
8841
|
-
var i =
|
|
8842
|
+
var i = util["a" /* default */].indexOfObj(tabs, that.activeName, 'id');
|
|
8842
8843
|
if (i < index) {
|
|
8843
8844
|
that.activeName = tabs[index].id;
|
|
8844
8845
|
}
|
|
8845
8846
|
tabs.splice(0, index);
|
|
8846
8847
|
return tabs;
|
|
8847
8848
|
}, function (tabs, index, that) {
|
|
8848
|
-
var i =
|
|
8849
|
+
var i = util["a" /* default */].indexOfObj(tabs, that.activeName, 'id');
|
|
8849
8850
|
if (i > index) {
|
|
8850
8851
|
that.activeName = tabs[index].id;
|
|
8851
8852
|
}
|
|
@@ -9104,7 +9105,7 @@ var events = [function (tabs, index, that) {
|
|
|
9104
9105
|
}
|
|
9105
9106
|
},
|
|
9106
9107
|
created: function created() {
|
|
9107
|
-
var mainConfig =
|
|
9108
|
+
var mainConfig = util["a" /* default */].getStorage('mainConfig');
|
|
9108
9109
|
if (mainConfig) {
|
|
9109
9110
|
var results = JSON.parse(mainConfig);
|
|
9110
9111
|
if (Object.keys(results).length) {
|
|
@@ -9183,7 +9184,7 @@ var events = [function (tabs, index, that) {
|
|
|
9183
9184
|
this.initWebSocket();
|
|
9184
9185
|
}
|
|
9185
9186
|
sessionStorage.setItem('mainConfig', JSON.stringify(results));
|
|
9186
|
-
|
|
9187
|
+
util["a" /* default */].setStorage({
|
|
9187
9188
|
type: this.storage,
|
|
9188
9189
|
key: {
|
|
9189
9190
|
userId: results.userModel.userId,
|
|
@@ -9205,22 +9206,22 @@ var events = [function (tabs, index, that) {
|
|
|
9205
9206
|
this.indexUrl = results[i];
|
|
9206
9207
|
}
|
|
9207
9208
|
if (i === 'doorIndex' && results[i]) {
|
|
9208
|
-
|
|
9209
|
+
util["a" /* default */].win.open(results[i]);
|
|
9209
9210
|
}
|
|
9210
9211
|
if (i === 'subsystemName' && results[i]) {
|
|
9211
9212
|
document.title = results[i];
|
|
9212
9213
|
}
|
|
9213
9214
|
if (i === 'loginPage' && results[i]) {
|
|
9214
|
-
|
|
9215
|
+
util["a" /* default */].setStorage('loginPage', results[i]);
|
|
9215
9216
|
}
|
|
9216
9217
|
if (i === 'sysLogoIco' && results[i]) {
|
|
9217
9218
|
sessionStorage.setItem('sysLogoIco', results[i]);
|
|
9218
|
-
|
|
9219
|
+
util["a" /* default */].setFavicon(results[i]);
|
|
9219
9220
|
}
|
|
9220
9221
|
if (i === 'userStyle' && results[i]) {
|
|
9221
9222
|
if (results[i].color) {
|
|
9222
9223
|
var color = unescape(results[i].color).toLowerCase();
|
|
9223
|
-
if (
|
|
9224
|
+
if (util["a" /* default */].startWith(color, '#')) {
|
|
9224
9225
|
this.themeColor = color;
|
|
9225
9226
|
}
|
|
9226
9227
|
}
|
|
@@ -9230,7 +9231,7 @@ var events = [function (tabs, index, that) {
|
|
|
9230
9231
|
if (i === 'subsystemExtend' && results[i]) {
|
|
9231
9232
|
if (results[i].themeColor) {
|
|
9232
9233
|
var _color = unescape(results[i].themeColor).toLowerCase();
|
|
9233
|
-
if (
|
|
9234
|
+
if (util["a" /* default */].startWith(_color, '#')) {
|
|
9234
9235
|
this.themeColor = _color;
|
|
9235
9236
|
}
|
|
9236
9237
|
}
|
|
@@ -9239,14 +9240,14 @@ var events = [function (tabs, index, that) {
|
|
|
9239
9240
|
}
|
|
9240
9241
|
if (results[i].webPageWatermark) {
|
|
9241
9242
|
try {
|
|
9242
|
-
|
|
9243
|
-
|
|
9243
|
+
util["a" /* default */].win.top.webPageWatermark = results[i].webPageWatermark;
|
|
9244
|
+
util["a" /* default */].watermark(results[i].webPageWatermark);
|
|
9244
9245
|
} catch (error) {
|
|
9245
|
-
|
|
9246
|
+
util["a" /* default */].win.postMessage({ type: 2, content: results[i].webPageWatermark }, '*');
|
|
9246
9247
|
}
|
|
9247
9248
|
}
|
|
9248
9249
|
if (results[i].loginPage) {
|
|
9249
|
-
|
|
9250
|
+
util["a" /* default */].setStorage('loginPage', results[i].loginPage);
|
|
9250
9251
|
}
|
|
9251
9252
|
if (results[i].aiConfig) {
|
|
9252
9253
|
if (typeof results[i].aiConfig == 'string') {
|
|
@@ -9262,7 +9263,7 @@ var events = [function (tabs, index, that) {
|
|
|
9262
9263
|
}
|
|
9263
9264
|
if (i === 'userModel' && results[i]) {
|
|
9264
9265
|
if (results[i].userHeadUrl) {
|
|
9265
|
-
results[i].userHeadUrl =
|
|
9266
|
+
results[i].userHeadUrl = util["a" /* default */].jointUrl({
|
|
9266
9267
|
url: results[i].userHeadUrl,
|
|
9267
9268
|
reg: '/main2'
|
|
9268
9269
|
});
|
|
@@ -9286,8 +9287,8 @@ var events = [function (tabs, index, that) {
|
|
|
9286
9287
|
getApplications: function getApplications() {
|
|
9287
9288
|
var _this = this;
|
|
9288
9289
|
|
|
9289
|
-
var loading =
|
|
9290
|
-
|
|
9290
|
+
var loading = util["a" /* default */].loading('', '加载中...');
|
|
9291
|
+
util["a" /* default */].ajax({
|
|
9291
9292
|
url: this.appsUrl,
|
|
9292
9293
|
defaults: true
|
|
9293
9294
|
}).then(function (res) {
|
|
@@ -9334,7 +9335,7 @@ var events = [function (tabs, index, that) {
|
|
|
9334
9335
|
getMenus: function getMenus(loading) {
|
|
9335
9336
|
var _this2 = this;
|
|
9336
9337
|
|
|
9337
|
-
|
|
9338
|
+
util["a" /* default */].ajax({ url: this._menuUrl }).then(function (res) {
|
|
9338
9339
|
loading.close();
|
|
9339
9340
|
if (res.rCode === 0) {
|
|
9340
9341
|
if (res.results && res.results.length) {
|
|
@@ -9450,7 +9451,7 @@ var events = [function (tabs, index, that) {
|
|
|
9450
9451
|
res.method = 'router';
|
|
9451
9452
|
res.path = path;
|
|
9452
9453
|
} else {
|
|
9453
|
-
var urlopenmode =
|
|
9454
|
+
var urlopenmode = util["a" /* default */].getParams({
|
|
9454
9455
|
url: url,
|
|
9455
9456
|
name: 'urlopenmode'
|
|
9456
9457
|
});
|
|
@@ -9599,7 +9600,7 @@ var events = [function (tabs, index, that) {
|
|
|
9599
9600
|
initWebSocket: function initWebSocket() {
|
|
9600
9601
|
var _this4 = this;
|
|
9601
9602
|
|
|
9602
|
-
this.webSocket =
|
|
9603
|
+
this.webSocket = util["a" /* default */].socket({
|
|
9603
9604
|
url: api["ec" /* wss */],
|
|
9604
9605
|
take: api["Ub" /* topic */],
|
|
9605
9606
|
success: function success(res) {
|
|
@@ -9634,8 +9635,8 @@ var events = [function (tabs, index, that) {
|
|
|
9634
9635
|
if (_this4.$eventBus) {
|
|
9635
9636
|
_this4.$eventBus.$emit('websocket', data);
|
|
9636
9637
|
}
|
|
9637
|
-
if (
|
|
9638
|
-
|
|
9638
|
+
if (util["a" /* default */].win.eventBus) {
|
|
9639
|
+
util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
9639
9640
|
}
|
|
9640
9641
|
}
|
|
9641
9642
|
});
|
|
@@ -9659,7 +9660,7 @@ var events = [function (tabs, index, that) {
|
|
|
9659
9660
|
if (res.permission === false) {
|
|
9660
9661
|
return false;
|
|
9661
9662
|
}
|
|
9662
|
-
var i =
|
|
9663
|
+
var i = util["a" /* default */].indexOfObj(this.newApps, res, 'id');
|
|
9663
9664
|
if (i == -1) {
|
|
9664
9665
|
this.newApps.push(res);
|
|
9665
9666
|
}
|
|
@@ -9688,24 +9689,24 @@ var events = [function (tabs, index, that) {
|
|
|
9688
9689
|
if (res.url) {
|
|
9689
9690
|
if (res.urlopenmode == 1 || res.openModel == 1) {
|
|
9690
9691
|
set = false;
|
|
9691
|
-
|
|
9692
|
+
util["a" /* default */].win.open(res.url);
|
|
9692
9693
|
} else if (res.urlopenmode == 2 || res.openModel == 2) {
|
|
9693
9694
|
set = false;
|
|
9694
|
-
|
|
9695
|
+
util["a" /* default */].win.open(res.url, '_self');
|
|
9695
9696
|
} else {
|
|
9696
|
-
var i =
|
|
9697
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, res, 'id');
|
|
9697
9698
|
this.activeName = res.id;
|
|
9698
9699
|
if (i == -1) {
|
|
9699
9700
|
var obj = this.getMenu(this.menus, res.url);
|
|
9700
9701
|
if (obj) {
|
|
9701
|
-
var n =
|
|
9702
|
+
var n = util["a" /* default */].indexOfObj(this.tabs, obj, 'id');
|
|
9702
9703
|
if (n == -1) {
|
|
9703
9704
|
var tab = this.setIframeType(obj);
|
|
9704
9705
|
this.tabs.push(tab);
|
|
9705
9706
|
this.activeName = tab.id;
|
|
9706
9707
|
} else {
|
|
9707
9708
|
if (obj.method == 'iframe') {
|
|
9708
|
-
obj.url =
|
|
9709
|
+
obj.url = util["a" /* default */].handlerUrl(obj.url);
|
|
9709
9710
|
}
|
|
9710
9711
|
}
|
|
9711
9712
|
} else {
|
|
@@ -9715,7 +9716,7 @@ var events = [function (tabs, index, that) {
|
|
|
9715
9716
|
}
|
|
9716
9717
|
} else {
|
|
9717
9718
|
if (res.method == 'iframe') {
|
|
9718
|
-
res.url =
|
|
9719
|
+
res.url = util["a" /* default */].handlerUrl(res.url);
|
|
9719
9720
|
}
|
|
9720
9721
|
}
|
|
9721
9722
|
}
|
|
@@ -9727,14 +9728,14 @@ var events = [function (tabs, index, that) {
|
|
|
9727
9728
|
this.showMenu = subMenus !== false;
|
|
9728
9729
|
this.showApps = false;
|
|
9729
9730
|
if (subMenus && subMenus.url) {
|
|
9730
|
-
var _i =
|
|
9731
|
+
var _i = util["a" /* default */].indexOfObj(this.tabs, subMenus, 'id');
|
|
9731
9732
|
this.activeName = subMenus.id;
|
|
9732
9733
|
if (_i == -1) {
|
|
9733
9734
|
var _tab5 = this.setIframeType(subMenus);
|
|
9734
9735
|
this.tabs.push(_tab5);
|
|
9735
9736
|
} else {
|
|
9736
9737
|
if (subMenus.method == 'iframe') {
|
|
9737
|
-
subMenus.url =
|
|
9738
|
+
subMenus.url = util["a" /* default */].handlerUrl(subMenus.url);
|
|
9738
9739
|
}
|
|
9739
9740
|
}
|
|
9740
9741
|
}
|
|
@@ -9755,7 +9756,7 @@ var events = [function (tabs, index, that) {
|
|
|
9755
9756
|
this.drawer.mounted = res.mounted;
|
|
9756
9757
|
this.drawer.url = res.url;
|
|
9757
9758
|
if (res.mounted === 'wujie') {
|
|
9758
|
-
this.drawer.name = res.name ||
|
|
9759
|
+
this.drawer.name = res.name || util["a" /* default */].uuid();
|
|
9759
9760
|
}
|
|
9760
9761
|
},
|
|
9761
9762
|
|
|
@@ -9774,8 +9775,10 @@ var events = [function (tabs, index, that) {
|
|
|
9774
9775
|
* @date 2024年9月7日
|
|
9775
9776
|
**/
|
|
9776
9777
|
handlerClickMenu: function handlerClickMenu(res) {
|
|
9778
|
+
var _this5 = this;
|
|
9779
|
+
|
|
9777
9780
|
if (this.recordApp) {
|
|
9778
|
-
|
|
9781
|
+
util["a" /* default */].ajax({
|
|
9779
9782
|
url: api["mb" /* recordUserApp */],
|
|
9780
9783
|
params: {
|
|
9781
9784
|
userId: this.user.userId,
|
|
@@ -9785,14 +9788,24 @@ var events = [function (tabs, index, that) {
|
|
|
9785
9788
|
}
|
|
9786
9789
|
this.showMsg = false;
|
|
9787
9790
|
this.showSet = false;
|
|
9788
|
-
var i =
|
|
9791
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, res, 'id');
|
|
9789
9792
|
this.activeName = res.id;
|
|
9790
9793
|
if (i == -1) {
|
|
9791
9794
|
var tab = this.setIframeType(res);
|
|
9792
9795
|
this.tabs.push(tab);
|
|
9793
9796
|
} else {
|
|
9794
9797
|
if (res.method == 'iframe') {
|
|
9795
|
-
res.url =
|
|
9798
|
+
res.url = util["a" /* default */].handlerUrl(res.url);
|
|
9799
|
+
} else {
|
|
9800
|
+
var _tab6 = this.tabs[i];
|
|
9801
|
+
if (_tab6.method === 'iframe') {
|
|
9802
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url));
|
|
9803
|
+
} else {
|
|
9804
|
+
this.$set(this.tabs[i], 'refresh', false);
|
|
9805
|
+
this.$nextTick(function () {
|
|
9806
|
+
_this5.$set(_this5.tabs[i], 'refresh', true);
|
|
9807
|
+
});
|
|
9808
|
+
}
|
|
9796
9809
|
}
|
|
9797
9810
|
}
|
|
9798
9811
|
},
|
|
@@ -9843,15 +9856,23 @@ var events = [function (tabs, index, that) {
|
|
|
9843
9856
|
* @date 2024年9月7日
|
|
9844
9857
|
**/
|
|
9845
9858
|
handleRefresh: function handleRefresh() {
|
|
9846
|
-
var
|
|
9859
|
+
var _this6 = this;
|
|
9860
|
+
|
|
9861
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
9847
9862
|
var tab = this.tabs[i];
|
|
9848
9863
|
if (tab.method === 'iframe') {
|
|
9849
|
-
tab.url =
|
|
9864
|
+
tab.url = util["a" /* default */].handlerUrl(tab.url);
|
|
9865
|
+
} else {
|
|
9866
|
+
var _tab7 = this.tabs[i];
|
|
9867
|
+
if (_tab7.method === 'iframe') {
|
|
9868
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url));
|
|
9869
|
+
} else {
|
|
9870
|
+
this.$set(this.tabs[i], 'refresh', false);
|
|
9871
|
+
this.$nextTick(function () {
|
|
9872
|
+
_this6.$set(_this6.tabs[i], 'refresh', true);
|
|
9873
|
+
});
|
|
9874
|
+
}
|
|
9850
9875
|
}
|
|
9851
|
-
tab.refresh = false;
|
|
9852
|
-
this.$nextTick(function () {
|
|
9853
|
-
tab.refresh = true;
|
|
9854
|
-
});
|
|
9855
9876
|
},
|
|
9856
9877
|
|
|
9857
9878
|
/**
|
|
@@ -9861,7 +9882,7 @@ var events = [function (tabs, index, that) {
|
|
|
9861
9882
|
**/
|
|
9862
9883
|
handleRemove: function handleRemove(name) {
|
|
9863
9884
|
var len = this.tabs.length - 1;
|
|
9864
|
-
var i =
|
|
9885
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, name, 'id');
|
|
9865
9886
|
if (i > -1) {
|
|
9866
9887
|
this.tabs.splice(i, 1);
|
|
9867
9888
|
if (this.tabs.length == 0) {
|
|
@@ -9929,6 +9950,8 @@ var events = [function (tabs, index, that) {
|
|
|
9929
9950
|
* @date 2024年9月7日
|
|
9930
9951
|
**/
|
|
9931
9952
|
handleClick: function handleClick(res) {
|
|
9953
|
+
var _this7 = this;
|
|
9954
|
+
|
|
9932
9955
|
var type = res.type,
|
|
9933
9956
|
event = res.event,
|
|
9934
9957
|
open = res.open,
|
|
@@ -9937,9 +9960,9 @@ var events = [function (tabs, index, that) {
|
|
|
9937
9960
|
if (event) {
|
|
9938
9961
|
event();
|
|
9939
9962
|
} else if (open) {
|
|
9940
|
-
|
|
9963
|
+
util["a" /* default */].win.open(open);
|
|
9941
9964
|
} else if (link) {
|
|
9942
|
-
|
|
9965
|
+
util["a" /* default */].win.open(link, '_self');
|
|
9943
9966
|
} else {
|
|
9944
9967
|
switch (type) {
|
|
9945
9968
|
case 'quit':
|
|
@@ -9963,15 +9986,23 @@ var events = [function (tabs, index, that) {
|
|
|
9963
9986
|
this.showMsg = false;
|
|
9964
9987
|
break;
|
|
9965
9988
|
case 'home':
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9989
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, this.homePage.id, 'id');
|
|
9990
|
+
if (i == -1) {
|
|
9991
|
+
this.tabs.unshift(this.homePage);
|
|
9992
|
+
} else {
|
|
9993
|
+
var tab = this.tabs[i];
|
|
9994
|
+
if (tab.method === 'iframe') {
|
|
9995
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(tab.url));
|
|
9996
|
+
} else {
|
|
9997
|
+
this.$set(this.tabs[i], 'refresh', false);
|
|
9998
|
+
this.$nextTick(function () {
|
|
9999
|
+
_this7.$set(_this7.tabs[i], 'refresh', true);
|
|
10000
|
+
});
|
|
9970
10001
|
}
|
|
9971
|
-
this.activeName = this.homePage.id;
|
|
9972
|
-
this.showMsg = false;
|
|
9973
|
-
this.showSet = false;
|
|
9974
10002
|
}
|
|
10003
|
+
this.activeName = this.homePage.id;
|
|
10004
|
+
this.showMsg = false;
|
|
10005
|
+
this.showSet = false;
|
|
9975
10006
|
break;
|
|
9976
10007
|
case 'search':
|
|
9977
10008
|
this.handlerSetDrawer(res);
|
|
@@ -9979,7 +10010,7 @@ var events = [function (tabs, index, that) {
|
|
|
9979
10010
|
this.showSet = false;
|
|
9980
10011
|
break;
|
|
9981
10012
|
case 'goView':
|
|
9982
|
-
|
|
10013
|
+
util["a" /* default */].win.open(res.path, '_blank');
|
|
9983
10014
|
break;
|
|
9984
10015
|
}
|
|
9985
10016
|
}
|
|
@@ -9992,25 +10023,25 @@ var events = [function (tabs, index, that) {
|
|
|
9992
10023
|
* @date 2024年9月7日
|
|
9993
10024
|
**/
|
|
9994
10025
|
handleQuit: function handleQuit() {
|
|
9995
|
-
var
|
|
10026
|
+
var _this8 = this;
|
|
9996
10027
|
|
|
9997
10028
|
this.$confirm('确定注销吗?', '退出系统', {
|
|
9998
10029
|
confirmButtonText: '确定',
|
|
9999
10030
|
cancelButtonText: '取消',
|
|
10000
10031
|
type: 'warning'
|
|
10001
10032
|
}).then(function () {
|
|
10002
|
-
|
|
10033
|
+
util["a" /* default */].ajax({ method: 'post', url: api["eb" /* logout */] }).then(function (res) {
|
|
10003
10034
|
if (res.rCode == 0) {
|
|
10004
|
-
|
|
10005
|
-
if (
|
|
10006
|
-
|
|
10035
|
+
util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
10036
|
+
if (_this8.onQuit && typeof _this8.onQuit === 'function') {
|
|
10037
|
+
_this8.onQuit();
|
|
10007
10038
|
} else {
|
|
10008
10039
|
try {
|
|
10009
|
-
var loginPage =
|
|
10040
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
10010
10041
|
if (loginPage) {
|
|
10011
10042
|
var src = void 0;
|
|
10012
|
-
if (!
|
|
10013
|
-
var pathname =
|
|
10043
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
10044
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
10014
10045
|
if (pathname !== '/') {
|
|
10015
10046
|
pathname = pathname.split('/');
|
|
10016
10047
|
pathname.splice(pathname.length - 1);
|
|
@@ -10022,26 +10053,26 @@ var events = [function (tabs, index, that) {
|
|
|
10022
10053
|
} else {
|
|
10023
10054
|
src = loginPage;
|
|
10024
10055
|
}
|
|
10025
|
-
|
|
10026
|
-
} else if (
|
|
10027
|
-
|
|
10056
|
+
util["a" /* default */].win.top.location.href = src;
|
|
10057
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
10058
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
10028
10059
|
} else {
|
|
10029
|
-
var hash =
|
|
10060
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
10030
10061
|
if (hash) {
|
|
10031
|
-
var len =
|
|
10032
|
-
|
|
10062
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
10063
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
10033
10064
|
} else {
|
|
10034
|
-
|
|
10065
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
10035
10066
|
}
|
|
10036
10067
|
}
|
|
10037
10068
|
} catch (error) {
|
|
10038
|
-
|
|
10069
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
10039
10070
|
}
|
|
10040
10071
|
}
|
|
10041
10072
|
}
|
|
10042
10073
|
}).catch(function (err) {
|
|
10043
10074
|
if (err.message && err.message !== 'canceled') {
|
|
10044
|
-
|
|
10075
|
+
_this8.$message.error(err.message);
|
|
10045
10076
|
}
|
|
10046
10077
|
});
|
|
10047
10078
|
}).catch(function (e) {});
|
|
@@ -10086,31 +10117,43 @@ var events = [function (tabs, index, that) {
|
|
|
10086
10117
|
* @date 2024年9月7日
|
|
10087
10118
|
**/
|
|
10088
10119
|
handleOpened: function handleOpened(res) {
|
|
10089
|
-
var
|
|
10120
|
+
var _this9 = this;
|
|
10090
10121
|
|
|
10091
10122
|
if (res === undefined) {
|
|
10092
10123
|
this.sysMsg = [];
|
|
10093
10124
|
} else if (res == false && this.sysMsg.length) {
|
|
10094
10125
|
this.sysMsgOut = setTimeout(function () {
|
|
10095
|
-
|
|
10126
|
+
_this9.sysMsg = [];
|
|
10096
10127
|
}, 3000);
|
|
10097
10128
|
} else if (this.sysMsgOut) {
|
|
10098
10129
|
clearTimeout(this.sysMsgOut);
|
|
10099
10130
|
}
|
|
10100
10131
|
},
|
|
10101
10132
|
jumpMenu: function jumpMenu(res) {
|
|
10133
|
+
var _this10 = this;
|
|
10134
|
+
|
|
10102
10135
|
var apps = res;
|
|
10103
10136
|
if (typeof res === 'string') {
|
|
10104
10137
|
apps = res.split(',');
|
|
10105
10138
|
}
|
|
10106
10139
|
var obj = this.getMenu(this.menus, apps[apps.length - 1]);
|
|
10107
10140
|
if (obj) {
|
|
10108
|
-
var i =
|
|
10109
|
-
var n =
|
|
10141
|
+
var i = util["a" /* default */].indexOfObj(this.tabs, obj, 'id');
|
|
10142
|
+
var n = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
10110
10143
|
this.activeName = obj.id;
|
|
10111
10144
|
if (i == -1) {
|
|
10112
10145
|
var tab = this.setIframeType(obj);
|
|
10113
10146
|
this.tabs.splice(n + 1, 0, tab);
|
|
10147
|
+
} else {
|
|
10148
|
+
var _tab8 = this.tabs[i];
|
|
10149
|
+
if (_tab8.method === 'iframe') {
|
|
10150
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab8.url));
|
|
10151
|
+
} else {
|
|
10152
|
+
this.$set(this.tabs[i], 'refresh', false);
|
|
10153
|
+
this.$nextTick(function () {
|
|
10154
|
+
_this10.$set(_this10.tabs[i], 'refresh', true);
|
|
10155
|
+
});
|
|
10156
|
+
}
|
|
10114
10157
|
}
|
|
10115
10158
|
} else {
|
|
10116
10159
|
this.$message.error('没有此菜单!');
|
|
@@ -10119,13 +10162,13 @@ var events = [function (tabs, index, that) {
|
|
|
10119
10162
|
|
|
10120
10163
|
//监听改变菜单
|
|
10121
10164
|
handleListener: function handleListener() {
|
|
10122
|
-
var
|
|
10165
|
+
var _this11 = this;
|
|
10123
10166
|
|
|
10124
|
-
|
|
10167
|
+
util["a" /* default */].win.addEventListener('message', function (e) {
|
|
10125
10168
|
var msg = e.data;
|
|
10126
10169
|
if (msg.key == 'jump_Menu') {
|
|
10127
10170
|
var res = msg.data1;
|
|
10128
|
-
|
|
10171
|
+
_this11.jumpMenu(res);
|
|
10129
10172
|
}
|
|
10130
10173
|
}, false);
|
|
10131
10174
|
}
|
|
@@ -10150,11 +10193,11 @@ var events = [function (tabs, index, that) {
|
|
|
10150
10193
|
|
|
10151
10194
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
10152
10195
|
src_simplicityvue_type_script_lang_js_,
|
|
10153
|
-
|
|
10154
|
-
|
|
10196
|
+
simplicityvue_type_template_id_5cf6ab5c_scoped_true_render,
|
|
10197
|
+
simplicityvue_type_template_id_5cf6ab5c_scoped_true_staticRenderFns,
|
|
10155
10198
|
false,
|
|
10156
10199
|
null,
|
|
10157
|
-
"
|
|
10200
|
+
"5cf6ab5c",
|
|
10158
10201
|
null
|
|
10159
10202
|
|
|
10160
10203
|
)
|
|
@@ -10814,12 +10857,12 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
10814
10857
|
|
|
10815
10858
|
methods: {
|
|
10816
10859
|
getQrcode: function getQrcode() {
|
|
10817
|
-
this.qrcode =
|
|
10860
|
+
this.qrcode = util["a" /* default */].getStorage('host') + this.userScanBindImgUrl + '&_tt=' + Math.random().toString().split('.')[1];
|
|
10818
10861
|
},
|
|
10819
10862
|
getData: function getData() {
|
|
10820
10863
|
var _this2 = this;
|
|
10821
10864
|
|
|
10822
|
-
|
|
10865
|
+
util["a" /* default */].ajax({
|
|
10823
10866
|
url: api["ab" /* initUserSet */]
|
|
10824
10867
|
}).then(function (res) {
|
|
10825
10868
|
if (res.rCode === 0) {
|
|
@@ -10840,7 +10883,7 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
10840
10883
|
// this.values.officeTel = results.simpleUserInfo.officeTel;
|
|
10841
10884
|
if (results.userScanBindImgUrl) {
|
|
10842
10885
|
_this2.userScanBindImgUrl = results.userScanBindImgUrl;
|
|
10843
|
-
_this2.qrcode =
|
|
10886
|
+
_this2.qrcode = util["a" /* default */].getStorage('host') + results.userScanBindImgUrl;
|
|
10844
10887
|
} else {
|
|
10845
10888
|
_this2.qrcode = '';
|
|
10846
10889
|
}
|
|
@@ -10869,20 +10912,20 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
10869
10912
|
|
|
10870
10913
|
switch (type) {
|
|
10871
10914
|
case 'job':
|
|
10872
|
-
|
|
10915
|
+
util["a" /* default */].ajax({ url: api["vb" /* switchUserTo */], params: { userId: value.value } }).then(function (res) {
|
|
10873
10916
|
if (res.rCode == 0) {
|
|
10874
|
-
|
|
10917
|
+
util["a" /* default */].setStorage({
|
|
10875
10918
|
type: _this3.storage,
|
|
10876
10919
|
key: 'userId',
|
|
10877
10920
|
value: value.value
|
|
10878
10921
|
});
|
|
10879
|
-
|
|
10922
|
+
util["a" /* default */].removeStorage(['mainConfig', 'jump']);
|
|
10880
10923
|
_this3.$message({
|
|
10881
10924
|
message: res.msg,
|
|
10882
10925
|
type: 'success',
|
|
10883
10926
|
duration: 500,
|
|
10884
10927
|
onClose: function onClose() {
|
|
10885
|
-
if (
|
|
10928
|
+
if (util["a" /* default */].win.location.href.indexOf('#/main') > -1 || util["a" /* default */].win.location.href.indexOf('/main.html') > -1) {
|
|
10886
10929
|
location.reload();
|
|
10887
10930
|
} else {
|
|
10888
10931
|
_this3.$router.replace('/main');
|
|
@@ -10907,19 +10950,19 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
10907
10950
|
handleFormSubmit: function handleFormSubmit() {
|
|
10908
10951
|
var _this4 = this;
|
|
10909
10952
|
|
|
10910
|
-
var initLogin =
|
|
10953
|
+
var initLogin = util["a" /* default */].getStorage('initLogin');
|
|
10911
10954
|
initLogin && (initLogin = JSON.parse(initLogin));
|
|
10912
|
-
|
|
10955
|
+
util["a" /* default */].ajax({
|
|
10913
10956
|
url: api["Yb" /* updateUserInfo */],
|
|
10914
10957
|
params: {
|
|
10915
10958
|
email: this.values.email,
|
|
10916
10959
|
officeTel: this.values.officeTel,
|
|
10917
10960
|
phone: this.values.phone,
|
|
10918
|
-
oldPassword: this.secret && initLogin && initLogin.secret && this.values.oldpassword ?
|
|
10961
|
+
oldPassword: this.secret && initLogin && initLogin.secret && this.values.oldpassword ? util["a" /* default */].esmEncrypt({
|
|
10919
10962
|
data: this.values.oldpassword,
|
|
10920
10963
|
key: initLogin.secret
|
|
10921
10964
|
}) : this.values.oldpassword,
|
|
10922
|
-
password: this.secret && initLogin && initLogin.secret && this.values.password ?
|
|
10965
|
+
password: this.secret && initLogin && initLogin.secret && this.values.password ? util["a" /* default */].esmEncrypt({
|
|
10923
10966
|
data: this.values.password,
|
|
10924
10967
|
key: initLogin.secret
|
|
10925
10968
|
}) : this.values.password
|
|
@@ -10933,12 +10976,12 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
10933
10976
|
closeOnClickModal: false,
|
|
10934
10977
|
type: 'warning'
|
|
10935
10978
|
}).then(function () {
|
|
10936
|
-
var loginPage =
|
|
10979
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
10937
10980
|
try {
|
|
10938
10981
|
if (loginPage) {
|
|
10939
10982
|
var src = void 0;
|
|
10940
|
-
if (!
|
|
10941
|
-
var pathname =
|
|
10983
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
10984
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
10942
10985
|
if (pathname !== '/') {
|
|
10943
10986
|
pathname = pathname.split('/');
|
|
10944
10987
|
pathname.splice(pathname.length - 1);
|
|
@@ -10950,27 +10993,27 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
10950
10993
|
} else {
|
|
10951
10994
|
src = loginPage;
|
|
10952
10995
|
}
|
|
10953
|
-
|
|
10954
|
-
} else if (
|
|
10955
|
-
|
|
10996
|
+
util["a" /* default */].win.top.location.href = src;
|
|
10997
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
10998
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
10956
10999
|
} else {
|
|
10957
|
-
var hash =
|
|
11000
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
10958
11001
|
if (hash) {
|
|
10959
|
-
var len =
|
|
10960
|
-
|
|
11002
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
11003
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
10961
11004
|
} else {
|
|
10962
|
-
|
|
11005
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
10963
11006
|
}
|
|
10964
11007
|
}
|
|
10965
11008
|
} catch (error) {
|
|
10966
|
-
|
|
11009
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
10967
11010
|
}
|
|
10968
11011
|
}).catch(function (e) {});
|
|
10969
11012
|
} else {
|
|
10970
11013
|
_this4.$emit('reGetConfig');
|
|
10971
11014
|
var notify = _this4.values.notify.sort().join(',');
|
|
10972
11015
|
if (notify != _this4.notify.split(',').sort().join(',')) {
|
|
10973
|
-
|
|
11016
|
+
util["a" /* default */].ajax({
|
|
10974
11017
|
url: api["Xb" /* updateUserCustomInfo */],
|
|
10975
11018
|
params: {
|
|
10976
11019
|
notify: notify
|
|
@@ -10999,7 +11042,7 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
10999
11042
|
},
|
|
11000
11043
|
repassword: function repassword(rule, value, callback) {
|
|
11001
11044
|
if (this.values.oldpassword && this.values.password && value) {
|
|
11002
|
-
|
|
11045
|
+
util["a" /* default */].identical({ value: [value, this.values.password], callback: callback });
|
|
11003
11046
|
} else {
|
|
11004
11047
|
callback();
|
|
11005
11048
|
return true;
|
|
@@ -11492,7 +11535,7 @@ settingsvue_type_template_id_2d7a058d_render._withStripped = true
|
|
|
11492
11535
|
res = res.toLowerCase();
|
|
11493
11536
|
// const rgb = util.getRgb(res);
|
|
11494
11537
|
// const luma = 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];
|
|
11495
|
-
|
|
11538
|
+
util["a" /* default */].updateTheme(res);
|
|
11496
11539
|
this.color = res;
|
|
11497
11540
|
this.$emit('change', { type: 'theme', value: res });
|
|
11498
11541
|
//this.setTheme(res);
|
|
@@ -11801,7 +11844,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
11801
11844
|
};
|
|
11802
11845
|
},
|
|
11803
11846
|
mounted: function mounted() {
|
|
11804
|
-
|
|
11847
|
+
util["a" /* default */].win.deleteMsg = this.handleRemove;
|
|
11805
11848
|
},
|
|
11806
11849
|
|
|
11807
11850
|
methods: {
|
|
@@ -11811,7 +11854,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
11811
11854
|
|
|
11812
11855
|
if (this.pageNum <= this.pageCount) {
|
|
11813
11856
|
this.loading = true;
|
|
11814
|
-
|
|
11857
|
+
util["a" /* default */].ajax({
|
|
11815
11858
|
url: api["wb" /* sysMsgPage */],
|
|
11816
11859
|
params: {
|
|
11817
11860
|
pageNum: reload ? 1 : this.pageNum,
|
|
@@ -11844,7 +11887,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
11844
11887
|
handleIgnore: function handleIgnore(res, i) {
|
|
11845
11888
|
var _this2 = this;
|
|
11846
11889
|
|
|
11847
|
-
|
|
11890
|
+
util["a" /* default */].ajax({
|
|
11848
11891
|
url: api["W" /* ignoreSysMsg */],
|
|
11849
11892
|
params: {
|
|
11850
11893
|
id: res.id
|
|
@@ -11864,7 +11907,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
11864
11907
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
11865
11908
|
var _this3 = this;
|
|
11866
11909
|
|
|
11867
|
-
|
|
11910
|
+
util["a" /* default */].ajax({
|
|
11868
11911
|
url: api["V" /* ignoreAllSysMsg */]
|
|
11869
11912
|
}).then(function (res) {
|
|
11870
11913
|
_this3.count = 0;
|
|
@@ -11882,7 +11925,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
11882
11925
|
this.count -= 1;
|
|
11883
11926
|
this.msgs.splice(index, 1);
|
|
11884
11927
|
if (this.winopen) {
|
|
11885
|
-
|
|
11928
|
+
util["a" /* default */].win.open(item.handlerUrl);
|
|
11886
11929
|
} else {
|
|
11887
11930
|
this.dialog = {
|
|
11888
11931
|
show: true,
|
|
@@ -12184,7 +12227,7 @@ noticevue_type_template_id_2f7f31eb_render._withStripped = true
|
|
|
12184
12227
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
12185
12228
|
var _this = this;
|
|
12186
12229
|
|
|
12187
|
-
|
|
12230
|
+
util["a" /* default */].ajax({
|
|
12188
12231
|
url: api["V" /* ignoreAllSysMsg */]
|
|
12189
12232
|
}).then(function (res) {
|
|
12190
12233
|
_this.count = 0;
|
|
@@ -12201,7 +12244,7 @@ noticevue_type_template_id_2f7f31eb_render._withStripped = true
|
|
|
12201
12244
|
//处理消息
|
|
12202
12245
|
handleMessage: function handleMessage(item, index) {
|
|
12203
12246
|
if (item.urlopenmode === 1 || this.winopen) {
|
|
12204
|
-
|
|
12247
|
+
util["a" /* default */].win.open(item.handlerUrl);
|
|
12205
12248
|
} else {
|
|
12206
12249
|
this.dialog = {
|
|
12207
12250
|
show: true,
|
|
@@ -12466,8 +12509,8 @@ var defaultvue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
12466
12509
|
|
|
12467
12510
|
|
|
12468
12511
|
var defaultvue_type_script_lang_js_isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
12469
|
-
var log =
|
|
12470
|
-
var appCode =
|
|
12512
|
+
var log = util["a" /* default */].getParams('console');
|
|
12513
|
+
var appCode = util["a" /* default */].getParams('appCode') || util["a" /* default */].getParams('appcode');
|
|
12471
12514
|
/* harmony default export */ var defaultvue_type_script_lang_js_ = ({
|
|
12472
12515
|
name: 'MainDefault',
|
|
12473
12516
|
inheritAttrs: false,
|
|
@@ -12543,7 +12586,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12543
12586
|
storage: {
|
|
12544
12587
|
type: String,
|
|
12545
12588
|
default: function _default() {
|
|
12546
|
-
return
|
|
12589
|
+
return util["a" /* default */].getStorage('storage');
|
|
12547
12590
|
}
|
|
12548
12591
|
},
|
|
12549
12592
|
//是否启用子应用菜单接口
|
|
@@ -12652,11 +12695,11 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12652
12695
|
return this.isSide !== null ? this.isSide : this.sideNav;
|
|
12653
12696
|
},
|
|
12654
12697
|
isHomePage: function isHomePage() {
|
|
12655
|
-
if (
|
|
12698
|
+
if (util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId')) {
|
|
12656
12699
|
return false;
|
|
12657
12700
|
}
|
|
12658
|
-
if (
|
|
12659
|
-
var hash =
|
|
12701
|
+
if (util["a" /* default */].getStorage('mainConfig')) {
|
|
12702
|
+
var hash = util["a" /* default */].win.location.hash;
|
|
12660
12703
|
if (hash && hash.split('?')[0] !== '#/' && hash.split('?')[0] !== '#/main') {
|
|
12661
12704
|
return false;
|
|
12662
12705
|
}
|
|
@@ -12700,7 +12743,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12700
12743
|
|
|
12701
12744
|
//隐藏操作按键
|
|
12702
12745
|
hide: function hide() {
|
|
12703
|
-
var mainConfig =
|
|
12746
|
+
var mainConfig = util["a" /* default */].getStorage('mainConfig');
|
|
12704
12747
|
mainConfig = mainConfig ? JSON.parse(mainConfig) : mainConfig;
|
|
12705
12748
|
var topRightToolHide = '';
|
|
12706
12749
|
if (mainConfig && mainConfig.subsystemExtend && mainConfig.subsystemExtend.topRightToolHide) {
|
|
@@ -12788,7 +12831,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12788
12831
|
handler: function handler(val) {
|
|
12789
12832
|
if (this.set) {
|
|
12790
12833
|
localStorage.setItem('theme', val);
|
|
12791
|
-
|
|
12834
|
+
util["a" /* default */].updateTheme(val);
|
|
12792
12835
|
}
|
|
12793
12836
|
}
|
|
12794
12837
|
}
|
|
@@ -12859,7 +12902,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12859
12902
|
//显示设置面板
|
|
12860
12903
|
showSet: false,
|
|
12861
12904
|
//当前设置的主题
|
|
12862
|
-
color:
|
|
12905
|
+
color: util["a" /* default */].getStorage('theme') ? util["a" /* default */].getStorage('theme') : this.theme,
|
|
12863
12906
|
//显示用户信息
|
|
12864
12907
|
showUserInfo: false,
|
|
12865
12908
|
userInfoContents: undefined,
|
|
@@ -12887,15 +12930,15 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12887
12930
|
};
|
|
12888
12931
|
},
|
|
12889
12932
|
created: function created() {
|
|
12890
|
-
var params =
|
|
12933
|
+
var params = util["a" /* default */].getParams() || {};
|
|
12891
12934
|
if (typeof this.loadHomePage === 'string') {
|
|
12892
12935
|
this.homePage = this.loadHomePage;
|
|
12893
12936
|
}
|
|
12894
12937
|
this.isHeader = params.header;
|
|
12895
12938
|
var sysLogoIco = sessionStorage.getItem('sysLogoIco');
|
|
12896
|
-
sysLogoIco &&
|
|
12939
|
+
sysLogoIco && util["a" /* default */].setFavicon(sysLogoIco);
|
|
12897
12940
|
|
|
12898
|
-
var mainConfig =
|
|
12941
|
+
var mainConfig = util["a" /* default */].getStorage('mainConfig');
|
|
12899
12942
|
if (mainConfig) {
|
|
12900
12943
|
var results = JSON.parse(mainConfig);
|
|
12901
12944
|
if (Object.keys(results).length) {
|
|
@@ -12905,12 +12948,12 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12905
12948
|
},
|
|
12906
12949
|
mounted: function mounted() {
|
|
12907
12950
|
this.handleListener();
|
|
12908
|
-
|
|
12951
|
+
util["a" /* default */].win.addEventListener('popstate', this.stateHandle, false);
|
|
12909
12952
|
},
|
|
12910
12953
|
|
|
12911
12954
|
methods: {
|
|
12912
12955
|
stateHandle: function stateHandle() {
|
|
12913
|
-
|
|
12956
|
+
util["a" /* default */].win.location.reload();
|
|
12914
12957
|
},
|
|
12915
12958
|
menuSuccess: function menuSuccess(res) {
|
|
12916
12959
|
this.menuType = 'custom';
|
|
@@ -12949,7 +12992,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12949
12992
|
renderMenu: function renderMenu() {
|
|
12950
12993
|
if (this.data !== undefined && this.data.length) {
|
|
12951
12994
|
this.menus = JSON.parse(JSON.stringify(this.data));
|
|
12952
|
-
var applicationid =
|
|
12995
|
+
var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
|
|
12953
12996
|
if (applicationid) {
|
|
12954
12997
|
var ids = this.getId(this.menus, applicationid);
|
|
12955
12998
|
if (ids) {
|
|
@@ -12964,13 +13007,13 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12964
13007
|
//this.navIds = ids;
|
|
12965
13008
|
this.setTitle(_ids[0]);
|
|
12966
13009
|
}
|
|
12967
|
-
} else if (
|
|
12968
|
-
var hash =
|
|
13010
|
+
} else if (util["a" /* default */].win.location.hash) {
|
|
13011
|
+
var hash = util["a" /* default */].win.location.hash;
|
|
12969
13012
|
if (hash) {
|
|
12970
13013
|
hash = hash.split('?')[0];
|
|
12971
13014
|
}
|
|
12972
13015
|
if (hash !== '#/' && hash !== '#/main') {
|
|
12973
|
-
var _ids2 = this.getId(this.menus,
|
|
13016
|
+
var _ids2 = this.getId(this.menus, util["a" /* default */].win.location.hash);
|
|
12974
13017
|
if (_ids2) {
|
|
12975
13018
|
this.defaultActive = _ids2;
|
|
12976
13019
|
//this.navIds = ids;
|
|
@@ -12996,7 +13039,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
12996
13039
|
if (!color) {
|
|
12997
13040
|
return;
|
|
12998
13041
|
}
|
|
12999
|
-
|
|
13042
|
+
util["a" /* default */].ajax({
|
|
13000
13043
|
url: api["Xb" /* updateUserCustomInfo */],
|
|
13001
13044
|
params: { color: escape(color.toLowerCase()) },
|
|
13002
13045
|
data: { color: escape(color.toLowerCase()) }
|
|
@@ -13004,7 +13047,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13004
13047
|
if (res.rCode === 0) {
|
|
13005
13048
|
_this.color = color;
|
|
13006
13049
|
localStorage.setItem('theme', color);
|
|
13007
|
-
var _mainConfig = JSON.parse(
|
|
13050
|
+
var _mainConfig = JSON.parse(util["a" /* default */].getStorage('mainConfig'));
|
|
13008
13051
|
_mainConfig.userStyle.color = _this.color;
|
|
13009
13052
|
sessionStorage.setItem('mainConfig', JSON.stringify(_mainConfig));
|
|
13010
13053
|
_this.$emit('setting', 'theme', _this.color);
|
|
@@ -13040,7 +13083,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13040
13083
|
this.initWebSocket();
|
|
13041
13084
|
}
|
|
13042
13085
|
sessionStorage.setItem('mainConfig', JSON.stringify(results));
|
|
13043
|
-
|
|
13086
|
+
util["a" /* default */].setStorage({
|
|
13044
13087
|
type: this.storage,
|
|
13045
13088
|
key: {
|
|
13046
13089
|
userId: results.userModel.userId,
|
|
@@ -13059,8 +13102,8 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13059
13102
|
this.results[i] = results[i].split(',');
|
|
13060
13103
|
}
|
|
13061
13104
|
if (i === 'indexUrl' && results[i] && this.loadHomePage) {
|
|
13062
|
-
var applicationid =
|
|
13063
|
-
var hash =
|
|
13105
|
+
var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
|
|
13106
|
+
var hash = util["a" /* default */].win.location.hash;
|
|
13064
13107
|
if (hash) {
|
|
13065
13108
|
hash = hash.split('?')[0];
|
|
13066
13109
|
}
|
|
@@ -13090,15 +13133,15 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13090
13133
|
document.title = results[i];
|
|
13091
13134
|
}
|
|
13092
13135
|
if (i === 'loginPage' && results[i]) {
|
|
13093
|
-
|
|
13136
|
+
util["a" /* default */].setStorage('loginPage', results[i]);
|
|
13094
13137
|
}
|
|
13095
13138
|
if (i === 'sysLogoIco' && results[i]) {
|
|
13096
13139
|
sessionStorage.setItem('sysLogoIco', results[i]);
|
|
13097
|
-
|
|
13140
|
+
util["a" /* default */].setFavicon(results[i]);
|
|
13098
13141
|
}
|
|
13099
13142
|
if (i === 'userStyle' && results[i] && results[i].color) {
|
|
13100
13143
|
var color = unescape(results[i].color).toLowerCase();
|
|
13101
|
-
if (
|
|
13144
|
+
if (util["a" /* default */].startWith(color, '#')) {
|
|
13102
13145
|
this.color = color;
|
|
13103
13146
|
}
|
|
13104
13147
|
}
|
|
@@ -13111,14 +13154,14 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13111
13154
|
}
|
|
13112
13155
|
if (results[i].webPageWatermark) {
|
|
13113
13156
|
try {
|
|
13114
|
-
|
|
13115
|
-
|
|
13157
|
+
util["a" /* default */].win.top.webPageWatermark = results[i].webPageWatermark;
|
|
13158
|
+
util["a" /* default */].watermark(results[i].webPageWatermark);
|
|
13116
13159
|
} catch (error) {
|
|
13117
|
-
|
|
13160
|
+
util["a" /* default */].win.postMessage({ type: 2, content: results[i].webPageWatermark }, '*');
|
|
13118
13161
|
}
|
|
13119
13162
|
}
|
|
13120
13163
|
if (results[i].loginPage) {
|
|
13121
|
-
|
|
13164
|
+
util["a" /* default */].setStorage('loginPage', results[i].loginPage);
|
|
13122
13165
|
}
|
|
13123
13166
|
}
|
|
13124
13167
|
store["a" /* default */].set(i, results[i]);
|
|
@@ -13138,7 +13181,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13138
13181
|
reGetConfig: function reGetConfig() {
|
|
13139
13182
|
var _this2 = this;
|
|
13140
13183
|
|
|
13141
|
-
|
|
13184
|
+
util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
|
|
13142
13185
|
if (res && res.rCode === 0) {
|
|
13143
13186
|
var results = JSON.parse(JSON.stringify(res.results));
|
|
13144
13187
|
_this2.setConfig(results, 1);
|
|
@@ -13169,9 +13212,9 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13169
13212
|
this.hideSubMenu = hide;
|
|
13170
13213
|
}
|
|
13171
13214
|
var option = { url: res, isUrl: isUrl, param: param };
|
|
13172
|
-
if (
|
|
13215
|
+
if (util["a" /* default */].isObject(res)) {
|
|
13173
13216
|
if (res.urlopenmode == 1) {
|
|
13174
|
-
|
|
13217
|
+
util["a" /* default */].win.open(res.url);
|
|
13175
13218
|
return;
|
|
13176
13219
|
} else if (res.urlopenmode == 2) {
|
|
13177
13220
|
location.href = res.url;
|
|
@@ -13196,7 +13239,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13196
13239
|
if (routes) {
|
|
13197
13240
|
var path = this.hasRouter(routes, option.url);
|
|
13198
13241
|
if (path) {
|
|
13199
|
-
var params =
|
|
13242
|
+
var params = util["a" /* default */].getParams({ url: option.url });
|
|
13200
13243
|
this.$router.push({
|
|
13201
13244
|
path: path,
|
|
13202
13245
|
query: params
|
|
@@ -13327,7 +13370,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13327
13370
|
|
|
13328
13371
|
var param = this.menuCode ? { menuCode: this.menuCode } : {};
|
|
13329
13372
|
var params = defaultvue_type_script_lang_js_extends({}, this.param, param);
|
|
13330
|
-
|
|
13373
|
+
util["a" /* default */].ajax({ url: this.action, params: params }).then(function (res) {
|
|
13331
13374
|
if (res.rCode === 0) {
|
|
13332
13375
|
if (res.results && res.results.length) {
|
|
13333
13376
|
_this4.menus = JSON.parse(JSON.stringify(res.results));
|
|
@@ -13350,19 +13393,19 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13350
13393
|
|
|
13351
13394
|
//设置默认左侧导航
|
|
13352
13395
|
setMenu: function setMenu(res) {
|
|
13353
|
-
var applicationid =
|
|
13396
|
+
var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
|
|
13354
13397
|
if (applicationid) {
|
|
13355
13398
|
var ids = this.getId(this.menus, applicationid);
|
|
13356
13399
|
if (ids) {
|
|
13357
13400
|
this.defaultActive = ids;
|
|
13358
13401
|
}
|
|
13359
|
-
} else if (
|
|
13360
|
-
var hash =
|
|
13402
|
+
} else if (util["a" /* default */].win.location.hash) {
|
|
13403
|
+
var hash = util["a" /* default */].win.location.hash;
|
|
13361
13404
|
if (hash) {
|
|
13362
13405
|
hash = hash.split('?')[0];
|
|
13363
13406
|
}
|
|
13364
13407
|
if (hash !== '#/' && hash !== '#/main') {
|
|
13365
|
-
var _ids4 = this.getId(this.menus,
|
|
13408
|
+
var _ids4 = this.getId(this.menus, util["a" /* default */].win.location.hash);
|
|
13366
13409
|
if (_ids4) {
|
|
13367
13410
|
this.defaultActive = _ids4;
|
|
13368
13411
|
//this.navIds = ids;
|
|
@@ -13381,7 +13424,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13381
13424
|
this.isDefault = false;
|
|
13382
13425
|
this.setDefault(res, this.defaultActive);
|
|
13383
13426
|
} else {
|
|
13384
|
-
if (this.homePage || !
|
|
13427
|
+
if (this.homePage || !util["a" /* default */].getStorage('mainConfig')) {
|
|
13385
13428
|
this.isDefault = true;
|
|
13386
13429
|
if (this.homePage && (!this.defaultActive || !this.defaultActive.length)) {
|
|
13387
13430
|
var _ids6 = this.getId(this.menus, this.homePage);
|
|
@@ -13448,7 +13491,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13448
13491
|
if (id && this.menu[0].id !== id) {
|
|
13449
13492
|
this.active.push(id);
|
|
13450
13493
|
} else {
|
|
13451
|
-
var _hash =
|
|
13494
|
+
var _hash = util["a" /* default */].win.location.hash;
|
|
13452
13495
|
if (_hash) {
|
|
13453
13496
|
_hash = _hash.split('?')[0];
|
|
13454
13497
|
if (_hash !== '#/' && _hash !== '#/main') {
|
|
@@ -13632,14 +13675,14 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13632
13675
|
},
|
|
13633
13676
|
setUrl: function setUrl(url, param) {
|
|
13634
13677
|
var obj = param ? param : {};
|
|
13635
|
-
var params =
|
|
13678
|
+
var params = util["a" /* default */].getParams({ url: url }, true);
|
|
13636
13679
|
for (var i in params) {
|
|
13637
13680
|
if (i != 'model' && i != 'view' && i != '_baseUrl') {
|
|
13638
13681
|
obj[i] = params[i];
|
|
13639
13682
|
}
|
|
13640
13683
|
}
|
|
13641
13684
|
var _url = params._baseUrl ? params._baseUrl : './primary.html';
|
|
13642
|
-
return
|
|
13685
|
+
return util["a" /* default */].urlJoinParams({ url: _url, param: obj });
|
|
13643
13686
|
},
|
|
13644
13687
|
|
|
13645
13688
|
//应用导航交互
|
|
@@ -13873,7 +13916,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13873
13916
|
this.handleSet();
|
|
13874
13917
|
break;
|
|
13875
13918
|
case 'goView':
|
|
13876
|
-
|
|
13919
|
+
util["a" /* default */].win.open(res.path, '_blank');
|
|
13877
13920
|
break;
|
|
13878
13921
|
}
|
|
13879
13922
|
this.$emit('handler-click', res);
|
|
@@ -13884,7 +13927,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13884
13927
|
var _this8 = this;
|
|
13885
13928
|
|
|
13886
13929
|
if (this.method === 'iframe') {
|
|
13887
|
-
this.page =
|
|
13930
|
+
this.page = util["a" /* default */].handlerUrl(this.page);
|
|
13888
13931
|
} else {
|
|
13889
13932
|
this.refresh = false;
|
|
13890
13933
|
this.$nextTick(function () {
|
|
@@ -13908,18 +13951,18 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13908
13951
|
this.pid = res.pid;
|
|
13909
13952
|
}
|
|
13910
13953
|
}
|
|
13911
|
-
if (
|
|
13954
|
+
if (util["a" /* default */].win.location.hash === page && prevPage === page) {
|
|
13912
13955
|
this.refresh = true;
|
|
13913
13956
|
return;
|
|
13914
13957
|
}
|
|
13915
13958
|
if (type == 1) {
|
|
13916
|
-
|
|
13959
|
+
util["a" /* default */].win.open(page);
|
|
13917
13960
|
} else if (type == 2) {
|
|
13918
13961
|
location.href = page;
|
|
13919
13962
|
} else if (type == 3 || this.loadWujie === false || this.downgrade && defaultvue_type_script_lang_js_isIE) {
|
|
13920
13963
|
this.method = 'iframe';
|
|
13921
13964
|
this.refresh = false;
|
|
13922
|
-
this.page =
|
|
13965
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
13923
13966
|
} else if (page) {
|
|
13924
13967
|
var urls = page.split('?');
|
|
13925
13968
|
if (urls[0].indexOf('.js') > 1) {
|
|
@@ -13932,19 +13975,19 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13932
13975
|
} else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
|
|
13933
13976
|
this.method = 'iframe';
|
|
13934
13977
|
this.refresh = false;
|
|
13935
|
-
this.page =
|
|
13978
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
13936
13979
|
} else {
|
|
13937
13980
|
if (urls[0].indexOf('.html') === -1 && urls[0].indexOf('#/') === -1) {
|
|
13938
13981
|
this.method = 'iframe';
|
|
13939
13982
|
this.refresh = false;
|
|
13940
|
-
this.page =
|
|
13983
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
13941
13984
|
} else {
|
|
13942
13985
|
this.method = 'router';
|
|
13943
13986
|
var routes = this.$router.options.routes;
|
|
13944
13987
|
if (routes) {
|
|
13945
13988
|
var path = this.hasRouter(routes, urls[0]);
|
|
13946
13989
|
if (path) {
|
|
13947
|
-
var params =
|
|
13990
|
+
var params = util["a" /* default */].getParams({ url: page });
|
|
13948
13991
|
if (param) {
|
|
13949
13992
|
params = defaultvue_type_script_lang_js_extends({}, params, param);
|
|
13950
13993
|
}
|
|
@@ -13962,14 +14005,14 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13962
14005
|
_this9.refresh = true;
|
|
13963
14006
|
});
|
|
13964
14007
|
} else {
|
|
13965
|
-
var urlopenmode =
|
|
14008
|
+
var urlopenmode = util["a" /* default */].getParams({
|
|
13966
14009
|
url: page,
|
|
13967
14010
|
name: 'urlopenmode'
|
|
13968
14011
|
});
|
|
13969
14012
|
if (this.loadWujie === false || this.downgrade && defaultvue_type_script_lang_js_isIE || urlopenmode == 3) {
|
|
13970
14013
|
this.method = 'iframe';
|
|
13971
14014
|
this.refresh = false;
|
|
13972
|
-
this.page =
|
|
14015
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
13973
14016
|
} else {
|
|
13974
14017
|
this.method = 'wujie';
|
|
13975
14018
|
this.wjName = res && res.appCode ? res.appCode : 'application';
|
|
@@ -13982,7 +14025,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13982
14025
|
} else {
|
|
13983
14026
|
this.method = 'iframe';
|
|
13984
14027
|
this.refresh = false;
|
|
13985
|
-
this.page =
|
|
14028
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
13986
14029
|
this.$nextTick(function () {
|
|
13987
14030
|
_this9.refresh = true;
|
|
13988
14031
|
});
|
|
@@ -14105,7 +14148,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14105
14148
|
handleListener: function handleListener() {
|
|
14106
14149
|
var _this10 = this;
|
|
14107
14150
|
|
|
14108
|
-
|
|
14151
|
+
util["a" /* default */].win.addEventListener('message', function (e) {
|
|
14109
14152
|
var msg = e.data;
|
|
14110
14153
|
if (msg.key == 'jump_Menu') {
|
|
14111
14154
|
var res = msg.data1;
|
|
@@ -14121,7 +14164,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14121
14164
|
initWebSocket: function initWebSocket() {
|
|
14122
14165
|
var _this11 = this;
|
|
14123
14166
|
|
|
14124
|
-
this.webSocket =
|
|
14167
|
+
this.webSocket = util["a" /* default */].socket({
|
|
14125
14168
|
url: api["ec" /* wss */],
|
|
14126
14169
|
take: api["Ub" /* topic */],
|
|
14127
14170
|
success: function success(res) {
|
|
@@ -14156,8 +14199,8 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14156
14199
|
if (_this11.$eventBus) {
|
|
14157
14200
|
_this11.$eventBus.$emit('websocket', data);
|
|
14158
14201
|
}
|
|
14159
|
-
if (
|
|
14160
|
-
|
|
14202
|
+
if (util["a" /* default */].win.eventBus) {
|
|
14203
|
+
util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
14161
14204
|
}
|
|
14162
14205
|
}
|
|
14163
14206
|
});
|
|
@@ -14196,7 +14239,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
14196
14239
|
if (this.webSocket) {
|
|
14197
14240
|
this.webSocket.destroy();
|
|
14198
14241
|
}
|
|
14199
|
-
|
|
14242
|
+
util["a" /* default */].win.removeEventListener('popstate', this.tateHandle);
|
|
14200
14243
|
}
|
|
14201
14244
|
});
|
|
14202
14245
|
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=script&lang=js&
|
|
@@ -14268,20 +14311,20 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
14268
14311
|
};
|
|
14269
14312
|
},
|
|
14270
14313
|
created: function created() {
|
|
14271
|
-
this.params =
|
|
14314
|
+
this.params = util["a" /* default */].getParams() || {};
|
|
14272
14315
|
this.appCode = this.params.appCode;
|
|
14273
14316
|
this.getConfig(this.params);
|
|
14274
14317
|
},
|
|
14275
14318
|
mounted: function mounted() {
|
|
14276
|
-
if (
|
|
14277
|
-
|
|
14278
|
-
|
|
14319
|
+
if (util["a" /* default */].win.$wujie) {
|
|
14320
|
+
util["a" /* default */].win.$wujie.bus.$on('changeTheme', function (res) {
|
|
14321
|
+
util["a" /* default */].updateTheme(res);
|
|
14279
14322
|
});
|
|
14280
14323
|
}
|
|
14281
|
-
|
|
14282
|
-
|
|
14283
|
-
|
|
14284
|
-
|
|
14324
|
+
util["a" /* default */].win.reLogin = this.handleReLogin;
|
|
14325
|
+
util["a" /* default */].win.windowOpen = this.openPage;
|
|
14326
|
+
util["a" /* default */].win.refresh = this.$refs.main.handleRefresh;
|
|
14327
|
+
util["a" /* default */].win.jumpMenu = this.$refs.main.jumpMenu;
|
|
14285
14328
|
},
|
|
14286
14329
|
|
|
14287
14330
|
methods: {
|
|
@@ -14323,13 +14366,13 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
14323
14366
|
console.log('handleReLogin');
|
|
14324
14367
|
sessionStorage.setItem('remind', 1);
|
|
14325
14368
|
_this.$confirm(msg, btn).then(function () {
|
|
14326
|
-
|
|
14327
|
-
var loginPage =
|
|
14369
|
+
util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
14370
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
14328
14371
|
try {
|
|
14329
14372
|
if (loginPage) {
|
|
14330
14373
|
var src = void 0;
|
|
14331
|
-
if (!
|
|
14332
|
-
var pathname =
|
|
14374
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
14375
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
14333
14376
|
if (pathname !== '/') {
|
|
14334
14377
|
pathname = pathname.split('/');
|
|
14335
14378
|
pathname.splice(pathname.length - 1);
|
|
@@ -14341,20 +14384,20 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
14341
14384
|
} else {
|
|
14342
14385
|
src = loginPage;
|
|
14343
14386
|
}
|
|
14344
|
-
|
|
14345
|
-
} else if (
|
|
14346
|
-
|
|
14387
|
+
util["a" /* default */].win.top.location.href = src;
|
|
14388
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
14389
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
14347
14390
|
} else {
|
|
14348
|
-
var hash =
|
|
14391
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
14349
14392
|
if (hash) {
|
|
14350
|
-
var len =
|
|
14351
|
-
|
|
14393
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
14394
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
14352
14395
|
} else {
|
|
14353
|
-
|
|
14396
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
14354
14397
|
}
|
|
14355
14398
|
}
|
|
14356
14399
|
} catch (error) {
|
|
14357
|
-
|
|
14400
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
14358
14401
|
}
|
|
14359
14402
|
}).catch(function (e) {
|
|
14360
14403
|
sessionStorage.removeItem('remind');
|
|
@@ -14371,13 +14414,13 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
14371
14414
|
getConfig: function getConfig(query) {
|
|
14372
14415
|
var _this2 = this;
|
|
14373
14416
|
|
|
14374
|
-
var token =
|
|
14417
|
+
var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
|
|
14375
14418
|
if (!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType')) {
|
|
14376
14419
|
return false;
|
|
14377
14420
|
}
|
|
14378
|
-
var mainConfig =
|
|
14421
|
+
var mainConfig = util["a" /* default */].getStorage('mainConfig');
|
|
14379
14422
|
if (!mainConfig || mainConfig == '{}') {
|
|
14380
|
-
|
|
14423
|
+
util["a" /* default */].getMainConfig(function (res) {
|
|
14381
14424
|
_this2.$refs.main.init(res);
|
|
14382
14425
|
});
|
|
14383
14426
|
}
|
|
@@ -14390,7 +14433,7 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
14390
14433
|
**/
|
|
14391
14434
|
openPage: function openPage(url, name, width, height) {
|
|
14392
14435
|
var src = url;
|
|
14393
|
-
if (!
|
|
14436
|
+
if (!util["a" /* default */].startWith(url, ['http', '/'], true)) {
|
|
14394
14437
|
var pathname = window.location.pathname;
|
|
14395
14438
|
if (pathname !== '/') {
|
|
14396
14439
|
pathname = pathname.split('/');
|
|
@@ -14403,15 +14446,15 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
14403
14446
|
var w = 0;
|
|
14404
14447
|
var h = 0;
|
|
14405
14448
|
try {
|
|
14406
|
-
w = width ? width :
|
|
14407
|
-
h = height ? height :
|
|
14449
|
+
w = width ? width : util["a" /* default */].win.top.screen.availWidth - 10;
|
|
14450
|
+
h = height ? height : util["a" /* default */].win.top.screen.availHeight - 60;
|
|
14408
14451
|
} catch (error) {
|
|
14409
|
-
w = width ? width :
|
|
14410
|
-
h = height ? height :
|
|
14452
|
+
w = width ? width : util["a" /* default */].win.screen.availWidth - 10;
|
|
14453
|
+
h = height ? height : util["a" /* default */].win.screen.availHeight - 60;
|
|
14411
14454
|
}
|
|
14412
|
-
return
|
|
14455
|
+
return util["a" /* default */].win.open(src, name, 'width=' + w + 'px,height=' + h + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
|
|
14413
14456
|
} else {
|
|
14414
|
-
return
|
|
14457
|
+
return util["a" /* default */].win.open(src);
|
|
14415
14458
|
}
|
|
14416
14459
|
}
|
|
14417
14460
|
},
|