eoss-ui 0.7.26 → 0.7.28
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 +0 -6
- package/lib/button.js +0 -6
- package/lib/calogin.js +233 -239
- package/lib/checkbox-group.js +0 -6
- package/lib/data-table-form.js +0 -6
- package/lib/data-table.js +12 -14
- package/lib/date-picker.js +0 -6
- package/lib/dialog.js +0 -6
- package/lib/eoss-ui.common.js +1244 -1149
- package/lib/flow-group.js +3 -9
- package/lib/flow-list.js +81 -87
- package/lib/flow.js +301 -304
- package/lib/form.js +0 -6
- package/lib/handle-user.js +0 -6
- package/lib/handler.js +0 -6
- package/lib/icon.js +0 -6
- package/lib/index.js +1 -1
- package/lib/input-number.js +0 -6
- package/lib/input.js +0 -6
- package/lib/login.js +219 -114
- package/lib/main.js +370 -393
- package/lib/nav.js +0 -6
- package/lib/page.js +0 -6
- package/lib/pagination.js +0 -6
- package/lib/player.js +0 -6
- package/lib/qr-code.js +13 -19
- package/lib/radio-group.js +0 -6
- package/lib/retrial-auth.js +0 -6
- package/lib/select-ganged.js +0 -6
- package/lib/select.js +0 -6
- package/lib/selector-panel.js +0 -6
- package/lib/selector.js +0 -6
- package/lib/sizer.js +0 -6
- package/lib/steps.js +0 -6
- package/lib/switch.js +0 -6
- package/lib/table-form.js +0 -6
- package/lib/tabs.js +0 -6
- package/lib/tips.js +0 -6
- package/lib/tree-group.js +0 -6
- package/lib/tree.js +0 -6
- package/lib/upload.js +0 -6
- package/lib/utils/util.js +0 -6
- package/lib/wujie.js +0 -6
- package/lib/wxlogin.js +0 -6
- package/package.json +160 -160
- package/packages/.DS_Store +0 -0
- package/packages/button/index.js +5 -5
- package/packages/button/src/main.vue +418 -418
- package/packages/button-group/index.js +5 -5
- package/packages/button-group/src/main.vue +346 -346
- package/packages/calendar/index.js +5 -5
- package/packages/calogin/.DS_Store +0 -0
- package/packages/calogin/index.js +5 -5
- package/packages/calogin/src/main.vue +412 -412
- package/packages/calogin/src/plugin.js +915 -915
- package/packages/card/index.js +5 -5
- package/packages/card/src/main.vue +156 -156
- package/packages/cascader/index.js +5 -5
- package/packages/cascader/src/main.vue +168 -168
- package/packages/checkbox-group/index.js +5 -5
- package/packages/checkbox-group/src/main.vue +333 -333
- package/packages/clients/index.js +5 -5
- package/packages/clients/src/main.vue +151 -151
- package/packages/data-table/index.js +5 -5
- package/packages/data-table/src/children.vue +39 -39
- package/packages/data-table/src/column.vue +992 -988
- package/packages/data-table/src/main.vue +1831 -1831
- package/packages/data-table/src/sizer.vue +195 -195
- package/packages/data-table-form/index.js +5 -5
- package/packages/data-table-form/src/checkbox.vue +101 -101
- package/packages/data-table-form/src/colgroup.vue +17 -17
- package/packages/data-table-form/src/main.vue +181 -181
- package/packages/data-table-form/src/radio.vue +65 -65
- package/packages/data-table-form/src/table.vue +233 -233
- package/packages/data-table-form/src/tbody.vue +336 -336
- package/packages/data-table-form/src/thead.vue +68 -68
- package/packages/date-picker/.DS_Store +0 -0
- package/packages/date-picker/index.js +5 -5
- package/packages/date-picker/src/.DS_Store +0 -0
- package/packages/date-picker/src/main.vue +236 -236
- package/packages/dialog/index.js +5 -5
- package/packages/enable-drag/index.js +5 -5
- package/packages/enterprise/index.js +5 -5
- package/packages/enterprise/src/main.vue +66 -66
- package/packages/error-page/index.js +5 -5
- package/packages/error-page/src/main.vue +44 -44
- package/packages/flow/.DS_Store +0 -0
- package/packages/flow/index.js +5 -5
- package/packages/flow/src/.DS_Store +0 -0
- package/packages/flow/src/component/Circulate.vue +413 -413
- package/packages/flow/src/component/CommonOpinions.vue +373 -373
- package/packages/flow/src/component/CustomPreset.vue +322 -322
- package/packages/flow/src/component/FileList.vue +97 -97
- package/packages/flow/src/component/FreeCirculation.vue +240 -240
- package/packages/flow/src/component/Preset.vue +255 -255
- package/packages/flow/src/component/SendMsg.vue +242 -242
- package/packages/flow/src/component/TimeLimit.vue +190 -190
- package/packages/flow/src/component/taskUnionExamine.vue +755 -755
- package/packages/flow/src/form.vue +121 -121
- package/packages/flow/src/freeStartFlow.vue +2847 -2847
- package/packages/flow/src/main.vue +3853 -3854
- package/packages/flow/src/processForm.vue +1363 -1363
- package/packages/flow/src/processReject.vue +309 -308
- package/packages/flow/src/reset.vue +941 -941
- package/packages/flow/src/startTaskRead.vue +691 -691
- package/packages/flow/src/supervise.vue +159 -159
- package/packages/flow/src/table.vue +58 -58
- package/packages/flow-group/index.js +5 -5
- package/packages/flow-group/src/main.vue +717 -717
- package/packages/flow-list/.DS_Store +0 -0
- package/packages/flow-list/index.js +5 -5
- package/packages/flow-list/src/main.vue +1787 -1787
- package/packages/form/.DS_Store +0 -0
- package/packages/form/index.js +5 -5
- package/packages/form/src/main.vue +3901 -3901
- package/packages/form/src/table.vue +1512 -1512
- package/packages/handle-user/index.js +5 -5
- package/packages/handle-user/src/main.vue +137 -137
- package/packages/handler/index.js +5 -5
- package/packages/handler/src/main.vue +496 -496
- package/packages/icon/index.js +5 -5
- package/packages/icon/src/main.vue +104 -104
- package/packages/icons/index.js +5 -5
- package/packages/icons/src/main.vue +81 -81
- package/packages/input/index.js +5 -5
- package/packages/input/src/main.vue +356 -356
- package/packages/input-number/index.js +5 -5
- package/packages/input-number/src/main.vue +106 -106
- package/packages/label/index.js +5 -5
- package/packages/label/src/main.vue +457 -457
- package/packages/layout/index.js +5 -5
- package/packages/layout/src/item.vue +152 -152
- package/packages/layout/src/main.vue +31 -31
- package/packages/login/.DS_Store +0 -0
- package/packages/login/index.js +5 -5
- package/packages/login/src/main.vue +2068 -2020
- package/packages/login/src/resetPassword.vue +557 -557
- package/packages/main/.DS_Store +0 -0
- package/packages/main/index.js +5 -5
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/message.vue +249 -249
- package/packages/main/src/default/notice.vue +157 -157
- package/packages/main/src/default/userinfo.vue +502 -502
- package/packages/main/src/public/online.vue +89 -89
- package/packages/main/src/public/search.vue +464 -464
- package/packages/main/src/public/settings.vue +221 -221
- package/packages/main/src/simplicity/apps.vue +388 -388
- package/packages/main/src/simplicity/avatar.vue +82 -82
- package/packages/main/src/simplicity/handler.vue +144 -263
- package/packages/main/src/simplicity/index.vue +2211 -2135
- package/packages/main/src/simplicity/lists.vue +84 -84
- package/packages/main/src/simplicity/menu-list.vue +135 -135
- package/packages/main/src/simplicity/message.vue +259 -259
- package/packages/main/src/simplicity/notice.vue +190 -190
- package/packages/main/src/simplicity/router-page.vue +45 -45
- package/packages/main/src/simplicity/sub-menu.vue +264 -264
- package/packages/main/src/simplicity/user.vue +259 -259
- package/packages/main/src/simplicity/userinfo.vue +398 -398
- package/packages/menu/.DS_Store +0 -0
- package/packages/menu/index.js +5 -5
- package/packages/menu/src/main.vue +596 -596
- package/packages/nav/index.js +5 -5
- package/packages/nav/src/main.vue +351 -351
- package/packages/notify/index.js +5 -5
- package/packages/notify/src/main.vue +538 -538
- package/packages/page/index.js +5 -5
- package/packages/page/src/main.vue +167 -167
- package/packages/pagination/index.js +5 -5
- package/packages/pagination/src/main.vue +96 -96
- package/packages/player/index.js +5 -5
- package/packages/player/src/main.vue +194 -194
- package/packages/qr-code/index.js +5 -5
- package/packages/qr-code/src/main.vue +170 -170
- package/packages/radio-group/index.js +6 -6
- package/packages/radio-group/src/main.vue +319 -319
- package/packages/retrial-auth/index.js +5 -5
- package/packages/retrial-auth/src/main.vue +280 -280
- package/packages/select/.DS_Store +0 -0
- package/packages/select/index.js +5 -5
- package/packages/select/src/main.vue +782 -782
- package/packages/select-ganged/index.js +5 -5
- package/packages/select-ganged/src/main.vue +724 -724
- package/packages/selector/.DS_Store +0 -0
- package/packages/selector/index.js +5 -5
- package/packages/selector/src/main.vue +761 -761
- package/packages/selector-panel/.DS_Store +0 -0
- package/packages/selector-panel/index.js +5 -5
- package/packages/selector-panel/src/main.vue +1027 -1027
- package/packages/selector-panel/src/selection.vue +170 -170
- package/packages/selector-panel/src/tree.vue +129 -129
- package/packages/sizer/index.js +5 -5
- package/packages/sizer/src/main.vue +254 -254
- package/packages/steps/index.js +5 -5
- package/packages/steps/src/main.vue +181 -181
- package/packages/switch/index.js +5 -5
- package/packages/switch/src/main.vue +170 -170
- package/packages/table-form/index.js +5 -5
- package/packages/tabs/index.js +5 -5
- package/packages/tabs/src/main.vue +788 -788
- package/packages/tabs-panel/index.js +5 -5
- package/packages/tabs-panel/src/main.vue +29 -29
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/base.scss +261 -261
- package/packages/theme-chalk/src/button-group.scss +176 -176
- package/packages/theme-chalk/src/button.scss +24 -24
- package/packages/theme-chalk/src/calendar.scss +113 -113
- package/packages/theme-chalk/src/card.scss +99 -99
- package/packages/theme-chalk/src/checkbox-group.scss +8 -8
- package/packages/theme-chalk/src/clients.scss +87 -87
- package/packages/theme-chalk/src/data-table-form.scss +67 -67
- package/packages/theme-chalk/src/data-table.scss +293 -293
- package/packages/theme-chalk/src/date-picker.scss +7 -7
- package/packages/theme-chalk/src/dialog.scss +77 -77
- package/packages/theme-chalk/src/enable-drag.scss +181 -181
- package/packages/theme-chalk/src/enterprise.scss +5 -5
- package/packages/theme-chalk/src/error-page.scss +18 -18
- package/packages/theme-chalk/src/flow-group.scss +110 -110
- package/packages/theme-chalk/src/flow-list.scss +39 -39
- package/packages/theme-chalk/src/flow.scss +351 -351
- package/packages/theme-chalk/src/form.scss +501 -501
- package/packages/theme-chalk/src/handle-user.scss +40 -40
- package/packages/theme-chalk/src/handler.scss +148 -148
- package/packages/theme-chalk/src/icon.scss +1817 -1817
- package/packages/theme-chalk/src/icons.scss +99 -99
- package/packages/theme-chalk/src/input.scss +9 -9
- package/packages/theme-chalk/src/label.scss +24 -24
- package/packages/theme-chalk/src/layout.scss +46 -46
- package/packages/theme-chalk/src/login.scss +987 -987
- package/packages/theme-chalk/src/main.scss +663 -663
- package/packages/theme-chalk/src/menu.scss +224 -224
- package/packages/theme-chalk/src/mixins/color.scss +117 -117
- package/packages/theme-chalk/src/nav.scss +111 -111
- package/packages/theme-chalk/src/page.scss +3 -3
- package/packages/theme-chalk/src/pagination.scss +29 -29
- package/packages/theme-chalk/src/player.scss +9 -9
- package/packages/theme-chalk/src/qr-code.scss +17 -17
- package/packages/theme-chalk/src/radio-group.scss +9 -9
- package/packages/theme-chalk/src/retrial-auth.scss +38 -38
- package/packages/theme-chalk/src/select-ganged.scss +8 -8
- package/packages/theme-chalk/src/select.scss +8 -8
- package/packages/theme-chalk/src/selector-panel.scss +204 -204
- package/packages/theme-chalk/src/selector.scss +92 -92
- package/packages/theme-chalk/src/simplicity.scss +1370 -1370
- package/packages/theme-chalk/src/sizer.scss +36 -36
- package/packages/theme-chalk/src/steps.scss +88 -88
- package/packages/theme-chalk/src/switch.scss +3 -3
- package/packages/theme-chalk/src/table-form.scss +1 -1
- package/packages/theme-chalk/src/tabs.scss +87 -87
- package/packages/theme-chalk/src/tips.scss +7 -7
- package/packages/theme-chalk/src/toolbar.scss +179 -179
- package/packages/theme-chalk/src/tree-group.scss +72 -72
- package/packages/theme-chalk/src/tree.scss +165 -165
- package/packages/theme-chalk/src/upload.scss +172 -172
- package/packages/theme-chalk/src/wxlogin.scss +3 -3
- package/packages/tips/index.js +5 -5
- package/packages/tips/src/main.vue +141 -141
- package/packages/toolbar/index.js +5 -5
- package/packages/toolbar/src/main.vue +430 -430
- package/packages/tree/index.js +5 -5
- package/packages/tree-group/index.js +5 -5
- package/packages/upload/.DS_Store +0 -0
- package/packages/upload/index.js +5 -5
- package/packages/upload/src/main.vue +1343 -1343
- package/packages/upload/src/picture.js +15 -15
- package/packages/wujie/index.js +5 -5
- package/packages/wujie/src/main.vue +145 -145
- package/packages/wxlogin/index.js +5 -5
- package/packages/wxlogin/src/main.vue +128 -128
- package/src/.DS_Store +0 -0
- package/src/config/api.js +315 -315
- package/src/config/image.js +2 -2
- package/src/index.js +163 -163
- package/src/utils/.DS_Store +0 -0
- package/src/utils/bus.js +3 -3
- package/src/utils/date-util.js +312 -312
- package/src/utils/http.js +50 -50
- package/src/utils/rules.js +18 -18
- package/src/utils/store.js +21 -21
- package/src/utils/util.js +0 -6
- package/src/utils/webSocket.js +107 -107
package/lib/main.js
CHANGED
|
@@ -544,12 +544,6 @@ var ajaxStream = function ajaxStream(_ref2) {
|
|
|
544
544
|
console.log('解析数据出错:', parseError);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
// }
|
|
548
|
-
// else {
|
|
549
|
-
// console.log('未处理的数据:', line);
|
|
550
|
-
// // 保存未处理完的部分数据
|
|
551
|
-
// remainingData += line.replace('data:', '\ndata:');
|
|
552
|
-
// }
|
|
553
547
|
});
|
|
554
548
|
info.primeval = primeval;
|
|
555
549
|
info.chunk = chunks;
|
|
@@ -4602,8 +4596,8 @@ render._withStripped = true
|
|
|
4602
4596
|
// EXTERNAL MODULE: ./src/config/image.js
|
|
4603
4597
|
var config_image = __webpack_require__(20);
|
|
4604
4598
|
|
|
4605
|
-
// 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=
|
|
4606
|
-
var
|
|
4599
|
+
// 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=213583d1&scoped=true&
|
|
4600
|
+
var simplicityvue_type_template_id_213583d1_scoped_true_render = function () {
|
|
4607
4601
|
var _vm = this
|
|
4608
4602
|
var _h = _vm.$createElement
|
|
4609
4603
|
var _c = _vm._self._c || _h
|
|
@@ -5098,11 +5092,9 @@ var simplicityvue_type_template_id_3c4ceaef_scoped_true_render = function () {
|
|
|
5098
5092
|
{
|
|
5099
5093
|
attrs: {
|
|
5100
5094
|
slot: "append",
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
online: _vm.userNums,
|
|
5105
|
-
"notice-num": _vm.notice,
|
|
5095
|
+
"show-title-type": _vm.showTitleType,
|
|
5096
|
+
data: _vm._handleDatas,
|
|
5097
|
+
nums: _vm.handleNums,
|
|
5106
5098
|
},
|
|
5107
5099
|
on: { click: _vm.handleClick },
|
|
5108
5100
|
slot: "append",
|
|
@@ -5204,13 +5196,13 @@ var simplicityvue_type_template_id_3c4ceaef_scoped_true_render = function () {
|
|
|
5204
5196
|
? _c("message", {
|
|
5205
5197
|
ref: "message",
|
|
5206
5198
|
attrs: {
|
|
5207
|
-
total: _vm.notice,
|
|
5199
|
+
total: _vm.handleNums.notice,
|
|
5208
5200
|
visible: _vm.showMsg,
|
|
5209
5201
|
winopen: _vm.winopen,
|
|
5210
5202
|
},
|
|
5211
5203
|
on: {
|
|
5212
5204
|
"update:total": function ($event) {
|
|
5213
|
-
_vm.notice
|
|
5205
|
+
_vm.$set(_vm.handleNums, "notice", $event)
|
|
5214
5206
|
},
|
|
5215
5207
|
"update:visible": function ($event) {
|
|
5216
5208
|
_vm.showMsg = $event
|
|
@@ -5306,11 +5298,11 @@ var simplicityvue_type_template_id_3c4ceaef_scoped_true_render = function () {
|
|
|
5306
5298
|
),
|
|
5307
5299
|
])
|
|
5308
5300
|
}
|
|
5309
|
-
var
|
|
5310
|
-
|
|
5301
|
+
var simplicityvue_type_template_id_213583d1_scoped_true_staticRenderFns = []
|
|
5302
|
+
simplicityvue_type_template_id_213583d1_scoped_true_render._withStripped = true
|
|
5311
5303
|
|
|
5312
5304
|
|
|
5313
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
5305
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=213583d1&scoped=true&
|
|
5314
5306
|
|
|
5315
5307
|
// 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&
|
|
5316
5308
|
var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
|
|
@@ -5470,8 +5462,8 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
5470
5462
|
)
|
|
5471
5463
|
|
|
5472
5464
|
/* harmony default export */ var avatar = (component.exports);
|
|
5473
|
-
// 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=
|
|
5474
|
-
var
|
|
5465
|
+
// 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=4a14597c&scoped=true&
|
|
5466
|
+
var handlervue_type_template_id_4a14597c_scoped_true_render = function () {
|
|
5475
5467
|
var _vm = this
|
|
5476
5468
|
var _h = _vm.$createElement
|
|
5477
5469
|
var _c = _vm._self._c || _h
|
|
@@ -5479,7 +5471,7 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
|
|
|
5479
5471
|
"div",
|
|
5480
5472
|
{ staticClass: "es-simplicity-handler" },
|
|
5481
5473
|
[
|
|
5482
|
-
_vm._l(_vm.
|
|
5474
|
+
_vm._l(_vm.data, function (item) {
|
|
5483
5475
|
return [
|
|
5484
5476
|
item.type == "contact"
|
|
5485
5477
|
? _c(
|
|
@@ -5529,12 +5521,17 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
|
|
|
5529
5521
|
},
|
|
5530
5522
|
},
|
|
5531
5523
|
},
|
|
5532
|
-
[
|
|
5524
|
+
[
|
|
5525
|
+
_vm._v(
|
|
5526
|
+
"\n " + _vm._s(_vm.nums[item.type]) + "\n "
|
|
5527
|
+
),
|
|
5528
|
+
]
|
|
5533
5529
|
),
|
|
5534
5530
|
_vm._v("\n 人在线\n "),
|
|
5535
5531
|
]
|
|
5536
5532
|
)
|
|
5537
|
-
:
|
|
5533
|
+
: _vm.showTitleType === "tooltip"
|
|
5534
|
+
? _c(
|
|
5538
5535
|
"el-tooltip",
|
|
5539
5536
|
{
|
|
5540
5537
|
key: item.type,
|
|
@@ -5545,34 +5542,50 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
|
|
|
5545
5542
|
},
|
|
5546
5543
|
},
|
|
5547
5544
|
[
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5545
|
+
_c(
|
|
5546
|
+
"el-badge",
|
|
5547
|
+
{
|
|
5548
|
+
staticClass: "es-simplicity-handler-item",
|
|
5549
|
+
attrs: {
|
|
5550
|
+
hidden: !_vm.nums[item.type] && !item.num,
|
|
5551
|
+
value: _vm.nums[item.type] || item.num || 0,
|
|
5552
|
+
max: 99,
|
|
5553
|
+
},
|
|
5554
|
+
},
|
|
5555
|
+
[
|
|
5556
|
+
_c("es-icon", {
|
|
5557
|
+
staticClass: "es-simplicity-handler-icon",
|
|
5558
|
+
attrs: { contents: item.icon },
|
|
5559
|
+
on: {
|
|
5560
|
+
click: function ($event) {
|
|
5561
|
+
$event.stopPropagation()
|
|
5562
|
+
_vm.handleClick(item)
|
|
5557
5563
|
},
|
|
5558
5564
|
},
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5565
|
+
}),
|
|
5566
|
+
],
|
|
5567
|
+
1
|
|
5568
|
+
),
|
|
5569
|
+
],
|
|
5570
|
+
1
|
|
5571
|
+
)
|
|
5572
|
+
: _c(
|
|
5573
|
+
"div",
|
|
5574
|
+
{ key: item.type, staticClass: "es-simplicity-handler-item" },
|
|
5575
|
+
[
|
|
5576
|
+
_c(
|
|
5577
|
+
"el-badge",
|
|
5578
|
+
{
|
|
5579
|
+
staticClass: "es-simplicity-handler-item",
|
|
5580
|
+
attrs: {
|
|
5581
|
+
hidden: !_vm.nums[item.type] && !item.num,
|
|
5582
|
+
value: _vm.nums[item.type] || item.num || 0,
|
|
5583
|
+
max: 99,
|
|
5584
|
+
},
|
|
5585
|
+
},
|
|
5586
|
+
[
|
|
5587
|
+
_c("es-icon", {
|
|
5588
|
+
staticClass: "es-simplicity-handler-icon",
|
|
5576
5589
|
attrs: { contents: item.icon },
|
|
5577
5590
|
on: {
|
|
5578
5591
|
click: function ($event) {
|
|
@@ -5581,6 +5594,12 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
|
|
|
5581
5594
|
},
|
|
5582
5595
|
},
|
|
5583
5596
|
}),
|
|
5597
|
+
],
|
|
5598
|
+
1
|
|
5599
|
+
),
|
|
5600
|
+
_vm.showTitleType === "text"
|
|
5601
|
+
? _c("span", {}, [_vm._v(_vm._s(item.title))])
|
|
5602
|
+
: _vm._e(),
|
|
5584
5603
|
],
|
|
5585
5604
|
1
|
|
5586
5605
|
),
|
|
@@ -5590,17 +5609,21 @@ var handlervue_type_template_id_0e3b21b5_scoped_true_render = function () {
|
|
|
5590
5609
|
2
|
|
5591
5610
|
)
|
|
5592
5611
|
}
|
|
5593
|
-
var
|
|
5594
|
-
|
|
5612
|
+
var handlervue_type_template_id_4a14597c_scoped_true_staticRenderFns = []
|
|
5613
|
+
handlervue_type_template_id_4a14597c_scoped_true_render._withStripped = true
|
|
5595
5614
|
|
|
5596
5615
|
|
|
5597
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=
|
|
5616
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/handler.vue?vue&type=template&id=4a14597c&scoped=true&
|
|
5598
5617
|
|
|
5599
5618
|
// 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&
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5619
|
+
//
|
|
5620
|
+
//
|
|
5621
|
+
//
|
|
5622
|
+
//
|
|
5623
|
+
//
|
|
5624
|
+
//
|
|
5625
|
+
//
|
|
5626
|
+
//
|
|
5604
5627
|
//
|
|
5605
5628
|
//
|
|
5606
5629
|
//
|
|
@@ -5678,131 +5701,24 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5678
5701
|
name: 'Handler',
|
|
5679
5702
|
components: {},
|
|
5680
5703
|
props: {
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
type: [Boolean, Object],
|
|
5684
|
-
default: function _default() {
|
|
5685
|
-
return { type: 'dateTime' };
|
|
5686
|
-
},
|
|
5687
|
-
|
|
5688
|
-
validator: function validator(val) {
|
|
5689
|
-
return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
|
|
5690
|
-
}
|
|
5691
|
-
},
|
|
5692
|
-
onlineUser: {
|
|
5693
|
-
type: [Boolean, Object],
|
|
5694
|
-
default: function _default() {
|
|
5695
|
-
return { type: 'onlineUser' };
|
|
5696
|
-
},
|
|
5697
|
-
|
|
5698
|
-
validator: function validator(val) {
|
|
5699
|
-
return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
|
|
5700
|
-
}
|
|
5701
|
-
},
|
|
5702
|
-
search: {
|
|
5703
|
-
type: [Boolean, Object],
|
|
5704
|
-
default: function _default() {
|
|
5705
|
-
return {
|
|
5706
|
-
type: 'search',
|
|
5707
|
-
icon: 'es-icon-magnifier',
|
|
5708
|
-
title: '搜索'
|
|
5709
|
-
};
|
|
5710
|
-
},
|
|
5711
|
-
|
|
5712
|
-
validator: function validator(val) {
|
|
5713
|
-
return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
|
|
5714
|
-
}
|
|
5715
|
-
},
|
|
5716
|
-
im: {
|
|
5717
|
-
type: [Boolean, Object],
|
|
5718
|
-
default: function _default() {
|
|
5719
|
-
return {
|
|
5720
|
-
type: 'im',
|
|
5721
|
-
icon: 'es-icon-liaotian',
|
|
5722
|
-
title: 'IM'
|
|
5723
|
-
};
|
|
5724
|
-
},
|
|
5725
|
-
|
|
5726
|
-
validator: function validator(val) {
|
|
5727
|
-
return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
|
|
5728
|
-
}
|
|
5729
|
-
},
|
|
5730
|
-
index: {
|
|
5731
|
-
type: [Boolean, Object],
|
|
5732
|
-
default: function _default() {
|
|
5733
|
-
return {
|
|
5734
|
-
type: 'index',
|
|
5735
|
-
icon: 'es-icon-home',
|
|
5736
|
-
title: '门户'
|
|
5737
|
-
};
|
|
5738
|
-
},
|
|
5739
|
-
|
|
5740
|
-
validator: function validator(val) {
|
|
5741
|
-
return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
|
|
5742
|
-
}
|
|
5743
|
-
},
|
|
5744
|
-
home: {
|
|
5745
|
-
type: [Boolean, Object],
|
|
5746
|
-
default: function _default() {
|
|
5747
|
-
return {
|
|
5748
|
-
type: 'home',
|
|
5749
|
-
icon: 'es-icon-zuomian',
|
|
5750
|
-
title: '个人工作台'
|
|
5751
|
-
};
|
|
5752
|
-
}
|
|
5753
|
-
},
|
|
5754
|
-
notice: {
|
|
5755
|
-
type: [Boolean, Object],
|
|
5756
|
-
default: function _default() {
|
|
5757
|
-
return {
|
|
5758
|
-
type: 'notice',
|
|
5759
|
-
icon: 'es-icon-tongzhi',
|
|
5760
|
-
title: '通知消息'
|
|
5761
|
-
};
|
|
5762
|
-
}
|
|
5763
|
-
},
|
|
5764
|
-
quit: {
|
|
5765
|
-
type: [Boolean, Object],
|
|
5766
|
-
default: function _default() {
|
|
5767
|
-
return {
|
|
5768
|
-
type: 'quit',
|
|
5769
|
-
icon: 'es-icon-guanji',
|
|
5770
|
-
title: '退出'
|
|
5771
|
-
};
|
|
5772
|
-
}
|
|
5773
|
-
},
|
|
5774
|
-
set: {
|
|
5775
|
-
type: [Boolean, Object],
|
|
5704
|
+
data: {
|
|
5705
|
+
type: Array,
|
|
5776
5706
|
default: function _default() {
|
|
5777
|
-
return
|
|
5778
|
-
type: 'set',
|
|
5779
|
-
icon: 'es-icon-xitongguanli',
|
|
5780
|
-
title: '设置'
|
|
5781
|
-
};
|
|
5782
|
-
},
|
|
5783
|
-
|
|
5784
|
-
validator: function validator(val) {
|
|
5785
|
-
return val === false || (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object';
|
|
5707
|
+
return [];
|
|
5786
5708
|
}
|
|
5787
5709
|
},
|
|
5788
|
-
|
|
5789
|
-
hide: {
|
|
5710
|
+
nums: {
|
|
5790
5711
|
type: Object,
|
|
5791
5712
|
default: function _default() {
|
|
5792
5713
|
return {};
|
|
5793
5714
|
}
|
|
5794
5715
|
},
|
|
5795
|
-
|
|
5796
|
-
type:
|
|
5797
|
-
default:
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
default: 0
|
|
5802
|
-
},
|
|
5803
|
-
online: {
|
|
5804
|
-
type: Number,
|
|
5805
|
-
default: 1
|
|
5716
|
+
showTitleType: {
|
|
5717
|
+
type: String,
|
|
5718
|
+
default: 'tooltip',
|
|
5719
|
+
validator: function validator(val) {
|
|
5720
|
+
return val === 'text' || val === 'tooltip';
|
|
5721
|
+
}
|
|
5806
5722
|
}
|
|
5807
5723
|
},
|
|
5808
5724
|
data: function data() {
|
|
@@ -5814,16 +5730,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5814
5730
|
},
|
|
5815
5731
|
|
|
5816
5732
|
computed: {
|
|
5817
|
-
lists: function lists() {
|
|
5818
|
-
var hide = _extends({
|
|
5819
|
-
old: true,
|
|
5820
|
-
im: true
|
|
5821
|
-
}, this.hide);
|
|
5822
|
-
var data = this.data ? this.data : [this.contact ? _extends({}, this.contact, { type: 'contact' }) : {}, this.dateTime, this.onlineUser, this.search, this.im, this.index, this.home, this.notice, this.quit, this.set];
|
|
5823
|
-
return data.filter(function (item) {
|
|
5824
|
-
return item && Object.keys(item).length && !item.hide && !hide[item.type];
|
|
5825
|
-
});
|
|
5826
|
-
},
|
|
5827
5733
|
isClick: function isClick() {
|
|
5828
5734
|
var useCaseCodes = util["a" /* default */].getStorage('useCaseCodes');
|
|
5829
5735
|
return useCaseCodes && useCaseCodes.includes('sys_user_onlineList');
|
|
@@ -5867,11 +5773,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5867
5773
|
|
|
5868
5774
|
var handler_component = Object(componentNormalizer["a" /* default */])(
|
|
5869
5775
|
simplicity_handlervue_type_script_lang_js_,
|
|
5870
|
-
|
|
5871
|
-
|
|
5776
|
+
handlervue_type_template_id_4a14597c_scoped_true_render,
|
|
5777
|
+
handlervue_type_template_id_4a14597c_scoped_true_staticRenderFns,
|
|
5872
5778
|
false,
|
|
5873
5779
|
null,
|
|
5874
|
-
"
|
|
5780
|
+
"4a14597c",
|
|
5875
5781
|
null
|
|
5876
5782
|
|
|
5877
5783
|
)
|
|
@@ -7411,10 +7317,10 @@ var external_throttle_debounce_ = __webpack_require__(14);
|
|
|
7411
7317
|
this.$emit('click', res);
|
|
7412
7318
|
},
|
|
7413
7319
|
|
|
7414
|
-
/**
|
|
7415
|
-
* @desc:获取气泡提醒
|
|
7416
|
-
* @author huangbo
|
|
7417
|
-
* @date 2024年9月7日
|
|
7320
|
+
/**
|
|
7321
|
+
* @desc:获取气泡提醒
|
|
7322
|
+
* @author huangbo
|
|
7323
|
+
* @date 2024年9月7日
|
|
7418
7324
|
**/
|
|
7419
7325
|
getBadge: function getBadge(res) {
|
|
7420
7326
|
var num = res.tips || 0;
|
|
@@ -7629,7 +7535,7 @@ userinfovue_type_template_id_30ec6271_render._withStripped = true
|
|
|
7629
7535
|
// CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=30ec6271&
|
|
7630
7536
|
|
|
7631
7537
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/userinfo.vue?vue&type=script&lang=js&
|
|
7632
|
-
var
|
|
7538
|
+
var _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; };
|
|
7633
7539
|
|
|
7634
7540
|
var _props;
|
|
7635
7541
|
|
|
@@ -7714,7 +7620,7 @@ var _props;
|
|
|
7714
7620
|
|
|
7715
7621
|
computed: {
|
|
7716
7622
|
formRules: function formRules() {
|
|
7717
|
-
return
|
|
7623
|
+
return _extends({
|
|
7718
7624
|
idCard: [{
|
|
7719
7625
|
required: this.model.idCard !== null && this.model.idCard !== undefined && this.model.idCard !== '',
|
|
7720
7626
|
message: '请输入身份证号',
|
|
@@ -7860,13 +7766,13 @@ var _props;
|
|
|
7860
7766
|
oldpassword = _model.oldpassword,
|
|
7861
7767
|
password = _model.password;
|
|
7862
7768
|
|
|
7863
|
-
var data =
|
|
7769
|
+
var data = _extends({}, Object.fromEntries(Object.entries(this.model).filter(function (_ref) {
|
|
7864
7770
|
var key = _ref[0];
|
|
7865
7771
|
return _this2.formKey.includes(key);
|
|
7866
7772
|
})));
|
|
7867
7773
|
util["a" /* default */].ajax({
|
|
7868
7774
|
url: api["wc" /* updateUserInfo */],
|
|
7869
|
-
params:
|
|
7775
|
+
params: _extends({}, data, {
|
|
7870
7776
|
oldPassword: this.secret && initLogin && initLogin.secret && oldpassword ? util["a" /* default */].esmEncrypt({
|
|
7871
7777
|
data: oldpassword,
|
|
7872
7778
|
key: initLogin.secret
|
|
@@ -11123,8 +11029,6 @@ var simplicityvue_type_script_lang_js_extends = Object.assign || function (targe
|
|
|
11123
11029
|
//
|
|
11124
11030
|
//
|
|
11125
11031
|
//
|
|
11126
|
-
//
|
|
11127
|
-
//
|
|
11128
11032
|
|
|
11129
11033
|
|
|
11130
11034
|
|
|
@@ -11245,7 +11149,42 @@ var events = [function (tabs, index, that) {
|
|
|
11245
11149
|
//主题颜色选择颜色集合
|
|
11246
11150
|
themes: Array,
|
|
11247
11151
|
//操作栏配置
|
|
11248
|
-
handleData:
|
|
11152
|
+
handleData: {
|
|
11153
|
+
type: Array,
|
|
11154
|
+
default: function _default() {
|
|
11155
|
+
return [{
|
|
11156
|
+
type: 'contact'
|
|
11157
|
+
}, { type: 'dateTime' }, { type: 'onlineUser' }, {
|
|
11158
|
+
type: 'search',
|
|
11159
|
+
icon: 'es-icon-magnifier',
|
|
11160
|
+
title: '搜索'
|
|
11161
|
+
}, {
|
|
11162
|
+
type: 'im',
|
|
11163
|
+
icon: 'es-icon-liaotian',
|
|
11164
|
+
title: 'IM'
|
|
11165
|
+
}, {
|
|
11166
|
+
type: 'index',
|
|
11167
|
+
icon: 'es-icon-home',
|
|
11168
|
+
title: '门户'
|
|
11169
|
+
}, {
|
|
11170
|
+
type: 'home',
|
|
11171
|
+
icon: 'es-icon-zuomian',
|
|
11172
|
+
title: '首页'
|
|
11173
|
+
}, {
|
|
11174
|
+
type: 'notice',
|
|
11175
|
+
icon: 'es-icon-tongzhi',
|
|
11176
|
+
title: '消息'
|
|
11177
|
+
}, {
|
|
11178
|
+
type: 'quit',
|
|
11179
|
+
icon: 'es-icon-guanji',
|
|
11180
|
+
title: '退出'
|
|
11181
|
+
}, {
|
|
11182
|
+
type: 'set',
|
|
11183
|
+
icon: 'es-icon-xitongguanli',
|
|
11184
|
+
title: '设置'
|
|
11185
|
+
}];
|
|
11186
|
+
}
|
|
11187
|
+
},
|
|
11249
11188
|
//操作栏单项配置
|
|
11250
11189
|
handleConfig: Object,
|
|
11251
11190
|
//需要隐藏的头部功能
|
|
@@ -11324,7 +11263,15 @@ var events = [function (tabs, index, that) {
|
|
|
11324
11263
|
//切换旧版样式
|
|
11325
11264
|
oldVersion: Boolean,
|
|
11326
11265
|
//运维联系人
|
|
11327
|
-
contacts: Object
|
|
11266
|
+
contacts: Object,
|
|
11267
|
+
//展示系统操作按钮标题类型
|
|
11268
|
+
showHandlerTitleType: {
|
|
11269
|
+
type: String,
|
|
11270
|
+
default: 'tooltip',
|
|
11271
|
+
validator: function validator(val) {
|
|
11272
|
+
return ['tooltip', 'text'].includes(val);
|
|
11273
|
+
}
|
|
11274
|
+
}
|
|
11328
11275
|
},
|
|
11329
11276
|
data: function data() {
|
|
11330
11277
|
return {
|
|
@@ -11406,14 +11353,16 @@ var events = [function (tabs, index, that) {
|
|
|
11406
11353
|
doorIndex: '',
|
|
11407
11354
|
//弹窗
|
|
11408
11355
|
dialog: {},
|
|
11409
|
-
|
|
11410
|
-
|
|
11356
|
+
handleNums: {
|
|
11357
|
+
//消息数
|
|
11358
|
+
notice: 10,
|
|
11359
|
+
//在线人数
|
|
11360
|
+
online: 1
|
|
11361
|
+
},
|
|
11411
11362
|
//消息列表展示状态
|
|
11412
11363
|
showMsg: false,
|
|
11413
11364
|
//搜索
|
|
11414
11365
|
showSearch: false,
|
|
11415
|
-
//消息数
|
|
11416
|
-
notice: 0,
|
|
11417
11366
|
//即时消息
|
|
11418
11367
|
sysMsg: [],
|
|
11419
11368
|
//定时关闭及时消息对象
|
|
@@ -11432,16 +11381,35 @@ var events = [function (tabs, index, that) {
|
|
|
11432
11381
|
active: '',
|
|
11433
11382
|
//单位名称
|
|
11434
11383
|
simpleUserInfo: {},
|
|
11435
|
-
|
|
11384
|
+
handleDatas: this.handleData,
|
|
11385
|
+
//顶部右侧工具隐藏
|
|
11386
|
+
handleHides: '',
|
|
11387
|
+
// 显示旧设计
|
|
11436
11388
|
showOld: this.oldVersion,
|
|
11437
11389
|
//运维联系人
|
|
11438
11390
|
contact: this.contacts,
|
|
11439
11391
|
//单点退出地址
|
|
11440
|
-
singleLogout: null
|
|
11392
|
+
singleLogout: null,
|
|
11393
|
+
//展示系统操作按钮标题类型
|
|
11394
|
+
showTitleType: this.showHandlerTitleType
|
|
11441
11395
|
};
|
|
11442
11396
|
},
|
|
11443
11397
|
|
|
11444
11398
|
computed: {
|
|
11399
|
+
_handleDatas: function _handleDatas() {
|
|
11400
|
+
var _this = this;
|
|
11401
|
+
|
|
11402
|
+
return this.handleDatas.filter(function (item) {
|
|
11403
|
+
if (item.type === 'contact' && _this.contact) {
|
|
11404
|
+
item = simplicityvue_type_script_lang_js_extends({}, item, _this.contact);
|
|
11405
|
+
}
|
|
11406
|
+
if (item.type === 'contact' && !_this.contact) {
|
|
11407
|
+
return false;
|
|
11408
|
+
}
|
|
11409
|
+
return !item.hide && !_this.hide[item.type];
|
|
11410
|
+
});
|
|
11411
|
+
},
|
|
11412
|
+
|
|
11445
11413
|
//菜单接口
|
|
11446
11414
|
_menuUrl: function _menuUrl() {
|
|
11447
11415
|
if (this.menuUrl) {
|
|
@@ -11478,11 +11446,12 @@ var events = [function (tabs, index, that) {
|
|
|
11478
11446
|
|
|
11479
11447
|
//隐藏操作按键
|
|
11480
11448
|
hide: function hide() {
|
|
11481
|
-
var
|
|
11482
|
-
if (this.
|
|
11483
|
-
|
|
11449
|
+
var handleHides = {};
|
|
11450
|
+
if (this.handleHides) {
|
|
11451
|
+
handleHides = JSON.parse(this.handleHides.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g, '"$2":'));
|
|
11484
11452
|
}
|
|
11485
11453
|
var hides = {
|
|
11454
|
+
contact: this.contact ? false : true,
|
|
11486
11455
|
im: this.imConfig ? this.imUseCaseCode ? this.useCaseCodes.indexOf(this.imUseCaseCode) == -1 : false : true,
|
|
11487
11456
|
home: this.indexUrl ? false : true,
|
|
11488
11457
|
index: this.doorIndex ? false : true,
|
|
@@ -11495,7 +11464,7 @@ var events = [function (tabs, index, that) {
|
|
|
11495
11464
|
if (this.layout === 'topside' || this.layout === 'side') {
|
|
11496
11465
|
hides.user = true;
|
|
11497
11466
|
}
|
|
11498
|
-
return simplicityvue_type_script_lang_js_extends({}, hides, this.hides,
|
|
11467
|
+
return simplicityvue_type_script_lang_js_extends({}, hides, this.hides, handleHides);
|
|
11499
11468
|
}
|
|
11500
11469
|
},
|
|
11501
11470
|
watch: {
|
|
@@ -11518,10 +11487,10 @@ var events = [function (tabs, index, that) {
|
|
|
11518
11487
|
},
|
|
11519
11488
|
|
|
11520
11489
|
methods: {
|
|
11521
|
-
/**
|
|
11522
|
-
* @desc:匹配路由
|
|
11523
|
-
* @author huangbo
|
|
11524
|
-
* @date 2024年9月7日
|
|
11490
|
+
/**
|
|
11491
|
+
* @desc:匹配路由
|
|
11492
|
+
* @author huangbo
|
|
11493
|
+
* @date 2024年9月7日
|
|
11525
11494
|
**/
|
|
11526
11495
|
hasRouter: function hasRouter(res, url, code) {
|
|
11527
11496
|
if (!url) {
|
|
@@ -11565,10 +11534,10 @@ var events = [function (tabs, index, that) {
|
|
|
11565
11534
|
return false;
|
|
11566
11535
|
},
|
|
11567
11536
|
|
|
11568
|
-
/**
|
|
11569
|
-
* @desc:获取初始数据
|
|
11570
|
-
* @author huangbo
|
|
11571
|
-
* @date 2024年9月7日
|
|
11537
|
+
/**
|
|
11538
|
+
* @desc:获取初始数据
|
|
11539
|
+
* @author huangbo
|
|
11540
|
+
* @date 2024年9月7日
|
|
11572
11541
|
**/
|
|
11573
11542
|
init: function init(results, first) {
|
|
11574
11543
|
this.setConfig(results);
|
|
@@ -11577,10 +11546,10 @@ var events = [function (tabs, index, that) {
|
|
|
11577
11546
|
}
|
|
11578
11547
|
},
|
|
11579
11548
|
|
|
11580
|
-
/**
|
|
11581
|
-
* @desc:设置用户配置及信息
|
|
11582
|
-
* @author huangbo
|
|
11583
|
-
* @date 2024年9月7日
|
|
11549
|
+
/**
|
|
11550
|
+
* @desc:设置用户配置及信息
|
|
11551
|
+
* @author huangbo
|
|
11552
|
+
* @date 2024年9月7日
|
|
11584
11553
|
**/
|
|
11585
11554
|
setConfig: function setConfig(results) {
|
|
11586
11555
|
localStorage.setItem('mainConfig', JSON.stringify(results));
|
|
@@ -11691,8 +11660,12 @@ var events = [function (tabs, index, that) {
|
|
|
11691
11660
|
if (results[i].multipleVersion || results[i].oldVersion) {
|
|
11692
11661
|
this.showOld = results[i].oldVersion ? JSON.parse(results[i].oldVersion) : true;
|
|
11693
11662
|
}
|
|
11694
|
-
|
|
11695
|
-
|
|
11663
|
+
|
|
11664
|
+
if (results[i].handleDatas) {
|
|
11665
|
+
this.handleDatas = JSON.parse(results[i].handleDatas);
|
|
11666
|
+
}
|
|
11667
|
+
if (results[i].topRightToolHide || results[i].handleHides) {
|
|
11668
|
+
this.handleHides = JSON.parse(results[i].topRightToolHide || results[i].handleHides);
|
|
11696
11669
|
}
|
|
11697
11670
|
if (results[i].contact) {
|
|
11698
11671
|
var contact = JSON.parse(results[i].contact);
|
|
@@ -11701,6 +11674,10 @@ var events = [function (tabs, index, that) {
|
|
|
11701
11674
|
content: content
|
|
11702
11675
|
});
|
|
11703
11676
|
}
|
|
11677
|
+
//展示系统操作按钮标题类型
|
|
11678
|
+
if (results[i].showHandlerTitleType) {
|
|
11679
|
+
this.showTitleType = results[i].showHandlerTitleType;
|
|
11680
|
+
}
|
|
11704
11681
|
}
|
|
11705
11682
|
if (i === 'userModel' && results[i]) {
|
|
11706
11683
|
if (results[i].userHeadUrl) {
|
|
@@ -11720,21 +11697,21 @@ var events = [function (tabs, index, that) {
|
|
|
11720
11697
|
}
|
|
11721
11698
|
},
|
|
11722
11699
|
|
|
11723
|
-
/**
|
|
11724
|
-
* @desc:获取所有应用
|
|
11725
|
-
* @author huangbo
|
|
11726
|
-
* @date 2024年9月7日
|
|
11700
|
+
/**
|
|
11701
|
+
* @desc:获取所有应用
|
|
11702
|
+
* @author huangbo
|
|
11703
|
+
* @date 2024年9月7日
|
|
11727
11704
|
**/
|
|
11728
11705
|
getApplications: function getApplications() {
|
|
11729
|
-
var
|
|
11706
|
+
var _this2 = this;
|
|
11730
11707
|
|
|
11731
11708
|
var loading = util["a" /* default */].loading('', '加载中...');
|
|
11732
11709
|
util["a" /* default */].ajax({
|
|
11733
11710
|
url: this.appsUrl,
|
|
11734
11711
|
defaults: true
|
|
11735
11712
|
}).then(function (res) {
|
|
11736
|
-
if (
|
|
11737
|
-
|
|
11713
|
+
if (_this2.socket) {
|
|
11714
|
+
_this2.initWebSocket();
|
|
11738
11715
|
}
|
|
11739
11716
|
if (res.rCode === 0) {
|
|
11740
11717
|
if (res.results && Object.keys(res.results).length) {
|
|
@@ -11744,40 +11721,40 @@ var events = [function (tabs, index, that) {
|
|
|
11744
11721
|
app_system = _res$results.app_system,
|
|
11745
11722
|
app_user = _res$results.app_user;
|
|
11746
11723
|
|
|
11747
|
-
|
|
11724
|
+
_this2.userApps = app_user.filter(function (item) {
|
|
11748
11725
|
return item.permission !== false;
|
|
11749
11726
|
});
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11727
|
+
_this2.applications = all;
|
|
11728
|
+
_this2.business = app_special_business_system;
|
|
11729
|
+
_this2.systems = app_system;
|
|
11730
|
+
_this2.setTips(_this2.userApps);
|
|
11731
|
+
_this2.setTips(_this2.applications);
|
|
11732
|
+
_this2.setTips(_this2.business);
|
|
11733
|
+
_this2.setTips(_this2.systems);
|
|
11757
11734
|
} else {
|
|
11758
|
-
|
|
11735
|
+
_this2.$message.error('未分配应用菜单权限,请联系管理员!');
|
|
11759
11736
|
}
|
|
11760
|
-
|
|
11737
|
+
_this2.getMenus(loading);
|
|
11761
11738
|
} else {
|
|
11762
11739
|
loading.close();
|
|
11763
11740
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
11764
|
-
|
|
11741
|
+
_this2.$message.error(msg);
|
|
11765
11742
|
}
|
|
11766
11743
|
}).catch(function (err) {
|
|
11767
11744
|
loading.close();
|
|
11768
11745
|
if (err.message && err.message !== 'canceled') {
|
|
11769
|
-
|
|
11746
|
+
_this2.$message.error(err.message);
|
|
11770
11747
|
}
|
|
11771
11748
|
});
|
|
11772
11749
|
},
|
|
11773
11750
|
|
|
11774
|
-
/**
|
|
11775
|
-
* @desc:获取菜单列表
|
|
11776
|
-
* @author huangbo
|
|
11777
|
-
* @date 2024年9月7日
|
|
11751
|
+
/**
|
|
11752
|
+
* @desc:获取菜单列表
|
|
11753
|
+
* @author huangbo
|
|
11754
|
+
* @date 2024年9月7日
|
|
11778
11755
|
**/
|
|
11779
11756
|
getMenus: function getMenus(loading) {
|
|
11780
|
-
var
|
|
11757
|
+
var _this3 = this;
|
|
11781
11758
|
|
|
11782
11759
|
var menuData = store["a" /* default */].get('nav');
|
|
11783
11760
|
if (menuData && menuData.length) {
|
|
@@ -11791,26 +11768,26 @@ var events = [function (tabs, index, that) {
|
|
|
11791
11768
|
if (res.results && res.results.length) {
|
|
11792
11769
|
//this.$emit('update:menuData', res.results);
|
|
11793
11770
|
store["a" /* default */].set('nav', JSON.parse(JSON.stringify(res.results)));
|
|
11794
|
-
|
|
11771
|
+
_this3.renderMenus(JSON.parse(JSON.stringify(res.results)));
|
|
11795
11772
|
} else {
|
|
11796
|
-
|
|
11773
|
+
_this3.$message.error('未分配菜单权限,请联系管理员!');
|
|
11797
11774
|
}
|
|
11798
11775
|
} else {
|
|
11799
11776
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
11800
|
-
|
|
11777
|
+
_this3.$message.error(msg);
|
|
11801
11778
|
}
|
|
11802
11779
|
}).catch(function (err) {
|
|
11803
11780
|
loading.close();
|
|
11804
11781
|
if (err.message && err.message !== 'canceled') {
|
|
11805
|
-
|
|
11782
|
+
_this3.$message.error(err.message);
|
|
11806
11783
|
}
|
|
11807
11784
|
});
|
|
11808
11785
|
},
|
|
11809
11786
|
|
|
11810
|
-
/**
|
|
11811
|
-
* @desc:处理菜单列表
|
|
11812
|
-
* @author huangbo
|
|
11813
|
-
* @date 2024年9月7日
|
|
11787
|
+
/**
|
|
11788
|
+
* @desc:处理菜单列表
|
|
11789
|
+
* @author huangbo
|
|
11790
|
+
* @date 2024年9月7日
|
|
11814
11791
|
**/
|
|
11815
11792
|
renderMenus: function renderMenus(res) {
|
|
11816
11793
|
this.menus = res;
|
|
@@ -11906,10 +11883,10 @@ var events = [function (tabs, index, that) {
|
|
|
11906
11883
|
}
|
|
11907
11884
|
},
|
|
11908
11885
|
|
|
11909
|
-
/**
|
|
11910
|
-
* @desc:设置页面加载类型
|
|
11911
|
-
* @author huangbo
|
|
11912
|
-
* @date 2024年9月7日
|
|
11886
|
+
/**
|
|
11887
|
+
* @desc:设置页面加载类型
|
|
11888
|
+
* @author huangbo
|
|
11889
|
+
* @date 2024年9月7日
|
|
11913
11890
|
**/
|
|
11914
11891
|
setIframeType: function setIframeType(res) {
|
|
11915
11892
|
var url = res.url;
|
|
@@ -11965,10 +11942,10 @@ var events = [function (tabs, index, that) {
|
|
|
11965
11942
|
return res;
|
|
11966
11943
|
},
|
|
11967
11944
|
|
|
11968
|
-
/**
|
|
11969
|
-
* @desc:获取菜单
|
|
11970
|
-
* @author huangbo
|
|
11971
|
-
* @date 2024年9月7日
|
|
11945
|
+
/**
|
|
11946
|
+
* @desc:获取菜单
|
|
11947
|
+
* @author huangbo
|
|
11948
|
+
* @date 2024年9月7日
|
|
11972
11949
|
**/
|
|
11973
11950
|
getMenu: function getMenu(menus, res, key) {
|
|
11974
11951
|
if (Array.isArray(menus)) {
|
|
@@ -11997,10 +11974,10 @@ var events = [function (tabs, index, that) {
|
|
|
11997
11974
|
return false;
|
|
11998
11975
|
},
|
|
11999
11976
|
|
|
12000
|
-
/**
|
|
12001
|
-
* @desc:获取菜单第一条数据
|
|
12002
|
-
* @author huangbo
|
|
12003
|
-
* @date 2024年9月7日
|
|
11977
|
+
/**
|
|
11978
|
+
* @desc:获取菜单第一条数据
|
|
11979
|
+
* @author huangbo
|
|
11980
|
+
* @date 2024年9月7日
|
|
12004
11981
|
**/
|
|
12005
11982
|
getFirst: function getFirst(obj) {
|
|
12006
11983
|
if (!obj) {
|
|
@@ -12019,17 +11996,17 @@ var events = [function (tabs, index, that) {
|
|
|
12019
11996
|
}
|
|
12020
11997
|
},
|
|
12021
11998
|
|
|
12022
|
-
/**
|
|
12023
|
-
* @desc:遍历设置菜单气泡提醒
|
|
12024
|
-
* @author huangbo
|
|
12025
|
-
* @date 2024年9月7日
|
|
11999
|
+
/**
|
|
12000
|
+
* @desc:遍历设置菜单气泡提醒
|
|
12001
|
+
* @author huangbo
|
|
12002
|
+
* @date 2024年9月7日
|
|
12026
12003
|
**/
|
|
12027
12004
|
setTips: function setTips(obj) {
|
|
12028
|
-
var
|
|
12005
|
+
var _this4 = this;
|
|
12029
12006
|
|
|
12030
12007
|
if (Array.isArray(obj)) {
|
|
12031
12008
|
obj.forEach(function (item) {
|
|
12032
|
-
|
|
12009
|
+
_this4.setTips(item);
|
|
12033
12010
|
});
|
|
12034
12011
|
} else {
|
|
12035
12012
|
if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
|
|
@@ -12039,7 +12016,7 @@ var events = [function (tabs, index, that) {
|
|
|
12039
12016
|
var flag = 0;
|
|
12040
12017
|
if (obj.children && obj.children.length) {
|
|
12041
12018
|
obj.children.forEach(function (item) {
|
|
12042
|
-
var n =
|
|
12019
|
+
var n = _this4.setTips(item);
|
|
12043
12020
|
flag += n ? parseInt(n) : 0;
|
|
12044
12021
|
});
|
|
12045
12022
|
if (flag) {
|
|
@@ -12052,7 +12029,7 @@ var events = [function (tabs, index, that) {
|
|
|
12052
12029
|
}
|
|
12053
12030
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
12054
12031
|
obj.fourthTabs.forEach(function (item) {
|
|
12055
|
-
var n =
|
|
12032
|
+
var n = _this4.setTips(item);
|
|
12056
12033
|
flag += n ? parseInt(n) : 0;
|
|
12057
12034
|
});
|
|
12058
12035
|
if (flag) {
|
|
@@ -12074,21 +12051,21 @@ var events = [function (tabs, index, that) {
|
|
|
12074
12051
|
return false;
|
|
12075
12052
|
},
|
|
12076
12053
|
setDot: function setDot(obj, code) {
|
|
12077
|
-
var
|
|
12054
|
+
var _this5 = this;
|
|
12078
12055
|
|
|
12079
12056
|
if (Array.isArray(obj)) {
|
|
12080
12057
|
obj.forEach(function (item) {
|
|
12081
|
-
|
|
12058
|
+
_this5.setDot(item, code);
|
|
12082
12059
|
});
|
|
12083
12060
|
} else if (obj.code === code) {
|
|
12084
12061
|
this.$set(obj, 'tips', true);
|
|
12085
12062
|
}
|
|
12086
12063
|
},
|
|
12087
12064
|
|
|
12088
|
-
/**
|
|
12089
|
-
* @desc:获取气泡提醒
|
|
12090
|
-
* @author huangbo
|
|
12091
|
-
* @date 2024年9月7日
|
|
12065
|
+
/**
|
|
12066
|
+
* @desc:获取气泡提醒
|
|
12067
|
+
* @author huangbo
|
|
12068
|
+
* @date 2024年9月7日
|
|
12092
12069
|
**/
|
|
12093
12070
|
getBadge: function getBadge(res) {
|
|
12094
12071
|
var num = res.tips || 0;
|
|
@@ -12102,13 +12079,13 @@ var events = [function (tabs, index, that) {
|
|
|
12102
12079
|
};
|
|
12103
12080
|
},
|
|
12104
12081
|
|
|
12105
|
-
/**
|
|
12106
|
-
* @desc:开启weosocket
|
|
12107
|
-
* @author huangbo
|
|
12108
|
-
* @date 2024年9月7日
|
|
12082
|
+
/**
|
|
12083
|
+
* @desc:开启weosocket
|
|
12084
|
+
* @author huangbo
|
|
12085
|
+
* @date 2024年9月7日
|
|
12109
12086
|
**/
|
|
12110
12087
|
initWebSocket: function initWebSocket() {
|
|
12111
|
-
var
|
|
12088
|
+
var _this6 = this;
|
|
12112
12089
|
|
|
12113
12090
|
this.webSocket = util["a" /* default */].socket({
|
|
12114
12091
|
url: api["Cc" /* wss */],
|
|
@@ -12118,32 +12095,32 @@ var events = [function (tabs, index, that) {
|
|
|
12118
12095
|
for (var i in data) {
|
|
12119
12096
|
if (data[i] !== null && data[i] !== undefined) {
|
|
12120
12097
|
if (i === 'onlineUserNums' && data[i] > 0) {
|
|
12121
|
-
|
|
12098
|
+
_this6.$set(_this6.handleNums, 'onlineUser', data[i]);
|
|
12122
12099
|
}
|
|
12123
12100
|
if (i === 'sysMsgNums' && data[i] !== null) {
|
|
12124
|
-
|
|
12125
|
-
if (
|
|
12126
|
-
|
|
12101
|
+
_this6.$set(_this6.handleNums, 'notice', data[i]);
|
|
12102
|
+
if (_this6.showMsg) {
|
|
12103
|
+
_this6.$refs.message.getMsg(true);
|
|
12127
12104
|
}
|
|
12128
12105
|
}
|
|
12129
12106
|
if (i === 'menuTipsMap' && data[i] !== null) {
|
|
12130
|
-
|
|
12107
|
+
_this6.menuTips = data[i];
|
|
12131
12108
|
}
|
|
12132
12109
|
if (i === 'sysMsgList' && data[i] !== null) {
|
|
12133
|
-
|
|
12134
|
-
data[i] && data[i].length &&
|
|
12110
|
+
_this6.sysMsg = data[i];
|
|
12111
|
+
data[i] && data[i].length && _this6.$emit('bus-emit', 'waitdone');
|
|
12135
12112
|
}
|
|
12136
12113
|
if (i === 'extraData' && data[i] !== null) {
|
|
12137
|
-
|
|
12114
|
+
_this6.extraData = data[i];
|
|
12138
12115
|
}
|
|
12139
12116
|
}
|
|
12140
12117
|
}
|
|
12141
|
-
if (
|
|
12118
|
+
if (_this6.$store) {
|
|
12142
12119
|
try {
|
|
12143
|
-
|
|
12120
|
+
_this6.$store.commit('websocket', data);
|
|
12144
12121
|
} catch (error) {}
|
|
12145
12122
|
}
|
|
12146
|
-
var bus =
|
|
12123
|
+
var bus = _this6.bus || _this6.$eventBus || _this6.$root.Bus;
|
|
12147
12124
|
if (bus) {
|
|
12148
12125
|
bus.$emit('websocket', data);
|
|
12149
12126
|
}
|
|
@@ -12154,10 +12131,10 @@ var events = [function (tabs, index, that) {
|
|
|
12154
12131
|
});
|
|
12155
12132
|
},
|
|
12156
12133
|
|
|
12157
|
-
/**
|
|
12158
|
-
* @desc:显示用户信息
|
|
12159
|
-
* @author huangbo
|
|
12160
|
-
* @date 2024年9月7日
|
|
12134
|
+
/**
|
|
12135
|
+
* @desc:显示用户信息
|
|
12136
|
+
* @author huangbo
|
|
12137
|
+
* @date 2024年9月7日
|
|
12161
12138
|
**/
|
|
12162
12139
|
showUserInfo: function showUserInfo() {
|
|
12163
12140
|
if (this.showUser === false) {
|
|
@@ -12165,19 +12142,19 @@ var events = [function (tabs, index, that) {
|
|
|
12165
12142
|
}
|
|
12166
12143
|
},
|
|
12167
12144
|
|
|
12168
|
-
/**
|
|
12169
|
-
* @desc:删除更多应用菜单点击
|
|
12170
|
-
* @author huangbo
|
|
12171
|
-
* @date 2024年9月7日
|
|
12145
|
+
/**
|
|
12146
|
+
* @desc:删除更多应用菜单点击
|
|
12147
|
+
* @author huangbo
|
|
12148
|
+
* @date 2024年9月7日
|
|
12172
12149
|
**/
|
|
12173
12150
|
handleDelete: function handleDelete(index) {
|
|
12174
12151
|
this.newApps.splice(index, 1);
|
|
12175
12152
|
},
|
|
12176
12153
|
|
|
12177
|
-
/**
|
|
12178
|
-
* @desc:储存更多应用菜单点击
|
|
12179
|
-
* @author huangbo
|
|
12180
|
-
* @date 2024年9月7日
|
|
12154
|
+
/**
|
|
12155
|
+
* @desc:储存更多应用菜单点击
|
|
12156
|
+
* @author huangbo
|
|
12157
|
+
* @date 2024年9月7日
|
|
12181
12158
|
**/
|
|
12182
12159
|
handlerClickApps: function handlerClickApps(res) {
|
|
12183
12160
|
if (res.permission === false) {
|
|
@@ -12190,10 +12167,10 @@ var events = [function (tabs, index, that) {
|
|
|
12190
12167
|
this.handlerClickApp(res);
|
|
12191
12168
|
},
|
|
12192
12169
|
|
|
12193
|
-
/**
|
|
12194
|
-
* @desc:侧边应用菜单点击
|
|
12195
|
-
* @author huangbo
|
|
12196
|
-
* @date 2024年9月7日
|
|
12170
|
+
/**
|
|
12171
|
+
* @desc:侧边应用菜单点击
|
|
12172
|
+
* @author huangbo
|
|
12173
|
+
* @date 2024年9月7日
|
|
12197
12174
|
**/
|
|
12198
12175
|
handlerClickApp: function handlerClickApp(res) {
|
|
12199
12176
|
this.showMsg = false;
|
|
@@ -12282,10 +12259,10 @@ var events = [function (tabs, index, that) {
|
|
|
12282
12259
|
}
|
|
12283
12260
|
},
|
|
12284
12261
|
|
|
12285
|
-
/**
|
|
12286
|
-
* @desc:显示Drawer界面
|
|
12287
|
-
* @author huangbo
|
|
12288
|
-
* @date 2024年9月7日
|
|
12262
|
+
/**
|
|
12263
|
+
* @desc:显示Drawer界面
|
|
12264
|
+
* @author huangbo
|
|
12265
|
+
* @date 2024年9月7日
|
|
12289
12266
|
**/
|
|
12290
12267
|
handlerSetDrawer: function handlerSetDrawer(res, type) {
|
|
12291
12268
|
var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';
|
|
@@ -12305,19 +12282,19 @@ var events = [function (tabs, index, that) {
|
|
|
12305
12282
|
}
|
|
12306
12283
|
},
|
|
12307
12284
|
|
|
12308
|
-
/**
|
|
12309
|
-
* @desc:关闭Drawer界面
|
|
12310
|
-
* @author huangbo
|
|
12311
|
-
* @date 2024年9月7日
|
|
12285
|
+
/**
|
|
12286
|
+
* @desc:关闭Drawer界面
|
|
12287
|
+
* @author huangbo
|
|
12288
|
+
* @date 2024年9月7日
|
|
12312
12289
|
**/
|
|
12313
12290
|
handleCloseDrawer: function handleCloseDrawer() {
|
|
12314
12291
|
this.drawer = { visible: false };
|
|
12315
12292
|
},
|
|
12316
12293
|
|
|
12317
|
-
/**
|
|
12318
|
-
* @desc:菜单点击
|
|
12319
|
-
* @author huangbo
|
|
12320
|
-
* @date 2024年9月7日
|
|
12294
|
+
/**
|
|
12295
|
+
* @desc:菜单点击
|
|
12296
|
+
* @author huangbo
|
|
12297
|
+
* @date 2024年9月7日
|
|
12321
12298
|
**/
|
|
12322
12299
|
handlerClickMenu: function handlerClickMenu(res) {
|
|
12323
12300
|
util["a" /* default */].ajax({
|
|
@@ -12366,19 +12343,19 @@ var events = [function (tabs, index, that) {
|
|
|
12366
12343
|
},
|
|
12367
12344
|
|
|
12368
12345
|
|
|
12369
|
-
/**
|
|
12370
|
-
* @desc:用户详情请求成功
|
|
12371
|
-
* @author huangbo
|
|
12372
|
-
* @date 2024年9月7日
|
|
12346
|
+
/**
|
|
12347
|
+
* @desc:用户详情请求成功
|
|
12348
|
+
* @author huangbo
|
|
12349
|
+
* @date 2024年9月7日
|
|
12373
12350
|
**/
|
|
12374
12351
|
handleSuccess: function handleSuccess(res) {
|
|
12375
12352
|
this.simpleUserInfo = res.simpleUserInfo;
|
|
12376
12353
|
},
|
|
12377
12354
|
|
|
12378
|
-
/**
|
|
12379
|
-
* @desc:修改用户配置
|
|
12380
|
-
* @author huangbo
|
|
12381
|
-
* @date 2024年9月7日
|
|
12355
|
+
/**
|
|
12356
|
+
* @desc:修改用户配置
|
|
12357
|
+
* @author huangbo
|
|
12358
|
+
* @date 2024年9月7日
|
|
12382
12359
|
**/
|
|
12383
12360
|
handleChangeConfig: function handleChangeConfig(name, res) {
|
|
12384
12361
|
if (name == 'userHeadUrl') {
|
|
@@ -12394,10 +12371,10 @@ var events = [function (tabs, index, that) {
|
|
|
12394
12371
|
}
|
|
12395
12372
|
},
|
|
12396
12373
|
|
|
12397
|
-
/**
|
|
12398
|
-
* @desc:关闭webSocket
|
|
12399
|
-
* @author huangbo
|
|
12400
|
-
* @date 2024年9月7日
|
|
12374
|
+
/**
|
|
12375
|
+
* @desc:关闭webSocket
|
|
12376
|
+
* @author huangbo
|
|
12377
|
+
* @date 2024年9月7日
|
|
12401
12378
|
**/
|
|
12402
12379
|
handlerClose: function handlerClose() {
|
|
12403
12380
|
if (this.webSocket) {
|
|
@@ -12405,10 +12382,10 @@ var events = [function (tabs, index, that) {
|
|
|
12405
12382
|
}
|
|
12406
12383
|
},
|
|
12407
12384
|
|
|
12408
|
-
/**
|
|
12409
|
-
* @desc:刷新选中iframe页签
|
|
12410
|
-
* @author huangbo
|
|
12411
|
-
* @date 2024年9月7日
|
|
12385
|
+
/**
|
|
12386
|
+
* @desc:刷新选中iframe页签
|
|
12387
|
+
* @author huangbo
|
|
12388
|
+
* @date 2024年9月7日
|
|
12412
12389
|
**/
|
|
12413
12390
|
handleRefresh: function handleRefresh() {
|
|
12414
12391
|
var i = util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
@@ -12429,10 +12406,10 @@ var events = [function (tabs, index, that) {
|
|
|
12429
12406
|
}
|
|
12430
12407
|
},
|
|
12431
12408
|
|
|
12432
|
-
/**
|
|
12433
|
-
* @desc:删除iframe
|
|
12434
|
-
* @author huangbo
|
|
12435
|
-
* @date 2024年9月7日
|
|
12409
|
+
/**
|
|
12410
|
+
* @desc:删除iframe
|
|
12411
|
+
* @author huangbo
|
|
12412
|
+
* @date 2024年9月7日
|
|
12436
12413
|
**/
|
|
12437
12414
|
handleRemove: function handleRemove(name) {
|
|
12438
12415
|
var len = this.tabs.length - 1;
|
|
@@ -12449,10 +12426,10 @@ var events = [function (tabs, index, that) {
|
|
|
12449
12426
|
}
|
|
12450
12427
|
},
|
|
12451
12428
|
|
|
12452
|
-
/**
|
|
12453
|
-
* @desc:tabs鼠标右键事件
|
|
12454
|
-
* @author huangbo
|
|
12455
|
-
* @date 2024年9月7日
|
|
12429
|
+
/**
|
|
12430
|
+
* @desc:tabs鼠标右键事件
|
|
12431
|
+
* @author huangbo
|
|
12432
|
+
* @date 2024年9月7日
|
|
12456
12433
|
**/
|
|
12457
12434
|
handleContextmenu: function handleContextmenu(tabs, e) {
|
|
12458
12435
|
var disabled = {};
|
|
@@ -12477,10 +12454,10 @@ var events = [function (tabs, index, that) {
|
|
|
12477
12454
|
window.addEventListener('click', this.closeTabsEvents);
|
|
12478
12455
|
},
|
|
12479
12456
|
|
|
12480
|
-
/**
|
|
12481
|
-
* @desc:tabs页签事件
|
|
12482
|
-
* @author huangbo
|
|
12483
|
-
* @date 2024年9月7日
|
|
12457
|
+
/**
|
|
12458
|
+
* @desc:tabs页签事件
|
|
12459
|
+
* @author huangbo
|
|
12460
|
+
* @date 2024年9月7日
|
|
12484
12461
|
**/
|
|
12485
12462
|
handleTabsEvents: function handleTabsEvents(num) {
|
|
12486
12463
|
if (this.pane !== null) {
|
|
@@ -12498,10 +12475,10 @@ var events = [function (tabs, index, that) {
|
|
|
12498
12475
|
window.removeEventListener('click', this.closeTabsEvents);
|
|
12499
12476
|
},
|
|
12500
12477
|
|
|
12501
|
-
/**
|
|
12502
|
-
* @desc:handler工具栏点击事件
|
|
12503
|
-
* @author huangbo
|
|
12504
|
-
* @date 2024年9月7日
|
|
12478
|
+
/**
|
|
12479
|
+
* @desc:handler工具栏点击事件
|
|
12480
|
+
* @author huangbo
|
|
12481
|
+
* @date 2024年9月7日
|
|
12505
12482
|
**/
|
|
12506
12483
|
handleClick: function handleClick(res) {
|
|
12507
12484
|
var type = res.type,
|
|
@@ -12579,13 +12556,13 @@ var events = [function (tabs, index, that) {
|
|
|
12579
12556
|
this.$emit('handler-click', res);
|
|
12580
12557
|
},
|
|
12581
12558
|
|
|
12582
|
-
/**
|
|
12583
|
-
* @desc:退出登录
|
|
12584
|
-
* @author huangbo
|
|
12585
|
-
* @date 2024年9月7日
|
|
12559
|
+
/**
|
|
12560
|
+
* @desc:退出登录
|
|
12561
|
+
* @author huangbo
|
|
12562
|
+
* @date 2024年9月7日
|
|
12586
12563
|
**/
|
|
12587
12564
|
handleQuit: function handleQuit() {
|
|
12588
|
-
var
|
|
12565
|
+
var _this7 = this;
|
|
12589
12566
|
|
|
12590
12567
|
this.$confirm('确定退出吗?', '退出系统', {
|
|
12591
12568
|
confirmButtonText: '确定',
|
|
@@ -12601,19 +12578,19 @@ var events = [function (tabs, index, that) {
|
|
|
12601
12578
|
}
|
|
12602
12579
|
break;
|
|
12603
12580
|
}
|
|
12604
|
-
if (
|
|
12605
|
-
for (var _i2 = 0; _i2 <
|
|
12581
|
+
if (_this7.singleLogout) {
|
|
12582
|
+
for (var _i2 = 0; _i2 < _this7.singleLogout.length; _i2++) {
|
|
12606
12583
|
var iframe = document.createElement('iframe');
|
|
12607
12584
|
iframe.style.display = 'none';
|
|
12608
|
-
iframe.src =
|
|
12585
|
+
iframe.src = _this7.singleLogout[_i2];
|
|
12609
12586
|
document.body.appendChild(iframe);
|
|
12610
12587
|
}
|
|
12611
12588
|
}
|
|
12612
12589
|
util["a" /* default */].ajax({ method: 'post', url: api["rb" /* logout */] }).then(function (res) {
|
|
12613
12590
|
if (res.rCode == 0) {
|
|
12614
12591
|
util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
12615
|
-
if (
|
|
12616
|
-
|
|
12592
|
+
if (_this7.onQuit && typeof _this7.onQuit === 'function') {
|
|
12593
|
+
_this7.onQuit();
|
|
12617
12594
|
} else {
|
|
12618
12595
|
try {
|
|
12619
12596
|
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
@@ -12651,16 +12628,16 @@ var events = [function (tabs, index, that) {
|
|
|
12651
12628
|
}
|
|
12652
12629
|
}).catch(function (err) {
|
|
12653
12630
|
if (err.message && err.message !== 'canceled') {
|
|
12654
|
-
|
|
12631
|
+
_this7.$message.error(err.message);
|
|
12655
12632
|
}
|
|
12656
12633
|
});
|
|
12657
12634
|
}).catch(function (e) {});
|
|
12658
12635
|
},
|
|
12659
12636
|
|
|
12660
|
-
/**
|
|
12661
|
-
* @desc:主题、消息回调
|
|
12662
|
-
* @author huangbo
|
|
12663
|
-
* @date 2024年9月7日
|
|
12637
|
+
/**
|
|
12638
|
+
* @desc:主题、消息回调
|
|
12639
|
+
* @author huangbo
|
|
12640
|
+
* @date 2024年9月7日
|
|
12664
12641
|
**/
|
|
12665
12642
|
handleChange: function handleChange(res) {
|
|
12666
12643
|
var type = res.type,
|
|
@@ -12671,15 +12648,15 @@ var events = [function (tabs, index, that) {
|
|
|
12671
12648
|
this.setTheme(value);
|
|
12672
12649
|
break;
|
|
12673
12650
|
case 'ignore':
|
|
12674
|
-
this.notice
|
|
12651
|
+
this.$set(this.handleNums, 'notice', 0);
|
|
12675
12652
|
break;
|
|
12676
12653
|
}
|
|
12677
12654
|
},
|
|
12678
12655
|
|
|
12679
|
-
/**
|
|
12680
|
-
* @desc:菜单布局样式切换
|
|
12681
|
-
* @author huangbo
|
|
12682
|
-
* @date 2024年9月7日
|
|
12656
|
+
/**
|
|
12657
|
+
* @desc:菜单布局样式切换
|
|
12658
|
+
* @author huangbo
|
|
12659
|
+
* @date 2024年9月7日
|
|
12683
12660
|
**/
|
|
12684
12661
|
handleLayout: function handleLayout(res, active) {
|
|
12685
12662
|
if (active) {
|
|
@@ -12688,10 +12665,10 @@ var events = [function (tabs, index, that) {
|
|
|
12688
12665
|
this.$emit('chang-layout', res, active);
|
|
12689
12666
|
},
|
|
12690
12667
|
|
|
12691
|
-
/**
|
|
12692
|
-
* @desc:消息修改总数
|
|
12693
|
-
* @author huangbo
|
|
12694
|
-
* @date 2024年9月7日
|
|
12668
|
+
/**
|
|
12669
|
+
* @desc:消息修改总数
|
|
12670
|
+
* @author huangbo
|
|
12671
|
+
* @date 2024年9月7日
|
|
12695
12672
|
**/
|
|
12696
12673
|
handleMenuTips: function handleMenuTips(id, num) {
|
|
12697
12674
|
if (num) {
|
|
@@ -12702,19 +12679,19 @@ var events = [function (tabs, index, that) {
|
|
|
12702
12679
|
}
|
|
12703
12680
|
},
|
|
12704
12681
|
|
|
12705
|
-
/**
|
|
12706
|
-
* @desc:处理即时消息
|
|
12707
|
-
* @author huangbo
|
|
12708
|
-
* @date 2024年9月7日
|
|
12682
|
+
/**
|
|
12683
|
+
* @desc:处理即时消息
|
|
12684
|
+
* @author huangbo
|
|
12685
|
+
* @date 2024年9月7日
|
|
12709
12686
|
**/
|
|
12710
12687
|
handleOpened: function handleOpened(res) {
|
|
12711
|
-
var
|
|
12688
|
+
var _this8 = this;
|
|
12712
12689
|
|
|
12713
12690
|
if (res === undefined) {
|
|
12714
12691
|
this.sysMsg = [];
|
|
12715
12692
|
} else if (res == false && this.sysMsg.length) {
|
|
12716
12693
|
this.sysMsgOut = setTimeout(function () {
|
|
12717
|
-
|
|
12694
|
+
_this8.sysMsg = [];
|
|
12718
12695
|
}, 3000);
|
|
12719
12696
|
} else if (this.sysMsgOut) {
|
|
12720
12697
|
clearTimeout(this.sysMsgOut);
|
|
@@ -12789,13 +12766,13 @@ var events = [function (tabs, index, that) {
|
|
|
12789
12766
|
|
|
12790
12767
|
//监听改变菜单
|
|
12791
12768
|
handleListener: function handleListener() {
|
|
12792
|
-
var
|
|
12769
|
+
var _this9 = this;
|
|
12793
12770
|
|
|
12794
12771
|
util["a" /* default */].win.addEventListener('message', function (e) {
|
|
12795
12772
|
var msg = e.data;
|
|
12796
12773
|
if (msg.key == 'jump_Menu') {
|
|
12797
12774
|
var res = msg.data1;
|
|
12798
|
-
|
|
12775
|
+
_this9.jumpMenu(res);
|
|
12799
12776
|
}
|
|
12800
12777
|
}, false);
|
|
12801
12778
|
},
|
|
@@ -12832,11 +12809,11 @@ var events = [function (tabs, index, that) {
|
|
|
12832
12809
|
|
|
12833
12810
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
12834
12811
|
src_simplicityvue_type_script_lang_js_,
|
|
12835
|
-
|
|
12836
|
-
|
|
12812
|
+
simplicityvue_type_template_id_213583d1_scoped_true_render,
|
|
12813
|
+
simplicityvue_type_template_id_213583d1_scoped_true_staticRenderFns,
|
|
12837
12814
|
false,
|
|
12838
12815
|
null,
|
|
12839
|
-
"
|
|
12816
|
+
"213583d1",
|
|
12840
12817
|
null
|
|
12841
12818
|
|
|
12842
12819
|
)
|
|
@@ -13424,7 +13401,7 @@ userinfovue_type_template_id_138be27a_render._withStripped = true
|
|
|
13424
13401
|
// CONCATENATED MODULE: ./packages/main/src/default/userinfo.vue?vue&type=template&id=138be27a&
|
|
13425
13402
|
|
|
13426
13403
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=script&lang=js&
|
|
13427
|
-
var
|
|
13404
|
+
var userinfovue_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; };
|
|
13428
13405
|
|
|
13429
13406
|
//
|
|
13430
13407
|
//
|
|
@@ -13684,7 +13661,7 @@ var default_userinfovue_type_script_lang_js_extends = Object.assign || function
|
|
|
13684
13661
|
_this2.checkPasswordMsg = results.checkPasswordMsg;
|
|
13685
13662
|
}
|
|
13686
13663
|
_this2.results = results.simpleUserInfo;
|
|
13687
|
-
_this2.values =
|
|
13664
|
+
_this2.values = userinfovue_type_script_lang_js_extends({}, _this2.values, results.simpleUserInfo);
|
|
13688
13665
|
// this.values.orgName = results.simpleUserInfo.orgName;
|
|
13689
13666
|
// this.values.depName = results.simpleUserInfo.depName;
|
|
13690
13667
|
// this.values.idCard = results.simpleUserInfo.idCard;
|