eoss-ui 0.5.81-beta3 → 0.5.81-beta5
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/eoss-ui.common.js +1708 -1144
- package/lib/index.js +1 -1
- package/lib/main.js +1588 -1081
- package/lib/selector-panel.js +64 -11
- package/lib/selector.js +8 -4
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/selector-panel.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/package.json +1 -1
- package/packages/main/src/default/index.vue +1 -1
- package/packages/main/src/main.vue +12 -16
- package/packages/main/src/simplicity/apps.vue +176 -145
- package/packages/main/src/simplicity/index.vue +224 -191
- package/packages/main/src/simplicity/menu-list.vue +96 -26
- package/packages/main/src/simplicity/message.vue +35 -25
- package/packages/main/src/simplicity/notice.vue +72 -39
- package/packages/main/src/simplicity/router-page.vue +53 -0
- package/packages/main/src/simplicity/settings.vue +1 -1
- package/packages/main/src/simplicity/sub-menu.vue +67 -68
- package/packages/main/src/simplicity/user.vue +4 -4
- package/packages/main/src/simplicity/userinfo.vue +1 -0
- package/packages/selector/src/main.vue +6 -2
- package/packages/selector-panel/src/main.vue +21 -2
- package/packages/selector-panel/src/selection.vue +6 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/selector-panel.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/src/common/var.scss +2 -0
- package/packages/theme-chalk/src/selector-panel.scss +2 -1
- package/packages/theme-chalk/src/simplicity.scss +194 -6
- package/src/index.js +1 -1
package/lib/main.js
CHANGED
|
@@ -3932,7 +3932,7 @@ window.__store = store;
|
|
|
3932
3932
|
// ESM COMPAT FLAG
|
|
3933
3933
|
__webpack_require__.r(__webpack_exports__);
|
|
3934
3934
|
|
|
3935
|
-
// 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=
|
|
3935
|
+
// 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=a0d885fc&
|
|
3936
3936
|
var render = function () {
|
|
3937
3937
|
var _vm = this
|
|
3938
3938
|
var _h = _vm.$createElement
|
|
@@ -3943,11 +3943,11 @@ var render = function () {
|
|
|
3943
3943
|
[
|
|
3944
3944
|
_vm.type == "simplicity"
|
|
3945
3945
|
? _c(
|
|
3946
|
-
"
|
|
3946
|
+
"simplicity",
|
|
3947
3947
|
_vm._g(
|
|
3948
3948
|
_vm._b(
|
|
3949
3949
|
{ ref: "main", attrs: { appCode: _vm.appCode } },
|
|
3950
|
-
"
|
|
3950
|
+
"simplicity",
|
|
3951
3951
|
_vm.$attrs,
|
|
3952
3952
|
false
|
|
3953
3953
|
),
|
|
@@ -3955,9 +3955,9 @@ var render = function () {
|
|
|
3955
3955
|
)
|
|
3956
3956
|
)
|
|
3957
3957
|
: _c(
|
|
3958
|
-
"
|
|
3958
|
+
"main",
|
|
3959
3959
|
_vm._g(
|
|
3960
|
-
_vm._b({ ref: "main" }, "
|
|
3960
|
+
_vm._b({ ref: "main" }, "main", _vm.$attrs, false),
|
|
3961
3961
|
_vm.$listeners
|
|
3962
3962
|
)
|
|
3963
3963
|
),
|
|
@@ -3969,10 +3969,10 @@ var staticRenderFns = []
|
|
|
3969
3969
|
render._withStripped = true
|
|
3970
3970
|
|
|
3971
3971
|
|
|
3972
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
3972
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=a0d885fc&
|
|
3973
3973
|
|
|
3974
|
-
// 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=
|
|
3975
|
-
var
|
|
3974
|
+
// 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=672540fb&scoped=true&
|
|
3975
|
+
var simplicityvue_type_template_id_672540fb_scoped_true_render = function () {
|
|
3976
3976
|
var _vm = this
|
|
3977
3977
|
var _h = _vm.$createElement
|
|
3978
3978
|
var _c = _vm._self._c || _h
|
|
@@ -4154,77 +4154,51 @@ var simplicityvue_type_template_id_4d97469e_scoped_true_render = function () {
|
|
|
4154
4154
|
{ staticClass: "es-simplicity-main" },
|
|
4155
4155
|
[
|
|
4156
4156
|
_c(
|
|
4157
|
-
"
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
"update:visible": function ($event) {
|
|
4170
|
-
_vm.showMenu = $event
|
|
4157
|
+
"sub-menu",
|
|
4158
|
+
_vm._b(
|
|
4159
|
+
{
|
|
4160
|
+
ref: "subMenus",
|
|
4161
|
+
attrs: {
|
|
4162
|
+
visible: _vm.showMenu,
|
|
4163
|
+
fold: _vm.fold,
|
|
4164
|
+
size: _vm.menuWidth,
|
|
4165
|
+
title: _vm.title,
|
|
4166
|
+
color: _vm.menuColor,
|
|
4167
|
+
backgroundColor: _vm.menuBackgroundColor,
|
|
4168
|
+
"menu-icon": _vm.menuIcon,
|
|
4171
4169
|
},
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
_c(
|
|
4176
|
-
"sub-menu",
|
|
4177
|
-
_vm._b(
|
|
4178
|
-
{
|
|
4179
|
-
ref: "subMenus",
|
|
4180
|
-
attrs: {
|
|
4181
|
-
color: _vm.menuColor,
|
|
4182
|
-
backgroundColor: _vm.menuBackgroundColor,
|
|
4183
|
-
"menu-icon": _vm.menuIcon,
|
|
4184
|
-
},
|
|
4185
|
-
on: { command: _vm.handlerClickMenu },
|
|
4170
|
+
on: {
|
|
4171
|
+
"update:visible": function ($event) {
|
|
4172
|
+
_vm.showMenu = $event
|
|
4186
4173
|
},
|
|
4187
|
-
"
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
),
|
|
4192
|
-
],
|
|
4193
|
-
1
|
|
4194
|
-
),
|
|
4195
|
-
_c(
|
|
4196
|
-
"el-drawer",
|
|
4197
|
-
{
|
|
4198
|
-
staticClass: "es-simplicity-apps",
|
|
4199
|
-
attrs: {
|
|
4200
|
-
direction: "ltr",
|
|
4201
|
-
"modal-class": "es-simplicity-apps-modal",
|
|
4202
|
-
size: "90%",
|
|
4203
|
-
"modal-append-to-body": false,
|
|
4204
|
-
"with-header": false,
|
|
4205
|
-
visible: _vm.showApps,
|
|
4206
|
-
},
|
|
4207
|
-
on: {
|
|
4208
|
-
"update:visible": function ($event) {
|
|
4209
|
-
_vm.showApps = $event
|
|
4174
|
+
"update:fold": function ($event) {
|
|
4175
|
+
_vm.fold = $event
|
|
4176
|
+
},
|
|
4177
|
+
command: _vm.handlerClickMenu,
|
|
4210
4178
|
},
|
|
4211
4179
|
},
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
"menu-icon": _vm.menuIcon,
|
|
4217
|
-
color: _vm.appColor,
|
|
4218
|
-
backgroundColor: _vm.appBackgroundColor,
|
|
4219
|
-
applications: _vm.applications,
|
|
4220
|
-
business: _vm.business,
|
|
4221
|
-
systems: _vm.systems,
|
|
4222
|
-
},
|
|
4223
|
-
on: { click: _vm.handlerClickApp },
|
|
4224
|
-
}),
|
|
4225
|
-
],
|
|
4226
|
-
1
|
|
4180
|
+
"sub-menu",
|
|
4181
|
+
_vm.subMenus,
|
|
4182
|
+
false
|
|
4183
|
+
)
|
|
4227
4184
|
),
|
|
4185
|
+
_c("apps", {
|
|
4186
|
+
attrs: {
|
|
4187
|
+
visible: _vm.showApps,
|
|
4188
|
+
"menu-icon": _vm.menuIcon,
|
|
4189
|
+
color: _vm.appColor,
|
|
4190
|
+
backgroundColor: _vm.appBackgroundColor,
|
|
4191
|
+
applications: _vm.applications,
|
|
4192
|
+
business: _vm.business,
|
|
4193
|
+
systems: _vm.systems,
|
|
4194
|
+
},
|
|
4195
|
+
on: {
|
|
4196
|
+
"update:visible": function ($event) {
|
|
4197
|
+
_vm.showApps = $event
|
|
4198
|
+
},
|
|
4199
|
+
click: _vm.handlerClickApp,
|
|
4200
|
+
},
|
|
4201
|
+
}),
|
|
4228
4202
|
_c(
|
|
4229
4203
|
"el-drawer",
|
|
4230
4204
|
{
|
|
@@ -4295,9 +4269,10 @@ var simplicityvue_type_template_id_4d97469e_scoped_true_render = function () {
|
|
|
4295
4269
|
"div",
|
|
4296
4270
|
{
|
|
4297
4271
|
staticClass: "es-simplicity-tabs-handler-item",
|
|
4272
|
+
class: { "is-disabled": _vm.isDisabled.refresh },
|
|
4298
4273
|
on: {
|
|
4299
4274
|
click: function ($event) {
|
|
4300
|
-
_vm.handleTabsEvents(0)
|
|
4275
|
+
_vm.isDisabled.refresh ? "" : _vm.handleTabsEvents(0)
|
|
4301
4276
|
},
|
|
4302
4277
|
},
|
|
4303
4278
|
},
|
|
@@ -4363,9 +4338,9 @@ var simplicityvue_type_template_id_4d97469e_scoped_true_render = function () {
|
|
|
4363
4338
|
"el-tabs",
|
|
4364
4339
|
{
|
|
4365
4340
|
staticClass: "es-simplicity-iframe",
|
|
4341
|
+
class: { "is-open": _vm.showMenu, "is-fold": _vm.fold },
|
|
4366
4342
|
attrs: { closable: "", "hide-bar": "" },
|
|
4367
4343
|
on: {
|
|
4368
|
-
"tab-click": _vm.handleTab,
|
|
4369
4344
|
"tab-remove": _vm.handleRemove,
|
|
4370
4345
|
"tab-contextmenu": _vm.handleContextmenu,
|
|
4371
4346
|
},
|
|
@@ -4403,23 +4378,6 @@ var simplicityvue_type_template_id_4d97469e_scoped_true_render = function () {
|
|
|
4403
4378
|
false
|
|
4404
4379
|
)
|
|
4405
4380
|
),
|
|
4406
|
-
_c(
|
|
4407
|
-
"div",
|
|
4408
|
-
{
|
|
4409
|
-
directives: [
|
|
4410
|
-
{
|
|
4411
|
-
name: "show",
|
|
4412
|
-
rawName: "v-show",
|
|
4413
|
-
value: !_vm.showMenu && _vm.subMenus,
|
|
4414
|
-
expression: "!showMenu && subMenus",
|
|
4415
|
-
},
|
|
4416
|
-
],
|
|
4417
|
-
ref: "box",
|
|
4418
|
-
staticClass: "es-simplicity-unfold",
|
|
4419
|
-
on: { click: _vm.handleShowMenus },
|
|
4420
|
-
},
|
|
4421
|
-
[_c("i", { ref: "area", staticClass: "el-icon-s-unfold" })]
|
|
4422
|
-
),
|
|
4423
4381
|
_vm._l(_vm.tabs, function (item) {
|
|
4424
4382
|
return _c(
|
|
4425
4383
|
"el-tab-pane",
|
|
@@ -4455,7 +4413,22 @@ var simplicityvue_type_template_id_4d97469e_scoped_true_render = function () {
|
|
|
4455
4413
|
}),
|
|
4456
4414
|
]
|
|
4457
4415
|
: item.method === "router" && item.refresh
|
|
4458
|
-
? [
|
|
4416
|
+
? [
|
|
4417
|
+
_c(
|
|
4418
|
+
"router-page",
|
|
4419
|
+
_vm._b(
|
|
4420
|
+
{
|
|
4421
|
+
attrs: {
|
|
4422
|
+
show: _vm.activeName == item.id,
|
|
4423
|
+
query: _vm.$parent.params,
|
|
4424
|
+
},
|
|
4425
|
+
},
|
|
4426
|
+
"router-page",
|
|
4427
|
+
item,
|
|
4428
|
+
false
|
|
4429
|
+
)
|
|
4430
|
+
),
|
|
4431
|
+
]
|
|
4459
4432
|
: _vm._e(),
|
|
4460
4433
|
],
|
|
4461
4434
|
2
|
|
@@ -4541,11 +4514,11 @@ var simplicityvue_type_template_id_4d97469e_scoped_true_render = function () {
|
|
|
4541
4514
|
),
|
|
4542
4515
|
])
|
|
4543
4516
|
}
|
|
4544
|
-
var
|
|
4545
|
-
|
|
4517
|
+
var simplicityvue_type_template_id_672540fb_scoped_true_staticRenderFns = []
|
|
4518
|
+
simplicityvue_type_template_id_672540fb_scoped_true_render._withStripped = true
|
|
4546
4519
|
|
|
4547
4520
|
|
|
4548
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
4521
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=672540fb&scoped=true&
|
|
4549
4522
|
|
|
4550
4523
|
// 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=2597c13a&scoped=true&
|
|
4551
4524
|
var avatarvue_type_template_id_2597c13a_scoped_true_render = function () {
|
|
@@ -4966,219 +4939,383 @@ var handler_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4966
4939
|
)
|
|
4967
4940
|
|
|
4968
4941
|
/* harmony default export */ var simplicity_handler = (handler_component.exports);
|
|
4969
|
-
// 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/sub-menu.vue?vue&type=template&id=
|
|
4970
|
-
var
|
|
4942
|
+
// 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/sub-menu.vue?vue&type=template&id=e591bf96&scoped=true&
|
|
4943
|
+
var sub_menuvue_type_template_id_e591bf96_scoped_true_render = function () {
|
|
4971
4944
|
var _vm = this
|
|
4972
4945
|
var _h = _vm.$createElement
|
|
4973
4946
|
var _c = _vm._self._c || _h
|
|
4974
4947
|
return _c(
|
|
4975
|
-
"
|
|
4976
|
-
{
|
|
4948
|
+
"el-drawer",
|
|
4949
|
+
{
|
|
4950
|
+
staticClass: "es-simplicity-subMenus",
|
|
4951
|
+
attrs: {
|
|
4952
|
+
direction: "ltr",
|
|
4953
|
+
"modal-class": "es-simplicity-apps-modal",
|
|
4954
|
+
size: "auto",
|
|
4955
|
+
"modal-append-to-body": false,
|
|
4956
|
+
"close-on-press-escape": false,
|
|
4957
|
+
modal: false,
|
|
4958
|
+
"with-header": false,
|
|
4959
|
+
wrapperClosable: false,
|
|
4960
|
+
visible: _vm.show,
|
|
4961
|
+
},
|
|
4962
|
+
on: {
|
|
4963
|
+
"update:visible": function ($event) {
|
|
4964
|
+
_vm.show = $event
|
|
4965
|
+
},
|
|
4966
|
+
},
|
|
4967
|
+
},
|
|
4977
4968
|
[
|
|
4978
|
-
_c(
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
_vm.
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
"div",
|
|
5002
|
-
{ key: item.id, staticClass: "es-simplicity-menus-box" },
|
|
5003
|
-
[
|
|
5004
|
-
_c("div", { staticClass: "es-simplicity-menus-title" }, [
|
|
5005
|
-
_vm._v(_vm._s(item.text || item.name)),
|
|
5006
|
-
]),
|
|
5007
|
-
_c("menu-list", {
|
|
5008
|
-
attrs: {
|
|
5009
|
-
index: index,
|
|
5010
|
-
data: item.data,
|
|
5011
|
-
menuIcon: _vm.menuIcon,
|
|
4969
|
+
_c("div", { staticClass: "es-simplicity-menus" }, [
|
|
4970
|
+
_c(
|
|
4971
|
+
"div",
|
|
4972
|
+
{
|
|
4973
|
+
staticClass: "es-simplicity-menus-box",
|
|
4974
|
+
style: { width: _vm.width + "px" },
|
|
4975
|
+
},
|
|
4976
|
+
[
|
|
4977
|
+
_c("div", { staticClass: "es-simplicity-menus-title" }, [
|
|
4978
|
+
!_vm.fold
|
|
4979
|
+
? _c(
|
|
4980
|
+
"span",
|
|
4981
|
+
{ staticClass: "es-simplicity-menus-title-text" },
|
|
4982
|
+
[_vm._v(_vm._s(_vm.title || _vm.text))]
|
|
4983
|
+
)
|
|
4984
|
+
: _vm._e(),
|
|
4985
|
+
_c("i", {
|
|
4986
|
+
directives: [
|
|
4987
|
+
{
|
|
4988
|
+
name: "show",
|
|
4989
|
+
rawName: "v-show",
|
|
4990
|
+
value: !_vm.fold,
|
|
4991
|
+
expression: "!fold",
|
|
5012
4992
|
},
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
4993
|
+
],
|
|
4994
|
+
staticClass:
|
|
4995
|
+
"es-icon-shouqicaidan es-simplicity-menus-title-icon",
|
|
4996
|
+
on: {
|
|
4997
|
+
click: function ($event) {
|
|
4998
|
+
_vm.handleFold(true)
|
|
4999
|
+
},
|
|
5000
|
+
},
|
|
5001
|
+
}),
|
|
5002
|
+
_c("i", {
|
|
5003
|
+
directives: [
|
|
5004
|
+
{
|
|
5005
|
+
name: "show",
|
|
5006
|
+
rawName: "v-show",
|
|
5007
|
+
value: _vm.fold,
|
|
5008
|
+
expression: "fold",
|
|
5009
|
+
},
|
|
5010
|
+
],
|
|
5011
|
+
staticClass:
|
|
5012
|
+
"es-icon-shouqicaidan-right es-simplicity-menus-title-icon",
|
|
5013
|
+
on: {
|
|
5014
|
+
click: function ($event) {
|
|
5015
|
+
_vm.handleFold(false)
|
|
5016
|
+
},
|
|
5017
|
+
},
|
|
5018
|
+
}),
|
|
5019
|
+
]),
|
|
5020
|
+
_c("menu-list", {
|
|
5021
|
+
ref: "menus",
|
|
5022
|
+
attrs: {
|
|
5023
|
+
data: _vm.menus,
|
|
5024
|
+
menuIcon: _vm.menuIcon,
|
|
5025
|
+
color: _vm.color,
|
|
5026
|
+
backgroundColor: _vm.backgroundColor,
|
|
5027
|
+
fold: _vm.fold,
|
|
5028
|
+
width: _vm.size,
|
|
5029
|
+
},
|
|
5030
|
+
on: { command: _vm.handleCommand },
|
|
5031
|
+
}),
|
|
5032
|
+
],
|
|
5033
|
+
1
|
|
5034
|
+
),
|
|
5035
|
+
]),
|
|
5036
|
+
]
|
|
5022
5037
|
)
|
|
5023
5038
|
}
|
|
5024
|
-
var
|
|
5025
|
-
|
|
5039
|
+
var sub_menuvue_type_template_id_e591bf96_scoped_true_staticRenderFns = []
|
|
5040
|
+
sub_menuvue_type_template_id_e591bf96_scoped_true_render._withStripped = true
|
|
5026
5041
|
|
|
5027
5042
|
|
|
5028
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue?vue&type=template&id=
|
|
5043
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue?vue&type=template&id=e591bf96&scoped=true&
|
|
5029
5044
|
|
|
5030
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/menu-list.vue?vue&type=template&id=
|
|
5031
|
-
var
|
|
5045
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/menu-list.vue?vue&type=template&id=118643de&scoped=true&
|
|
5046
|
+
var menu_listvue_type_template_id_118643de_scoped_true_render = function () {
|
|
5032
5047
|
var _vm = this
|
|
5033
5048
|
var _h = _vm.$createElement
|
|
5034
5049
|
var _c = _vm._self._c || _h
|
|
5035
5050
|
return _c(
|
|
5036
5051
|
"el-scrollbar",
|
|
5037
|
-
_vm.
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
}
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5052
|
+
{ class: { "is-fold": _vm.fold } },
|
|
5053
|
+
[
|
|
5054
|
+
_vm._l(_vm.data, function (item, index) {
|
|
5055
|
+
return [
|
|
5056
|
+
(item.children && item.children.length) ||
|
|
5057
|
+
(item.fourthTabs, item.fourthTabs.length)
|
|
5058
|
+
? _c(
|
|
5059
|
+
"el-popover",
|
|
5060
|
+
{
|
|
5061
|
+
attrs: {
|
|
5062
|
+
placement: "right",
|
|
5063
|
+
trigger: "hover",
|
|
5064
|
+
"popper-class": "es-simplicity-menus-sub",
|
|
5065
|
+
width: _vm.width,
|
|
5066
|
+
},
|
|
5067
|
+
},
|
|
5068
|
+
[
|
|
5069
|
+
_c("menu-list", {
|
|
5070
|
+
ref: "menus",
|
|
5071
|
+
refInFor: true,
|
|
5072
|
+
attrs: {
|
|
5073
|
+
data: (item.children || []).concat(item.fourthTabs || []),
|
|
5074
|
+
menuIcon: _vm.menuIcon,
|
|
5075
|
+
color: _vm.color,
|
|
5076
|
+
backgroundColor: _vm.backgroundColor,
|
|
5077
|
+
width: _vm.width,
|
|
5078
|
+
},
|
|
5079
|
+
on: { command: _vm.handleClick },
|
|
5080
|
+
}),
|
|
5081
|
+
_c(
|
|
5082
|
+
"div",
|
|
5083
|
+
{
|
|
5084
|
+
key: item.id,
|
|
5085
|
+
staticClass: "es-simplicity-menus-item",
|
|
5086
|
+
class: {
|
|
5087
|
+
"is-active": _vm.active === item.id,
|
|
5088
|
+
"is-fold": _vm.fold,
|
|
5089
|
+
},
|
|
5090
|
+
attrs: {
|
|
5091
|
+
slot: "reference",
|
|
5092
|
+
title: _vm.fold ? item.text || item.name : "",
|
|
5093
|
+
},
|
|
5094
|
+
slot: "reference",
|
|
5095
|
+
},
|
|
5096
|
+
[
|
|
5097
|
+
_vm.fold
|
|
5098
|
+
? [
|
|
5099
|
+
_c(
|
|
5100
|
+
"el-badge",
|
|
5101
|
+
{ attrs: { "is-dot": "", hidden: !item.tips } },
|
|
5102
|
+
[
|
|
5103
|
+
_c("es-icon", {
|
|
5104
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5105
|
+
style: _vm.setStyle(index),
|
|
5106
|
+
attrs: {
|
|
5107
|
+
contents:
|
|
5108
|
+
item.icons || item.icon || _vm.menuIcon,
|
|
5109
|
+
},
|
|
5110
|
+
}),
|
|
5111
|
+
],
|
|
5112
|
+
1
|
|
5113
|
+
),
|
|
5114
|
+
]
|
|
5115
|
+
: [
|
|
5116
|
+
_c("es-icon", {
|
|
5117
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5118
|
+
style: _vm.setStyle(index),
|
|
5119
|
+
attrs: {
|
|
5120
|
+
contents:
|
|
5121
|
+
item.icons || item.icon || _vm.menuIcon,
|
|
5122
|
+
},
|
|
5123
|
+
}),
|
|
5124
|
+
item.tips
|
|
5125
|
+
? _c(
|
|
5126
|
+
"div",
|
|
5127
|
+
{ staticClass: "es-simplicity-menus-tips" },
|
|
5128
|
+
[
|
|
5129
|
+
_vm._v(
|
|
5130
|
+
"\n " +
|
|
5131
|
+
_vm._s(
|
|
5132
|
+
item.tips > 99 ? "99+" : item.tips
|
|
5133
|
+
) +
|
|
5134
|
+
"\n "
|
|
5135
|
+
),
|
|
5136
|
+
]
|
|
5137
|
+
)
|
|
5138
|
+
: _vm._e(),
|
|
5139
|
+
],
|
|
5140
|
+
_c(
|
|
5141
|
+
"div",
|
|
5142
|
+
{
|
|
5143
|
+
directives: [
|
|
5144
|
+
{
|
|
5145
|
+
name: "show",
|
|
5146
|
+
rawName: "v-show",
|
|
5147
|
+
value: !_vm.fold,
|
|
5148
|
+
expression: "!fold",
|
|
5149
|
+
},
|
|
5150
|
+
],
|
|
5151
|
+
staticClass: "es-simplicity_apps-text",
|
|
5152
|
+
},
|
|
5153
|
+
[
|
|
5154
|
+
_vm._v(
|
|
5155
|
+
"\n " +
|
|
5156
|
+
_vm._s(item.text || item.name) +
|
|
5157
|
+
"\n "
|
|
5158
|
+
),
|
|
5159
|
+
]
|
|
5160
|
+
),
|
|
5161
|
+
],
|
|
5162
|
+
2
|
|
5163
|
+
),
|
|
5164
|
+
],
|
|
5165
|
+
1
|
|
5166
|
+
)
|
|
5167
|
+
: _c(
|
|
5168
|
+
"div",
|
|
5169
|
+
{
|
|
5170
|
+
key: item.id,
|
|
5171
|
+
staticClass: "es-simplicity-menus-item",
|
|
5172
|
+
class: {
|
|
5173
|
+
"is-active": _vm.active === item.id,
|
|
5174
|
+
"is-fold": _vm.fold,
|
|
5175
|
+
},
|
|
5176
|
+
attrs: { title: _vm.fold ? item.text || item.name : "" },
|
|
5177
|
+
on: {
|
|
5178
|
+
click: function ($event) {
|
|
5179
|
+
_vm.handleClick(item)
|
|
5180
|
+
},
|
|
5181
|
+
},
|
|
5182
|
+
},
|
|
5183
|
+
[
|
|
5184
|
+
_vm.fold
|
|
5185
|
+
? [
|
|
5186
|
+
_c(
|
|
5187
|
+
"el-badge",
|
|
5188
|
+
{ attrs: { "is-dot": "", hidden: !item.tips } },
|
|
5189
|
+
[
|
|
5190
|
+
_c("es-icon", {
|
|
5191
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5192
|
+
style: _vm.setStyle(index),
|
|
5193
|
+
attrs: {
|
|
5194
|
+
contents:
|
|
5195
|
+
item.icons || item.icon || _vm.menuIcon,
|
|
5196
|
+
},
|
|
5197
|
+
}),
|
|
5198
|
+
],
|
|
5199
|
+
1
|
|
5200
|
+
),
|
|
5201
|
+
]
|
|
5202
|
+
: [
|
|
5203
|
+
_c("es-icon", {
|
|
5204
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5205
|
+
style: _vm.setStyle(index),
|
|
5206
|
+
attrs: {
|
|
5207
|
+
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5208
|
+
},
|
|
5209
|
+
}),
|
|
5210
|
+
item.tips
|
|
5211
|
+
? _c(
|
|
5212
|
+
"div",
|
|
5213
|
+
{ staticClass: "es-simplicity-menus-tips" },
|
|
5214
|
+
[
|
|
5215
|
+
_vm._v(
|
|
5216
|
+
"\n " +
|
|
5217
|
+
_vm._s(item.tips > 99 ? "99+" : item.tips) +
|
|
5218
|
+
"\n "
|
|
5219
|
+
),
|
|
5220
|
+
]
|
|
5221
|
+
)
|
|
5222
|
+
: _vm._e(),
|
|
5223
|
+
],
|
|
5224
|
+
_c(
|
|
5225
|
+
"div",
|
|
5226
|
+
{
|
|
5227
|
+
directives: [
|
|
5228
|
+
{
|
|
5229
|
+
name: "show",
|
|
5230
|
+
rawName: "v-show",
|
|
5231
|
+
value: !_vm.fold,
|
|
5232
|
+
expression: "!fold",
|
|
5233
|
+
},
|
|
5234
|
+
],
|
|
5235
|
+
staticClass: "es-simplicity_apps-text",
|
|
5236
|
+
},
|
|
5237
|
+
[
|
|
5238
|
+
_vm._v(
|
|
5239
|
+
"\n " +
|
|
5240
|
+
_vm._s(item.text || item.name) +
|
|
5241
|
+
"\n "
|
|
5242
|
+
),
|
|
5243
|
+
]
|
|
5244
|
+
),
|
|
5245
|
+
],
|
|
5246
|
+
2
|
|
5247
|
+
),
|
|
5248
|
+
]
|
|
5249
|
+
}),
|
|
5250
|
+
],
|
|
5251
|
+
2
|
|
5252
|
+
)
|
|
5253
|
+
}
|
|
5254
|
+
var menu_listvue_type_template_id_118643de_scoped_true_staticRenderFns = []
|
|
5255
|
+
menu_listvue_type_template_id_118643de_scoped_true_render._withStripped = true
|
|
5177
5256
|
|
|
5178
|
-
/* harmony default export */ var menu_list = (menu_list_component.exports);
|
|
5179
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/sub-menu.vue?vue&type=script&lang=js&
|
|
5180
|
-
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; };
|
|
5181
5257
|
|
|
5258
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/menu-list.vue?vue&type=template&id=118643de&scoped=true&
|
|
5259
|
+
|
|
5260
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/menu-list.vue?vue&type=script&lang=js&
|
|
5261
|
+
//
|
|
5262
|
+
//
|
|
5263
|
+
//
|
|
5264
|
+
//
|
|
5265
|
+
//
|
|
5266
|
+
//
|
|
5267
|
+
//
|
|
5268
|
+
//
|
|
5269
|
+
//
|
|
5270
|
+
//
|
|
5271
|
+
//
|
|
5272
|
+
//
|
|
5273
|
+
//
|
|
5274
|
+
//
|
|
5275
|
+
//
|
|
5276
|
+
//
|
|
5277
|
+
//
|
|
5278
|
+
//
|
|
5279
|
+
//
|
|
5280
|
+
//
|
|
5281
|
+
//
|
|
5282
|
+
//
|
|
5283
|
+
//
|
|
5284
|
+
//
|
|
5285
|
+
//
|
|
5286
|
+
//
|
|
5287
|
+
//
|
|
5288
|
+
//
|
|
5289
|
+
//
|
|
5290
|
+
//
|
|
5291
|
+
//
|
|
5292
|
+
//
|
|
5293
|
+
//
|
|
5294
|
+
//
|
|
5295
|
+
//
|
|
5296
|
+
//
|
|
5297
|
+
//
|
|
5298
|
+
//
|
|
5299
|
+
//
|
|
5300
|
+
//
|
|
5301
|
+
//
|
|
5302
|
+
//
|
|
5303
|
+
//
|
|
5304
|
+
//
|
|
5305
|
+
//
|
|
5306
|
+
//
|
|
5307
|
+
//
|
|
5308
|
+
//
|
|
5309
|
+
//
|
|
5310
|
+
//
|
|
5311
|
+
//
|
|
5312
|
+
//
|
|
5313
|
+
//
|
|
5314
|
+
//
|
|
5315
|
+
//
|
|
5316
|
+
//
|
|
5317
|
+
//
|
|
5318
|
+
//
|
|
5182
5319
|
//
|
|
5183
5320
|
//
|
|
5184
5321
|
//
|
|
@@ -5210,101 +5347,69 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
5210
5347
|
//
|
|
5211
5348
|
//
|
|
5212
5349
|
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
components: { MenuList: menu_list },
|
|
5350
|
+
/* harmony default export */ var menu_listvue_type_script_lang_js_ = ({
|
|
5351
|
+
name: 'MenuList',
|
|
5352
|
+
components: {},
|
|
5217
5353
|
props: {
|
|
5218
|
-
color: {
|
|
5219
|
-
type: [String, Array],
|
|
5220
|
-
default: '#fff'
|
|
5221
|
-
},
|
|
5222
|
-
backgroundColor: {
|
|
5223
|
-
type: [String, Array],
|
|
5224
|
-
default: function _default() {
|
|
5225
|
-
return ['#FF9C52', '#2591F7', '#17C27B', '#1265D7', '#FFC724', '#E34D59'];
|
|
5226
|
-
}
|
|
5227
|
-
},
|
|
5228
|
-
text: String,
|
|
5229
5354
|
menuIcon: String,
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
},
|
|
5236
|
-
fourthTabs: {
|
|
5237
|
-
type: Array,
|
|
5238
|
-
default: function _default() {
|
|
5239
|
-
return [];
|
|
5240
|
-
}
|
|
5241
|
-
}
|
|
5355
|
+
color: [String, Array],
|
|
5356
|
+
backgroundColor: [String, Array],
|
|
5357
|
+
data: Array,
|
|
5358
|
+
fold: Boolean,
|
|
5359
|
+
width: Number
|
|
5242
5360
|
},
|
|
5243
5361
|
data: function data() {
|
|
5244
5362
|
return {
|
|
5245
|
-
active: ''
|
|
5246
|
-
subMenus: []
|
|
5363
|
+
active: ''
|
|
5247
5364
|
};
|
|
5248
5365
|
},
|
|
5249
5366
|
|
|
5250
|
-
computed: {
|
|
5251
|
-
menus: function menus() {
|
|
5252
|
-
return [].concat(this.children, this.fourthTabs);
|
|
5253
|
-
}
|
|
5254
|
-
},
|
|
5367
|
+
computed: {},
|
|
5255
5368
|
watch: {},
|
|
5256
5369
|
created: function created() {},
|
|
5257
5370
|
mounted: function mounted() {},
|
|
5258
5371
|
|
|
5259
5372
|
methods: {
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5373
|
+
setStyle: function setStyle(num) {
|
|
5374
|
+
var obj = {};
|
|
5375
|
+
if (this.color) {
|
|
5376
|
+
obj.color = this.color;
|
|
5377
|
+
if (Array.isArray(this.color)) {
|
|
5378
|
+
obj.color = this.color[num % this.color.length];
|
|
5266
5379
|
} else {
|
|
5267
|
-
this
|
|
5380
|
+
obj.color = this.color;
|
|
5268
5381
|
}
|
|
5269
5382
|
}
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
this.subMenus = [_extends({}, res, { data: data })];
|
|
5383
|
+
if (this.backgroundColor) {
|
|
5384
|
+
if (Array.isArray(this.backgroundColor)) {
|
|
5385
|
+
obj.backgroundColor = this.backgroundColor[num % this.backgroundColor.length];
|
|
5274
5386
|
} else {
|
|
5275
|
-
|
|
5276
|
-
if (item) {
|
|
5277
|
-
if (item.id !== res.id) {
|
|
5278
|
-
this.subMenus.splice(parseInt(num, 10), this.subMenus.length - 1, _extends({}, res, {
|
|
5279
|
-
data: data
|
|
5280
|
-
}));
|
|
5281
|
-
}
|
|
5282
|
-
} else {
|
|
5283
|
-
this.subMenus.push(_extends({}, res, {
|
|
5284
|
-
data: data
|
|
5285
|
-
}));
|
|
5286
|
-
}
|
|
5387
|
+
obj.backgroundColor = this.backgroundColor;
|
|
5287
5388
|
}
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5389
|
+
}
|
|
5390
|
+
return obj;
|
|
5391
|
+
},
|
|
5392
|
+
handleClick: function handleClick(res) {
|
|
5393
|
+
this.active = res.id;
|
|
5394
|
+
if (res.url) {
|
|
5395
|
+
if (res.urlopenmode == 1) {
|
|
5396
|
+
util.win.open(res.url);
|
|
5397
|
+
return;
|
|
5398
|
+
} else if (res.urlopenmode == 2) {
|
|
5399
|
+
util.win.location.href = res.url;
|
|
5400
|
+
return;
|
|
5296
5401
|
}
|
|
5297
5402
|
}
|
|
5403
|
+
this.$emit('command', res);
|
|
5298
5404
|
},
|
|
5299
|
-
|
|
5300
|
-
this
|
|
5301
|
-
this.subMenus = [];
|
|
5405
|
+
clearActive: function clearActive() {
|
|
5406
|
+
this.active = '';
|
|
5302
5407
|
}
|
|
5303
5408
|
}
|
|
5304
5409
|
});
|
|
5305
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/
|
|
5306
|
-
/* harmony default export */ var
|
|
5307
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/
|
|
5410
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/menu-list.vue?vue&type=script&lang=js&
|
|
5411
|
+
/* harmony default export */ var simplicity_menu_listvue_type_script_lang_js_ = (menu_listvue_type_script_lang_js_);
|
|
5412
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/menu-list.vue
|
|
5308
5413
|
|
|
5309
5414
|
|
|
5310
5415
|
|
|
@@ -5312,374 +5417,578 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
5312
5417
|
|
|
5313
5418
|
/* normalize component */
|
|
5314
5419
|
|
|
5315
|
-
var
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5420
|
+
var menu_list_component = Object(componentNormalizer["a" /* default */])(
|
|
5421
|
+
simplicity_menu_listvue_type_script_lang_js_,
|
|
5422
|
+
menu_listvue_type_template_id_118643de_scoped_true_render,
|
|
5423
|
+
menu_listvue_type_template_id_118643de_scoped_true_staticRenderFns,
|
|
5319
5424
|
false,
|
|
5320
5425
|
null,
|
|
5321
|
-
"
|
|
5426
|
+
"118643de",
|
|
5322
5427
|
null
|
|
5323
5428
|
|
|
5324
5429
|
)
|
|
5325
5430
|
|
|
5326
|
-
/* harmony default export */ var
|
|
5327
|
-
// CONCATENATED MODULE: ./node_modules/
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5431
|
+
/* harmony default export */ var menu_list = (menu_list_component.exports);
|
|
5432
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/sub-menu.vue?vue&type=script&lang=js&
|
|
5433
|
+
//
|
|
5434
|
+
//
|
|
5435
|
+
//
|
|
5436
|
+
//
|
|
5437
|
+
//
|
|
5438
|
+
//
|
|
5439
|
+
//
|
|
5440
|
+
//
|
|
5441
|
+
//
|
|
5442
|
+
//
|
|
5443
|
+
//
|
|
5444
|
+
//
|
|
5445
|
+
//
|
|
5446
|
+
//
|
|
5447
|
+
//
|
|
5448
|
+
//
|
|
5449
|
+
//
|
|
5450
|
+
//
|
|
5451
|
+
//
|
|
5452
|
+
//
|
|
5453
|
+
//
|
|
5454
|
+
//
|
|
5455
|
+
//
|
|
5456
|
+
//
|
|
5457
|
+
//
|
|
5458
|
+
//
|
|
5459
|
+
//
|
|
5460
|
+
//
|
|
5461
|
+
//
|
|
5462
|
+
//
|
|
5463
|
+
//
|
|
5464
|
+
//
|
|
5465
|
+
//
|
|
5466
|
+
//
|
|
5467
|
+
//
|
|
5468
|
+
//
|
|
5469
|
+
//
|
|
5470
|
+
//
|
|
5471
|
+
//
|
|
5472
|
+
//
|
|
5473
|
+
//
|
|
5474
|
+
//
|
|
5475
|
+
//
|
|
5476
|
+
//
|
|
5477
|
+
//
|
|
5478
|
+
|
|
5479
|
+
|
|
5480
|
+
/* harmony default export */ var sub_menuvue_type_script_lang_js_ = ({
|
|
5481
|
+
name: 'SubMenu',
|
|
5482
|
+
components: { MenuList: menu_list },
|
|
5483
|
+
props: {
|
|
5484
|
+
title: String,
|
|
5485
|
+
color: {
|
|
5486
|
+
type: [String, Array],
|
|
5487
|
+
default: '#fff'
|
|
5488
|
+
},
|
|
5489
|
+
backgroundColor: {
|
|
5490
|
+
type: [String, Array],
|
|
5491
|
+
default: function _default() {
|
|
5492
|
+
return ['#FF9C52', '#2591F7', '#17C27B', '#1265D7', '#FFC724', '#E34D59'];
|
|
5493
|
+
}
|
|
5494
|
+
},
|
|
5495
|
+
size: {
|
|
5496
|
+
type: Number,
|
|
5497
|
+
default: 220
|
|
5498
|
+
},
|
|
5499
|
+
visible: Boolean,
|
|
5500
|
+
text: String,
|
|
5501
|
+
menuIcon: String,
|
|
5502
|
+
children: {
|
|
5503
|
+
type: Array,
|
|
5504
|
+
default: function _default() {
|
|
5505
|
+
return [];
|
|
5506
|
+
}
|
|
5507
|
+
},
|
|
5508
|
+
fourthTabs: {
|
|
5509
|
+
type: Array,
|
|
5510
|
+
default: function _default() {
|
|
5511
|
+
return [];
|
|
5512
|
+
}
|
|
5513
|
+
}
|
|
5514
|
+
},
|
|
5515
|
+
data: function data() {
|
|
5516
|
+
return {
|
|
5517
|
+
fold: false,
|
|
5518
|
+
width: this.size,
|
|
5519
|
+
active: '',
|
|
5520
|
+
subMenus: []
|
|
5521
|
+
};
|
|
5522
|
+
},
|
|
5523
|
+
|
|
5524
|
+
computed: {
|
|
5525
|
+
menus: function menus() {
|
|
5526
|
+
return [].concat(this.children, this.fourthTabs);
|
|
5527
|
+
},
|
|
5528
|
+
|
|
5529
|
+
show: {
|
|
5530
|
+
get: function get() {
|
|
5531
|
+
return this.visible;
|
|
5532
|
+
},
|
|
5533
|
+
set: function set(val) {
|
|
5534
|
+
this.$emit('update:visible', val);
|
|
5535
|
+
return val;
|
|
5536
|
+
}
|
|
5537
|
+
}
|
|
5538
|
+
},
|
|
5539
|
+
watch: {},
|
|
5540
|
+
created: function created() {},
|
|
5541
|
+
mounted: function mounted() {},
|
|
5542
|
+
|
|
5543
|
+
methods: {
|
|
5544
|
+
handleFold: function handleFold(res) {
|
|
5545
|
+
this.fold = res;
|
|
5546
|
+
if (res) {
|
|
5547
|
+
this.width = 48;
|
|
5548
|
+
} else {
|
|
5549
|
+
this.width = this.size;
|
|
5550
|
+
}
|
|
5551
|
+
this.$emit('update:fold', res);
|
|
5552
|
+
},
|
|
5553
|
+
handleCommand: function handleCommand(res) {
|
|
5554
|
+
this.$emit('command', res);
|
|
5555
|
+
},
|
|
5556
|
+
clearSubmenu: function clearSubmenu() {
|
|
5557
|
+
this.$refs.menus.clearActive();
|
|
5558
|
+
this.subMenus = [];
|
|
5559
|
+
}
|
|
5560
|
+
}
|
|
5561
|
+
});
|
|
5562
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue?vue&type=script&lang=js&
|
|
5563
|
+
/* harmony default export */ var simplicity_sub_menuvue_type_script_lang_js_ = (sub_menuvue_type_script_lang_js_);
|
|
5564
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue
|
|
5565
|
+
|
|
5566
|
+
|
|
5567
|
+
|
|
5568
|
+
|
|
5569
|
+
|
|
5570
|
+
/* normalize component */
|
|
5571
|
+
|
|
5572
|
+
var sub_menu_component = Object(componentNormalizer["a" /* default */])(
|
|
5573
|
+
simplicity_sub_menuvue_type_script_lang_js_,
|
|
5574
|
+
sub_menuvue_type_template_id_e591bf96_scoped_true_render,
|
|
5575
|
+
sub_menuvue_type_template_id_e591bf96_scoped_true_staticRenderFns,
|
|
5576
|
+
false,
|
|
5577
|
+
null,
|
|
5578
|
+
"e591bf96",
|
|
5579
|
+
null
|
|
5580
|
+
|
|
5581
|
+
)
|
|
5582
|
+
|
|
5583
|
+
/* harmony default export */ var sub_menu = (sub_menu_component.exports);
|
|
5584
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/apps.vue?vue&type=template&id=62050c35&scoped=true&
|
|
5585
|
+
var appsvue_type_template_id_62050c35_scoped_true_render = function () {
|
|
5586
|
+
var this$1 = this
|
|
5587
|
+
var _vm = this
|
|
5588
|
+
var _h = _vm.$createElement
|
|
5332
5589
|
var _c = _vm._self._c || _h
|
|
5333
|
-
return _c(
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5590
|
+
return _c(
|
|
5591
|
+
"el-drawer",
|
|
5592
|
+
{
|
|
5593
|
+
staticClass: "es-simplicity-apps",
|
|
5594
|
+
attrs: {
|
|
5595
|
+
direction: "ltr",
|
|
5596
|
+
"modal-class": "es-simplicity-apps-modal",
|
|
5597
|
+
size: "90%",
|
|
5598
|
+
"modal-append-to-body": false,
|
|
5599
|
+
"with-header": false,
|
|
5600
|
+
visible: _vm.show,
|
|
5601
|
+
},
|
|
5602
|
+
on: {
|
|
5603
|
+
"update:visible": function ($event) {
|
|
5604
|
+
_vm.show = $event
|
|
5605
|
+
},
|
|
5606
|
+
},
|
|
5607
|
+
},
|
|
5608
|
+
[
|
|
5609
|
+
_c("div", { staticClass: "es-simplicity_apps" }, [
|
|
5338
5610
|
_c(
|
|
5339
5611
|
"div",
|
|
5340
|
-
{ staticClass: "es-simplicity_apps-
|
|
5612
|
+
{ staticClass: "es-simplicity_apps-all" },
|
|
5341
5613
|
[
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
staticClass: "es-simplicity_apps-
|
|
5614
|
+
_c(
|
|
5615
|
+
"div",
|
|
5616
|
+
{ staticClass: "es-simplicity_apps-title" },
|
|
5617
|
+
[
|
|
5618
|
+
_vm._v("\n 所有业务系统\n "),
|
|
5619
|
+
_c("el-input", {
|
|
5620
|
+
staticClass: "es-simplicity_apps-search",
|
|
5621
|
+
attrs: {
|
|
5622
|
+
size: "medium",
|
|
5623
|
+
placeholder: "请输入关键字",
|
|
5624
|
+
"prefix-icon": "el-icon-search",
|
|
5625
|
+
},
|
|
5626
|
+
model: {
|
|
5627
|
+
value: _vm.value,
|
|
5628
|
+
callback: function ($$v) {
|
|
5629
|
+
_vm.value = $$v
|
|
5630
|
+
},
|
|
5631
|
+
expression: "value",
|
|
5632
|
+
},
|
|
5633
|
+
}),
|
|
5634
|
+
],
|
|
5635
|
+
1
|
|
5636
|
+
),
|
|
5637
|
+
_c(
|
|
5638
|
+
"div",
|
|
5639
|
+
{
|
|
5640
|
+
staticClass: "es-simplicity_apps-box",
|
|
5641
|
+
on: { mousewheel: _vm.handleWheel },
|
|
5642
|
+
},
|
|
5643
|
+
[
|
|
5644
|
+
_c(
|
|
5645
|
+
"ul",
|
|
5646
|
+
{ staticClass: "es-simplicity_apps-list" },
|
|
5647
|
+
_vm._l(_vm._applications, function (item) {
|
|
5648
|
+
return _c(
|
|
5649
|
+
"li",
|
|
5650
|
+
{
|
|
5651
|
+
key: item.id,
|
|
5652
|
+
staticClass: "es-simplicity_apps-list-item",
|
|
5653
|
+
},
|
|
5654
|
+
[
|
|
5655
|
+
_c(
|
|
5656
|
+
"div",
|
|
5657
|
+
{
|
|
5658
|
+
staticClass: "es-simplicity_apps-list-content",
|
|
5659
|
+
class: {
|
|
5660
|
+
"es-simplicity_apps-disabled": !item.permission,
|
|
5661
|
+
},
|
|
5662
|
+
on: {
|
|
5663
|
+
click: function ($event) {
|
|
5664
|
+
_vm.handleClick(item)
|
|
5665
|
+
},
|
|
5666
|
+
},
|
|
5667
|
+
},
|
|
5668
|
+
[
|
|
5669
|
+
_c(
|
|
5670
|
+
"el-badge",
|
|
5671
|
+
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5672
|
+
[
|
|
5673
|
+
_c("es-icon", {
|
|
5674
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5675
|
+
attrs: {
|
|
5676
|
+
contents:
|
|
5677
|
+
item.icons || item.icon || _vm.menuIcon,
|
|
5678
|
+
},
|
|
5679
|
+
}),
|
|
5680
|
+
],
|
|
5681
|
+
1
|
|
5682
|
+
),
|
|
5683
|
+
_c(
|
|
5684
|
+
"div",
|
|
5685
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5686
|
+
[
|
|
5687
|
+
_vm._v(
|
|
5688
|
+
"\n " +
|
|
5689
|
+
_vm._s(item.text || item.name) +
|
|
5690
|
+
"\n "
|
|
5691
|
+
),
|
|
5692
|
+
]
|
|
5693
|
+
),
|
|
5694
|
+
_c(
|
|
5695
|
+
"div",
|
|
5696
|
+
{ staticClass: "es-simplicity_apps-hover" },
|
|
5697
|
+
[
|
|
5698
|
+
_c("es-icon", {
|
|
5699
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5700
|
+
attrs: {
|
|
5701
|
+
contents: item.permission
|
|
5702
|
+
? "es-icon-jiantou-next"
|
|
5703
|
+
: "es-icon-mm",
|
|
5704
|
+
},
|
|
5705
|
+
}),
|
|
5706
|
+
_c(
|
|
5707
|
+
"div",
|
|
5708
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5709
|
+
[
|
|
5710
|
+
_vm._v(
|
|
5711
|
+
"\n " +
|
|
5712
|
+
_vm._s(
|
|
5713
|
+
item.permission
|
|
5714
|
+
? "进入系统"
|
|
5715
|
+
: "暂无权限"
|
|
5716
|
+
) +
|
|
5717
|
+
"\n "
|
|
5718
|
+
),
|
|
5719
|
+
]
|
|
5720
|
+
),
|
|
5721
|
+
],
|
|
5722
|
+
1
|
|
5723
|
+
),
|
|
5724
|
+
],
|
|
5725
|
+
1
|
|
5726
|
+
),
|
|
5727
|
+
]
|
|
5728
|
+
)
|
|
5729
|
+
}),
|
|
5730
|
+
0
|
|
5731
|
+
),
|
|
5732
|
+
]
|
|
5733
|
+
),
|
|
5734
|
+
_c("el-pagination", {
|
|
5735
|
+
staticClass: "es-simplicity_apps-pagination",
|
|
5345
5736
|
attrs: {
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
"
|
|
5737
|
+
background: "",
|
|
5738
|
+
layout: "total,prev, pager, next",
|
|
5739
|
+
"total-text": "共 {total} 个业务系统",
|
|
5740
|
+
"page-size": _vm.appSize,
|
|
5741
|
+
total: _vm.apps.length,
|
|
5742
|
+
"current-page": _vm.appNum,
|
|
5349
5743
|
},
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5744
|
+
on: {
|
|
5745
|
+
"update:currentPage": function ($event) {
|
|
5746
|
+
_vm.appNum = $event
|
|
5747
|
+
},
|
|
5748
|
+
"current-change": function (res) {
|
|
5749
|
+
this$1.handleChange(res, 0)
|
|
5354
5750
|
},
|
|
5355
|
-
expression: "value",
|
|
5356
5751
|
},
|
|
5357
5752
|
}),
|
|
5358
5753
|
],
|
|
5359
5754
|
1
|
|
5360
5755
|
),
|
|
5361
|
-
_c("div", { staticClass: "es-simplicity_apps-
|
|
5756
|
+
_c("div", { staticClass: "es-simplicity_apps-other" }, [
|
|
5362
5757
|
_c(
|
|
5363
|
-
"
|
|
5364
|
-
{ staticClass: "es-simplicity_apps-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
"
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5758
|
+
"div",
|
|
5759
|
+
{ staticClass: "es-simplicity_apps-business" },
|
|
5760
|
+
[
|
|
5761
|
+
_c("div", { staticClass: "es-simplicity_apps-title" }, [
|
|
5762
|
+
_vm._v("专项业务系统"),
|
|
5763
|
+
]),
|
|
5764
|
+
_c(
|
|
5765
|
+
"ul",
|
|
5766
|
+
{ staticClass: "es-simplicity_apps-list" },
|
|
5767
|
+
_vm._l(_vm._business, function (item, index) {
|
|
5768
|
+
return _c(
|
|
5769
|
+
"li",
|
|
5372
5770
|
{
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
"es-simplicity_apps-disabled": !item.permission,
|
|
5376
|
-
},
|
|
5377
|
-
on: {
|
|
5378
|
-
click: function ($event) {
|
|
5379
|
-
_vm.handleClick(item)
|
|
5380
|
-
},
|
|
5381
|
-
},
|
|
5771
|
+
key: item.id,
|
|
5772
|
+
staticClass: "es-simplicity_apps-list-item",
|
|
5382
5773
|
},
|
|
5383
5774
|
[
|
|
5384
|
-
_c(
|
|
5385
|
-
"el-badge",
|
|
5386
|
-
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5387
|
-
[
|
|
5388
|
-
_c("es-icon", {
|
|
5389
|
-
staticClass: "es-simplicity_apps-icon",
|
|
5390
|
-
attrs: {
|
|
5391
|
-
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5392
|
-
},
|
|
5393
|
-
}),
|
|
5394
|
-
],
|
|
5395
|
-
1
|
|
5396
|
-
),
|
|
5397
|
-
_c("div", { staticClass: "es-simplicity_apps-text" }, [
|
|
5398
|
-
_vm._v(
|
|
5399
|
-
"\n " +
|
|
5400
|
-
_vm._s(item.text || item.name) +
|
|
5401
|
-
"\n "
|
|
5402
|
-
),
|
|
5403
|
-
]),
|
|
5404
5775
|
_c(
|
|
5405
5776
|
"div",
|
|
5406
|
-
{
|
|
5777
|
+
{
|
|
5778
|
+
staticClass: "es-simplicity_apps-list-content",
|
|
5779
|
+
class: {
|
|
5780
|
+
"es-simplicity_apps-disabled": !item.permission,
|
|
5781
|
+
},
|
|
5782
|
+
on: {
|
|
5783
|
+
click: function ($event) {
|
|
5784
|
+
_vm.handleClick(item)
|
|
5785
|
+
},
|
|
5786
|
+
},
|
|
5787
|
+
},
|
|
5407
5788
|
[
|
|
5408
5789
|
_c("es-icon", {
|
|
5409
|
-
staticClass: "es-
|
|
5790
|
+
staticClass: "es-simplicity_app-icon",
|
|
5791
|
+
style: _vm.setStyle(index),
|
|
5410
5792
|
attrs: {
|
|
5411
|
-
contents: item.
|
|
5412
|
-
? "es-icon-jiantou-next"
|
|
5413
|
-
: "es-icon-mm",
|
|
5793
|
+
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5414
5794
|
},
|
|
5415
5795
|
}),
|
|
5416
5796
|
_c(
|
|
5417
|
-
"
|
|
5418
|
-
{
|
|
5419
|
-
[
|
|
5420
|
-
_vm._v(
|
|
5421
|
-
"\n " +
|
|
5422
|
-
_vm._s(
|
|
5423
|
-
item.permission ? "进入系统" : "暂无权限"
|
|
5424
|
-
) +
|
|
5425
|
-
"\n "
|
|
5426
|
-
),
|
|
5427
|
-
]
|
|
5428
|
-
),
|
|
5429
|
-
],
|
|
5430
|
-
1
|
|
5431
|
-
),
|
|
5432
|
-
],
|
|
5433
|
-
1
|
|
5434
|
-
),
|
|
5435
|
-
]
|
|
5436
|
-
)
|
|
5437
|
-
}),
|
|
5438
|
-
0
|
|
5439
|
-
),
|
|
5440
|
-
]),
|
|
5441
|
-
_c("el-pagination", {
|
|
5442
|
-
staticClass: "es-simplicity_apps-pagination",
|
|
5443
|
-
attrs: {
|
|
5444
|
-
background: "",
|
|
5445
|
-
layout: "total,prev, pager, next",
|
|
5446
|
-
"total-text": "共 {total} 个业务系统",
|
|
5447
|
-
"page-size": _vm.appSize,
|
|
5448
|
-
total: _vm.apps.length,
|
|
5449
|
-
},
|
|
5450
|
-
on: {
|
|
5451
|
-
"current-change": function (res) {
|
|
5452
|
-
this$1.handleChange(res, 0)
|
|
5453
|
-
},
|
|
5454
|
-
},
|
|
5455
|
-
}),
|
|
5456
|
-
],
|
|
5457
|
-
1
|
|
5458
|
-
),
|
|
5459
|
-
_c("div", { staticClass: "es-simplicity_apps-other" }, [
|
|
5460
|
-
_c(
|
|
5461
|
-
"div",
|
|
5462
|
-
{ staticClass: "es-simplicity_apps-business" },
|
|
5463
|
-
[
|
|
5464
|
-
_c("div", { staticClass: "es-simplicity_apps-title" }, [
|
|
5465
|
-
_vm._v("专项业务系统"),
|
|
5466
|
-
]),
|
|
5467
|
-
_c(
|
|
5468
|
-
"ul",
|
|
5469
|
-
{ staticClass: "es-simplicity_apps-list" },
|
|
5470
|
-
_vm._l(_vm._business, function (item, index) {
|
|
5471
|
-
return _c(
|
|
5472
|
-
"li",
|
|
5473
|
-
{ key: item.id, staticClass: "es-simplicity_apps-list-item" },
|
|
5474
|
-
[
|
|
5475
|
-
_c(
|
|
5476
|
-
"div",
|
|
5477
|
-
{
|
|
5478
|
-
staticClass: "es-simplicity_apps-list-content",
|
|
5479
|
-
class: {
|
|
5480
|
-
"es-simplicity_apps-disabled": !item.permission,
|
|
5481
|
-
},
|
|
5482
|
-
on: {
|
|
5483
|
-
click: function ($event) {
|
|
5484
|
-
_vm.handleClick(item)
|
|
5485
|
-
},
|
|
5486
|
-
},
|
|
5487
|
-
},
|
|
5488
|
-
[
|
|
5489
|
-
_c("es-icon", {
|
|
5490
|
-
staticClass: "es-simplicity_app-icon",
|
|
5491
|
-
style: _vm.setStyle(index),
|
|
5492
|
-
attrs: {
|
|
5493
|
-
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5494
|
-
},
|
|
5495
|
-
}),
|
|
5496
|
-
_c(
|
|
5497
|
-
"el-badge",
|
|
5498
|
-
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5499
|
-
[
|
|
5500
|
-
_c(
|
|
5501
|
-
"div",
|
|
5502
|
-
{ staticClass: "es-simplicity_apps-text" },
|
|
5797
|
+
"el-badge",
|
|
5798
|
+
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5503
5799
|
[
|
|
5504
|
-
|
|
5505
|
-
"
|
|
5506
|
-
|
|
5507
|
-
|
|
5800
|
+
_c(
|
|
5801
|
+
"div",
|
|
5802
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5803
|
+
[
|
|
5804
|
+
_vm._v(
|
|
5805
|
+
"\n " +
|
|
5806
|
+
_vm._s(item.text || item.name) +
|
|
5807
|
+
"\n "
|
|
5808
|
+
),
|
|
5809
|
+
]
|
|
5508
5810
|
),
|
|
5509
5811
|
]
|
|
5510
5812
|
),
|
|
5511
|
-
]
|
|
5512
|
-
),
|
|
5513
|
-
_c(
|
|
5514
|
-
"div",
|
|
5515
|
-
{ staticClass: "es-simplicity_apps-hover" },
|
|
5516
|
-
[
|
|
5517
|
-
_c("es-icon", {
|
|
5518
|
-
staticClass: "es-simplicity_apps-icon",
|
|
5519
|
-
attrs: {
|
|
5520
|
-
contents: item.permission
|
|
5521
|
-
? "es-icon-jiantou-next"
|
|
5522
|
-
: "es-icon-mm",
|
|
5523
|
-
},
|
|
5524
|
-
}),
|
|
5525
5813
|
_c(
|
|
5526
5814
|
"div",
|
|
5527
|
-
{ staticClass: "es-simplicity_apps-
|
|
5815
|
+
{ staticClass: "es-simplicity_apps-hover" },
|
|
5528
5816
|
[
|
|
5529
|
-
|
|
5530
|
-
"
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5817
|
+
_c("es-icon", {
|
|
5818
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5819
|
+
attrs: {
|
|
5820
|
+
contents: item.permission
|
|
5821
|
+
? "es-icon-jiantou-next"
|
|
5822
|
+
: "es-icon-mm",
|
|
5823
|
+
},
|
|
5824
|
+
}),
|
|
5825
|
+
_c(
|
|
5826
|
+
"div",
|
|
5827
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5828
|
+
[
|
|
5829
|
+
_vm._v(
|
|
5830
|
+
"\n " +
|
|
5831
|
+
_vm._s(
|
|
5832
|
+
item.permission
|
|
5833
|
+
? "进入系统"
|
|
5834
|
+
: "暂无权限"
|
|
5835
|
+
) +
|
|
5836
|
+
"\n "
|
|
5837
|
+
),
|
|
5838
|
+
]
|
|
5535
5839
|
),
|
|
5536
|
-
]
|
|
5840
|
+
],
|
|
5841
|
+
1
|
|
5537
5842
|
),
|
|
5538
5843
|
],
|
|
5539
5844
|
1
|
|
5540
5845
|
),
|
|
5541
|
-
]
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
)
|
|
5546
|
-
|
|
5547
|
-
|
|
5846
|
+
]
|
|
5847
|
+
)
|
|
5848
|
+
}),
|
|
5849
|
+
0
|
|
5850
|
+
),
|
|
5851
|
+
_c("el-pagination", {
|
|
5852
|
+
staticClass: "es-simplicity_apps-pagination",
|
|
5853
|
+
attrs: {
|
|
5854
|
+
background: "",
|
|
5855
|
+
layout: "total,prev, pager, next",
|
|
5856
|
+
"total-text": "共 {total} 专项业务系统",
|
|
5857
|
+
"page-size": _vm.appSize,
|
|
5858
|
+
total: _vm.business.length,
|
|
5859
|
+
},
|
|
5860
|
+
on: {
|
|
5861
|
+
"current-change": function (res) {
|
|
5862
|
+
this$1.handleChange(res, 1)
|
|
5863
|
+
},
|
|
5864
|
+
},
|
|
5865
|
+
}),
|
|
5866
|
+
],
|
|
5867
|
+
1
|
|
5548
5868
|
),
|
|
5549
|
-
_c("el-pagination", {
|
|
5550
|
-
staticClass: "es-simplicity_apps-pagination",
|
|
5551
|
-
attrs: {
|
|
5552
|
-
background: "",
|
|
5553
|
-
layout: "total,prev, pager, next",
|
|
5554
|
-
"total-text": "共 {total} 专项业务系统",
|
|
5555
|
-
"page-size": _vm.appSize,
|
|
5556
|
-
total: _vm.business.length,
|
|
5557
|
-
},
|
|
5558
|
-
on: {
|
|
5559
|
-
"current-change": function (res) {
|
|
5560
|
-
this$1.handleChange(res, 1)
|
|
5561
|
-
},
|
|
5562
|
-
},
|
|
5563
|
-
}),
|
|
5564
|
-
],
|
|
5565
|
-
1
|
|
5566
|
-
),
|
|
5567
|
-
_c(
|
|
5568
|
-
"div",
|
|
5569
|
-
{ staticClass: "es-simplicity_apps-systems" },
|
|
5570
|
-
[
|
|
5571
|
-
_c("div", { staticClass: "es-simplicity_apps-title" }, [
|
|
5572
|
-
_vm._v("系统设置"),
|
|
5573
|
-
]),
|
|
5574
5869
|
_c(
|
|
5575
|
-
"
|
|
5576
|
-
{ staticClass: "es-simplicity_apps-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
"
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5870
|
+
"div",
|
|
5871
|
+
{ staticClass: "es-simplicity_apps-systems" },
|
|
5872
|
+
[
|
|
5873
|
+
_c("div", { staticClass: "es-simplicity_apps-title" }, [
|
|
5874
|
+
_vm._v("系统设置"),
|
|
5875
|
+
]),
|
|
5876
|
+
_c(
|
|
5877
|
+
"ul",
|
|
5878
|
+
{ staticClass: "es-simplicity_apps-list" },
|
|
5879
|
+
_vm._l(_vm._systems, function (item, index) {
|
|
5880
|
+
return _c(
|
|
5881
|
+
"li",
|
|
5584
5882
|
{
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
"es-simplicity_apps-disabled": !item.permission,
|
|
5588
|
-
},
|
|
5589
|
-
on: {
|
|
5590
|
-
click: function ($event) {
|
|
5591
|
-
_vm.handleClick(item)
|
|
5592
|
-
},
|
|
5593
|
-
},
|
|
5883
|
+
key: item.id,
|
|
5884
|
+
staticClass: "es-simplicity_apps-list-item",
|
|
5594
5885
|
},
|
|
5595
|
-
[
|
|
5596
|
-
_c("es-icon", {
|
|
5597
|
-
staticClass: "es-simplicity_app-icon",
|
|
5598
|
-
style: _vm.setStyle(index),
|
|
5599
|
-
attrs: {
|
|
5600
|
-
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5601
|
-
},
|
|
5602
|
-
}),
|
|
5603
|
-
_c(
|
|
5604
|
-
"el-badge",
|
|
5605
|
-
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5606
|
-
[
|
|
5607
|
-
_c(
|
|
5608
|
-
"div",
|
|
5609
|
-
{ staticClass: "es-simplicity_apps-text" },
|
|
5610
|
-
[
|
|
5611
|
-
_vm._v(
|
|
5612
|
-
"\n " +
|
|
5613
|
-
_vm._s(item.text || item.name) +
|
|
5614
|
-
"\n "
|
|
5615
|
-
),
|
|
5616
|
-
]
|
|
5617
|
-
),
|
|
5618
|
-
]
|
|
5619
|
-
),
|
|
5886
|
+
[
|
|
5620
5887
|
_c(
|
|
5621
5888
|
"div",
|
|
5622
|
-
{
|
|
5889
|
+
{
|
|
5890
|
+
staticClass: "es-simplicity_apps-list-content",
|
|
5891
|
+
class: {
|
|
5892
|
+
"es-simplicity_apps-disabled": !item.permission,
|
|
5893
|
+
},
|
|
5894
|
+
on: {
|
|
5895
|
+
click: function ($event) {
|
|
5896
|
+
_vm.handleClick(item)
|
|
5897
|
+
},
|
|
5898
|
+
},
|
|
5899
|
+
},
|
|
5623
5900
|
[
|
|
5624
5901
|
_c("es-icon", {
|
|
5625
|
-
staticClass: "es-
|
|
5902
|
+
staticClass: "es-simplicity_app-icon",
|
|
5903
|
+
style: _vm.setStyle(index),
|
|
5626
5904
|
attrs: {
|
|
5627
|
-
contents: item.
|
|
5628
|
-
? "es-icon-jiantou-next"
|
|
5629
|
-
: "es-icon-mm",
|
|
5905
|
+
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5630
5906
|
},
|
|
5631
5907
|
}),
|
|
5632
5908
|
_c(
|
|
5633
|
-
"
|
|
5634
|
-
{
|
|
5909
|
+
"el-badge",
|
|
5910
|
+
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5635
5911
|
[
|
|
5636
|
-
|
|
5637
|
-
"
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5912
|
+
_c(
|
|
5913
|
+
"div",
|
|
5914
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5915
|
+
[
|
|
5916
|
+
_vm._v(
|
|
5917
|
+
"\n " +
|
|
5918
|
+
_vm._s(item.text || item.name) +
|
|
5919
|
+
"\n "
|
|
5920
|
+
),
|
|
5921
|
+
]
|
|
5642
5922
|
),
|
|
5643
5923
|
]
|
|
5644
5924
|
),
|
|
5925
|
+
_c(
|
|
5926
|
+
"div",
|
|
5927
|
+
{ staticClass: "es-simplicity_apps-hover" },
|
|
5928
|
+
[
|
|
5929
|
+
_c("es-icon", {
|
|
5930
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5931
|
+
attrs: {
|
|
5932
|
+
contents: item.permission
|
|
5933
|
+
? "es-icon-jiantou-next"
|
|
5934
|
+
: "es-icon-mm",
|
|
5935
|
+
},
|
|
5936
|
+
}),
|
|
5937
|
+
_c(
|
|
5938
|
+
"div",
|
|
5939
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5940
|
+
[
|
|
5941
|
+
_vm._v(
|
|
5942
|
+
"\n " +
|
|
5943
|
+
_vm._s(
|
|
5944
|
+
item.permission
|
|
5945
|
+
? "进入系统"
|
|
5946
|
+
: "暂无权限"
|
|
5947
|
+
) +
|
|
5948
|
+
"\n "
|
|
5949
|
+
),
|
|
5950
|
+
]
|
|
5951
|
+
),
|
|
5952
|
+
],
|
|
5953
|
+
1
|
|
5954
|
+
),
|
|
5645
5955
|
],
|
|
5646
5956
|
1
|
|
5647
5957
|
),
|
|
5648
|
-
]
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
)
|
|
5653
|
-
|
|
5654
|
-
|
|
5958
|
+
]
|
|
5959
|
+
)
|
|
5960
|
+
}),
|
|
5961
|
+
0
|
|
5962
|
+
),
|
|
5963
|
+
_c("el-pagination", {
|
|
5964
|
+
staticClass: "es-simplicity_apps-pagination",
|
|
5965
|
+
attrs: {
|
|
5966
|
+
background: "",
|
|
5967
|
+
layout: "total,prev, pager, next",
|
|
5968
|
+
"total-text": "共 {total} 系统设置",
|
|
5969
|
+
"hide-on-single-page": "",
|
|
5970
|
+
"page-size": _vm.appSize,
|
|
5971
|
+
total: _vm.business.length,
|
|
5972
|
+
},
|
|
5973
|
+
on: {
|
|
5974
|
+
"current-change": function (res) {
|
|
5975
|
+
this$1.handleChange(res, 2)
|
|
5976
|
+
},
|
|
5977
|
+
},
|
|
5978
|
+
}),
|
|
5979
|
+
],
|
|
5980
|
+
1
|
|
5655
5981
|
),
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
layout: "total,prev, pager, next",
|
|
5661
|
-
"total-text": "共 {total} 系统设置",
|
|
5662
|
-
"hide-on-single-page": "",
|
|
5663
|
-
"page-size": _vm.appSize,
|
|
5664
|
-
total: _vm.business.length,
|
|
5665
|
-
},
|
|
5666
|
-
on: {
|
|
5667
|
-
"current-change": function (res) {
|
|
5668
|
-
this$1.handleChange(res, 2)
|
|
5669
|
-
},
|
|
5670
|
-
},
|
|
5671
|
-
}),
|
|
5672
|
-
],
|
|
5673
|
-
1
|
|
5674
|
-
),
|
|
5675
|
-
]),
|
|
5676
|
-
])
|
|
5982
|
+
]),
|
|
5983
|
+
]),
|
|
5984
|
+
]
|
|
5985
|
+
)
|
|
5677
5986
|
}
|
|
5678
|
-
var
|
|
5679
|
-
|
|
5987
|
+
var appsvue_type_template_id_62050c35_scoped_true_staticRenderFns = []
|
|
5988
|
+
appsvue_type_template_id_62050c35_scoped_true_render._withStripped = true
|
|
5680
5989
|
|
|
5681
5990
|
|
|
5682
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/apps.vue?vue&type=template&id=
|
|
5991
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/apps.vue?vue&type=template&id=62050c35&scoped=true&
|
|
5683
5992
|
|
|
5684
5993
|
// EXTERNAL MODULE: external "throttle-debounce"
|
|
5685
5994
|
var external_throttle_debounce_ = __webpack_require__(11);
|
|
@@ -5860,12 +6169,24 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
5860
6169
|
//
|
|
5861
6170
|
//
|
|
5862
6171
|
//
|
|
6172
|
+
//
|
|
6173
|
+
//
|
|
6174
|
+
//
|
|
6175
|
+
//
|
|
6176
|
+
//
|
|
6177
|
+
//
|
|
6178
|
+
//
|
|
6179
|
+
//
|
|
6180
|
+
//
|
|
6181
|
+
//
|
|
6182
|
+
//
|
|
5863
6183
|
|
|
5864
6184
|
|
|
5865
6185
|
/* harmony default export */ var appsvue_type_script_lang_js_ = ({
|
|
5866
6186
|
name: 'Apps',
|
|
5867
6187
|
components: {},
|
|
5868
6188
|
props: {
|
|
6189
|
+
visible: Boolean,
|
|
5869
6190
|
//菜单、应用默认图标
|
|
5870
6191
|
menuIcon: String,
|
|
5871
6192
|
color: {
|
|
@@ -5913,6 +6234,15 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
5913
6234
|
},
|
|
5914
6235
|
|
|
5915
6236
|
computed: {
|
|
6237
|
+
show: {
|
|
6238
|
+
get: function get() {
|
|
6239
|
+
return this.visible;
|
|
6240
|
+
},
|
|
6241
|
+
set: function set(val) {
|
|
6242
|
+
this.$emit('update:visible', val);
|
|
6243
|
+
return val;
|
|
6244
|
+
}
|
|
6245
|
+
},
|
|
5916
6246
|
_applications: function _applications() {
|
|
5917
6247
|
var _this = this;
|
|
5918
6248
|
|
|
@@ -5989,6 +6319,16 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
5989
6319
|
var name = ['appNum', 'bsNum', 'sysNum'];
|
|
5990
6320
|
this[name[index]] = res;
|
|
5991
6321
|
},
|
|
6322
|
+
handleWheel: function handleWheel(e) {
|
|
6323
|
+
var direction = e.deltaY > 0 ? 'down' : 'up'; //deltaY为正则滚轮向下,为负滚轮向上
|
|
6324
|
+
var total = Math.ceil(this.apps.length / this.appSize);
|
|
6325
|
+
if (direction == 'up' && this.appNum > 1) {
|
|
6326
|
+
this.appNum -= 1;
|
|
6327
|
+
}
|
|
6328
|
+
if (direction == 'down' && this.appNum < total) {
|
|
6329
|
+
this.appNum += 1;
|
|
6330
|
+
}
|
|
6331
|
+
},
|
|
5992
6332
|
handleClick: function handleClick(res) {
|
|
5993
6333
|
this.$emit('click', res);
|
|
5994
6334
|
},
|
|
@@ -6023,18 +6363,18 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
6023
6363
|
|
|
6024
6364
|
var apps_component = Object(componentNormalizer["a" /* default */])(
|
|
6025
6365
|
simplicity_appsvue_type_script_lang_js_,
|
|
6026
|
-
|
|
6027
|
-
|
|
6366
|
+
appsvue_type_template_id_62050c35_scoped_true_render,
|
|
6367
|
+
appsvue_type_template_id_62050c35_scoped_true_staticRenderFns,
|
|
6028
6368
|
false,
|
|
6029
6369
|
null,
|
|
6030
|
-
"
|
|
6370
|
+
"62050c35",
|
|
6031
6371
|
null
|
|
6032
6372
|
|
|
6033
6373
|
)
|
|
6034
6374
|
|
|
6035
6375
|
/* harmony default export */ var simplicity_apps = (apps_component.exports);
|
|
6036
|
-
// 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/user.vue?vue&type=template&id=
|
|
6037
|
-
var
|
|
6376
|
+
// 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/user.vue?vue&type=template&id=4f9acb61&scoped=true&
|
|
6377
|
+
var uservue_type_template_id_4f9acb61_scoped_true_render = function () {
|
|
6038
6378
|
var _vm = this
|
|
6039
6379
|
var _h = _vm.$createElement
|
|
6040
6380
|
var _c = _vm._self._c || _h
|
|
@@ -6178,7 +6518,7 @@ var uservue_type_template_id_6366508b_scoped_true_render = function () {
|
|
|
6178
6518
|
},
|
|
6179
6519
|
[
|
|
6180
6520
|
_vm.visible
|
|
6181
|
-
? _c("
|
|
6521
|
+
? _c("user-info", {
|
|
6182
6522
|
attrs: { contents: _vm.contents, value: _vm.userInfo },
|
|
6183
6523
|
})
|
|
6184
6524
|
: _vm._e(),
|
|
@@ -6189,14 +6529,14 @@ var uservue_type_template_id_6366508b_scoped_true_render = function () {
|
|
|
6189
6529
|
1
|
|
6190
6530
|
)
|
|
6191
6531
|
}
|
|
6192
|
-
var
|
|
6193
|
-
|
|
6532
|
+
var uservue_type_template_id_4f9acb61_scoped_true_staticRenderFns = []
|
|
6533
|
+
uservue_type_template_id_4f9acb61_scoped_true_render._withStripped = true
|
|
6194
6534
|
|
|
6195
6535
|
|
|
6196
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=
|
|
6536
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=4f9acb61&scoped=true&
|
|
6197
6537
|
|
|
6198
|
-
// 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/userinfo.vue?vue&type=template&id=
|
|
6199
|
-
var
|
|
6538
|
+
// 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/userinfo.vue?vue&type=template&id=0dbd4cc6&
|
|
6539
|
+
var userinfovue_type_template_id_0dbd4cc6_render = function () {
|
|
6200
6540
|
var _vm = this
|
|
6201
6541
|
var _h = _vm.$createElement
|
|
6202
6542
|
var _c = _vm._self._c || _h
|
|
@@ -6212,11 +6552,11 @@ var userinfovue_type_template_id_55233cdc_render = function () {
|
|
|
6212
6552
|
2
|
|
6213
6553
|
)
|
|
6214
6554
|
}
|
|
6215
|
-
var
|
|
6216
|
-
|
|
6555
|
+
var userinfovue_type_template_id_0dbd4cc6_staticRenderFns = []
|
|
6556
|
+
userinfovue_type_template_id_0dbd4cc6_render._withStripped = true
|
|
6217
6557
|
|
|
6218
6558
|
|
|
6219
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=
|
|
6559
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=0dbd4cc6&
|
|
6220
6560
|
|
|
6221
6561
|
// 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&
|
|
6222
6562
|
//
|
|
@@ -6237,6 +6577,7 @@ userinfovue_type_template_id_55233cdc_render._withStripped = true
|
|
|
6237
6577
|
|
|
6238
6578
|
|
|
6239
6579
|
/* harmony default export */ var userinfovue_type_script_lang_js_ = ({
|
|
6580
|
+
name: 'UserInfo',
|
|
6240
6581
|
props: {
|
|
6241
6582
|
showNotify: {
|
|
6242
6583
|
type: Boolean,
|
|
@@ -6473,8 +6814,8 @@ userinfovue_type_template_id_55233cdc_render._withStripped = true
|
|
|
6473
6814
|
|
|
6474
6815
|
var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
6475
6816
|
simplicity_userinfovue_type_script_lang_js_,
|
|
6476
|
-
|
|
6477
|
-
|
|
6817
|
+
userinfovue_type_template_id_0dbd4cc6_render,
|
|
6818
|
+
userinfovue_type_template_id_0dbd4cc6_staticRenderFns,
|
|
6478
6819
|
false,
|
|
6479
6820
|
null,
|
|
6480
6821
|
null,
|
|
@@ -6558,7 +6899,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6558
6899
|
|
|
6559
6900
|
/* harmony default export */ var uservue_type_script_lang_js_ = ({
|
|
6560
6901
|
name: 'User',
|
|
6561
|
-
components: { avatar: avatar,
|
|
6902
|
+
components: { avatar: avatar, userInfo: userinfo },
|
|
6562
6903
|
props: {
|
|
6563
6904
|
notify: String,
|
|
6564
6905
|
notifyList: Array,
|
|
@@ -6733,32 +7074,32 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6733
7074
|
|
|
6734
7075
|
var user_component = Object(componentNormalizer["a" /* default */])(
|
|
6735
7076
|
simplicity_uservue_type_script_lang_js_,
|
|
6736
|
-
|
|
6737
|
-
|
|
7077
|
+
uservue_type_template_id_4f9acb61_scoped_true_render,
|
|
7078
|
+
uservue_type_template_id_4f9acb61_scoped_true_staticRenderFns,
|
|
6738
7079
|
false,
|
|
6739
7080
|
null,
|
|
6740
|
-
"
|
|
7081
|
+
"4f9acb61",
|
|
6741
7082
|
null
|
|
6742
7083
|
|
|
6743
7084
|
)
|
|
6744
7085
|
|
|
6745
7086
|
/* harmony default export */ var simplicity_user = (user_component.exports);
|
|
6746
|
-
// 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/message.vue?vue&type=template&id=
|
|
6747
|
-
var
|
|
7087
|
+
// 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/message.vue?vue&type=template&id=0ee7ab90&
|
|
7088
|
+
var messagevue_type_template_id_0ee7ab90_render = function () {
|
|
6748
7089
|
var _vm = this
|
|
6749
7090
|
var _h = _vm.$createElement
|
|
6750
7091
|
var _c = _vm._self._c || _h
|
|
6751
7092
|
return _c(
|
|
6752
7093
|
"el-drawer",
|
|
6753
7094
|
{
|
|
6754
|
-
staticClass: "es-
|
|
7095
|
+
staticClass: "es-simplicity-message",
|
|
6755
7096
|
attrs: {
|
|
6756
|
-
"
|
|
7097
|
+
"modal-class": "es-simplicity-message-modal",
|
|
6757
7098
|
direction: "rtl",
|
|
6758
|
-
size: "
|
|
6759
|
-
modal: false,
|
|
7099
|
+
size: "648px",
|
|
6760
7100
|
withHeader: false,
|
|
6761
7101
|
visible: _vm.show,
|
|
7102
|
+
"modal-append-to-body": false,
|
|
6762
7103
|
},
|
|
6763
7104
|
on: {
|
|
6764
7105
|
"update:visible": function ($event) {
|
|
@@ -6767,18 +7108,23 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6767
7108
|
},
|
|
6768
7109
|
},
|
|
6769
7110
|
[
|
|
6770
|
-
_c("div", { staticClass: "es-
|
|
6771
|
-
_c("span", { staticClass: "es-
|
|
7111
|
+
_c("div", { staticClass: "es-simplicity-message-header" }, [
|
|
7112
|
+
_c("span", { staticClass: "es-simplicity-message-title" }, [
|
|
7113
|
+
_vm._v("消息提示"),
|
|
7114
|
+
]),
|
|
6772
7115
|
_c(
|
|
6773
7116
|
"span",
|
|
6774
|
-
{
|
|
7117
|
+
{
|
|
7118
|
+
staticClass: "es-simplicity-message-overlook",
|
|
7119
|
+
on: { click: _vm.handleIgnoreAll },
|
|
7120
|
+
},
|
|
6775
7121
|
[_vm._v("全部忽略")]
|
|
6776
7122
|
),
|
|
6777
7123
|
]),
|
|
6778
|
-
_c("div", { staticClass: "es-
|
|
7124
|
+
_c("div", { staticClass: "es-simplicity-message-lists-box" }, [
|
|
6779
7125
|
_c(
|
|
6780
7126
|
"div",
|
|
6781
|
-
{ staticClass: "es-
|
|
7127
|
+
{ staticClass: "es-simplicity-message-lists" },
|
|
6782
7128
|
[
|
|
6783
7129
|
_c("el-scrollbar", { staticClass: "es-scrollbar" }, [
|
|
6784
7130
|
_c(
|
|
@@ -6797,25 +7143,35 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6797
7143
|
[
|
|
6798
7144
|
_vm._l(_vm.msgs, function (item, index) {
|
|
6799
7145
|
return _c(
|
|
6800
|
-
"
|
|
6801
|
-
{
|
|
7146
|
+
"div",
|
|
7147
|
+
{
|
|
7148
|
+
key: item.id,
|
|
7149
|
+
staticClass: "es-simplicity-message-item",
|
|
7150
|
+
},
|
|
6802
7151
|
[
|
|
6803
|
-
_c(
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
]),
|
|
7152
|
+
_c(
|
|
7153
|
+
"div",
|
|
7154
|
+
{ staticClass: "es-simplicity-message-item-title" },
|
|
7155
|
+
[
|
|
7156
|
+
_vm._v(
|
|
7157
|
+
"\n " +
|
|
7158
|
+
_vm._s(item.title) +
|
|
7159
|
+
"\n "
|
|
7160
|
+
),
|
|
7161
|
+
]
|
|
7162
|
+
),
|
|
6815
7163
|
_c("div", [
|
|
6816
|
-
_c(
|
|
6817
|
-
|
|
6818
|
-
|
|
7164
|
+
_c(
|
|
7165
|
+
"span",
|
|
7166
|
+
{ staticClass: "es-simplicity-message-item-time" },
|
|
7167
|
+
[
|
|
7168
|
+
_vm._v(
|
|
7169
|
+
"\n " +
|
|
7170
|
+
_vm._s(item.time) +
|
|
7171
|
+
"\n "
|
|
7172
|
+
),
|
|
7173
|
+
]
|
|
7174
|
+
),
|
|
6819
7175
|
_c(
|
|
6820
7176
|
"span",
|
|
6821
7177
|
{
|
|
@@ -6827,27 +7183,39 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6827
7183
|
expression: "item.handlerUrl",
|
|
6828
7184
|
},
|
|
6829
7185
|
],
|
|
6830
|
-
staticClass: "es-
|
|
7186
|
+
staticClass: "es-simplicity-message-handler",
|
|
6831
7187
|
on: {
|
|
6832
7188
|
click: function ($event) {
|
|
6833
7189
|
_vm.handleMessage(item, index)
|
|
6834
7190
|
},
|
|
6835
7191
|
},
|
|
6836
7192
|
},
|
|
6837
|
-
[_vm._v("
|
|
7193
|
+
[_vm._v("\n 处理\n ")]
|
|
7194
|
+
),
|
|
7195
|
+
_c(
|
|
7196
|
+
"span",
|
|
7197
|
+
{
|
|
7198
|
+
staticClass: "es-simplicity-message-overlook",
|
|
7199
|
+
on: {
|
|
7200
|
+
click: function ($event) {
|
|
7201
|
+
_vm.handleIgnore(item, index)
|
|
7202
|
+
},
|
|
7203
|
+
},
|
|
7204
|
+
},
|
|
7205
|
+
[_vm._v("\n 忽略\n ")]
|
|
6838
7206
|
),
|
|
6839
7207
|
]),
|
|
6840
7208
|
]
|
|
6841
7209
|
)
|
|
6842
7210
|
}),
|
|
6843
7211
|
_vm.loading
|
|
6844
|
-
? _c("p", { staticClass: "es-
|
|
7212
|
+
? _c("p", { staticClass: "es-simplicity-message-tips" }, [
|
|
6845
7213
|
_vm._v("加载中..."),
|
|
6846
7214
|
])
|
|
6847
7215
|
: _vm._e(),
|
|
6848
7216
|
_vm.noMore && _vm.count > 0
|
|
6849
|
-
? _c("p", { staticClass: "es-
|
|
6850
|
-
_vm._v("
|
|
7217
|
+
? _c("p", { staticClass: "es-simplicity-message-tips" }, [
|
|
7218
|
+
_vm._v("\n 没有更多了\n "),
|
|
6851
7219
|
])
|
|
6852
7220
|
: _vm._e(),
|
|
6853
7221
|
],
|
|
@@ -6858,8 +7226,8 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6858
7226
|
1
|
|
6859
7227
|
),
|
|
6860
7228
|
]),
|
|
6861
|
-
_c("div", { staticClass: "es-
|
|
6862
|
-
_vm._v("
|
|
7229
|
+
_c("div", { staticClass: "es-simplicity-message-total" }, [
|
|
7230
|
+
_vm._v("共有 " + _vm._s(_vm.count) + " 条消息记录"),
|
|
6863
7231
|
]),
|
|
6864
7232
|
_c("es-dialog", {
|
|
6865
7233
|
attrs: {
|
|
@@ -6881,11 +7249,11 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6881
7249
|
1
|
|
6882
7250
|
)
|
|
6883
7251
|
}
|
|
6884
|
-
var
|
|
6885
|
-
|
|
7252
|
+
var messagevue_type_template_id_0ee7ab90_staticRenderFns = []
|
|
7253
|
+
messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
6886
7254
|
|
|
6887
7255
|
|
|
6888
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/message.vue?vue&type=template&id=
|
|
7256
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/message.vue?vue&type=template&id=0ee7ab90&
|
|
6889
7257
|
|
|
6890
7258
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/message.vue?vue&type=script&lang=js&
|
|
6891
7259
|
//
|
|
@@ -6945,11 +7313,21 @@ messagevue_type_template_id_4239f1c5_render._withStripped = true
|
|
|
6945
7313
|
//
|
|
6946
7314
|
//
|
|
6947
7315
|
//
|
|
7316
|
+
//
|
|
7317
|
+
//
|
|
7318
|
+
//
|
|
7319
|
+
//
|
|
7320
|
+
//
|
|
7321
|
+
//
|
|
7322
|
+
//
|
|
7323
|
+
//
|
|
7324
|
+
//
|
|
7325
|
+
//
|
|
6948
7326
|
|
|
6949
7327
|
|
|
6950
7328
|
|
|
6951
7329
|
/* harmony default export */ var messagevue_type_script_lang_js_ = ({
|
|
6952
|
-
name: '
|
|
7330
|
+
name: 'Message',
|
|
6953
7331
|
provide: function provide() {
|
|
6954
7332
|
return {
|
|
6955
7333
|
deleteMessage: this.handleRemove
|
|
@@ -7135,8 +7513,8 @@ messagevue_type_template_id_4239f1c5_render._withStripped = true
|
|
|
7135
7513
|
|
|
7136
7514
|
var message_component = Object(componentNormalizer["a" /* default */])(
|
|
7137
7515
|
simplicity_messagevue_type_script_lang_js_,
|
|
7138
|
-
|
|
7139
|
-
|
|
7516
|
+
messagevue_type_template_id_0ee7ab90_render,
|
|
7517
|
+
messagevue_type_template_id_0ee7ab90_staticRenderFns,
|
|
7140
7518
|
false,
|
|
7141
7519
|
null,
|
|
7142
7520
|
null,
|
|
@@ -7145,8 +7523,8 @@ var message_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7145
7523
|
)
|
|
7146
7524
|
|
|
7147
7525
|
/* harmony default export */ var message = (message_component.exports);
|
|
7148
|
-
// 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/notice.vue?vue&type=template&id=
|
|
7149
|
-
var
|
|
7526
|
+
// 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/notice.vue?vue&type=template&id=1c74f5bb&
|
|
7527
|
+
var noticevue_type_template_id_1c74f5bb_render = function () {
|
|
7150
7528
|
var _vm = this
|
|
7151
7529
|
var _h = _vm.$createElement
|
|
7152
7530
|
var _c = _vm._self._c || _h
|
|
@@ -7168,11 +7546,12 @@ var noticevue_type_template_id_31787a15_render = function () {
|
|
|
7168
7546
|
{
|
|
7169
7547
|
name: "show",
|
|
7170
7548
|
rawName: "v-show",
|
|
7171
|
-
value: _vm.
|
|
7172
|
-
expression: "
|
|
7549
|
+
value: _vm.msgs.length,
|
|
7550
|
+
expression: "msgs.length",
|
|
7173
7551
|
},
|
|
7174
7552
|
],
|
|
7175
|
-
staticClass: "es-notice-box",
|
|
7553
|
+
staticClass: "es-simplicity-notice-box",
|
|
7554
|
+
class: { "es-in": _vm.msgs.length },
|
|
7176
7555
|
on: {
|
|
7177
7556
|
mouseover: function ($event) {
|
|
7178
7557
|
_vm.handleMouse(true)
|
|
@@ -7183,85 +7562,93 @@ var noticevue_type_template_id_31787a15_render = function () {
|
|
|
7183
7562
|
},
|
|
7184
7563
|
},
|
|
7185
7564
|
[
|
|
7565
|
+
_c("div", { staticClass: "es-simplicity-notice-header" }, [
|
|
7566
|
+
_c("span", { staticClass: "es-notice-title" }, [
|
|
7567
|
+
_vm._v("通知消息"),
|
|
7568
|
+
]),
|
|
7569
|
+
]),
|
|
7186
7570
|
_c(
|
|
7187
|
-
"
|
|
7188
|
-
{
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
]),
|
|
7195
|
-
_c("div", { staticClass: "es-msg-lists-box" }, [
|
|
7196
|
-
_c(
|
|
7197
|
-
"div",
|
|
7198
|
-
{ staticClass: "es-msg-lists" },
|
|
7199
|
-
[
|
|
7200
|
-
_c(
|
|
7201
|
-
"el-scrollbar",
|
|
7202
|
-
{ staticClass: "es-scrollbar" },
|
|
7203
|
-
_vm._l(_vm.data, function (item, index) {
|
|
7204
|
-
return _c(
|
|
7205
|
-
"el-card",
|
|
7206
|
-
{ key: item.id, staticClass: "es-msg-item" },
|
|
7207
|
-
[
|
|
7208
|
-
_c("div", { staticClass: "es-msg-item-title" }, [
|
|
7209
|
-
_vm._v(_vm._s(item.title)),
|
|
7210
|
-
]),
|
|
7211
|
-
_c("div", [
|
|
7212
|
-
_c("span", { staticClass: "es-msg-item-time" }, [
|
|
7213
|
-
_vm._v(_vm._s(item.time)),
|
|
7214
|
-
]),
|
|
7215
|
-
_c(
|
|
7216
|
-
"span",
|
|
7217
|
-
{
|
|
7218
|
-
directives: [
|
|
7219
|
-
{
|
|
7220
|
-
name: "show",
|
|
7221
|
-
rawName: "v-show",
|
|
7222
|
-
value: item.handlerUrl,
|
|
7223
|
-
expression: "item.handlerUrl",
|
|
7224
|
-
},
|
|
7225
|
-
],
|
|
7226
|
-
staticClass: "es-overlook",
|
|
7227
|
-
on: {
|
|
7228
|
-
click: function ($event) {
|
|
7229
|
-
_vm.handleMessage(item, index)
|
|
7230
|
-
},
|
|
7231
|
-
},
|
|
7232
|
-
},
|
|
7233
|
-
[_vm._v("处理")]
|
|
7234
|
-
),
|
|
7235
|
-
]),
|
|
7236
|
-
]
|
|
7237
|
-
)
|
|
7238
|
-
}),
|
|
7239
|
-
1
|
|
7240
|
-
),
|
|
7241
|
-
],
|
|
7242
|
-
1
|
|
7243
|
-
),
|
|
7244
|
-
]),
|
|
7245
|
-
_c(
|
|
7571
|
+
"el-scrollbar",
|
|
7572
|
+
{
|
|
7573
|
+
staticClass:
|
|
7574
|
+
"es-simplicity-notice-lists es-simplicity-message-lists",
|
|
7575
|
+
},
|
|
7576
|
+
_vm._l(_vm.msgs, function (item, index) {
|
|
7577
|
+
return _c(
|
|
7246
7578
|
"div",
|
|
7247
|
-
{
|
|
7248
|
-
staticClass: "es-notice-footer",
|
|
7249
|
-
staticStyle: {
|
|
7250
|
-
display: "flex",
|
|
7251
|
-
"justify-content": "space-between",
|
|
7252
|
-
},
|
|
7253
|
-
},
|
|
7579
|
+
{ key: item.id, staticClass: "es-simplicity-message-item" },
|
|
7254
7580
|
[
|
|
7255
|
-
_c(
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7581
|
+
_c(
|
|
7582
|
+
"div",
|
|
7583
|
+
{ staticClass: "es-simplicity-message-item-title" },
|
|
7584
|
+
[_vm._v("\n " + _vm._s(item.title) + "\n ")]
|
|
7585
|
+
),
|
|
7586
|
+
_c("div", [
|
|
7587
|
+
_c(
|
|
7588
|
+
"span",
|
|
7589
|
+
{ staticClass: "es-simplicity-message-item-time" },
|
|
7590
|
+
[
|
|
7591
|
+
_vm._v(
|
|
7592
|
+
"\n " + _vm._s(item.time) + "\n "
|
|
7593
|
+
),
|
|
7594
|
+
]
|
|
7595
|
+
),
|
|
7596
|
+
_c(
|
|
7597
|
+
"span",
|
|
7598
|
+
{
|
|
7599
|
+
directives: [
|
|
7600
|
+
{
|
|
7601
|
+
name: "show",
|
|
7602
|
+
rawName: "v-show",
|
|
7603
|
+
value: item.handlerUrl,
|
|
7604
|
+
expression: "item.handlerUrl",
|
|
7605
|
+
},
|
|
7606
|
+
],
|
|
7607
|
+
staticClass: "es-simplicity-message-handler",
|
|
7608
|
+
on: {
|
|
7609
|
+
click: function ($event) {
|
|
7610
|
+
_vm.handleMessage(item, index)
|
|
7611
|
+
},
|
|
7612
|
+
},
|
|
7613
|
+
},
|
|
7614
|
+
[_vm._v("\n 处理\n ")]
|
|
7615
|
+
),
|
|
7616
|
+
_c(
|
|
7617
|
+
"span",
|
|
7618
|
+
{
|
|
7619
|
+
staticClass: "es-simplicity-message-overlook",
|
|
7620
|
+
on: {
|
|
7621
|
+
click: function ($event) {
|
|
7622
|
+
_vm.handleIgnore(item, index)
|
|
7623
|
+
},
|
|
7624
|
+
},
|
|
7625
|
+
},
|
|
7626
|
+
[_vm._v("\n 忽略\n ")]
|
|
7627
|
+
),
|
|
7260
7628
|
]),
|
|
7261
7629
|
]
|
|
7262
|
-
)
|
|
7263
|
-
|
|
7630
|
+
)
|
|
7631
|
+
}),
|
|
7632
|
+
0
|
|
7264
7633
|
),
|
|
7634
|
+
_c("div", { staticClass: "es-notice-footer" }, [
|
|
7635
|
+
_c(
|
|
7636
|
+
"span",
|
|
7637
|
+
{
|
|
7638
|
+
staticClass: "es-simplicity-message-overlook",
|
|
7639
|
+
on: { click: _vm.handleIgnoreAll },
|
|
7640
|
+
},
|
|
7641
|
+
[_vm._v("忽略全部")]
|
|
7642
|
+
),
|
|
7643
|
+
_c(
|
|
7644
|
+
"span",
|
|
7645
|
+
{
|
|
7646
|
+
staticClass: "es-simplicity-message-handler",
|
|
7647
|
+
on: { click: _vm.afterEnter },
|
|
7648
|
+
},
|
|
7649
|
+
[_vm._v("我知道了")]
|
|
7650
|
+
),
|
|
7651
|
+
]),
|
|
7265
7652
|
_c("es-dialog", {
|
|
7266
7653
|
attrs: {
|
|
7267
7654
|
title: "处理",
|
|
@@ -7284,11 +7671,11 @@ var noticevue_type_template_id_31787a15_render = function () {
|
|
|
7284
7671
|
]
|
|
7285
7672
|
)
|
|
7286
7673
|
}
|
|
7287
|
-
var
|
|
7288
|
-
|
|
7674
|
+
var noticevue_type_template_id_1c74f5bb_staticRenderFns = []
|
|
7675
|
+
noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
7289
7676
|
|
|
7290
7677
|
|
|
7291
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/notice.vue?vue&type=template&id=
|
|
7678
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/notice.vue?vue&type=template&id=1c74f5bb&
|
|
7292
7679
|
|
|
7293
7680
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/notice.vue?vue&type=script&lang=js&
|
|
7294
7681
|
//
|
|
@@ -7345,11 +7732,20 @@ noticevue_type_template_id_31787a15_render._withStripped = true
|
|
|
7345
7732
|
//
|
|
7346
7733
|
//
|
|
7347
7734
|
//
|
|
7735
|
+
//
|
|
7736
|
+
//
|
|
7737
|
+
//
|
|
7738
|
+
//
|
|
7739
|
+
//
|
|
7740
|
+
//
|
|
7741
|
+
//
|
|
7742
|
+
//
|
|
7743
|
+
//
|
|
7348
7744
|
|
|
7349
7745
|
|
|
7350
7746
|
|
|
7351
7747
|
/* harmony default export */ var noticevue_type_script_lang_js_ = ({
|
|
7352
|
-
name: '
|
|
7748
|
+
name: 'Notice',
|
|
7353
7749
|
provide: function provide() {
|
|
7354
7750
|
return {
|
|
7355
7751
|
deleteNotice: this.handleRemove
|
|
@@ -7367,12 +7763,19 @@ noticevue_type_template_id_31787a15_render._withStripped = true
|
|
|
7367
7763
|
}
|
|
7368
7764
|
},
|
|
7369
7765
|
computed: {},
|
|
7766
|
+
watch: {
|
|
7767
|
+
data: {
|
|
7768
|
+
immediate: true,
|
|
7769
|
+
deep: true,
|
|
7770
|
+
handler: function handler(val) {
|
|
7771
|
+
this.msgs = val;
|
|
7772
|
+
}
|
|
7773
|
+
}
|
|
7774
|
+
},
|
|
7370
7775
|
data: function data() {
|
|
7371
7776
|
return {
|
|
7372
7777
|
//加载数据
|
|
7373
7778
|
loading: false,
|
|
7374
|
-
//消息页码
|
|
7375
|
-
pageNum: 1,
|
|
7376
7779
|
//消息数据,
|
|
7377
7780
|
msgs: [],
|
|
7378
7781
|
//即时消息
|
|
@@ -7394,20 +7797,38 @@ noticevue_type_template_id_31787a15_render._withStripped = true
|
|
|
7394
7797
|
this.$emit('opened', flag);
|
|
7395
7798
|
},
|
|
7396
7799
|
|
|
7800
|
+
//忽略
|
|
7801
|
+
handleIgnore: function handleIgnore(res, i) {
|
|
7802
|
+
var _this = this;
|
|
7803
|
+
|
|
7804
|
+
utils_util["a" /* default */].ajax({
|
|
7805
|
+
url: api["W" /* ignoreSysMsg */],
|
|
7806
|
+
params: {
|
|
7807
|
+
id: res.id
|
|
7808
|
+
}
|
|
7809
|
+
}).then(function (res) {
|
|
7810
|
+
if (res.rCode == 0) {
|
|
7811
|
+
_this.msgs.splice(i, 1);
|
|
7812
|
+
} else {
|
|
7813
|
+
var msg = res.msg || '系统错误,请联系管理员!';
|
|
7814
|
+
_this.$message.error(msg);
|
|
7815
|
+
}
|
|
7816
|
+
});
|
|
7817
|
+
},
|
|
7818
|
+
|
|
7397
7819
|
//全部忽略
|
|
7398
7820
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
7399
|
-
var
|
|
7821
|
+
var _this2 = this;
|
|
7400
7822
|
|
|
7401
7823
|
utils_util["a" /* default */].ajax({
|
|
7402
7824
|
url: api["V" /* ignoreAllSysMsg */]
|
|
7403
7825
|
}).then(function (res) {
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
_this.$emit('opened', false);
|
|
7826
|
+
_this2.msgs = [];
|
|
7827
|
+
_this2.$emit('ignore', { type: 'ignore', value: 'all' });
|
|
7828
|
+
_this2.$emit('opened', false);
|
|
7408
7829
|
}).catch(function (err) {
|
|
7409
7830
|
if (err.message && err.message !== 'canceled') {
|
|
7410
|
-
|
|
7831
|
+
_this2.$message.error(err.message);
|
|
7411
7832
|
}
|
|
7412
7833
|
});
|
|
7413
7834
|
},
|
|
@@ -7450,8 +7871,8 @@ noticevue_type_template_id_31787a15_render._withStripped = true
|
|
|
7450
7871
|
|
|
7451
7872
|
var notice_component = Object(componentNormalizer["a" /* default */])(
|
|
7452
7873
|
simplicity_noticevue_type_script_lang_js_,
|
|
7453
|
-
|
|
7454
|
-
|
|
7874
|
+
noticevue_type_template_id_1c74f5bb_render,
|
|
7875
|
+
noticevue_type_template_id_1c74f5bb_staticRenderFns,
|
|
7455
7876
|
false,
|
|
7456
7877
|
null,
|
|
7457
7878
|
null,
|
|
@@ -7460,8 +7881,8 @@ var notice_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7460
7881
|
)
|
|
7461
7882
|
|
|
7462
7883
|
/* harmony default export */ var notice = (notice_component.exports);
|
|
7463
|
-
// 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/settings.vue?vue&type=template&id=
|
|
7464
|
-
var
|
|
7884
|
+
// 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/settings.vue?vue&type=template&id=48437ba0&
|
|
7885
|
+
var settingsvue_type_template_id_48437ba0_render = function () {
|
|
7465
7886
|
var _vm = this
|
|
7466
7887
|
var _h = _vm.$createElement
|
|
7467
7888
|
var _c = _vm._self._c || _h
|
|
@@ -7542,11 +7963,11 @@ var settingsvue_type_template_id_8d47a100_render = function () {
|
|
|
7542
7963
|
]
|
|
7543
7964
|
)
|
|
7544
7965
|
}
|
|
7545
|
-
var
|
|
7546
|
-
|
|
7966
|
+
var settingsvue_type_template_id_48437ba0_staticRenderFns = []
|
|
7967
|
+
settingsvue_type_template_id_48437ba0_render._withStripped = true
|
|
7547
7968
|
|
|
7548
7969
|
|
|
7549
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/settings.vue?vue&type=template&id=
|
|
7970
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/settings.vue?vue&type=template&id=48437ba0&
|
|
7550
7971
|
|
|
7551
7972
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/settings.vue?vue&type=script&lang=js&
|
|
7552
7973
|
//
|
|
@@ -7589,7 +8010,7 @@ settingsvue_type_template_id_8d47a100_render._withStripped = true
|
|
|
7589
8010
|
|
|
7590
8011
|
|
|
7591
8012
|
/* harmony default export */ var settingsvue_type_script_lang_js_ = ({
|
|
7592
|
-
name: '
|
|
8013
|
+
name: 'Message',
|
|
7593
8014
|
props: {
|
|
7594
8015
|
visible: Boolean,
|
|
7595
8016
|
//主题颜色选择颜色集合
|
|
@@ -7678,8 +8099,8 @@ settingsvue_type_template_id_8d47a100_render._withStripped = true
|
|
|
7678
8099
|
|
|
7679
8100
|
var settings_component = Object(componentNormalizer["a" /* default */])(
|
|
7680
8101
|
simplicity_settingsvue_type_script_lang_js_,
|
|
7681
|
-
|
|
7682
|
-
|
|
8102
|
+
settingsvue_type_template_id_48437ba0_render,
|
|
8103
|
+
settingsvue_type_template_id_48437ba0_staticRenderFns,
|
|
7683
8104
|
false,
|
|
7684
8105
|
null,
|
|
7685
8106
|
null,
|
|
@@ -7688,13 +8109,25 @@ var settings_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7688
8109
|
)
|
|
7689
8110
|
|
|
7690
8111
|
/* harmony default export */ var settings = (settings_component.exports);
|
|
7691
|
-
//
|
|
7692
|
-
var
|
|
8112
|
+
// 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/router-page.vue?vue&type=template&id=ec0c2718&scoped=true&
|
|
8113
|
+
var router_pagevue_type_template_id_ec0c2718_scoped_true_render = function () {
|
|
8114
|
+
var _vm = this
|
|
8115
|
+
var _h = _vm.$createElement
|
|
8116
|
+
var _c = _vm._self._c || _h
|
|
8117
|
+
return _c(
|
|
8118
|
+
"keep-alive",
|
|
8119
|
+
[_c("router-view", { attrs: { name: _vm.appCode } })],
|
|
8120
|
+
1
|
|
8121
|
+
)
|
|
8122
|
+
}
|
|
8123
|
+
var router_pagevue_type_template_id_ec0c2718_scoped_true_staticRenderFns = []
|
|
8124
|
+
router_pagevue_type_template_id_ec0c2718_scoped_true_render._withStripped = true
|
|
7693
8125
|
|
|
7694
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=script&lang=js&
|
|
7695
|
-
var simplicityvue_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; };
|
|
7696
8126
|
|
|
7697
|
-
|
|
8127
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/router-page.vue?vue&type=template&id=ec0c2718&scoped=true&
|
|
8128
|
+
|
|
8129
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/router-page.vue?vue&type=script&lang=js&
|
|
8130
|
+
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; };
|
|
7698
8131
|
|
|
7699
8132
|
//
|
|
7700
8133
|
//
|
|
@@ -7702,6 +8135,80 @@ var simplicityvue_type_script_lang_js_this = undefined;
|
|
|
7702
8135
|
//
|
|
7703
8136
|
//
|
|
7704
8137
|
//
|
|
8138
|
+
|
|
8139
|
+
|
|
8140
|
+
/* harmony default export */ var router_pagevue_type_script_lang_js_ = ({
|
|
8141
|
+
name: 'RouterPage',
|
|
8142
|
+
components: {},
|
|
8143
|
+
props: {
|
|
8144
|
+
appCode: String,
|
|
8145
|
+
path: String,
|
|
8146
|
+
url: String,
|
|
8147
|
+
query: {
|
|
8148
|
+
type: Object,
|
|
8149
|
+
default: function _default() {
|
|
8150
|
+
return {};
|
|
8151
|
+
}
|
|
8152
|
+
},
|
|
8153
|
+
show: Boolean
|
|
8154
|
+
},
|
|
8155
|
+
data: function data() {
|
|
8156
|
+
return {
|
|
8157
|
+
params: {}
|
|
8158
|
+
};
|
|
8159
|
+
},
|
|
8160
|
+
|
|
8161
|
+
computed: {},
|
|
8162
|
+
watch: {
|
|
8163
|
+
show: function show(val) {
|
|
8164
|
+
if (val) {
|
|
8165
|
+
this.jump();
|
|
8166
|
+
}
|
|
8167
|
+
}
|
|
8168
|
+
},
|
|
8169
|
+
created: function created() {},
|
|
8170
|
+
mounted: function mounted() {
|
|
8171
|
+
this.params = utils_util["a" /* default */].getParams({ url: this.url });
|
|
8172
|
+
this.jump();
|
|
8173
|
+
},
|
|
8174
|
+
|
|
8175
|
+
methods: {
|
|
8176
|
+
jump: function jump() {
|
|
8177
|
+
this.$router.push({
|
|
8178
|
+
path: this.path,
|
|
8179
|
+
query: _extends({}, this.query, this.params)
|
|
8180
|
+
});
|
|
8181
|
+
}
|
|
8182
|
+
}
|
|
8183
|
+
});
|
|
8184
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/router-page.vue?vue&type=script&lang=js&
|
|
8185
|
+
/* harmony default export */ var simplicity_router_pagevue_type_script_lang_js_ = (router_pagevue_type_script_lang_js_);
|
|
8186
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/router-page.vue
|
|
8187
|
+
|
|
8188
|
+
|
|
8189
|
+
|
|
8190
|
+
|
|
8191
|
+
|
|
8192
|
+
/* normalize component */
|
|
8193
|
+
|
|
8194
|
+
var router_page_component = Object(componentNormalizer["a" /* default */])(
|
|
8195
|
+
simplicity_router_pagevue_type_script_lang_js_,
|
|
8196
|
+
router_pagevue_type_template_id_ec0c2718_scoped_true_render,
|
|
8197
|
+
router_pagevue_type_template_id_ec0c2718_scoped_true_staticRenderFns,
|
|
8198
|
+
false,
|
|
8199
|
+
null,
|
|
8200
|
+
"ec0c2718",
|
|
8201
|
+
null
|
|
8202
|
+
|
|
8203
|
+
)
|
|
8204
|
+
|
|
8205
|
+
/* harmony default export */ var router_page = (router_page_component.exports);
|
|
8206
|
+
// EXTERNAL MODULE: ./src/utils/store.js
|
|
8207
|
+
var store = __webpack_require__(12);
|
|
8208
|
+
|
|
8209
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=script&lang=js&
|
|
8210
|
+
var simplicityvue_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; };
|
|
8211
|
+
|
|
7705
8212
|
//
|
|
7706
8213
|
//
|
|
7707
8214
|
//
|
|
@@ -7980,18 +8487,7 @@ var simplicityvue_type_script_lang_js_this = undefined;
|
|
|
7980
8487
|
//
|
|
7981
8488
|
//
|
|
7982
8489
|
//
|
|
7983
|
-
|
|
7984
|
-
//
|
|
7985
|
-
//
|
|
7986
|
-
//
|
|
7987
|
-
//
|
|
7988
|
-
//
|
|
7989
|
-
//
|
|
7990
|
-
//
|
|
7991
|
-
//
|
|
7992
|
-
//
|
|
7993
|
-
//
|
|
7994
|
-
//
|
|
8490
|
+
|
|
7995
8491
|
|
|
7996
8492
|
|
|
7997
8493
|
|
|
@@ -8005,14 +8501,14 @@ var simplicityvue_type_script_lang_js_this = undefined;
|
|
|
8005
8501
|
|
|
8006
8502
|
|
|
8007
8503
|
var isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
8008
|
-
var events = [function (tabs, index) {
|
|
8504
|
+
var events = [function (tabs, index, that) {
|
|
8009
8505
|
var tab = tabs[index];
|
|
8010
8506
|
|
|
8011
8507
|
if (tab.method == 'iframe') {
|
|
8012
8508
|
tabs[index].url = utils_util["a" /* default */].handlerUrl(tab.url);
|
|
8013
8509
|
} else {
|
|
8014
8510
|
tabs[index].refresh = false;
|
|
8015
|
-
|
|
8511
|
+
that.$nextTick(function () {
|
|
8016
8512
|
tabs[index].refresh = true;
|
|
8017
8513
|
});
|
|
8018
8514
|
}
|
|
@@ -8050,7 +8546,7 @@ var events = [function (tabs, index) {
|
|
|
8050
8546
|
return tabs;
|
|
8051
8547
|
}];
|
|
8052
8548
|
/* harmony default export */ var simplicityvue_type_script_lang_js_ = ({
|
|
8053
|
-
name: '
|
|
8549
|
+
name: 'Simplicity',
|
|
8054
8550
|
components: {
|
|
8055
8551
|
avatar: avatar,
|
|
8056
8552
|
handler: simplicity_handler,
|
|
@@ -8059,7 +8555,8 @@ var events = [function (tabs, index) {
|
|
|
8059
8555
|
user: simplicity_user,
|
|
8060
8556
|
message: message,
|
|
8061
8557
|
notice: notice,
|
|
8062
|
-
settings: settings
|
|
8558
|
+
settings: settings,
|
|
8559
|
+
routerPage: router_page
|
|
8063
8560
|
},
|
|
8064
8561
|
props: {
|
|
8065
8562
|
appCode: String,
|
|
@@ -8140,7 +8637,14 @@ var events = [function (tabs, index) {
|
|
|
8140
8637
|
//无界微前端Props属性
|
|
8141
8638
|
wjProps: Object,
|
|
8142
8639
|
//无界微前端Attrs属性
|
|
8143
|
-
wjAttrs: Object
|
|
8640
|
+
wjAttrs: Object,
|
|
8641
|
+
//菜单宽度
|
|
8642
|
+
menuWidth: {
|
|
8643
|
+
type: Number,
|
|
8644
|
+
default: 220
|
|
8645
|
+
},
|
|
8646
|
+
//路由方式
|
|
8647
|
+
routeType: String
|
|
8144
8648
|
},
|
|
8145
8649
|
data: function data() {
|
|
8146
8650
|
return {
|
|
@@ -8154,12 +8658,14 @@ var events = [function (tabs, index) {
|
|
|
8154
8658
|
userApps: [],
|
|
8155
8659
|
//所有菜单
|
|
8156
8660
|
menus: [],
|
|
8661
|
+
//菜单名称
|
|
8662
|
+
title: '',
|
|
8157
8663
|
//子菜单
|
|
8158
8664
|
subMenus: null,
|
|
8159
8665
|
//展示菜单导航
|
|
8160
8666
|
showMenu: false,
|
|
8161
|
-
|
|
8162
|
-
|
|
8667
|
+
//折叠菜单
|
|
8668
|
+
fold: false,
|
|
8163
8669
|
//人工智能配置
|
|
8164
8670
|
aiConfig: null,
|
|
8165
8671
|
//公用窗口面板配置
|
|
@@ -8288,7 +8794,7 @@ var events = [function (tabs, index) {
|
|
|
8288
8794
|
utils_util["a" /* default */].win.refresh = this.handleRefresh;
|
|
8289
8795
|
utils_util["a" /* default */].win.jumpMenu = this.jumpMenu;
|
|
8290
8796
|
utils_util["a" /* default */].win.windowOpen = this.openPage;
|
|
8291
|
-
this.
|
|
8797
|
+
this.handleListener();
|
|
8292
8798
|
},
|
|
8293
8799
|
|
|
8294
8800
|
methods: {
|
|
@@ -8297,13 +8803,13 @@ var events = [function (tabs, index) {
|
|
|
8297
8803
|
* @author huangbo
|
|
8298
8804
|
* @date 2024年9月7日
|
|
8299
8805
|
**/
|
|
8300
|
-
hasRouter: function hasRouter(res, url, code
|
|
8806
|
+
hasRouter: function hasRouter(res, url, code) {
|
|
8301
8807
|
if (!url) {
|
|
8302
8808
|
return false;
|
|
8303
8809
|
}
|
|
8304
8810
|
if (Array.isArray(res)) {
|
|
8305
8811
|
for (var i in res) {
|
|
8306
|
-
var path = this.hasRouter(res[i], url, code
|
|
8812
|
+
var path = this.hasRouter(res[i], url, code);
|
|
8307
8813
|
if (path) {
|
|
8308
8814
|
return path;
|
|
8309
8815
|
}
|
|
@@ -8326,7 +8832,7 @@ var events = [function (tabs, index) {
|
|
|
8326
8832
|
return pathname;
|
|
8327
8833
|
}
|
|
8328
8834
|
if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
|
|
8329
|
-
var _path2 = this.hasRouter(res.children, url, code
|
|
8835
|
+
var _path2 = this.hasRouter(res.children, url, code);
|
|
8330
8836
|
if (_path2) {
|
|
8331
8837
|
return _path2;
|
|
8332
8838
|
}
|
|
@@ -8344,7 +8850,6 @@ var events = [function (tabs, index) {
|
|
|
8344
8850
|
this.setConfig(results);
|
|
8345
8851
|
if (this.remote) {
|
|
8346
8852
|
this.getApplications();
|
|
8347
|
-
this.getMenus();
|
|
8348
8853
|
}
|
|
8349
8854
|
},
|
|
8350
8855
|
|
|
@@ -8459,8 +8964,9 @@ var events = [function (tabs, index) {
|
|
|
8459
8964
|
* @date 2024年9月7日
|
|
8460
8965
|
**/
|
|
8461
8966
|
getApplications: function getApplications() {
|
|
8462
|
-
var
|
|
8967
|
+
var _this = this;
|
|
8463
8968
|
|
|
8969
|
+
var loading = utils_util["a" /* default */].loading('', '加载中...');
|
|
8464
8970
|
utils_util["a" /* default */].ajax({
|
|
8465
8971
|
url: this.appsUrl,
|
|
8466
8972
|
defaults: true
|
|
@@ -8473,26 +8979,29 @@ var events = [function (tabs, index) {
|
|
|
8473
8979
|
app_system = _res$results.app_system,
|
|
8474
8980
|
app_user = _res$results.app_user;
|
|
8475
8981
|
|
|
8476
|
-
|
|
8982
|
+
_this.userApps = app_user.filter(function (item) {
|
|
8477
8983
|
return item.permission !== false;
|
|
8478
8984
|
});
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8985
|
+
_this.applications = all;
|
|
8986
|
+
_this.business = app_special_business_system;
|
|
8987
|
+
_this.systems = app_system;
|
|
8988
|
+
_this.setTips(_this.userApps);
|
|
8989
|
+
_this.setTips(_this.applications);
|
|
8990
|
+
_this.setTips(_this.business);
|
|
8991
|
+
_this.setTips(_this.systems);
|
|
8486
8992
|
} else {
|
|
8487
|
-
|
|
8993
|
+
_this.$message.error('未分配应用菜单权限,请联系管理员!');
|
|
8488
8994
|
}
|
|
8995
|
+
_this.getMenus(loading);
|
|
8489
8996
|
} else {
|
|
8997
|
+
loading.close();
|
|
8490
8998
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
8491
|
-
|
|
8999
|
+
_this.$message.error(msg);
|
|
8492
9000
|
}
|
|
8493
9001
|
}).catch(function (err) {
|
|
9002
|
+
loading.close();
|
|
8494
9003
|
if (err.message && err.message !== 'canceled') {
|
|
8495
|
-
|
|
9004
|
+
_this.$message.error(err.message);
|
|
8496
9005
|
}
|
|
8497
9006
|
});
|
|
8498
9007
|
},
|
|
@@ -8502,57 +9011,125 @@ var events = [function (tabs, index) {
|
|
|
8502
9011
|
* @author huangbo
|
|
8503
9012
|
* @date 2024年9月7日
|
|
8504
9013
|
**/
|
|
8505
|
-
getMenus: function getMenus() {
|
|
8506
|
-
var
|
|
9014
|
+
getMenus: function getMenus(loading) {
|
|
9015
|
+
var _this2 = this;
|
|
8507
9016
|
|
|
8508
9017
|
utils_util["a" /* default */].ajax({ url: this._menuUrl }).then(function (res) {
|
|
9018
|
+
loading.close();
|
|
8509
9019
|
if (res.rCode === 0) {
|
|
8510
9020
|
if (res.results && res.results.length) {
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
store["a" /* default */].set('nav',
|
|
8514
|
-
if (
|
|
8515
|
-
var
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
9021
|
+
_this2.menus = res.results;
|
|
9022
|
+
_this2.setTips(_this2.menus);
|
|
9023
|
+
store["a" /* default */].set('nav', _this2.menus);
|
|
9024
|
+
if (_this2.appCode) {
|
|
9025
|
+
var app = _this2.userApps.filter(function (item) {
|
|
9026
|
+
return item.code === _this2.appCode;
|
|
9027
|
+
})[0];
|
|
9028
|
+
if (app) {
|
|
9029
|
+
_this2.active = app.id;
|
|
9030
|
+
if (app.url) {
|
|
9031
|
+
var obj = _this2.getMenu(_this2.menus, app.url);
|
|
9032
|
+
if (obj) {
|
|
9033
|
+
var tab = _this2.setIframeType(obj);
|
|
9034
|
+
_this2.tabs = [tab];
|
|
9035
|
+
_this2.activeName = tab.id;
|
|
9036
|
+
// if (tab.method == 'router') {
|
|
9037
|
+
// let params = util.getParams({ url: tab.url });
|
|
9038
|
+
// this.$router.push({
|
|
9039
|
+
// path: tab.path,
|
|
9040
|
+
// query: { ...this.$parent.params, ...params }
|
|
9041
|
+
// });
|
|
9042
|
+
// }
|
|
9043
|
+
}
|
|
9044
|
+
}
|
|
9045
|
+
}
|
|
9046
|
+
if (_this2.tabs.length == 0) {
|
|
9047
|
+
var subMenus = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
|
|
9048
|
+
if (subMenus) {
|
|
9049
|
+
// this.subMenus = subMenus;
|
|
9050
|
+
// this.showMenu = true;
|
|
9051
|
+
var _obj = _this2.getFirst(subMenus);
|
|
9052
|
+
if (_obj) {
|
|
9053
|
+
var _tab = _this2.setIframeType(_obj);
|
|
9054
|
+
_this2.tabs = [_tab];
|
|
9055
|
+
_this2.activeName = _tab.id;
|
|
9056
|
+
// if (tab.method == 'router') {
|
|
9057
|
+
// let params = util.getParams({ url: tab.url });
|
|
9058
|
+
// this.$router.push({
|
|
9059
|
+
// path: tab.path,
|
|
9060
|
+
// query: { ...this.$parent.params, ...params }
|
|
9061
|
+
// });
|
|
9062
|
+
// }
|
|
9063
|
+
}
|
|
9064
|
+
} else {
|
|
9065
|
+
_this2.subMenus = null;
|
|
9066
|
+
_this2.showMenu = false;
|
|
9067
|
+
}
|
|
9068
|
+
}
|
|
9069
|
+
// this.width = this.menuWidth;
|
|
9070
|
+
// this.$refs.subMenus && this.$refs.subMenus.clearSubmenu();
|
|
9071
|
+
}
|
|
9072
|
+
if (_this2.indexUrl) {
|
|
9073
|
+
var _obj2 = _this2.getMenu(_this2.menus, _this2.indexUrl);
|
|
9074
|
+
if (_obj2) {
|
|
9075
|
+
if (!_this2.appCode) {
|
|
9076
|
+
var _tab2 = _this2.setIframeType(_obj2);
|
|
9077
|
+
_this2.tabs = [_tab2];
|
|
9078
|
+
_this2.activeName = _tab2.id;
|
|
9079
|
+
// if (tab.method == 'router') {
|
|
9080
|
+
// let params = util.getParams({ url: tab.url });
|
|
9081
|
+
// this.$router.push({
|
|
9082
|
+
// path: tab.path,
|
|
9083
|
+
// query: { ...this.$parent.params, ...params }
|
|
9084
|
+
// });
|
|
9085
|
+
// }
|
|
9086
|
+
}
|
|
9087
|
+
_this2.homePage = _obj2;
|
|
8520
9088
|
} else {
|
|
8521
|
-
|
|
8522
|
-
url:
|
|
9089
|
+
_this2.homePage = _this2.setIframeType({
|
|
9090
|
+
url: _this2.indexUrl,
|
|
8523
9091
|
text: '工作台',
|
|
8524
9092
|
id: '0',
|
|
8525
9093
|
appCode: 'indexUrl'
|
|
8526
9094
|
});
|
|
8527
|
-
|
|
8528
|
-
|
|
9095
|
+
if (!_this2.appCode) {
|
|
9096
|
+
_this2.tabs = [_this2.homePage];
|
|
9097
|
+
_this2.activeName = '0';
|
|
9098
|
+
// if (this.homePage.method == 'router') {
|
|
9099
|
+
// let params = util.getParams({ url: this.homePage.url });
|
|
9100
|
+
// this.$router.push({
|
|
9101
|
+
// path: this.homePage.path,
|
|
9102
|
+
// query: { ...this.$parent.params, ...params }
|
|
9103
|
+
// });
|
|
9104
|
+
// }
|
|
9105
|
+
}
|
|
8529
9106
|
}
|
|
8530
|
-
}
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
9107
|
+
} else if (_this2.initApps && _this2.initApps.length && !_this2.appCode) {
|
|
9108
|
+
var _obj3 = _this2.getMenu(_this2.menus, _this2.initApps[_this2.initApps.length - 1]);
|
|
9109
|
+
if (_obj3) {
|
|
9110
|
+
var _tab3 = _this2.setIframeType(_obj3);
|
|
9111
|
+
_this2.tabs.push(_tab3);
|
|
9112
|
+
_this2.activeName = _tab3.id;
|
|
9113
|
+
// if (tab.method == 'router') {
|
|
9114
|
+
// let params = util.getParams({ url: tab.url });
|
|
9115
|
+
// this.$router.push({
|
|
9116
|
+
// path: tab.path,
|
|
9117
|
+
// query: { ...this.$parent.params, ...params }
|
|
9118
|
+
// });
|
|
9119
|
+
// }
|
|
8536
9120
|
}
|
|
8537
9121
|
}
|
|
8538
|
-
if (_this3.appCode) {
|
|
8539
|
-
var subMenus = _this3.getMenu(_this3.menus, res.code, 'appCode');
|
|
8540
|
-
_this3.subMenus = subMenus ? subMenus : null;
|
|
8541
|
-
_this3.showMenu = subMenus !== false;
|
|
8542
|
-
_this3.showApps = false;
|
|
8543
|
-
_this3.width = '296px';
|
|
8544
|
-
_this3.$refs.subMenus && _this3.$refs.subMenus.clearSubmenu();
|
|
8545
|
-
}
|
|
8546
9122
|
} else {
|
|
8547
|
-
|
|
9123
|
+
_this2.$message.error('未分配菜单权限,请联系管理员!');
|
|
8548
9124
|
}
|
|
8549
9125
|
} else {
|
|
8550
9126
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
8551
|
-
|
|
9127
|
+
_this2.$message.error(msg);
|
|
8552
9128
|
}
|
|
8553
9129
|
}).catch(function (err) {
|
|
9130
|
+
loading.close();
|
|
8554
9131
|
if (err.message && err.message !== 'canceled') {
|
|
8555
|
-
|
|
9132
|
+
_this2.$message.error(err.message);
|
|
8556
9133
|
}
|
|
8557
9134
|
});
|
|
8558
9135
|
},
|
|
@@ -8568,9 +9145,6 @@ var events = [function (tabs, index) {
|
|
|
8568
9145
|
var urls = url.split('?');
|
|
8569
9146
|
if (urls[0].indexOf('.js') > 1 && !isIE) {
|
|
8570
9147
|
res.method = 'wujie';
|
|
8571
|
-
this.$nextTick(function () {
|
|
8572
|
-
res.refresh = true;
|
|
8573
|
-
});
|
|
8574
9148
|
} else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
|
|
8575
9149
|
res.method = 'iframe';
|
|
8576
9150
|
} else {
|
|
@@ -8580,16 +9154,9 @@ var events = [function (tabs, index) {
|
|
|
8580
9154
|
var routes = this.$router.options.routes;
|
|
8581
9155
|
if (routes) {
|
|
8582
9156
|
var path = this.hasRouter(routes, urls[0], res.appCode);
|
|
8583
|
-
if (path) {
|
|
9157
|
+
if (path && this.routeType !== 'wujie') {
|
|
8584
9158
|
res.method = 'router';
|
|
8585
|
-
|
|
8586
|
-
this.$router.push({
|
|
8587
|
-
path: path,
|
|
8588
|
-
query: params
|
|
8589
|
-
});
|
|
8590
|
-
this.$nextTick(function () {
|
|
8591
|
-
res.refresh = true;
|
|
8592
|
-
});
|
|
9159
|
+
res.path = path;
|
|
8593
9160
|
} else {
|
|
8594
9161
|
var urlopenmode = utils_util["a" /* default */].getParams({
|
|
8595
9162
|
url: url,
|
|
@@ -8599,21 +9166,16 @@ var events = [function (tabs, index) {
|
|
|
8599
9166
|
res.method = 'iframe';
|
|
8600
9167
|
} else {
|
|
8601
9168
|
res.method = 'wujie';
|
|
8602
|
-
this.$nextTick(function () {
|
|
8603
|
-
res.refresh = true;
|
|
8604
|
-
});
|
|
8605
9169
|
}
|
|
8606
9170
|
}
|
|
8607
9171
|
} else if (urls[0].indexOf('.html') > -1 && urls[0].indexOf('#/') > -1 || urls[0].indexOf('/#/') > -1) {
|
|
8608
9172
|
res.method = 'wujie';
|
|
8609
|
-
this.$nextTick(function () {
|
|
8610
|
-
res.refresh = true;
|
|
8611
|
-
});
|
|
8612
9173
|
} else {
|
|
8613
9174
|
res.method = 'iframe';
|
|
8614
9175
|
}
|
|
8615
9176
|
}
|
|
8616
9177
|
}
|
|
9178
|
+
res.refresh = true;
|
|
8617
9179
|
return res;
|
|
8618
9180
|
},
|
|
8619
9181
|
|
|
@@ -8639,9 +9201,9 @@ var events = [function (tabs, index) {
|
|
|
8639
9201
|
return obj;
|
|
8640
9202
|
}
|
|
8641
9203
|
} else if (Object.prototype.hasOwnProperty.call(item, 'fourthTabs') && item.fourthTabs.length) {
|
|
8642
|
-
var
|
|
8643
|
-
if (
|
|
8644
|
-
return
|
|
9204
|
+
var _obj4 = this.getMenu(item.fourthTabs, res, key);
|
|
9205
|
+
if (_obj4) {
|
|
9206
|
+
return _obj4;
|
|
8645
9207
|
}
|
|
8646
9208
|
}
|
|
8647
9209
|
}
|
|
@@ -8649,17 +9211,39 @@ var events = [function (tabs, index) {
|
|
|
8649
9211
|
return false;
|
|
8650
9212
|
},
|
|
8651
9213
|
|
|
9214
|
+
/**
|
|
9215
|
+
* @desc:获取菜单第一条数据
|
|
9216
|
+
* @author huangbo
|
|
9217
|
+
* @date 2024年9月7日
|
|
9218
|
+
**/
|
|
9219
|
+
getFirst: function getFirst(obj) {
|
|
9220
|
+
if (!obj) {
|
|
9221
|
+
return '';
|
|
9222
|
+
}
|
|
9223
|
+
var openIdex = 0;
|
|
9224
|
+
if (obj.extendData && (obj.extendData.subDefOpenIndex || obj.extendData.subDefOpen)) {
|
|
9225
|
+
openIdex = parseInt(obj.extendData.subDefOpenIndex || obj.extendData.subDefOpen, 10);
|
|
9226
|
+
}
|
|
9227
|
+
if (obj.children && obj.children.length && obj.children[openIdex]) {
|
|
9228
|
+
return this.getFirst(obj.children[openIdex]);
|
|
9229
|
+
} else if (obj.fourthTabs && obj.fourthTabs.length && obj.fourthTabs[openIdex]) {
|
|
9230
|
+
return this.getFirst(obj.fourthTabs[openIdex]);
|
|
9231
|
+
} else if (obj.url) {
|
|
9232
|
+
return obj;
|
|
9233
|
+
}
|
|
9234
|
+
},
|
|
9235
|
+
|
|
8652
9236
|
/**
|
|
8653
9237
|
* @desc:遍历设置菜单气泡提醒
|
|
8654
9238
|
* @author huangbo
|
|
8655
9239
|
* @date 2024年9月7日
|
|
8656
9240
|
**/
|
|
8657
9241
|
setTips: function setTips(obj) {
|
|
8658
|
-
var
|
|
9242
|
+
var _this3 = this;
|
|
8659
9243
|
|
|
8660
9244
|
if (Array.isArray(obj)) {
|
|
8661
9245
|
obj.forEach(function (item) {
|
|
8662
|
-
|
|
9246
|
+
_this3.setTips(item);
|
|
8663
9247
|
});
|
|
8664
9248
|
} else {
|
|
8665
9249
|
if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
|
|
@@ -8669,7 +9253,7 @@ var events = [function (tabs, index) {
|
|
|
8669
9253
|
var flag = 0;
|
|
8670
9254
|
if (obj.children && obj.children.length) {
|
|
8671
9255
|
obj.children.forEach(function (item) {
|
|
8672
|
-
var n =
|
|
9256
|
+
var n = _this3.setTips(item);
|
|
8673
9257
|
flag += n ? parseInt(n) : 0;
|
|
8674
9258
|
});
|
|
8675
9259
|
if (flag) {
|
|
@@ -8678,7 +9262,7 @@ var events = [function (tabs, index) {
|
|
|
8678
9262
|
}
|
|
8679
9263
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
8680
9264
|
obj.fourthTabs.forEach(function (item) {
|
|
8681
|
-
var n =
|
|
9265
|
+
var n = _this3.setTips(item);
|
|
8682
9266
|
flag += n ? parseInt(n) : 0;
|
|
8683
9267
|
});
|
|
8684
9268
|
if (flag) {
|
|
@@ -8718,7 +9302,7 @@ var events = [function (tabs, index) {
|
|
|
8718
9302
|
* @date 2024年9月7日
|
|
8719
9303
|
**/
|
|
8720
9304
|
initWebSocket: function initWebSocket() {
|
|
8721
|
-
var
|
|
9305
|
+
var _this4 = this;
|
|
8722
9306
|
|
|
8723
9307
|
this.webSocket = utils_util["a" /* default */].socket({
|
|
8724
9308
|
url: api["cc" /* wss */],
|
|
@@ -8728,32 +9312,32 @@ var events = [function (tabs, index) {
|
|
|
8728
9312
|
for (var i in data) {
|
|
8729
9313
|
if (data[i] !== null && data[i] !== undefined) {
|
|
8730
9314
|
if (i === 'onlineUserNums' && data[i] > 0) {
|
|
8731
|
-
|
|
9315
|
+
_this4.online = data[i];
|
|
8732
9316
|
}
|
|
8733
9317
|
if (i === 'sysMsgNums') {
|
|
8734
|
-
|
|
8735
|
-
if (
|
|
8736
|
-
|
|
9318
|
+
_this4.notice = data[i];
|
|
9319
|
+
if (_this4.showMsg) {
|
|
9320
|
+
_this4.$refs.message.getMsg(true);
|
|
8737
9321
|
}
|
|
8738
9322
|
}
|
|
8739
9323
|
if (i === 'menuTipsMap') {
|
|
8740
|
-
|
|
9324
|
+
_this4.menuTips = data[i];
|
|
8741
9325
|
}
|
|
8742
9326
|
if (i === 'sysMsgList') {
|
|
8743
|
-
|
|
9327
|
+
_this4.sysMsg = data[i];
|
|
8744
9328
|
}
|
|
8745
9329
|
if (i === 'extraData') {
|
|
8746
|
-
|
|
9330
|
+
_this4.extraData = data[i];
|
|
8747
9331
|
}
|
|
8748
9332
|
}
|
|
8749
9333
|
}
|
|
8750
|
-
if (
|
|
9334
|
+
if (_this4.$store) {
|
|
8751
9335
|
try {
|
|
8752
|
-
|
|
9336
|
+
_this4.$store.commit('websocket', data);
|
|
8753
9337
|
} catch (error) {}
|
|
8754
9338
|
}
|
|
8755
|
-
if (
|
|
8756
|
-
|
|
9339
|
+
if (_this4.$eventBus) {
|
|
9340
|
+
_this4.$eventBus.$emit('websocket', data);
|
|
8757
9341
|
}
|
|
8758
9342
|
if (utils_util["a" /* default */].win.eventBus) {
|
|
8759
9343
|
utils_util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
@@ -8768,6 +9352,8 @@ var events = [function (tabs, index) {
|
|
|
8768
9352
|
* @date 2024年9月7日
|
|
8769
9353
|
**/
|
|
8770
9354
|
handlerClickApp: function handlerClickApp(res) {
|
|
9355
|
+
this.showMsg = false;
|
|
9356
|
+
this.showSet = false;
|
|
8771
9357
|
if (res) {
|
|
8772
9358
|
if (res.permission === false) {
|
|
8773
9359
|
return false;
|
|
@@ -8776,8 +9362,6 @@ var events = [function (tabs, index) {
|
|
|
8776
9362
|
this.subMenus = res;
|
|
8777
9363
|
this.showMenu = true;
|
|
8778
9364
|
this.showApps = false;
|
|
8779
|
-
this.width = '296px';
|
|
8780
|
-
this.$refs.subMenus && this.$refs.subMenus.clearSubmenu();
|
|
8781
9365
|
} else {
|
|
8782
9366
|
var set = true;
|
|
8783
9367
|
if (res.url) {
|
|
@@ -8791,17 +9375,17 @@ var events = [function (tabs, index) {
|
|
|
8791
9375
|
var i = utils_util["a" /* default */].indexOfObj(this.tabs, res, 'id');
|
|
8792
9376
|
this.activeName = res.id;
|
|
8793
9377
|
if (i == -1) {
|
|
8794
|
-
this.
|
|
9378
|
+
var tab = this.setIframeType(res);
|
|
9379
|
+
this.tabs.push(tab);
|
|
8795
9380
|
}
|
|
8796
9381
|
}
|
|
8797
9382
|
}
|
|
8798
9383
|
if (set && res.code) {
|
|
8799
9384
|
var subMenus = this.getMenu(this.menus, res.code, 'appCode');
|
|
9385
|
+
this.title = res.text || res.name;
|
|
8800
9386
|
this.subMenus = subMenus ? subMenus : null;
|
|
8801
9387
|
this.showMenu = subMenus !== false;
|
|
8802
9388
|
this.showApps = false;
|
|
8803
|
-
this.width = '296px';
|
|
8804
|
-
this.$refs.subMenus && this.$refs.subMenus.clearSubmenu();
|
|
8805
9389
|
}
|
|
8806
9390
|
}
|
|
8807
9391
|
this.active = res.id;
|
|
@@ -8811,15 +9395,6 @@ var events = [function (tabs, index) {
|
|
|
8811
9395
|
}
|
|
8812
9396
|
},
|
|
8813
9397
|
|
|
8814
|
-
/**
|
|
8815
|
-
* @desc:显示菜单界面
|
|
8816
|
-
* @author huangbo
|
|
8817
|
-
* @date 2024年9月7日
|
|
8818
|
-
**/
|
|
8819
|
-
handleShowMenus: function handleShowMenus() {
|
|
8820
|
-
this.showMenu = true;
|
|
8821
|
-
},
|
|
8822
|
-
|
|
8823
9398
|
/**
|
|
8824
9399
|
* @desc:显示Drawer界面
|
|
8825
9400
|
* @author huangbo
|
|
@@ -8849,16 +9424,13 @@ var events = [function (tabs, index) {
|
|
|
8849
9424
|
* @date 2024年9月7日
|
|
8850
9425
|
**/
|
|
8851
9426
|
handlerClickMenu: function handlerClickMenu(res) {
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
this.tabs.push(this.setIframeType(res));
|
|
8860
|
-
}
|
|
8861
|
-
this.showMenu = false;
|
|
9427
|
+
this.showMsg = false;
|
|
9428
|
+
this.showSet = false;
|
|
9429
|
+
var i = utils_util["a" /* default */].indexOfObj(this.tabs, res, 'id');
|
|
9430
|
+
this.activeName = res.id;
|
|
9431
|
+
if (i == -1) {
|
|
9432
|
+
var tab = this.setIframeType(res);
|
|
9433
|
+
this.tabs.push(tab);
|
|
8862
9434
|
}
|
|
8863
9435
|
},
|
|
8864
9436
|
|
|
@@ -8892,29 +9464,6 @@ var events = [function (tabs, index) {
|
|
|
8892
9464
|
}
|
|
8893
9465
|
},
|
|
8894
9466
|
|
|
8895
|
-
/**
|
|
8896
|
-
* @desc:选中iframe页签刷新
|
|
8897
|
-
* @author huangbo
|
|
8898
|
-
* @date 2024年9月7日
|
|
8899
|
-
**/
|
|
8900
|
-
handleTab: function handleTab(res) {
|
|
8901
|
-
var index = void 0;
|
|
8902
|
-
if (res) {
|
|
8903
|
-
index = parseInt(res.index);
|
|
8904
|
-
} else {
|
|
8905
|
-
index = utils_util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
8906
|
-
}
|
|
8907
|
-
var item = this.tabs[index];
|
|
8908
|
-
if (item.method == 'iframe') {
|
|
8909
|
-
item.url = utils_util["a" /* default */].handlerUrl(item.url);
|
|
8910
|
-
} else {
|
|
8911
|
-
item.refresh = false;
|
|
8912
|
-
this.$nextTick(function () {
|
|
8913
|
-
item.refresh = true;
|
|
8914
|
-
});
|
|
8915
|
-
}
|
|
8916
|
-
},
|
|
8917
|
-
|
|
8918
9467
|
/**
|
|
8919
9468
|
* @desc:刷新选中iframe页签
|
|
8920
9469
|
* @author huangbo
|
|
@@ -8961,6 +9510,9 @@ var events = [function (tabs, index) {
|
|
|
8961
9510
|
if (this.tabs.length == 1) {
|
|
8962
9511
|
disabled.other = true;
|
|
8963
9512
|
}
|
|
9513
|
+
if (this.tabs[index].id != this.activeName) {
|
|
9514
|
+
disabled.refresh = true;
|
|
9515
|
+
}
|
|
8964
9516
|
this.isDisabled = disabled;
|
|
8965
9517
|
this.$refs.tabsHandler.$el.style.setProperty('left', e.x + 'px');
|
|
8966
9518
|
this.$refs.tabsHandler.$el.style.setProperty('top', e.y + 'px');
|
|
@@ -9013,6 +9565,8 @@ var events = [function (tabs, index) {
|
|
|
9013
9565
|
this.handleQuit();
|
|
9014
9566
|
break;
|
|
9015
9567
|
case 'online':
|
|
9568
|
+
this.showMsg = false;
|
|
9569
|
+
this.showSet = false;
|
|
9016
9570
|
if (this.onlineUrl) {
|
|
9017
9571
|
this.dialog = {
|
|
9018
9572
|
title: '查看在线人员',
|
|
@@ -9023,9 +9577,11 @@ var events = [function (tabs, index) {
|
|
|
9023
9577
|
break;
|
|
9024
9578
|
case 'notice':
|
|
9025
9579
|
this.showMsg = !this.showMsg;
|
|
9580
|
+
this.showSet = false;
|
|
9026
9581
|
break;
|
|
9027
9582
|
case 'set':
|
|
9028
9583
|
this.showSet = !this.showSet;
|
|
9584
|
+
this.showMsg = false;
|
|
9029
9585
|
break;
|
|
9030
9586
|
case 'home':
|
|
9031
9587
|
if (this.homePage.id !== this.activeName) {
|
|
@@ -9034,10 +9590,14 @@ var events = [function (tabs, index) {
|
|
|
9034
9590
|
this.tabs.unshift(this.homePage);
|
|
9035
9591
|
}
|
|
9036
9592
|
this.activeName = this.homePage.id;
|
|
9593
|
+
this.showMsg = false;
|
|
9594
|
+
this.showSet = false;
|
|
9037
9595
|
}
|
|
9038
9596
|
break;
|
|
9039
9597
|
case 'search':
|
|
9040
9598
|
this.handlerSetDrawer(res);
|
|
9599
|
+
this.showMsg = false;
|
|
9600
|
+
this.showSet = false;
|
|
9041
9601
|
break;
|
|
9042
9602
|
case 'goView':
|
|
9043
9603
|
utils_util["a" /* default */].win.open(res.path, '_blank');
|
|
@@ -9053,7 +9613,7 @@ var events = [function (tabs, index) {
|
|
|
9053
9613
|
* @date 2024年9月7日
|
|
9054
9614
|
**/
|
|
9055
9615
|
handleQuit: function handleQuit() {
|
|
9056
|
-
var
|
|
9616
|
+
var _this5 = this;
|
|
9057
9617
|
|
|
9058
9618
|
this.$confirm('确定注销吗?', '退出系统', {
|
|
9059
9619
|
confirmButtonText: '确定',
|
|
@@ -9063,8 +9623,8 @@ var events = [function (tabs, index) {
|
|
|
9063
9623
|
utils_util["a" /* default */].ajax({ method: 'post', url: api["eb" /* logout */] }).then(function (res) {
|
|
9064
9624
|
if (res.rCode == 0) {
|
|
9065
9625
|
utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
9066
|
-
if (
|
|
9067
|
-
|
|
9626
|
+
if (_this5.onQuit && typeof _this5.onQuit === 'function') {
|
|
9627
|
+
_this5.onQuit();
|
|
9068
9628
|
} else {
|
|
9069
9629
|
try {
|
|
9070
9630
|
var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
@@ -9102,7 +9662,7 @@ var events = [function (tabs, index) {
|
|
|
9102
9662
|
}
|
|
9103
9663
|
}).catch(function (err) {
|
|
9104
9664
|
if (err.message && err.message !== 'canceled') {
|
|
9105
|
-
|
|
9665
|
+
_this5.$message.error(err.message);
|
|
9106
9666
|
}
|
|
9107
9667
|
});
|
|
9108
9668
|
}).catch(function (e) {});
|
|
@@ -9147,20 +9707,20 @@ var events = [function (tabs, index) {
|
|
|
9147
9707
|
* @date 2024年9月7日
|
|
9148
9708
|
**/
|
|
9149
9709
|
handleOpened: function handleOpened(res) {
|
|
9150
|
-
var
|
|
9710
|
+
var _this6 = this;
|
|
9151
9711
|
|
|
9152
9712
|
if (res === undefined) {
|
|
9153
9713
|
this.sysMsg = [];
|
|
9154
9714
|
} else if (res == false && this.sysMsg.length) {
|
|
9155
9715
|
this.sysMsgOut = setTimeout(function () {
|
|
9156
|
-
|
|
9716
|
+
_this6.sysMsg = [];
|
|
9157
9717
|
}, 3000);
|
|
9158
9718
|
} else if (this.sysMsgOut) {
|
|
9159
9719
|
clearTimeout(this.sysMsgOut);
|
|
9160
9720
|
}
|
|
9161
9721
|
},
|
|
9162
9722
|
handleReLogin: function handleReLogin(res) {
|
|
9163
|
-
var
|
|
9723
|
+
var _this7 = this;
|
|
9164
9724
|
|
|
9165
9725
|
if (res && typeof res == 'string') {
|
|
9166
9726
|
res = JSON.parse(res);
|
|
@@ -9190,7 +9750,7 @@ var events = [function (tabs, index) {
|
|
|
9190
9750
|
clearTimeout(this.timer);
|
|
9191
9751
|
this.timer = setTimeout(function () {
|
|
9192
9752
|
sessionStorage.setItem('remind', 1);
|
|
9193
|
-
|
|
9753
|
+
_this7.$confirm(msg, btn).then(function () {
|
|
9194
9754
|
utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
9195
9755
|
var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
9196
9756
|
try {
|
|
@@ -9257,84 +9817,35 @@ var events = [function (tabs, index) {
|
|
|
9257
9817
|
}
|
|
9258
9818
|
},
|
|
9259
9819
|
jumpMenu: function jumpMenu(res) {
|
|
9260
|
-
var apps = res
|
|
9820
|
+
var apps = res;
|
|
9821
|
+
if (typeof res === 'string') {
|
|
9822
|
+
apps = res.split(',');
|
|
9823
|
+
}
|
|
9261
9824
|
var obj = this.getMenu(this.menus, apps[apps.length - 1]);
|
|
9262
9825
|
if (obj) {
|
|
9263
9826
|
var i = utils_util["a" /* default */].indexOfObj(this.tabs, obj, 'id');
|
|
9827
|
+
var n = utils_util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
|
|
9828
|
+
this.activeName = obj.id;
|
|
9264
9829
|
if (i == -1) {
|
|
9265
|
-
this.
|
|
9830
|
+
var tab = this.setIframeType(obj);
|
|
9831
|
+
this.tabs.splice(n + 1, 0, tab);
|
|
9266
9832
|
}
|
|
9267
|
-
this.activeName = obj.id;
|
|
9268
9833
|
} else {
|
|
9269
9834
|
this.$message.error('没有此菜单!');
|
|
9270
9835
|
}
|
|
9271
9836
|
},
|
|
9272
9837
|
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
var
|
|
9276
|
-
|
|
9277
|
-
var area = this.$refs.area;
|
|
9278
|
-
var box = this.$refs.box;
|
|
9279
|
-
var sTime = 0,
|
|
9280
|
-
eTime = 0;
|
|
9281
|
-
|
|
9282
|
-
area.addEventListener('mousedown', function (e) {
|
|
9283
|
-
sTime = new Date().getTime();
|
|
9284
|
-
var downY = e.y,
|
|
9285
|
-
downX = e.x;
|
|
9286
|
-
|
|
9287
|
-
var _document$body$getBou = document.body.getBoundingClientRect(),
|
|
9288
|
-
winH = _document$body$getBou.height,
|
|
9289
|
-
winW = _document$body$getBou.width;
|
|
9290
|
-
//防止拖动期间选中和复制网页文本
|
|
9291
|
-
|
|
9838
|
+
//监听改变菜单
|
|
9839
|
+
handleListener: function handleListener() {
|
|
9840
|
+
var _this8 = this;
|
|
9292
9841
|
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
var _box$getBoundingClien = box.getBoundingClientRect(),
|
|
9302
|
-
boxTop = _box$getBoundingClien.top,
|
|
9303
|
-
boxLeft = _box$getBoundingClien.left;
|
|
9304
|
-
|
|
9305
|
-
boxTop += moveY - downY;
|
|
9306
|
-
boxLeft += moveX - downX;
|
|
9307
|
-
boxTop >= winH - size && (boxTop = winH - size);
|
|
9308
|
-
boxTop <= -size && (boxTop = -size);
|
|
9309
|
-
boxLeft >= winW - size && (boxLeft = winW - size);
|
|
9310
|
-
boxLeft <= -size && (boxLeft = -size);
|
|
9311
|
-
if (boxTop < 60) {
|
|
9312
|
-
boxTop = 60;
|
|
9313
|
-
}
|
|
9314
|
-
if (boxLeft < 80) {
|
|
9315
|
-
boxLeft = 80;
|
|
9316
|
-
}
|
|
9317
|
-
box.style.top = boxTop + 'px';
|
|
9318
|
-
box.style.left = boxLeft + 'px';
|
|
9319
|
-
downY = moveY;
|
|
9320
|
-
downX = moveX;
|
|
9321
|
-
};
|
|
9322
|
-
document.onmouseup = function () {
|
|
9323
|
-
eTime = new Date().getTime();
|
|
9324
|
-
var isClick = eTime - sTime < 200;
|
|
9325
|
-
if (isClick) {
|
|
9326
|
-
var onArea = function onArea() {
|
|
9327
|
-
_this9.subMenu = [];
|
|
9328
|
-
area.removeEventListener('click', onArea);
|
|
9329
|
-
};
|
|
9330
|
-
area.addEventListener('click', onArea);
|
|
9331
|
-
}
|
|
9332
|
-
document.onmousemove = null;
|
|
9333
|
-
document.body.onselectstart = document.body.oncontextmenu = function () {
|
|
9334
|
-
return true;
|
|
9335
|
-
};
|
|
9336
|
-
};
|
|
9337
|
-
});
|
|
9842
|
+
utils_util["a" /* default */].win.addEventListener('message', function (e) {
|
|
9843
|
+
var msg = e.data;
|
|
9844
|
+
if (msg.key == 'jump_Menu') {
|
|
9845
|
+
var res = msg.data1;
|
|
9846
|
+
_this8.jumpMenu(res);
|
|
9847
|
+
}
|
|
9848
|
+
}, false);
|
|
9338
9849
|
}
|
|
9339
9850
|
},
|
|
9340
9851
|
beforeDestroy: function beforeDestroy() {
|
|
@@ -9357,18 +9868,18 @@ var events = [function (tabs, index) {
|
|
|
9357
9868
|
|
|
9358
9869
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
9359
9870
|
src_simplicityvue_type_script_lang_js_,
|
|
9360
|
-
|
|
9361
|
-
|
|
9871
|
+
simplicityvue_type_template_id_672540fb_scoped_true_render,
|
|
9872
|
+
simplicityvue_type_template_id_672540fb_scoped_true_staticRenderFns,
|
|
9362
9873
|
false,
|
|
9363
9874
|
null,
|
|
9364
|
-
"
|
|
9875
|
+
"672540fb",
|
|
9365
9876
|
null
|
|
9366
9877
|
|
|
9367
9878
|
)
|
|
9368
9879
|
|
|
9369
9880
|
/* harmony default export */ var simplicity = (simplicity_component.exports);
|
|
9370
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=
|
|
9371
|
-
var
|
|
9881
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/index.vue?vue&type=template&id=1606367c&
|
|
9882
|
+
var defaultvue_type_template_id_1606367c_render = function () {
|
|
9372
9883
|
var _vm = this
|
|
9373
9884
|
var _h = _vm.$createElement
|
|
9374
9885
|
var _c = _vm._self._c || _h
|
|
@@ -9748,11 +10259,11 @@ var defaultvue_type_template_id_1527d603_render = function () {
|
|
|
9748
10259
|
1
|
|
9749
10260
|
)
|
|
9750
10261
|
}
|
|
9751
|
-
var
|
|
9752
|
-
|
|
10262
|
+
var defaultvue_type_template_id_1606367c_staticRenderFns = []
|
|
10263
|
+
defaultvue_type_template_id_1606367c_render._withStripped = true
|
|
9753
10264
|
|
|
9754
10265
|
|
|
9755
|
-
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=
|
|
10266
|
+
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=1606367c&
|
|
9756
10267
|
|
|
9757
10268
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=template&id=bd3da0e0&
|
|
9758
10269
|
var userinfovue_type_template_id_bd3da0e0_render = function () {
|
|
@@ -11669,7 +12180,7 @@ var defaultvue_type_script_lang_js_isIE = navigator.userAgent.indexOf('MSIE') !=
|
|
|
11669
12180
|
var log = utils_util["a" /* default */].getParams('console');
|
|
11670
12181
|
var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["a" /* default */].getParams('appcode');
|
|
11671
12182
|
/* harmony default export */ var defaultvue_type_script_lang_js_ = ({
|
|
11672
|
-
name: '
|
|
12183
|
+
name: 'Main',
|
|
11673
12184
|
inheritAttrs: false,
|
|
11674
12185
|
provide: function provide() {
|
|
11675
12186
|
return {
|
|
@@ -13477,8 +13988,8 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13477
13988
|
|
|
13478
13989
|
var default_component = Object(componentNormalizer["a" /* default */])(
|
|
13479
13990
|
src_defaultvue_type_script_lang_js_,
|
|
13480
|
-
|
|
13481
|
-
|
|
13991
|
+
defaultvue_type_template_id_1606367c_render,
|
|
13992
|
+
defaultvue_type_template_id_1606367c_staticRenderFns,
|
|
13482
13993
|
false,
|
|
13483
13994
|
null,
|
|
13484
13995
|
null,
|
|
@@ -13500,11 +14011,6 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
13500
14011
|
//
|
|
13501
14012
|
//
|
|
13502
14013
|
//
|
|
13503
|
-
//
|
|
13504
|
-
//
|
|
13505
|
-
//
|
|
13506
|
-
//
|
|
13507
|
-
//
|
|
13508
14014
|
|
|
13509
14015
|
|
|
13510
14016
|
|
|
@@ -13519,8 +14025,8 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
13519
14025
|
},
|
|
13520
14026
|
|
|
13521
14027
|
components: {
|
|
13522
|
-
|
|
13523
|
-
|
|
14028
|
+
Simplicity: simplicity,
|
|
14029
|
+
Main: src_default
|
|
13524
14030
|
},
|
|
13525
14031
|
props: {
|
|
13526
14032
|
type: String
|
|
@@ -13529,13 +14035,14 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
13529
14035
|
watch: {},
|
|
13530
14036
|
data: function data() {
|
|
13531
14037
|
return {
|
|
13532
|
-
appCode: ''
|
|
14038
|
+
appCode: '',
|
|
14039
|
+
params: {}
|
|
13533
14040
|
};
|
|
13534
14041
|
},
|
|
13535
14042
|
created: function created() {
|
|
13536
|
-
|
|
13537
|
-
this.appCode = params.appCode;
|
|
13538
|
-
this.getConfig(params);
|
|
14043
|
+
this.params = utils_util["a" /* default */].getParams() || {};
|
|
14044
|
+
this.appCode = this.params.appCode;
|
|
14045
|
+
this.getConfig(this.params);
|
|
13539
14046
|
},
|
|
13540
14047
|
mounted: function mounted() {},
|
|
13541
14048
|
|