eoss-ui 0.5.84 → 0.5.85
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 +17 -16
- package/lib/button.js +17 -16
- package/lib/checkbox-group.js +17 -16
- package/lib/config/api.js +3 -2
- package/lib/data-table-form.js +17 -16
- package/lib/data-table.js +417 -262
- package/lib/date-picker.js +17 -16
- package/lib/dialog.js +17 -16
- package/lib/eoss-ui.common.js +6189 -13674
- package/lib/flow-group.js +17 -16
- package/lib/flow-list.js +17 -16
- package/lib/flow.js +17 -16
- package/lib/form.js +5647 -13458
- package/lib/handle-user.js +17 -16
- package/lib/handler.js +23 -18
- package/lib/icon.js +17 -16
- package/lib/index.js +1 -1
- package/lib/input-number.js +17 -16
- package/lib/input.js +17 -16
- package/lib/login.js +28 -19
- package/lib/main.js +579 -418
- package/lib/nav.js +17 -16
- package/lib/notify.js +3 -2
- package/lib/page.js +17 -16
- package/lib/pagination.js +17 -16
- package/lib/player.js +17 -16
- package/lib/qr-code.js +17 -16
- package/lib/radio-group.js +17 -16
- package/lib/retrial-auth.js +17 -16
- package/lib/select-ganged.js +17 -16
- package/lib/select.js +18 -17
- package/lib/selector-panel.js +17 -16
- package/lib/selector.js +17 -16
- package/lib/sizer.js +17 -16
- package/lib/steps.js +17 -16
- package/lib/switch.js +17 -16
- package/lib/table-form.js +17 -16
- package/lib/tabs.js +17 -16
- package/lib/theme-chalk/calendar.css +1 -1
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/tips.js +17 -16
- package/lib/tree-group.js +17 -16
- package/lib/tree.js +17 -16
- package/lib/upload.js +30 -29
- package/lib/utils/util.js +14 -14
- package/lib/wujie.js +17 -16
- package/lib/wxlogin.js +17 -16
- package/package.json +2 -2
- package/packages/data-table/src/children.vue +3 -2
- package/packages/data-table/src/column.vue +2 -4
- package/packages/data-table/src/main.vue +150 -66
- package/packages/data-table/src/sizer.vue +51 -22
- package/packages/form/src/main.vue +119 -2103
- package/packages/handler/src/main.vue +5 -0
- package/packages/login/src/main.vue +12 -1
- package/packages/main/src/default/index.vue +35 -54
- package/packages/main/src/public/search.vue +138 -31
- package/packages/main/src/simplicity/apps.vue +12 -0
- package/packages/main/src/simplicity/handler.vue +0 -2
- package/packages/main/src/simplicity/index.vue +68 -32
- package/packages/select/src/main.vue +1 -1
- package/packages/theme-chalk/lib/calendar.css +1 -1
- package/packages/theme-chalk/lib/data-table.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/src/calendar.scss +3 -3
- package/packages/theme-chalk/src/data-table.scss +12 -0
- package/packages/theme-chalk/src/main.scss +2 -1
- package/packages/theme-chalk/src/simplicity.scss +15 -2
- package/packages/upload/src/main.vue +16 -12
- package/src/config/api.js +3 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +2 -2
package/lib/main.js
CHANGED
|
@@ -2022,13 +2022,13 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
2022
2022
|
if (key) {
|
|
2023
2023
|
if (key.indexOf(',') > -1) {
|
|
2024
2024
|
var keys = key.split(',');
|
|
2025
|
-
for (var
|
|
2026
|
-
var k = keys[
|
|
2027
|
-
if (typeof target === 'string' && arry[
|
|
2028
|
-
return
|
|
2025
|
+
for (var n = 0; n < keys.length; n++) {
|
|
2026
|
+
var k = keys[n];
|
|
2027
|
+
if (typeof target === 'string' && arry[i][k] === target) {
|
|
2028
|
+
return i;
|
|
2029
2029
|
}
|
|
2030
|
-
if (target[k] === arry[
|
|
2031
|
-
return
|
|
2030
|
+
if (target[k] === arry[i][k]) {
|
|
2031
|
+
return i;
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
} else {
|
|
@@ -2771,22 +2771,22 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2771
2771
|
localStorage.setItem(key[i], value);
|
|
2772
2772
|
}
|
|
2773
2773
|
} else {
|
|
2774
|
-
for (var
|
|
2775
|
-
var val = _typeof(key[
|
|
2776
|
-
localStorage.setItem(
|
|
2774
|
+
for (var _i7 in key) {
|
|
2775
|
+
var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
|
|
2776
|
+
localStorage.setItem(_i7, val);
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
2779
2779
|
} else {
|
|
2780
2780
|
if (typeof key === 'string') {
|
|
2781
2781
|
sessionStorage.setItem(key, value);
|
|
2782
2782
|
} else if (Array.isArray(key)) {
|
|
2783
|
-
for (var
|
|
2784
|
-
sessionStorage.setItem(key[
|
|
2783
|
+
for (var _i8 in key) {
|
|
2784
|
+
sessionStorage.setItem(key[_i8], value);
|
|
2785
2785
|
}
|
|
2786
2786
|
} else {
|
|
2787
|
-
for (var
|
|
2788
|
-
var _val = _typeof(key[
|
|
2789
|
-
sessionStorage.setItem(
|
|
2787
|
+
for (var _i9 in key) {
|
|
2788
|
+
var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
|
|
2789
|
+
sessionStorage.setItem(_i9, _val);
|
|
2790
2790
|
}
|
|
2791
2791
|
}
|
|
2792
2792
|
}
|
|
@@ -3435,7 +3435,7 @@ var sysMsgPage = '/main2/notify/sysMsgPage'; // 获取系统消息
|
|
|
3435
3435
|
var ignoreSysMsg = '/main2/notify/ignoreSysMsg'; // 忽略系统消息
|
|
3436
3436
|
var ignoreAllSysMsg = '/main2/notify/ignoreAllSysMsg'; // 忽略全部系统消息
|
|
3437
3437
|
// 框架 - 搜索
|
|
3438
|
-
var searchType = '/
|
|
3438
|
+
var searchType = '/oceansearch/v2/search/catalog'; // 搜索分类类型
|
|
3439
3439
|
|
|
3440
3440
|
// 附件相关
|
|
3441
3441
|
var getAdjunctProperties = '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
|
|
@@ -3611,7 +3611,8 @@ var sendDelete = '/notify2/notifySendRecord/deleteById';
|
|
|
3611
3611
|
var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
|
|
3612
3612
|
|
|
3613
3613
|
// 表单结构
|
|
3614
|
-
|
|
3614
|
+
|
|
3615
|
+
var formContents = '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
|
|
3615
3616
|
|
|
3616
3617
|
/***/ }),
|
|
3617
3618
|
/* 2 */
|
|
@@ -4038,8 +4039,8 @@ render._withStripped = true
|
|
|
4038
4039
|
|
|
4039
4040
|
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=a3c25372&
|
|
4040
4041
|
|
|
4041
|
-
// 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=
|
|
4042
|
-
var
|
|
4042
|
+
// 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=7b4d5e88&scoped=true&
|
|
4043
|
+
var simplicityvue_type_template_id_7b4d5e88_scoped_true_render = function () {
|
|
4043
4044
|
var _vm = this
|
|
4044
4045
|
var _h = _vm.$createElement
|
|
4045
4046
|
var _c = _vm._self._c || _h
|
|
@@ -4054,40 +4055,45 @@ var simplicityvue_type_template_id_bafba8ca_scoped_true_render = function () {
|
|
|
4054
4055
|
attrs: { src: _vm.mainLogo },
|
|
4055
4056
|
})
|
|
4056
4057
|
: _vm._e(),
|
|
4057
|
-
_c(
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4058
|
+
_c(
|
|
4059
|
+
"div",
|
|
4060
|
+
{
|
|
4061
|
+
staticClass: "es-simplicity-org-name es-text-ellipsis-row2",
|
|
4062
|
+
attrs: {
|
|
4063
|
+
title:
|
|
4064
|
+
_vm.simpleUserInfo.orgShortName || _vm.simpleUserInfo.orgName,
|
|
4065
|
+
},
|
|
4066
|
+
},
|
|
4067
|
+
[
|
|
4068
|
+
_vm._v(
|
|
4069
|
+
"\n " +
|
|
4070
|
+
_vm._s(
|
|
4071
|
+
_vm.simpleUserInfo.orgShortName || _vm.simpleUserInfo.orgName
|
|
4072
|
+
) +
|
|
4073
|
+
"\n "
|
|
4074
|
+
),
|
|
4075
|
+
]
|
|
4076
|
+
),
|
|
4068
4077
|
_c(
|
|
4069
4078
|
"el-popover",
|
|
4070
4079
|
{
|
|
4071
4080
|
staticClass: "es-simplicity-user-popover",
|
|
4072
4081
|
attrs: { placement: "right-start", width: "360", trigger: "click" },
|
|
4073
|
-
on: { show: _vm.showUserInfo },
|
|
4074
4082
|
},
|
|
4075
4083
|
[
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
})
|
|
4090
|
-
: _vm._e(),
|
|
4084
|
+
_c("user", {
|
|
4085
|
+
attrs: {
|
|
4086
|
+
user: _vm.user,
|
|
4087
|
+
notifyList: _vm.notifyList,
|
|
4088
|
+
notify: _vm.notify,
|
|
4089
|
+
contents: _vm.userInfoContents,
|
|
4090
|
+
},
|
|
4091
|
+
on: {
|
|
4092
|
+
success: _vm.handleSuccess,
|
|
4093
|
+
change: _vm.handleChangeConfig,
|
|
4094
|
+
close: _vm.handlerClose,
|
|
4095
|
+
},
|
|
4096
|
+
}),
|
|
4091
4097
|
_c("avatar", {
|
|
4092
4098
|
attrs: { slot: "reference", user: _vm.user, size: 56 },
|
|
4093
4099
|
slot: "reference",
|
|
@@ -4297,6 +4303,7 @@ var simplicityvue_type_template_id_bafba8ca_scoped_true_render = function () {
|
|
|
4297
4303
|
applications: _vm.applications,
|
|
4298
4304
|
business: _vm.business,
|
|
4299
4305
|
systems: _vm.systems,
|
|
4306
|
+
user: _vm.user,
|
|
4300
4307
|
},
|
|
4301
4308
|
on: {
|
|
4302
4309
|
"update:visible": function ($event) {
|
|
@@ -4466,14 +4473,7 @@ var simplicityvue_type_template_id_bafba8ca_scoped_true_render = function () {
|
|
|
4466
4473
|
attrs: {
|
|
4467
4474
|
slot: "append",
|
|
4468
4475
|
data: _vm.handleData,
|
|
4469
|
-
hide:
|
|
4470
|
-
{},
|
|
4471
|
-
{
|
|
4472
|
-
home: _vm.indexUrl ? false : true,
|
|
4473
|
-
index: _vm.doorIndex ? false : true,
|
|
4474
|
-
},
|
|
4475
|
-
_vm.hides
|
|
4476
|
-
),
|
|
4476
|
+
hide: _vm.hide,
|
|
4477
4477
|
online: _vm.userNums,
|
|
4478
4478
|
"notice-num": _vm.notice,
|
|
4479
4479
|
},
|
|
@@ -4618,7 +4618,16 @@ var simplicityvue_type_template_id_bafba8ca_scoped_true_render = function () {
|
|
|
4618
4618
|
},
|
|
4619
4619
|
},
|
|
4620
4620
|
},
|
|
4621
|
-
[
|
|
4621
|
+
[
|
|
4622
|
+
_c("search", {
|
|
4623
|
+
attrs: {
|
|
4624
|
+
apps: _vm.applications,
|
|
4625
|
+
menus: _vm.menus,
|
|
4626
|
+
menuIcon: _vm.menuIcon,
|
|
4627
|
+
},
|
|
4628
|
+
on: { select: _vm.handleSelect },
|
|
4629
|
+
}),
|
|
4630
|
+
],
|
|
4622
4631
|
1
|
|
4623
4632
|
),
|
|
4624
4633
|
_c(
|
|
@@ -4656,11 +4665,11 @@ var simplicityvue_type_template_id_bafba8ca_scoped_true_render = function () {
|
|
|
4656
4665
|
),
|
|
4657
4666
|
])
|
|
4658
4667
|
}
|
|
4659
|
-
var
|
|
4660
|
-
|
|
4668
|
+
var simplicityvue_type_template_id_7b4d5e88_scoped_true_staticRenderFns = []
|
|
4669
|
+
simplicityvue_type_template_id_7b4d5e88_scoped_true_render._withStripped = true
|
|
4661
4670
|
|
|
4662
4671
|
|
|
4663
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
4672
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=7b4d5e88&scoped=true&
|
|
4664
4673
|
|
|
4665
4674
|
// 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&
|
|
4666
4675
|
var avatarvue_type_template_id_1560e8bf_scoped_true_render = function () {
|
|
@@ -4710,7 +4719,7 @@ avatarvue_type_template_id_1560e8bf_scoped_true_render._withStripped = true
|
|
|
4710
4719
|
// CONCATENATED MODULE: ./packages/main/src/simplicity/avatar.vue?vue&type=template&id=1560e8bf&scoped=true&
|
|
4711
4720
|
|
|
4712
4721
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
4713
|
-
var
|
|
4722
|
+
var utils_util = __webpack_require__(0);
|
|
4714
4723
|
|
|
4715
4724
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4716
4725
|
var api = __webpack_require__(1);
|
|
@@ -4784,7 +4793,7 @@ var api = __webpack_require__(1);
|
|
|
4784
4793
|
methods: {
|
|
4785
4794
|
handleSuccess: function handleSuccess(response, file) {
|
|
4786
4795
|
var res = file.response;
|
|
4787
|
-
if (res.url &&
|
|
4796
|
+
if (res.url && utils_util["a" /* default */].startWith(res.url, ['http', 'https', '/'])) {
|
|
4788
4797
|
this.userHead = res.url;
|
|
4789
4798
|
} else {
|
|
4790
4799
|
this.userHead = api["r" /* downloadByAdjunctId */] + '?adjunctId=' + res.adjunctId;
|
|
@@ -4818,8 +4827,8 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
4818
4827
|
)
|
|
4819
4828
|
|
|
4820
4829
|
/* harmony default export */ var avatar = (component.exports);
|
|
4821
|
-
// 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/handler.vue?vue&type=template&id=
|
|
4822
|
-
var
|
|
4830
|
+
// 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/handler.vue?vue&type=template&id=7eac3976&scoped=true&
|
|
4831
|
+
var handlervue_type_template_id_7eac3976_scoped_true_render = function () {
|
|
4823
4832
|
var _vm = this
|
|
4824
4833
|
var _h = _vm.$createElement
|
|
4825
4834
|
var _c = _vm._self._c || _h
|
|
@@ -4899,11 +4908,11 @@ var handlervue_type_template_id_36a30d46_scoped_true_render = function () {
|
|
|
4899
4908
|
2
|
|
4900
4909
|
)
|
|
4901
4910
|
}
|
|
4902
|
-
var
|
|
4903
|
-
|
|
4911
|
+
var handlervue_type_template_id_7eac3976_scoped_true_staticRenderFns = []
|
|
4912
|
+
handlervue_type_template_id_7eac3976_scoped_true_render._withStripped = true
|
|
4904
4913
|
|
|
4905
4914
|
|
|
4906
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=
|
|
4915
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=7eac3976&scoped=true&
|
|
4907
4916
|
|
|
4908
4917
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/handler.vue?vue&type=script&lang=js&
|
|
4909
4918
|
//
|
|
@@ -4955,7 +4964,6 @@ handlervue_type_template_id_36a30d46_scoped_true_render._withStripped = true
|
|
|
4955
4964
|
//
|
|
4956
4965
|
|
|
4957
4966
|
|
|
4958
|
-
var doorIndex = sessionStorage.getItem('doorIndex');
|
|
4959
4967
|
/* harmony default export */ var handlervue_type_script_lang_js_ = ({
|
|
4960
4968
|
name: 'Handler',
|
|
4961
4969
|
components: {},
|
|
@@ -4975,7 +4983,6 @@ var doorIndex = sessionStorage.getItem('doorIndex');
|
|
|
4975
4983
|
default: function _default() {
|
|
4976
4984
|
return {
|
|
4977
4985
|
type: 'index',
|
|
4978
|
-
link: doorIndex,
|
|
4979
4986
|
icon: 'es-icon-home',
|
|
4980
4987
|
title: '门户'
|
|
4981
4988
|
};
|
|
@@ -5055,14 +5062,14 @@ var doorIndex = sessionStorage.getItem('doorIndex');
|
|
|
5055
5062
|
});
|
|
5056
5063
|
},
|
|
5057
5064
|
isClick: function isClick() {
|
|
5058
|
-
var useCaseCodes =
|
|
5065
|
+
var useCaseCodes = utils_util["a" /* default */].getStorage('useCaseCodes');
|
|
5059
5066
|
return useCaseCodes && useCaseCodes.includes('sys_user_onlineList');
|
|
5060
5067
|
}
|
|
5061
5068
|
},
|
|
5062
5069
|
watch: {},
|
|
5063
5070
|
created: function created() {
|
|
5064
5071
|
//this.time = util.timeCycle() + '好!';
|
|
5065
|
-
this.date =
|
|
5072
|
+
this.date = utils_util["a" /* default */].formatDate('', 'yyyy年M月d日');
|
|
5066
5073
|
},
|
|
5067
5074
|
mounted: function mounted() {
|
|
5068
5075
|
this.getTime();
|
|
@@ -5074,7 +5081,7 @@ var doorIndex = sessionStorage.getItem('doorIndex');
|
|
|
5074
5081
|
|
|
5075
5082
|
this.timer && clearInterval(this.timer);
|
|
5076
5083
|
this.timer = setInterval(function () {
|
|
5077
|
-
_this2.time =
|
|
5084
|
+
_this2.time = utils_util["a" /* default */].formatDate('', 'HH:mm:ss');
|
|
5078
5085
|
});
|
|
5079
5086
|
},
|
|
5080
5087
|
isShow: function isShow(res) {
|
|
@@ -5104,11 +5111,11 @@ var doorIndex = sessionStorage.getItem('doorIndex');
|
|
|
5104
5111
|
|
|
5105
5112
|
var handler_component = Object(componentNormalizer["a" /* default */])(
|
|
5106
5113
|
simplicity_handlervue_type_script_lang_js_,
|
|
5107
|
-
|
|
5108
|
-
|
|
5114
|
+
handlervue_type_template_id_7eac3976_scoped_true_render,
|
|
5115
|
+
handlervue_type_template_id_7eac3976_scoped_true_staticRenderFns,
|
|
5109
5116
|
false,
|
|
5110
5117
|
null,
|
|
5111
|
-
"
|
|
5118
|
+
"7eac3976",
|
|
5112
5119
|
null
|
|
5113
5120
|
|
|
5114
5121
|
)
|
|
@@ -5501,10 +5508,10 @@ menu_listvue_type_template_id_43b0ff18_scoped_true_render._withStripped = true
|
|
|
5501
5508
|
this.defaultActive = res.id;
|
|
5502
5509
|
if (res.url) {
|
|
5503
5510
|
if (res.urlopenmode == 1) {
|
|
5504
|
-
|
|
5511
|
+
utils_util["a" /* default */].win.open(res.url);
|
|
5505
5512
|
return;
|
|
5506
5513
|
} else if (res.urlopenmode == 2) {
|
|
5507
|
-
|
|
5514
|
+
utils_util["a" /* default */].win.open(res.url, '_self');
|
|
5508
5515
|
return;
|
|
5509
5516
|
}
|
|
5510
5517
|
this.$emit('command', res);
|
|
@@ -5801,8 +5808,8 @@ var sub_menu_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5801
5808
|
)
|
|
5802
5809
|
|
|
5803
5810
|
/* harmony default export */ var sub_menu = (sub_menu_component.exports);
|
|
5804
|
-
// 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=
|
|
5805
|
-
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=37754599&scoped=true&
|
|
5812
|
+
var appsvue_type_template_id_37754599_scoped_true_render = function () {
|
|
5806
5813
|
var this$1 = this
|
|
5807
5814
|
var _vm = this
|
|
5808
5815
|
var _h = _vm.$createElement
|
|
@@ -6214,11 +6221,11 @@ var appsvue_type_template_id_8d4e39ba_scoped_true_render = function () {
|
|
|
6214
6221
|
]
|
|
6215
6222
|
)
|
|
6216
6223
|
}
|
|
6217
|
-
var
|
|
6218
|
-
|
|
6224
|
+
var appsvue_type_template_id_37754599_scoped_true_staticRenderFns = []
|
|
6225
|
+
appsvue_type_template_id_37754599_scoped_true_render._withStripped = true
|
|
6219
6226
|
|
|
6220
6227
|
|
|
6221
|
-
// 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=37754599&scoped=true&
|
|
6222
6229
|
|
|
6223
6230
|
// EXTERNAL MODULE: external "throttle-debounce"
|
|
6224
6231
|
var external_throttle_debounce_ = __webpack_require__(11);
|
|
@@ -6418,10 +6425,12 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
6418
6425
|
//
|
|
6419
6426
|
|
|
6420
6427
|
|
|
6428
|
+
|
|
6421
6429
|
/* harmony default export */ var appsvue_type_script_lang_js_ = ({
|
|
6422
6430
|
name: 'Apps',
|
|
6423
6431
|
components: {},
|
|
6424
6432
|
props: {
|
|
6433
|
+
user: Object,
|
|
6425
6434
|
visible: Boolean,
|
|
6426
6435
|
//菜单、应用默认图标
|
|
6427
6436
|
menuIcon: String,
|
|
@@ -6566,6 +6575,13 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
6566
6575
|
}
|
|
6567
6576
|
},
|
|
6568
6577
|
handleClick: function handleClick(res) {
|
|
6578
|
+
util.ajax({
|
|
6579
|
+
url: api["mb" /* recordUserApp */],
|
|
6580
|
+
params: {
|
|
6581
|
+
userId: this.user.userId,
|
|
6582
|
+
appId: res.id
|
|
6583
|
+
}
|
|
6584
|
+
}).then(function () {}).catch(function () {});
|
|
6569
6585
|
this.$emit('click', res);
|
|
6570
6586
|
},
|
|
6571
6587
|
|
|
@@ -6599,11 +6615,11 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
6599
6615
|
|
|
6600
6616
|
var apps_component = Object(componentNormalizer["a" /* default */])(
|
|
6601
6617
|
simplicity_appsvue_type_script_lang_js_,
|
|
6602
|
-
|
|
6603
|
-
|
|
6618
|
+
appsvue_type_template_id_37754599_scoped_true_render,
|
|
6619
|
+
appsvue_type_template_id_37754599_scoped_true_staticRenderFns,
|
|
6604
6620
|
false,
|
|
6605
6621
|
null,
|
|
6606
|
-
"
|
|
6622
|
+
"37754599",
|
|
6607
6623
|
null
|
|
6608
6624
|
|
|
6609
6625
|
)
|
|
@@ -6968,19 +6984,19 @@ userinfovue_type_template_id_9a76ed7c_render._withStripped = true
|
|
|
6968
6984
|
handleFormSubmit: function handleFormSubmit() {
|
|
6969
6985
|
var _this2 = this;
|
|
6970
6986
|
|
|
6971
|
-
var initLogin =
|
|
6987
|
+
var initLogin = utils_util["a" /* default */].getStorage('initLogin');
|
|
6972
6988
|
initLogin && (initLogin = JSON.parse(initLogin));
|
|
6973
|
-
|
|
6989
|
+
utils_util["a" /* default */].ajax({
|
|
6974
6990
|
url: api["Zb" /* updateUserInfo */],
|
|
6975
6991
|
params: {
|
|
6976
6992
|
email: this.model.email,
|
|
6977
6993
|
officeTel: this.model.officeTel,
|
|
6978
6994
|
phone: this.model.phone,
|
|
6979
|
-
oldPassword: this.secret && initLogin && initLogin.secret && this.model.oldpassword ?
|
|
6995
|
+
oldPassword: this.secret && initLogin && initLogin.secret && this.model.oldpassword ? utils_util["a" /* default */].esmEncrypt({
|
|
6980
6996
|
data: this.model.oldpassword,
|
|
6981
6997
|
key: initLogin.secret
|
|
6982
6998
|
}) : this.model.oldpassword,
|
|
6983
|
-
password: this.secret && initLogin && initLogin.secret && this.model.password ?
|
|
6999
|
+
password: this.secret && initLogin && initLogin.secret && this.model.password ? utils_util["a" /* default */].esmEncrypt({
|
|
6984
7000
|
data: this.model.password,
|
|
6985
7001
|
key: initLogin.secret
|
|
6986
7002
|
}) : this.model.password
|
|
@@ -6994,12 +7010,12 @@ userinfovue_type_template_id_9a76ed7c_render._withStripped = true
|
|
|
6994
7010
|
closeOnClickModal: false,
|
|
6995
7011
|
type: 'warning'
|
|
6996
7012
|
}).then(function () {
|
|
6997
|
-
var loginPage =
|
|
7013
|
+
var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
6998
7014
|
try {
|
|
6999
7015
|
if (loginPage) {
|
|
7000
7016
|
var src = void 0;
|
|
7001
|
-
if (!
|
|
7002
|
-
var pathname =
|
|
7017
|
+
if (!utils_util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
7018
|
+
var pathname = utils_util["a" /* default */].win.top.location.pathname;
|
|
7003
7019
|
if (pathname !== '/') {
|
|
7004
7020
|
pathname = pathname.split('/');
|
|
7005
7021
|
pathname.splice(pathname.length - 1);
|
|
@@ -7011,20 +7027,20 @@ userinfovue_type_template_id_9a76ed7c_render._withStripped = true
|
|
|
7011
7027
|
} else {
|
|
7012
7028
|
src = loginPage;
|
|
7013
7029
|
}
|
|
7014
|
-
|
|
7015
|
-
} else if (
|
|
7016
|
-
|
|
7030
|
+
utils_util["a" /* default */].win.top.location.href = src;
|
|
7031
|
+
} else if (utils_util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
7032
|
+
utils_util["a" /* default */].win.top.location.href = './login.html';
|
|
7017
7033
|
} else {
|
|
7018
|
-
var hash =
|
|
7034
|
+
var hash = utils_util["a" /* default */].win.top.location.hash;
|
|
7019
7035
|
if (hash) {
|
|
7020
|
-
var len =
|
|
7021
|
-
|
|
7036
|
+
var len = utils_util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
7037
|
+
utils_util["a" /* default */].win.top.location.href = utils_util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
7022
7038
|
} else {
|
|
7023
|
-
|
|
7039
|
+
utils_util["a" /* default */].win.top.location.href = '/login.html';
|
|
7024
7040
|
}
|
|
7025
7041
|
}
|
|
7026
7042
|
} catch (error) {
|
|
7027
|
-
|
|
7043
|
+
utils_util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
7028
7044
|
}
|
|
7029
7045
|
}).catch(function (e) {});
|
|
7030
7046
|
}
|
|
@@ -7036,7 +7052,7 @@ userinfovue_type_template_id_9a76ed7c_render._withStripped = true
|
|
|
7036
7052
|
},
|
|
7037
7053
|
repassword: function repassword(rule, value, callback) {
|
|
7038
7054
|
if (this.model.oldpassword && this.model.password && value) {
|
|
7039
|
-
|
|
7055
|
+
utils_util["a" /* default */].identical({ value: [value, this.model.password], callback: callback });
|
|
7040
7056
|
} else {
|
|
7041
7057
|
callback();
|
|
7042
7058
|
return true;
|
|
@@ -7193,7 +7209,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7193
7209
|
getData: function getData() {
|
|
7194
7210
|
var _this2 = this;
|
|
7195
7211
|
|
|
7196
|
-
|
|
7212
|
+
utils_util["a" /* default */].ajax({
|
|
7197
7213
|
url: api["ab" /* initUserSet */]
|
|
7198
7214
|
}).then(function (res) {
|
|
7199
7215
|
if (res.rCode === 0) {
|
|
@@ -7233,7 +7249,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7233
7249
|
var _this3 = this;
|
|
7234
7250
|
|
|
7235
7251
|
var notify = this.checked.join(',');
|
|
7236
|
-
|
|
7252
|
+
utils_util["a" /* default */].ajax({
|
|
7237
7253
|
method: 'post',
|
|
7238
7254
|
url: api["Yb" /* updateUserCustomInfo */],
|
|
7239
7255
|
data: {
|
|
@@ -7263,25 +7279,25 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7263
7279
|
var _this4 = this;
|
|
7264
7280
|
|
|
7265
7281
|
if (this.user.identityId !== res.id) {
|
|
7266
|
-
|
|
7282
|
+
utils_util["a" /* default */].ajax({
|
|
7267
7283
|
method: 'post',
|
|
7268
7284
|
url: api["wb" /* switchUserTo */],
|
|
7269
7285
|
data: { userId: res.value }
|
|
7270
7286
|
}).then(function (res) {
|
|
7271
7287
|
if (res.rCode == 0) {
|
|
7272
7288
|
_this4.$emit('close');
|
|
7273
|
-
|
|
7289
|
+
utils_util["a" /* default */].setStorage({
|
|
7274
7290
|
type: _this4.storage,
|
|
7275
7291
|
key: 'userId',
|
|
7276
7292
|
value: res.value
|
|
7277
7293
|
});
|
|
7278
|
-
|
|
7294
|
+
utils_util["a" /* default */].removeStorage(['mainConfig', 'jump']);
|
|
7279
7295
|
_this4.$message({
|
|
7280
7296
|
message: res.msg,
|
|
7281
7297
|
type: 'success',
|
|
7282
7298
|
duration: 500,
|
|
7283
7299
|
onClose: function onClose() {
|
|
7284
|
-
if (
|
|
7300
|
+
if (utils_util["a" /* default */].win.location.href.indexOf('#/main') > -1 || utils_util["a" /* default */].win.location.href.indexOf('/main.html') > -1) {
|
|
7285
7301
|
location.reload();
|
|
7286
7302
|
} else {
|
|
7287
7303
|
_this4.$router.replace('/main');
|
|
@@ -7640,7 +7656,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7640
7656
|
};
|
|
7641
7657
|
},
|
|
7642
7658
|
mounted: function mounted() {
|
|
7643
|
-
|
|
7659
|
+
utils_util["a" /* default */].win.deleteMsg = this.handleRemove;
|
|
7644
7660
|
},
|
|
7645
7661
|
|
|
7646
7662
|
methods: {
|
|
@@ -7650,7 +7666,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7650
7666
|
|
|
7651
7667
|
if (this.pageNum <= this.pageCount) {
|
|
7652
7668
|
this.loading = true;
|
|
7653
|
-
|
|
7669
|
+
utils_util["a" /* default */].ajax({
|
|
7654
7670
|
url: api["xb" /* sysMsgPage */],
|
|
7655
7671
|
params: {
|
|
7656
7672
|
pageNum: reload ? 1 : this.pageNum,
|
|
@@ -7683,7 +7699,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7683
7699
|
handleIgnore: function handleIgnore(res, i) {
|
|
7684
7700
|
var _this2 = this;
|
|
7685
7701
|
|
|
7686
|
-
|
|
7702
|
+
utils_util["a" /* default */].ajax({
|
|
7687
7703
|
url: api["W" /* ignoreSysMsg */],
|
|
7688
7704
|
params: {
|
|
7689
7705
|
id: res.id
|
|
@@ -7703,7 +7719,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7703
7719
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
7704
7720
|
var _this3 = this;
|
|
7705
7721
|
|
|
7706
|
-
|
|
7722
|
+
utils_util["a" /* default */].ajax({
|
|
7707
7723
|
url: api["V" /* ignoreAllSysMsg */]
|
|
7708
7724
|
}).then(function (res) {
|
|
7709
7725
|
_this3.count = 0;
|
|
@@ -7721,7 +7737,7 @@ messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
|
7721
7737
|
this.count -= 1;
|
|
7722
7738
|
this.msgs.splice(index, 1);
|
|
7723
7739
|
if (this.winopen) {
|
|
7724
|
-
|
|
7740
|
+
utils_util["a" /* default */].win.open(item.handlerUrl);
|
|
7725
7741
|
} else {
|
|
7726
7742
|
this.dialog = {
|
|
7727
7743
|
show: true,
|
|
@@ -8048,7 +8064,7 @@ noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
|
8048
8064
|
handleIgnore: function handleIgnore(res, i) {
|
|
8049
8065
|
var _this = this;
|
|
8050
8066
|
|
|
8051
|
-
|
|
8067
|
+
utils_util["a" /* default */].ajax({
|
|
8052
8068
|
url: api["W" /* ignoreSysMsg */],
|
|
8053
8069
|
params: {
|
|
8054
8070
|
id: res.id
|
|
@@ -8067,7 +8083,7 @@ noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
|
8067
8083
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
8068
8084
|
var _this2 = this;
|
|
8069
8085
|
|
|
8070
|
-
|
|
8086
|
+
utils_util["a" /* default */].ajax({
|
|
8071
8087
|
url: api["V" /* ignoreAllSysMsg */]
|
|
8072
8088
|
}).then(function (res) {
|
|
8073
8089
|
_this2.msgs = [];
|
|
@@ -8083,7 +8099,7 @@ noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
|
8083
8099
|
//处理消息
|
|
8084
8100
|
handleMessage: function handleMessage(item, index) {
|
|
8085
8101
|
if (item.urlopenmode === 1 || this.winopen) {
|
|
8086
|
-
|
|
8102
|
+
utils_util["a" /* default */].win.open(item.handlerUrl);
|
|
8087
8103
|
} else {
|
|
8088
8104
|
this.dialog = {
|
|
8089
8105
|
show: true,
|
|
@@ -8319,7 +8335,7 @@ settingsvue_type_template_id_48437ba0_render._withStripped = true
|
|
|
8319
8335
|
res = res.toLowerCase();
|
|
8320
8336
|
// const rgb = util.getRgb(res);
|
|
8321
8337
|
// const luma = 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];
|
|
8322
|
-
|
|
8338
|
+
utils_util["a" /* default */].updateTheme(res);
|
|
8323
8339
|
this.color = res;
|
|
8324
8340
|
this.$emit('change', { type: 'theme', value: res });
|
|
8325
8341
|
//this.setTheme(res);
|
|
@@ -8411,7 +8427,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
8411
8427
|
|
|
8412
8428
|
methods: {
|
|
8413
8429
|
jump: function jump() {
|
|
8414
|
-
var params =
|
|
8430
|
+
var params = utils_util["a" /* default */].getParams({ url: this.url });
|
|
8415
8431
|
this.$router.push({
|
|
8416
8432
|
path: this.path,
|
|
8417
8433
|
query: _extends({}, this.query, params)
|
|
@@ -8557,8 +8573,8 @@ var online_component = Object(componentNormalizer["a" /* default */])(
|
|
|
8557
8573
|
)
|
|
8558
8574
|
|
|
8559
8575
|
/* harmony default export */ var online = (online_component.exports);
|
|
8560
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=template&id=
|
|
8561
|
-
var
|
|
8576
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=template&id=13661892&
|
|
8577
|
+
var searchvue_type_template_id_13661892_render = function () {
|
|
8562
8578
|
var _vm = this
|
|
8563
8579
|
var _h = _vm.$createElement
|
|
8564
8580
|
var _c = _vm._self._c || _h
|
|
@@ -8645,6 +8661,11 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8645
8661
|
key: ele.id,
|
|
8646
8662
|
staticClass:
|
|
8647
8663
|
"es-public-search-list-item",
|
|
8664
|
+
on: {
|
|
8665
|
+
click: function ($event) {
|
|
8666
|
+
_vm.handleClick(ele, item)
|
|
8667
|
+
},
|
|
8668
|
+
},
|
|
8648
8669
|
},
|
|
8649
8670
|
[
|
|
8650
8671
|
_c(
|
|
@@ -8656,7 +8677,7 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8656
8677
|
style: _vm.setStyle(ele, index),
|
|
8657
8678
|
},
|
|
8658
8679
|
"es-icon",
|
|
8659
|
-
_vm.getIcon(ele,
|
|
8680
|
+
_vm.getIcon(ele, item),
|
|
8660
8681
|
false
|
|
8661
8682
|
)
|
|
8662
8683
|
),
|
|
@@ -8669,7 +8690,11 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8669
8690
|
[
|
|
8670
8691
|
_vm._v(
|
|
8671
8692
|
"\n " +
|
|
8672
|
-
_vm._s(
|
|
8693
|
+
_vm._s(
|
|
8694
|
+
ele.name ||
|
|
8695
|
+
ele.title ||
|
|
8696
|
+
ele.text
|
|
8697
|
+
) +
|
|
8673
8698
|
"\n "
|
|
8674
8699
|
),
|
|
8675
8700
|
]
|
|
@@ -8779,8 +8804,14 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8779
8804
|
{
|
|
8780
8805
|
name: "loading",
|
|
8781
8806
|
rawName: "v-loading",
|
|
8782
|
-
value: _vm.loadings[item.id || String(index
|
|
8783
|
-
expression: "loadings[item.id || String(index
|
|
8807
|
+
value: _vm.loadings[item.id || String(index)],
|
|
8808
|
+
expression: "loadings[item.id || String(index)]",
|
|
8809
|
+
},
|
|
8810
|
+
{
|
|
8811
|
+
name: "show",
|
|
8812
|
+
rawName: "v-show",
|
|
8813
|
+
value: _vm.hides.includes(item.name),
|
|
8814
|
+
expression: "hides.includes(item.name)",
|
|
8784
8815
|
},
|
|
8785
8816
|
],
|
|
8786
8817
|
key: item.id,
|
|
@@ -8796,10 +8827,10 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8796
8827
|
_c(
|
|
8797
8828
|
"el-scrollbar",
|
|
8798
8829
|
{
|
|
8799
|
-
staticClass: "es-scrollbar",
|
|
8830
|
+
staticClass: "es-scrollbar es-public-search-scrollbar",
|
|
8800
8831
|
attrs: {
|
|
8801
8832
|
"infinite-scroll": function () {
|
|
8802
|
-
_vm.
|
|
8833
|
+
_vm.handleSearchd(item, index)
|
|
8803
8834
|
},
|
|
8804
8835
|
"infinite-scroll-disabled": _vm.disabled,
|
|
8805
8836
|
"infinite-scroll-immediate": false,
|
|
@@ -8826,6 +8857,11 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8826
8857
|
{
|
|
8827
8858
|
key: ele.id,
|
|
8828
8859
|
staticClass: "es-public-search-list-item",
|
|
8860
|
+
on: {
|
|
8861
|
+
click: function ($event) {
|
|
8862
|
+
_vm.handleClick(ele, item)
|
|
8863
|
+
},
|
|
8864
|
+
},
|
|
8829
8865
|
},
|
|
8830
8866
|
[
|
|
8831
8867
|
_c(
|
|
@@ -8836,7 +8872,7 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8836
8872
|
style: _vm.setStyle(ele, index),
|
|
8837
8873
|
},
|
|
8838
8874
|
"es-icon",
|
|
8839
|
-
_vm.getIcon(ele),
|
|
8875
|
+
_vm.getIcon(ele, item),
|
|
8840
8876
|
false
|
|
8841
8877
|
)
|
|
8842
8878
|
),
|
|
@@ -8846,7 +8882,7 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8846
8882
|
[
|
|
8847
8883
|
_vm._v(
|
|
8848
8884
|
"\n " +
|
|
8849
|
-
_vm._s(ele.name || ele.title) +
|
|
8885
|
+
_vm._s(ele.name || ele.title || ele.text) +
|
|
8850
8886
|
"\n "
|
|
8851
8887
|
),
|
|
8852
8888
|
]
|
|
@@ -8895,8 +8931,10 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8895
8931
|
}),
|
|
8896
8932
|
0
|
|
8897
8933
|
),
|
|
8898
|
-
_vm.noMore[item.id || String(index
|
|
8899
|
-
? _c("p",
|
|
8934
|
+
_vm.noMore[item.id || String(index)]
|
|
8935
|
+
? _c("p", { staticClass: "es-public-search-no-more" }, [
|
|
8936
|
+
_vm._v("\n 没有更多了\n "),
|
|
8937
|
+
])
|
|
8900
8938
|
: _vm._e(),
|
|
8901
8939
|
]
|
|
8902
8940
|
),
|
|
@@ -8911,11 +8949,11 @@ var searchvue_type_template_id_19fcf182_render = function () {
|
|
|
8911
8949
|
1
|
|
8912
8950
|
)
|
|
8913
8951
|
}
|
|
8914
|
-
var
|
|
8915
|
-
|
|
8952
|
+
var searchvue_type_template_id_13661892_staticRenderFns = []
|
|
8953
|
+
searchvue_type_template_id_13661892_render._withStripped = true
|
|
8916
8954
|
|
|
8917
8955
|
|
|
8918
|
-
// CONCATENATED MODULE: ./packages/main/src/public/search.vue?vue&type=template&id=
|
|
8956
|
+
// CONCATENATED MODULE: ./packages/main/src/public/search.vue?vue&type=template&id=13661892&
|
|
8919
8957
|
|
|
8920
8958
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=script&lang=js&
|
|
8921
8959
|
var searchvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -9053,6 +9091,14 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9053
9091
|
//
|
|
9054
9092
|
//
|
|
9055
9093
|
//
|
|
9094
|
+
//
|
|
9095
|
+
//
|
|
9096
|
+
//
|
|
9097
|
+
//
|
|
9098
|
+
//
|
|
9099
|
+
//
|
|
9100
|
+
//
|
|
9101
|
+
//
|
|
9056
9102
|
|
|
9057
9103
|
|
|
9058
9104
|
|
|
@@ -9061,6 +9107,22 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9061
9107
|
name: 'Search',
|
|
9062
9108
|
components: {},
|
|
9063
9109
|
props: {
|
|
9110
|
+
menuIcon: {
|
|
9111
|
+
type: String,
|
|
9112
|
+
default: 'es-icon-application'
|
|
9113
|
+
},
|
|
9114
|
+
menus: {
|
|
9115
|
+
type: Array,
|
|
9116
|
+
default: function _default() {
|
|
9117
|
+
return [];
|
|
9118
|
+
}
|
|
9119
|
+
},
|
|
9120
|
+
apps: {
|
|
9121
|
+
type: Array,
|
|
9122
|
+
default: function _default() {
|
|
9123
|
+
return [];
|
|
9124
|
+
}
|
|
9125
|
+
},
|
|
9064
9126
|
searchType: {
|
|
9065
9127
|
type: String,
|
|
9066
9128
|
default: api["rb" /* searchType */]
|
|
@@ -9068,6 +9130,12 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9068
9130
|
pageSize: {
|
|
9069
9131
|
type: Number,
|
|
9070
9132
|
default: 10
|
|
9133
|
+
},
|
|
9134
|
+
hides: {
|
|
9135
|
+
type: Array,
|
|
9136
|
+
default: function _default() {
|
|
9137
|
+
return [];
|
|
9138
|
+
}
|
|
9071
9139
|
}
|
|
9072
9140
|
},
|
|
9073
9141
|
data: function data() {
|
|
@@ -9122,6 +9190,9 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9122
9190
|
this.handleSearchAll = Object(external_throttle_debounce_["debounce"])(500, function (res) {
|
|
9123
9191
|
_this.searchAll(res);
|
|
9124
9192
|
});
|
|
9193
|
+
this.handleSearchd = Object(external_throttle_debounce_["debounce"])(500, function (obj, index) {
|
|
9194
|
+
_this.handleSearch(obj, index);
|
|
9195
|
+
});
|
|
9125
9196
|
},
|
|
9126
9197
|
created: function created() {
|
|
9127
9198
|
this.getTypes();
|
|
@@ -9129,33 +9200,35 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9129
9200
|
mounted: function mounted() {},
|
|
9130
9201
|
|
|
9131
9202
|
methods: {
|
|
9132
|
-
getIcon: function getIcon(res) {
|
|
9203
|
+
getIcon: function getIcon(res, item) {
|
|
9133
9204
|
var icon = void 0;
|
|
9134
9205
|
var cls = void 0;
|
|
9135
|
-
if (res.icon) {
|
|
9136
|
-
icon = this.icons[res.icon.toLowerCase()];
|
|
9206
|
+
if (res.icon || res.icons) {
|
|
9207
|
+
icon = this.icons[(res.icon || res.icons).toLowerCase()];
|
|
9137
9208
|
if (!icon) {
|
|
9138
|
-
if (res.icon == '#last') {
|
|
9139
|
-
|
|
9209
|
+
if (res.icon == '#last' || res.icons == '#last') {
|
|
9210
|
+
var title = res.title || res.name || res.text;
|
|
9211
|
+
icon = title.substr(-1, 1);
|
|
9140
9212
|
cls = 'es-public-search-item-icon-text';
|
|
9141
9213
|
} else {
|
|
9142
9214
|
cls = 'es-public-search-item-icons';
|
|
9143
|
-
icon = res.icon;
|
|
9215
|
+
icon = res.icon || res.icons;
|
|
9144
9216
|
}
|
|
9145
9217
|
}
|
|
9146
9218
|
} else {
|
|
9147
|
-
var
|
|
9219
|
+
var _title = res.title || res.name || res.text;
|
|
9220
|
+
var key = _title.split('.')[1];
|
|
9148
9221
|
icon = key ? this.icons[key.toLowerCase()] : '';
|
|
9149
9222
|
if (!icon) {
|
|
9150
|
-
icon =
|
|
9223
|
+
icon = item.name == '菜单' || item.name == '应用' ? this.menuIcon : _title.substr(-1, 1);
|
|
9151
9224
|
cls = 'es-public-search-item-icon-text';
|
|
9152
9225
|
}
|
|
9153
9226
|
}
|
|
9154
9227
|
return { class: cls, contents: icon };
|
|
9155
9228
|
},
|
|
9156
9229
|
setStyle: function setStyle(res, index) {
|
|
9157
|
-
if (res.icon) {
|
|
9158
|
-
var icon = this.icons[res.icon.toLowerCase()];
|
|
9230
|
+
if (res.icon || res.icons) {
|
|
9231
|
+
var icon = this.icons[(res.icon || res.icons).toLowerCase()];
|
|
9159
9232
|
if (!icon && res.icon != '#last') {
|
|
9160
9233
|
return { backgroundColor: this.colors[index % this.colors.length] };
|
|
9161
9234
|
}
|
|
@@ -9167,10 +9240,12 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9167
9240
|
getTypes: function getTypes() {
|
|
9168
9241
|
var _this2 = this;
|
|
9169
9242
|
|
|
9170
|
-
|
|
9243
|
+
utils_util["a" /* default */].ajax({
|
|
9171
9244
|
url: this.searchType,
|
|
9172
|
-
|
|
9173
|
-
|
|
9245
|
+
method: 'post',
|
|
9246
|
+
format: false,
|
|
9247
|
+
data: {
|
|
9248
|
+
terminalType: 'web'
|
|
9174
9249
|
}
|
|
9175
9250
|
}).then(function (res) {
|
|
9176
9251
|
if (res.rCode == 0) {
|
|
@@ -9178,9 +9253,9 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9178
9253
|
|
|
9179
9254
|
var loadings = {};
|
|
9180
9255
|
var noMore = {};
|
|
9181
|
-
var types = results.
|
|
9182
|
-
loadings[item.id || String(index
|
|
9183
|
-
noMore[item.id || String(index
|
|
9256
|
+
var types = results.catalog.map(function (item, index) {
|
|
9257
|
+
loadings[item.id || String(index)] = false;
|
|
9258
|
+
noMore[item.id || String(index)] = false;
|
|
9184
9259
|
return searchvue_type_script_lang_js_extends({}, item, { pageNum: 0, pageCount: 1, records: [] });
|
|
9185
9260
|
});
|
|
9186
9261
|
_this2.types = types;
|
|
@@ -9192,41 +9267,91 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9192
9267
|
searchAll: function searchAll(keyWords) {
|
|
9193
9268
|
for (var i = 0; i < this.types.length; i++) {
|
|
9194
9269
|
if (keyWords) {
|
|
9195
|
-
this.
|
|
9270
|
+
var _item = this.types[i];
|
|
9271
|
+
if (_item.name == '菜单' && this.menus.length) {
|
|
9272
|
+
this.isLoading = false;
|
|
9273
|
+
this.types[i].records = this.searchData(this.menus, keyWords);
|
|
9274
|
+
this.types[i].totalCount = this.types[i].records.length;
|
|
9275
|
+
this.types[i].pageCount = Math.ceil(this.types[i].records.length / this.pageSize);
|
|
9276
|
+
this.types[i].pageNum = 0;
|
|
9277
|
+
this.$set(this.loadings, _item.id || String(i), false);
|
|
9278
|
+
this.$set(this.noMore, _item.id || String(i), true);
|
|
9279
|
+
} else if (_item.name == '应用' && this.apps.length) {
|
|
9280
|
+
this.isLoading = false;
|
|
9281
|
+
this.types[i].records = this.searchData(this.apps, keyWords);
|
|
9282
|
+
this.types[i].totalCount = this.types[i].records.length;
|
|
9283
|
+
this.types[i].pageCount = Math.ceil(this.types[i].records.length / this.pageSize);
|
|
9284
|
+
this.types[i].pageNum = 0;
|
|
9285
|
+
this.$set(this.loadings, _item.id || String(i), false);
|
|
9286
|
+
this.$set(this.noMore, _item.id || String(i), true);
|
|
9287
|
+
} else if (_item.dataRequestUrl) {
|
|
9288
|
+
this.isLoading = true;
|
|
9289
|
+
this.handleSearch(_item, i);
|
|
9290
|
+
} else {
|
|
9291
|
+
this.types[i].records = [];
|
|
9292
|
+
this.types[i].totalCount = 0;
|
|
9293
|
+
this.types[i].pageCount = 1;
|
|
9294
|
+
this.types[i].pageNum = 0;
|
|
9295
|
+
this.$set(this.loadings, _item.id || String(i), false);
|
|
9296
|
+
this.$set(this.noMore, _item.id || String(i), true);
|
|
9297
|
+
}
|
|
9196
9298
|
} else {
|
|
9197
9299
|
this.isLoading = false;
|
|
9198
9300
|
this.types[i].records = [];
|
|
9199
9301
|
this.types[i].totalCount = 0;
|
|
9200
9302
|
this.types[i].pageCount = 1;
|
|
9201
9303
|
this.types[i].pageNum = 0;
|
|
9304
|
+
this.$set(this.loadings, item.id || String(i), false);
|
|
9305
|
+
this.$set(this.noMore, item.id || String(i), true);
|
|
9202
9306
|
}
|
|
9203
9307
|
}
|
|
9204
9308
|
},
|
|
9205
|
-
|
|
9309
|
+
searchData: function searchData(data, name) {
|
|
9206
9310
|
var _this3 = this;
|
|
9207
9311
|
|
|
9208
|
-
|
|
9209
|
-
|
|
9312
|
+
var records = [];
|
|
9313
|
+
data.forEach(function (item) {
|
|
9314
|
+
var words = item.name || item.text;
|
|
9315
|
+
if (words.indexOf(name) > -1 && item.permission !== false) {
|
|
9316
|
+
records.push(item);
|
|
9317
|
+
}
|
|
9318
|
+
if (item.children && item.children.length) {
|
|
9319
|
+
records = records.concat(_this3.searchData(item.children, name));
|
|
9320
|
+
}
|
|
9321
|
+
if (item.fourthTabs && item.fourthTabs.length) {
|
|
9322
|
+
records = records.concat(_this3.searchData(item.fourthTabs, name));
|
|
9323
|
+
}
|
|
9324
|
+
});
|
|
9325
|
+
return records;
|
|
9326
|
+
},
|
|
9327
|
+
handleSearch: function handleSearch(obj, index) {
|
|
9328
|
+
var _this4 = this;
|
|
9329
|
+
|
|
9330
|
+
if (obj.pageNum < obj.pageCount && this.keyWords) {
|
|
9331
|
+
this.$set(this.loadings, obj.id || String(index), true);
|
|
9210
9332
|
if (this.active == '0') {
|
|
9211
9333
|
this.isLoading = true;
|
|
9212
9334
|
}
|
|
9213
|
-
|
|
9335
|
+
utils_util["a" /* default */].ajax({
|
|
9214
9336
|
url: obj.dataRequestUrl,
|
|
9215
|
-
|
|
9337
|
+
method: 'post',
|
|
9338
|
+
data: {
|
|
9216
9339
|
pageNum: obj.pageNum + 1,
|
|
9217
9340
|
pageSize: this.pageSize,
|
|
9218
9341
|
keyWords: this.keyWords
|
|
9219
9342
|
}
|
|
9220
9343
|
}).then(function (res) {
|
|
9221
|
-
|
|
9344
|
+
_this4.$set(_this4.loadings, obj.id || String(index), false);
|
|
9222
9345
|
var flag = false;
|
|
9223
|
-
for (var i in
|
|
9224
|
-
if (
|
|
9346
|
+
for (var i in _this4.loadings) {
|
|
9347
|
+
if (_this4.loadings[i]) {
|
|
9225
9348
|
flag = true;
|
|
9226
9349
|
break;
|
|
9227
9350
|
}
|
|
9228
9351
|
}
|
|
9229
|
-
!flag
|
|
9352
|
+
if (!flag) {
|
|
9353
|
+
_this4.isLoading = false;
|
|
9354
|
+
}
|
|
9230
9355
|
if (res.rCode == 0) {
|
|
9231
9356
|
var results = res.results;
|
|
9232
9357
|
|
|
@@ -9234,19 +9359,34 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9234
9359
|
obj.pageCount = results.pageCount;
|
|
9235
9360
|
obj.pageNum = results.pageNum;
|
|
9236
9361
|
obj.records = obj.records.concat(results.records);
|
|
9237
|
-
|
|
9362
|
+
_this4.$set(_this4.noMore, obj.id || String(index), results.pageNum >= results.pageCount);
|
|
9363
|
+
} else {
|
|
9364
|
+
_this4.types[index].records = [];
|
|
9365
|
+
_this4.types[index].totalCount = 0;
|
|
9366
|
+
_this4.types[index].pageCount = 1;
|
|
9367
|
+
_this4.types[index].pageNum = 0;
|
|
9368
|
+
_this4.$set(_this4.loadings, obj.id || String(index), false);
|
|
9369
|
+
_this4.$set(_this4.noMore, obj.id || String(index), true);
|
|
9238
9370
|
}
|
|
9239
9371
|
}).catch(function (err) {
|
|
9240
|
-
|
|
9241
|
-
|
|
9372
|
+
_this4.isLoading = false;
|
|
9373
|
+
_this4.types[index].records = [];
|
|
9374
|
+
_this4.types[index].totalCount = 0;
|
|
9375
|
+
_this4.types[index].pageCount = 1;
|
|
9376
|
+
_this4.types[index].pageNum = 0;
|
|
9377
|
+
_this4.$set(_this4.loadings, obj.id || String(index), false);
|
|
9378
|
+
_this4.$set(_this4.noMore, obj.id || String(index), true);
|
|
9242
9379
|
if (err.message && err.message !== 'canceled') {
|
|
9243
|
-
|
|
9380
|
+
_this4.$message.error(err.message);
|
|
9244
9381
|
}
|
|
9245
9382
|
});
|
|
9246
9383
|
}
|
|
9247
9384
|
},
|
|
9248
9385
|
handleTabs: function handleTabs(res, index) {
|
|
9249
9386
|
this.active = res.id || String(index + 1);
|
|
9387
|
+
},
|
|
9388
|
+
handleClick: function handleClick(res, parent) {
|
|
9389
|
+
this.$emit('select', res, parent);
|
|
9250
9390
|
}
|
|
9251
9391
|
}
|
|
9252
9392
|
});
|
|
@@ -9262,8 +9402,8 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9262
9402
|
|
|
9263
9403
|
var search_component = Object(componentNormalizer["a" /* default */])(
|
|
9264
9404
|
public_searchvue_type_script_lang_js_,
|
|
9265
|
-
|
|
9266
|
-
|
|
9405
|
+
searchvue_type_template_id_13661892_render,
|
|
9406
|
+
searchvue_type_template_id_13661892_staticRenderFns,
|
|
9267
9407
|
false,
|
|
9268
9408
|
null,
|
|
9269
9409
|
null,
|
|
@@ -9591,7 +9731,6 @@ var simplicityvue_type_script_lang_js_extends = Object.assign || function (targe
|
|
|
9591
9731
|
//
|
|
9592
9732
|
//
|
|
9593
9733
|
//
|
|
9594
|
-
//
|
|
9595
9734
|
|
|
9596
9735
|
|
|
9597
9736
|
|
|
@@ -9608,12 +9747,12 @@ var simplicityvue_type_script_lang_js_extends = Object.assign || function (targe
|
|
|
9608
9747
|
|
|
9609
9748
|
|
|
9610
9749
|
var isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
9611
|
-
var systemMode =
|
|
9750
|
+
var systemMode = utils_util["a" /* default */].win.systemMode || 'default';
|
|
9612
9751
|
var events = [function (tabs, index, that) {
|
|
9613
9752
|
var tab = tabs[index];
|
|
9614
9753
|
|
|
9615
9754
|
if (tab.method == 'iframe') {
|
|
9616
|
-
tabs[index].url =
|
|
9755
|
+
tabs[index].url = utils_util["a" /* default */].handlerUrl(tab.url);
|
|
9617
9756
|
} else {
|
|
9618
9757
|
tabs[index].refresh = false;
|
|
9619
9758
|
that.$nextTick(function () {
|
|
@@ -9622,7 +9761,7 @@ var events = [function (tabs, index, that) {
|
|
|
9622
9761
|
}
|
|
9623
9762
|
return tabs;
|
|
9624
9763
|
}, function (tabs, index, that) {
|
|
9625
|
-
var i =
|
|
9764
|
+
var i = utils_util["a" /* default */].indexOfObj(tabs, that.activeName, 'id');
|
|
9626
9765
|
if (tabs.length == 1) {
|
|
9627
9766
|
that.activeName = '';
|
|
9628
9767
|
} else if (i == index) {
|
|
@@ -9639,14 +9778,14 @@ var events = [function (tabs, index, that) {
|
|
|
9639
9778
|
that.activeName = tab[0].id;
|
|
9640
9779
|
return tab;
|
|
9641
9780
|
}, function (tabs, index, that) {
|
|
9642
|
-
var i =
|
|
9781
|
+
var i = utils_util["a" /* default */].indexOfObj(tabs, that.activeName, 'id');
|
|
9643
9782
|
if (i < index) {
|
|
9644
9783
|
that.activeName = tabs[index].id;
|
|
9645
9784
|
}
|
|
9646
9785
|
tabs.splice(0, index);
|
|
9647
9786
|
return tabs;
|
|
9648
9787
|
}, function (tabs, index, that) {
|
|
9649
|
-
var i =
|
|
9788
|
+
var i = utils_util["a" /* default */].indexOfObj(tabs, that.activeName, 'id');
|
|
9650
9789
|
if (i > index) {
|
|
9651
9790
|
that.activeName = tabs[index].id;
|
|
9652
9791
|
}
|
|
@@ -9682,11 +9821,6 @@ var events = [function (tabs, index, that) {
|
|
|
9682
9821
|
type: String,
|
|
9683
9822
|
default: systemMode
|
|
9684
9823
|
},
|
|
9685
|
-
//记录菜单点击率作为工作台常用应用数据
|
|
9686
|
-
recordApp: {
|
|
9687
|
-
type: Boolean,
|
|
9688
|
-
default: true
|
|
9689
|
-
},
|
|
9690
9824
|
sysCode: String,
|
|
9691
9825
|
appCode: String,
|
|
9692
9826
|
//logo
|
|
@@ -9866,7 +10000,8 @@ var events = [function (tabs, index, that) {
|
|
|
9866
10000
|
//选中菜单
|
|
9867
10001
|
active: '',
|
|
9868
10002
|
//单位名称
|
|
9869
|
-
simpleUserInfo: {}
|
|
10003
|
+
simpleUserInfo: {},
|
|
10004
|
+
topRightToolHide: ''
|
|
9870
10005
|
};
|
|
9871
10006
|
},
|
|
9872
10007
|
|
|
@@ -9907,6 +10042,26 @@ var events = [function (tabs, index, that) {
|
|
|
9907
10042
|
return typeof this.onlineView == 'string' ? this.onlineView : '';
|
|
9908
10043
|
}
|
|
9909
10044
|
return false;
|
|
10045
|
+
},
|
|
10046
|
+
|
|
10047
|
+
//隐藏操作按键
|
|
10048
|
+
hide: function hide() {
|
|
10049
|
+
var topRightToolHide = {};
|
|
10050
|
+
if (this.topRightToolHide) {
|
|
10051
|
+
topRightToolHide = JSON.parse(this.topRightToolHide.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g, '"$2":'));
|
|
10052
|
+
}
|
|
10053
|
+
var hides = {
|
|
10054
|
+
home: this.indexUrl ? false : true,
|
|
10055
|
+
index: this.doorIndex ? false : true
|
|
10056
|
+
};
|
|
10057
|
+
|
|
10058
|
+
if (this.layout === 'subsystem' || this.application) {
|
|
10059
|
+
hides.system = false;
|
|
10060
|
+
}
|
|
10061
|
+
if (this.layout === 'topside' || this.layout === 'side') {
|
|
10062
|
+
hides.user = true;
|
|
10063
|
+
}
|
|
10064
|
+
return simplicityvue_type_script_lang_js_extends({}, hides, this.hides, topRightToolHide);
|
|
9910
10065
|
}
|
|
9911
10066
|
},
|
|
9912
10067
|
watch: {
|
|
@@ -9922,7 +10077,7 @@ var events = [function (tabs, index, that) {
|
|
|
9922
10077
|
}
|
|
9923
10078
|
},
|
|
9924
10079
|
created: function created() {
|
|
9925
|
-
var mainConfig =
|
|
10080
|
+
var mainConfig = utils_util["a" /* default */].getStorage('mainConfig');
|
|
9926
10081
|
if (mainConfig) {
|
|
9927
10082
|
var results = JSON.parse(mainConfig);
|
|
9928
10083
|
if (Object.keys(results).length) {
|
|
@@ -10001,7 +10156,7 @@ var events = [function (tabs, index, that) {
|
|
|
10001
10156
|
this.initWebSocket();
|
|
10002
10157
|
}
|
|
10003
10158
|
sessionStorage.setItem('mainConfig', JSON.stringify(results));
|
|
10004
|
-
|
|
10159
|
+
utils_util["a" /* default */].setStorage({
|
|
10005
10160
|
type: this.storage,
|
|
10006
10161
|
key: {
|
|
10007
10162
|
depId: results.userModel.depId,
|
|
@@ -10025,22 +10180,23 @@ var events = [function (tabs, index, that) {
|
|
|
10025
10180
|
this.indexUrl = results[i];
|
|
10026
10181
|
}
|
|
10027
10182
|
if (i === 'doorIndex' && results[i]) {
|
|
10028
|
-
|
|
10183
|
+
utils_util["a" /* default */].win.open(results[i]);
|
|
10184
|
+
this.doorIndex = results[i];
|
|
10029
10185
|
}
|
|
10030
10186
|
if (i === 'subsystemName' && results[i]) {
|
|
10031
10187
|
document.title = results[i];
|
|
10032
10188
|
}
|
|
10033
10189
|
if (i === 'loginPage' && results[i]) {
|
|
10034
|
-
|
|
10190
|
+
utils_util["a" /* default */].setStorage('loginPage', results[i]);
|
|
10035
10191
|
}
|
|
10036
10192
|
if (i === 'sysLogoIco' && results[i]) {
|
|
10037
10193
|
sessionStorage.setItem('sysLogoIco', results[i]);
|
|
10038
|
-
|
|
10194
|
+
utils_util["a" /* default */].setFavicon(results[i]);
|
|
10039
10195
|
}
|
|
10040
10196
|
if (i === 'userStyle' && results[i]) {
|
|
10041
10197
|
if (results[i].color) {
|
|
10042
10198
|
var color = unescape(results[i].color).toLowerCase();
|
|
10043
|
-
if (
|
|
10199
|
+
if (utils_util["a" /* default */].startWith(color, '#')) {
|
|
10044
10200
|
this.themeColor = color;
|
|
10045
10201
|
}
|
|
10046
10202
|
}
|
|
@@ -10050,7 +10206,7 @@ var events = [function (tabs, index, that) {
|
|
|
10050
10206
|
if (i === 'subsystemExtend' && results[i]) {
|
|
10051
10207
|
if (results[i].themeColor) {
|
|
10052
10208
|
var _color = unescape(results[i].themeColor).toLowerCase();
|
|
10053
|
-
if (
|
|
10209
|
+
if (utils_util["a" /* default */].startWith(_color, '#')) {
|
|
10054
10210
|
this.themeColor = _color;
|
|
10055
10211
|
}
|
|
10056
10212
|
}
|
|
@@ -10059,14 +10215,14 @@ var events = [function (tabs, index, that) {
|
|
|
10059
10215
|
}
|
|
10060
10216
|
if (results[i].webPageWatermark) {
|
|
10061
10217
|
try {
|
|
10062
|
-
|
|
10063
|
-
|
|
10218
|
+
utils_util["a" /* default */].win.top.webPageWatermark = results[i].webPageWatermark;
|
|
10219
|
+
utils_util["a" /* default */].watermark(results[i].webPageWatermark);
|
|
10064
10220
|
} catch (error) {
|
|
10065
|
-
|
|
10221
|
+
utils_util["a" /* default */].win.postMessage({ type: 2, content: results[i].webPageWatermark }, '*');
|
|
10066
10222
|
}
|
|
10067
10223
|
}
|
|
10068
10224
|
if (results[i].loginPage) {
|
|
10069
|
-
|
|
10225
|
+
utils_util["a" /* default */].setStorage('loginPage', results[i].loginPage);
|
|
10070
10226
|
}
|
|
10071
10227
|
if (results[i].aiConfig) {
|
|
10072
10228
|
if (typeof results[i].aiConfig == 'string') {
|
|
@@ -10079,10 +10235,16 @@ var events = [function (tabs, index, that) {
|
|
|
10079
10235
|
this.aiConfig = results[i].aiConfig;
|
|
10080
10236
|
}
|
|
10081
10237
|
}
|
|
10238
|
+
if (results[i].portalPage || results[i].portalpage) {
|
|
10239
|
+
this.doorIndex = results[i].portalPage || results[i].portalpage;
|
|
10240
|
+
}
|
|
10241
|
+
if (results[i].topRightToolHide) {
|
|
10242
|
+
this.topRightToolHide = results[i].topRightToolHide;
|
|
10243
|
+
}
|
|
10082
10244
|
}
|
|
10083
10245
|
if (i === 'userModel' && results[i]) {
|
|
10084
10246
|
if (results[i].userHeadUrl) {
|
|
10085
|
-
results[i].userHeadUrl =
|
|
10247
|
+
results[i].userHeadUrl = utils_util["a" /* default */].jointUrl({
|
|
10086
10248
|
url: results[i].userHeadUrl,
|
|
10087
10249
|
reg: '/main2'
|
|
10088
10250
|
});
|
|
@@ -10106,8 +10268,8 @@ var events = [function (tabs, index, that) {
|
|
|
10106
10268
|
getApplications: function getApplications() {
|
|
10107
10269
|
var _this = this;
|
|
10108
10270
|
|
|
10109
|
-
var loading =
|
|
10110
|
-
|
|
10271
|
+
var loading = utils_util["a" /* default */].loading('', '加载中...');
|
|
10272
|
+
utils_util["a" /* default */].ajax({
|
|
10111
10273
|
url: this.appsUrl,
|
|
10112
10274
|
defaults: true
|
|
10113
10275
|
}).then(function (res) {
|
|
@@ -10154,7 +10316,7 @@ var events = [function (tabs, index, that) {
|
|
|
10154
10316
|
getMenus: function getMenus(loading) {
|
|
10155
10317
|
var _this2 = this;
|
|
10156
10318
|
|
|
10157
|
-
|
|
10319
|
+
utils_util["a" /* default */].ajax({ url: this._menuUrl }).then(function (res) {
|
|
10158
10320
|
loading.close();
|
|
10159
10321
|
if (res.rCode === 0) {
|
|
10160
10322
|
if (res.results && res.results.length) {
|
|
@@ -10294,7 +10456,7 @@ var events = [function (tabs, index, that) {
|
|
|
10294
10456
|
res.method = 'router';
|
|
10295
10457
|
res.path = path;
|
|
10296
10458
|
} else {
|
|
10297
|
-
var urlopenmode =
|
|
10459
|
+
var urlopenmode = utils_util["a" /* default */].getParams({
|
|
10298
10460
|
url: url,
|
|
10299
10461
|
name: 'urlopenmode'
|
|
10300
10462
|
});
|
|
@@ -10443,7 +10605,7 @@ var events = [function (tabs, index, that) {
|
|
|
10443
10605
|
initWebSocket: function initWebSocket() {
|
|
10444
10606
|
var _this4 = this;
|
|
10445
10607
|
|
|
10446
|
-
this.webSocket =
|
|
10608
|
+
this.webSocket = utils_util["a" /* default */].socket({
|
|
10447
10609
|
url: api["fc" /* wss */],
|
|
10448
10610
|
take: api["Vb" /* topic */],
|
|
10449
10611
|
success: function success(res) {
|
|
@@ -10478,8 +10640,8 @@ var events = [function (tabs, index, that) {
|
|
|
10478
10640
|
if (_this4.$eventBus) {
|
|
10479
10641
|
_this4.$eventBus.$emit('websocket', data);
|
|
10480
10642
|
}
|
|
10481
|
-
if (
|
|
10482
|
-
|
|
10643
|
+
if (utils_util["a" /* default */].win.eventBus) {
|
|
10644
|
+
utils_util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
10483
10645
|
}
|
|
10484
10646
|
}
|
|
10485
10647
|
});
|
|
@@ -10514,7 +10676,7 @@ var events = [function (tabs, index, that) {
|
|
|
10514
10676
|
if (res.permission === false) {
|
|
10515
10677
|
return false;
|
|
10516
10678
|
}
|
|
10517
|
-
var i =
|
|
10679
|
+
var i = utils_util["a" /* default */].indexOfObj(this.newApps, res, 'id');
|
|
10518
10680
|
if (i == -1) {
|
|
10519
10681
|
this.newApps.push(res);
|
|
10520
10682
|
}
|
|
@@ -10543,24 +10705,24 @@ var events = [function (tabs, index, that) {
|
|
|
10543
10705
|
if (res.url) {
|
|
10544
10706
|
if (res.urlopenmode == 1 || res.openModel == 1) {
|
|
10545
10707
|
set = false;
|
|
10546
|
-
|
|
10708
|
+
utils_util["a" /* default */].win.open(res.url);
|
|
10547
10709
|
} else if (res.urlopenmode == 2 || res.openModel == 2) {
|
|
10548
10710
|
set = false;
|
|
10549
|
-
|
|
10711
|
+
utils_util["a" /* default */].win.open(res.url, '_self');
|
|
10550
10712
|
} else {
|
|
10551
|
-
var i =
|
|
10713
|
+
var i = utils_util["a" /* default */].indexOfObj(this.tabs, res, 'id');
|
|
10552
10714
|
this.activeName = res.id;
|
|
10553
10715
|
if (i == -1) {
|
|
10554
10716
|
var obj = this.getMenu(this.menus, res.url);
|
|
10555
10717
|
if (obj) {
|
|
10556
|
-
var n =
|
|
10718
|
+
var n = utils_util["a" /* default */].indexOfObj(this.tabs, obj, 'id');
|
|
10557
10719
|
if (n == -1) {
|
|
10558
10720
|
var tab = this.setIframeType(obj);
|
|
10559
10721
|
this.tabs.push(tab);
|
|
10560
10722
|
this.activeName = tab.id;
|
|
10561
10723
|
} else {
|
|
10562
10724
|
if (obj.method == 'iframe') {
|
|
10563
|
-
obj.url =
|
|
10725
|
+
obj.url = utils_util["a" /* default */].handlerUrl(obj.url);
|
|
10564
10726
|
}
|
|
10565
10727
|
}
|
|
10566
10728
|
} else {
|
|
@@ -10570,7 +10732,7 @@ var events = [function (tabs, index, that) {
|
|
|
10570
10732
|
}
|
|
10571
10733
|
} else {
|
|
10572
10734
|
if (res.method == 'iframe') {
|
|
10573
|
-
res.url =
|
|
10735
|
+
res.url = utils_util["a" /* default */].handlerUrl(res.url);
|
|
10574
10736
|
}
|
|
10575
10737
|
}
|
|
10576
10738
|
}
|
|
@@ -10588,14 +10750,14 @@ var events = [function (tabs, index, that) {
|
|
|
10588
10750
|
this.showMenu = subMenus !== false;
|
|
10589
10751
|
this.showApps = false;
|
|
10590
10752
|
if (subMenus && subMenus.url) {
|
|
10591
|
-
var _i =
|
|
10753
|
+
var _i = utils_util["a" /* default */].indexOfObj(this.tabs, subMenus, 'id');
|
|
10592
10754
|
this.activeName = subMenus.id;
|
|
10593
10755
|
if (_i == -1) {
|
|
10594
10756
|
var _tab6 = this.setIframeType(subMenus);
|
|
10595
10757
|
this.tabs.push(_tab6);
|
|
10596
10758
|
} else {
|
|
10597
10759
|
if (subMenus.method == 'iframe') {
|
|
10598
|
-
subMenus.url =
|
|
10760
|
+
subMenus.url = utils_util["a" /* default */].handlerUrl(subMenus.url);
|
|
10599
10761
|
}
|
|
10600
10762
|
}
|
|
10601
10763
|
}
|
|
@@ -10617,7 +10779,7 @@ var events = [function (tabs, index, that) {
|
|
|
10617
10779
|
this.drawer.mounted = res.mounted;
|
|
10618
10780
|
this.drawer.url = res.url;
|
|
10619
10781
|
if (res.mounted === 'wujie') {
|
|
10620
|
-
this.drawer.name = res.name ||
|
|
10782
|
+
this.drawer.name = res.name || utils_util["a" /* default */].uuid();
|
|
10621
10783
|
}
|
|
10622
10784
|
},
|
|
10623
10785
|
|
|
@@ -10638,18 +10800,16 @@ var events = [function (tabs, index, that) {
|
|
|
10638
10800
|
handlerClickMenu: function handlerClickMenu(res) {
|
|
10639
10801
|
var _this5 = this;
|
|
10640
10802
|
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
}).then(function () {}).catch(function () {});
|
|
10649
|
-
}
|
|
10803
|
+
utils_util["a" /* default */].ajax({
|
|
10804
|
+
url: api["mb" /* recordUserApp */],
|
|
10805
|
+
params: {
|
|
10806
|
+
userId: this.user.userId,
|
|
10807
|
+
appId: res.id
|
|
10808
|
+
}
|
|
10809
|
+
}).then(function () {}).catch(function () {});
|
|
10650
10810
|
this.showMsg = false;
|
|
10651
10811
|
this.showSet = false;
|
|
10652
|
-
var i =
|
|
10812
|
+
var i = utils_util["a" /* default */].indexOfObj(this.tabs, res, 'id');
|
|
10653
10813
|
if (i == -1) {
|
|
10654
10814
|
var tab = this.setIframeType(res);
|
|
10655
10815
|
this.tabs.push(tab);
|
|
@@ -10658,7 +10818,7 @@ var events = [function (tabs, index, that) {
|
|
|
10658
10818
|
var _tab7 = this.tabs[i];
|
|
10659
10819
|
if (_tab7.method === 'iframe') {
|
|
10660
10820
|
this.activeName = res.id;
|
|
10661
|
-
this.$set(this.tabs[i], 'url',
|
|
10821
|
+
this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(_tab7.url));
|
|
10662
10822
|
} else {
|
|
10663
10823
|
this.$set(this.tabs[i], 'refresh', false);
|
|
10664
10824
|
if (_tab7.method === 'wujie') {
|
|
@@ -10720,14 +10880,14 @@ var events = [function (tabs, index, that) {
|
|
|
10720
10880
|
handleRefresh: function handleRefresh() {
|
|
10721
10881
|
var _this6 = this;
|
|
10722
10882
|
|
|
10723
|
-
var i =
|
|
10883
|
+
var i = utils_util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
10724
10884
|
var tab = this.tabs[i];
|
|
10725
10885
|
if (tab.method === 'iframe') {
|
|
10726
|
-
tab.url =
|
|
10886
|
+
tab.url = utils_util["a" /* default */].handlerUrl(tab.url);
|
|
10727
10887
|
} else {
|
|
10728
10888
|
var _tab8 = this.tabs[i];
|
|
10729
10889
|
if (_tab8.method === 'iframe') {
|
|
10730
|
-
this.$set(this.tabs[i], 'url',
|
|
10890
|
+
this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(_tab8.url));
|
|
10731
10891
|
} else {
|
|
10732
10892
|
this.$set(this.tabs[i], 'refresh', false);
|
|
10733
10893
|
this.$nextTick(function () {
|
|
@@ -10744,7 +10904,7 @@ var events = [function (tabs, index, that) {
|
|
|
10744
10904
|
**/
|
|
10745
10905
|
handleRemove: function handleRemove(name) {
|
|
10746
10906
|
var len = this.tabs.length - 1;
|
|
10747
|
-
var i =
|
|
10907
|
+
var i = utils_util["a" /* default */].indexOfObj(this.tabs, name, 'id,code,appCode');
|
|
10748
10908
|
if (i > -1) {
|
|
10749
10909
|
this.tabs.splice(i, 1);
|
|
10750
10910
|
if (this.tabs.length == 0) {
|
|
@@ -10822,9 +10982,9 @@ var events = [function (tabs, index, that) {
|
|
|
10822
10982
|
if (event) {
|
|
10823
10983
|
event();
|
|
10824
10984
|
} else if (open) {
|
|
10825
|
-
|
|
10985
|
+
utils_util["a" /* default */].win.open(open);
|
|
10826
10986
|
} else if (link) {
|
|
10827
|
-
|
|
10987
|
+
utils_util["a" /* default */].win.open(link, '_self');
|
|
10828
10988
|
} else {
|
|
10829
10989
|
switch (type) {
|
|
10830
10990
|
case 'quit':
|
|
@@ -10843,18 +11003,21 @@ var events = [function (tabs, index, that) {
|
|
|
10843
11003
|
this.showMsg = !this.showMsg;
|
|
10844
11004
|
this.showSet = false;
|
|
10845
11005
|
break;
|
|
11006
|
+
case 'index':
|
|
11007
|
+
utils_util["a" /* default */].win.open(this.doorIndex, '_self');
|
|
11008
|
+
break;
|
|
10846
11009
|
case 'set':
|
|
10847
11010
|
this.showSet = !this.showSet;
|
|
10848
11011
|
this.showMsg = false;
|
|
10849
11012
|
break;
|
|
10850
11013
|
case 'home':
|
|
10851
|
-
var i =
|
|
11014
|
+
var i = utils_util["a" /* default */].indexOfObj(this.tabs, this.homePage.id, 'id');
|
|
10852
11015
|
if (i == -1) {
|
|
10853
11016
|
this.tabs.unshift(this.homePage);
|
|
10854
11017
|
} else {
|
|
10855
11018
|
var tab = this.tabs[i];
|
|
10856
11019
|
if (tab.method === 'iframe') {
|
|
10857
|
-
this.$set(this.tabs[i], 'url',
|
|
11020
|
+
this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(tab.url));
|
|
10858
11021
|
} else {
|
|
10859
11022
|
this.$set(this.tabs[i], 'refresh', false);
|
|
10860
11023
|
this.$nextTick(function () {
|
|
@@ -10876,7 +11039,7 @@ var events = [function (tabs, index, that) {
|
|
|
10876
11039
|
this.showSet = false;
|
|
10877
11040
|
break;
|
|
10878
11041
|
case 'goView':
|
|
10879
|
-
|
|
11042
|
+
utils_util["a" /* default */].win.open(res.path, '_blank');
|
|
10880
11043
|
break;
|
|
10881
11044
|
}
|
|
10882
11045
|
}
|
|
@@ -10896,18 +11059,18 @@ var events = [function (tabs, index, that) {
|
|
|
10896
11059
|
cancelButtonText: '取消',
|
|
10897
11060
|
type: 'warning'
|
|
10898
11061
|
}).then(function () {
|
|
10899
|
-
|
|
11062
|
+
utils_util["a" /* default */].ajax({ method: 'post', url: api["eb" /* logout */] }).then(function (res) {
|
|
10900
11063
|
if (res.rCode == 0) {
|
|
10901
|
-
|
|
11064
|
+
utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
10902
11065
|
if (_this8.onQuit && typeof _this8.onQuit === 'function') {
|
|
10903
11066
|
_this8.onQuit();
|
|
10904
11067
|
} else {
|
|
10905
11068
|
try {
|
|
10906
|
-
var loginPage =
|
|
11069
|
+
var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
10907
11070
|
if (loginPage) {
|
|
10908
11071
|
var src = void 0;
|
|
10909
|
-
if (!
|
|
10910
|
-
var pathname =
|
|
11072
|
+
if (!utils_util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
11073
|
+
var pathname = utils_util["a" /* default */].win.top.location.pathname;
|
|
10911
11074
|
if (pathname !== '/') {
|
|
10912
11075
|
pathname = pathname.split('/');
|
|
10913
11076
|
pathname.splice(pathname.length - 1);
|
|
@@ -10919,20 +11082,20 @@ var events = [function (tabs, index, that) {
|
|
|
10919
11082
|
} else {
|
|
10920
11083
|
src = loginPage;
|
|
10921
11084
|
}
|
|
10922
|
-
|
|
10923
|
-
} else if (
|
|
10924
|
-
|
|
11085
|
+
utils_util["a" /* default */].win.top.location.href = src;
|
|
11086
|
+
} else if (utils_util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
11087
|
+
utils_util["a" /* default */].win.top.location.href = './login.html';
|
|
10925
11088
|
} else {
|
|
10926
|
-
var hash =
|
|
11089
|
+
var hash = utils_util["a" /* default */].win.top.location.hash;
|
|
10927
11090
|
if (hash) {
|
|
10928
|
-
var len =
|
|
10929
|
-
|
|
11091
|
+
var len = utils_util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
11092
|
+
utils_util["a" /* default */].win.top.location.href = utils_util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
10930
11093
|
} else {
|
|
10931
|
-
|
|
11094
|
+
utils_util["a" /* default */].win.top.location.href = '/login.html';
|
|
10932
11095
|
}
|
|
10933
11096
|
}
|
|
10934
11097
|
} catch (error) {
|
|
10935
|
-
|
|
11098
|
+
utils_util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
10936
11099
|
}
|
|
10937
11100
|
}
|
|
10938
11101
|
}
|
|
@@ -11004,8 +11167,8 @@ var events = [function (tabs, index, that) {
|
|
|
11004
11167
|
}
|
|
11005
11168
|
var obj = this.getMenu(this.menus, apps[apps.length - 1]);
|
|
11006
11169
|
if (obj) {
|
|
11007
|
-
var i =
|
|
11008
|
-
var n =
|
|
11170
|
+
var i = utils_util["a" /* default */].indexOfObj(this.tabs, obj, 'id,code,appCode');
|
|
11171
|
+
var n = utils_util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
11009
11172
|
var old = this.activeName;
|
|
11010
11173
|
this.activeName = obj.id;
|
|
11011
11174
|
if (i == -1) {
|
|
@@ -11014,7 +11177,7 @@ var events = [function (tabs, index, that) {
|
|
|
11014
11177
|
} else {
|
|
11015
11178
|
var _tab9 = this.tabs[i];
|
|
11016
11179
|
if (_tab9.method === 'iframe') {
|
|
11017
|
-
this.$set(this.tabs[i], 'url',
|
|
11180
|
+
this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(_tab9.url));
|
|
11018
11181
|
} else {
|
|
11019
11182
|
this.$set(this.tabs[i], 'refresh', false);
|
|
11020
11183
|
this.$nextTick(function () {
|
|
@@ -11026,7 +11189,7 @@ var events = [function (tabs, index, that) {
|
|
|
11026
11189
|
if (close === old) {
|
|
11027
11190
|
this.tabs.splice(n, 0);
|
|
11028
11191
|
} else {
|
|
11029
|
-
var d =
|
|
11192
|
+
var d = utils_util["a" /* default */].indexOfObj(this.tabs, close, 'id,code,appCode');
|
|
11030
11193
|
if (d > -1) {
|
|
11031
11194
|
this.tabs.splice(d, 0);
|
|
11032
11195
|
}
|
|
@@ -11041,13 +11204,22 @@ var events = [function (tabs, index, that) {
|
|
|
11041
11204
|
handleListener: function handleListener() {
|
|
11042
11205
|
var _this11 = this;
|
|
11043
11206
|
|
|
11044
|
-
|
|
11207
|
+
utils_util["a" /* default */].win.addEventListener('message', function (e) {
|
|
11045
11208
|
var msg = e.data;
|
|
11046
11209
|
if (msg.key == 'jump_Menu') {
|
|
11047
11210
|
var res = msg.data1;
|
|
11048
11211
|
_this11.jumpMenu(res);
|
|
11049
11212
|
}
|
|
11050
11213
|
}, false);
|
|
11214
|
+
},
|
|
11215
|
+
handleSelect: function handleSelect(res, parent) {
|
|
11216
|
+
this.showSearch = false;
|
|
11217
|
+
if (parent.name === '应用') {
|
|
11218
|
+
this.handlerClickApps(res);
|
|
11219
|
+
}
|
|
11220
|
+
if (parent.name === '菜单') {
|
|
11221
|
+
this.handlerClickApp(res);
|
|
11222
|
+
}
|
|
11051
11223
|
}
|
|
11052
11224
|
},
|
|
11053
11225
|
beforeDestroy: function beforeDestroy() {
|
|
@@ -11070,18 +11242,18 @@ var events = [function (tabs, index, that) {
|
|
|
11070
11242
|
|
|
11071
11243
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
11072
11244
|
src_simplicityvue_type_script_lang_js_,
|
|
11073
|
-
|
|
11074
|
-
|
|
11245
|
+
simplicityvue_type_template_id_7b4d5e88_scoped_true_render,
|
|
11246
|
+
simplicityvue_type_template_id_7b4d5e88_scoped_true_staticRenderFns,
|
|
11075
11247
|
false,
|
|
11076
11248
|
null,
|
|
11077
|
-
"
|
|
11249
|
+
"7b4d5e88",
|
|
11078
11250
|
null
|
|
11079
11251
|
|
|
11080
11252
|
)
|
|
11081
11253
|
|
|
11082
11254
|
/* harmony default export */ var simplicity = (simplicity_component.exports);
|
|
11083
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=
|
|
11084
|
-
var
|
|
11255
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=1867755c&
|
|
11256
|
+
var defaultvue_type_template_id_1867755c_render = function () {
|
|
11085
11257
|
var _vm = this
|
|
11086
11258
|
var _h = _vm.$createElement
|
|
11087
11259
|
var _c = _vm._self._c || _h
|
|
@@ -11468,11 +11640,11 @@ var defaultvue_type_template_id_576bd3b4_render = function () {
|
|
|
11468
11640
|
1
|
|
11469
11641
|
)
|
|
11470
11642
|
}
|
|
11471
|
-
var
|
|
11472
|
-
|
|
11643
|
+
var defaultvue_type_template_id_1867755c_staticRenderFns = []
|
|
11644
|
+
defaultvue_type_template_id_1867755c_render._withStripped = true
|
|
11473
11645
|
|
|
11474
11646
|
|
|
11475
|
-
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=
|
|
11647
|
+
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=1867755c&
|
|
11476
11648
|
|
|
11477
11649
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=template&id=d207c2e8&
|
|
11478
11650
|
var userinfovue_type_template_id_d207c2e8_render = function () {
|
|
@@ -11739,12 +11911,12 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11739
11911
|
|
|
11740
11912
|
methods: {
|
|
11741
11913
|
getQrcode: function getQrcode() {
|
|
11742
|
-
this.qrcode =
|
|
11914
|
+
this.qrcode = utils_util["a" /* default */].getStorage('host') + this.userScanBindImgUrl + '&_tt=' + Math.random().toString().split('.')[1];
|
|
11743
11915
|
},
|
|
11744
11916
|
getData: function getData() {
|
|
11745
11917
|
var _this2 = this;
|
|
11746
11918
|
|
|
11747
|
-
|
|
11919
|
+
utils_util["a" /* default */].ajax({
|
|
11748
11920
|
url: api["ab" /* initUserSet */]
|
|
11749
11921
|
}).then(function (res) {
|
|
11750
11922
|
if (res.rCode === 0) {
|
|
@@ -11765,7 +11937,7 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11765
11937
|
// this.values.officeTel = results.simpleUserInfo.officeTel;
|
|
11766
11938
|
if (results.userScanBindImgUrl) {
|
|
11767
11939
|
_this2.userScanBindImgUrl = results.userScanBindImgUrl;
|
|
11768
|
-
_this2.qrcode =
|
|
11940
|
+
_this2.qrcode = utils_util["a" /* default */].getStorage('host') + results.userScanBindImgUrl;
|
|
11769
11941
|
} else {
|
|
11770
11942
|
_this2.qrcode = '';
|
|
11771
11943
|
}
|
|
@@ -11794,20 +11966,20 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11794
11966
|
|
|
11795
11967
|
switch (type) {
|
|
11796
11968
|
case 'job':
|
|
11797
|
-
|
|
11969
|
+
utils_util["a" /* default */].ajax({ url: api["wb" /* switchUserTo */], params: { userId: value.value } }).then(function (res) {
|
|
11798
11970
|
if (res.rCode == 0) {
|
|
11799
|
-
|
|
11971
|
+
utils_util["a" /* default */].setStorage({
|
|
11800
11972
|
type: _this3.storage,
|
|
11801
11973
|
key: 'userId',
|
|
11802
11974
|
value: value.value
|
|
11803
11975
|
});
|
|
11804
|
-
|
|
11976
|
+
utils_util["a" /* default */].removeStorage(['mainConfig', 'jump']);
|
|
11805
11977
|
_this3.$message({
|
|
11806
11978
|
message: res.msg,
|
|
11807
11979
|
type: 'success',
|
|
11808
11980
|
duration: 500,
|
|
11809
11981
|
onClose: function onClose() {
|
|
11810
|
-
if (
|
|
11982
|
+
if (utils_util["a" /* default */].win.location.href.indexOf('#/main') > -1 || utils_util["a" /* default */].win.location.href.indexOf('/main.html') > -1) {
|
|
11811
11983
|
location.reload();
|
|
11812
11984
|
} else {
|
|
11813
11985
|
_this3.$router.replace('/main');
|
|
@@ -11832,19 +12004,19 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11832
12004
|
handleFormSubmit: function handleFormSubmit() {
|
|
11833
12005
|
var _this4 = this;
|
|
11834
12006
|
|
|
11835
|
-
var initLogin =
|
|
12007
|
+
var initLogin = utils_util["a" /* default */].getStorage('initLogin');
|
|
11836
12008
|
initLogin && (initLogin = JSON.parse(initLogin));
|
|
11837
|
-
|
|
12009
|
+
utils_util["a" /* default */].ajax({
|
|
11838
12010
|
url: api["Zb" /* updateUserInfo */],
|
|
11839
12011
|
params: {
|
|
11840
12012
|
email: this.values.email,
|
|
11841
12013
|
officeTel: this.values.officeTel,
|
|
11842
12014
|
phone: this.values.phone,
|
|
11843
|
-
oldPassword: this.secret && initLogin && initLogin.secret && this.values.oldpassword ?
|
|
12015
|
+
oldPassword: this.secret && initLogin && initLogin.secret && this.values.oldpassword ? utils_util["a" /* default */].esmEncrypt({
|
|
11844
12016
|
data: this.values.oldpassword,
|
|
11845
12017
|
key: initLogin.secret
|
|
11846
12018
|
}) : this.values.oldpassword,
|
|
11847
|
-
password: this.secret && initLogin && initLogin.secret && this.values.password ?
|
|
12019
|
+
password: this.secret && initLogin && initLogin.secret && this.values.password ? utils_util["a" /* default */].esmEncrypt({
|
|
11848
12020
|
data: this.values.password,
|
|
11849
12021
|
key: initLogin.secret
|
|
11850
12022
|
}) : this.values.password
|
|
@@ -11858,12 +12030,12 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11858
12030
|
closeOnClickModal: false,
|
|
11859
12031
|
type: 'warning'
|
|
11860
12032
|
}).then(function () {
|
|
11861
|
-
var loginPage =
|
|
12033
|
+
var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
11862
12034
|
try {
|
|
11863
12035
|
if (loginPage) {
|
|
11864
12036
|
var src = void 0;
|
|
11865
|
-
if (!
|
|
11866
|
-
var pathname =
|
|
12037
|
+
if (!utils_util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
12038
|
+
var pathname = utils_util["a" /* default */].win.top.location.pathname;
|
|
11867
12039
|
if (pathname !== '/') {
|
|
11868
12040
|
pathname = pathname.split('/');
|
|
11869
12041
|
pathname.splice(pathname.length - 1);
|
|
@@ -11875,27 +12047,27 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11875
12047
|
} else {
|
|
11876
12048
|
src = loginPage;
|
|
11877
12049
|
}
|
|
11878
|
-
|
|
11879
|
-
} else if (
|
|
11880
|
-
|
|
12050
|
+
utils_util["a" /* default */].win.top.location.href = src;
|
|
12051
|
+
} else if (utils_util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
12052
|
+
utils_util["a" /* default */].win.top.location.href = './login.html';
|
|
11881
12053
|
} else {
|
|
11882
|
-
var hash =
|
|
12054
|
+
var hash = utils_util["a" /* default */].win.top.location.hash;
|
|
11883
12055
|
if (hash) {
|
|
11884
|
-
var len =
|
|
11885
|
-
|
|
12056
|
+
var len = utils_util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
12057
|
+
utils_util["a" /* default */].win.top.location.href = utils_util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
11886
12058
|
} else {
|
|
11887
|
-
|
|
12059
|
+
utils_util["a" /* default */].win.top.location.href = '/login.html';
|
|
11888
12060
|
}
|
|
11889
12061
|
}
|
|
11890
12062
|
} catch (error) {
|
|
11891
|
-
|
|
12063
|
+
utils_util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
11892
12064
|
}
|
|
11893
12065
|
}).catch(function (e) {});
|
|
11894
12066
|
} else {
|
|
11895
12067
|
_this4.$emit('reGetConfig');
|
|
11896
12068
|
var notify = _this4.values.notify.sort().join(',');
|
|
11897
12069
|
if (notify != _this4.notify.split(',').sort().join(',')) {
|
|
11898
|
-
|
|
12070
|
+
utils_util["a" /* default */].ajax({
|
|
11899
12071
|
url: api["Yb" /* updateUserCustomInfo */],
|
|
11900
12072
|
params: {
|
|
11901
12073
|
notify: notify
|
|
@@ -11924,7 +12096,7 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
11924
12096
|
},
|
|
11925
12097
|
repassword: function repassword(rule, value, callback) {
|
|
11926
12098
|
if (this.values.oldpassword && this.values.password && value) {
|
|
11927
|
-
|
|
12099
|
+
utils_util["a" /* default */].identical({ value: [value, this.values.password], callback: callback });
|
|
11928
12100
|
} else {
|
|
11929
12101
|
callback();
|
|
11930
12102
|
return true;
|
|
@@ -12417,7 +12589,7 @@ settingsvue_type_template_id_2d7a058d_render._withStripped = true
|
|
|
12417
12589
|
res = res.toLowerCase();
|
|
12418
12590
|
// const rgb = util.getRgb(res);
|
|
12419
12591
|
// const luma = 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];
|
|
12420
|
-
|
|
12592
|
+
utils_util["a" /* default */].updateTheme(res);
|
|
12421
12593
|
this.color = res;
|
|
12422
12594
|
this.$emit('change', { type: 'theme', value: res });
|
|
12423
12595
|
//this.setTheme(res);
|
|
@@ -12726,7 +12898,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12726
12898
|
};
|
|
12727
12899
|
},
|
|
12728
12900
|
mounted: function mounted() {
|
|
12729
|
-
|
|
12901
|
+
utils_util["a" /* default */].win.deleteMsg = this.handleRemove;
|
|
12730
12902
|
},
|
|
12731
12903
|
|
|
12732
12904
|
methods: {
|
|
@@ -12736,7 +12908,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12736
12908
|
|
|
12737
12909
|
if (this.pageNum <= this.pageCount) {
|
|
12738
12910
|
this.loading = true;
|
|
12739
|
-
|
|
12911
|
+
utils_util["a" /* default */].ajax({
|
|
12740
12912
|
url: api["xb" /* sysMsgPage */],
|
|
12741
12913
|
params: {
|
|
12742
12914
|
pageNum: reload ? 1 : this.pageNum,
|
|
@@ -12769,7 +12941,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12769
12941
|
handleIgnore: function handleIgnore(res, i) {
|
|
12770
12942
|
var _this2 = this;
|
|
12771
12943
|
|
|
12772
|
-
|
|
12944
|
+
utils_util["a" /* default */].ajax({
|
|
12773
12945
|
url: api["W" /* ignoreSysMsg */],
|
|
12774
12946
|
params: {
|
|
12775
12947
|
id: res.id
|
|
@@ -12789,7 +12961,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12789
12961
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
12790
12962
|
var _this3 = this;
|
|
12791
12963
|
|
|
12792
|
-
|
|
12964
|
+
utils_util["a" /* default */].ajax({
|
|
12793
12965
|
url: api["V" /* ignoreAllSysMsg */]
|
|
12794
12966
|
}).then(function (res) {
|
|
12795
12967
|
_this3.count = 0;
|
|
@@ -12807,7 +12979,7 @@ messagevue_type_template_id_503171a2_render._withStripped = true
|
|
|
12807
12979
|
this.count -= 1;
|
|
12808
12980
|
this.msgs.splice(index, 1);
|
|
12809
12981
|
if (this.winopen) {
|
|
12810
|
-
|
|
12982
|
+
utils_util["a" /* default */].win.open(item.handlerUrl);
|
|
12811
12983
|
} else {
|
|
12812
12984
|
this.dialog = {
|
|
12813
12985
|
show: true,
|
|
@@ -13109,7 +13281,7 @@ noticevue_type_template_id_2f7f31eb_render._withStripped = true
|
|
|
13109
13281
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
13110
13282
|
var _this = this;
|
|
13111
13283
|
|
|
13112
|
-
|
|
13284
|
+
utils_util["a" /* default */].ajax({
|
|
13113
13285
|
url: api["V" /* ignoreAllSysMsg */]
|
|
13114
13286
|
}).then(function (res) {
|
|
13115
13287
|
_this.count = 0;
|
|
@@ -13126,7 +13298,7 @@ noticevue_type_template_id_2f7f31eb_render._withStripped = true
|
|
|
13126
13298
|
//处理消息
|
|
13127
13299
|
handleMessage: function handleMessage(item, index) {
|
|
13128
13300
|
if (item.urlopenmode === 1 || this.winopen) {
|
|
13129
|
-
|
|
13301
|
+
utils_util["a" /* default */].win.open(item.handlerUrl);
|
|
13130
13302
|
} else {
|
|
13131
13303
|
this.dialog = {
|
|
13132
13304
|
show: true,
|
|
@@ -13392,8 +13564,8 @@ var defaultvue_type_script_lang_js_extends = Object.assign || function (target)
|
|
|
13392
13564
|
|
|
13393
13565
|
|
|
13394
13566
|
var defaultvue_type_script_lang_js_isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
13395
|
-
var log =
|
|
13396
|
-
var appCode =
|
|
13567
|
+
var log = utils_util["a" /* default */].getParams('console');
|
|
13568
|
+
var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["a" /* default */].getParams('appcode');
|
|
13397
13569
|
/* harmony default export */ var defaultvue_type_script_lang_js_ = ({
|
|
13398
13570
|
name: 'MainDefault',
|
|
13399
13571
|
inheritAttrs: false,
|
|
@@ -13466,12 +13638,17 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13466
13638
|
//主题颜色选择颜色集合
|
|
13467
13639
|
themes: Array,
|
|
13468
13640
|
//需要隐藏的头部功能
|
|
13469
|
-
hides:
|
|
13641
|
+
hides: {
|
|
13642
|
+
type: Object,
|
|
13643
|
+
default: function _default() {
|
|
13644
|
+
return {};
|
|
13645
|
+
}
|
|
13646
|
+
},
|
|
13470
13647
|
//储存数据
|
|
13471
13648
|
storage: {
|
|
13472
13649
|
type: String,
|
|
13473
13650
|
default: function _default() {
|
|
13474
|
-
return
|
|
13651
|
+
return utils_util["a" /* default */].getStorage('storage');
|
|
13475
13652
|
}
|
|
13476
13653
|
},
|
|
13477
13654
|
//是否启用子应用菜单接口
|
|
@@ -13580,11 +13757,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13580
13757
|
return this.isSide !== null ? this.isSide : this.sideNav;
|
|
13581
13758
|
},
|
|
13582
13759
|
isHomePage: function isHomePage() {
|
|
13583
|
-
if (
|
|
13760
|
+
if (utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId')) {
|
|
13584
13761
|
return false;
|
|
13585
13762
|
}
|
|
13586
|
-
if (
|
|
13587
|
-
var hash =
|
|
13763
|
+
if (utils_util["a" /* default */].getStorage('mainConfig')) {
|
|
13764
|
+
var hash = utils_util["a" /* default */].win.location.hash;
|
|
13588
13765
|
if (hash && hash.split('?')[0] !== '#/' && hash.split('?')[0] !== '#/main') {
|
|
13589
13766
|
return false;
|
|
13590
13767
|
}
|
|
@@ -13628,53 +13805,24 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13628
13805
|
|
|
13629
13806
|
//隐藏操作按键
|
|
13630
13807
|
hide: function hide() {
|
|
13631
|
-
var
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13808
|
+
var topRightToolHide = {};
|
|
13809
|
+
if (this.topRightToolHide) {
|
|
13810
|
+
topRightToolHide = JSON.parse(this.topRightToolHide.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g, '"$2":'));
|
|
13811
|
+
}
|
|
13812
|
+
var hides = {
|
|
13813
|
+
set: !this.set,
|
|
13814
|
+
index: this.doorIndex ? false : true,
|
|
13815
|
+
system: true,
|
|
13816
|
+
home: this.homePage ? false : true
|
|
13817
|
+
};
|
|
13818
|
+
|
|
13637
13819
|
if (this.layout === 'subsystem' || this.application) {
|
|
13638
|
-
|
|
13639
|
-
return defaultvue_type_script_lang_js_extends({}, this.hides, { set: !this.set, system: false });
|
|
13640
|
-
} else if (topRightToolHide && Object.keys(topRightToolHide).length) {
|
|
13641
|
-
return defaultvue_type_script_lang_js_extends({}, topRightToolHide, { set: !this.set, system: false });
|
|
13642
|
-
} else {
|
|
13643
|
-
return { set: !this.set, system: false };
|
|
13644
|
-
}
|
|
13645
|
-
} else if (this.layout === 'topside' || this.layout === 'side') {
|
|
13646
|
-
if (this.hides && Object.keys(this.hides).length) {
|
|
13647
|
-
return defaultvue_type_script_lang_js_extends({}, this.hides, {
|
|
13648
|
-
set: !this.set,
|
|
13649
|
-
system: true,
|
|
13650
|
-
user: true
|
|
13651
|
-
});
|
|
13652
|
-
} else if (topRightToolHide && Object.keys(topRightToolHide).length) {
|
|
13653
|
-
return defaultvue_type_script_lang_js_extends({}, topRightToolHide, {
|
|
13654
|
-
set: !this.set,
|
|
13655
|
-
system: true,
|
|
13656
|
-
user: true
|
|
13657
|
-
});
|
|
13658
|
-
} else {
|
|
13659
|
-
return { set: !this.set, system: true, user: true };
|
|
13660
|
-
}
|
|
13661
|
-
} else {
|
|
13662
|
-
if (this.hides && Object.keys(this.hides).length) {
|
|
13663
|
-
return defaultvue_type_script_lang_js_extends({}, this.hides, {
|
|
13664
|
-
set: !this.set,
|
|
13665
|
-
system: true,
|
|
13666
|
-
user: true
|
|
13667
|
-
});
|
|
13668
|
-
} else if (topRightToolHide && Object.keys(topRightToolHide).length) {
|
|
13669
|
-
return defaultvue_type_script_lang_js_extends({}, topRightToolHide, {
|
|
13670
|
-
set: !this.set,
|
|
13671
|
-
system: true,
|
|
13672
|
-
user: true
|
|
13673
|
-
});
|
|
13674
|
-
} else {
|
|
13675
|
-
return { set: !this.set, system: true };
|
|
13676
|
-
}
|
|
13820
|
+
hides.system = false;
|
|
13677
13821
|
}
|
|
13822
|
+
if (this.layout === 'topside' || this.layout === 'side') {
|
|
13823
|
+
hides.user = true;
|
|
13824
|
+
}
|
|
13825
|
+
return defaultvue_type_script_lang_js_extends({}, hides, this.hides, topRightToolHide);
|
|
13678
13826
|
},
|
|
13679
13827
|
logoUrl: function logoUrl() {
|
|
13680
13828
|
if (this.mainLogo) {
|
|
@@ -13716,7 +13864,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13716
13864
|
handler: function handler(val) {
|
|
13717
13865
|
if (this.set) {
|
|
13718
13866
|
localStorage.setItem('theme', val);
|
|
13719
|
-
|
|
13867
|
+
utils_util["a" /* default */].updateTheme(val);
|
|
13720
13868
|
}
|
|
13721
13869
|
}
|
|
13722
13870
|
}
|
|
@@ -13788,7 +13936,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13788
13936
|
//显示设置面板
|
|
13789
13937
|
showSet: false,
|
|
13790
13938
|
//当前设置的主题
|
|
13791
|
-
color:
|
|
13939
|
+
color: utils_util["a" /* default */].getStorage('theme') ? utils_util["a" /* default */].getStorage('theme') : this.theme,
|
|
13792
13940
|
//显示用户信息
|
|
13793
13941
|
showUserInfo: false,
|
|
13794
13942
|
userInfoContents: undefined,
|
|
@@ -13812,34 +13960,37 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13812
13960
|
showPage: false,
|
|
13813
13961
|
webSocket: null,
|
|
13814
13962
|
dialog: {},
|
|
13815
|
-
hideSubMenu: false
|
|
13963
|
+
hideSubMenu: false,
|
|
13964
|
+
doorIndex: '',
|
|
13965
|
+
topRightToolHide: ''
|
|
13816
13966
|
};
|
|
13817
13967
|
},
|
|
13818
13968
|
created: function created() {
|
|
13819
|
-
var params =
|
|
13969
|
+
var params = utils_util["a" /* default */].getParams() || {};
|
|
13820
13970
|
if (typeof this.loadHomePage === 'string') {
|
|
13821
13971
|
this.homePage = this.loadHomePage;
|
|
13822
13972
|
}
|
|
13823
13973
|
this.isHeader = params.header;
|
|
13824
13974
|
var sysLogoIco = sessionStorage.getItem('sysLogoIco');
|
|
13825
|
-
sysLogoIco &&
|
|
13975
|
+
sysLogoIco && utils_util["a" /* default */].setFavicon(sysLogoIco);
|
|
13826
13976
|
|
|
13827
|
-
var mainConfig =
|
|
13977
|
+
var mainConfig = utils_util["a" /* default */].getStorage('mainConfig');
|
|
13828
13978
|
if (mainConfig) {
|
|
13829
13979
|
var results = JSON.parse(mainConfig);
|
|
13830
13980
|
if (Object.keys(results).length) {
|
|
13831
13981
|
this.init(results);
|
|
13832
13982
|
}
|
|
13833
13983
|
}
|
|
13984
|
+
this.doorIndex = sessionStorage.getItem('doorIndex');
|
|
13834
13985
|
},
|
|
13835
13986
|
mounted: function mounted() {
|
|
13836
13987
|
this.handleListener();
|
|
13837
|
-
|
|
13988
|
+
utils_util["a" /* default */].win.addEventListener('popstate', this.stateHandle, false);
|
|
13838
13989
|
},
|
|
13839
13990
|
|
|
13840
13991
|
methods: {
|
|
13841
13992
|
stateHandle: function stateHandle() {
|
|
13842
|
-
|
|
13993
|
+
utils_util["a" /* default */].win.location.reload();
|
|
13843
13994
|
},
|
|
13844
13995
|
menuSuccess: function menuSuccess(res) {
|
|
13845
13996
|
this.menuType = 'custom';
|
|
@@ -13878,7 +14029,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13878
14029
|
renderMenu: function renderMenu() {
|
|
13879
14030
|
if (this.data !== undefined && this.data.length) {
|
|
13880
14031
|
this.menus = JSON.parse(JSON.stringify(this.data));
|
|
13881
|
-
var applicationid =
|
|
14032
|
+
var applicationid = utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId');
|
|
13882
14033
|
if (applicationid) {
|
|
13883
14034
|
var ids = this.getId(this.menus, applicationid);
|
|
13884
14035
|
if (ids) {
|
|
@@ -13893,13 +14044,13 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13893
14044
|
//this.navIds = ids;
|
|
13894
14045
|
this.setTitle(_ids[0]);
|
|
13895
14046
|
}
|
|
13896
|
-
} else if (
|
|
13897
|
-
var hash =
|
|
14047
|
+
} else if (utils_util["a" /* default */].win.location.hash) {
|
|
14048
|
+
var hash = utils_util["a" /* default */].win.location.hash;
|
|
13898
14049
|
if (hash) {
|
|
13899
14050
|
hash = hash.split('?')[0];
|
|
13900
14051
|
}
|
|
13901
14052
|
if (hash !== '#/' && hash !== '#/main') {
|
|
13902
|
-
var _ids2 = this.getId(this.menus,
|
|
14053
|
+
var _ids2 = this.getId(this.menus, utils_util["a" /* default */].win.location.hash);
|
|
13903
14054
|
if (_ids2) {
|
|
13904
14055
|
this.defaultActive = _ids2;
|
|
13905
14056
|
//this.navIds = ids;
|
|
@@ -13925,7 +14076,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13925
14076
|
if (!color) {
|
|
13926
14077
|
return;
|
|
13927
14078
|
}
|
|
13928
|
-
|
|
14079
|
+
utils_util["a" /* default */].ajax({
|
|
13929
14080
|
url: api["Yb" /* updateUserCustomInfo */],
|
|
13930
14081
|
params: { color: escape(color.toLowerCase()) },
|
|
13931
14082
|
data: { color: escape(color.toLowerCase()) }
|
|
@@ -13933,7 +14084,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13933
14084
|
if (res.rCode === 0) {
|
|
13934
14085
|
_this.color = color;
|
|
13935
14086
|
localStorage.setItem('theme', color);
|
|
13936
|
-
var _mainConfig = JSON.parse(
|
|
14087
|
+
var _mainConfig = JSON.parse(utils_util["a" /* default */].getStorage('mainConfig'));
|
|
13937
14088
|
_mainConfig.userStyle.color = _this.color;
|
|
13938
14089
|
sessionStorage.setItem('mainConfig', JSON.stringify(_mainConfig));
|
|
13939
14090
|
_this.$emit('setting', 'theme', _this.color);
|
|
@@ -13969,7 +14120,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13969
14120
|
this.initWebSocket();
|
|
13970
14121
|
}
|
|
13971
14122
|
sessionStorage.setItem('mainConfig', JSON.stringify(results));
|
|
13972
|
-
|
|
14123
|
+
utils_util["a" /* default */].setStorage({
|
|
13973
14124
|
type: this.storage,
|
|
13974
14125
|
key: {
|
|
13975
14126
|
depId: results.userModel.depId,
|
|
@@ -13990,8 +14141,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
13990
14141
|
this.results[i] = results[i].split(',');
|
|
13991
14142
|
}
|
|
13992
14143
|
if (i === 'indexUrl' && results[i] && this.loadHomePage) {
|
|
13993
|
-
var applicationid =
|
|
13994
|
-
var hash =
|
|
14144
|
+
var applicationid = utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId');
|
|
14145
|
+
var hash = utils_util["a" /* default */].win.location.hash;
|
|
13995
14146
|
if (hash) {
|
|
13996
14147
|
hash = hash.split('?')[0];
|
|
13997
14148
|
}
|
|
@@ -14016,20 +14167,21 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14016
14167
|
}
|
|
14017
14168
|
if (i === 'doorIndex' && results[i]) {
|
|
14018
14169
|
window.open(results[i]);
|
|
14170
|
+
this.doorIndex = results[i];
|
|
14019
14171
|
}
|
|
14020
14172
|
if (i === 'subsystemName' && results[i]) {
|
|
14021
14173
|
document.title = results[i];
|
|
14022
14174
|
}
|
|
14023
14175
|
if (i === 'loginPage' && results[i]) {
|
|
14024
|
-
|
|
14176
|
+
utils_util["a" /* default */].setStorage('loginPage', results[i]);
|
|
14025
14177
|
}
|
|
14026
14178
|
if (i === 'sysLogoIco' && results[i]) {
|
|
14027
14179
|
sessionStorage.setItem('sysLogoIco', results[i]);
|
|
14028
|
-
|
|
14180
|
+
utils_util["a" /* default */].setFavicon(results[i]);
|
|
14029
14181
|
}
|
|
14030
14182
|
if (i === 'userStyle' && results[i] && results[i].color) {
|
|
14031
14183
|
var color = unescape(results[i].color).toLowerCase();
|
|
14032
|
-
if (
|
|
14184
|
+
if (utils_util["a" /* default */].startWith(color, '#')) {
|
|
14033
14185
|
this.color = color;
|
|
14034
14186
|
}
|
|
14035
14187
|
}
|
|
@@ -14042,14 +14194,20 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14042
14194
|
}
|
|
14043
14195
|
if (results[i].webPageWatermark) {
|
|
14044
14196
|
try {
|
|
14045
|
-
|
|
14046
|
-
|
|
14197
|
+
utils_util["a" /* default */].win.top.webPageWatermark = results[i].webPageWatermark;
|
|
14198
|
+
utils_util["a" /* default */].watermark(results[i].webPageWatermark);
|
|
14047
14199
|
} catch (error) {
|
|
14048
|
-
|
|
14200
|
+
utils_util["a" /* default */].win.postMessage({ type: 2, content: results[i].webPageWatermark }, '*');
|
|
14049
14201
|
}
|
|
14050
14202
|
}
|
|
14051
14203
|
if (results[i].loginPage) {
|
|
14052
|
-
|
|
14204
|
+
utils_util["a" /* default */].setStorage('loginPage', results[i].loginPage);
|
|
14205
|
+
}
|
|
14206
|
+
if (results[i].portalPage || results[i].portalpage) {
|
|
14207
|
+
this.doorIndex = results[i].portalPage || results[i].portalpage;
|
|
14208
|
+
}
|
|
14209
|
+
if (results[i].topRightToolHide) {
|
|
14210
|
+
this.topRightToolHide = results[i].topRightToolHide;
|
|
14053
14211
|
}
|
|
14054
14212
|
}
|
|
14055
14213
|
store["a" /* default */].set(i, results[i]);
|
|
@@ -14069,7 +14227,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14069
14227
|
reGetConfig: function reGetConfig() {
|
|
14070
14228
|
var _this2 = this;
|
|
14071
14229
|
|
|
14072
|
-
|
|
14230
|
+
utils_util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
|
|
14073
14231
|
if (res && res.rCode === 0) {
|
|
14074
14232
|
var results = JSON.parse(JSON.stringify(res.results));
|
|
14075
14233
|
_this2.setConfig(results, 1);
|
|
@@ -14100,9 +14258,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14100
14258
|
this.hideSubMenu = hide;
|
|
14101
14259
|
}
|
|
14102
14260
|
var option = { url: res, isUrl: isUrl, param: param };
|
|
14103
|
-
if (
|
|
14261
|
+
if (utils_util["a" /* default */].isObject(res)) {
|
|
14104
14262
|
if (res.urlopenmode == 1) {
|
|
14105
|
-
|
|
14263
|
+
utils_util["a" /* default */].win.open(res.url);
|
|
14106
14264
|
return;
|
|
14107
14265
|
} else if (res.urlopenmode == 2) {
|
|
14108
14266
|
location.href = res.url;
|
|
@@ -14127,7 +14285,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14127
14285
|
if (routes) {
|
|
14128
14286
|
var path = this.hasRouter(routes, option.url);
|
|
14129
14287
|
if (path) {
|
|
14130
|
-
var params =
|
|
14288
|
+
var params = utils_util["a" /* default */].getParams({ url: option.url });
|
|
14131
14289
|
this.$router.push({
|
|
14132
14290
|
path: path,
|
|
14133
14291
|
query: params
|
|
@@ -14258,7 +14416,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14258
14416
|
|
|
14259
14417
|
var param = this.menuCode ? { menuCode: this.menuCode } : {};
|
|
14260
14418
|
var params = defaultvue_type_script_lang_js_extends({}, this.param, param);
|
|
14261
|
-
|
|
14419
|
+
utils_util["a" /* default */].ajax({ url: this.action, params: params }).then(function (res) {
|
|
14262
14420
|
if (res.rCode === 0) {
|
|
14263
14421
|
if (res.results && res.results.length) {
|
|
14264
14422
|
_this4.menus = JSON.parse(JSON.stringify(res.results));
|
|
@@ -14281,19 +14439,19 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14281
14439
|
|
|
14282
14440
|
//设置默认左侧导航
|
|
14283
14441
|
setMenu: function setMenu(res) {
|
|
14284
|
-
var applicationid =
|
|
14442
|
+
var applicationid = utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId');
|
|
14285
14443
|
if (applicationid) {
|
|
14286
14444
|
var ids = this.getId(this.menus, applicationid);
|
|
14287
14445
|
if (ids) {
|
|
14288
14446
|
this.defaultActive = ids;
|
|
14289
14447
|
}
|
|
14290
|
-
} else if (
|
|
14291
|
-
var hash =
|
|
14448
|
+
} else if (utils_util["a" /* default */].win.location.hash) {
|
|
14449
|
+
var hash = utils_util["a" /* default */].win.location.hash;
|
|
14292
14450
|
if (hash) {
|
|
14293
14451
|
hash = hash.split('?')[0];
|
|
14294
14452
|
}
|
|
14295
14453
|
if (hash !== '#/' && hash !== '#/main') {
|
|
14296
|
-
var _ids4 = this.getId(this.menus,
|
|
14454
|
+
var _ids4 = this.getId(this.menus, utils_util["a" /* default */].win.location.hash);
|
|
14297
14455
|
if (_ids4) {
|
|
14298
14456
|
this.defaultActive = _ids4;
|
|
14299
14457
|
//this.navIds = ids;
|
|
@@ -14312,7 +14470,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14312
14470
|
this.isDefault = false;
|
|
14313
14471
|
this.setDefault(res, this.defaultActive);
|
|
14314
14472
|
} else {
|
|
14315
|
-
if (this.homePage || !
|
|
14473
|
+
if (this.homePage || !utils_util["a" /* default */].getStorage('mainConfig')) {
|
|
14316
14474
|
this.isDefault = true;
|
|
14317
14475
|
if (this.homePage && (!this.defaultActive || !this.defaultActive.length)) {
|
|
14318
14476
|
var _ids6 = this.getId(this.menus, this.homePage);
|
|
@@ -14379,7 +14537,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14379
14537
|
if (id && this.menu[0].id !== id) {
|
|
14380
14538
|
this.active.push(id);
|
|
14381
14539
|
} else {
|
|
14382
|
-
var _hash =
|
|
14540
|
+
var _hash = utils_util["a" /* default */].win.location.hash;
|
|
14383
14541
|
if (_hash) {
|
|
14384
14542
|
_hash = _hash.split('?')[0];
|
|
14385
14543
|
if (_hash !== '#/' && _hash !== '#/main') {
|
|
@@ -14563,14 +14721,14 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14563
14721
|
},
|
|
14564
14722
|
setUrl: function setUrl(url, param) {
|
|
14565
14723
|
var obj = param ? param : {};
|
|
14566
|
-
var params =
|
|
14724
|
+
var params = utils_util["a" /* default */].getParams({ url: url }, true);
|
|
14567
14725
|
for (var i in params) {
|
|
14568
14726
|
if (i != 'model' && i != 'view' && i != '_baseUrl') {
|
|
14569
14727
|
obj[i] = params[i];
|
|
14570
14728
|
}
|
|
14571
14729
|
}
|
|
14572
14730
|
var _url = params._baseUrl ? params._baseUrl : './primary.html';
|
|
14573
|
-
return
|
|
14731
|
+
return utils_util["a" /* default */].urlJoinParams({ url: _url, param: obj });
|
|
14574
14732
|
},
|
|
14575
14733
|
handleVisibleChange: function handleVisibleChange(res) {
|
|
14576
14734
|
this.showJobs = res;
|
|
@@ -14790,6 +14948,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14790
14948
|
_this7.reset = true;
|
|
14791
14949
|
});
|
|
14792
14950
|
break;
|
|
14951
|
+
case 'index':
|
|
14952
|
+
utils_util["a" /* default */].win.open(this.doorIndex, '_self');
|
|
14953
|
+
break;
|
|
14793
14954
|
case 'user':
|
|
14794
14955
|
this.showUserInfo = true;
|
|
14795
14956
|
break;
|
|
@@ -14807,7 +14968,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14807
14968
|
this.handleSet();
|
|
14808
14969
|
break;
|
|
14809
14970
|
case 'goView':
|
|
14810
|
-
|
|
14971
|
+
utils_util["a" /* default */].win.open(res.path, '_blank');
|
|
14811
14972
|
break;
|
|
14812
14973
|
}
|
|
14813
14974
|
this.$emit('handler-click', res);
|
|
@@ -14818,7 +14979,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14818
14979
|
var _this8 = this;
|
|
14819
14980
|
|
|
14820
14981
|
if (this.method === 'iframe') {
|
|
14821
|
-
this.page =
|
|
14982
|
+
this.page = utils_util["a" /* default */].handlerUrl(this.page);
|
|
14822
14983
|
} else {
|
|
14823
14984
|
this.refresh = false;
|
|
14824
14985
|
this.$nextTick(function () {
|
|
@@ -14842,18 +15003,18 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14842
15003
|
this.pid = res.pid;
|
|
14843
15004
|
}
|
|
14844
15005
|
}
|
|
14845
|
-
if (
|
|
15006
|
+
if (utils_util["a" /* default */].win.location.hash === page && prevPage === page) {
|
|
14846
15007
|
this.refresh = true;
|
|
14847
15008
|
return;
|
|
14848
15009
|
}
|
|
14849
15010
|
if (type == 1) {
|
|
14850
|
-
|
|
15011
|
+
utils_util["a" /* default */].win.open(page);
|
|
14851
15012
|
} else if (type == 2) {
|
|
14852
15013
|
location.href = page;
|
|
14853
15014
|
} else if (type == 3 || this.loadWujie === false || this.downgrade && defaultvue_type_script_lang_js_isIE) {
|
|
14854
15015
|
this.method = 'iframe';
|
|
14855
15016
|
this.refresh = false;
|
|
14856
|
-
this.page =
|
|
15017
|
+
this.page = utils_util["a" /* default */].handlerUrl(page, param);
|
|
14857
15018
|
} else if (page) {
|
|
14858
15019
|
var urls = page.split('?');
|
|
14859
15020
|
if (urls[0].indexOf('.js') > 1) {
|
|
@@ -14866,19 +15027,19 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14866
15027
|
} else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
|
|
14867
15028
|
this.method = 'iframe';
|
|
14868
15029
|
this.refresh = false;
|
|
14869
|
-
this.page =
|
|
15030
|
+
this.page = utils_util["a" /* default */].handlerUrl(page, param);
|
|
14870
15031
|
} else {
|
|
14871
15032
|
if (urls[0].indexOf('.html') === -1 && urls[0].indexOf('#/') === -1) {
|
|
14872
15033
|
this.method = 'iframe';
|
|
14873
15034
|
this.refresh = false;
|
|
14874
|
-
this.page =
|
|
15035
|
+
this.page = utils_util["a" /* default */].handlerUrl(page, param);
|
|
14875
15036
|
} else {
|
|
14876
15037
|
this.method = 'router';
|
|
14877
15038
|
var routes = this.$router.options.routes;
|
|
14878
15039
|
if (routes) {
|
|
14879
15040
|
var path = this.hasRouter(routes, urls[0]);
|
|
14880
15041
|
if (path) {
|
|
14881
|
-
var params =
|
|
15042
|
+
var params = utils_util["a" /* default */].getParams({ url: page });
|
|
14882
15043
|
if (param) {
|
|
14883
15044
|
params = defaultvue_type_script_lang_js_extends({}, params, param);
|
|
14884
15045
|
}
|
|
@@ -14896,14 +15057,14 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14896
15057
|
_this9.refresh = true;
|
|
14897
15058
|
});
|
|
14898
15059
|
} else {
|
|
14899
|
-
var urlopenmode =
|
|
15060
|
+
var urlopenmode = utils_util["a" /* default */].getParams({
|
|
14900
15061
|
url: page,
|
|
14901
15062
|
name: 'urlopenmode'
|
|
14902
15063
|
});
|
|
14903
15064
|
if (this.loadWujie === false || this.downgrade && defaultvue_type_script_lang_js_isIE || urlopenmode == 3) {
|
|
14904
15065
|
this.method = 'iframe';
|
|
14905
15066
|
this.refresh = false;
|
|
14906
|
-
this.page =
|
|
15067
|
+
this.page = utils_util["a" /* default */].handlerUrl(page, param);
|
|
14907
15068
|
} else {
|
|
14908
15069
|
this.method = 'wujie';
|
|
14909
15070
|
this.wjName = res && res.appCode ? res.appCode : 'application';
|
|
@@ -14916,7 +15077,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
14916
15077
|
} else {
|
|
14917
15078
|
this.method = 'iframe';
|
|
14918
15079
|
this.refresh = false;
|
|
14919
|
-
this.page =
|
|
15080
|
+
this.page = utils_util["a" /* default */].handlerUrl(page, param);
|
|
14920
15081
|
this.$nextTick(function () {
|
|
14921
15082
|
_this9.refresh = true;
|
|
14922
15083
|
});
|
|
@@ -15039,7 +15200,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
15039
15200
|
handleListener: function handleListener() {
|
|
15040
15201
|
var _this10 = this;
|
|
15041
15202
|
|
|
15042
|
-
|
|
15203
|
+
utils_util["a" /* default */].win.addEventListener('message', function (e) {
|
|
15043
15204
|
var msg = e.data;
|
|
15044
15205
|
if (msg.key == 'jump_Menu') {
|
|
15045
15206
|
var res = msg.data1;
|
|
@@ -15055,7 +15216,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
15055
15216
|
initWebSocket: function initWebSocket() {
|
|
15056
15217
|
var _this11 = this;
|
|
15057
15218
|
|
|
15058
|
-
this.webSocket =
|
|
15219
|
+
this.webSocket = utils_util["a" /* default */].socket({
|
|
15059
15220
|
url: api["fc" /* wss */],
|
|
15060
15221
|
take: api["Vb" /* topic */],
|
|
15061
15222
|
success: function success(res) {
|
|
@@ -15090,8 +15251,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
15090
15251
|
if (_this11.$eventBus) {
|
|
15091
15252
|
_this11.$eventBus.$emit('websocket', data);
|
|
15092
15253
|
}
|
|
15093
|
-
if (
|
|
15094
|
-
|
|
15254
|
+
if (utils_util["a" /* default */].win.eventBus) {
|
|
15255
|
+
utils_util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
15095
15256
|
}
|
|
15096
15257
|
}
|
|
15097
15258
|
});
|
|
@@ -15130,7 +15291,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
15130
15291
|
if (this.webSocket) {
|
|
15131
15292
|
this.webSocket.destroy();
|
|
15132
15293
|
}
|
|
15133
|
-
|
|
15294
|
+
utils_util["a" /* default */].win.removeEventListener('popstate', this.tateHandle);
|
|
15134
15295
|
}
|
|
15135
15296
|
});
|
|
15136
15297
|
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=script&lang=js&
|
|
@@ -15145,8 +15306,8 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
15145
15306
|
|
|
15146
15307
|
var default_component = Object(componentNormalizer["a" /* default */])(
|
|
15147
15308
|
src_defaultvue_type_script_lang_js_,
|
|
15148
|
-
|
|
15149
|
-
|
|
15309
|
+
defaultvue_type_template_id_1867755c_render,
|
|
15310
|
+
defaultvue_type_template_id_1867755c_staticRenderFns,
|
|
15150
15311
|
false,
|
|
15151
15312
|
null,
|
|
15152
15313
|
null,
|
|
@@ -15236,7 +15397,7 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15236
15397
|
};
|
|
15237
15398
|
},
|
|
15238
15399
|
created: function created() {
|
|
15239
|
-
this.params =
|
|
15400
|
+
this.params = utils_util["a" /* default */].getParams() || {};
|
|
15240
15401
|
this.sysCode = this.params.sysCode;
|
|
15241
15402
|
this.appCode = this.params.appCode;
|
|
15242
15403
|
this.getConfig(this.params);
|
|
@@ -15245,16 +15406,16 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15245
15406
|
mounted: function mounted() {
|
|
15246
15407
|
var _this = this;
|
|
15247
15408
|
|
|
15248
|
-
if (
|
|
15249
|
-
|
|
15250
|
-
|
|
15409
|
+
if (utils_util["a" /* default */].win.$wujie) {
|
|
15410
|
+
utils_util["a" /* default */].win.$wujie.bus.$on('changeTheme', function (res) {
|
|
15411
|
+
utils_util["a" /* default */].updateTheme(res);
|
|
15251
15412
|
});
|
|
15252
15413
|
}
|
|
15253
15414
|
|
|
15254
|
-
|
|
15255
|
-
|
|
15256
|
-
|
|
15257
|
-
|
|
15415
|
+
utils_util["a" /* default */].win.reLogin = this.handleReLogin;
|
|
15416
|
+
utils_util["a" /* default */].win.windowOpen = this.openPage;
|
|
15417
|
+
utils_util["a" /* default */].win.refresh = this.$refs.main.handleRefresh;
|
|
15418
|
+
utils_util["a" /* default */].win.jumpMenu = this.$refs.main.jumpMenu;
|
|
15258
15419
|
bus.$on('reLogin', this.handleReLogin);
|
|
15259
15420
|
bus.$on('refresh', this.$refs.main.handleRefresh);
|
|
15260
15421
|
bus.$on('jumpMenu', this.$refs.main.jumpMenu);
|
|
@@ -15337,13 +15498,13 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15337
15498
|
console.log('handleReLogin');
|
|
15338
15499
|
sessionStorage.setItem('remind', 1);
|
|
15339
15500
|
_this2.$confirm(msg, btn).then(function () {
|
|
15340
|
-
|
|
15341
|
-
var loginPage =
|
|
15501
|
+
utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
15502
|
+
var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
15342
15503
|
try {
|
|
15343
15504
|
if (loginPage) {
|
|
15344
15505
|
var src = void 0;
|
|
15345
|
-
if (!
|
|
15346
|
-
var pathname =
|
|
15506
|
+
if (!utils_util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
15507
|
+
var pathname = utils_util["a" /* default */].win.top.location.pathname;
|
|
15347
15508
|
if (pathname !== '/') {
|
|
15348
15509
|
pathname = pathname.split('/');
|
|
15349
15510
|
pathname.splice(pathname.length - 1);
|
|
@@ -15355,20 +15516,20 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15355
15516
|
} else {
|
|
15356
15517
|
src = loginPage;
|
|
15357
15518
|
}
|
|
15358
|
-
|
|
15359
|
-
} else if (
|
|
15360
|
-
|
|
15519
|
+
utils_util["a" /* default */].win.top.location.href = src;
|
|
15520
|
+
} else if (utils_util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
15521
|
+
utils_util["a" /* default */].win.top.location.href = './login.html';
|
|
15361
15522
|
} else {
|
|
15362
|
-
var hash =
|
|
15523
|
+
var hash = utils_util["a" /* default */].win.top.location.hash;
|
|
15363
15524
|
if (hash) {
|
|
15364
|
-
var len =
|
|
15365
|
-
|
|
15525
|
+
var len = utils_util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
15526
|
+
utils_util["a" /* default */].win.top.location.href = utils_util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
15366
15527
|
} else {
|
|
15367
|
-
|
|
15528
|
+
utils_util["a" /* default */].win.top.location.href = '/login.html';
|
|
15368
15529
|
}
|
|
15369
15530
|
}
|
|
15370
15531
|
} catch (error) {
|
|
15371
|
-
|
|
15532
|
+
utils_util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
15372
15533
|
}
|
|
15373
15534
|
}).catch(function (e) {
|
|
15374
15535
|
sessionStorage.removeItem('remind');
|
|
@@ -15385,13 +15546,13 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15385
15546
|
getConfig: function getConfig(query) {
|
|
15386
15547
|
var _this3 = this;
|
|
15387
15548
|
|
|
15388
|
-
var token =
|
|
15549
|
+
var token = utils_util["a" /* default */].getStorage('token') || utils_util["a" /* default */].getStorage('Authorization');
|
|
15389
15550
|
if (!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType')) {
|
|
15390
15551
|
return false;
|
|
15391
15552
|
}
|
|
15392
|
-
var mainConfig =
|
|
15553
|
+
var mainConfig = utils_util["a" /* default */].getStorage('mainConfig');
|
|
15393
15554
|
if (!mainConfig || mainConfig == '{}') {
|
|
15394
|
-
|
|
15555
|
+
utils_util["a" /* default */].getMainConfig(function (res) {
|
|
15395
15556
|
_this3.$refs.main.init(res);
|
|
15396
15557
|
});
|
|
15397
15558
|
}
|
|
@@ -15404,7 +15565,7 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15404
15565
|
**/
|
|
15405
15566
|
openPage: function openPage(url, name, width, height) {
|
|
15406
15567
|
var src = url;
|
|
15407
|
-
if (!
|
|
15568
|
+
if (!utils_util["a" /* default */].startWith(url, ['http', '/'], true)) {
|
|
15408
15569
|
var pathname = window.location.pathname;
|
|
15409
15570
|
if (pathname !== '/') {
|
|
15410
15571
|
pathname = pathname.split('/');
|
|
@@ -15417,15 +15578,15 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15417
15578
|
var w = 0;
|
|
15418
15579
|
var h = 0;
|
|
15419
15580
|
try {
|
|
15420
|
-
w = width ? width :
|
|
15421
|
-
h = height ? height :
|
|
15581
|
+
w = width ? width : utils_util["a" /* default */].win.top.screen.availWidth - 10;
|
|
15582
|
+
h = height ? height : utils_util["a" /* default */].win.top.screen.availHeight - 60;
|
|
15422
15583
|
} catch (error) {
|
|
15423
|
-
w = width ? width :
|
|
15424
|
-
h = height ? height :
|
|
15584
|
+
w = width ? width : utils_util["a" /* default */].win.screen.availWidth - 10;
|
|
15585
|
+
h = height ? height : utils_util["a" /* default */].win.screen.availHeight - 60;
|
|
15425
15586
|
}
|
|
15426
|
-
return
|
|
15587
|
+
return utils_util["a" /* default */].win.open(src, name, 'width=' + w + 'px,height=' + h + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
|
|
15427
15588
|
} else {
|
|
15428
|
-
return
|
|
15589
|
+
return utils_util["a" /* default */].win.open(src);
|
|
15429
15590
|
}
|
|
15430
15591
|
},
|
|
15431
15592
|
|
|
@@ -15438,7 +15599,7 @@ var bus = external_wujie_vue2_default.a.bus;
|
|
|
15438
15599
|
var data = _ref.data,
|
|
15439
15600
|
attrs = _ref.attrs;
|
|
15440
15601
|
|
|
15441
|
-
return
|
|
15602
|
+
return utils_util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
|
|
15442
15603
|
},
|
|
15443
15604
|
|
|
15444
15605
|
/**
|