eoss-ui 0.5.81-beta4 → 0.5.81-beta6
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 +1610 -1104
- package/lib/index.js +1 -1
- package/lib/main.js +1571 -1122
- 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/lib/theme-chalk/tree.css +1 -1
- package/package.json +1 -1
- package/packages/main/src/default/index.vue +1 -1
- package/packages/main/src/main.vue +13 -12
- package/packages/main/src/simplicity/apps.vue +176 -145
- package/packages/main/src/simplicity/index.vue +160 -238
- package/packages/main/src/simplicity/menu-list.vue +117 -32
- 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 +69 -69
- 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/lib/tree.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 +191 -5
- package/packages/theme-chalk/src/tree.scss +4 -2
- 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=6aa3a502&
|
|
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-default",
|
|
3959
3959
|
_vm._g(
|
|
3960
|
-
_vm._b({ ref: "main" }, "
|
|
3960
|
+
_vm._b({ ref: "main" }, "main-default", _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=6aa3a502&
|
|
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=4a717394&scoped=true&
|
|
3975
|
+
var simplicityvue_type_template_id_4a717394_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,52 @@ var simplicityvue_type_template_id_110cff37_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
|
-
|
|
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,
|
|
4169
|
+
active: _vm.subActive,
|
|
4171
4170
|
},
|
|
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 },
|
|
4171
|
+
on: {
|
|
4172
|
+
"update:visible": function ($event) {
|
|
4173
|
+
_vm.showMenu = $event
|
|
4186
4174
|
},
|
|
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
|
|
4175
|
+
"update:fold": function ($event) {
|
|
4176
|
+
_vm.fold = $event
|
|
4177
|
+
},
|
|
4178
|
+
command: _vm.handlerClickMenu,
|
|
4210
4179
|
},
|
|
4211
4180
|
},
|
|
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
|
|
4181
|
+
"sub-menu",
|
|
4182
|
+
_vm.subMenus,
|
|
4183
|
+
false
|
|
4184
|
+
)
|
|
4227
4185
|
),
|
|
4186
|
+
_c("apps", {
|
|
4187
|
+
attrs: {
|
|
4188
|
+
visible: _vm.showApps,
|
|
4189
|
+
"menu-icon": _vm.menuIcon,
|
|
4190
|
+
color: _vm.appColor,
|
|
4191
|
+
backgroundColor: _vm.appBackgroundColor,
|
|
4192
|
+
applications: _vm.applications,
|
|
4193
|
+
business: _vm.business,
|
|
4194
|
+
systems: _vm.systems,
|
|
4195
|
+
},
|
|
4196
|
+
on: {
|
|
4197
|
+
"update:visible": function ($event) {
|
|
4198
|
+
_vm.showApps = $event
|
|
4199
|
+
},
|
|
4200
|
+
click: _vm.handlerClickApp,
|
|
4201
|
+
},
|
|
4202
|
+
}),
|
|
4228
4203
|
_c(
|
|
4229
4204
|
"el-drawer",
|
|
4230
4205
|
{
|
|
@@ -4295,9 +4270,10 @@ var simplicityvue_type_template_id_110cff37_scoped_true_render = function () {
|
|
|
4295
4270
|
"div",
|
|
4296
4271
|
{
|
|
4297
4272
|
staticClass: "es-simplicity-tabs-handler-item",
|
|
4273
|
+
class: { "is-disabled": _vm.isDisabled.refresh },
|
|
4298
4274
|
on: {
|
|
4299
4275
|
click: function ($event) {
|
|
4300
|
-
_vm.handleTabsEvents(0)
|
|
4276
|
+
_vm.isDisabled.refresh ? "" : _vm.handleTabsEvents(0)
|
|
4301
4277
|
},
|
|
4302
4278
|
},
|
|
4303
4279
|
},
|
|
@@ -4363,6 +4339,7 @@ var simplicityvue_type_template_id_110cff37_scoped_true_render = function () {
|
|
|
4363
4339
|
"el-tabs",
|
|
4364
4340
|
{
|
|
4365
4341
|
staticClass: "es-simplicity-iframe",
|
|
4342
|
+
class: { "is-open": _vm.showMenu, "is-fold": _vm.fold },
|
|
4366
4343
|
attrs: { closable: "", "hide-bar": "" },
|
|
4367
4344
|
on: {
|
|
4368
4345
|
"tab-remove": _vm.handleRemove,
|
|
@@ -4402,23 +4379,6 @@ var simplicityvue_type_template_id_110cff37_scoped_true_render = function () {
|
|
|
4402
4379
|
false
|
|
4403
4380
|
)
|
|
4404
4381
|
),
|
|
4405
|
-
_c(
|
|
4406
|
-
"div",
|
|
4407
|
-
{
|
|
4408
|
-
directives: [
|
|
4409
|
-
{
|
|
4410
|
-
name: "show",
|
|
4411
|
-
rawName: "v-show",
|
|
4412
|
-
value: !_vm.showMenu && _vm.subMenus,
|
|
4413
|
-
expression: "!showMenu && subMenus",
|
|
4414
|
-
},
|
|
4415
|
-
],
|
|
4416
|
-
ref: "box",
|
|
4417
|
-
staticClass: "es-simplicity-unfold",
|
|
4418
|
-
on: { click: _vm.handleShowMenus },
|
|
4419
|
-
},
|
|
4420
|
-
[_c("i", { ref: "area", staticClass: "el-icon-s-unfold" })]
|
|
4421
|
-
),
|
|
4422
4382
|
_vm._l(_vm.tabs, function (item) {
|
|
4423
4383
|
return _c(
|
|
4424
4384
|
"el-tab-pane",
|
|
@@ -4454,7 +4414,22 @@ var simplicityvue_type_template_id_110cff37_scoped_true_render = function () {
|
|
|
4454
4414
|
}),
|
|
4455
4415
|
]
|
|
4456
4416
|
: item.method === "router" && item.refresh
|
|
4457
|
-
? [
|
|
4417
|
+
? [
|
|
4418
|
+
_c(
|
|
4419
|
+
"router-page",
|
|
4420
|
+
_vm._b(
|
|
4421
|
+
{
|
|
4422
|
+
attrs: {
|
|
4423
|
+
show: _vm.activeName == item.id,
|
|
4424
|
+
query: _vm.$parent.params,
|
|
4425
|
+
},
|
|
4426
|
+
},
|
|
4427
|
+
"router-page",
|
|
4428
|
+
item,
|
|
4429
|
+
false
|
|
4430
|
+
)
|
|
4431
|
+
),
|
|
4432
|
+
]
|
|
4458
4433
|
: _vm._e(),
|
|
4459
4434
|
],
|
|
4460
4435
|
2
|
|
@@ -4540,11 +4515,11 @@ var simplicityvue_type_template_id_110cff37_scoped_true_render = function () {
|
|
|
4540
4515
|
),
|
|
4541
4516
|
])
|
|
4542
4517
|
}
|
|
4543
|
-
var
|
|
4544
|
-
|
|
4518
|
+
var simplicityvue_type_template_id_4a717394_scoped_true_staticRenderFns = []
|
|
4519
|
+
simplicityvue_type_template_id_4a717394_scoped_true_render._withStripped = true
|
|
4545
4520
|
|
|
4546
4521
|
|
|
4547
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
4522
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=4a717394&scoped=true&
|
|
4548
4523
|
|
|
4549
4524
|
// 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&
|
|
4550
4525
|
var avatarvue_type_template_id_2597c13a_scoped_true_render = function () {
|
|
@@ -4965,219 +4940,400 @@ var handler_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4965
4940
|
)
|
|
4966
4941
|
|
|
4967
4942
|
/* harmony default export */ var simplicity_handler = (handler_component.exports);
|
|
4968
|
-
// 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=
|
|
4969
|
-
var
|
|
4943
|
+
// 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=427b4bf6&scoped=true&
|
|
4944
|
+
var sub_menuvue_type_template_id_427b4bf6_scoped_true_render = function () {
|
|
4970
4945
|
var _vm = this
|
|
4971
4946
|
var _h = _vm.$createElement
|
|
4972
4947
|
var _c = _vm._self._c || _h
|
|
4973
4948
|
return _c(
|
|
4974
|
-
"
|
|
4975
|
-
{
|
|
4949
|
+
"el-drawer",
|
|
4950
|
+
{
|
|
4951
|
+
staticClass: "es-simplicity-subMenus",
|
|
4952
|
+
attrs: {
|
|
4953
|
+
direction: "ltr",
|
|
4954
|
+
"modal-class": "es-simplicity-apps-modal",
|
|
4955
|
+
size: "auto",
|
|
4956
|
+
"modal-append-to-body": false,
|
|
4957
|
+
"close-on-press-escape": false,
|
|
4958
|
+
modal: false,
|
|
4959
|
+
"with-header": false,
|
|
4960
|
+
wrapperClosable: false,
|
|
4961
|
+
visible: _vm.show,
|
|
4962
|
+
},
|
|
4963
|
+
on: {
|
|
4964
|
+
"update:visible": function ($event) {
|
|
4965
|
+
_vm.show = $event
|
|
4966
|
+
},
|
|
4967
|
+
},
|
|
4968
|
+
},
|
|
4976
4969
|
[
|
|
4977
|
-
_c(
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
_vm.
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
"div",
|
|
5001
|
-
{ key: item.id, staticClass: "es-simplicity-menus-box" },
|
|
5002
|
-
[
|
|
5003
|
-
_c("div", { staticClass: "es-simplicity-menus-title" }, [
|
|
5004
|
-
_vm._v(_vm._s(item.text || item.name)),
|
|
5005
|
-
]),
|
|
5006
|
-
_c("menu-list", {
|
|
5007
|
-
attrs: {
|
|
5008
|
-
index: index,
|
|
5009
|
-
data: item.data,
|
|
5010
|
-
menuIcon: _vm.menuIcon,
|
|
4970
|
+
_c("div", { staticClass: "es-simplicity-menus" }, [
|
|
4971
|
+
_c(
|
|
4972
|
+
"div",
|
|
4973
|
+
{
|
|
4974
|
+
staticClass: "es-simplicity-menus-box",
|
|
4975
|
+
style: { width: _vm.width + "px" },
|
|
4976
|
+
},
|
|
4977
|
+
[
|
|
4978
|
+
_c("div", { staticClass: "es-simplicity-menus-title" }, [
|
|
4979
|
+
!_vm.fold
|
|
4980
|
+
? _c(
|
|
4981
|
+
"span",
|
|
4982
|
+
{ staticClass: "es-simplicity-menus-title-text" },
|
|
4983
|
+
[_vm._v(_vm._s(_vm.title || _vm.text))]
|
|
4984
|
+
)
|
|
4985
|
+
: _vm._e(),
|
|
4986
|
+
_c("i", {
|
|
4987
|
+
directives: [
|
|
4988
|
+
{
|
|
4989
|
+
name: "show",
|
|
4990
|
+
rawName: "v-show",
|
|
4991
|
+
value: !_vm.fold,
|
|
4992
|
+
expression: "!fold",
|
|
5011
4993
|
},
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
4994
|
+
],
|
|
4995
|
+
staticClass:
|
|
4996
|
+
"es-icon-shouqicaidan es-simplicity-menus-title-icon",
|
|
4997
|
+
on: {
|
|
4998
|
+
click: function ($event) {
|
|
4999
|
+
_vm.handleFold(true)
|
|
5000
|
+
},
|
|
5001
|
+
},
|
|
5002
|
+
}),
|
|
5003
|
+
_c("i", {
|
|
5004
|
+
directives: [
|
|
5005
|
+
{
|
|
5006
|
+
name: "show",
|
|
5007
|
+
rawName: "v-show",
|
|
5008
|
+
value: _vm.fold,
|
|
5009
|
+
expression: "fold",
|
|
5010
|
+
},
|
|
5011
|
+
],
|
|
5012
|
+
staticClass:
|
|
5013
|
+
"es-icon-shouqicaidan-right es-simplicity-menus-title-icon",
|
|
5014
|
+
on: {
|
|
5015
|
+
click: function ($event) {
|
|
5016
|
+
_vm.handleFold(false)
|
|
5017
|
+
},
|
|
5018
|
+
},
|
|
5019
|
+
}),
|
|
5020
|
+
]),
|
|
5021
|
+
_c("menu-list", {
|
|
5022
|
+
ref: "menus",
|
|
5023
|
+
attrs: {
|
|
5024
|
+
active: _vm.active,
|
|
5025
|
+
data: _vm.menus,
|
|
5026
|
+
menuIcon: _vm.menuIcon,
|
|
5027
|
+
color: _vm.color,
|
|
5028
|
+
backgroundColor: _vm.backgroundColor,
|
|
5029
|
+
fold: _vm.fold,
|
|
5030
|
+
width: _vm.size,
|
|
5031
|
+
},
|
|
5032
|
+
on: { command: _vm.handleCommand },
|
|
5033
|
+
}),
|
|
5034
|
+
],
|
|
5035
|
+
1
|
|
5036
|
+
),
|
|
5037
|
+
]),
|
|
5038
|
+
]
|
|
5021
5039
|
)
|
|
5022
5040
|
}
|
|
5023
|
-
var
|
|
5024
|
-
|
|
5041
|
+
var sub_menuvue_type_template_id_427b4bf6_scoped_true_staticRenderFns = []
|
|
5042
|
+
sub_menuvue_type_template_id_427b4bf6_scoped_true_render._withStripped = true
|
|
5025
5043
|
|
|
5026
5044
|
|
|
5027
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue?vue&type=template&id=
|
|
5045
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue?vue&type=template&id=427b4bf6&scoped=true&
|
|
5028
5046
|
|
|
5029
|
-
// 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=
|
|
5030
|
-
var
|
|
5047
|
+
// 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=6e16cc62&scoped=true&
|
|
5048
|
+
var menu_listvue_type_template_id_6e16cc62_scoped_true_render = function () {
|
|
5031
5049
|
var _vm = this
|
|
5032
5050
|
var _h = _vm.$createElement
|
|
5033
5051
|
var _c = _vm._self._c || _h
|
|
5034
5052
|
return _c(
|
|
5035
5053
|
"el-scrollbar",
|
|
5036
|
-
|
|
5037
|
-
|
|
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
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5054
|
+
{ ref: "scrollbar", class: { "is-fold": _vm.fold } },
|
|
5055
|
+
[
|
|
5056
|
+
_vm._l(_vm.data, function (item, index) {
|
|
5057
|
+
return [
|
|
5058
|
+
(item.children && item.children.length) ||
|
|
5059
|
+
(item.fourthTabs, item.fourthTabs.length)
|
|
5060
|
+
? _c(
|
|
5061
|
+
"el-popover",
|
|
5062
|
+
{
|
|
5063
|
+
key: item.id,
|
|
5064
|
+
attrs: {
|
|
5065
|
+
placement: "right",
|
|
5066
|
+
trigger: "hover",
|
|
5067
|
+
"popper-class": "es-simplicity-menus-sub",
|
|
5068
|
+
width: _vm.width,
|
|
5069
|
+
},
|
|
5070
|
+
on: {
|
|
5071
|
+
show: function ($event) {
|
|
5072
|
+
_vm.show = true
|
|
5073
|
+
},
|
|
5074
|
+
hide: function ($event) {
|
|
5075
|
+
_vm.show = false
|
|
5076
|
+
},
|
|
5077
|
+
},
|
|
5078
|
+
},
|
|
5079
|
+
[
|
|
5080
|
+
_c("menu-list", {
|
|
5081
|
+
ref: "menus",
|
|
5082
|
+
refInFor: true,
|
|
5083
|
+
attrs: {
|
|
5084
|
+
active: _vm.active,
|
|
5085
|
+
popover: _vm.show,
|
|
5086
|
+
data: (item.children || []).concat(item.fourthTabs || []),
|
|
5087
|
+
menuIcon: _vm.menuIcon,
|
|
5088
|
+
color: _vm.color,
|
|
5089
|
+
backgroundColor: _vm.backgroundColor,
|
|
5090
|
+
width: _vm.width,
|
|
5091
|
+
},
|
|
5092
|
+
on: { command: _vm.handleClick },
|
|
5093
|
+
}),
|
|
5094
|
+
_c(
|
|
5095
|
+
"div",
|
|
5096
|
+
{
|
|
5097
|
+
key: item.id,
|
|
5098
|
+
staticClass: "es-simplicity-menus-item",
|
|
5099
|
+
class: {
|
|
5100
|
+
"is-active": _vm.defaultActive === item.id,
|
|
5101
|
+
"is-fold": _vm.fold,
|
|
5102
|
+
},
|
|
5103
|
+
attrs: {
|
|
5104
|
+
slot: "reference",
|
|
5105
|
+
title: _vm.fold ? item.text || item.name : "",
|
|
5106
|
+
},
|
|
5107
|
+
slot: "reference",
|
|
5108
|
+
},
|
|
5109
|
+
[
|
|
5110
|
+
_vm.fold
|
|
5111
|
+
? [
|
|
5112
|
+
_c(
|
|
5113
|
+
"el-badge",
|
|
5114
|
+
{ attrs: { "is-dot": "", hidden: !item.tips } },
|
|
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
|
+
],
|
|
5125
|
+
1
|
|
5126
|
+
),
|
|
5127
|
+
]
|
|
5128
|
+
: [
|
|
5129
|
+
_c("es-icon", {
|
|
5130
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5131
|
+
style: _vm.setStyle(index),
|
|
5132
|
+
attrs: {
|
|
5133
|
+
contents:
|
|
5134
|
+
item.icons || item.icon || _vm.menuIcon,
|
|
5135
|
+
},
|
|
5136
|
+
}),
|
|
5137
|
+
item.tips
|
|
5138
|
+
? _c(
|
|
5139
|
+
"div",
|
|
5140
|
+
{ staticClass: "es-simplicity-menus-tips" },
|
|
5141
|
+
[
|
|
5142
|
+
_vm._v(
|
|
5143
|
+
"\n " +
|
|
5144
|
+
_vm._s(
|
|
5145
|
+
item.tips > 99 ? "99+" : item.tips
|
|
5146
|
+
) +
|
|
5147
|
+
"\n "
|
|
5148
|
+
),
|
|
5149
|
+
]
|
|
5150
|
+
)
|
|
5151
|
+
: _vm._e(),
|
|
5152
|
+
],
|
|
5153
|
+
_c(
|
|
5154
|
+
"div",
|
|
5155
|
+
{
|
|
5156
|
+
directives: [
|
|
5157
|
+
{
|
|
5158
|
+
name: "show",
|
|
5159
|
+
rawName: "v-show",
|
|
5160
|
+
value: !_vm.fold,
|
|
5161
|
+
expression: "!fold",
|
|
5162
|
+
},
|
|
5163
|
+
],
|
|
5164
|
+
staticClass: "es-simplicity_apps-text",
|
|
5165
|
+
},
|
|
5166
|
+
[
|
|
5167
|
+
_vm._v(
|
|
5168
|
+
"\n " +
|
|
5169
|
+
_vm._s(item.text || item.name) +
|
|
5170
|
+
"\n "
|
|
5171
|
+
),
|
|
5172
|
+
]
|
|
5173
|
+
),
|
|
5174
|
+
],
|
|
5175
|
+
2
|
|
5176
|
+
),
|
|
5177
|
+
],
|
|
5178
|
+
1
|
|
5179
|
+
)
|
|
5180
|
+
: _c(
|
|
5181
|
+
"div",
|
|
5182
|
+
{
|
|
5183
|
+
key: item.id,
|
|
5184
|
+
staticClass: "es-simplicity-menus-item",
|
|
5185
|
+
class: {
|
|
5186
|
+
"is-active": _vm.defaultActive === item.id,
|
|
5187
|
+
"is-fold": _vm.fold,
|
|
5188
|
+
},
|
|
5189
|
+
attrs: { title: _vm.fold ? item.text || item.name : "" },
|
|
5190
|
+
on: {
|
|
5191
|
+
click: function ($event) {
|
|
5192
|
+
_vm.handleClick(item)
|
|
5193
|
+
},
|
|
5194
|
+
},
|
|
5195
|
+
},
|
|
5196
|
+
[
|
|
5197
|
+
_vm.fold
|
|
5198
|
+
? [
|
|
5199
|
+
_c(
|
|
5200
|
+
"el-badge",
|
|
5201
|
+
{ attrs: { "is-dot": "", hidden: !item.tips } },
|
|
5202
|
+
[
|
|
5203
|
+
_c("es-icon", {
|
|
5204
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5205
|
+
style: _vm.setStyle(index),
|
|
5206
|
+
attrs: {
|
|
5207
|
+
contents:
|
|
5208
|
+
item.icons || item.icon || _vm.menuIcon,
|
|
5209
|
+
},
|
|
5210
|
+
}),
|
|
5211
|
+
],
|
|
5212
|
+
1
|
|
5213
|
+
),
|
|
5214
|
+
]
|
|
5215
|
+
: [
|
|
5216
|
+
_c("es-icon", {
|
|
5217
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5218
|
+
style: _vm.setStyle(index),
|
|
5219
|
+
attrs: {
|
|
5220
|
+
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5221
|
+
},
|
|
5222
|
+
}),
|
|
5223
|
+
item.tips
|
|
5224
|
+
? _c(
|
|
5225
|
+
"div",
|
|
5226
|
+
{ staticClass: "es-simplicity-menus-tips" },
|
|
5227
|
+
[
|
|
5228
|
+
_vm._v(
|
|
5229
|
+
"\n " +
|
|
5230
|
+
_vm._s(item.tips > 99 ? "99+" : item.tips) +
|
|
5231
|
+
"\n "
|
|
5232
|
+
),
|
|
5233
|
+
]
|
|
5234
|
+
)
|
|
5235
|
+
: _vm._e(),
|
|
5236
|
+
],
|
|
5237
|
+
_c(
|
|
5238
|
+
"div",
|
|
5239
|
+
{
|
|
5240
|
+
directives: [
|
|
5241
|
+
{
|
|
5242
|
+
name: "show",
|
|
5243
|
+
rawName: "v-show",
|
|
5244
|
+
value: !_vm.fold,
|
|
5245
|
+
expression: "!fold",
|
|
5246
|
+
},
|
|
5247
|
+
],
|
|
5248
|
+
staticClass: "es-simplicity_apps-text",
|
|
5249
|
+
},
|
|
5250
|
+
[
|
|
5251
|
+
_vm._v(
|
|
5252
|
+
"\n " +
|
|
5253
|
+
_vm._s(item.text || item.name) +
|
|
5254
|
+
"\n "
|
|
5255
|
+
),
|
|
5256
|
+
]
|
|
5257
|
+
),
|
|
5258
|
+
],
|
|
5259
|
+
2
|
|
5260
|
+
),
|
|
5261
|
+
]
|
|
5262
|
+
}),
|
|
5263
|
+
],
|
|
5264
|
+
2
|
|
5265
|
+
)
|
|
5266
|
+
}
|
|
5267
|
+
var menu_listvue_type_template_id_6e16cc62_scoped_true_staticRenderFns = []
|
|
5268
|
+
menu_listvue_type_template_id_6e16cc62_scoped_true_render._withStripped = true
|
|
5180
5269
|
|
|
5270
|
+
|
|
5271
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/menu-list.vue?vue&type=template&id=6e16cc62&scoped=true&
|
|
5272
|
+
|
|
5273
|
+
// 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&
|
|
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
|
+
//
|
|
5319
|
+
//
|
|
5320
|
+
//
|
|
5321
|
+
//
|
|
5322
|
+
//
|
|
5323
|
+
//
|
|
5324
|
+
//
|
|
5325
|
+
//
|
|
5326
|
+
//
|
|
5327
|
+
//
|
|
5328
|
+
//
|
|
5329
|
+
//
|
|
5330
|
+
//
|
|
5331
|
+
//
|
|
5332
|
+
//
|
|
5333
|
+
//
|
|
5334
|
+
//
|
|
5335
|
+
//
|
|
5336
|
+
//
|
|
5181
5337
|
//
|
|
5182
5338
|
//
|
|
5183
5339
|
//
|
|
@@ -5209,101 +5365,79 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
5209
5365
|
//
|
|
5210
5366
|
//
|
|
5211
5367
|
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
components: { MenuList: menu_list },
|
|
5368
|
+
/* harmony default export */ var menu_listvue_type_script_lang_js_ = ({
|
|
5369
|
+
name: 'MenuList',
|
|
5370
|
+
components: {},
|
|
5216
5371
|
props: {
|
|
5217
|
-
|
|
5218
|
-
type: [String, Array],
|
|
5219
|
-
default: '#fff'
|
|
5220
|
-
},
|
|
5221
|
-
backgroundColor: {
|
|
5222
|
-
type: [String, Array],
|
|
5223
|
-
default: function _default() {
|
|
5224
|
-
return ['#FF9C52', '#2591F7', '#17C27B', '#1265D7', '#FFC724', '#E34D59'];
|
|
5225
|
-
}
|
|
5226
|
-
},
|
|
5227
|
-
text: String,
|
|
5372
|
+
active: String,
|
|
5228
5373
|
menuIcon: String,
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
fourthTabs: {
|
|
5236
|
-
type: Array,
|
|
5237
|
-
default: function _default() {
|
|
5238
|
-
return [];
|
|
5239
|
-
}
|
|
5240
|
-
}
|
|
5374
|
+
color: [String, Array],
|
|
5375
|
+
backgroundColor: [String, Array],
|
|
5376
|
+
data: Array,
|
|
5377
|
+
fold: Boolean,
|
|
5378
|
+
width: Number,
|
|
5379
|
+
popover: Boolean
|
|
5241
5380
|
},
|
|
5242
5381
|
data: function data() {
|
|
5243
5382
|
return {
|
|
5244
|
-
|
|
5245
|
-
|
|
5383
|
+
defaultActive: this.active,
|
|
5384
|
+
show: false,
|
|
5385
|
+
height: document.body.offsetHeight - 44
|
|
5246
5386
|
};
|
|
5247
5387
|
},
|
|
5248
5388
|
|
|
5249
|
-
computed: {
|
|
5250
|
-
|
|
5251
|
-
|
|
5389
|
+
computed: {},
|
|
5390
|
+
watch: {
|
|
5391
|
+
popover: function popover() {
|
|
5392
|
+
if (this.$el.offsetHeight > this.height) {
|
|
5393
|
+
this.$el.style.height = this.height + 'px';
|
|
5394
|
+
this.$refs.scrollbar.update();
|
|
5395
|
+
} else {
|
|
5396
|
+
this.$el.style.height = '';
|
|
5397
|
+
}
|
|
5252
5398
|
}
|
|
5253
5399
|
},
|
|
5254
|
-
watch: {},
|
|
5255
5400
|
created: function created() {},
|
|
5256
5401
|
mounted: function mounted() {},
|
|
5257
5402
|
|
|
5258
5403
|
methods: {
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5404
|
+
setStyle: function setStyle(num) {
|
|
5405
|
+
var obj = {};
|
|
5406
|
+
if (this.color) {
|
|
5407
|
+
obj.color = this.color;
|
|
5408
|
+
if (Array.isArray(this.color)) {
|
|
5409
|
+
obj.color = this.color[num % this.color.length];
|
|
5265
5410
|
} else {
|
|
5266
|
-
this
|
|
5411
|
+
obj.color = this.color;
|
|
5267
5412
|
}
|
|
5268
5413
|
}
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
this.subMenus = [_extends({}, res, { data: data })];
|
|
5273
|
-
} else {
|
|
5274
|
-
var item = this.subMenus[num];
|
|
5275
|
-
if (item) {
|
|
5276
|
-
if (item.id !== res.id) {
|
|
5277
|
-
this.subMenus.splice(parseInt(num, 10), this.subMenus.length - 1, _extends({}, res, {
|
|
5278
|
-
data: data
|
|
5279
|
-
}));
|
|
5280
|
-
}
|
|
5281
|
-
} else {
|
|
5282
|
-
this.subMenus.push(_extends({}, res, {
|
|
5283
|
-
data: data
|
|
5284
|
-
}));
|
|
5285
|
-
}
|
|
5286
|
-
}
|
|
5287
|
-
this.$emit('command', num === undefined ? 2 : 2 + parseInt(num, 10));
|
|
5288
|
-
} else {
|
|
5289
|
-
if (num === undefined) {
|
|
5290
|
-
this.$emit('command', 1);
|
|
5291
|
-
this.subMenus = [];
|
|
5414
|
+
if (this.backgroundColor) {
|
|
5415
|
+
if (Array.isArray(this.backgroundColor)) {
|
|
5416
|
+
obj.backgroundColor = this.backgroundColor[num % this.backgroundColor.length];
|
|
5292
5417
|
} else {
|
|
5293
|
-
this.
|
|
5294
|
-
this.$emit('command', 1 + parseInt(num, 10));
|
|
5418
|
+
obj.backgroundColor = this.backgroundColor;
|
|
5295
5419
|
}
|
|
5296
5420
|
}
|
|
5421
|
+
return obj;
|
|
5297
5422
|
},
|
|
5298
|
-
|
|
5299
|
-
this
|
|
5300
|
-
|
|
5423
|
+
handleClick: function handleClick(res) {
|
|
5424
|
+
this.defaultActive = res.id;
|
|
5425
|
+
if (res.url) {
|
|
5426
|
+
if (res.urlopenmode == 1) {
|
|
5427
|
+
util.win.open(res.url);
|
|
5428
|
+
return;
|
|
5429
|
+
} else if (res.urlopenmode == 2) {
|
|
5430
|
+
util.win.location.href = res.url;
|
|
5431
|
+
return;
|
|
5432
|
+
}
|
|
5433
|
+
}
|
|
5434
|
+
this.$emit('command', res);
|
|
5301
5435
|
}
|
|
5302
5436
|
}
|
|
5303
5437
|
});
|
|
5304
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/
|
|
5305
|
-
/* harmony default export */ var
|
|
5306
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/
|
|
5438
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/menu-list.vue?vue&type=script&lang=js&
|
|
5439
|
+
/* harmony default export */ var simplicity_menu_listvue_type_script_lang_js_ = (menu_listvue_type_script_lang_js_);
|
|
5440
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/menu-list.vue
|
|
5307
5441
|
|
|
5308
5442
|
|
|
5309
5443
|
|
|
@@ -5311,374 +5445,579 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
5311
5445
|
|
|
5312
5446
|
/* normalize component */
|
|
5313
5447
|
|
|
5314
|
-
var
|
|
5448
|
+
var menu_list_component = Object(componentNormalizer["a" /* default */])(
|
|
5449
|
+
simplicity_menu_listvue_type_script_lang_js_,
|
|
5450
|
+
menu_listvue_type_template_id_6e16cc62_scoped_true_render,
|
|
5451
|
+
menu_listvue_type_template_id_6e16cc62_scoped_true_staticRenderFns,
|
|
5452
|
+
false,
|
|
5453
|
+
null,
|
|
5454
|
+
"6e16cc62",
|
|
5455
|
+
null
|
|
5456
|
+
|
|
5457
|
+
)
|
|
5458
|
+
|
|
5459
|
+
/* harmony default export */ var menu_list = (menu_list_component.exports);
|
|
5460
|
+
// 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&
|
|
5461
|
+
//
|
|
5462
|
+
//
|
|
5463
|
+
//
|
|
5464
|
+
//
|
|
5465
|
+
//
|
|
5466
|
+
//
|
|
5467
|
+
//
|
|
5468
|
+
//
|
|
5469
|
+
//
|
|
5470
|
+
//
|
|
5471
|
+
//
|
|
5472
|
+
//
|
|
5473
|
+
//
|
|
5474
|
+
//
|
|
5475
|
+
//
|
|
5476
|
+
//
|
|
5477
|
+
//
|
|
5478
|
+
//
|
|
5479
|
+
//
|
|
5480
|
+
//
|
|
5481
|
+
//
|
|
5482
|
+
//
|
|
5483
|
+
//
|
|
5484
|
+
//
|
|
5485
|
+
//
|
|
5486
|
+
//
|
|
5487
|
+
//
|
|
5488
|
+
//
|
|
5489
|
+
//
|
|
5490
|
+
//
|
|
5491
|
+
//
|
|
5492
|
+
//
|
|
5493
|
+
//
|
|
5494
|
+
//
|
|
5495
|
+
//
|
|
5496
|
+
//
|
|
5497
|
+
//
|
|
5498
|
+
//
|
|
5499
|
+
//
|
|
5500
|
+
//
|
|
5501
|
+
//
|
|
5502
|
+
//
|
|
5503
|
+
//
|
|
5504
|
+
//
|
|
5505
|
+
//
|
|
5506
|
+
//
|
|
5507
|
+
|
|
5508
|
+
|
|
5509
|
+
/* harmony default export */ var sub_menuvue_type_script_lang_js_ = ({
|
|
5510
|
+
name: 'SubMenu',
|
|
5511
|
+
components: { MenuList: menu_list },
|
|
5512
|
+
props: {
|
|
5513
|
+
title: String,
|
|
5514
|
+
active: String,
|
|
5515
|
+
color: {
|
|
5516
|
+
type: [String, Array],
|
|
5517
|
+
default: '#fff'
|
|
5518
|
+
},
|
|
5519
|
+
backgroundColor: {
|
|
5520
|
+
type: [String, Array],
|
|
5521
|
+
default: function _default() {
|
|
5522
|
+
return ['#FF9C52', '#2591F7', '#17C27B', '#1265D7', '#FFC724', '#E34D59'];
|
|
5523
|
+
}
|
|
5524
|
+
},
|
|
5525
|
+
size: {
|
|
5526
|
+
type: Number,
|
|
5527
|
+
default: 220
|
|
5528
|
+
},
|
|
5529
|
+
visible: Boolean,
|
|
5530
|
+
text: String,
|
|
5531
|
+
menuIcon: String,
|
|
5532
|
+
children: {
|
|
5533
|
+
type: Array,
|
|
5534
|
+
default: function _default() {
|
|
5535
|
+
return [];
|
|
5536
|
+
}
|
|
5537
|
+
},
|
|
5538
|
+
fourthTabs: {
|
|
5539
|
+
type: Array,
|
|
5540
|
+
default: function _default() {
|
|
5541
|
+
return [];
|
|
5542
|
+
}
|
|
5543
|
+
}
|
|
5544
|
+
},
|
|
5545
|
+
data: function data() {
|
|
5546
|
+
return {
|
|
5547
|
+
fold: false,
|
|
5548
|
+
width: this.size,
|
|
5549
|
+
subMenus: []
|
|
5550
|
+
};
|
|
5551
|
+
},
|
|
5552
|
+
|
|
5553
|
+
computed: {
|
|
5554
|
+
menus: function menus() {
|
|
5555
|
+
return [].concat(this.children, this.fourthTabs);
|
|
5556
|
+
},
|
|
5557
|
+
|
|
5558
|
+
show: {
|
|
5559
|
+
get: function get() {
|
|
5560
|
+
return this.visible;
|
|
5561
|
+
},
|
|
5562
|
+
set: function set(val) {
|
|
5563
|
+
this.$emit('update:visible', val);
|
|
5564
|
+
return val;
|
|
5565
|
+
}
|
|
5566
|
+
}
|
|
5567
|
+
},
|
|
5568
|
+
watch: {},
|
|
5569
|
+
created: function created() {},
|
|
5570
|
+
mounted: function mounted() {},
|
|
5571
|
+
|
|
5572
|
+
methods: {
|
|
5573
|
+
handleFold: function handleFold(res) {
|
|
5574
|
+
this.fold = res;
|
|
5575
|
+
if (res) {
|
|
5576
|
+
this.width = 48;
|
|
5577
|
+
} else {
|
|
5578
|
+
this.width = this.size;
|
|
5579
|
+
}
|
|
5580
|
+
this.$emit('update:fold', res);
|
|
5581
|
+
},
|
|
5582
|
+
handleCommand: function handleCommand(res) {
|
|
5583
|
+
this.$emit('command', res);
|
|
5584
|
+
},
|
|
5585
|
+
clearSubmenu: function clearSubmenu() {
|
|
5586
|
+
this.$refs.menus.clearActive();
|
|
5587
|
+
this.subMenus = [];
|
|
5588
|
+
}
|
|
5589
|
+
}
|
|
5590
|
+
});
|
|
5591
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue?vue&type=script&lang=js&
|
|
5592
|
+
/* harmony default export */ var simplicity_sub_menuvue_type_script_lang_js_ = (sub_menuvue_type_script_lang_js_);
|
|
5593
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/sub-menu.vue
|
|
5594
|
+
|
|
5595
|
+
|
|
5596
|
+
|
|
5597
|
+
|
|
5598
|
+
|
|
5599
|
+
/* normalize component */
|
|
5600
|
+
|
|
5601
|
+
var sub_menu_component = Object(componentNormalizer["a" /* default */])(
|
|
5315
5602
|
simplicity_sub_menuvue_type_script_lang_js_,
|
|
5316
|
-
|
|
5317
|
-
|
|
5603
|
+
sub_menuvue_type_template_id_427b4bf6_scoped_true_render,
|
|
5604
|
+
sub_menuvue_type_template_id_427b4bf6_scoped_true_staticRenderFns,
|
|
5318
5605
|
false,
|
|
5319
5606
|
null,
|
|
5320
|
-
"
|
|
5607
|
+
"427b4bf6",
|
|
5321
5608
|
null
|
|
5322
5609
|
|
|
5323
5610
|
)
|
|
5324
5611
|
|
|
5325
5612
|
/* harmony default export */ var sub_menu = (sub_menu_component.exports);
|
|
5326
|
-
// 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=
|
|
5327
|
-
var
|
|
5613
|
+
// 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&
|
|
5614
|
+
var appsvue_type_template_id_62050c35_scoped_true_render = function () {
|
|
5328
5615
|
var this$1 = this
|
|
5329
5616
|
var _vm = this
|
|
5330
5617
|
var _h = _vm.$createElement
|
|
5331
5618
|
var _c = _vm._self._c || _h
|
|
5332
|
-
return _c(
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5619
|
+
return _c(
|
|
5620
|
+
"el-drawer",
|
|
5621
|
+
{
|
|
5622
|
+
staticClass: "es-simplicity-apps",
|
|
5623
|
+
attrs: {
|
|
5624
|
+
direction: "ltr",
|
|
5625
|
+
"modal-class": "es-simplicity-apps-modal",
|
|
5626
|
+
size: "90%",
|
|
5627
|
+
"modal-append-to-body": false,
|
|
5628
|
+
"with-header": false,
|
|
5629
|
+
visible: _vm.show,
|
|
5630
|
+
},
|
|
5631
|
+
on: {
|
|
5632
|
+
"update:visible": function ($event) {
|
|
5633
|
+
_vm.show = $event
|
|
5634
|
+
},
|
|
5635
|
+
},
|
|
5636
|
+
},
|
|
5637
|
+
[
|
|
5638
|
+
_c("div", { staticClass: "es-simplicity_apps" }, [
|
|
5337
5639
|
_c(
|
|
5338
5640
|
"div",
|
|
5339
|
-
{ staticClass: "es-simplicity_apps-
|
|
5641
|
+
{ staticClass: "es-simplicity_apps-all" },
|
|
5340
5642
|
[
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
staticClass: "es-simplicity_apps-
|
|
5643
|
+
_c(
|
|
5644
|
+
"div",
|
|
5645
|
+
{ staticClass: "es-simplicity_apps-title" },
|
|
5646
|
+
[
|
|
5647
|
+
_vm._v("\n 所有业务系统\n "),
|
|
5648
|
+
_c("el-input", {
|
|
5649
|
+
staticClass: "es-simplicity_apps-search",
|
|
5650
|
+
attrs: {
|
|
5651
|
+
size: "medium",
|
|
5652
|
+
placeholder: "请输入关键字",
|
|
5653
|
+
"prefix-icon": "el-icon-search",
|
|
5654
|
+
},
|
|
5655
|
+
model: {
|
|
5656
|
+
value: _vm.value,
|
|
5657
|
+
callback: function ($$v) {
|
|
5658
|
+
_vm.value = $$v
|
|
5659
|
+
},
|
|
5660
|
+
expression: "value",
|
|
5661
|
+
},
|
|
5662
|
+
}),
|
|
5663
|
+
],
|
|
5664
|
+
1
|
|
5665
|
+
),
|
|
5666
|
+
_c(
|
|
5667
|
+
"div",
|
|
5668
|
+
{
|
|
5669
|
+
staticClass: "es-simplicity_apps-box",
|
|
5670
|
+
on: { mousewheel: _vm.handleWheel },
|
|
5671
|
+
},
|
|
5672
|
+
[
|
|
5673
|
+
_c(
|
|
5674
|
+
"ul",
|
|
5675
|
+
{ staticClass: "es-simplicity_apps-list" },
|
|
5676
|
+
_vm._l(_vm._applications, function (item) {
|
|
5677
|
+
return _c(
|
|
5678
|
+
"li",
|
|
5679
|
+
{
|
|
5680
|
+
key: item.id,
|
|
5681
|
+
staticClass: "es-simplicity_apps-list-item",
|
|
5682
|
+
},
|
|
5683
|
+
[
|
|
5684
|
+
_c(
|
|
5685
|
+
"div",
|
|
5686
|
+
{
|
|
5687
|
+
staticClass: "es-simplicity_apps-list-content",
|
|
5688
|
+
class: {
|
|
5689
|
+
"es-simplicity_apps-disabled": !item.permission,
|
|
5690
|
+
},
|
|
5691
|
+
on: {
|
|
5692
|
+
click: function ($event) {
|
|
5693
|
+
_vm.handleClick(item)
|
|
5694
|
+
},
|
|
5695
|
+
},
|
|
5696
|
+
},
|
|
5697
|
+
[
|
|
5698
|
+
_c(
|
|
5699
|
+
"el-badge",
|
|
5700
|
+
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5701
|
+
[
|
|
5702
|
+
_c("es-icon", {
|
|
5703
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5704
|
+
attrs: {
|
|
5705
|
+
contents:
|
|
5706
|
+
item.icons || item.icon || _vm.menuIcon,
|
|
5707
|
+
},
|
|
5708
|
+
}),
|
|
5709
|
+
],
|
|
5710
|
+
1
|
|
5711
|
+
),
|
|
5712
|
+
_c(
|
|
5713
|
+
"div",
|
|
5714
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5715
|
+
[
|
|
5716
|
+
_vm._v(
|
|
5717
|
+
"\n " +
|
|
5718
|
+
_vm._s(item.text || item.name) +
|
|
5719
|
+
"\n "
|
|
5720
|
+
),
|
|
5721
|
+
]
|
|
5722
|
+
),
|
|
5723
|
+
_c(
|
|
5724
|
+
"div",
|
|
5725
|
+
{ staticClass: "es-simplicity_apps-hover" },
|
|
5726
|
+
[
|
|
5727
|
+
_c("es-icon", {
|
|
5728
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5729
|
+
attrs: {
|
|
5730
|
+
contents: item.permission
|
|
5731
|
+
? "es-icon-jiantou-next"
|
|
5732
|
+
: "es-icon-mm",
|
|
5733
|
+
},
|
|
5734
|
+
}),
|
|
5735
|
+
_c(
|
|
5736
|
+
"div",
|
|
5737
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5738
|
+
[
|
|
5739
|
+
_vm._v(
|
|
5740
|
+
"\n " +
|
|
5741
|
+
_vm._s(
|
|
5742
|
+
item.permission
|
|
5743
|
+
? "进入系统"
|
|
5744
|
+
: "暂无权限"
|
|
5745
|
+
) +
|
|
5746
|
+
"\n "
|
|
5747
|
+
),
|
|
5748
|
+
]
|
|
5749
|
+
),
|
|
5750
|
+
],
|
|
5751
|
+
1
|
|
5752
|
+
),
|
|
5753
|
+
],
|
|
5754
|
+
1
|
|
5755
|
+
),
|
|
5756
|
+
]
|
|
5757
|
+
)
|
|
5758
|
+
}),
|
|
5759
|
+
0
|
|
5760
|
+
),
|
|
5761
|
+
]
|
|
5762
|
+
),
|
|
5763
|
+
_c("el-pagination", {
|
|
5764
|
+
staticClass: "es-simplicity_apps-pagination",
|
|
5344
5765
|
attrs: {
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
"
|
|
5766
|
+
background: "",
|
|
5767
|
+
layout: "total,prev, pager, next",
|
|
5768
|
+
"total-text": "共 {total} 个业务系统",
|
|
5769
|
+
"page-size": _vm.appSize,
|
|
5770
|
+
total: _vm.apps.length,
|
|
5771
|
+
"current-page": _vm.appNum,
|
|
5348
5772
|
},
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5773
|
+
on: {
|
|
5774
|
+
"update:currentPage": function ($event) {
|
|
5775
|
+
_vm.appNum = $event
|
|
5776
|
+
},
|
|
5777
|
+
"current-change": function (res) {
|
|
5778
|
+
this$1.handleChange(res, 0)
|
|
5353
5779
|
},
|
|
5354
|
-
expression: "value",
|
|
5355
5780
|
},
|
|
5356
5781
|
}),
|
|
5357
5782
|
],
|
|
5358
5783
|
1
|
|
5359
5784
|
),
|
|
5360
|
-
_c("div", { staticClass: "es-simplicity_apps-
|
|
5785
|
+
_c("div", { staticClass: "es-simplicity_apps-other" }, [
|
|
5361
5786
|
_c(
|
|
5362
|
-
"
|
|
5363
|
-
{ staticClass: "es-simplicity_apps-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
"
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5787
|
+
"div",
|
|
5788
|
+
{ staticClass: "es-simplicity_apps-business" },
|
|
5789
|
+
[
|
|
5790
|
+
_c("div", { staticClass: "es-simplicity_apps-title" }, [
|
|
5791
|
+
_vm._v("专项业务系统"),
|
|
5792
|
+
]),
|
|
5793
|
+
_c(
|
|
5794
|
+
"ul",
|
|
5795
|
+
{ staticClass: "es-simplicity_apps-list" },
|
|
5796
|
+
_vm._l(_vm._business, function (item, index) {
|
|
5797
|
+
return _c(
|
|
5798
|
+
"li",
|
|
5371
5799
|
{
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
"es-simplicity_apps-disabled": !item.permission,
|
|
5375
|
-
},
|
|
5376
|
-
on: {
|
|
5377
|
-
click: function ($event) {
|
|
5378
|
-
_vm.handleClick(item)
|
|
5379
|
-
},
|
|
5380
|
-
},
|
|
5800
|
+
key: item.id,
|
|
5801
|
+
staticClass: "es-simplicity_apps-list-item",
|
|
5381
5802
|
},
|
|
5382
5803
|
[
|
|
5383
|
-
_c(
|
|
5384
|
-
"el-badge",
|
|
5385
|
-
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5386
|
-
[
|
|
5387
|
-
_c("es-icon", {
|
|
5388
|
-
staticClass: "es-simplicity_apps-icon",
|
|
5389
|
-
attrs: {
|
|
5390
|
-
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5391
|
-
},
|
|
5392
|
-
}),
|
|
5393
|
-
],
|
|
5394
|
-
1
|
|
5395
|
-
),
|
|
5396
|
-
_c("div", { staticClass: "es-simplicity_apps-text" }, [
|
|
5397
|
-
_vm._v(
|
|
5398
|
-
"\n " +
|
|
5399
|
-
_vm._s(item.text || item.name) +
|
|
5400
|
-
"\n "
|
|
5401
|
-
),
|
|
5402
|
-
]),
|
|
5403
5804
|
_c(
|
|
5404
5805
|
"div",
|
|
5405
|
-
{
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5806
|
+
{
|
|
5807
|
+
staticClass: "es-simplicity_apps-list-content",
|
|
5808
|
+
class: {
|
|
5809
|
+
"es-simplicity_apps-disabled": !item.permission,
|
|
5810
|
+
},
|
|
5811
|
+
on: {
|
|
5812
|
+
click: function ($event) {
|
|
5813
|
+
_vm.handleClick(item)
|
|
5413
5814
|
},
|
|
5414
|
-
}
|
|
5415
|
-
_c(
|
|
5416
|
-
"div",
|
|
5417
|
-
{ staticClass: "es-simplicity_apps-text" },
|
|
5418
|
-
[
|
|
5419
|
-
_vm._v(
|
|
5420
|
-
"\n " +
|
|
5421
|
-
_vm._s(
|
|
5422
|
-
item.permission ? "进入系统" : "暂无权限"
|
|
5423
|
-
) +
|
|
5424
|
-
"\n "
|
|
5425
|
-
),
|
|
5426
|
-
]
|
|
5427
|
-
),
|
|
5428
|
-
],
|
|
5429
|
-
1
|
|
5430
|
-
),
|
|
5431
|
-
],
|
|
5432
|
-
1
|
|
5433
|
-
),
|
|
5434
|
-
]
|
|
5435
|
-
)
|
|
5436
|
-
}),
|
|
5437
|
-
0
|
|
5438
|
-
),
|
|
5439
|
-
]),
|
|
5440
|
-
_c("el-pagination", {
|
|
5441
|
-
staticClass: "es-simplicity_apps-pagination",
|
|
5442
|
-
attrs: {
|
|
5443
|
-
background: "",
|
|
5444
|
-
layout: "total,prev, pager, next",
|
|
5445
|
-
"total-text": "共 {total} 个业务系统",
|
|
5446
|
-
"page-size": _vm.appSize,
|
|
5447
|
-
total: _vm.apps.length,
|
|
5448
|
-
},
|
|
5449
|
-
on: {
|
|
5450
|
-
"current-change": function (res) {
|
|
5451
|
-
this$1.handleChange(res, 0)
|
|
5452
|
-
},
|
|
5453
|
-
},
|
|
5454
|
-
}),
|
|
5455
|
-
],
|
|
5456
|
-
1
|
|
5457
|
-
),
|
|
5458
|
-
_c("div", { staticClass: "es-simplicity_apps-other" }, [
|
|
5459
|
-
_c(
|
|
5460
|
-
"div",
|
|
5461
|
-
{ staticClass: "es-simplicity_apps-business" },
|
|
5462
|
-
[
|
|
5463
|
-
_c("div", { staticClass: "es-simplicity_apps-title" }, [
|
|
5464
|
-
_vm._v("专项业务系统"),
|
|
5465
|
-
]),
|
|
5466
|
-
_c(
|
|
5467
|
-
"ul",
|
|
5468
|
-
{ staticClass: "es-simplicity_apps-list" },
|
|
5469
|
-
_vm._l(_vm._business, function (item, index) {
|
|
5470
|
-
return _c(
|
|
5471
|
-
"li",
|
|
5472
|
-
{ key: item.id, staticClass: "es-simplicity_apps-list-item" },
|
|
5473
|
-
[
|
|
5474
|
-
_c(
|
|
5475
|
-
"div",
|
|
5476
|
-
{
|
|
5477
|
-
staticClass: "es-simplicity_apps-list-content",
|
|
5478
|
-
class: {
|
|
5479
|
-
"es-simplicity_apps-disabled": !item.permission,
|
|
5480
|
-
},
|
|
5481
|
-
on: {
|
|
5482
|
-
click: function ($event) {
|
|
5483
|
-
_vm.handleClick(item)
|
|
5484
|
-
},
|
|
5485
|
-
},
|
|
5486
|
-
},
|
|
5487
|
-
[
|
|
5488
|
-
_c("es-icon", {
|
|
5489
|
-
staticClass: "es-simplicity_app-icon",
|
|
5490
|
-
style: _vm.setStyle(index),
|
|
5491
|
-
attrs: {
|
|
5492
|
-
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5815
|
+
},
|
|
5493
5816
|
},
|
|
5494
|
-
}),
|
|
5495
|
-
_c(
|
|
5496
|
-
"el-badge",
|
|
5497
|
-
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5498
|
-
[
|
|
5499
|
-
_c(
|
|
5500
|
-
"div",
|
|
5501
|
-
{ staticClass: "es-simplicity_apps-text" },
|
|
5502
|
-
[
|
|
5503
|
-
_vm._v(
|
|
5504
|
-
"\n " +
|
|
5505
|
-
_vm._s(item.text || item.name) +
|
|
5506
|
-
"\n "
|
|
5507
|
-
),
|
|
5508
|
-
]
|
|
5509
|
-
),
|
|
5510
|
-
]
|
|
5511
|
-
),
|
|
5512
|
-
_c(
|
|
5513
|
-
"div",
|
|
5514
|
-
{ staticClass: "es-simplicity_apps-hover" },
|
|
5515
5817
|
[
|
|
5516
5818
|
_c("es-icon", {
|
|
5517
|
-
staticClass: "es-
|
|
5819
|
+
staticClass: "es-simplicity_app-icon",
|
|
5820
|
+
style: _vm.setStyle(index),
|
|
5518
5821
|
attrs: {
|
|
5519
|
-
contents: item.
|
|
5520
|
-
? "es-icon-jiantou-next"
|
|
5521
|
-
: "es-icon-mm",
|
|
5822
|
+
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5522
5823
|
},
|
|
5523
5824
|
}),
|
|
5524
5825
|
_c(
|
|
5525
|
-
"
|
|
5526
|
-
{
|
|
5826
|
+
"el-badge",
|
|
5827
|
+
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5527
5828
|
[
|
|
5528
|
-
|
|
5529
|
-
"
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5829
|
+
_c(
|
|
5830
|
+
"div",
|
|
5831
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5832
|
+
[
|
|
5833
|
+
_vm._v(
|
|
5834
|
+
"\n " +
|
|
5835
|
+
_vm._s(item.text || item.name) +
|
|
5836
|
+
"\n "
|
|
5837
|
+
),
|
|
5838
|
+
]
|
|
5534
5839
|
),
|
|
5535
5840
|
]
|
|
5536
5841
|
),
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
],
|
|
5564
|
-
1
|
|
5565
|
-
),
|
|
5566
|
-
_c(
|
|
5567
|
-
"div",
|
|
5568
|
-
{ staticClass: "es-simplicity_apps-systems" },
|
|
5569
|
-
[
|
|
5570
|
-
_c("div", { staticClass: "es-simplicity_apps-title" }, [
|
|
5571
|
-
_vm._v("系统设置"),
|
|
5572
|
-
]),
|
|
5573
|
-
_c(
|
|
5574
|
-
"ul",
|
|
5575
|
-
{ staticClass: "es-simplicity_apps-list" },
|
|
5576
|
-
_vm._l(_vm._systems, function (item, index) {
|
|
5577
|
-
return _c(
|
|
5578
|
-
"li",
|
|
5579
|
-
{ key: item.id, staticClass: "es-simplicity_apps-list-item" },
|
|
5580
|
-
[
|
|
5581
|
-
_c(
|
|
5582
|
-
"div",
|
|
5583
|
-
{
|
|
5584
|
-
staticClass: "es-simplicity_apps-list-content",
|
|
5585
|
-
class: {
|
|
5586
|
-
"es-simplicity_apps-disabled": !item.permission,
|
|
5587
|
-
},
|
|
5588
|
-
on: {
|
|
5589
|
-
click: function ($event) {
|
|
5590
|
-
_vm.handleClick(item)
|
|
5591
|
-
},
|
|
5592
|
-
},
|
|
5593
|
-
},
|
|
5594
|
-
[
|
|
5595
|
-
_c("es-icon", {
|
|
5596
|
-
staticClass: "es-simplicity_app-icon",
|
|
5597
|
-
style: _vm.setStyle(index),
|
|
5598
|
-
attrs: {
|
|
5599
|
-
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5600
|
-
},
|
|
5601
|
-
}),
|
|
5602
|
-
_c(
|
|
5603
|
-
"el-badge",
|
|
5604
|
-
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5605
|
-
[
|
|
5606
|
-
_c(
|
|
5607
|
-
"div",
|
|
5608
|
-
{ staticClass: "es-simplicity_apps-text" },
|
|
5609
|
-
[
|
|
5610
|
-
_vm._v(
|
|
5611
|
-
"\n " +
|
|
5612
|
-
_vm._s(item.text || item.name) +
|
|
5613
|
-
"\n "
|
|
5842
|
+
_c(
|
|
5843
|
+
"div",
|
|
5844
|
+
{ staticClass: "es-simplicity_apps-hover" },
|
|
5845
|
+
[
|
|
5846
|
+
_c("es-icon", {
|
|
5847
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5848
|
+
attrs: {
|
|
5849
|
+
contents: item.permission
|
|
5850
|
+
? "es-icon-jiantou-next"
|
|
5851
|
+
: "es-icon-mm",
|
|
5852
|
+
},
|
|
5853
|
+
}),
|
|
5854
|
+
_c(
|
|
5855
|
+
"div",
|
|
5856
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5857
|
+
[
|
|
5858
|
+
_vm._v(
|
|
5859
|
+
"\n " +
|
|
5860
|
+
_vm._s(
|
|
5861
|
+
item.permission
|
|
5862
|
+
? "进入系统"
|
|
5863
|
+
: "暂无权限"
|
|
5864
|
+
) +
|
|
5865
|
+
"\n "
|
|
5866
|
+
),
|
|
5867
|
+
]
|
|
5614
5868
|
),
|
|
5615
|
-
]
|
|
5869
|
+
],
|
|
5870
|
+
1
|
|
5616
5871
|
),
|
|
5617
|
-
]
|
|
5872
|
+
],
|
|
5873
|
+
1
|
|
5618
5874
|
),
|
|
5875
|
+
]
|
|
5876
|
+
)
|
|
5877
|
+
}),
|
|
5878
|
+
0
|
|
5879
|
+
),
|
|
5880
|
+
_c("el-pagination", {
|
|
5881
|
+
staticClass: "es-simplicity_apps-pagination",
|
|
5882
|
+
attrs: {
|
|
5883
|
+
background: "",
|
|
5884
|
+
layout: "total,prev, pager, next",
|
|
5885
|
+
"total-text": "共 {total} 专项业务系统",
|
|
5886
|
+
"page-size": _vm.appSize,
|
|
5887
|
+
total: _vm.business.length,
|
|
5888
|
+
},
|
|
5889
|
+
on: {
|
|
5890
|
+
"current-change": function (res) {
|
|
5891
|
+
this$1.handleChange(res, 1)
|
|
5892
|
+
},
|
|
5893
|
+
},
|
|
5894
|
+
}),
|
|
5895
|
+
],
|
|
5896
|
+
1
|
|
5897
|
+
),
|
|
5898
|
+
_c(
|
|
5899
|
+
"div",
|
|
5900
|
+
{ staticClass: "es-simplicity_apps-systems" },
|
|
5901
|
+
[
|
|
5902
|
+
_c("div", { staticClass: "es-simplicity_apps-title" }, [
|
|
5903
|
+
_vm._v("系统设置"),
|
|
5904
|
+
]),
|
|
5905
|
+
_c(
|
|
5906
|
+
"ul",
|
|
5907
|
+
{ staticClass: "es-simplicity_apps-list" },
|
|
5908
|
+
_vm._l(_vm._systems, function (item, index) {
|
|
5909
|
+
return _c(
|
|
5910
|
+
"li",
|
|
5911
|
+
{
|
|
5912
|
+
key: item.id,
|
|
5913
|
+
staticClass: "es-simplicity_apps-list-item",
|
|
5914
|
+
},
|
|
5915
|
+
[
|
|
5619
5916
|
_c(
|
|
5620
5917
|
"div",
|
|
5621
|
-
{
|
|
5918
|
+
{
|
|
5919
|
+
staticClass: "es-simplicity_apps-list-content",
|
|
5920
|
+
class: {
|
|
5921
|
+
"es-simplicity_apps-disabled": !item.permission,
|
|
5922
|
+
},
|
|
5923
|
+
on: {
|
|
5924
|
+
click: function ($event) {
|
|
5925
|
+
_vm.handleClick(item)
|
|
5926
|
+
},
|
|
5927
|
+
},
|
|
5928
|
+
},
|
|
5622
5929
|
[
|
|
5623
5930
|
_c("es-icon", {
|
|
5624
|
-
staticClass: "es-
|
|
5931
|
+
staticClass: "es-simplicity_app-icon",
|
|
5932
|
+
style: _vm.setStyle(index),
|
|
5625
5933
|
attrs: {
|
|
5626
|
-
contents: item.
|
|
5627
|
-
? "es-icon-jiantou-next"
|
|
5628
|
-
: "es-icon-mm",
|
|
5934
|
+
contents: item.icons || item.icon || _vm.menuIcon,
|
|
5629
5935
|
},
|
|
5630
5936
|
}),
|
|
5631
5937
|
_c(
|
|
5632
|
-
"
|
|
5633
|
-
{
|
|
5938
|
+
"el-badge",
|
|
5939
|
+
_vm._b({}, "el-badge", _vm.getBadge(item), false),
|
|
5634
5940
|
[
|
|
5635
|
-
|
|
5636
|
-
"
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5941
|
+
_c(
|
|
5942
|
+
"div",
|
|
5943
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5944
|
+
[
|
|
5945
|
+
_vm._v(
|
|
5946
|
+
"\n " +
|
|
5947
|
+
_vm._s(item.text || item.name) +
|
|
5948
|
+
"\n "
|
|
5949
|
+
),
|
|
5950
|
+
]
|
|
5641
5951
|
),
|
|
5642
5952
|
]
|
|
5643
5953
|
),
|
|
5954
|
+
_c(
|
|
5955
|
+
"div",
|
|
5956
|
+
{ staticClass: "es-simplicity_apps-hover" },
|
|
5957
|
+
[
|
|
5958
|
+
_c("es-icon", {
|
|
5959
|
+
staticClass: "es-simplicity_apps-icon",
|
|
5960
|
+
attrs: {
|
|
5961
|
+
contents: item.permission
|
|
5962
|
+
? "es-icon-jiantou-next"
|
|
5963
|
+
: "es-icon-mm",
|
|
5964
|
+
},
|
|
5965
|
+
}),
|
|
5966
|
+
_c(
|
|
5967
|
+
"div",
|
|
5968
|
+
{ staticClass: "es-simplicity_apps-text" },
|
|
5969
|
+
[
|
|
5970
|
+
_vm._v(
|
|
5971
|
+
"\n " +
|
|
5972
|
+
_vm._s(
|
|
5973
|
+
item.permission
|
|
5974
|
+
? "进入系统"
|
|
5975
|
+
: "暂无权限"
|
|
5976
|
+
) +
|
|
5977
|
+
"\n "
|
|
5978
|
+
),
|
|
5979
|
+
]
|
|
5980
|
+
),
|
|
5981
|
+
],
|
|
5982
|
+
1
|
|
5983
|
+
),
|
|
5644
5984
|
],
|
|
5645
5985
|
1
|
|
5646
5986
|
),
|
|
5647
|
-
]
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
)
|
|
5652
|
-
|
|
5653
|
-
|
|
5987
|
+
]
|
|
5988
|
+
)
|
|
5989
|
+
}),
|
|
5990
|
+
0
|
|
5991
|
+
),
|
|
5992
|
+
_c("el-pagination", {
|
|
5993
|
+
staticClass: "es-simplicity_apps-pagination",
|
|
5994
|
+
attrs: {
|
|
5995
|
+
background: "",
|
|
5996
|
+
layout: "total,prev, pager, next",
|
|
5997
|
+
"total-text": "共 {total} 系统设置",
|
|
5998
|
+
"hide-on-single-page": "",
|
|
5999
|
+
"page-size": _vm.appSize,
|
|
6000
|
+
total: _vm.business.length,
|
|
6001
|
+
},
|
|
6002
|
+
on: {
|
|
6003
|
+
"current-change": function (res) {
|
|
6004
|
+
this$1.handleChange(res, 2)
|
|
6005
|
+
},
|
|
6006
|
+
},
|
|
6007
|
+
}),
|
|
6008
|
+
],
|
|
6009
|
+
1
|
|
5654
6010
|
),
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
layout: "total,prev, pager, next",
|
|
5660
|
-
"total-text": "共 {total} 系统设置",
|
|
5661
|
-
"hide-on-single-page": "",
|
|
5662
|
-
"page-size": _vm.appSize,
|
|
5663
|
-
total: _vm.business.length,
|
|
5664
|
-
},
|
|
5665
|
-
on: {
|
|
5666
|
-
"current-change": function (res) {
|
|
5667
|
-
this$1.handleChange(res, 2)
|
|
5668
|
-
},
|
|
5669
|
-
},
|
|
5670
|
-
}),
|
|
5671
|
-
],
|
|
5672
|
-
1
|
|
5673
|
-
),
|
|
5674
|
-
]),
|
|
5675
|
-
])
|
|
6011
|
+
]),
|
|
6012
|
+
]),
|
|
6013
|
+
]
|
|
6014
|
+
)
|
|
5676
6015
|
}
|
|
5677
|
-
var
|
|
5678
|
-
|
|
6016
|
+
var appsvue_type_template_id_62050c35_scoped_true_staticRenderFns = []
|
|
6017
|
+
appsvue_type_template_id_62050c35_scoped_true_render._withStripped = true
|
|
5679
6018
|
|
|
5680
6019
|
|
|
5681
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/apps.vue?vue&type=template&id=
|
|
6020
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/apps.vue?vue&type=template&id=62050c35&scoped=true&
|
|
5682
6021
|
|
|
5683
6022
|
// EXTERNAL MODULE: external "throttle-debounce"
|
|
5684
6023
|
var external_throttle_debounce_ = __webpack_require__(11);
|
|
@@ -5859,12 +6198,24 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
5859
6198
|
//
|
|
5860
6199
|
//
|
|
5861
6200
|
//
|
|
6201
|
+
//
|
|
6202
|
+
//
|
|
6203
|
+
//
|
|
6204
|
+
//
|
|
6205
|
+
//
|
|
6206
|
+
//
|
|
6207
|
+
//
|
|
6208
|
+
//
|
|
6209
|
+
//
|
|
6210
|
+
//
|
|
6211
|
+
//
|
|
5862
6212
|
|
|
5863
6213
|
|
|
5864
6214
|
/* harmony default export */ var appsvue_type_script_lang_js_ = ({
|
|
5865
6215
|
name: 'Apps',
|
|
5866
6216
|
components: {},
|
|
5867
6217
|
props: {
|
|
6218
|
+
visible: Boolean,
|
|
5868
6219
|
//菜单、应用默认图标
|
|
5869
6220
|
menuIcon: String,
|
|
5870
6221
|
color: {
|
|
@@ -5912,6 +6263,15 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
5912
6263
|
},
|
|
5913
6264
|
|
|
5914
6265
|
computed: {
|
|
6266
|
+
show: {
|
|
6267
|
+
get: function get() {
|
|
6268
|
+
return this.visible;
|
|
6269
|
+
},
|
|
6270
|
+
set: function set(val) {
|
|
6271
|
+
this.$emit('update:visible', val);
|
|
6272
|
+
return val;
|
|
6273
|
+
}
|
|
6274
|
+
},
|
|
5915
6275
|
_applications: function _applications() {
|
|
5916
6276
|
var _this = this;
|
|
5917
6277
|
|
|
@@ -5988,6 +6348,16 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
5988
6348
|
var name = ['appNum', 'bsNum', 'sysNum'];
|
|
5989
6349
|
this[name[index]] = res;
|
|
5990
6350
|
},
|
|
6351
|
+
handleWheel: function handleWheel(e) {
|
|
6352
|
+
var direction = e.deltaY > 0 ? 'down' : 'up'; //deltaY为正则滚轮向下,为负滚轮向上
|
|
6353
|
+
var total = Math.ceil(this.apps.length / this.appSize);
|
|
6354
|
+
if (direction == 'up' && this.appNum > 1) {
|
|
6355
|
+
this.appNum -= 1;
|
|
6356
|
+
}
|
|
6357
|
+
if (direction == 'down' && this.appNum < total) {
|
|
6358
|
+
this.appNum += 1;
|
|
6359
|
+
}
|
|
6360
|
+
},
|
|
5991
6361
|
handleClick: function handleClick(res) {
|
|
5992
6362
|
this.$emit('click', res);
|
|
5993
6363
|
},
|
|
@@ -6022,18 +6392,18 @@ var external_throttle_debounce_ = __webpack_require__(11);
|
|
|
6022
6392
|
|
|
6023
6393
|
var apps_component = Object(componentNormalizer["a" /* default */])(
|
|
6024
6394
|
simplicity_appsvue_type_script_lang_js_,
|
|
6025
|
-
|
|
6026
|
-
|
|
6395
|
+
appsvue_type_template_id_62050c35_scoped_true_render,
|
|
6396
|
+
appsvue_type_template_id_62050c35_scoped_true_staticRenderFns,
|
|
6027
6397
|
false,
|
|
6028
6398
|
null,
|
|
6029
|
-
"
|
|
6399
|
+
"62050c35",
|
|
6030
6400
|
null
|
|
6031
6401
|
|
|
6032
6402
|
)
|
|
6033
6403
|
|
|
6034
6404
|
/* harmony default export */ var simplicity_apps = (apps_component.exports);
|
|
6035
|
-
// 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=
|
|
6036
|
-
var
|
|
6405
|
+
// 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&
|
|
6406
|
+
var uservue_type_template_id_4f9acb61_scoped_true_render = function () {
|
|
6037
6407
|
var _vm = this
|
|
6038
6408
|
var _h = _vm.$createElement
|
|
6039
6409
|
var _c = _vm._self._c || _h
|
|
@@ -6177,7 +6547,7 @@ var uservue_type_template_id_6366508b_scoped_true_render = function () {
|
|
|
6177
6547
|
},
|
|
6178
6548
|
[
|
|
6179
6549
|
_vm.visible
|
|
6180
|
-
? _c("
|
|
6550
|
+
? _c("user-info", {
|
|
6181
6551
|
attrs: { contents: _vm.contents, value: _vm.userInfo },
|
|
6182
6552
|
})
|
|
6183
6553
|
: _vm._e(),
|
|
@@ -6188,14 +6558,14 @@ var uservue_type_template_id_6366508b_scoped_true_render = function () {
|
|
|
6188
6558
|
1
|
|
6189
6559
|
)
|
|
6190
6560
|
}
|
|
6191
|
-
var
|
|
6192
|
-
|
|
6561
|
+
var uservue_type_template_id_4f9acb61_scoped_true_staticRenderFns = []
|
|
6562
|
+
uservue_type_template_id_4f9acb61_scoped_true_render._withStripped = true
|
|
6193
6563
|
|
|
6194
6564
|
|
|
6195
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=
|
|
6565
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=4f9acb61&scoped=true&
|
|
6196
6566
|
|
|
6197
|
-
// 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=
|
|
6198
|
-
var
|
|
6567
|
+
// 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&
|
|
6568
|
+
var userinfovue_type_template_id_0dbd4cc6_render = function () {
|
|
6199
6569
|
var _vm = this
|
|
6200
6570
|
var _h = _vm.$createElement
|
|
6201
6571
|
var _c = _vm._self._c || _h
|
|
@@ -6211,11 +6581,11 @@ var userinfovue_type_template_id_55233cdc_render = function () {
|
|
|
6211
6581
|
2
|
|
6212
6582
|
)
|
|
6213
6583
|
}
|
|
6214
|
-
var
|
|
6215
|
-
|
|
6584
|
+
var userinfovue_type_template_id_0dbd4cc6_staticRenderFns = []
|
|
6585
|
+
userinfovue_type_template_id_0dbd4cc6_render._withStripped = true
|
|
6216
6586
|
|
|
6217
6587
|
|
|
6218
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=
|
|
6588
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=0dbd4cc6&
|
|
6219
6589
|
|
|
6220
6590
|
// 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&
|
|
6221
6591
|
//
|
|
@@ -6236,6 +6606,7 @@ userinfovue_type_template_id_55233cdc_render._withStripped = true
|
|
|
6236
6606
|
|
|
6237
6607
|
|
|
6238
6608
|
/* harmony default export */ var userinfovue_type_script_lang_js_ = ({
|
|
6609
|
+
name: 'UserInfo',
|
|
6239
6610
|
props: {
|
|
6240
6611
|
showNotify: {
|
|
6241
6612
|
type: Boolean,
|
|
@@ -6472,8 +6843,8 @@ userinfovue_type_template_id_55233cdc_render._withStripped = true
|
|
|
6472
6843
|
|
|
6473
6844
|
var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
6474
6845
|
simplicity_userinfovue_type_script_lang_js_,
|
|
6475
|
-
|
|
6476
|
-
|
|
6846
|
+
userinfovue_type_template_id_0dbd4cc6_render,
|
|
6847
|
+
userinfovue_type_template_id_0dbd4cc6_staticRenderFns,
|
|
6477
6848
|
false,
|
|
6478
6849
|
null,
|
|
6479
6850
|
null,
|
|
@@ -6557,7 +6928,7 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6557
6928
|
|
|
6558
6929
|
/* harmony default export */ var uservue_type_script_lang_js_ = ({
|
|
6559
6930
|
name: 'User',
|
|
6560
|
-
components: { avatar: avatar,
|
|
6931
|
+
components: { avatar: avatar, userInfo: userinfo },
|
|
6561
6932
|
props: {
|
|
6562
6933
|
notify: String,
|
|
6563
6934
|
notifyList: Array,
|
|
@@ -6732,32 +7103,32 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6732
7103
|
|
|
6733
7104
|
var user_component = Object(componentNormalizer["a" /* default */])(
|
|
6734
7105
|
simplicity_uservue_type_script_lang_js_,
|
|
6735
|
-
|
|
6736
|
-
|
|
7106
|
+
uservue_type_template_id_4f9acb61_scoped_true_render,
|
|
7107
|
+
uservue_type_template_id_4f9acb61_scoped_true_staticRenderFns,
|
|
6737
7108
|
false,
|
|
6738
7109
|
null,
|
|
6739
|
-
"
|
|
7110
|
+
"4f9acb61",
|
|
6740
7111
|
null
|
|
6741
7112
|
|
|
6742
7113
|
)
|
|
6743
7114
|
|
|
6744
7115
|
/* harmony default export */ var simplicity_user = (user_component.exports);
|
|
6745
|
-
// 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=
|
|
6746
|
-
var
|
|
7116
|
+
// 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&
|
|
7117
|
+
var messagevue_type_template_id_0ee7ab90_render = function () {
|
|
6747
7118
|
var _vm = this
|
|
6748
7119
|
var _h = _vm.$createElement
|
|
6749
7120
|
var _c = _vm._self._c || _h
|
|
6750
7121
|
return _c(
|
|
6751
7122
|
"el-drawer",
|
|
6752
7123
|
{
|
|
6753
|
-
staticClass: "es-
|
|
7124
|
+
staticClass: "es-simplicity-message",
|
|
6754
7125
|
attrs: {
|
|
6755
|
-
"
|
|
7126
|
+
"modal-class": "es-simplicity-message-modal",
|
|
6756
7127
|
direction: "rtl",
|
|
6757
|
-
size: "
|
|
6758
|
-
modal: false,
|
|
7128
|
+
size: "648px",
|
|
6759
7129
|
withHeader: false,
|
|
6760
7130
|
visible: _vm.show,
|
|
7131
|
+
"modal-append-to-body": false,
|
|
6761
7132
|
},
|
|
6762
7133
|
on: {
|
|
6763
7134
|
"update:visible": function ($event) {
|
|
@@ -6766,18 +7137,23 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6766
7137
|
},
|
|
6767
7138
|
},
|
|
6768
7139
|
[
|
|
6769
|
-
_c("div", { staticClass: "es-
|
|
6770
|
-
_c("span", { staticClass: "es-
|
|
7140
|
+
_c("div", { staticClass: "es-simplicity-message-header" }, [
|
|
7141
|
+
_c("span", { staticClass: "es-simplicity-message-title" }, [
|
|
7142
|
+
_vm._v("消息提示"),
|
|
7143
|
+
]),
|
|
6771
7144
|
_c(
|
|
6772
7145
|
"span",
|
|
6773
|
-
{
|
|
7146
|
+
{
|
|
7147
|
+
staticClass: "es-simplicity-message-overlook",
|
|
7148
|
+
on: { click: _vm.handleIgnoreAll },
|
|
7149
|
+
},
|
|
6774
7150
|
[_vm._v("全部忽略")]
|
|
6775
7151
|
),
|
|
6776
7152
|
]),
|
|
6777
|
-
_c("div", { staticClass: "es-
|
|
7153
|
+
_c("div", { staticClass: "es-simplicity-message-lists-box" }, [
|
|
6778
7154
|
_c(
|
|
6779
7155
|
"div",
|
|
6780
|
-
{ staticClass: "es-
|
|
7156
|
+
{ staticClass: "es-simplicity-message-lists" },
|
|
6781
7157
|
[
|
|
6782
7158
|
_c("el-scrollbar", { staticClass: "es-scrollbar" }, [
|
|
6783
7159
|
_c(
|
|
@@ -6796,25 +7172,35 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6796
7172
|
[
|
|
6797
7173
|
_vm._l(_vm.msgs, function (item, index) {
|
|
6798
7174
|
return _c(
|
|
6799
|
-
"
|
|
6800
|
-
{
|
|
7175
|
+
"div",
|
|
7176
|
+
{
|
|
7177
|
+
key: item.id,
|
|
7178
|
+
staticClass: "es-simplicity-message-item",
|
|
7179
|
+
},
|
|
6801
7180
|
[
|
|
6802
|
-
_c(
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
]),
|
|
7181
|
+
_c(
|
|
7182
|
+
"div",
|
|
7183
|
+
{ staticClass: "es-simplicity-message-item-title" },
|
|
7184
|
+
[
|
|
7185
|
+
_vm._v(
|
|
7186
|
+
"\n " +
|
|
7187
|
+
_vm._s(item.title) +
|
|
7188
|
+
"\n "
|
|
7189
|
+
),
|
|
7190
|
+
]
|
|
7191
|
+
),
|
|
6814
7192
|
_c("div", [
|
|
6815
|
-
_c(
|
|
6816
|
-
|
|
6817
|
-
|
|
7193
|
+
_c(
|
|
7194
|
+
"span",
|
|
7195
|
+
{ staticClass: "es-simplicity-message-item-time" },
|
|
7196
|
+
[
|
|
7197
|
+
_vm._v(
|
|
7198
|
+
"\n " +
|
|
7199
|
+
_vm._s(item.time) +
|
|
7200
|
+
"\n "
|
|
7201
|
+
),
|
|
7202
|
+
]
|
|
7203
|
+
),
|
|
6818
7204
|
_c(
|
|
6819
7205
|
"span",
|
|
6820
7206
|
{
|
|
@@ -6826,27 +7212,39 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6826
7212
|
expression: "item.handlerUrl",
|
|
6827
7213
|
},
|
|
6828
7214
|
],
|
|
6829
|
-
staticClass: "es-
|
|
7215
|
+
staticClass: "es-simplicity-message-handler",
|
|
6830
7216
|
on: {
|
|
6831
7217
|
click: function ($event) {
|
|
6832
7218
|
_vm.handleMessage(item, index)
|
|
6833
7219
|
},
|
|
6834
7220
|
},
|
|
6835
7221
|
},
|
|
6836
|
-
[_vm._v("
|
|
7222
|
+
[_vm._v("\n 处理\n ")]
|
|
7223
|
+
),
|
|
7224
|
+
_c(
|
|
7225
|
+
"span",
|
|
7226
|
+
{
|
|
7227
|
+
staticClass: "es-simplicity-message-overlook",
|
|
7228
|
+
on: {
|
|
7229
|
+
click: function ($event) {
|
|
7230
|
+
_vm.handleIgnore(item, index)
|
|
7231
|
+
},
|
|
7232
|
+
},
|
|
7233
|
+
},
|
|
7234
|
+
[_vm._v("\n 忽略\n ")]
|
|
6837
7235
|
),
|
|
6838
7236
|
]),
|
|
6839
7237
|
]
|
|
6840
7238
|
)
|
|
6841
7239
|
}),
|
|
6842
7240
|
_vm.loading
|
|
6843
|
-
? _c("p", { staticClass: "es-
|
|
7241
|
+
? _c("p", { staticClass: "es-simplicity-message-tips" }, [
|
|
6844
7242
|
_vm._v("加载中..."),
|
|
6845
7243
|
])
|
|
6846
7244
|
: _vm._e(),
|
|
6847
7245
|
_vm.noMore && _vm.count > 0
|
|
6848
|
-
? _c("p", { staticClass: "es-
|
|
6849
|
-
_vm._v("
|
|
7246
|
+
? _c("p", { staticClass: "es-simplicity-message-tips" }, [
|
|
7247
|
+
_vm._v("\n 没有更多了\n "),
|
|
6850
7248
|
])
|
|
6851
7249
|
: _vm._e(),
|
|
6852
7250
|
],
|
|
@@ -6857,8 +7255,8 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6857
7255
|
1
|
|
6858
7256
|
),
|
|
6859
7257
|
]),
|
|
6860
|
-
_c("div", { staticClass: "es-
|
|
6861
|
-
_vm._v("
|
|
7258
|
+
_c("div", { staticClass: "es-simplicity-message-total" }, [
|
|
7259
|
+
_vm._v("共有 " + _vm._s(_vm.count) + " 条消息记录"),
|
|
6862
7260
|
]),
|
|
6863
7261
|
_c("es-dialog", {
|
|
6864
7262
|
attrs: {
|
|
@@ -6880,11 +7278,11 @@ var messagevue_type_template_id_4239f1c5_render = function () {
|
|
|
6880
7278
|
1
|
|
6881
7279
|
)
|
|
6882
7280
|
}
|
|
6883
|
-
var
|
|
6884
|
-
|
|
7281
|
+
var messagevue_type_template_id_0ee7ab90_staticRenderFns = []
|
|
7282
|
+
messagevue_type_template_id_0ee7ab90_render._withStripped = true
|
|
6885
7283
|
|
|
6886
7284
|
|
|
6887
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/message.vue?vue&type=template&id=
|
|
7285
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/message.vue?vue&type=template&id=0ee7ab90&
|
|
6888
7286
|
|
|
6889
7287
|
// 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&
|
|
6890
7288
|
//
|
|
@@ -6944,11 +7342,21 @@ messagevue_type_template_id_4239f1c5_render._withStripped = true
|
|
|
6944
7342
|
//
|
|
6945
7343
|
//
|
|
6946
7344
|
//
|
|
7345
|
+
//
|
|
7346
|
+
//
|
|
7347
|
+
//
|
|
7348
|
+
//
|
|
7349
|
+
//
|
|
7350
|
+
//
|
|
7351
|
+
//
|
|
7352
|
+
//
|
|
7353
|
+
//
|
|
7354
|
+
//
|
|
6947
7355
|
|
|
6948
7356
|
|
|
6949
7357
|
|
|
6950
7358
|
/* harmony default export */ var messagevue_type_script_lang_js_ = ({
|
|
6951
|
-
name: '
|
|
7359
|
+
name: 'Message',
|
|
6952
7360
|
provide: function provide() {
|
|
6953
7361
|
return {
|
|
6954
7362
|
deleteMessage: this.handleRemove
|
|
@@ -7134,8 +7542,8 @@ messagevue_type_template_id_4239f1c5_render._withStripped = true
|
|
|
7134
7542
|
|
|
7135
7543
|
var message_component = Object(componentNormalizer["a" /* default */])(
|
|
7136
7544
|
simplicity_messagevue_type_script_lang_js_,
|
|
7137
|
-
|
|
7138
|
-
|
|
7545
|
+
messagevue_type_template_id_0ee7ab90_render,
|
|
7546
|
+
messagevue_type_template_id_0ee7ab90_staticRenderFns,
|
|
7139
7547
|
false,
|
|
7140
7548
|
null,
|
|
7141
7549
|
null,
|
|
@@ -7144,8 +7552,8 @@ var message_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7144
7552
|
)
|
|
7145
7553
|
|
|
7146
7554
|
/* harmony default export */ var message = (message_component.exports);
|
|
7147
|
-
// 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=
|
|
7148
|
-
var
|
|
7555
|
+
// 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&
|
|
7556
|
+
var noticevue_type_template_id_1c74f5bb_render = function () {
|
|
7149
7557
|
var _vm = this
|
|
7150
7558
|
var _h = _vm.$createElement
|
|
7151
7559
|
var _c = _vm._self._c || _h
|
|
@@ -7167,11 +7575,12 @@ var noticevue_type_template_id_31787a15_render = function () {
|
|
|
7167
7575
|
{
|
|
7168
7576
|
name: "show",
|
|
7169
7577
|
rawName: "v-show",
|
|
7170
|
-
value: _vm.
|
|
7171
|
-
expression: "
|
|
7578
|
+
value: _vm.msgs.length,
|
|
7579
|
+
expression: "msgs.length",
|
|
7172
7580
|
},
|
|
7173
7581
|
],
|
|
7174
|
-
staticClass: "es-notice-box",
|
|
7582
|
+
staticClass: "es-simplicity-notice-box",
|
|
7583
|
+
class: { "es-in": _vm.msgs.length },
|
|
7175
7584
|
on: {
|
|
7176
7585
|
mouseover: function ($event) {
|
|
7177
7586
|
_vm.handleMouse(true)
|
|
@@ -7182,85 +7591,93 @@ var noticevue_type_template_id_31787a15_render = function () {
|
|
|
7182
7591
|
},
|
|
7183
7592
|
},
|
|
7184
7593
|
[
|
|
7594
|
+
_c("div", { staticClass: "es-simplicity-notice-header" }, [
|
|
7595
|
+
_c("span", { staticClass: "es-notice-title" }, [
|
|
7596
|
+
_vm._v("通知消息"),
|
|
7597
|
+
]),
|
|
7598
|
+
]),
|
|
7185
7599
|
_c(
|
|
7186
|
-
"
|
|
7187
|
-
{
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7600
|
+
"el-scrollbar",
|
|
7601
|
+
{
|
|
7602
|
+
staticClass:
|
|
7603
|
+
"es-simplicity-notice-lists es-simplicity-message-lists",
|
|
7604
|
+
},
|
|
7605
|
+
_vm._l(_vm.msgs, function (item, index) {
|
|
7606
|
+
return _c(
|
|
7607
|
+
"div",
|
|
7608
|
+
{ key: item.id, staticClass: "es-simplicity-message-item" },
|
|
7609
|
+
[
|
|
7610
|
+
_c(
|
|
7611
|
+
"div",
|
|
7612
|
+
{ staticClass: "es-simplicity-message-item-title" },
|
|
7613
|
+
[_vm._v("\n " + _vm._s(item.title) + "\n ")]
|
|
7614
|
+
),
|
|
7615
|
+
_c("div", [
|
|
7199
7616
|
_c(
|
|
7200
|
-
"
|
|
7201
|
-
{ staticClass: "es-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
"
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
}
|
|
7238
|
-
|
|
7617
|
+
"span",
|
|
7618
|
+
{ staticClass: "es-simplicity-message-item-time" },
|
|
7619
|
+
[
|
|
7620
|
+
_vm._v(
|
|
7621
|
+
"\n " + _vm._s(item.time) + "\n "
|
|
7622
|
+
),
|
|
7623
|
+
]
|
|
7624
|
+
),
|
|
7625
|
+
_c(
|
|
7626
|
+
"span",
|
|
7627
|
+
{
|
|
7628
|
+
directives: [
|
|
7629
|
+
{
|
|
7630
|
+
name: "show",
|
|
7631
|
+
rawName: "v-show",
|
|
7632
|
+
value: item.handlerUrl,
|
|
7633
|
+
expression: "item.handlerUrl",
|
|
7634
|
+
},
|
|
7635
|
+
],
|
|
7636
|
+
staticClass: "es-simplicity-message-handler",
|
|
7637
|
+
on: {
|
|
7638
|
+
click: function ($event) {
|
|
7639
|
+
_vm.handleMessage(item, index)
|
|
7640
|
+
},
|
|
7641
|
+
},
|
|
7642
|
+
},
|
|
7643
|
+
[_vm._v("\n 处理\n ")]
|
|
7644
|
+
),
|
|
7645
|
+
_c(
|
|
7646
|
+
"span",
|
|
7647
|
+
{
|
|
7648
|
+
staticClass: "es-simplicity-message-overlook",
|
|
7649
|
+
on: {
|
|
7650
|
+
click: function ($event) {
|
|
7651
|
+
_vm.handleIgnore(item, index)
|
|
7652
|
+
},
|
|
7653
|
+
},
|
|
7654
|
+
},
|
|
7655
|
+
[_vm._v("\n 忽略\n ")]
|
|
7239
7656
|
),
|
|
7240
|
-
],
|
|
7241
|
-
1
|
|
7242
|
-
),
|
|
7243
|
-
]),
|
|
7244
|
-
_c(
|
|
7245
|
-
"div",
|
|
7246
|
-
{
|
|
7247
|
-
staticClass: "es-notice-footer",
|
|
7248
|
-
staticStyle: {
|
|
7249
|
-
display: "flex",
|
|
7250
|
-
"justify-content": "space-between",
|
|
7251
|
-
},
|
|
7252
|
-
},
|
|
7253
|
-
[
|
|
7254
|
-
_c("span", { on: { click: _vm.handleIgnoreAll } }, [
|
|
7255
|
-
_vm._v("忽略全部"),
|
|
7256
|
-
]),
|
|
7257
|
-
_c("span", { on: { click: _vm.afterEnter } }, [
|
|
7258
|
-
_vm._v("我知道了"),
|
|
7259
7657
|
]),
|
|
7260
7658
|
]
|
|
7261
|
-
)
|
|
7262
|
-
|
|
7659
|
+
)
|
|
7660
|
+
}),
|
|
7661
|
+
0
|
|
7263
7662
|
),
|
|
7663
|
+
_c("div", { staticClass: "es-notice-footer" }, [
|
|
7664
|
+
_c(
|
|
7665
|
+
"span",
|
|
7666
|
+
{
|
|
7667
|
+
staticClass: "es-simplicity-message-overlook",
|
|
7668
|
+
on: { click: _vm.handleIgnoreAll },
|
|
7669
|
+
},
|
|
7670
|
+
[_vm._v("忽略全部")]
|
|
7671
|
+
),
|
|
7672
|
+
_c(
|
|
7673
|
+
"span",
|
|
7674
|
+
{
|
|
7675
|
+
staticClass: "es-simplicity-message-handler",
|
|
7676
|
+
on: { click: _vm.afterEnter },
|
|
7677
|
+
},
|
|
7678
|
+
[_vm._v("我知道了")]
|
|
7679
|
+
),
|
|
7680
|
+
]),
|
|
7264
7681
|
_c("es-dialog", {
|
|
7265
7682
|
attrs: {
|
|
7266
7683
|
title: "处理",
|
|
@@ -7283,11 +7700,11 @@ var noticevue_type_template_id_31787a15_render = function () {
|
|
|
7283
7700
|
]
|
|
7284
7701
|
)
|
|
7285
7702
|
}
|
|
7286
|
-
var
|
|
7287
|
-
|
|
7703
|
+
var noticevue_type_template_id_1c74f5bb_staticRenderFns = []
|
|
7704
|
+
noticevue_type_template_id_1c74f5bb_render._withStripped = true
|
|
7288
7705
|
|
|
7289
7706
|
|
|
7290
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/notice.vue?vue&type=template&id=
|
|
7707
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/notice.vue?vue&type=template&id=1c74f5bb&
|
|
7291
7708
|
|
|
7292
7709
|
// 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&
|
|
7293
7710
|
//
|
|
@@ -7344,11 +7761,20 @@ noticevue_type_template_id_31787a15_render._withStripped = true
|
|
|
7344
7761
|
//
|
|
7345
7762
|
//
|
|
7346
7763
|
//
|
|
7764
|
+
//
|
|
7765
|
+
//
|
|
7766
|
+
//
|
|
7767
|
+
//
|
|
7768
|
+
//
|
|
7769
|
+
//
|
|
7770
|
+
//
|
|
7771
|
+
//
|
|
7772
|
+
//
|
|
7347
7773
|
|
|
7348
7774
|
|
|
7349
7775
|
|
|
7350
7776
|
/* harmony default export */ var noticevue_type_script_lang_js_ = ({
|
|
7351
|
-
name: '
|
|
7777
|
+
name: 'Notice',
|
|
7352
7778
|
provide: function provide() {
|
|
7353
7779
|
return {
|
|
7354
7780
|
deleteNotice: this.handleRemove
|
|
@@ -7366,12 +7792,19 @@ noticevue_type_template_id_31787a15_render._withStripped = true
|
|
|
7366
7792
|
}
|
|
7367
7793
|
},
|
|
7368
7794
|
computed: {},
|
|
7795
|
+
watch: {
|
|
7796
|
+
data: {
|
|
7797
|
+
immediate: true,
|
|
7798
|
+
deep: true,
|
|
7799
|
+
handler: function handler(val) {
|
|
7800
|
+
this.msgs = val;
|
|
7801
|
+
}
|
|
7802
|
+
}
|
|
7803
|
+
},
|
|
7369
7804
|
data: function data() {
|
|
7370
7805
|
return {
|
|
7371
7806
|
//加载数据
|
|
7372
7807
|
loading: false,
|
|
7373
|
-
//消息页码
|
|
7374
|
-
pageNum: 1,
|
|
7375
7808
|
//消息数据,
|
|
7376
7809
|
msgs: [],
|
|
7377
7810
|
//即时消息
|
|
@@ -7393,20 +7826,38 @@ noticevue_type_template_id_31787a15_render._withStripped = true
|
|
|
7393
7826
|
this.$emit('opened', flag);
|
|
7394
7827
|
},
|
|
7395
7828
|
|
|
7829
|
+
//忽略
|
|
7830
|
+
handleIgnore: function handleIgnore(res, i) {
|
|
7831
|
+
var _this = this;
|
|
7832
|
+
|
|
7833
|
+
utils_util["a" /* default */].ajax({
|
|
7834
|
+
url: api["W" /* ignoreSysMsg */],
|
|
7835
|
+
params: {
|
|
7836
|
+
id: res.id
|
|
7837
|
+
}
|
|
7838
|
+
}).then(function (res) {
|
|
7839
|
+
if (res.rCode == 0) {
|
|
7840
|
+
_this.msgs.splice(i, 1);
|
|
7841
|
+
} else {
|
|
7842
|
+
var msg = res.msg || '系统错误,请联系管理员!';
|
|
7843
|
+
_this.$message.error(msg);
|
|
7844
|
+
}
|
|
7845
|
+
});
|
|
7846
|
+
},
|
|
7847
|
+
|
|
7396
7848
|
//全部忽略
|
|
7397
7849
|
handleIgnoreAll: function handleIgnoreAll() {
|
|
7398
|
-
var
|
|
7850
|
+
var _this2 = this;
|
|
7399
7851
|
|
|
7400
7852
|
utils_util["a" /* default */].ajax({
|
|
7401
7853
|
url: api["V" /* ignoreAllSysMsg */]
|
|
7402
7854
|
}).then(function (res) {
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
_this.$emit('opened', false);
|
|
7855
|
+
_this2.msgs = [];
|
|
7856
|
+
_this2.$emit('ignore', { type: 'ignore', value: 'all' });
|
|
7857
|
+
_this2.$emit('opened', false);
|
|
7407
7858
|
}).catch(function (err) {
|
|
7408
7859
|
if (err.message && err.message !== 'canceled') {
|
|
7409
|
-
|
|
7860
|
+
_this2.$message.error(err.message);
|
|
7410
7861
|
}
|
|
7411
7862
|
});
|
|
7412
7863
|
},
|
|
@@ -7449,8 +7900,8 @@ noticevue_type_template_id_31787a15_render._withStripped = true
|
|
|
7449
7900
|
|
|
7450
7901
|
var notice_component = Object(componentNormalizer["a" /* default */])(
|
|
7451
7902
|
simplicity_noticevue_type_script_lang_js_,
|
|
7452
|
-
|
|
7453
|
-
|
|
7903
|
+
noticevue_type_template_id_1c74f5bb_render,
|
|
7904
|
+
noticevue_type_template_id_1c74f5bb_staticRenderFns,
|
|
7454
7905
|
false,
|
|
7455
7906
|
null,
|
|
7456
7907
|
null,
|
|
@@ -7459,8 +7910,8 @@ var notice_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7459
7910
|
)
|
|
7460
7911
|
|
|
7461
7912
|
/* harmony default export */ var notice = (notice_component.exports);
|
|
7462
|
-
// 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=
|
|
7463
|
-
var
|
|
7913
|
+
// 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&
|
|
7914
|
+
var settingsvue_type_template_id_48437ba0_render = function () {
|
|
7464
7915
|
var _vm = this
|
|
7465
7916
|
var _h = _vm.$createElement
|
|
7466
7917
|
var _c = _vm._self._c || _h
|
|
@@ -7541,11 +7992,11 @@ var settingsvue_type_template_id_8d47a100_render = function () {
|
|
|
7541
7992
|
]
|
|
7542
7993
|
)
|
|
7543
7994
|
}
|
|
7544
|
-
var
|
|
7545
|
-
|
|
7995
|
+
var settingsvue_type_template_id_48437ba0_staticRenderFns = []
|
|
7996
|
+
settingsvue_type_template_id_48437ba0_render._withStripped = true
|
|
7546
7997
|
|
|
7547
7998
|
|
|
7548
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/settings.vue?vue&type=template&id=
|
|
7999
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/settings.vue?vue&type=template&id=48437ba0&
|
|
7549
8000
|
|
|
7550
8001
|
// 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&
|
|
7551
8002
|
//
|
|
@@ -7588,7 +8039,7 @@ settingsvue_type_template_id_8d47a100_render._withStripped = true
|
|
|
7588
8039
|
|
|
7589
8040
|
|
|
7590
8041
|
/* harmony default export */ var settingsvue_type_script_lang_js_ = ({
|
|
7591
|
-
name: '
|
|
8042
|
+
name: 'Message',
|
|
7592
8043
|
props: {
|
|
7593
8044
|
visible: Boolean,
|
|
7594
8045
|
//主题颜色选择颜色集合
|
|
@@ -7677,8 +8128,8 @@ settingsvue_type_template_id_8d47a100_render._withStripped = true
|
|
|
7677
8128
|
|
|
7678
8129
|
var settings_component = Object(componentNormalizer["a" /* default */])(
|
|
7679
8130
|
simplicity_settingsvue_type_script_lang_js_,
|
|
7680
|
-
|
|
7681
|
-
|
|
8131
|
+
settingsvue_type_template_id_48437ba0_render,
|
|
8132
|
+
settingsvue_type_template_id_48437ba0_staticRenderFns,
|
|
7682
8133
|
false,
|
|
7683
8134
|
null,
|
|
7684
8135
|
null,
|
|
@@ -7687,13 +8138,25 @@ var settings_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7687
8138
|
)
|
|
7688
8139
|
|
|
7689
8140
|
/* harmony default export */ var settings = (settings_component.exports);
|
|
7690
|
-
//
|
|
7691
|
-
var
|
|
8141
|
+
// 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&
|
|
8142
|
+
var router_pagevue_type_template_id_ec0c2718_scoped_true_render = function () {
|
|
8143
|
+
var _vm = this
|
|
8144
|
+
var _h = _vm.$createElement
|
|
8145
|
+
var _c = _vm._self._c || _h
|
|
8146
|
+
return _c(
|
|
8147
|
+
"keep-alive",
|
|
8148
|
+
[_c("router-view", { attrs: { name: _vm.appCode } })],
|
|
8149
|
+
1
|
|
8150
|
+
)
|
|
8151
|
+
}
|
|
8152
|
+
var router_pagevue_type_template_id_ec0c2718_scoped_true_staticRenderFns = []
|
|
8153
|
+
router_pagevue_type_template_id_ec0c2718_scoped_true_render._withStripped = true
|
|
7692
8154
|
|
|
7693
|
-
// 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&
|
|
7694
|
-
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; };
|
|
7695
8155
|
|
|
7696
|
-
|
|
8156
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/router-page.vue?vue&type=template&id=ec0c2718&scoped=true&
|
|
8157
|
+
|
|
8158
|
+
// 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&
|
|
8159
|
+
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; };
|
|
7697
8160
|
|
|
7698
8161
|
//
|
|
7699
8162
|
//
|
|
@@ -7701,16 +8164,80 @@ var simplicityvue_type_script_lang_js_this = undefined;
|
|
|
7701
8164
|
//
|
|
7702
8165
|
//
|
|
7703
8166
|
//
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
8167
|
+
|
|
8168
|
+
|
|
8169
|
+
/* harmony default export */ var router_pagevue_type_script_lang_js_ = ({
|
|
8170
|
+
name: 'RouterPage',
|
|
8171
|
+
components: {},
|
|
8172
|
+
props: {
|
|
8173
|
+
appCode: String,
|
|
8174
|
+
path: String,
|
|
8175
|
+
url: String,
|
|
8176
|
+
query: {
|
|
8177
|
+
type: Object,
|
|
8178
|
+
default: function _default() {
|
|
8179
|
+
return {};
|
|
8180
|
+
}
|
|
8181
|
+
},
|
|
8182
|
+
show: Boolean
|
|
8183
|
+
},
|
|
8184
|
+
data: function data() {
|
|
8185
|
+
return {
|
|
8186
|
+
params: {}
|
|
8187
|
+
};
|
|
8188
|
+
},
|
|
8189
|
+
|
|
8190
|
+
computed: {},
|
|
8191
|
+
watch: {
|
|
8192
|
+
show: function show(val) {
|
|
8193
|
+
if (val) {
|
|
8194
|
+
this.jump();
|
|
8195
|
+
}
|
|
8196
|
+
}
|
|
8197
|
+
},
|
|
8198
|
+
created: function created() {},
|
|
8199
|
+
mounted: function mounted() {
|
|
8200
|
+
this.params = utils_util["a" /* default */].getParams({ url: this.url });
|
|
8201
|
+
this.jump();
|
|
8202
|
+
},
|
|
8203
|
+
|
|
8204
|
+
methods: {
|
|
8205
|
+
jump: function jump() {
|
|
8206
|
+
this.$router.push({
|
|
8207
|
+
path: this.path,
|
|
8208
|
+
query: _extends({}, this.query, this.params)
|
|
8209
|
+
});
|
|
8210
|
+
}
|
|
8211
|
+
}
|
|
8212
|
+
});
|
|
8213
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/router-page.vue?vue&type=script&lang=js&
|
|
8214
|
+
/* harmony default export */ var simplicity_router_pagevue_type_script_lang_js_ = (router_pagevue_type_script_lang_js_);
|
|
8215
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/router-page.vue
|
|
8216
|
+
|
|
8217
|
+
|
|
8218
|
+
|
|
8219
|
+
|
|
8220
|
+
|
|
8221
|
+
/* normalize component */
|
|
8222
|
+
|
|
8223
|
+
var router_page_component = Object(componentNormalizer["a" /* default */])(
|
|
8224
|
+
simplicity_router_pagevue_type_script_lang_js_,
|
|
8225
|
+
router_pagevue_type_template_id_ec0c2718_scoped_true_render,
|
|
8226
|
+
router_pagevue_type_template_id_ec0c2718_scoped_true_staticRenderFns,
|
|
8227
|
+
false,
|
|
8228
|
+
null,
|
|
8229
|
+
"ec0c2718",
|
|
8230
|
+
null
|
|
8231
|
+
|
|
8232
|
+
)
|
|
8233
|
+
|
|
8234
|
+
/* harmony default export */ var router_page = (router_page_component.exports);
|
|
8235
|
+
// EXTERNAL MODULE: ./src/utils/store.js
|
|
8236
|
+
var store = __webpack_require__(12);
|
|
8237
|
+
|
|
8238
|
+
// 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&
|
|
8239
|
+
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; };
|
|
8240
|
+
|
|
7714
8241
|
//
|
|
7715
8242
|
//
|
|
7716
8243
|
//
|
|
@@ -8002,15 +8529,16 @@ var simplicityvue_type_script_lang_js_this = undefined;
|
|
|
8002
8529
|
|
|
8003
8530
|
|
|
8004
8531
|
|
|
8532
|
+
|
|
8005
8533
|
var isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
8006
|
-
var events = [function (tabs, index) {
|
|
8534
|
+
var events = [function (tabs, index, that) {
|
|
8007
8535
|
var tab = tabs[index];
|
|
8008
8536
|
|
|
8009
8537
|
if (tab.method == 'iframe') {
|
|
8010
8538
|
tabs[index].url = utils_util["a" /* default */].handlerUrl(tab.url);
|
|
8011
8539
|
} else {
|
|
8012
8540
|
tabs[index].refresh = false;
|
|
8013
|
-
|
|
8541
|
+
that.$nextTick(function () {
|
|
8014
8542
|
tabs[index].refresh = true;
|
|
8015
8543
|
});
|
|
8016
8544
|
}
|
|
@@ -8048,7 +8576,7 @@ var events = [function (tabs, index) {
|
|
|
8048
8576
|
return tabs;
|
|
8049
8577
|
}];
|
|
8050
8578
|
/* harmony default export */ var simplicityvue_type_script_lang_js_ = ({
|
|
8051
|
-
name: '
|
|
8579
|
+
name: 'Simplicity',
|
|
8052
8580
|
components: {
|
|
8053
8581
|
avatar: avatar,
|
|
8054
8582
|
handler: simplicity_handler,
|
|
@@ -8057,7 +8585,8 @@ var events = [function (tabs, index) {
|
|
|
8057
8585
|
user: simplicity_user,
|
|
8058
8586
|
message: message,
|
|
8059
8587
|
notice: notice,
|
|
8060
|
-
settings: settings
|
|
8588
|
+
settings: settings,
|
|
8589
|
+
routerPage: router_page
|
|
8061
8590
|
},
|
|
8062
8591
|
props: {
|
|
8063
8592
|
appCode: String,
|
|
@@ -8139,10 +8668,13 @@ var events = [function (tabs, index) {
|
|
|
8139
8668
|
wjProps: Object,
|
|
8140
8669
|
//无界微前端Attrs属性
|
|
8141
8670
|
wjAttrs: Object,
|
|
8671
|
+
//菜单宽度
|
|
8142
8672
|
menuWidth: {
|
|
8143
8673
|
type: Number,
|
|
8144
8674
|
default: 220
|
|
8145
|
-
}
|
|
8675
|
+
},
|
|
8676
|
+
//路由方式
|
|
8677
|
+
routeType: String
|
|
8146
8678
|
},
|
|
8147
8679
|
data: function data() {
|
|
8148
8680
|
return {
|
|
@@ -8156,12 +8688,16 @@ var events = [function (tabs, index) {
|
|
|
8156
8688
|
userApps: [],
|
|
8157
8689
|
//所有菜单
|
|
8158
8690
|
menus: [],
|
|
8691
|
+
//菜单名称
|
|
8692
|
+
title: '',
|
|
8159
8693
|
//子菜单
|
|
8160
8694
|
subMenus: null,
|
|
8161
8695
|
//展示菜单导航
|
|
8162
8696
|
showMenu: false,
|
|
8163
|
-
|
|
8164
|
-
|
|
8697
|
+
//子菜单选中
|
|
8698
|
+
subActive: '',
|
|
8699
|
+
//折叠菜单
|
|
8700
|
+
fold: false,
|
|
8165
8701
|
//人工智能配置
|
|
8166
8702
|
aiConfig: null,
|
|
8167
8703
|
//公用窗口面板配置
|
|
@@ -8290,7 +8826,7 @@ var events = [function (tabs, index) {
|
|
|
8290
8826
|
utils_util["a" /* default */].win.refresh = this.handleRefresh;
|
|
8291
8827
|
utils_util["a" /* default */].win.jumpMenu = this.jumpMenu;
|
|
8292
8828
|
utils_util["a" /* default */].win.windowOpen = this.openPage;
|
|
8293
|
-
this.
|
|
8829
|
+
this.handleListener();
|
|
8294
8830
|
},
|
|
8295
8831
|
|
|
8296
8832
|
methods: {
|
|
@@ -8299,13 +8835,13 @@ var events = [function (tabs, index) {
|
|
|
8299
8835
|
* @author huangbo
|
|
8300
8836
|
* @date 2024年9月7日
|
|
8301
8837
|
**/
|
|
8302
|
-
hasRouter: function hasRouter(res, url, code
|
|
8838
|
+
hasRouter: function hasRouter(res, url, code) {
|
|
8303
8839
|
if (!url) {
|
|
8304
8840
|
return false;
|
|
8305
8841
|
}
|
|
8306
8842
|
if (Array.isArray(res)) {
|
|
8307
8843
|
for (var i in res) {
|
|
8308
|
-
var path = this.hasRouter(res[i], url, code
|
|
8844
|
+
var path = this.hasRouter(res[i], url, code);
|
|
8309
8845
|
if (path) {
|
|
8310
8846
|
return path;
|
|
8311
8847
|
}
|
|
@@ -8328,7 +8864,7 @@ var events = [function (tabs, index) {
|
|
|
8328
8864
|
return pathname;
|
|
8329
8865
|
}
|
|
8330
8866
|
if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
|
|
8331
|
-
var _path2 = this.hasRouter(res.children, url, code
|
|
8867
|
+
var _path2 = this.hasRouter(res.children, url, code);
|
|
8332
8868
|
if (_path2) {
|
|
8333
8869
|
return _path2;
|
|
8334
8870
|
}
|
|
@@ -8460,7 +8996,7 @@ var events = [function (tabs, index) {
|
|
|
8460
8996
|
* @date 2024年9月7日
|
|
8461
8997
|
**/
|
|
8462
8998
|
getApplications: function getApplications() {
|
|
8463
|
-
var
|
|
8999
|
+
var _this = this;
|
|
8464
9000
|
|
|
8465
9001
|
var loading = utils_util["a" /* default */].loading('', '加载中...');
|
|
8466
9002
|
utils_util["a" /* default */].ajax({
|
|
@@ -8475,29 +9011,29 @@ var events = [function (tabs, index) {
|
|
|
8475
9011
|
app_system = _res$results.app_system,
|
|
8476
9012
|
app_user = _res$results.app_user;
|
|
8477
9013
|
|
|
8478
|
-
|
|
9014
|
+
_this.userApps = app_user.filter(function (item) {
|
|
8479
9015
|
return item.permission !== false;
|
|
8480
9016
|
});
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
9017
|
+
_this.applications = all;
|
|
9018
|
+
_this.business = app_special_business_system;
|
|
9019
|
+
_this.systems = app_system;
|
|
9020
|
+
_this.setTips(_this.userApps);
|
|
9021
|
+
_this.setTips(_this.applications);
|
|
9022
|
+
_this.setTips(_this.business);
|
|
9023
|
+
_this.setTips(_this.systems);
|
|
8488
9024
|
} else {
|
|
8489
|
-
|
|
9025
|
+
_this.$message.error('未分配应用菜单权限,请联系管理员!');
|
|
8490
9026
|
}
|
|
8491
|
-
|
|
9027
|
+
_this.getMenus(loading);
|
|
8492
9028
|
} else {
|
|
8493
9029
|
loading.close();
|
|
8494
9030
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
8495
|
-
|
|
9031
|
+
_this.$message.error(msg);
|
|
8496
9032
|
}
|
|
8497
9033
|
}).catch(function (err) {
|
|
8498
9034
|
loading.close();
|
|
8499
9035
|
if (err.message && err.message !== 'canceled') {
|
|
8500
|
-
|
|
9036
|
+
_this.$message.error(err.message);
|
|
8501
9037
|
}
|
|
8502
9038
|
});
|
|
8503
9039
|
},
|
|
@@ -8508,125 +9044,105 @@ var events = [function (tabs, index) {
|
|
|
8508
9044
|
* @date 2024年9月7日
|
|
8509
9045
|
**/
|
|
8510
9046
|
getMenus: function getMenus(loading) {
|
|
8511
|
-
var
|
|
9047
|
+
var _this2 = this;
|
|
8512
9048
|
|
|
8513
9049
|
utils_util["a" /* default */].ajax({ url: this._menuUrl }).then(function (res) {
|
|
8514
9050
|
loading.close();
|
|
8515
9051
|
if (res.rCode === 0) {
|
|
8516
9052
|
if (res.results && res.results.length) {
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
store["a" /* default */].set('nav',
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
return item.code === _this3.appCode;
|
|
9053
|
+
_this2.menus = res.results;
|
|
9054
|
+
_this2.setTips(_this2.menus);
|
|
9055
|
+
store["a" /* default */].set('nav', _this2.menus);
|
|
9056
|
+
if (_this2.appCode) {
|
|
9057
|
+
var app = _this2.userApps.filter(function (item) {
|
|
9058
|
+
return item.code === _this2.appCode;
|
|
8524
9059
|
})[0];
|
|
8525
9060
|
if (app) {
|
|
8526
|
-
|
|
9061
|
+
_this2.active = app.id;
|
|
8527
9062
|
if (app.url) {
|
|
8528
|
-
var
|
|
8529
|
-
if (
|
|
8530
|
-
var tab =
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
if (tab.method == 'router') {
|
|
8534
|
-
var params = utils_util["a" /* default */].getParams({ url: tab.url });
|
|
8535
|
-
_this3.$router.push({
|
|
8536
|
-
path: tab.path,
|
|
8537
|
-
query: params
|
|
8538
|
-
});
|
|
8539
|
-
}
|
|
9063
|
+
var obj = _this2.getMenu(_this2.menus, app.url);
|
|
9064
|
+
if (obj) {
|
|
9065
|
+
var tab = _this2.setIframeType(obj);
|
|
9066
|
+
_this2.tabs = [tab];
|
|
9067
|
+
_this2.activeName = tab.id;
|
|
8540
9068
|
}
|
|
8541
9069
|
}
|
|
8542
9070
|
}
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
if (
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
var _params = utils_util["a" /* default */].getParams({ url: _tab.url });
|
|
8555
|
-
_this3.$router.push({
|
|
8556
|
-
path: _tab.path,
|
|
8557
|
-
query: _params
|
|
8558
|
-
});
|
|
8559
|
-
}
|
|
9071
|
+
var subMenus = _this2.getMenu(_this2.menus, _this2.appCode, 'appCode');
|
|
9072
|
+
if (subMenus) {
|
|
9073
|
+
if (_this2.tabs.length == 0) {
|
|
9074
|
+
var _obj = _this2.getFirst(subMenus);
|
|
9075
|
+
if (_obj) {
|
|
9076
|
+
_this2.subActive = _obj.id;
|
|
9077
|
+
var _tab = _this2.setIframeType(_obj);
|
|
9078
|
+
_this2.tabs = [_tab];
|
|
9079
|
+
_this2.activeName = _tab.id;
|
|
9080
|
+
} else {
|
|
9081
|
+
_this2.subActive = '';
|
|
8560
9082
|
}
|
|
8561
|
-
} else {
|
|
8562
|
-
_this3.subMenus = null;
|
|
8563
|
-
_this3.showMenu = false;
|
|
8564
9083
|
}
|
|
9084
|
+
_this2.subMenus = subMenus;
|
|
9085
|
+
_this2.showMenu = true;
|
|
9086
|
+
} else {
|
|
9087
|
+
_this2.subMenus = null;
|
|
9088
|
+
_this2.showMenu = false;
|
|
8565
9089
|
}
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
_this3.tabs = [_tab2];
|
|
8575
|
-
_this3.activeName = _tab2.id;
|
|
8576
|
-
if (_tab2.method == 'router') {
|
|
8577
|
-
var _params2 = utils_util["a" /* default */].getParams({ url: _tab2.url });
|
|
8578
|
-
_this3.$router.push({
|
|
8579
|
-
path: _tab2.path,
|
|
8580
|
-
query: _params2
|
|
8581
|
-
});
|
|
9090
|
+
} else {
|
|
9091
|
+
if (_this2.indexUrl) {
|
|
9092
|
+
var _obj2 = _this2.getMenu(_this2.menus, _this2.indexUrl);
|
|
9093
|
+
if (_obj2) {
|
|
9094
|
+
if (!_this2.appCode) {
|
|
9095
|
+
var _tab2 = _this2.setIframeType(_obj2);
|
|
9096
|
+
_this2.tabs = [_tab2];
|
|
9097
|
+
_this2.activeName = _tab2.id;
|
|
8582
9098
|
}
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
}
|
|
9099
|
+
_this2.homePage = _obj2;
|
|
9100
|
+
} else {
|
|
9101
|
+
_this2.homePage = _this2.setIframeType({
|
|
9102
|
+
url: _this2.indexUrl,
|
|
9103
|
+
text: '工作台',
|
|
9104
|
+
id: '0',
|
|
9105
|
+
appCode: 'indexUrl'
|
|
9106
|
+
});
|
|
9107
|
+
if (!_this2.appCode) {
|
|
9108
|
+
_this2.tabs = [_this2.homePage];
|
|
9109
|
+
_this2.activeName = '0';
|
|
9110
|
+
// if (this.homePage.method == 'router') {
|
|
9111
|
+
// let params = util.getParams({ url: this.homePage.url });
|
|
9112
|
+
// this.$router.push({
|
|
9113
|
+
// path: this.homePage.path,
|
|
9114
|
+
// query: { ...this.$parent.params, ...params }
|
|
9115
|
+
// });
|
|
9116
|
+
// }
|
|
8601
9117
|
}
|
|
8602
9118
|
}
|
|
8603
|
-
}
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
}
|
|
9119
|
+
} else if (_this2.initApps && _this2.initApps.length && !_this2.appCode) {
|
|
9120
|
+
var _obj3 = _this2.getMenu(_this2.menus, _this2.initApps[_this2.initApps.length - 1]);
|
|
9121
|
+
if (_obj3) {
|
|
9122
|
+
var _tab3 = _this2.setIframeType(_obj3);
|
|
9123
|
+
_this2.tabs.push(_tab3);
|
|
9124
|
+
_this2.activeName = _tab3.id;
|
|
9125
|
+
// if (tab.method == 'router') {
|
|
9126
|
+
// let params = util.getParams({ url: tab.url });
|
|
9127
|
+
// this.$router.push({
|
|
9128
|
+
// path: tab.path,
|
|
9129
|
+
// query: { ...this.$parent.params, ...params }
|
|
9130
|
+
// });
|
|
9131
|
+
// }
|
|
8616
9132
|
}
|
|
8617
9133
|
}
|
|
8618
9134
|
}
|
|
8619
9135
|
} else {
|
|
8620
|
-
|
|
9136
|
+
_this2.$message.error('未分配菜单权限,请联系管理员!');
|
|
8621
9137
|
}
|
|
8622
9138
|
} else {
|
|
8623
9139
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
8624
|
-
|
|
9140
|
+
_this2.$message.error(msg);
|
|
8625
9141
|
}
|
|
8626
9142
|
}).catch(function (err) {
|
|
8627
9143
|
loading.close();
|
|
8628
9144
|
if (err.message && err.message !== 'canceled') {
|
|
8629
|
-
|
|
9145
|
+
_this2.$message.error(err.message);
|
|
8630
9146
|
}
|
|
8631
9147
|
});
|
|
8632
9148
|
},
|
|
@@ -8651,7 +9167,7 @@ var events = [function (tabs, index) {
|
|
|
8651
9167
|
var routes = this.$router.options.routes;
|
|
8652
9168
|
if (routes) {
|
|
8653
9169
|
var path = this.hasRouter(routes, urls[0], res.appCode);
|
|
8654
|
-
if (path) {
|
|
9170
|
+
if (path && this.routeType !== 'wujie') {
|
|
8655
9171
|
res.method = 'router';
|
|
8656
9172
|
res.path = path;
|
|
8657
9173
|
} else {
|
|
@@ -8693,14 +9209,14 @@ var events = [function (tabs, index) {
|
|
|
8693
9209
|
return item;
|
|
8694
9210
|
}
|
|
8695
9211
|
if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
|
|
8696
|
-
var
|
|
8697
|
-
if (
|
|
8698
|
-
return
|
|
9212
|
+
var obj = this.getMenu(item.children, res, key);
|
|
9213
|
+
if (obj) {
|
|
9214
|
+
return obj;
|
|
8699
9215
|
}
|
|
8700
9216
|
} else if (Object.prototype.hasOwnProperty.call(item, 'fourthTabs') && item.fourthTabs.length) {
|
|
8701
|
-
var
|
|
8702
|
-
if (
|
|
8703
|
-
return
|
|
9217
|
+
var _obj4 = this.getMenu(item.fourthTabs, res, key);
|
|
9218
|
+
if (_obj4) {
|
|
9219
|
+
return _obj4;
|
|
8704
9220
|
}
|
|
8705
9221
|
}
|
|
8706
9222
|
}
|
|
@@ -8736,11 +9252,11 @@ var events = [function (tabs, index) {
|
|
|
8736
9252
|
* @date 2024年9月7日
|
|
8737
9253
|
**/
|
|
8738
9254
|
setTips: function setTips(obj) {
|
|
8739
|
-
var
|
|
9255
|
+
var _this3 = this;
|
|
8740
9256
|
|
|
8741
9257
|
if (Array.isArray(obj)) {
|
|
8742
9258
|
obj.forEach(function (item) {
|
|
8743
|
-
|
|
9259
|
+
_this3.setTips(item);
|
|
8744
9260
|
});
|
|
8745
9261
|
} else {
|
|
8746
9262
|
if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
|
|
@@ -8750,7 +9266,7 @@ var events = [function (tabs, index) {
|
|
|
8750
9266
|
var flag = 0;
|
|
8751
9267
|
if (obj.children && obj.children.length) {
|
|
8752
9268
|
obj.children.forEach(function (item) {
|
|
8753
|
-
var n =
|
|
9269
|
+
var n = _this3.setTips(item);
|
|
8754
9270
|
flag += n ? parseInt(n) : 0;
|
|
8755
9271
|
});
|
|
8756
9272
|
if (flag) {
|
|
@@ -8759,7 +9275,7 @@ var events = [function (tabs, index) {
|
|
|
8759
9275
|
}
|
|
8760
9276
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
8761
9277
|
obj.fourthTabs.forEach(function (item) {
|
|
8762
|
-
var n =
|
|
9278
|
+
var n = _this3.setTips(item);
|
|
8763
9279
|
flag += n ? parseInt(n) : 0;
|
|
8764
9280
|
});
|
|
8765
9281
|
if (flag) {
|
|
@@ -8767,8 +9283,9 @@ var events = [function (tabs, index) {
|
|
|
8767
9283
|
return flag;
|
|
8768
9284
|
}
|
|
8769
9285
|
} else {
|
|
8770
|
-
|
|
8771
|
-
|
|
9286
|
+
var num = this.menuTips[obj.id] || this.menuTips[obj.code];
|
|
9287
|
+
if (num && Number(num)) {
|
|
9288
|
+
this.$set(obj, 'tips', Number(num));
|
|
8772
9289
|
return this.menuTips[obj.id];
|
|
8773
9290
|
}
|
|
8774
9291
|
}
|
|
@@ -8799,7 +9316,7 @@ var events = [function (tabs, index) {
|
|
|
8799
9316
|
* @date 2024年9月7日
|
|
8800
9317
|
**/
|
|
8801
9318
|
initWebSocket: function initWebSocket() {
|
|
8802
|
-
var
|
|
9319
|
+
var _this4 = this;
|
|
8803
9320
|
|
|
8804
9321
|
this.webSocket = utils_util["a" /* default */].socket({
|
|
8805
9322
|
url: api["cc" /* wss */],
|
|
@@ -8809,32 +9326,32 @@ var events = [function (tabs, index) {
|
|
|
8809
9326
|
for (var i in data) {
|
|
8810
9327
|
if (data[i] !== null && data[i] !== undefined) {
|
|
8811
9328
|
if (i === 'onlineUserNums' && data[i] > 0) {
|
|
8812
|
-
|
|
9329
|
+
_this4.online = data[i];
|
|
8813
9330
|
}
|
|
8814
9331
|
if (i === 'sysMsgNums') {
|
|
8815
|
-
|
|
8816
|
-
if (
|
|
8817
|
-
|
|
9332
|
+
_this4.notice = data[i];
|
|
9333
|
+
if (_this4.showMsg) {
|
|
9334
|
+
_this4.$refs.message.getMsg(true);
|
|
8818
9335
|
}
|
|
8819
9336
|
}
|
|
8820
9337
|
if (i === 'menuTipsMap') {
|
|
8821
|
-
|
|
9338
|
+
_this4.menuTips = data[i];
|
|
8822
9339
|
}
|
|
8823
9340
|
if (i === 'sysMsgList') {
|
|
8824
|
-
|
|
9341
|
+
_this4.sysMsg = data[i];
|
|
8825
9342
|
}
|
|
8826
9343
|
if (i === 'extraData') {
|
|
8827
|
-
|
|
9344
|
+
_this4.extraData = data[i];
|
|
8828
9345
|
}
|
|
8829
9346
|
}
|
|
8830
9347
|
}
|
|
8831
|
-
if (
|
|
9348
|
+
if (_this4.$store) {
|
|
8832
9349
|
try {
|
|
8833
|
-
|
|
9350
|
+
_this4.$store.commit('websocket', data);
|
|
8834
9351
|
} catch (error) {}
|
|
8835
9352
|
}
|
|
8836
|
-
if (
|
|
8837
|
-
|
|
9353
|
+
if (_this4.$eventBus) {
|
|
9354
|
+
_this4.$eventBus.$emit('websocket', data);
|
|
8838
9355
|
}
|
|
8839
9356
|
if (utils_util["a" /* default */].win.eventBus) {
|
|
8840
9357
|
utils_util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
@@ -8849,6 +9366,8 @@ var events = [function (tabs, index) {
|
|
|
8849
9366
|
* @date 2024年9月7日
|
|
8850
9367
|
**/
|
|
8851
9368
|
handlerClickApp: function handlerClickApp(res) {
|
|
9369
|
+
this.showMsg = false;
|
|
9370
|
+
this.showSet = false;
|
|
8852
9371
|
if (res) {
|
|
8853
9372
|
if (res.permission === false) {
|
|
8854
9373
|
return false;
|
|
@@ -8857,8 +9376,6 @@ var events = [function (tabs, index) {
|
|
|
8857
9376
|
this.subMenus = res;
|
|
8858
9377
|
this.showMenu = true;
|
|
8859
9378
|
this.showApps = false;
|
|
8860
|
-
this.width = this.menuWidth;
|
|
8861
|
-
this.$refs.subMenus && this.$refs.subMenus.clearSubmenu();
|
|
8862
9379
|
} else {
|
|
8863
9380
|
var set = true;
|
|
8864
9381
|
if (res.url) {
|
|
@@ -8873,25 +9390,16 @@ var events = [function (tabs, index) {
|
|
|
8873
9390
|
this.activeName = res.id;
|
|
8874
9391
|
if (i == -1) {
|
|
8875
9392
|
var tab = this.setIframeType(res);
|
|
8876
|
-
this.tabs.push(
|
|
8877
|
-
if (tab.method == 'router') {
|
|
8878
|
-
var params = utils_util["a" /* default */].getParams({ url: tab.url });
|
|
8879
|
-
this.$router.push({
|
|
8880
|
-
path: tab.path,
|
|
8881
|
-
query: params
|
|
8882
|
-
});
|
|
8883
|
-
}
|
|
9393
|
+
this.tabs.push(tab);
|
|
8884
9394
|
}
|
|
8885
9395
|
}
|
|
8886
9396
|
}
|
|
8887
9397
|
if (set && res.code) {
|
|
8888
9398
|
var subMenus = this.getMenu(this.menus, res.code, 'appCode');
|
|
8889
|
-
|
|
9399
|
+
this.title = res.text || res.name;
|
|
8890
9400
|
this.subMenus = subMenus ? subMenus : null;
|
|
8891
9401
|
this.showMenu = subMenus !== false;
|
|
8892
9402
|
this.showApps = false;
|
|
8893
|
-
this.width = this.menuWidth;
|
|
8894
|
-
this.$refs.subMenus && this.$refs.subMenus.clearSubmenu();
|
|
8895
9403
|
}
|
|
8896
9404
|
}
|
|
8897
9405
|
this.active = res.id;
|
|
@@ -8901,15 +9409,6 @@ var events = [function (tabs, index) {
|
|
|
8901
9409
|
}
|
|
8902
9410
|
},
|
|
8903
9411
|
|
|
8904
|
-
/**
|
|
8905
|
-
* @desc:显示菜单界面
|
|
8906
|
-
* @author huangbo
|
|
8907
|
-
* @date 2024年9月7日
|
|
8908
|
-
**/
|
|
8909
|
-
handleShowMenus: function handleShowMenus() {
|
|
8910
|
-
this.showMenu = true;
|
|
8911
|
-
},
|
|
8912
|
-
|
|
8913
9412
|
/**
|
|
8914
9413
|
* @desc:显示Drawer界面
|
|
8915
9414
|
* @author huangbo
|
|
@@ -8939,24 +9438,13 @@ var events = [function (tabs, index) {
|
|
|
8939
9438
|
* @date 2024年9月7日
|
|
8940
9439
|
**/
|
|
8941
9440
|
handlerClickMenu: function handlerClickMenu(res) {
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
var tab = this.setIframeType(res);
|
|
8950
|
-
this.tabs.push(tab);
|
|
8951
|
-
if (tab.method == 'router') {
|
|
8952
|
-
var params = utils_util["a" /* default */].getParams({ url: tab.url });
|
|
8953
|
-
this.$router.push({
|
|
8954
|
-
path: tab.path,
|
|
8955
|
-
query: params
|
|
8956
|
-
});
|
|
8957
|
-
}
|
|
8958
|
-
}
|
|
8959
|
-
this.showMenu = false;
|
|
9441
|
+
this.showMsg = false;
|
|
9442
|
+
this.showSet = false;
|
|
9443
|
+
var i = utils_util["a" /* default */].indexOfObj(this.tabs, res, 'id');
|
|
9444
|
+
this.activeName = res.id;
|
|
9445
|
+
if (i == -1) {
|
|
9446
|
+
var tab = this.setIframeType(res);
|
|
9447
|
+
this.tabs.push(tab);
|
|
8960
9448
|
}
|
|
8961
9449
|
},
|
|
8962
9450
|
|
|
@@ -8996,7 +9484,14 @@ var events = [function (tabs, index) {
|
|
|
8996
9484
|
* @date 2024年9月7日
|
|
8997
9485
|
**/
|
|
8998
9486
|
handleRefresh: function handleRefresh() {
|
|
8999
|
-
this.
|
|
9487
|
+
var tab = this.tabs[this.activeName];
|
|
9488
|
+
if (tab.method === 'iframe') {
|
|
9489
|
+
tab.url = utils_util["a" /* default */].handlerUrl(tab.url);
|
|
9490
|
+
}
|
|
9491
|
+
tab.refresh = false;
|
|
9492
|
+
this.$nextTick(function () {
|
|
9493
|
+
tab.refresh = true;
|
|
9494
|
+
});
|
|
9000
9495
|
},
|
|
9001
9496
|
|
|
9002
9497
|
/**
|
|
@@ -9036,6 +9531,9 @@ var events = [function (tabs, index) {
|
|
|
9036
9531
|
if (this.tabs.length == 1) {
|
|
9037
9532
|
disabled.other = true;
|
|
9038
9533
|
}
|
|
9534
|
+
if (this.tabs[index].id != this.activeName) {
|
|
9535
|
+
disabled.refresh = true;
|
|
9536
|
+
}
|
|
9039
9537
|
this.isDisabled = disabled;
|
|
9040
9538
|
this.$refs.tabsHandler.$el.style.setProperty('left', e.x + 'px');
|
|
9041
9539
|
this.$refs.tabsHandler.$el.style.setProperty('top', e.y + 'px');
|
|
@@ -9088,6 +9586,8 @@ var events = [function (tabs, index) {
|
|
|
9088
9586
|
this.handleQuit();
|
|
9089
9587
|
break;
|
|
9090
9588
|
case 'online':
|
|
9589
|
+
this.showMsg = false;
|
|
9590
|
+
this.showSet = false;
|
|
9091
9591
|
if (this.onlineUrl) {
|
|
9092
9592
|
this.dialog = {
|
|
9093
9593
|
title: '查看在线人员',
|
|
@@ -9098,9 +9598,11 @@ var events = [function (tabs, index) {
|
|
|
9098
9598
|
break;
|
|
9099
9599
|
case 'notice':
|
|
9100
9600
|
this.showMsg = !this.showMsg;
|
|
9601
|
+
this.showSet = false;
|
|
9101
9602
|
break;
|
|
9102
9603
|
case 'set':
|
|
9103
9604
|
this.showSet = !this.showSet;
|
|
9605
|
+
this.showMsg = false;
|
|
9104
9606
|
break;
|
|
9105
9607
|
case 'home':
|
|
9106
9608
|
if (this.homePage.id !== this.activeName) {
|
|
@@ -9109,10 +9611,14 @@ var events = [function (tabs, index) {
|
|
|
9109
9611
|
this.tabs.unshift(this.homePage);
|
|
9110
9612
|
}
|
|
9111
9613
|
this.activeName = this.homePage.id;
|
|
9614
|
+
this.showMsg = false;
|
|
9615
|
+
this.showSet = false;
|
|
9112
9616
|
}
|
|
9113
9617
|
break;
|
|
9114
9618
|
case 'search':
|
|
9115
9619
|
this.handlerSetDrawer(res);
|
|
9620
|
+
this.showMsg = false;
|
|
9621
|
+
this.showSet = false;
|
|
9116
9622
|
break;
|
|
9117
9623
|
case 'goView':
|
|
9118
9624
|
utils_util["a" /* default */].win.open(res.path, '_blank');
|
|
@@ -9128,7 +9634,7 @@ var events = [function (tabs, index) {
|
|
|
9128
9634
|
* @date 2024年9月7日
|
|
9129
9635
|
**/
|
|
9130
9636
|
handleQuit: function handleQuit() {
|
|
9131
|
-
var
|
|
9637
|
+
var _this5 = this;
|
|
9132
9638
|
|
|
9133
9639
|
this.$confirm('确定注销吗?', '退出系统', {
|
|
9134
9640
|
confirmButtonText: '确定',
|
|
@@ -9138,8 +9644,8 @@ var events = [function (tabs, index) {
|
|
|
9138
9644
|
utils_util["a" /* default */].ajax({ method: 'post', url: api["eb" /* logout */] }).then(function (res) {
|
|
9139
9645
|
if (res.rCode == 0) {
|
|
9140
9646
|
utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
9141
|
-
if (
|
|
9142
|
-
|
|
9647
|
+
if (_this5.onQuit && typeof _this5.onQuit === 'function') {
|
|
9648
|
+
_this5.onQuit();
|
|
9143
9649
|
} else {
|
|
9144
9650
|
try {
|
|
9145
9651
|
var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
@@ -9177,7 +9683,7 @@ var events = [function (tabs, index) {
|
|
|
9177
9683
|
}
|
|
9178
9684
|
}).catch(function (err) {
|
|
9179
9685
|
if (err.message && err.message !== 'canceled') {
|
|
9180
|
-
|
|
9686
|
+
_this5.$message.error(err.message);
|
|
9181
9687
|
}
|
|
9182
9688
|
});
|
|
9183
9689
|
}).catch(function (e) {});
|
|
@@ -9222,20 +9728,20 @@ var events = [function (tabs, index) {
|
|
|
9222
9728
|
* @date 2024年9月7日
|
|
9223
9729
|
**/
|
|
9224
9730
|
handleOpened: function handleOpened(res) {
|
|
9225
|
-
var
|
|
9731
|
+
var _this6 = this;
|
|
9226
9732
|
|
|
9227
9733
|
if (res === undefined) {
|
|
9228
9734
|
this.sysMsg = [];
|
|
9229
9735
|
} else if (res == false && this.sysMsg.length) {
|
|
9230
9736
|
this.sysMsgOut = setTimeout(function () {
|
|
9231
|
-
|
|
9737
|
+
_this6.sysMsg = [];
|
|
9232
9738
|
}, 3000);
|
|
9233
9739
|
} else if (this.sysMsgOut) {
|
|
9234
9740
|
clearTimeout(this.sysMsgOut);
|
|
9235
9741
|
}
|
|
9236
9742
|
},
|
|
9237
9743
|
handleReLogin: function handleReLogin(res) {
|
|
9238
|
-
var
|
|
9744
|
+
var _this7 = this;
|
|
9239
9745
|
|
|
9240
9746
|
if (res && typeof res == 'string') {
|
|
9241
9747
|
res = JSON.parse(res);
|
|
@@ -9265,7 +9771,7 @@ var events = [function (tabs, index) {
|
|
|
9265
9771
|
clearTimeout(this.timer);
|
|
9266
9772
|
this.timer = setTimeout(function () {
|
|
9267
9773
|
sessionStorage.setItem('remind', 1);
|
|
9268
|
-
|
|
9774
|
+
_this7.$confirm(msg, btn).then(function () {
|
|
9269
9775
|
utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
9270
9776
|
var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
9271
9777
|
try {
|
|
@@ -9332,7 +9838,10 @@ var events = [function (tabs, index) {
|
|
|
9332
9838
|
}
|
|
9333
9839
|
},
|
|
9334
9840
|
jumpMenu: function jumpMenu(res) {
|
|
9335
|
-
var apps = res
|
|
9841
|
+
var apps = res;
|
|
9842
|
+
if (typeof res === 'string') {
|
|
9843
|
+
apps = res.split(',');
|
|
9844
|
+
}
|
|
9336
9845
|
var obj = this.getMenu(this.menus, apps[apps.length - 1]);
|
|
9337
9846
|
if (obj) {
|
|
9338
9847
|
var i = utils_util["a" /* default */].indexOfObj(this.tabs, obj, 'id');
|
|
@@ -9341,84 +9850,23 @@ var events = [function (tabs, index) {
|
|
|
9341
9850
|
if (i == -1) {
|
|
9342
9851
|
var tab = this.setIframeType(obj);
|
|
9343
9852
|
this.tabs.splice(n + 1, 0, tab);
|
|
9344
|
-
if (tab.method == 'router') {
|
|
9345
|
-
var params = utils_util["a" /* default */].getParams({ url: tab.url });
|
|
9346
|
-
this.$router.push({
|
|
9347
|
-
path: tab.path,
|
|
9348
|
-
query: params
|
|
9349
|
-
});
|
|
9350
|
-
}
|
|
9351
9853
|
}
|
|
9352
9854
|
} else {
|
|
9353
9855
|
this.$message.error('没有此菜单!');
|
|
9354
9856
|
}
|
|
9355
9857
|
},
|
|
9356
9858
|
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
var
|
|
9360
|
-
|
|
9361
|
-
var area = this.$refs.area;
|
|
9362
|
-
var box = this.$refs.box;
|
|
9363
|
-
var sTime = 0,
|
|
9364
|
-
eTime = 0;
|
|
9365
|
-
|
|
9366
|
-
area.addEventListener('mousedown', function (e) {
|
|
9367
|
-
sTime = new Date().getTime();
|
|
9368
|
-
var downY = e.y,
|
|
9369
|
-
downX = e.x;
|
|
9370
|
-
|
|
9371
|
-
var _document$body$getBou = document.body.getBoundingClientRect(),
|
|
9372
|
-
winH = _document$body$getBou.height,
|
|
9373
|
-
winW = _document$body$getBou.width;
|
|
9374
|
-
//防止拖动期间选中和复制网页文本
|
|
9375
|
-
|
|
9859
|
+
//监听改变菜单
|
|
9860
|
+
handleListener: function handleListener() {
|
|
9861
|
+
var _this8 = this;
|
|
9376
9862
|
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
var _box$getBoundingClien = box.getBoundingClientRect(),
|
|
9386
|
-
boxTop = _box$getBoundingClien.top,
|
|
9387
|
-
boxLeft = _box$getBoundingClien.left;
|
|
9388
|
-
|
|
9389
|
-
boxTop += moveY - downY;
|
|
9390
|
-
boxLeft += moveX - downX;
|
|
9391
|
-
boxTop >= winH - size && (boxTop = winH - size);
|
|
9392
|
-
boxTop <= -size && (boxTop = -size);
|
|
9393
|
-
boxLeft >= winW - size && (boxLeft = winW - size);
|
|
9394
|
-
boxLeft <= -size && (boxLeft = -size);
|
|
9395
|
-
if (boxTop < 60) {
|
|
9396
|
-
boxTop = 60;
|
|
9397
|
-
}
|
|
9398
|
-
if (boxLeft < 80) {
|
|
9399
|
-
boxLeft = 80;
|
|
9400
|
-
}
|
|
9401
|
-
box.style.top = boxTop + 'px';
|
|
9402
|
-
box.style.left = boxLeft + 'px';
|
|
9403
|
-
downY = moveY;
|
|
9404
|
-
downX = moveX;
|
|
9405
|
-
};
|
|
9406
|
-
document.onmouseup = function () {
|
|
9407
|
-
eTime = new Date().getTime();
|
|
9408
|
-
var isClick = eTime - sTime < 200;
|
|
9409
|
-
if (isClick) {
|
|
9410
|
-
var onArea = function onArea() {
|
|
9411
|
-
_this9.subMenu = [];
|
|
9412
|
-
area.removeEventListener('click', onArea);
|
|
9413
|
-
};
|
|
9414
|
-
area.addEventListener('click', onArea);
|
|
9415
|
-
}
|
|
9416
|
-
document.onmousemove = null;
|
|
9417
|
-
document.body.onselectstart = document.body.oncontextmenu = function () {
|
|
9418
|
-
return true;
|
|
9419
|
-
};
|
|
9420
|
-
};
|
|
9421
|
-
});
|
|
9863
|
+
utils_util["a" /* default */].win.addEventListener('message', function (e) {
|
|
9864
|
+
var msg = e.data;
|
|
9865
|
+
if (msg.key == 'jump_Menu') {
|
|
9866
|
+
var res = msg.data1;
|
|
9867
|
+
_this8.jumpMenu(res);
|
|
9868
|
+
}
|
|
9869
|
+
}, false);
|
|
9422
9870
|
}
|
|
9423
9871
|
},
|
|
9424
9872
|
beforeDestroy: function beforeDestroy() {
|
|
@@ -9441,18 +9889,18 @@ var events = [function (tabs, index) {
|
|
|
9441
9889
|
|
|
9442
9890
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
9443
9891
|
src_simplicityvue_type_script_lang_js_,
|
|
9444
|
-
|
|
9445
|
-
|
|
9892
|
+
simplicityvue_type_template_id_4a717394_scoped_true_render,
|
|
9893
|
+
simplicityvue_type_template_id_4a717394_scoped_true_staticRenderFns,
|
|
9446
9894
|
false,
|
|
9447
9895
|
null,
|
|
9448
|
-
"
|
|
9896
|
+
"4a717394",
|
|
9449
9897
|
null
|
|
9450
9898
|
|
|
9451
9899
|
)
|
|
9452
9900
|
|
|
9453
9901
|
/* harmony default export */ var simplicity = (simplicity_component.exports);
|
|
9454
|
-
// 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=
|
|
9455
|
-
var
|
|
9902
|
+
// 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=4cc95bd1&
|
|
9903
|
+
var defaultvue_type_template_id_4cc95bd1_render = function () {
|
|
9456
9904
|
var _vm = this
|
|
9457
9905
|
var _h = _vm.$createElement
|
|
9458
9906
|
var _c = _vm._self._c || _h
|
|
@@ -9832,11 +10280,11 @@ var defaultvue_type_template_id_1527d603_render = function () {
|
|
|
9832
10280
|
1
|
|
9833
10281
|
)
|
|
9834
10282
|
}
|
|
9835
|
-
var
|
|
9836
|
-
|
|
10283
|
+
var defaultvue_type_template_id_4cc95bd1_staticRenderFns = []
|
|
10284
|
+
defaultvue_type_template_id_4cc95bd1_render._withStripped = true
|
|
9837
10285
|
|
|
9838
10286
|
|
|
9839
|
-
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=
|
|
10287
|
+
// CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=4cc95bd1&
|
|
9840
10288
|
|
|
9841
10289
|
// 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&
|
|
9842
10290
|
var userinfovue_type_template_id_bd3da0e0_render = function () {
|
|
@@ -11753,7 +12201,7 @@ var defaultvue_type_script_lang_js_isIE = navigator.userAgent.indexOf('MSIE') !=
|
|
|
11753
12201
|
var log = utils_util["a" /* default */].getParams('console');
|
|
11754
12202
|
var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["a" /* default */].getParams('appcode');
|
|
11755
12203
|
/* harmony default export */ var defaultvue_type_script_lang_js_ = ({
|
|
11756
|
-
name: '
|
|
12204
|
+
name: 'MainDefault',
|
|
11757
12205
|
inheritAttrs: false,
|
|
11758
12206
|
provide: function provide() {
|
|
11759
12207
|
return {
|
|
@@ -13561,8 +14009,8 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
|
|
|
13561
14009
|
|
|
13562
14010
|
var default_component = Object(componentNormalizer["a" /* default */])(
|
|
13563
14011
|
src_defaultvue_type_script_lang_js_,
|
|
13564
|
-
|
|
13565
|
-
|
|
14012
|
+
defaultvue_type_template_id_4cc95bd1_render,
|
|
14013
|
+
defaultvue_type_template_id_4cc95bd1_staticRenderFns,
|
|
13566
14014
|
false,
|
|
13567
14015
|
null,
|
|
13568
14016
|
null,
|
|
@@ -13603,8 +14051,8 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
13603
14051
|
},
|
|
13604
14052
|
|
|
13605
14053
|
components: {
|
|
13606
|
-
|
|
13607
|
-
|
|
14054
|
+
Simplicity: simplicity,
|
|
14055
|
+
MainDefault: src_default
|
|
13608
14056
|
},
|
|
13609
14057
|
props: {
|
|
13610
14058
|
type: String
|
|
@@ -13613,13 +14061,14 @@ var default_component = Object(componentNormalizer["a" /* default */])(
|
|
|
13613
14061
|
watch: {},
|
|
13614
14062
|
data: function data() {
|
|
13615
14063
|
return {
|
|
13616
|
-
appCode: ''
|
|
14064
|
+
appCode: '',
|
|
14065
|
+
params: {}
|
|
13617
14066
|
};
|
|
13618
14067
|
},
|
|
13619
14068
|
created: function created() {
|
|
13620
|
-
|
|
13621
|
-
this.appCode = params.appCode;
|
|
13622
|
-
this.getConfig(params);
|
|
14069
|
+
this.params = utils_util["a" /* default */].getParams() || {};
|
|
14070
|
+
this.appCode = this.params.appCode;
|
|
14071
|
+
this.getConfig(this.params);
|
|
13623
14072
|
},
|
|
13624
14073
|
mounted: function mounted() {},
|
|
13625
14074
|
|