eoss-ui 0.7.70 → 0.7.72
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 +60 -56
- package/lib/button.js +60 -56
- package/lib/calogin.js +60 -56
- package/lib/checkbox-group.js +60 -56
- package/lib/config/api.js +4 -1
- package/lib/data-table-form.js +60 -56
- package/lib/data-table.js +60 -56
- package/lib/date-picker.js +60 -56
- package/lib/dialog.js +60 -56
- package/lib/eoss-ui.common.js +706 -622
- package/lib/flow-group.js +60 -56
- package/lib/flow-list.js +62 -58
- package/lib/flow.js +99 -94
- package/lib/form.js +60 -56
- package/lib/handle-user.js +61 -57
- package/lib/handler.js +60 -56
- package/lib/icon.js +60 -56
- package/lib/index.js +1 -1
- package/lib/input-number.js +60 -56
- package/lib/input.js +60 -56
- package/lib/login.js +63 -59
- package/lib/main.js +761 -677
- package/lib/nav.js +60 -56
- package/lib/notify.js +65 -61
- package/lib/page.js +60 -56
- package/lib/pagination.js +60 -56
- package/lib/player.js +60 -56
- package/lib/qr-code.js +60 -56
- package/lib/radio-group.js +60 -56
- package/lib/retrial-auth.js +61 -57
- package/lib/select-ganged.js +60 -56
- package/lib/select.js +60 -56
- package/lib/selector-panel.js +60 -56
- package/lib/selector.js +60 -56
- package/lib/sizer.js +60 -56
- package/lib/steps.js +60 -56
- package/lib/switch.js +60 -56
- package/lib/table-form.js +60 -56
- package/lib/tabs.js +60 -56
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/simplicity-top.css +1 -1
- package/lib/tips.js +60 -56
- package/lib/tree-group.js +60 -56
- package/lib/tree.js +60 -56
- package/lib/upload.js +64 -60
- package/lib/wujie.js +60 -56
- package/lib/wxlogin.js +60 -56
- package/package.json +1 -1
- package/packages/flow/src/freeStartFlow.vue +2 -1
- package/packages/login/src/main.vue +3 -1
- package/packages/main/src/main.vue +50 -27
- package/packages/main/src/public/settings.vue +2 -2
- package/packages/main/src/simplicity/handler.vue +1 -3
- package/packages/main/src/simplicity/index.vue +13 -3
- package/packages/main/src/simplicityTop/handler.vue +1 -4
- package/packages/main/src/simplicityTop/index.vue +110 -61
- package/packages/theme-chalk/gulpfile.js +25 -0
- package/packages/theme-chalk/src/common/var.scss +1 -1
- package/packages/theme-chalk/src/simplicity-top.scss +3 -156
- package/src/config/api.js +4 -0
- package/src/index.js +1 -1
- package/packages/theme-chalk/lib/base.css +0 -1
- package/packages/theme-chalk/lib/button-group.css +0 -1
- package/packages/theme-chalk/lib/button.css +0 -1
- package/packages/theme-chalk/lib/calendar.css +0 -1
- package/packages/theme-chalk/lib/calogin.css +0 -0
- package/packages/theme-chalk/lib/card.css +0 -1
- package/packages/theme-chalk/lib/cascader.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +0 -1
- package/packages/theme-chalk/lib/clients.css +0 -1
- package/packages/theme-chalk/lib/data-table-form.css +0 -1
- package/packages/theme-chalk/lib/data-table.css +0 -1
- package/packages/theme-chalk/lib/date-picker.css +0 -1
- package/packages/theme-chalk/lib/dialog.css +0 -1
- package/packages/theme-chalk/lib/enable-drag.css +0 -1
- package/packages/theme-chalk/lib/enterprise.css +0 -1
- package/packages/theme-chalk/lib/error-page.css +0 -1
- package/packages/theme-chalk/lib/flow-chart.css +0 -0
- package/packages/theme-chalk/lib/flow-group.css +0 -1
- package/packages/theme-chalk/lib/flow-list.css +0 -1
- package/packages/theme-chalk/lib/flow.css +0 -1
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/form.css +0 -1
- package/packages/theme-chalk/lib/handle-user.css +0 -1
- package/packages/theme-chalk/lib/handler.css +0 -1
- package/packages/theme-chalk/lib/icon.css +0 -1
- package/packages/theme-chalk/lib/icons.css +0 -1
- package/packages/theme-chalk/lib/index.css +0 -1
- package/packages/theme-chalk/lib/input-number.css +0 -0
- package/packages/theme-chalk/lib/input.css +0 -1
- package/packages/theme-chalk/lib/label.css +0 -1
- package/packages/theme-chalk/lib/layout.css +0 -1
- package/packages/theme-chalk/lib/login.css +0 -1
- package/packages/theme-chalk/lib/main.css +0 -1
- package/packages/theme-chalk/lib/menu.css +0 -1
- package/packages/theme-chalk/lib/nav.css +0 -1
- package/packages/theme-chalk/lib/notify.css +0 -0
- package/packages/theme-chalk/lib/page.css +0 -1
- package/packages/theme-chalk/lib/pagination.css +0 -1
- package/packages/theme-chalk/lib/player.css +0 -1
- package/packages/theme-chalk/lib/qr-code.css +0 -1
- package/packages/theme-chalk/lib/radio-group.css +0 -1
- package/packages/theme-chalk/lib/retrial-auth.css +0 -1
- package/packages/theme-chalk/lib/select-ganged.css +0 -1
- package/packages/theme-chalk/lib/select.css +0 -1
- package/packages/theme-chalk/lib/selector-panel.css +0 -1
- package/packages/theme-chalk/lib/selector.css +0 -1
- package/packages/theme-chalk/lib/simplicity-top.css +0 -1
- package/packages/theme-chalk/lib/simplicity.css +0 -1
- package/packages/theme-chalk/lib/sizer.css +0 -1
- package/packages/theme-chalk/lib/steps.css +0 -1
- package/packages/theme-chalk/lib/switch.css +0 -1
- package/packages/theme-chalk/lib/table-form.css +0 -0
- package/packages/theme-chalk/lib/tabs-panel.css +0 -0
- package/packages/theme-chalk/lib/tabs.css +0 -1
- package/packages/theme-chalk/lib/tips.css +0 -1
- package/packages/theme-chalk/lib/toolbar.css +0 -1
- package/packages/theme-chalk/lib/tree-group.css +0 -1
- package/packages/theme-chalk/lib/tree.css +0 -1
- package/packages/theme-chalk/lib/upload.css +0 -1
- package/packages/theme-chalk/lib/wujie.css +0 -0
- package/packages/theme-chalk/lib/wxlogin.css +0 -1
package/lib/eoss-ui.common.js
CHANGED
|
@@ -236,8 +236,8 @@ module.exports = require("lodash");
|
|
|
236
236
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
237
237
|
|
|
238
238
|
"use strict";
|
|
239
|
-
/* harmony import */ var
|
|
240
|
-
/* harmony import */ var
|
|
239
|
+
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_settings_vue_vue_type_style_index_0_id_1b15d77c_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
|
|
240
|
+
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_settings_vue_vue_type_style_index_0_id_1b15d77c_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_settings_vue_vue_type_style_index_0_id_1b15d77c_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
241
241
|
/* unused harmony reexport * */
|
|
242
242
|
|
|
243
243
|
|
|
@@ -247,7 +247,7 @@ module.exports = require("lodash");
|
|
|
247
247
|
|
|
248
248
|
exports = module.exports = __webpack_require__(23)(false);
|
|
249
249
|
// Module
|
|
250
|
-
exports.push([module.i, "\n.es-setting-top-nav-side[data-v-
|
|
250
|
+
exports.push([module.i, "\n.es-setting-top-nav-side[data-v-1b15d77c]::before {\r\n content: '';\r\n display: block;\r\n position: absolute;\r\n left: 0;\r\n width: 8px;\r\n top: 10px;\r\n bottom: 0;\r\n z-index: 2;\r\n background-color: rgb(0, 80, 179);\n}\r\n", ""]);
|
|
251
251
|
|
|
252
252
|
|
|
253
253
|
|
|
@@ -1145,6 +1145,9 @@ var api_getVoteMeetingNum = '/conference/v1/voteMeeting/getVoteMeetingNum.json';
|
|
|
1145
1145
|
var api_getUserTipsInstanceNum = '/archives/llm/subject/getUserTipsInstanceNum';
|
|
1146
1146
|
// 查询待接收文件数量
|
|
1147
1147
|
var api_getShareFilesReceiveCountNew = '/oa/sharefiles/receive/getShareFilesReceiveCountNew.dhtml';
|
|
1148
|
+
|
|
1149
|
+
// 查询左侧我的提醒和我的快捷菜单
|
|
1150
|
+
var queryChildMenuUrl = '/sys/v1/userCustom/queryChildMenu.dhtml?type=2';
|
|
1148
1151
|
// EXTERNAL MODULE: external "axios"
|
|
1149
1152
|
var external_axios_ = __webpack_require__(8);
|
|
1150
1153
|
var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
|
|
@@ -41189,8 +41192,8 @@ var taskUnionExamine_component = normalizeComponent(
|
|
|
41189
41192
|
)
|
|
41190
41193
|
|
|
41191
41194
|
/* harmony default export */ var component_taskUnionExamine = (taskUnionExamine_component.exports);
|
|
41192
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/freeStartFlow.vue?vue&type=template&id=
|
|
41193
|
-
var
|
|
41195
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/freeStartFlow.vue?vue&type=template&id=bacd05b4&
|
|
41196
|
+
var freeStartFlowvue_type_template_id_bacd05b4_render = function () {
|
|
41194
41197
|
var _vm = this
|
|
41195
41198
|
var _h = _vm.$createElement
|
|
41196
41199
|
var _c = _vm._self._c || _h
|
|
@@ -43289,11 +43292,11 @@ var freeStartFlowvue_type_template_id_71c6df47_render = function () {
|
|
|
43289
43292
|
)
|
|
43290
43293
|
: _vm._e()
|
|
43291
43294
|
}
|
|
43292
|
-
var
|
|
43293
|
-
|
|
43295
|
+
var freeStartFlowvue_type_template_id_bacd05b4_staticRenderFns = []
|
|
43296
|
+
freeStartFlowvue_type_template_id_bacd05b4_render._withStripped = true
|
|
43294
43297
|
|
|
43295
43298
|
|
|
43296
|
-
// CONCATENATED MODULE: ./packages/flow/src/freeStartFlow.vue?vue&type=template&id=
|
|
43299
|
+
// CONCATENATED MODULE: ./packages/flow/src/freeStartFlow.vue?vue&type=template&id=bacd05b4&
|
|
43297
43300
|
|
|
43298
43301
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/freeStartFlow.vue?vue&type=script&lang=js&
|
|
43299
43302
|
|
|
@@ -44144,7 +44147,7 @@ function freeStartFlowvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
44144
44147
|
nextOtherOrgObjSelect: [],
|
|
44145
44148
|
subProcessColumns: [],
|
|
44146
44149
|
nextCurrentOrgObjSelect: [],
|
|
44147
|
-
otherParams: { filid: 'all', roleid:
|
|
44150
|
+
otherParams: { filid: 'all', roleid: '', nofilid: sessionStorage.getItem('orgId') },
|
|
44148
44151
|
loading: null, // 加载中
|
|
44149
44152
|
newTypeCode: '',
|
|
44150
44153
|
NodeName: '', // 当前节点值
|
|
@@ -44265,6 +44268,7 @@ function freeStartFlowvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
44265
44268
|
mounted: function mounted() {
|
|
44266
44269
|
this.businessIds = this.startFlowBusinessId;
|
|
44267
44270
|
this.nextNode.nextNodeId = this.nextNodeId;
|
|
44271
|
+
this.otherParams.roleid = this.selectorParams.roleid;
|
|
44268
44272
|
this.getNodeType();
|
|
44269
44273
|
!this.isFlow && (this.newTypeCode = this.typeCode || this.$route.query.typecode);
|
|
44270
44274
|
if (this.isFlow) {
|
|
@@ -46009,8 +46013,8 @@ function freeStartFlowvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
46009
46013
|
|
|
46010
46014
|
var freeStartFlow_component = normalizeComponent(
|
|
46011
46015
|
src_freeStartFlowvue_type_script_lang_js_,
|
|
46012
|
-
|
|
46013
|
-
|
|
46016
|
+
freeStartFlowvue_type_template_id_bacd05b4_render,
|
|
46017
|
+
freeStartFlowvue_type_template_id_bacd05b4_staticRenderFns,
|
|
46014
46018
|
false,
|
|
46015
46019
|
null,
|
|
46016
46020
|
null,
|
|
@@ -57519,8 +57523,8 @@ layout_src_main.install = function (Vue) {
|
|
|
57519
57523
|
};
|
|
57520
57524
|
|
|
57521
57525
|
/* harmony default export */ var packages_layout = (layout_src_main);
|
|
57522
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
57523
|
-
var
|
|
57526
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=7774c1e2&
|
|
57527
|
+
var mainvue_type_template_id_7774c1e2_render = function () {
|
|
57524
57528
|
var _vm = this
|
|
57525
57529
|
var _h = _vm.$createElement
|
|
57526
57530
|
var _c = _vm._self._c || _h
|
|
@@ -58794,7 +58798,7 @@ var mainvue_type_template_id_6eee97de_render = function () {
|
|
|
58794
58798
|
)
|
|
58795
58799
|
: _vm._e()
|
|
58796
58800
|
}
|
|
58797
|
-
var
|
|
58801
|
+
var mainvue_type_template_id_7774c1e2_staticRenderFns = [
|
|
58798
58802
|
function () {
|
|
58799
58803
|
var _vm = this
|
|
58800
58804
|
var _h = _vm.$createElement
|
|
@@ -58809,10 +58813,10 @@ var mainvue_type_template_id_6eee97de_staticRenderFns = [
|
|
|
58809
58813
|
])
|
|
58810
58814
|
},
|
|
58811
58815
|
]
|
|
58812
|
-
|
|
58816
|
+
mainvue_type_template_id_7774c1e2_render._withStripped = true
|
|
58813
58817
|
|
|
58814
58818
|
|
|
58815
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
58819
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=7774c1e2&
|
|
58816
58820
|
|
|
58817
58821
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=325dc074&
|
|
58818
58822
|
var resetPasswordvue_type_template_id_325dc074_render = function () {
|
|
@@ -60249,7 +60253,7 @@ var mainvue_type_script_lang_js_params = utils_util.getParams();
|
|
|
60249
60253
|
return { 'background-image': 'url(' + img + ')' };
|
|
60250
60254
|
},
|
|
60251
60255
|
showForget: function showForget() {
|
|
60252
|
-
return this.forgetUrl && typeof this.forgetUrl === 'string' ? true : this.forgetUrl === true && this.loginModel.indexOf('0') > -1;
|
|
60256
|
+
return this.forgetUrl && typeof this.forgetUrl === 'string' ? true : this.forgetUrl === true && this.loginModel.indexOf('0') > -1 && this.showVerifyCode;
|
|
60253
60257
|
},
|
|
60254
60258
|
isCeshi: function isCeshi() {
|
|
60255
60259
|
return this.ceshi ? mainvue_type_script_lang_js_params[this.ceshi] : false;
|
|
@@ -61418,8 +61422,8 @@ var mainvue_type_script_lang_js_params = utils_util.getParams();
|
|
|
61418
61422
|
|
|
61419
61423
|
var login_src_main_component = normalizeComponent(
|
|
61420
61424
|
packages_login_src_mainvue_type_script_lang_js_,
|
|
61421
|
-
|
|
61422
|
-
|
|
61425
|
+
mainvue_type_template_id_7774c1e2_render,
|
|
61426
|
+
mainvue_type_template_id_7774c1e2_staticRenderFns,
|
|
61423
61427
|
false,
|
|
61424
61428
|
null,
|
|
61425
61429
|
null,
|
|
@@ -61436,8 +61440,8 @@ login_src_main.install = function (Vue) {
|
|
|
61436
61440
|
};
|
|
61437
61441
|
|
|
61438
61442
|
/* harmony default export */ var login = (login_src_main);
|
|
61439
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=
|
|
61440
|
-
var
|
|
61443
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=0fbde292&
|
|
61444
|
+
var mainvue_type_template_id_0fbde292_render = function () {
|
|
61441
61445
|
var _vm = this
|
|
61442
61446
|
var _h = _vm.$createElement
|
|
61443
61447
|
var _c = _vm._self._c || _h
|
|
@@ -61580,14 +61584,14 @@ var mainvue_type_template_id_08d4664a_render = function () {
|
|
|
61580
61584
|
)
|
|
61581
61585
|
: _vm._e()
|
|
61582
61586
|
}
|
|
61583
|
-
var
|
|
61584
|
-
|
|
61587
|
+
var mainvue_type_template_id_0fbde292_staticRenderFns = []
|
|
61588
|
+
mainvue_type_template_id_0fbde292_render._withStripped = true
|
|
61585
61589
|
|
|
61586
61590
|
|
|
61587
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
61591
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=0fbde292&
|
|
61588
61592
|
|
|
61589
|
-
// 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=
|
|
61590
|
-
var
|
|
61593
|
+
// 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=c4919c58&scoped=true&
|
|
61594
|
+
var simplicityvue_type_template_id_c4919c58_scoped_true_render = function () {
|
|
61591
61595
|
var _vm = this
|
|
61592
61596
|
var _h = _vm.$createElement
|
|
61593
61597
|
var _c = _vm._self._c || _h
|
|
@@ -61621,7 +61625,9 @@ var simplicityvue_type_template_id_429559f0_scoped_true_render = function () {
|
|
|
61621
61625
|
),
|
|
61622
61626
|
]
|
|
61623
61627
|
),
|
|
61624
|
-
_vm.
|
|
61628
|
+
_vm.jobExplicited &&
|
|
61629
|
+
_vm.user.identityList &&
|
|
61630
|
+
_vm.user.identityList.length > 1
|
|
61625
61631
|
? _c(
|
|
61626
61632
|
"el-dropdown",
|
|
61627
61633
|
{
|
|
@@ -62351,11 +62357,11 @@ var simplicityvue_type_template_id_429559f0_scoped_true_render = function () {
|
|
|
62351
62357
|
),
|
|
62352
62358
|
])
|
|
62353
62359
|
}
|
|
62354
|
-
var
|
|
62355
|
-
|
|
62360
|
+
var simplicityvue_type_template_id_c4919c58_scoped_true_staticRenderFns = []
|
|
62361
|
+
simplicityvue_type_template_id_c4919c58_scoped_true_render._withStripped = true
|
|
62356
62362
|
|
|
62357
62363
|
|
|
62358
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
62364
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=c4919c58&scoped=true&
|
|
62359
62365
|
|
|
62360
62366
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=e722b45c&scoped=true&
|
|
62361
62367
|
var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
|
|
@@ -62506,8 +62512,8 @@ var avatar_component = normalizeComponent(
|
|
|
62506
62512
|
)
|
|
62507
62513
|
|
|
62508
62514
|
/* harmony default export */ var avatar = (avatar_component.exports);
|
|
62509
|
-
// 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=
|
|
62510
|
-
var
|
|
62515
|
+
// 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=f2c8221c&scoped=true&
|
|
62516
|
+
var handlervue_type_template_id_f2c8221c_scoped_true_render = function () {
|
|
62511
62517
|
var _vm = this
|
|
62512
62518
|
var _h = _vm.$createElement
|
|
62513
62519
|
var _c = _vm._self._c || _h
|
|
@@ -62662,11 +62668,11 @@ var handlervue_type_template_id_4332e6c6_scoped_true_render = function () {
|
|
|
62662
62668
|
2
|
|
62663
62669
|
)
|
|
62664
62670
|
}
|
|
62665
|
-
var
|
|
62666
|
-
|
|
62671
|
+
var handlervue_type_template_id_f2c8221c_scoped_true_staticRenderFns = []
|
|
62672
|
+
handlervue_type_template_id_f2c8221c_scoped_true_render._withStripped = true
|
|
62667
62673
|
|
|
62668
62674
|
|
|
62669
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=
|
|
62675
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=f2c8221c&scoped=true&
|
|
62670
62676
|
|
|
62671
62677
|
// 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&
|
|
62672
62678
|
var handlervue_type_script_lang_js_data;
|
|
@@ -62802,9 +62808,7 @@ var handlervue_type_script_lang_js_data;
|
|
|
62802
62808
|
data: (handlervue_type_script_lang_js_data = {
|
|
62803
62809
|
handler: 'deep',
|
|
62804
62810
|
immediate: true
|
|
62805
|
-
}, handlervue_type_script_lang_js_data['handler'] = function handler(newVal, oldVal) {
|
|
62806
|
-
console.log(newVal, 122221212);
|
|
62807
|
-
}, handlervue_type_script_lang_js_data)
|
|
62811
|
+
}, handlervue_type_script_lang_js_data['handler'] = function handler(newVal, oldVal) {}, handlervue_type_script_lang_js_data)
|
|
62808
62812
|
},
|
|
62809
62813
|
created: function created() {
|
|
62810
62814
|
//this.time = util.timeCycle() + '好!';
|
|
@@ -62843,11 +62847,11 @@ var handlervue_type_script_lang_js_data;
|
|
|
62843
62847
|
|
|
62844
62848
|
var handler_component = normalizeComponent(
|
|
62845
62849
|
simplicity_handlervue_type_script_lang_js_,
|
|
62846
|
-
|
|
62847
|
-
|
|
62850
|
+
handlervue_type_template_id_f2c8221c_scoped_true_render,
|
|
62851
|
+
handlervue_type_template_id_f2c8221c_scoped_true_staticRenderFns,
|
|
62848
62852
|
false,
|
|
62849
62853
|
null,
|
|
62850
|
-
"
|
|
62854
|
+
"f2c8221c",
|
|
62851
62855
|
null
|
|
62852
62856
|
|
|
62853
62857
|
)
|
|
@@ -66133,8 +66137,8 @@ var notice_component = normalizeComponent(
|
|
|
66133
66137
|
)
|
|
66134
66138
|
|
|
66135
66139
|
/* harmony default export */ var notice = (notice_component.exports);
|
|
66136
|
-
// 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/settings.vue?vue&type=template&id=
|
|
66137
|
-
var
|
|
66140
|
+
// 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/settings.vue?vue&type=template&id=1b15d77c&scoped=true&
|
|
66141
|
+
var settingsvue_type_template_id_1b15d77c_scoped_true_render = function () {
|
|
66138
66142
|
var _vm = this
|
|
66139
66143
|
var _h = _vm.$createElement
|
|
66140
66144
|
var _c = _vm._self._c || _h
|
|
@@ -66561,11 +66565,11 @@ var settingsvue_type_template_id_b9929eaa_scoped_true_render = function () {
|
|
|
66561
66565
|
]
|
|
66562
66566
|
)
|
|
66563
66567
|
}
|
|
66564
|
-
var
|
|
66565
|
-
|
|
66568
|
+
var settingsvue_type_template_id_1b15d77c_scoped_true_staticRenderFns = []
|
|
66569
|
+
settingsvue_type_template_id_1b15d77c_scoped_true_render._withStripped = true
|
|
66566
66570
|
|
|
66567
66571
|
|
|
66568
|
-
// CONCATENATED MODULE: ./packages/main/src/public/settings.vue?vue&type=template&id=
|
|
66572
|
+
// CONCATENATED MODULE: ./packages/main/src/public/settings.vue?vue&type=template&id=1b15d77c&scoped=true&
|
|
66569
66573
|
|
|
66570
66574
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/settings.vue?vue&type=script&lang=js&
|
|
66571
66575
|
//
|
|
@@ -66749,6 +66753,7 @@ settingsvue_type_template_id_b9929eaa_scoped_true_render._withStripped = true
|
|
|
66749
66753
|
themes: Array,
|
|
66750
66754
|
//默认主题色
|
|
66751
66755
|
theme: String,
|
|
66756
|
+
showSimplicityTop: Boolean,
|
|
66752
66757
|
//颜色板预设颜色
|
|
66753
66758
|
predefine: {
|
|
66754
66759
|
type: Array,
|
|
@@ -66794,7 +66799,7 @@ settingsvue_type_template_id_b9929eaa_scoped_true_render._withStripped = true
|
|
|
66794
66799
|
layoutName: this.layoutType,
|
|
66795
66800
|
activeName: this.active,
|
|
66796
66801
|
// 是否显示更多主题颜色选择面板 测试环境时需要显示 (打包后是什么环境?) 在simplicityTop/simplicity布局下 不显示
|
|
66797
|
-
showMoreTheme: false ? undefined : this.
|
|
66802
|
+
showMoreTheme: false ? undefined : this.showSimplicityTop ? false : true
|
|
66798
66803
|
};
|
|
66799
66804
|
},
|
|
66800
66805
|
mounted: function mounted() {},
|
|
@@ -66822,8 +66827,8 @@ settingsvue_type_template_id_b9929eaa_scoped_true_render._withStripped = true
|
|
|
66822
66827
|
});
|
|
66823
66828
|
// CONCATENATED MODULE: ./packages/main/src/public/settings.vue?vue&type=script&lang=js&
|
|
66824
66829
|
/* harmony default export */ var public_settingsvue_type_script_lang_js_ = (settingsvue_type_script_lang_js_);
|
|
66825
|
-
// EXTERNAL MODULE: ./packages/main/src/public/settings.vue?vue&type=style&index=0&id=
|
|
66826
|
-
var
|
|
66830
|
+
// EXTERNAL MODULE: ./packages/main/src/public/settings.vue?vue&type=style&index=0&id=1b15d77c&prod&scoped=true&lang=css&
|
|
66831
|
+
var settingsvue_type_style_index_0_id_1b15d77c_prod_scoped_true_lang_css_ = __webpack_require__(21);
|
|
66827
66832
|
|
|
66828
66833
|
// CONCATENATED MODULE: ./packages/main/src/public/settings.vue
|
|
66829
66834
|
|
|
@@ -66836,11 +66841,11 @@ var settingsvue_type_style_index_0_id_b9929eaa_prod_scoped_true_lang_css_ = __we
|
|
|
66836
66841
|
|
|
66837
66842
|
var settings_component = normalizeComponent(
|
|
66838
66843
|
public_settingsvue_type_script_lang_js_,
|
|
66839
|
-
|
|
66840
|
-
|
|
66844
|
+
settingsvue_type_template_id_1b15d77c_scoped_true_render,
|
|
66845
|
+
settingsvue_type_template_id_1b15d77c_scoped_true_staticRenderFns,
|
|
66841
66846
|
false,
|
|
66842
66847
|
null,
|
|
66843
|
-
"
|
|
66848
|
+
"1b15d77c",
|
|
66844
66849
|
null
|
|
66845
66850
|
|
|
66846
66851
|
)
|
|
@@ -68339,6 +68344,8 @@ var simplicityvue_type_script_lang_js_extends = Object.assign || function (targe
|
|
|
68339
68344
|
//
|
|
68340
68345
|
//
|
|
68341
68346
|
//
|
|
68347
|
+
//
|
|
68348
|
+
//
|
|
68342
68349
|
|
|
68343
68350
|
|
|
68344
68351
|
|
|
@@ -68582,7 +68589,8 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
68582
68589
|
validator: function validator(val) {
|
|
68583
68590
|
return ['tooltip', 'text'].includes(val);
|
|
68584
68591
|
}
|
|
68585
|
-
}
|
|
68592
|
+
},
|
|
68593
|
+
jobExplicit: Boolean
|
|
68586
68594
|
},
|
|
68587
68595
|
data: function data() {
|
|
68588
68596
|
return {
|
|
@@ -68704,7 +68712,8 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
68704
68712
|
//单点退出地址
|
|
68705
68713
|
singleLogout: null,
|
|
68706
68714
|
//展示系统操作按钮标题类型
|
|
68707
|
-
showTitleType: this.showHandlerTitleType
|
|
68715
|
+
showTitleType: this.showHandlerTitleType,
|
|
68716
|
+
jobExplicited: this.jobExplicit
|
|
68708
68717
|
};
|
|
68709
68718
|
},
|
|
68710
68719
|
|
|
@@ -69009,6 +69018,10 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
69009
69018
|
if (results[i].menuCollapse !== undefined) {
|
|
69010
69019
|
this.isCollapse = results[i].menuCollapse !== false && results[i].menuCollapse !== 'false';
|
|
69011
69020
|
}
|
|
69021
|
+
//是否显示岗位
|
|
69022
|
+
if (results[i].jobExplicit !== undefined) {
|
|
69023
|
+
this.jobExplicited = results[i].jobExplicit !== false && results[i].jobExplicit !== 'false';
|
|
69024
|
+
}
|
|
69012
69025
|
}
|
|
69013
69026
|
if (i === 'userModel' && results[i]) {
|
|
69014
69027
|
if (results[i].userHeadUrl) {
|
|
@@ -70185,18 +70198,18 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
|
|
|
70185
70198
|
|
|
70186
70199
|
var simplicity_component = normalizeComponent(
|
|
70187
70200
|
src_simplicityvue_type_script_lang_js_,
|
|
70188
|
-
|
|
70189
|
-
|
|
70201
|
+
simplicityvue_type_template_id_c4919c58_scoped_true_render,
|
|
70202
|
+
simplicityvue_type_template_id_c4919c58_scoped_true_staticRenderFns,
|
|
70190
70203
|
false,
|
|
70191
70204
|
null,
|
|
70192
|
-
"
|
|
70205
|
+
"c4919c58",
|
|
70193
70206
|
null
|
|
70194
70207
|
|
|
70195
70208
|
)
|
|
70196
70209
|
|
|
70197
70210
|
/* harmony default export */ var simplicity = (simplicity_component.exports);
|
|
70198
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=template&id=
|
|
70199
|
-
var
|
|
70211
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=template&id=4a8a8fcc&scoped=true&
|
|
70212
|
+
var simplicityTopvue_type_template_id_4a8a8fcc_scoped_true_render = function () {
|
|
70200
70213
|
var _vm = this
|
|
70201
70214
|
var _h = _vm.$createElement
|
|
70202
70215
|
var _c = _vm._self._c || _h
|
|
@@ -70486,7 +70499,7 @@ var simplicityTopvue_type_template_id_5a47c4f6_scoped_true_render = function ()
|
|
|
70486
70499
|
],
|
|
70487
70500
|
1
|
|
70488
70501
|
),
|
|
70489
|
-
_vm.
|
|
70502
|
+
_vm.appCodes && _vm.appCodes !== "indexUrl"
|
|
70490
70503
|
? _c(
|
|
70491
70504
|
"div",
|
|
70492
70505
|
{ staticClass: "es-simplicitytop-main-fourth-tabs" },
|
|
@@ -70726,6 +70739,7 @@ var simplicityTopvue_type_template_id_5a47c4f6_scoped_true_render = function ()
|
|
|
70726
70739
|
"layout-type": "simplicityTop",
|
|
70727
70740
|
active: "simplicity",
|
|
70728
70741
|
theme: _vm.themeColor,
|
|
70742
|
+
showSimplicityTop: _vm.showSimplicityTop,
|
|
70729
70743
|
predefine: _vm.themes,
|
|
70730
70744
|
visible: _vm.showSet,
|
|
70731
70745
|
},
|
|
@@ -70776,7 +70790,7 @@ var simplicityTopvue_type_template_id_5a47c4f6_scoped_true_render = function ()
|
|
|
70776
70790
|
1
|
|
70777
70791
|
)
|
|
70778
70792
|
}
|
|
70779
|
-
var
|
|
70793
|
+
var simplicityTopvue_type_template_id_4a8a8fcc_scoped_true_staticRenderFns = [
|
|
70780
70794
|
function () {
|
|
70781
70795
|
var _vm = this
|
|
70782
70796
|
var _h = _vm.$createElement
|
|
@@ -70788,10 +70802,10 @@ var simplicityTopvue_type_template_id_5a47c4f6_scoped_true_staticRenderFns = [
|
|
|
70788
70802
|
])
|
|
70789
70803
|
},
|
|
70790
70804
|
]
|
|
70791
|
-
|
|
70805
|
+
simplicityTopvue_type_template_id_4a8a8fcc_scoped_true_render._withStripped = true
|
|
70792
70806
|
|
|
70793
70807
|
|
|
70794
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=
|
|
70808
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=4a8a8fcc&scoped=true&
|
|
70795
70809
|
|
|
70796
70810
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/avatar.vue?vue&type=template&id=30391b69&scoped=true&
|
|
70797
70811
|
var avatarvue_type_template_id_30391b69_scoped_true_render = function () {
|
|
@@ -70942,8 +70956,8 @@ var simplicityTop_avatar_component = normalizeComponent(
|
|
|
70942
70956
|
)
|
|
70943
70957
|
|
|
70944
70958
|
/* harmony default export */ var simplicityTop_avatar = (simplicityTop_avatar_component.exports);
|
|
70945
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=
|
|
70946
|
-
var
|
|
70959
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=63cde61d&scoped=true&
|
|
70960
|
+
var handlervue_type_template_id_63cde61d_scoped_true_render = function () {
|
|
70947
70961
|
var _vm = this
|
|
70948
70962
|
var _h = _vm.$createElement
|
|
70949
70963
|
var _c = _vm._self._c || _h
|
|
@@ -71044,11 +71058,11 @@ var handlervue_type_template_id_76d9de37_scoped_true_render = function () {
|
|
|
71044
71058
|
2
|
|
71045
71059
|
)
|
|
71046
71060
|
}
|
|
71047
|
-
var
|
|
71048
|
-
|
|
71061
|
+
var handlervue_type_template_id_63cde61d_scoped_true_staticRenderFns = []
|
|
71062
|
+
handlervue_type_template_id_63cde61d_scoped_true_render._withStripped = true
|
|
71049
71063
|
|
|
71050
71064
|
|
|
71051
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=
|
|
71065
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicityTop/handler.vue?vue&type=template&id=63cde61d&scoped=true&
|
|
71052
71066
|
|
|
71053
71067
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/handler.vue?vue&type=script&lang=js&
|
|
71054
71068
|
var simplicityTop_handlervue_type_script_lang_js_data;
|
|
@@ -71176,14 +71190,11 @@ var simplicityTop_handlervue_type_script_lang_js_data;
|
|
|
71176
71190
|
data: (simplicityTop_handlervue_type_script_lang_js_data = {
|
|
71177
71191
|
handler: 'deep',
|
|
71178
71192
|
immediate: true
|
|
71179
|
-
}, simplicityTop_handlervue_type_script_lang_js_data['handler'] = function handler(newVal, oldVal) {
|
|
71180
|
-
console.log(newVal, 122221212);
|
|
71181
|
-
}, simplicityTop_handlervue_type_script_lang_js_data)
|
|
71193
|
+
}, simplicityTop_handlervue_type_script_lang_js_data['handler'] = function handler(newVal, oldVal) {}, simplicityTop_handlervue_type_script_lang_js_data)
|
|
71182
71194
|
},
|
|
71183
71195
|
created: function created() {
|
|
71184
71196
|
//this.time = util.timeCycle() + '好!';
|
|
71185
71197
|
this.date = utils_util.formatDate('', 'yyyy年M月d日');
|
|
71186
|
-
console.log(this.data, 'this.data');
|
|
71187
71198
|
},
|
|
71188
71199
|
mounted: function mounted() {
|
|
71189
71200
|
this.getTime();
|
|
@@ -71261,11 +71272,11 @@ var simplicityTop_handlervue_type_script_lang_js_data;
|
|
|
71261
71272
|
|
|
71262
71273
|
var simplicityTop_handler_component = normalizeComponent(
|
|
71263
71274
|
src_simplicityTop_handlervue_type_script_lang_js_,
|
|
71264
|
-
|
|
71265
|
-
|
|
71275
|
+
handlervue_type_template_id_63cde61d_scoped_true_render,
|
|
71276
|
+
handlervue_type_template_id_63cde61d_scoped_true_staticRenderFns,
|
|
71266
71277
|
false,
|
|
71267
71278
|
null,
|
|
71268
|
-
"
|
|
71279
|
+
"63cde61d",
|
|
71269
71280
|
null
|
|
71270
71281
|
|
|
71271
71282
|
)
|
|
@@ -74940,6 +74951,7 @@ var simplicityTopvue_type_script_lang_js_extends = Object.assign || function (ta
|
|
|
74940
74951
|
//
|
|
74941
74952
|
//
|
|
74942
74953
|
//
|
|
74954
|
+
//
|
|
74943
74955
|
|
|
74944
74956
|
|
|
74945
74957
|
|
|
@@ -75011,7 +75023,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75011
75023
|
provide: function provide() {
|
|
75012
75024
|
return {
|
|
75013
75025
|
esMain: this,
|
|
75014
|
-
|
|
75026
|
+
menuRefresh: this.handleRefresh,
|
|
75015
75027
|
jumpMenu: this.jumpTopMenu
|
|
75016
75028
|
};
|
|
75017
75029
|
},
|
|
@@ -75035,6 +75047,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75035
75047
|
type: Boolean,
|
|
75036
75048
|
default: true
|
|
75037
75049
|
},
|
|
75050
|
+
//是否显示顶部
|
|
75051
|
+
showSimplicityTop: {
|
|
75052
|
+
type: Boolean,
|
|
75053
|
+
default: false
|
|
75054
|
+
},
|
|
75038
75055
|
//im用例编码
|
|
75039
75056
|
imUseCaseCode: String,
|
|
75040
75057
|
//ai用例编码
|
|
@@ -75203,10 +75220,15 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75203
75220
|
userCommonMenu: {
|
|
75204
75221
|
type: String,
|
|
75205
75222
|
default: queryUseCommonMenu
|
|
75223
|
+
},
|
|
75224
|
+
queryChildMenu: {
|
|
75225
|
+
type: String,
|
|
75226
|
+
default: queryChildMenuUrl
|
|
75206
75227
|
}
|
|
75207
75228
|
},
|
|
75208
75229
|
data: function data() {
|
|
75209
75230
|
return {
|
|
75231
|
+
appCodes: 'indexUrl',
|
|
75210
75232
|
tabActiveName: '',
|
|
75211
75233
|
currentPage: {
|
|
75212
75234
|
method: ''
|
|
@@ -75559,7 +75581,9 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75559
75581
|
children: [],
|
|
75560
75582
|
method: 'iframe',
|
|
75561
75583
|
loading: false
|
|
75562
|
-
}]
|
|
75584
|
+
}],
|
|
75585
|
+
myRemindMenu: [],
|
|
75586
|
+
myShortcut: []
|
|
75563
75587
|
};
|
|
75564
75588
|
},
|
|
75565
75589
|
|
|
@@ -75659,32 +75683,95 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75659
75683
|
this.doorIndex = sessionStorage.getItem('doorIndex');
|
|
75660
75684
|
},
|
|
75661
75685
|
mounted: function mounted() {
|
|
75686
|
+
console.log(this.menuUrl, this.topLogo, this.hides, this.showSimplicityTop, 'this.menuUrl');
|
|
75687
|
+
|
|
75662
75688
|
// this.handleListener();
|
|
75663
75689
|
this.getNums();
|
|
75664
75690
|
window.top.jumpMenu = window.top.jumpTopMenu = this.handleSelect;
|
|
75691
|
+
this.queryChildMenuData();
|
|
75665
75692
|
},
|
|
75666
75693
|
|
|
75667
75694
|
methods: {
|
|
75695
|
+
/**
|
|
75696
|
+
* queryChildMenu: 查询左侧我的提醒和我的快捷菜单
|
|
75697
|
+
*/
|
|
75698
|
+
queryChildMenuData: function queryChildMenuData() {
|
|
75699
|
+
var _this2 = this;
|
|
75700
|
+
|
|
75701
|
+
utils_util.ajax({
|
|
75702
|
+
url: queryChildMenuUrl,
|
|
75703
|
+
method: 'get'
|
|
75704
|
+
}).then(function (res) {
|
|
75705
|
+
if (res.rCode === 0) {
|
|
75706
|
+
console.log(res.results, 'res.results');
|
|
75707
|
+
var tree = _this2.flatToNestedTree(res.results);
|
|
75708
|
+
console.log(tree, 'tree');
|
|
75709
|
+
_this2.myRemindMenu = tree[0];
|
|
75710
|
+
_this2.myShortcut = tree[1];
|
|
75711
|
+
}
|
|
75712
|
+
});
|
|
75713
|
+
},
|
|
75714
|
+
flatToNestedTree: function flatToNestedTree(flatTree) {
|
|
75715
|
+
var rootPid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'root';
|
|
75716
|
+
|
|
75717
|
+
if (!Array.isArray(flatTree)) {
|
|
75718
|
+
console.error('flatTree must be an array');
|
|
75719
|
+
return [];
|
|
75720
|
+
}
|
|
75721
|
+
|
|
75722
|
+
// 创建ID映射表,用于快速查找节点
|
|
75723
|
+
var idMap = new Map();
|
|
75724
|
+
// 存储根节点
|
|
75725
|
+
var rootNodes = [];
|
|
75726
|
+
|
|
75727
|
+
// 首次遍历:创建映射表并初始化每个节点的children数组
|
|
75728
|
+
flatTree.forEach(function (node) {
|
|
75729
|
+
// 深拷贝节点,避免修改原数据
|
|
75730
|
+
var nodeCopy = simplicityTopvue_type_script_lang_js_extends({}, node);
|
|
75731
|
+
// 确保children数组存在且为空
|
|
75732
|
+
nodeCopy.children = [];
|
|
75733
|
+
// 建立ID到节点的映射
|
|
75734
|
+
idMap.set(nodeCopy.id, nodeCopy);
|
|
75735
|
+
|
|
75736
|
+
// 找出根节点
|
|
75737
|
+
if (nodeCopy.pid === rootPid) {
|
|
75738
|
+
rootNodes.push(nodeCopy);
|
|
75739
|
+
}
|
|
75740
|
+
});
|
|
75741
|
+
|
|
75742
|
+
// 第二次遍历:建立父子关系
|
|
75743
|
+
flatTree.forEach(function (node) {
|
|
75744
|
+
var currentNode = idMap.get(node.id);
|
|
75745
|
+
var parentNode = idMap.get(node.pid);
|
|
75746
|
+
|
|
75747
|
+
// 如果找到父节点且父节点不是根节点
|
|
75748
|
+
if (parentNode && node.pid !== rootPid) {
|
|
75749
|
+
parentNode.children.push(currentNode);
|
|
75750
|
+
}
|
|
75751
|
+
});
|
|
75752
|
+
|
|
75753
|
+
return rootNodes;
|
|
75754
|
+
},
|
|
75755
|
+
|
|
75668
75756
|
// tab点击事件
|
|
75669
75757
|
fourthTabClick: function fourthTabClick(res) {
|
|
75670
|
-
var
|
|
75758
|
+
var _this3 = this;
|
|
75671
75759
|
|
|
75672
75760
|
var index = res.index;
|
|
75673
|
-
this.currentPage = {
|
|
75674
|
-
|
|
75675
|
-
};
|
|
75761
|
+
this.currentPage = simplicityTopvue_type_script_lang_js_extends({}, this.fourthTabs[index]);
|
|
75762
|
+
this.appCodes = this.fourthTabs[index].appCode;
|
|
75676
75763
|
console.log(this.currentPage, 'this.currentPage');
|
|
75677
75764
|
|
|
75678
75765
|
// console.log(this.fourthTabs[index], 'this.fourthTabs[index]');
|
|
75679
75766
|
// 增加阻塞 重载页面
|
|
75680
75767
|
setTimeout(function () {
|
|
75681
|
-
|
|
75768
|
+
_this3.currentPage = _this3.setIframeType(_this3.fourthTabs[index]);
|
|
75682
75769
|
}, 0);
|
|
75683
75770
|
},
|
|
75684
75771
|
|
|
75685
75772
|
//获取数量
|
|
75686
75773
|
getNums: function getNums() {
|
|
75687
|
-
var
|
|
75774
|
+
var _this4 = this;
|
|
75688
75775
|
|
|
75689
75776
|
this.getIndexCount();
|
|
75690
75777
|
this.getUserTipsInstanceNum(0);
|
|
@@ -75694,7 +75781,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75694
75781
|
this.reladding = true;
|
|
75695
75782
|
if (this.reladding) {
|
|
75696
75783
|
setTimeout(function () {
|
|
75697
|
-
|
|
75784
|
+
_this4.reladding = false;
|
|
75698
75785
|
}, 1000);
|
|
75699
75786
|
}
|
|
75700
75787
|
},
|
|
@@ -75703,7 +75790,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75703
75790
|
* getVoteMeetingNum: 查询会议数量
|
|
75704
75791
|
*/
|
|
75705
75792
|
getVoteMeetingNum: function getVoteMeetingNum() {
|
|
75706
|
-
var
|
|
75793
|
+
var _this5 = this;
|
|
75707
75794
|
|
|
75708
75795
|
utils_util.ajax({
|
|
75709
75796
|
url: api_getVoteMeetingNum,
|
|
@@ -75714,7 +75801,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75714
75801
|
method: 'get'
|
|
75715
75802
|
}).then(function (res) {
|
|
75716
75803
|
if (res.rCode === 0) {
|
|
75717
|
-
|
|
75804
|
+
_this5.myRemind[5].num = res.results > 99 ? '99+' : res.results;
|
|
75718
75805
|
}
|
|
75719
75806
|
});
|
|
75720
75807
|
},
|
|
@@ -75723,7 +75810,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75723
75810
|
* getShareFilesReceiveCountNew: 查询待接收文件数量
|
|
75724
75811
|
*/
|
|
75725
75812
|
getShareFilesReceiveCountNew: function getShareFilesReceiveCountNew() {
|
|
75726
|
-
var
|
|
75813
|
+
var _this6 = this;
|
|
75727
75814
|
|
|
75728
75815
|
utils_util.ajax({
|
|
75729
75816
|
url: api_getShareFilesReceiveCountNew,
|
|
@@ -75733,7 +75820,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75733
75820
|
method: 'get'
|
|
75734
75821
|
}).then(function (res) {
|
|
75735
75822
|
if (res.rCode === 0) {
|
|
75736
|
-
|
|
75823
|
+
_this6.myRemind[4].num = res.results > 99 ? '99+' : res.results;
|
|
75737
75824
|
}
|
|
75738
75825
|
});
|
|
75739
75826
|
},
|
|
@@ -75743,7 +75830,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75743
75830
|
* getUserTipsInstanceNum: 查询待签收/据签收任务数量 1是拒签收 0是待签收
|
|
75744
75831
|
*/
|
|
75745
75832
|
getUserTipsInstanceNum: function getUserTipsInstanceNum(type) {
|
|
75746
|
-
var
|
|
75833
|
+
var _this7 = this;
|
|
75747
75834
|
|
|
75748
75835
|
var params = '?subjectCode=signCount&state=0&userId=' + utils_util.getStorage('userId') + '&queryOrgType=-1';
|
|
75749
75836
|
if (type) {
|
|
@@ -75755,9 +75842,9 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75755
75842
|
}).then(function (res) {
|
|
75756
75843
|
if (res.rCode === 0) {
|
|
75757
75844
|
if (type) {
|
|
75758
|
-
|
|
75845
|
+
_this7.myRemind[3].num = res.results > 99 ? '99+' : res.results;
|
|
75759
75846
|
} else {
|
|
75760
|
-
|
|
75847
|
+
_this7.myRemind[2].num = res.results > 99 ? '99+' : res.results;
|
|
75761
75848
|
}
|
|
75762
75849
|
} else {
|
|
75763
75850
|
console.error('查询待签收/据签收任务数量失败', res);
|
|
@@ -75769,7 +75856,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75769
75856
|
* getIndexCount: 查询待办任务数量
|
|
75770
75857
|
*/
|
|
75771
75858
|
getIndexCount: function getIndexCount() {
|
|
75772
|
-
var
|
|
75859
|
+
var _this8 = this;
|
|
75773
75860
|
|
|
75774
75861
|
utils_util.ajax({
|
|
75775
75862
|
url: api_getIndexCount,
|
|
@@ -75781,8 +75868,8 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75781
75868
|
if (res.rCode === 0) {
|
|
75782
75869
|
var makePendingCount = res.results.makePendingCount || 0;
|
|
75783
75870
|
var pendedCount = res.results.pendedCount || 0;
|
|
75784
|
-
|
|
75785
|
-
|
|
75871
|
+
_this8.myRemind[0].num = makePendingCount > 99 ? '99+' : makePendingCount;
|
|
75872
|
+
_this8.myRemind[1].num = pendedCount > 99 ? '99+' : pendedCount;
|
|
75786
75873
|
} else {
|
|
75787
75874
|
console.error('查询待办任务数量失败', res);
|
|
75788
75875
|
}
|
|
@@ -75844,13 +75931,13 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
75844
75931
|
* @author huangbo
|
|
75845
75932
|
* @date 2024年9月7日
|
|
75846
75933
|
**/
|
|
75847
|
-
init: function init(results
|
|
75934
|
+
init: function init(results) {
|
|
75848
75935
|
this.setConfig(results);
|
|
75849
|
-
if (this.remote && first) {
|
|
75850
|
-
|
|
75851
|
-
|
|
75852
|
-
|
|
75853
|
-
}
|
|
75936
|
+
// if (this.remote && first) {
|
|
75937
|
+
this.getApplications();
|
|
75938
|
+
// 此处的快捷 是用户自定义的 不是系统配置的快捷菜单 所以注释掉
|
|
75939
|
+
// this.getUseCommonMenu();
|
|
75940
|
+
// }
|
|
75854
75941
|
},
|
|
75855
75942
|
|
|
75856
75943
|
/**
|
|
@@ -76024,7 +76111,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76024
76111
|
* @desc:获取用户自定义菜单
|
|
76025
76112
|
**/
|
|
76026
76113
|
getUseCommonMenu: function getUseCommonMenu() {
|
|
76027
|
-
var
|
|
76114
|
+
var _this9 = this;
|
|
76028
76115
|
|
|
76029
76116
|
utils_util.ajax({
|
|
76030
76117
|
url: this.userCommonMenu,
|
|
@@ -76036,17 +76123,17 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76036
76123
|
}).then(function (res) {
|
|
76037
76124
|
if (res.rCode === 0) {
|
|
76038
76125
|
if (res.results && Object.keys(res.results).length) {
|
|
76039
|
-
|
|
76126
|
+
_this9.userCommonMenuList = res.results;
|
|
76040
76127
|
} else {
|
|
76041
|
-
|
|
76128
|
+
_this9.$message.error('未分配应用菜单权限,请联系管理员!');
|
|
76042
76129
|
}
|
|
76043
76130
|
} else {
|
|
76044
76131
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
76045
|
-
|
|
76132
|
+
_this9.$message.error(msg);
|
|
76046
76133
|
}
|
|
76047
76134
|
}).catch(function (err) {
|
|
76048
76135
|
if (err.message && err.message !== 'canceled') {
|
|
76049
|
-
|
|
76136
|
+
_this9.$message.error(err.message);
|
|
76050
76137
|
}
|
|
76051
76138
|
});
|
|
76052
76139
|
},
|
|
@@ -76057,15 +76144,15 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76057
76144
|
* @date 2024年9月7日
|
|
76058
76145
|
**/
|
|
76059
76146
|
getApplications: function getApplications() {
|
|
76060
|
-
var
|
|
76147
|
+
var _this10 = this;
|
|
76061
76148
|
|
|
76062
76149
|
var loading = utils_util.loading('', '加载中...');
|
|
76063
76150
|
utils_util.ajax({
|
|
76064
76151
|
url: this.appsUrl,
|
|
76065
76152
|
defaults: true
|
|
76066
76153
|
}).then(function (res) {
|
|
76067
|
-
if (
|
|
76068
|
-
|
|
76154
|
+
if (_this10.socket) {
|
|
76155
|
+
_this10.initWebSocket();
|
|
76069
76156
|
}
|
|
76070
76157
|
if (res.rCode === 0) {
|
|
76071
76158
|
if (res.results && Object.keys(res.results).length) {
|
|
@@ -76075,29 +76162,29 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76075
76162
|
app_system = _res$results.app_system,
|
|
76076
76163
|
app_user = _res$results.app_user;
|
|
76077
76164
|
|
|
76078
|
-
|
|
76165
|
+
_this10.userApps = app_user.filter(function (item) {
|
|
76079
76166
|
return item.permission !== false;
|
|
76080
76167
|
});
|
|
76081
|
-
|
|
76082
|
-
|
|
76083
|
-
|
|
76084
|
-
|
|
76085
|
-
|
|
76086
|
-
|
|
76087
|
-
|
|
76168
|
+
_this10.applications = all;
|
|
76169
|
+
_this10.business = app_special_business_system;
|
|
76170
|
+
_this10.systems = app_system;
|
|
76171
|
+
_this10.setTips(_this10.userApps);
|
|
76172
|
+
_this10.setTips(_this10.applications);
|
|
76173
|
+
_this10.setTips(_this10.business);
|
|
76174
|
+
_this10.setTips(_this10.systems);
|
|
76088
76175
|
} else {
|
|
76089
|
-
|
|
76176
|
+
_this10.$message.error('未分配应用菜单权限,请联系管理员!');
|
|
76090
76177
|
}
|
|
76091
|
-
|
|
76178
|
+
_this10.getMenus(loading);
|
|
76092
76179
|
} else {
|
|
76093
76180
|
loading.close();
|
|
76094
76181
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
76095
|
-
|
|
76182
|
+
_this10.$message.error(msg);
|
|
76096
76183
|
}
|
|
76097
76184
|
}).catch(function (err) {
|
|
76098
76185
|
loading.close();
|
|
76099
76186
|
if (err.message && err.message !== 'canceled') {
|
|
76100
|
-
|
|
76187
|
+
_this10.$message.error(err.message);
|
|
76101
76188
|
}
|
|
76102
76189
|
});
|
|
76103
76190
|
},
|
|
@@ -76108,7 +76195,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76108
76195
|
* @date 2024年9月7日
|
|
76109
76196
|
**/
|
|
76110
76197
|
getMenus: function getMenus(loading) {
|
|
76111
|
-
var
|
|
76198
|
+
var _this11 = this;
|
|
76112
76199
|
|
|
76113
76200
|
utils_util.ajax({ url: this._menuUrl }).then(function (res) {
|
|
76114
76201
|
loading.close();
|
|
@@ -76116,18 +76203,18 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76116
76203
|
if (res.results && res.results.length) {
|
|
76117
76204
|
//this.$emit('update:menuData', res.results);
|
|
76118
76205
|
utils_store.set('nav', JSON.parse(JSON.stringify(res.results)));
|
|
76119
|
-
|
|
76206
|
+
_this11.renderMenus(JSON.parse(JSON.stringify(res.results)));
|
|
76120
76207
|
} else {
|
|
76121
|
-
|
|
76208
|
+
_this11.$message.error('未分配菜单权限,请联系管理员!');
|
|
76122
76209
|
}
|
|
76123
76210
|
} else {
|
|
76124
76211
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
76125
|
-
|
|
76212
|
+
_this11.$message.error(msg);
|
|
76126
76213
|
}
|
|
76127
76214
|
}).catch(function (err) {
|
|
76128
76215
|
loading.close();
|
|
76129
76216
|
if (err.message && err.message !== 'canceled') {
|
|
76130
|
-
|
|
76217
|
+
_this11.$message.error(err.message);
|
|
76131
76218
|
}
|
|
76132
76219
|
});
|
|
76133
76220
|
},
|
|
@@ -76176,7 +76263,8 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76176
76263
|
appCode: 'indexUrl'
|
|
76177
76264
|
};
|
|
76178
76265
|
this.homePage = this.setIframeType(obj);
|
|
76179
|
-
this.currentPage = this.homePage;
|
|
76266
|
+
this.currentPage = simplicityTopvue_type_script_lang_js_extends({}, this.homePage);
|
|
76267
|
+
this.appCodes = 'indexUrl';
|
|
76180
76268
|
// console.log(this.currentPage, 'currentPage');
|
|
76181
76269
|
},
|
|
76182
76270
|
|
|
@@ -76329,11 +76417,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76329
76417
|
* @date 2024年9月7日
|
|
76330
76418
|
**/
|
|
76331
76419
|
setTips: function setTips(obj) {
|
|
76332
|
-
var
|
|
76420
|
+
var _this12 = this;
|
|
76333
76421
|
|
|
76334
76422
|
if (Array.isArray(obj)) {
|
|
76335
76423
|
obj.forEach(function (item) {
|
|
76336
|
-
|
|
76424
|
+
_this12.setTips(item);
|
|
76337
76425
|
});
|
|
76338
76426
|
} else {
|
|
76339
76427
|
if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
|
|
@@ -76343,7 +76431,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76343
76431
|
var flag = 0;
|
|
76344
76432
|
if (obj.children && obj.children.length) {
|
|
76345
76433
|
obj.children.forEach(function (item) {
|
|
76346
|
-
var n =
|
|
76434
|
+
var n = _this12.setTips(item);
|
|
76347
76435
|
flag += n ? parseInt(n) : 0;
|
|
76348
76436
|
});
|
|
76349
76437
|
if (flag) {
|
|
@@ -76356,7 +76444,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76356
76444
|
}
|
|
76357
76445
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
76358
76446
|
obj.fourthTabs.forEach(function (item) {
|
|
76359
|
-
var n =
|
|
76447
|
+
var n = _this12.setTips(item);
|
|
76360
76448
|
flag += n ? parseInt(n) : 0;
|
|
76361
76449
|
});
|
|
76362
76450
|
if (flag) {
|
|
@@ -76378,11 +76466,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76378
76466
|
return false;
|
|
76379
76467
|
},
|
|
76380
76468
|
setDot: function setDot(obj, code) {
|
|
76381
|
-
var
|
|
76469
|
+
var _this13 = this;
|
|
76382
76470
|
|
|
76383
76471
|
if (Array.isArray(obj)) {
|
|
76384
76472
|
obj.forEach(function (item) {
|
|
76385
|
-
|
|
76473
|
+
_this13.setDot(item, code);
|
|
76386
76474
|
});
|
|
76387
76475
|
} else if (obj.code === code) {
|
|
76388
76476
|
this.$set(obj, 'tips', true);
|
|
@@ -76412,7 +76500,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76412
76500
|
* @date 2024年9月7日
|
|
76413
76501
|
**/
|
|
76414
76502
|
initWebSocket: function initWebSocket() {
|
|
76415
|
-
var
|
|
76503
|
+
var _this14 = this;
|
|
76416
76504
|
|
|
76417
76505
|
this.webSocket = utils_util.socket({
|
|
76418
76506
|
url: wss,
|
|
@@ -76422,32 +76510,32 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76422
76510
|
for (var i in data) {
|
|
76423
76511
|
if (data[i] !== null && data[i] !== undefined) {
|
|
76424
76512
|
if (i === 'onlineUserNums' && data[i] > 0) {
|
|
76425
|
-
|
|
76513
|
+
_this14.$set(_this14.handleNums, 'online', data[i]);
|
|
76426
76514
|
}
|
|
76427
76515
|
if (i === 'sysMsgNums' && data[i] !== null) {
|
|
76428
|
-
|
|
76429
|
-
if (
|
|
76430
|
-
|
|
76516
|
+
_this14.$set(_this14.handleNums, 'notice', data[i]);
|
|
76517
|
+
if (_this14.showMsg) {
|
|
76518
|
+
_this14.$refs.message.getMsg(true);
|
|
76431
76519
|
}
|
|
76432
76520
|
}
|
|
76433
76521
|
if (i === 'menuTipsMap' && data[i] !== null) {
|
|
76434
|
-
|
|
76522
|
+
_this14.menuTips = data[i];
|
|
76435
76523
|
}
|
|
76436
76524
|
if (i === 'sysMsgList' && data[i] !== null) {
|
|
76437
|
-
|
|
76438
|
-
data[i] && data[i].length &&
|
|
76525
|
+
_this14.sysMsg = data[i];
|
|
76526
|
+
data[i] && data[i].length && _this14.$emit('bus-emit', 'waitdone');
|
|
76439
76527
|
}
|
|
76440
76528
|
if (i === 'extraData' && data[i] !== null) {
|
|
76441
|
-
|
|
76529
|
+
_this14.extraData = data[i];
|
|
76442
76530
|
}
|
|
76443
76531
|
}
|
|
76444
76532
|
}
|
|
76445
|
-
if (
|
|
76533
|
+
if (_this14.$store) {
|
|
76446
76534
|
try {
|
|
76447
|
-
|
|
76535
|
+
_this14.$store.commit('websocket', data);
|
|
76448
76536
|
} catch (error) {}
|
|
76449
76537
|
}
|
|
76450
|
-
var bus =
|
|
76538
|
+
var bus = _this14.bus || _this14.$eventBus || _this14.$root.Bus;
|
|
76451
76539
|
if (bus) {
|
|
76452
76540
|
bus.$emit('websocket', data);
|
|
76453
76541
|
}
|
|
@@ -76662,39 +76750,10 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76662
76750
|
* @author huangbo
|
|
76663
76751
|
* @date 2024年9月7日
|
|
76664
76752
|
**/
|
|
76665
|
-
handleRefresh: function handleRefresh(
|
|
76753
|
+
handleRefresh: function handleRefresh() {
|
|
76666
76754
|
this.getNums();
|
|
76667
|
-
|
|
76668
|
-
|
|
76669
|
-
if (simplicityTopvue_type_script_lang_js_isIE || tab.method === 'iframe') {
|
|
76670
|
-
if (arg && arg === 'pageData') {
|
|
76671
|
-
var iframe = document.getElementById(tab.id || tab.appCode);
|
|
76672
|
-
var source = tab.url;
|
|
76673
|
-
if (source && !utils_util.startWith(source, ['http', 'https'], true)) {
|
|
76674
|
-
source = location.origin + source.replace('./', '/');
|
|
76675
|
-
}
|
|
76676
|
-
!iframe && (iframe = document.getElementById(this.iframeId));
|
|
76677
|
-
iframe && iframe.contentWindow.postMessage({ method: 'pageData' }, source || '*');
|
|
76678
|
-
} else {
|
|
76679
|
-
this.$set(this.tabs[i], 'url', utils_util.handlerUrl(tab.url));
|
|
76680
|
-
}
|
|
76681
|
-
return;
|
|
76682
|
-
}
|
|
76683
|
-
if (tab.method === 'wujie' && tab.appCode) {
|
|
76684
|
-
if (arg && arg === 'pageData') {
|
|
76685
|
-
external_wujie_vue2_default.a.$emit('pageData', tab);
|
|
76686
|
-
} else {
|
|
76687
|
-
window.document.querySelector('iframe[name=' + tab.appCode + ']').contentWindow.location.reload(true);
|
|
76688
|
-
}
|
|
76689
|
-
return;
|
|
76690
|
-
}
|
|
76691
|
-
if (tab.method === 'router') {
|
|
76692
|
-
if (arg && arg === 'pageData') {
|
|
76693
|
-
var bus = this.bus || this.$root.Bus;
|
|
76694
|
-
bus.$emit('pageData', tab);
|
|
76695
|
-
} else {
|
|
76696
|
-
this.$set(this.tabs[i], 'keys', utils_util.uuid());
|
|
76697
|
-
}
|
|
76755
|
+
if (window.top.refreshList) {
|
|
76756
|
+
window.top.refreshList();
|
|
76698
76757
|
}
|
|
76699
76758
|
},
|
|
76700
76759
|
|
|
@@ -76821,7 +76880,9 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76821
76880
|
break;
|
|
76822
76881
|
case 'index':
|
|
76823
76882
|
// util.win.open(this.doorIndex, '_self');
|
|
76824
|
-
this.currentPage = this.homePage;
|
|
76883
|
+
this.currentPage = simplicityTopvue_type_script_lang_js_extends({}, this.homePage);
|
|
76884
|
+
this.appCodes = 'indexUrl';
|
|
76885
|
+
console.log(this.currentPage, 'this.currentPage');
|
|
76825
76886
|
break;
|
|
76826
76887
|
case 'userinfo':
|
|
76827
76888
|
this.$refs.user.handleOpen();
|
|
@@ -76878,7 +76939,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76878
76939
|
* @date 2024年9月7日
|
|
76879
76940
|
**/
|
|
76880
76941
|
handleQuit: function handleQuit() {
|
|
76881
|
-
var
|
|
76942
|
+
var _this15 = this;
|
|
76882
76943
|
|
|
76883
76944
|
this.$confirm('确定退出吗?', '退出系统', {
|
|
76884
76945
|
confirmButtonText: '确定',
|
|
@@ -76894,19 +76955,19 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76894
76955
|
}
|
|
76895
76956
|
break;
|
|
76896
76957
|
}
|
|
76897
|
-
if (
|
|
76898
|
-
for (var _i2 = 0; _i2 <
|
|
76958
|
+
if (_this15.singleLogout) {
|
|
76959
|
+
for (var _i2 = 0; _i2 < _this15.singleLogout.length; _i2++) {
|
|
76899
76960
|
var iframe = document.createElement('iframe');
|
|
76900
76961
|
iframe.style.display = 'none';
|
|
76901
|
-
iframe.src =
|
|
76962
|
+
iframe.src = _this15.singleLogout[_i2];
|
|
76902
76963
|
document.body.appendChild(iframe);
|
|
76903
76964
|
}
|
|
76904
76965
|
}
|
|
76905
76966
|
utils_util.ajax({ method: 'post', url: logout }).then(function (res) {
|
|
76906
76967
|
if (res.rCode == 0) {
|
|
76907
76968
|
utils_util.removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
76908
|
-
if (
|
|
76909
|
-
|
|
76969
|
+
if (_this15.onQuit && typeof _this15.onQuit === 'function') {
|
|
76970
|
+
_this15.onQuit();
|
|
76910
76971
|
} else {
|
|
76911
76972
|
try {
|
|
76912
76973
|
var loginPage = utils_util.getStorage('login') || utils_util.getStorage('loginPage');
|
|
@@ -76944,7 +77005,7 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
76944
77005
|
}
|
|
76945
77006
|
}).catch(function (err) {
|
|
76946
77007
|
if (err.message && err.message !== 'canceled') {
|
|
76947
|
-
|
|
77008
|
+
_this15.$message.error(err.message);
|
|
76948
77009
|
}
|
|
76949
77010
|
});
|
|
76950
77011
|
}).catch(function (e) {});
|
|
@@ -77001,13 +77062,13 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
77001
77062
|
* @date 2024年9月7日
|
|
77002
77063
|
**/
|
|
77003
77064
|
handleOpened: function handleOpened(res) {
|
|
77004
|
-
var
|
|
77065
|
+
var _this16 = this;
|
|
77005
77066
|
|
|
77006
77067
|
if (res === undefined) {
|
|
77007
77068
|
this.sysMsg = [];
|
|
77008
77069
|
} else if (res == false && this.sysMsg.length) {
|
|
77009
77070
|
this.sysMsgOut = setTimeout(function () {
|
|
77010
|
-
|
|
77071
|
+
_this16.sysMsg = [];
|
|
77011
77072
|
}, 3000);
|
|
77012
77073
|
} else if (this.sysMsgOut) {
|
|
77013
77074
|
clearTimeout(this.sysMsgOut);
|
|
@@ -77027,14 +77088,12 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
77027
77088
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
77028
77089
|
|
|
77029
77090
|
console.log(res, 'handleSelect');
|
|
77030
|
-
|
|
77031
|
-
if (
|
|
77032
|
-
utils_util.win.open(
|
|
77033
|
-
} else if (
|
|
77034
|
-
utils_util.win.open(
|
|
77091
|
+
var node = res.node ? res.node : res;
|
|
77092
|
+
if (node.urlopenmode == 1 || node.openModel == 1) {
|
|
77093
|
+
utils_util.win.open(node.url || node.menuurl);
|
|
77094
|
+
} else if (node.urlopenmode == 2 || node.openModel == 2) {
|
|
77095
|
+
utils_util.win.open(node.url || node.menuurl, '_self');
|
|
77035
77096
|
} else {
|
|
77036
|
-
var node = res.node ? res.node : res;
|
|
77037
|
-
|
|
77038
77097
|
var _apps = node;
|
|
77039
77098
|
var param = params;
|
|
77040
77099
|
var reload = true;
|
|
@@ -77057,13 +77116,16 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
77057
77116
|
if (currentPage.fourthTabs && currentPage.fourthTabs.length > 0) {
|
|
77058
77117
|
this.fourthTabs = currentPage.fourthTabs;
|
|
77059
77118
|
this.currentPage = this.setIframeType(this.fourthTabs[0]);
|
|
77119
|
+
this.appCodes = this.currentPage.appCode;
|
|
77060
77120
|
if (param) {
|
|
77061
77121
|
this.currentPage.url = utils_util.handlerUrl(this.currentPage.url, param);
|
|
77062
77122
|
}
|
|
77063
77123
|
this.tabActiveName = this.currentPage.id;
|
|
77124
|
+
this.appCodes = this.currentPage.appCode;
|
|
77064
77125
|
} else {
|
|
77065
77126
|
this.fourthTabs = fourthTabs;
|
|
77066
77127
|
this.currentPage = this.setIframeType(currentPage);
|
|
77128
|
+
this.appCodes = this.currentPage.appCode;
|
|
77067
77129
|
if (param) {
|
|
77068
77130
|
this.currentPage.url = utils_util.handlerUrl(this.currentPage.url, param);
|
|
77069
77131
|
}
|
|
@@ -77180,11 +77242,11 @@ var simplicityTopvue_type_script_lang_js_events = [function (tabs, index, that)
|
|
|
77180
77242
|
|
|
77181
77243
|
var simplicityTop_component = normalizeComponent(
|
|
77182
77244
|
src_simplicityTopvue_type_script_lang_js_,
|
|
77183
|
-
|
|
77184
|
-
|
|
77245
|
+
simplicityTopvue_type_template_id_4a8a8fcc_scoped_true_render,
|
|
77246
|
+
simplicityTopvue_type_template_id_4a8a8fcc_scoped_true_staticRenderFns,
|
|
77185
77247
|
false,
|
|
77186
77248
|
null,
|
|
77187
|
-
"
|
|
77249
|
+
"4a8a8fcc",
|
|
77188
77250
|
null
|
|
77189
77251
|
|
|
77190
77252
|
)
|
|
@@ -81198,8 +81260,6 @@ var default_component = normalizeComponent(
|
|
|
81198
81260
|
|
|
81199
81261
|
/* harmony default export */ var src_default = (default_component.exports);
|
|
81200
81262
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
|
|
81201
|
-
var _name$inheritAttrs$pr;
|
|
81202
|
-
|
|
81203
81263
|
var main_src_mainvue_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; };
|
|
81204
81264
|
|
|
81205
81265
|
function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
@@ -81286,7 +81346,7 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
|
|
|
81286
81346
|
|
|
81287
81347
|
|
|
81288
81348
|
|
|
81289
|
-
/* harmony default export */ var main_src_mainvue_type_script_lang_js_ = (
|
|
81349
|
+
/* harmony default export */ var main_src_mainvue_type_script_lang_js_ = ({
|
|
81290
81350
|
name: 'EsMain',
|
|
81291
81351
|
inheritAttrs: false,
|
|
81292
81352
|
provide: function provide() {
|
|
@@ -81325,7 +81385,6 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
|
|
|
81325
81385
|
return { 'background-image': 'url(' + img + ')' };
|
|
81326
81386
|
}
|
|
81327
81387
|
},
|
|
81328
|
-
watch: {},
|
|
81329
81388
|
data: function data() {
|
|
81330
81389
|
return {
|
|
81331
81390
|
sysCode: '',
|
|
@@ -81338,465 +81397,490 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
|
|
|
81338
81397
|
layout: this.scene,
|
|
81339
81398
|
isIE: /MSIE|Trident/.test(navigator.userAgent)
|
|
81340
81399
|
};
|
|
81341
|
-
}
|
|
81342
|
-
|
|
81343
|
-
|
|
81344
|
-
|
|
81345
|
-
this.
|
|
81346
|
-
|
|
81347
|
-
|
|
81348
|
-
|
|
81349
|
-
|
|
81350
|
-
|
|
81351
|
-
}
|
|
81352
|
-
this.params = utils_util.getParams() || {};
|
|
81353
|
-
this.sysCode = this.params.sysCode;
|
|
81354
|
-
this.appCode = this.params.appCode || this.params.appcode;
|
|
81355
|
-
if (this.params.cookie && (this.params.cookie == true || this.params.cookie == 1)) {
|
|
81356
|
-
this.isLogin = true;
|
|
81357
|
-
}
|
|
81358
|
-
}, _name$inheritAttrs$pr.mounted = function mounted() {
|
|
81359
|
-
var token = utils_util.getStorage('token') || utils_util.getStorage('Authorization');
|
|
81360
|
-
this.isLogin = token ? true : this.isLogin;
|
|
81361
|
-
if (!token && Object.prototype.hasOwnProperty.call(this.params, 'serverId') && Object.prototype.hasOwnProperty.call(this.params, 'authType')) {
|
|
81362
|
-
return false;
|
|
81363
|
-
}
|
|
81364
|
-
this.bindEvent();
|
|
81365
|
-
}, _name$inheritAttrs$pr.methods = {
|
|
81366
|
-
/**
|
|
81367
|
-
* @desc: 绑定事件
|
|
81368
|
-
**/
|
|
81369
|
-
bindEvent: function bindEvent() {
|
|
81400
|
+
},
|
|
81401
|
+
created: function created() {
|
|
81402
|
+
this.params = utils_util.getParams() || {};
|
|
81403
|
+
this.sysCode = this.params.sysCode;
|
|
81404
|
+
this.appCode = this.params.appCode || this.params.appcode;
|
|
81405
|
+
if (this.params.cookie && (this.params.cookie == true || this.params.cookie == 1)) {
|
|
81406
|
+
this.isLogin = true;
|
|
81407
|
+
}
|
|
81408
|
+
},
|
|
81409
|
+
mounted: function mounted() {
|
|
81370
81410
|
var _this = this;
|
|
81371
81411
|
|
|
81372
|
-
|
|
81373
|
-
|
|
81374
|
-
|
|
81375
|
-
|
|
81376
|
-
|
|
81412
|
+
var token = utils_util.getStorage('token') || utils_util.getStorage('Authorization');
|
|
81413
|
+
this.isLogin = token ? true : this.isLogin;
|
|
81414
|
+
if (!token && Object.prototype.hasOwnProperty.call(this.params, 'serverId') && Object.prototype.hasOwnProperty.call(this.params, 'authType')) {
|
|
81415
|
+
return false;
|
|
81416
|
+
}
|
|
81417
|
+
this.$nextTick(function () {
|
|
81418
|
+
// 当主题变化时,重新绑定一次事件 防止事件丢失 或者绑定错误
|
|
81419
|
+
_this.bindEvent();
|
|
81420
|
+
var layoutType = localStorage.getItem('layoutType');
|
|
81421
|
+
if (layoutType) {
|
|
81422
|
+
_this.layoutType = layoutType;
|
|
81377
81423
|
}
|
|
81378
|
-
|
|
81379
|
-
|
|
81380
|
-
|
|
81381
|
-
|
|
81382
|
-
|
|
81383
|
-
|
|
81384
|
-
|
|
81385
|
-
|
|
81386
|
-
|
|
81387
|
-
|
|
81388
|
-
|
|
81389
|
-
|
|
81424
|
+
});
|
|
81425
|
+
},
|
|
81426
|
+
|
|
81427
|
+
methods: {
|
|
81428
|
+
/**
|
|
81429
|
+
* @desc: 绑定事件
|
|
81430
|
+
**/
|
|
81431
|
+
bindEvent: function bindEvent() {
|
|
81432
|
+
var _this2 = this;
|
|
81433
|
+
|
|
81434
|
+
// 先解绑事件,以免弹出多次
|
|
81435
|
+
this.unbindEvent();
|
|
81436
|
+
if (this.isLogin) {
|
|
81437
|
+
if (utils_util.win.$wujie) {
|
|
81438
|
+
utils_util.win.$wujie.bus.$on('changeTheme', function (res) {
|
|
81439
|
+
utils_util.updateTheme(res);
|
|
81390
81440
|
});
|
|
81391
81441
|
}
|
|
81392
|
-
|
|
81393
|
-
|
|
81394
|
-
|
|
81395
|
-
|
|
81396
|
-
|
|
81397
|
-
|
|
81398
|
-
|
|
81399
|
-
|
|
81400
|
-
|
|
81401
|
-
|
|
81402
|
-
|
|
81403
|
-
|
|
81404
|
-
|
|
81405
|
-
|
|
81442
|
+
this.$nextTick(function () {
|
|
81443
|
+
_this2.getConfig();
|
|
81444
|
+
var bus = _this2.bus || _this2.$root.Bus;
|
|
81445
|
+
if (bus) {
|
|
81446
|
+
bus.$on('reLogin', _this2.handleReLogin);
|
|
81447
|
+
bus.$on('refresh', _this2.$refs.main.handleRefresh);
|
|
81448
|
+
bus.$on('menuRefresh', _this2.$refs.main.handleRefresh);
|
|
81449
|
+
bus.$on('windowOpen', _this2.winOpen);
|
|
81450
|
+
bus.$on('windowClose', _this2.winClose);
|
|
81451
|
+
bus.$on('jumpMenu', _this2.$refs.main.jumpMenu);
|
|
81452
|
+
bus.$on('emit', function (method, args) {
|
|
81453
|
+
// 主应用发送事件
|
|
81454
|
+
bus.$emit(method, args);
|
|
81455
|
+
});
|
|
81456
|
+
}
|
|
81457
|
+
utils_util.win.reLogin = _this2.handleReLogin;
|
|
81458
|
+
utils_util.win.windowOpen = _this2.winOpen;
|
|
81459
|
+
utils_util.win.windowClose = _this2.winClose;
|
|
81460
|
+
utils_util.win.refresh = _this2.$refs.main.handleRefresh;
|
|
81461
|
+
utils_util.win.menuRefresh = _this2.$refs.main.handleRefresh;
|
|
81462
|
+
utils_util.win.jumpMenu = _this2.$refs.main.jumpMenu;
|
|
81463
|
+
external_wujie_vue2_default.a.bus.$on('reLogin', _this2.handleReLogin);
|
|
81464
|
+
external_wujie_vue2_default.a.bus.$on('refresh', _this2.$refs.main.handleRefresh);
|
|
81465
|
+
external_wujie_vue2_default.a.bus.$on('menuRefresh', _this2.$refs.main.handleRefresh);
|
|
81466
|
+
external_wujie_vue2_default.a.bus.$on('jumpMenu', _this2.$refs.main.jumpMenu);
|
|
81467
|
+
external_wujie_vue2_default.a.bus.$on('windowOpen', _this2.winOpen);
|
|
81468
|
+
external_wujie_vue2_default.a.bus.$on('windowClose', _this2.winClose);
|
|
81469
|
+
external_wujie_vue2_default.a.bus.$on('emit', function (method, args) {
|
|
81470
|
+
// 主应用发送事件
|
|
81471
|
+
external_wujie_vue2_default.a.bus.$emit(method, args);
|
|
81472
|
+
});
|
|
81406
81473
|
|
|
81407
|
-
|
|
81408
|
-
|
|
81409
|
-
|
|
81410
|
-
|
|
81411
|
-
|
|
81412
|
-
|
|
81413
|
-
|
|
81414
|
-
|
|
81415
|
-
|
|
81416
|
-
|
|
81417
|
-
|
|
81474
|
+
window.addEventListener('message', _this2.handleMessage);
|
|
81475
|
+
});
|
|
81476
|
+
} else {
|
|
81477
|
+
var loginPage = utils_util.getStorage('login') || utils_util.getStorage('loginPage');
|
|
81478
|
+
if (loginPage) {
|
|
81479
|
+
window.location.replace(loginPage);
|
|
81480
|
+
} else if (document.referrer) {
|
|
81481
|
+
var referrerUrl = new URL(document.referrer);
|
|
81482
|
+
if (referrerUrl.host !== window.location.host) {
|
|
81483
|
+
window.location.replace(document.referrer);
|
|
81484
|
+
} else if (window.location.href.indexOf('main.html') > -1 || window.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
|
|
81485
|
+
window.location.href = './login.html';
|
|
81486
|
+
} else {
|
|
81487
|
+
next('/login');
|
|
81488
|
+
}
|
|
81489
|
+
} else if (window.location.href.indexOf('main.html') > -1) {
|
|
81418
81490
|
window.location.href = './login.html';
|
|
81419
81491
|
} else {
|
|
81420
81492
|
next('/login');
|
|
81421
81493
|
}
|
|
81422
|
-
} else if (window.location.href.indexOf('main.html') > -1) {
|
|
81423
|
-
window.location.href = './login.html';
|
|
81424
|
-
} else {
|
|
81425
|
-
next('/login');
|
|
81426
81494
|
}
|
|
81427
|
-
}
|
|
81428
|
-
},
|
|
81495
|
+
},
|
|
81429
81496
|
|
|
81430
|
-
|
|
81431
|
-
|
|
81432
|
-
|
|
81433
|
-
|
|
81434
|
-
|
|
81435
|
-
|
|
81436
|
-
|
|
81497
|
+
/**
|
|
81498
|
+
* @desc: 解绑事件
|
|
81499
|
+
**/
|
|
81500
|
+
unbindEvent: function unbindEvent() {
|
|
81501
|
+
window.removeEventListener('message', this.handleMessage);
|
|
81502
|
+
var bus = this.bus || this.$root.Bus;
|
|
81503
|
+
if (bus) {
|
|
81504
|
+
bus.$off('reLogin');
|
|
81505
|
+
bus.$off('refresh');
|
|
81506
|
+
bus.$off('menuRefresh');
|
|
81507
|
+
bus.$off('windowOpen');
|
|
81508
|
+
bus.$off('windowClose');
|
|
81509
|
+
bus.$off('jumpMenu');
|
|
81510
|
+
bus.$off('emit');
|
|
81511
|
+
}
|
|
81512
|
+
external_wujie_vue2_default.a.bus.$off('reLogin');
|
|
81513
|
+
external_wujie_vue2_default.a.bus.$off('refresh');
|
|
81514
|
+
external_wujie_vue2_default.a.bus.$off('menuRefresh');
|
|
81515
|
+
external_wujie_vue2_default.a.bus.$off('jumpMenu');
|
|
81516
|
+
external_wujie_vue2_default.a.bus.$off('emit');
|
|
81517
|
+
},
|
|
81437
81518
|
|
|
81438
|
-
|
|
81439
|
-
|
|
81440
|
-
|
|
81441
|
-
|
|
81442
|
-
|
|
81443
|
-
|
|
81444
|
-
|
|
81445
|
-
|
|
81446
|
-
this
|
|
81447
|
-
|
|
81519
|
+
/**
|
|
81520
|
+
* @desc: 切换布局风格
|
|
81521
|
+
* @author huangbo
|
|
81522
|
+
* @date 2024年9月7日
|
|
81523
|
+
**/
|
|
81524
|
+
changLayout: function changLayout(res, active) {
|
|
81525
|
+
var _this3 = this;
|
|
81526
|
+
|
|
81527
|
+
this.layoutType = res;
|
|
81528
|
+
localStorage.setItem('layoutType', res);
|
|
81529
|
+
if (active) {
|
|
81530
|
+
this.layout = active;
|
|
81531
|
+
}
|
|
81532
|
+
var mainConfig = utils_util.getStorage('mainConfig');
|
|
81533
|
+
if (mainConfig) {
|
|
81534
|
+
mainConfig = JSON.parse(mainConfig);
|
|
81535
|
+
this.$nextTick(function () {
|
|
81536
|
+
_this3.$refs.main.init(mainConfig, true);
|
|
81537
|
+
utils_util.getMainConfig(function (res) {
|
|
81538
|
+
_this3.$refs.main.init(res, false);
|
|
81539
|
+
});
|
|
81540
|
+
});
|
|
81541
|
+
} else {
|
|
81448
81542
|
utils_util.getMainConfig(function (res) {
|
|
81449
|
-
|
|
81543
|
+
_this3.$refs.main.init(res, true);
|
|
81450
81544
|
});
|
|
81451
|
-
}
|
|
81452
|
-
}
|
|
81453
|
-
utils_util.getMainConfig(function (res) {
|
|
81454
|
-
_this2.$refs.main.init(res, true);
|
|
81455
|
-
});
|
|
81456
|
-
}
|
|
81457
|
-
},
|
|
81545
|
+
}
|
|
81546
|
+
},
|
|
81458
81547
|
|
|
81459
|
-
|
|
81460
|
-
|
|
81461
|
-
|
|
81462
|
-
|
|
81463
|
-
|
|
81464
|
-
|
|
81465
|
-
|
|
81548
|
+
/**
|
|
81549
|
+
* @desc:重新登录
|
|
81550
|
+
* @author huangbo
|
|
81551
|
+
* @date 2024年9月7日
|
|
81552
|
+
**/
|
|
81553
|
+
handleReLogin: function handleReLogin(res) {
|
|
81554
|
+
var _this4 = this;
|
|
81466
81555
|
|
|
81467
|
-
|
|
81468
|
-
|
|
81469
|
-
}
|
|
81470
|
-
var msg = '提示';
|
|
81471
|
-
var btn = {
|
|
81472
|
-
confirmButtonText: '确定',
|
|
81473
|
-
cancelButtonText: '取消',
|
|
81474
|
-
closeOnClickModal: false,
|
|
81475
|
-
type: 'warning'
|
|
81476
|
-
};
|
|
81477
|
-
if (res) {
|
|
81478
|
-
if (res.rCode === 69) {
|
|
81479
|
-
msg = '该账号在其他地方已登陆!';
|
|
81480
|
-
btn = {
|
|
81481
|
-
confirmButtonText: '确定',
|
|
81482
|
-
closeOnClickModal: false,
|
|
81483
|
-
type: 'warning'
|
|
81484
|
-
};
|
|
81485
|
-
} else {
|
|
81486
|
-
msg = '登录已过期,请重新登录!';
|
|
81556
|
+
if (res && typeof res == 'string') {
|
|
81557
|
+
res = JSON.parse(res);
|
|
81487
81558
|
}
|
|
81488
|
-
|
|
81489
|
-
|
|
81490
|
-
|
|
81491
|
-
|
|
81492
|
-
|
|
81493
|
-
|
|
81494
|
-
|
|
81495
|
-
|
|
81496
|
-
|
|
81497
|
-
|
|
81498
|
-
|
|
81499
|
-
|
|
81500
|
-
|
|
81501
|
-
|
|
81502
|
-
|
|
81503
|
-
|
|
81504
|
-
|
|
81505
|
-
|
|
81506
|
-
|
|
81507
|
-
|
|
81508
|
-
|
|
81559
|
+
var msg = '提示';
|
|
81560
|
+
var btn = {
|
|
81561
|
+
confirmButtonText: '确定',
|
|
81562
|
+
cancelButtonText: '取消',
|
|
81563
|
+
closeOnClickModal: false,
|
|
81564
|
+
type: 'warning'
|
|
81565
|
+
};
|
|
81566
|
+
if (res) {
|
|
81567
|
+
if (res.rCode === 69) {
|
|
81568
|
+
msg = '该账号在其他地方已登陆!';
|
|
81569
|
+
btn = {
|
|
81570
|
+
confirmButtonText: '确定',
|
|
81571
|
+
closeOnClickModal: false,
|
|
81572
|
+
type: 'warning'
|
|
81573
|
+
};
|
|
81574
|
+
} else {
|
|
81575
|
+
msg = '登录已过期,请重新登录!';
|
|
81576
|
+
}
|
|
81577
|
+
}
|
|
81578
|
+
cl;
|
|
81579
|
+
var remind = sessionStorage.getItem('remind');
|
|
81580
|
+
if (!remind) {
|
|
81581
|
+
clearTimeout(this.timer);
|
|
81582
|
+
this.timer = setTimeout(function () {
|
|
81583
|
+
console.log('handleReLogin');
|
|
81584
|
+
sessionStorage.setItem('remind', 1);
|
|
81585
|
+
_this4.$confirm(msg, btn).then(function () {
|
|
81586
|
+
utils_util.removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
81587
|
+
var loginPage = utils_util.getStorage('login') || utils_util.getStorage('loginPage');
|
|
81588
|
+
try {
|
|
81589
|
+
if (loginPage) {
|
|
81590
|
+
var src = void 0;
|
|
81591
|
+
if (!utils_util.startWith(loginPage, ['http', '/'], true)) {
|
|
81592
|
+
var pathname = utils_util.win.top.location.pathname;
|
|
81593
|
+
if (pathname !== '/') {
|
|
81594
|
+
pathname = pathname.split('/');
|
|
81595
|
+
pathname.splice(pathname.length - 1);
|
|
81596
|
+
pathname = pathname.join('/');
|
|
81597
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
81598
|
+
} else {
|
|
81599
|
+
src = pathname + loginPage.replace('./', '');
|
|
81600
|
+
}
|
|
81509
81601
|
} else {
|
|
81510
|
-
src =
|
|
81602
|
+
src = loginPage;
|
|
81511
81603
|
}
|
|
81604
|
+
utils_util.win.top.location.href = src;
|
|
81605
|
+
} else if (utils_util.win.top.location.href.indexOf('main.html') > -1) {
|
|
81606
|
+
utils_util.win.top.location.href = './login.html';
|
|
81512
81607
|
} else {
|
|
81513
|
-
|
|
81514
|
-
|
|
81515
|
-
|
|
81516
|
-
|
|
81517
|
-
|
|
81518
|
-
|
|
81519
|
-
|
|
81520
|
-
if (hash) {
|
|
81521
|
-
var len = utils_util.win.top.location.href.indexOf(hash);
|
|
81522
|
-
utils_util.win.top.location.href = utils_util.win.location.href.slice(0, len) + '#/login';
|
|
81523
|
-
} else {
|
|
81524
|
-
utils_util.win.top.location.href = '/login.html';
|
|
81608
|
+
var hash = utils_util.win.top.location.hash;
|
|
81609
|
+
if (hash) {
|
|
81610
|
+
var len = utils_util.win.top.location.href.indexOf(hash);
|
|
81611
|
+
utils_util.win.top.location.href = utils_util.win.location.href.slice(0, len) + '#/login';
|
|
81612
|
+
} else {
|
|
81613
|
+
utils_util.win.top.location.href = '/login.html';
|
|
81614
|
+
}
|
|
81525
81615
|
}
|
|
81526
|
-
}
|
|
81527
|
-
}
|
|
81528
|
-
|
|
81529
|
-
|
|
81530
|
-
});
|
|
81531
|
-
}
|
|
81532
|
-
}
|
|
81533
|
-
},
|
|
81616
|
+
} catch (error) {}
|
|
81617
|
+
}).catch(function (e) {
|
|
81618
|
+
sessionStorage.removeItem('remind');
|
|
81619
|
+
});
|
|
81620
|
+
}, 2000);
|
|
81621
|
+
}
|
|
81622
|
+
},
|
|
81534
81623
|
|
|
81535
|
-
|
|
81536
|
-
|
|
81537
|
-
|
|
81538
|
-
|
|
81539
|
-
|
|
81540
|
-
|
|
81541
|
-
|
|
81624
|
+
/**
|
|
81625
|
+
* @desc:获取系统配置
|
|
81626
|
+
* @author huangbo
|
|
81627
|
+
* @date 2024年9月7日
|
|
81628
|
+
**/
|
|
81629
|
+
getConfig: function getConfig() {
|
|
81630
|
+
var _this5 = this;
|
|
81542
81631
|
|
|
81543
|
-
|
|
81544
|
-
|
|
81545
|
-
|
|
81546
|
-
|
|
81547
|
-
|
|
81548
|
-
|
|
81549
|
-
|
|
81550
|
-
|
|
81551
|
-
|
|
81552
|
-
|
|
81553
|
-
|
|
81554
|
-
|
|
81555
|
-
|
|
81632
|
+
var mainConfig = utils_util.getStorage('mainConfig');
|
|
81633
|
+
if (mainConfig) {
|
|
81634
|
+
mainConfig = JSON.parse(mainConfig);
|
|
81635
|
+
this.$refs.main.init(mainConfig, true);
|
|
81636
|
+
utils_util.getMainConfig(function (res) {
|
|
81637
|
+
_this5.$refs.main.init(res, false);
|
|
81638
|
+
});
|
|
81639
|
+
} else {
|
|
81640
|
+
utils_util.getMainConfig(function (res) {
|
|
81641
|
+
_this5.$refs.main.init(res, true);
|
|
81642
|
+
});
|
|
81643
|
+
}
|
|
81644
|
+
},
|
|
81556
81645
|
|
|
81557
|
-
|
|
81558
|
-
|
|
81559
|
-
|
|
81560
|
-
|
|
81561
|
-
|
|
81562
|
-
|
|
81563
|
-
|
|
81646
|
+
/**
|
|
81647
|
+
* @desc:打开dialog页面
|
|
81648
|
+
* @author huangbo
|
|
81649
|
+
* @date 2024年9月7日
|
|
81650
|
+
**/
|
|
81651
|
+
winOpen: function winOpen(_ref) {
|
|
81652
|
+
var _this6 = this;
|
|
81564
81653
|
|
|
81565
|
-
|
|
81566
|
-
|
|
81567
|
-
|
|
81568
|
-
|
|
81569
|
-
|
|
81570
|
-
|
|
81571
|
-
|
|
81572
|
-
|
|
81573
|
-
|
|
81574
|
-
|
|
81575
|
-
|
|
81576
|
-
|
|
81577
|
-
|
|
81578
|
-
|
|
81579
|
-
|
|
81580
|
-
|
|
81581
|
-
|
|
81582
|
-
|
|
81583
|
-
|
|
81584
|
-
|
|
81585
|
-
|
|
81586
|
-
|
|
81587
|
-
|
|
81588
|
-
|
|
81589
|
-
|
|
81590
|
-
|
|
81591
|
-
|
|
81592
|
-
|
|
81593
|
-
|
|
81594
|
-
|
|
81595
|
-
|
|
81596
|
-
|
|
81597
|
-
|
|
81598
|
-
|
|
81599
|
-
|
|
81600
|
-
|
|
81601
|
-
|
|
81602
|
-
|
|
81603
|
-
|
|
81604
|
-
|
|
81605
|
-
|
|
81606
|
-
|
|
81654
|
+
var url = _ref.url,
|
|
81655
|
+
name = _ref.name,
|
|
81656
|
+
_ref$width = _ref.width,
|
|
81657
|
+
width = _ref$width === undefined ? '100%' : _ref$width,
|
|
81658
|
+
_ref$height = _ref.height,
|
|
81659
|
+
height = _ref$height === undefined ? '100%' : _ref$height,
|
|
81660
|
+
appCode = _ref.appCode,
|
|
81661
|
+
id = _ref.id,
|
|
81662
|
+
size = _ref.size,
|
|
81663
|
+
config = main_src_mainvue_type_script_lang_js_objectWithoutProperties(_ref, ['url', 'name', 'width', 'height', 'appCode', 'id', 'size']);
|
|
81664
|
+
|
|
81665
|
+
url = typeof arguments[0] === 'string' ? arguments[0] : url;
|
|
81666
|
+
id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
|
|
81667
|
+
var openModel = utils_util.getStorage('openModel');
|
|
81668
|
+
var src = url;
|
|
81669
|
+
if (!utils_util.startWith(url, ['http', '/'], true)) {
|
|
81670
|
+
var pathname = window.location.pathname;
|
|
81671
|
+
if (pathname !== '/') {
|
|
81672
|
+
pathname = pathname.split('/');
|
|
81673
|
+
pathname.splice(pathname.length - 1);
|
|
81674
|
+
pathname = pathname.join('/');
|
|
81675
|
+
}
|
|
81676
|
+
src = pathname + url.replace('./', '/');
|
|
81677
|
+
}
|
|
81678
|
+
if (openModel && openModel == 'dialog') {
|
|
81679
|
+
var _dialog = main_src_mainvue_type_script_lang_js_extends({
|
|
81680
|
+
id: id,
|
|
81681
|
+
url: src,
|
|
81682
|
+
name: name,
|
|
81683
|
+
width: width,
|
|
81684
|
+
height: height,
|
|
81685
|
+
appCode: appCode,
|
|
81686
|
+
visible: false,
|
|
81687
|
+
size: size
|
|
81688
|
+
}, config);
|
|
81689
|
+
var n = this.dialogs.push(_dialog);
|
|
81690
|
+
this.$nextTick(function () {
|
|
81691
|
+
_this6.$set(_dialog, 'index', n - 1);
|
|
81692
|
+
_this6.$set(_dialog, 'visible', true);
|
|
81693
|
+
});
|
|
81694
|
+
return _dialog;
|
|
81695
|
+
}
|
|
81607
81696
|
|
|
81608
|
-
|
|
81609
|
-
|
|
81610
|
-
|
|
81611
|
-
|
|
81612
|
-
|
|
81613
|
-
|
|
81614
|
-
|
|
81615
|
-
|
|
81616
|
-
|
|
81697
|
+
if (name) {
|
|
81698
|
+
var w = 0;
|
|
81699
|
+
var h = 0;
|
|
81700
|
+
try {
|
|
81701
|
+
w = width ? width : utils_util.win.top.screen.availWidth - 10;
|
|
81702
|
+
h = height ? height : utils_util.win.top.screen.availHeight - 60;
|
|
81703
|
+
} catch (error) {
|
|
81704
|
+
w = width ? width : utils_util.win.screen.availWidth - 10;
|
|
81705
|
+
h = height ? height : utils_util.win.screen.availHeight - 60;
|
|
81706
|
+
}
|
|
81707
|
+
return utils_util.win.open(src, name, 'width=' + w + 'px,height=' + h + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
|
|
81708
|
+
} else {
|
|
81709
|
+
return utils_util.win.open(src);
|
|
81617
81710
|
}
|
|
81618
|
-
|
|
81619
|
-
} else {
|
|
81620
|
-
return utils_util.win.open(src);
|
|
81621
|
-
}
|
|
81622
|
-
},
|
|
81711
|
+
},
|
|
81623
81712
|
|
|
81624
81713
|
|
|
81625
|
-
|
|
81626
|
-
|
|
81627
|
-
|
|
81628
|
-
|
|
81629
|
-
|
|
81630
|
-
|
|
81631
|
-
|
|
81632
|
-
|
|
81633
|
-
|
|
81634
|
-
|
|
81635
|
-
|
|
81636
|
-
|
|
81637
|
-
|
|
81714
|
+
/**
|
|
81715
|
+
* @desc:关闭dialog页面
|
|
81716
|
+
* @author huangbo
|
|
81717
|
+
* @date 2024年9月7日
|
|
81718
|
+
**/
|
|
81719
|
+
winClose: function winClose(_ref2) {
|
|
81720
|
+
var url = _ref2.url,
|
|
81721
|
+
appCode = _ref2.appCode,
|
|
81722
|
+
id = _ref2.id,
|
|
81723
|
+
index = _ref2.index,
|
|
81724
|
+
refresh = _ref2.refresh,
|
|
81725
|
+
menuRefresh = _ref2.menuRefresh,
|
|
81726
|
+
jumpMenu = _ref2.jumpMenu,
|
|
81727
|
+
callback = _ref2.callback;
|
|
81728
|
+
|
|
81729
|
+
if (!appCode && !id) {
|
|
81730
|
+
console.error('参数错误,缺少appCode或者id');
|
|
81731
|
+
return;
|
|
81732
|
+
}
|
|
81733
|
+
if (index) {
|
|
81734
|
+
this.$set(this.dialogs, 'visible', false);
|
|
81735
|
+
this.dialogs.splice(dialog.index, 1);
|
|
81736
|
+
} else {
|
|
81737
|
+
var _dialog2 = this.dialogs.find(function (item) {
|
|
81738
|
+
return item.url == url || item.appCode == appCode || item.id == id;
|
|
81739
|
+
});
|
|
81638
81740
|
|
|
81639
|
-
|
|
81640
|
-
|
|
81641
|
-
|
|
81642
|
-
|
|
81643
|
-
|
|
81644
|
-
|
|
81645
|
-
|
|
81646
|
-
|
|
81647
|
-
|
|
81648
|
-
|
|
81649
|
-
|
|
81741
|
+
if (_dialog2) {
|
|
81742
|
+
this.$set(_dialog2, 'visible', false);
|
|
81743
|
+
this.dialogs.splice(_dialog2.index, 1);
|
|
81744
|
+
}
|
|
81745
|
+
}
|
|
81746
|
+
if (callback) {
|
|
81747
|
+
var bus = this.bus || this.$root.Bus;
|
|
81748
|
+
if (bus) {
|
|
81749
|
+
// 主应用发送事件
|
|
81750
|
+
bus.$emit(callback, arguments[0]);
|
|
81751
|
+
}
|
|
81752
|
+
} else {
|
|
81753
|
+
var _$refs$main;
|
|
81650
81754
|
|
|
81651
|
-
|
|
81652
|
-
this.$
|
|
81653
|
-
this.
|
|
81755
|
+
refresh && this.$refs.main.handleRefresh(refresh);
|
|
81756
|
+
menuRefresh && this.$refs.main.handleRefresh(menuRefresh);
|
|
81757
|
+
jumpMenu && (Array.isArray(jumpMenu) ? (_$refs$main = this.$refs.main).jumpMenu.apply(_$refs$main, jumpMenu) : this.$refs.main.jumpMenu(jumpMenu));
|
|
81654
81758
|
}
|
|
81655
|
-
}
|
|
81656
|
-
|
|
81657
|
-
|
|
81658
|
-
|
|
81659
|
-
|
|
81660
|
-
|
|
81759
|
+
},
|
|
81760
|
+
|
|
81761
|
+
|
|
81762
|
+
/**
|
|
81763
|
+
* @desc:postMessage消息处理
|
|
81764
|
+
* @author huangbo
|
|
81765
|
+
* @date 2024年9月7日
|
|
81766
|
+
**/
|
|
81767
|
+
handleMessage: function handleMessage(e) {
|
|
81768
|
+
var _$refs$main2;
|
|
81769
|
+
|
|
81770
|
+
var _e$data = e.data,
|
|
81771
|
+
method = _e$data.method,
|
|
81772
|
+
args = _e$data.args;
|
|
81773
|
+
|
|
81774
|
+
switch (method) {
|
|
81775
|
+
case 'reLogin':
|
|
81776
|
+
this.handleReLogin(args);
|
|
81777
|
+
break;
|
|
81778
|
+
case 'refresh':
|
|
81779
|
+
this.$refs.main.handleRefresh(args);
|
|
81780
|
+
break;
|
|
81781
|
+
case 'menuRefresh':
|
|
81782
|
+
this.$refs.main.handleRefresh(args);
|
|
81783
|
+
break;
|
|
81784
|
+
case 'jumpMenu':
|
|
81785
|
+
Array.isArray(args) ? (_$refs$main2 = this.$refs.main).jumpMenu.apply(_$refs$main2, args) : this.$refs.main.jumpMenu(args);
|
|
81786
|
+
break;
|
|
81787
|
+
case 'emit':
|
|
81788
|
+
var origin = args.origin,
|
|
81789
|
+
appCode = args.appCode,
|
|
81790
|
+
id = args.id,
|
|
81791
|
+
data = main_src_mainvue_type_script_lang_js_objectWithoutProperties(args, ['origin', 'appCode', 'id']);
|
|
81792
|
+
|
|
81793
|
+
var iframe = document.getElementById(appCode || id);
|
|
81794
|
+
iframe.contentWindow.postMessage(data, origin ? origin : '*');
|
|
81795
|
+
break;
|
|
81796
|
+
case 'openDialog':
|
|
81797
|
+
//打开弹窗
|
|
81798
|
+
this.winOpen(args);
|
|
81799
|
+
break;
|
|
81800
|
+
case 'closeDialog':
|
|
81801
|
+
//关闭弹窗
|
|
81802
|
+
this.winClose(args);
|
|
81803
|
+
break;
|
|
81804
|
+
case 'windowOpen':
|
|
81805
|
+
//打开弹窗
|
|
81806
|
+
this.winOpen(args);
|
|
81807
|
+
break;
|
|
81808
|
+
case 'windowClose':
|
|
81809
|
+
//关闭弹窗
|
|
81810
|
+
this.winClose(args);
|
|
81811
|
+
break;
|
|
81661
81812
|
}
|
|
81662
|
-
}
|
|
81663
|
-
var _$refs$main;
|
|
81664
|
-
|
|
81665
|
-
refresh && this.$refs.main.handleRefresh(refresh);
|
|
81666
|
-
jumpMenu && (Array.isArray(jumpMenu) ? (_$refs$main = this.$refs.main).jumpMenu.apply(_$refs$main, jumpMenu) : this.$refs.main.jumpMenu(jumpMenu));
|
|
81667
|
-
}
|
|
81668
|
-
},
|
|
81669
|
-
|
|
81670
|
-
|
|
81671
|
-
/**
|
|
81672
|
-
* @desc:postMessage消息处理
|
|
81673
|
-
* @author huangbo
|
|
81674
|
-
* @date 2024年9月7日
|
|
81675
|
-
**/
|
|
81676
|
-
handleMessage: function handleMessage(e) {
|
|
81677
|
-
var _$refs$main2;
|
|
81678
|
-
|
|
81679
|
-
var _e$data = e.data,
|
|
81680
|
-
method = _e$data.method,
|
|
81681
|
-
args = _e$data.args;
|
|
81682
|
-
|
|
81683
|
-
switch (method) {
|
|
81684
|
-
case 'reLogin':
|
|
81685
|
-
this.handleReLogin(args);
|
|
81686
|
-
break;
|
|
81687
|
-
case 'refresh':
|
|
81688
|
-
this.$refs.main.handleRefresh(args);
|
|
81689
|
-
break;
|
|
81690
|
-
case 'jumpMenu':
|
|
81691
|
-
Array.isArray(args) ? (_$refs$main2 = this.$refs.main).jumpMenu.apply(_$refs$main2, args) : this.$refs.main.jumpMenu(args);
|
|
81692
|
-
break;
|
|
81693
|
-
case 'emit':
|
|
81694
|
-
var origin = args.origin,
|
|
81695
|
-
appCode = args.appCode,
|
|
81696
|
-
id = args.id,
|
|
81697
|
-
data = main_src_mainvue_type_script_lang_js_objectWithoutProperties(args, ['origin', 'appCode', 'id']);
|
|
81698
|
-
|
|
81699
|
-
var iframe = document.getElementById(appCode || id);
|
|
81700
|
-
iframe.contentWindow.postMessage(data, origin ? origin : '*');
|
|
81701
|
-
break;
|
|
81702
|
-
case 'openDialog':
|
|
81703
|
-
//打开弹窗
|
|
81704
|
-
this.winOpen(args);
|
|
81705
|
-
break;
|
|
81706
|
-
case 'closeDialog':
|
|
81707
|
-
//关闭弹窗
|
|
81708
|
-
this.winClose(args);
|
|
81709
|
-
break;
|
|
81710
|
-
case 'windowOpen':
|
|
81711
|
-
//打开弹窗
|
|
81712
|
-
this.winOpen(args);
|
|
81713
|
-
break;
|
|
81714
|
-
case 'windowClose':
|
|
81715
|
-
//关闭弹窗
|
|
81716
|
-
this.winClose(args);
|
|
81717
|
-
break;
|
|
81718
|
-
}
|
|
81719
|
-
},
|
|
81720
|
-
|
|
81721
|
-
|
|
81722
|
-
/**
|
|
81723
|
-
* @desc:dialog页面加载完成后通讯
|
|
81724
|
-
* @author huangbo
|
|
81725
|
-
* @date 2024年9月7日
|
|
81726
|
-
**/
|
|
81727
|
-
handleIframeLoad: function handleIframeLoad(iframe, data) {
|
|
81728
|
-
iframe = iframe ? iframe : document.getElementById(data.appCode || data.id);
|
|
81729
|
-
var origin = new URL(iframe.src).origin;
|
|
81730
|
-
iframe.contentWindow.postMessage(main_src_mainvue_type_script_lang_js_extends({}, data, { method: 'windowOpen' }), origin);
|
|
81731
|
-
},
|
|
81732
|
-
|
|
81733
|
-
|
|
81734
|
-
/**
|
|
81735
|
-
* @desc:排除属性
|
|
81736
|
-
* @author huangbo
|
|
81737
|
-
* @date 2024年9月7日
|
|
81738
|
-
**/
|
|
81739
|
-
exclAttribute: function exclAttribute(_ref3) {
|
|
81740
|
-
var data = _ref3.data,
|
|
81741
|
-
attrs = _ref3.attrs;
|
|
81742
|
-
|
|
81743
|
-
return utils_util.exclAttribute({ data: data, attrs: attrs });
|
|
81744
|
-
},
|
|
81745
|
-
|
|
81746
|
-
/**
|
|
81747
|
-
* @desc:关闭dialog
|
|
81748
|
-
* @author huangbo
|
|
81749
|
-
* @date 2024年9月7日
|
|
81750
|
-
**/
|
|
81751
|
-
handleClosed: function handleClosed(res, index) {
|
|
81752
|
-
var _this6 = this;
|
|
81813
|
+
},
|
|
81753
81814
|
|
|
81754
|
-
// 在关闭弹窗后更新数量
|
|
81755
|
-
if (this.layoutType == 'simplicityTop') {
|
|
81756
|
-
this.$refs.main.getNums();
|
|
81757
|
-
}
|
|
81758
|
-
this.$nextTick(function () {
|
|
81759
|
-
_this6.dialogs.splice(index, 1);
|
|
81760
|
-
});
|
|
81761
|
-
},
|
|
81762
81815
|
|
|
81763
|
-
|
|
81764
|
-
|
|
81765
|
-
|
|
81766
|
-
|
|
81767
|
-
|
|
81768
|
-
|
|
81769
|
-
|
|
81816
|
+
/**
|
|
81817
|
+
* @desc:dialog页面加载完成后通讯
|
|
81818
|
+
* @author huangbo
|
|
81819
|
+
* @date 2024年9月7日
|
|
81820
|
+
**/
|
|
81821
|
+
handleIframeLoad: function handleIframeLoad(iframe, data) {
|
|
81822
|
+
iframe = iframe ? iframe : document.getElementById(data.appCode || data.id);
|
|
81823
|
+
var origin = new URL(iframe.src).origin;
|
|
81824
|
+
iframe.contentWindow.postMessage(main_src_mainvue_type_script_lang_js_extends({}, data, { method: 'windowOpen' }), origin);
|
|
81825
|
+
},
|
|
81826
|
+
|
|
81827
|
+
|
|
81828
|
+
/**
|
|
81829
|
+
* @desc:排除属性
|
|
81830
|
+
* @author huangbo
|
|
81831
|
+
* @date 2024年9月7日
|
|
81832
|
+
**/
|
|
81833
|
+
exclAttribute: function exclAttribute(_ref3) {
|
|
81834
|
+
var data = _ref3.data,
|
|
81835
|
+
attrs = _ref3.attrs;
|
|
81836
|
+
|
|
81837
|
+
return utils_util.exclAttribute({ data: data, attrs: attrs });
|
|
81838
|
+
},
|
|
81839
|
+
|
|
81840
|
+
/**
|
|
81841
|
+
* @desc:关闭dialog
|
|
81842
|
+
* @author huangbo
|
|
81843
|
+
* @date 2024年9月7日
|
|
81844
|
+
**/
|
|
81845
|
+
handleClosed: function handleClosed(res, index) {
|
|
81846
|
+
var _this7 = this;
|
|
81770
81847
|
|
|
81771
|
-
|
|
81772
|
-
|
|
81773
|
-
|
|
81774
|
-
var src = iframes[i] ? iframes[i].src : null;
|
|
81775
|
-
var origin = utils_util.win.location.origin;
|
|
81776
|
-
if (src && utils_util.startWith(src, 'http') && src.indexOf(origin) === -1) {
|
|
81777
|
-
iframes[i] && iframes[i].contentWindow.postMessage({ method: event, query: args }, '*');
|
|
81848
|
+
// 在关闭弹窗后更新数量
|
|
81849
|
+
if (this.layoutType == 'simplicityTop') {
|
|
81850
|
+
this.$refs.main.getNums();
|
|
81778
81851
|
}
|
|
81852
|
+
this.$nextTick(function () {
|
|
81853
|
+
_this7.dialogs.splice(index, 1);
|
|
81854
|
+
});
|
|
81855
|
+
},
|
|
81856
|
+
|
|
81857
|
+
/**
|
|
81858
|
+
* @desc:主应用向子应用发送事件
|
|
81859
|
+
* @author huangbo
|
|
81860
|
+
* @date 2024年9月7日
|
|
81861
|
+
**/
|
|
81862
|
+
busEmit: function busEmit(event, args) {
|
|
81863
|
+
console.log('busEmit', event, args);
|
|
81864
|
+
|
|
81865
|
+
external_wujie_vue2_default.a.bus.$emit(event, args);
|
|
81866
|
+
var iframes = document.getElementsByTagName('iframe');
|
|
81867
|
+
for (var i = 0; i < iframes.length; i++) {
|
|
81868
|
+
var src = iframes[i] ? iframes[i].src : null;
|
|
81869
|
+
var origin = utils_util.win.location.origin;
|
|
81870
|
+
if (src && utils_util.startWith(src, 'http') && src.indexOf(origin) === -1) {
|
|
81871
|
+
iframes[i] && iframes[i].contentWindow.postMessage({ method: event, query: args }, '*');
|
|
81872
|
+
}
|
|
81873
|
+
}
|
|
81874
|
+
var bus = this.bus || this.$root.Bus;
|
|
81875
|
+
bus && bus.$emit(event, args);
|
|
81876
|
+
this.$emit('busEvent', event, args);
|
|
81779
81877
|
}
|
|
81780
|
-
|
|
81781
|
-
|
|
81782
|
-
|
|
81783
|
-
|
|
81784
|
-
}, _name$inheritAttrs$pr.beforeDestroy = function beforeDestroy() {
|
|
81785
|
-
window.removeEventListener('message', this.handleMessage);
|
|
81786
|
-
var bus = this.bus || this.$root.Bus;
|
|
81787
|
-
if (bus) {
|
|
81788
|
-
bus.$off('reLogin');
|
|
81789
|
-
bus.$off('refresh');
|
|
81790
|
-
bus.$off('windowOpen');
|
|
81791
|
-
bus.$off('windowClose');
|
|
81792
|
-
bus.$off('jumpMenu');
|
|
81793
|
-
bus.$off('emit');
|
|
81878
|
+
},
|
|
81879
|
+
|
|
81880
|
+
beforeDestroy: function beforeDestroy() {
|
|
81881
|
+
this.unbindEvent();
|
|
81794
81882
|
}
|
|
81795
|
-
|
|
81796
|
-
external_wujie_vue2_default.a.bus.$off('refresh');
|
|
81797
|
-
external_wujie_vue2_default.a.bus.$off('jumpMenu');
|
|
81798
|
-
external_wujie_vue2_default.a.bus.$off('emit');
|
|
81799
|
-
}, _name$inheritAttrs$pr);
|
|
81883
|
+
});
|
|
81800
81884
|
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=script&lang=js&
|
|
81801
81885
|
/* harmony default export */ var packages_main_src_mainvue_type_script_lang_js_ = (main_src_mainvue_type_script_lang_js_);
|
|
81802
81886
|
// CONCATENATED MODULE: ./packages/main/src/main.vue
|
|
@@ -81809,8 +81893,8 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
|
|
|
81809
81893
|
|
|
81810
81894
|
var main_src_main_component = normalizeComponent(
|
|
81811
81895
|
packages_main_src_mainvue_type_script_lang_js_,
|
|
81812
|
-
|
|
81813
|
-
|
|
81896
|
+
mainvue_type_template_id_0fbde292_render,
|
|
81897
|
+
mainvue_type_template_id_0fbde292_staticRenderFns,
|
|
81814
81898
|
false,
|
|
81815
81899
|
null,
|
|
81816
81900
|
null,
|
|
@@ -102510,7 +102594,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
102510
102594
|
}
|
|
102511
102595
|
|
|
102512
102596
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
102513
|
-
version: '0.7.
|
|
102597
|
+
version: '0.7.72',
|
|
102514
102598
|
install: install,
|
|
102515
102599
|
Button: packages_button,
|
|
102516
102600
|
ButtonGroup: button_group,
|