eoss-ui 0.5.10 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/button-group.js +18 -33
- package/lib/button.js +18 -33
- package/lib/checkbox-group.js +18 -33
- package/lib/data-table-form.js +18 -33
- package/lib/data-table.js +36 -42
- package/lib/date-picker.js +18 -33
- package/lib/dialog.js +18 -33
- package/lib/eoss-ui.common.js +217 -486
- package/lib/flow-group.js +18 -33
- package/lib/flow-list.js +18 -33
- package/lib/flow.js +18 -33
- package/lib/form.js +50 -172
- package/lib/handle-user.js +18 -33
- package/lib/handler.js +18 -33
- package/lib/index.js +1 -1
- package/lib/input-number.js +18 -33
- package/lib/input.js +18 -33
- package/lib/login.js +18 -33
- package/lib/main.js +117 -282
- package/lib/nav.js +18 -33
- package/lib/page.js +18 -33
- package/lib/player.js +18 -33
- package/lib/qr-code.js +18 -33
- package/lib/radio-group.js +21 -36
- package/lib/retrial-auth.js +18 -33
- package/lib/select-ganged.js +18 -33
- package/lib/select.js +18 -33
- package/lib/selector-panel.js +18 -33
- package/lib/selector.js +18 -33
- package/lib/sizer.js +18 -33
- package/lib/steps.js +18 -33
- package/lib/switch.js +18 -33
- package/lib/table-form.js +30 -61
- package/lib/tabs.js +18 -33
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/tips.js +18 -33
- package/lib/toolbar.js +19 -9
- package/lib/tree-group.js +18 -33
- package/lib/tree.js +18 -33
- package/lib/upload.js +18 -33
- package/lib/utils/util.js +18 -33
- package/lib/wujie.js +18 -33
- package/lib/wxlogin.js +18 -33
- package/package.json +1 -1
- package/packages/data-table/src/main.vue +14 -6
- package/packages/form/src/main.vue +11 -46
- package/packages/form/src/table.vue +6 -11
- package/packages/main/src/main.vue +12 -150
- package/packages/radio-group/src/main.vue +1 -5
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/pagination.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/pagination.scss +8 -0
- package/packages/theme-chalk/src/toolbar.scss +1 -0
- package/packages/toolbar/src/main.vue +17 -8
- package/src/index.js +1 -1
- package/src/utils/util.js +20 -34
package/lib/eoss-ui.common.js
CHANGED
|
@@ -745,6 +745,7 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
745
745
|
key.forEach(function (item) {
|
|
746
746
|
if (param.hasOwnProperty(item)) {
|
|
747
747
|
var reg = item + '=' + param[item];
|
|
748
|
+
console.log(reg);
|
|
748
749
|
if (src.indexOf(reg + '&') > -1) {
|
|
749
750
|
src = src.replace(reg + '&', '');
|
|
750
751
|
} else if (src.indexOf('&' + reg) > -1) {
|
|
@@ -1945,7 +1946,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1945
1946
|
next = _ref8.next,
|
|
1946
1947
|
_ref8$exclude = _ref8.exclude,
|
|
1947
1948
|
exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
|
|
1948
|
-
open = _ref8.open,
|
|
1949
1949
|
cookie = _ref8.cookie,
|
|
1950
1950
|
loginPage = _ref8.loginPage,
|
|
1951
1951
|
redirect = _ref8.redirect;
|
|
@@ -1953,24 +1953,24 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1953
1953
|
if (cookie === undefined) {
|
|
1954
1954
|
cookie = getParams({ name: 'cookie' });
|
|
1955
1955
|
}
|
|
1956
|
+
var pathname = win.top.location.pathname;
|
|
1956
1957
|
if (loginPage) {
|
|
1957
1958
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1958
1959
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
1959
|
-
var pathname = win.top.location.pathname;
|
|
1960
1960
|
if (pathname !== '/') {
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
loginPage =
|
|
1961
|
+
var path = pathname.split('/');
|
|
1962
|
+
path.splice(pathname.length - 1);
|
|
1963
|
+
path = path.join('/');
|
|
1964
|
+
loginPage = path + '/' + loginPage.replace('./', '');
|
|
1965
1965
|
} else {
|
|
1966
1966
|
loginPage = pathname + loginPage.replace('./', '');
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1971
|
-
|
|
1971
|
+
// const logined = getStorage('logined');
|
|
1972
1972
|
// eslint-disable-next-line eqeqeq
|
|
1973
|
-
if (token ||
|
|
1973
|
+
if (token || cookie == true || cookie == 1) {
|
|
1974
1974
|
next && next();
|
|
1975
1975
|
} else {
|
|
1976
1976
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
@@ -1994,37 +1994,22 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1994
1994
|
deviceUnique: results.deviceUnique
|
|
1995
1995
|
}
|
|
1996
1996
|
});
|
|
1997
|
-
|
|
1997
|
+
var url = delUrlParam({
|
|
1998
|
+
url: win.top.location.href,
|
|
1999
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2000
|
+
});
|
|
2001
|
+
win.top.location.href = url;
|
|
2002
|
+
setTimeout(function () {
|
|
2003
|
+
win.top.location.reload();
|
|
2004
|
+
}, 200);
|
|
1998
2005
|
break;
|
|
1999
2006
|
case 1:
|
|
2000
2007
|
break;
|
|
2001
2008
|
case 2:
|
|
2002
2009
|
break;
|
|
2003
2010
|
case 3:
|
|
2004
|
-
var
|
|
2005
|
-
|
|
2006
|
-
if (to.query.openType) {
|
|
2007
|
-
switch (to.query.openType) {
|
|
2008
|
-
case 'self':
|
|
2009
|
-
win.location.href = href;
|
|
2010
|
-
break;
|
|
2011
|
-
case 'blank':
|
|
2012
|
-
win.open(href);
|
|
2013
|
-
break;
|
|
2014
|
-
case 'top':
|
|
2015
|
-
win.top.location.href = href;
|
|
2016
|
-
break;
|
|
2017
|
-
case 'parent':
|
|
2018
|
-
win.parent.location.href = href;
|
|
2019
|
-
break;
|
|
2020
|
-
}
|
|
2021
|
-
} else {
|
|
2022
|
-
if (open) {
|
|
2023
|
-
win.open(href);
|
|
2024
|
-
} else {
|
|
2025
|
-
win.top.location.href = href;
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2011
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
|
|
2012
|
+
win.top.location.href = href;
|
|
2028
2013
|
break;
|
|
2029
2014
|
case 4:
|
|
2030
2015
|
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
@@ -5457,8 +5442,8 @@ clients_src_main.install = function (Vue) {
|
|
|
5457
5442
|
};
|
|
5458
5443
|
|
|
5459
5444
|
/* harmony default export */ var clients = (clients_src_main);
|
|
5460
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=
|
|
5461
|
-
var
|
|
5445
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=f3399f02&
|
|
5446
|
+
var mainvue_type_template_id_f3399f02_render = function () {
|
|
5462
5447
|
var _vm = this
|
|
5463
5448
|
var _h = _vm.$createElement
|
|
5464
5449
|
var _c = _vm._self._c || _h
|
|
@@ -5492,6 +5477,7 @@ var mainvue_type_template_id_8d31e592_render = function () {
|
|
|
5492
5477
|
"es-toolbar",
|
|
5493
5478
|
{
|
|
5494
5479
|
contents: _vm.toolbars,
|
|
5480
|
+
showLabel: _vm.showLabel,
|
|
5495
5481
|
close: _vm.close,
|
|
5496
5482
|
callBack: _vm.resetHeight,
|
|
5497
5483
|
showFormBtn: _vm.showFormBtn,
|
|
@@ -5793,11 +5779,11 @@ var mainvue_type_template_id_8d31e592_render = function () {
|
|
|
5793
5779
|
1
|
|
5794
5780
|
)
|
|
5795
5781
|
}
|
|
5796
|
-
var
|
|
5797
|
-
|
|
5782
|
+
var mainvue_type_template_id_f3399f02_staticRenderFns = []
|
|
5783
|
+
mainvue_type_template_id_f3399f02_render._withStripped = true
|
|
5798
5784
|
|
|
5799
5785
|
|
|
5800
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=
|
|
5786
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=f3399f02&
|
|
5801
5787
|
|
|
5802
5788
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=796433ee&
|
|
5803
5789
|
var childrenvue_type_template_id_796433ee_render = function () {
|
|
@@ -8283,6 +8269,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
8283
8269
|
//
|
|
8284
8270
|
//
|
|
8285
8271
|
//
|
|
8272
|
+
//
|
|
8286
8273
|
|
|
8287
8274
|
|
|
8288
8275
|
|
|
@@ -8366,6 +8353,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
8366
8353
|
type: [Array, Boolean],
|
|
8367
8354
|
default: false
|
|
8368
8355
|
},
|
|
8356
|
+
showLabel: Boolean,
|
|
8369
8357
|
searchValue: Object,
|
|
8370
8358
|
advanceValue: Object,
|
|
8371
8359
|
// 是否开启序号
|
|
@@ -8785,25 +8773,31 @@ var mainvue_type_script_lang_js_components;
|
|
|
8785
8773
|
handleClickAddData: function handleClickAddData(scope) {
|
|
8786
8774
|
var data = JSON.parse(JSON.stringify(scope.row));
|
|
8787
8775
|
var index = scope.$index + 1;
|
|
8788
|
-
this.
|
|
8776
|
+
if (this.page) {
|
|
8777
|
+
index += (this.config.pageNum - 1) * this.config.pageSize;
|
|
8778
|
+
}
|
|
8779
|
+
this.data.splice(index, 0, data);
|
|
8789
8780
|
this.$emit('dataChange', 'add', data);
|
|
8790
8781
|
this.$emit('btnClick', {
|
|
8791
8782
|
event: 'addRow',
|
|
8792
8783
|
row: data,
|
|
8793
8784
|
index: index,
|
|
8794
|
-
data: data
|
|
8785
|
+
data: this.data
|
|
8795
8786
|
});
|
|
8796
8787
|
},
|
|
8797
8788
|
handleClickDeleteData: function handleClickDeleteData(scope) {
|
|
8798
8789
|
var data = JSON.parse(JSON.stringify(scope.row));
|
|
8799
8790
|
var index = scope.$index;
|
|
8800
|
-
this.
|
|
8791
|
+
if (this.page) {
|
|
8792
|
+
index += (this.config.pageNum - 1) * this.config.pageSize;
|
|
8793
|
+
}
|
|
8794
|
+
this.data.splice(index, 1);
|
|
8801
8795
|
this.$emit('dataChange', 'delete', data);
|
|
8802
8796
|
this.$emit('btnClick', {
|
|
8803
8797
|
event: 'deleteRow',
|
|
8804
8798
|
row: data,
|
|
8805
8799
|
index: index,
|
|
8806
|
-
data: this.
|
|
8800
|
+
data: this.data
|
|
8807
8801
|
});
|
|
8808
8802
|
},
|
|
8809
8803
|
checkSelect: function checkSelect(newVal) {
|
|
@@ -9367,8 +9361,8 @@ var mainvue_type_script_lang_js_components;
|
|
|
9367
9361
|
|
|
9368
9362
|
var data_table_src_main_component = normalizeComponent(
|
|
9369
9363
|
packages_data_table_src_mainvue_type_script_lang_js_,
|
|
9370
|
-
|
|
9371
|
-
|
|
9364
|
+
mainvue_type_template_id_f3399f02_render,
|
|
9365
|
+
mainvue_type_template_id_f3399f02_staticRenderFns,
|
|
9372
9366
|
false,
|
|
9373
9367
|
null,
|
|
9374
9368
|
null,
|
|
@@ -12766,8 +12760,8 @@ error_page_src_main.install = function (Vue) {
|
|
|
12766
12760
|
};
|
|
12767
12761
|
|
|
12768
12762
|
/* harmony default export */ var error_page = (error_page_src_main);
|
|
12769
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=
|
|
12770
|
-
var
|
|
12763
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=2fd814fb&
|
|
12764
|
+
var mainvue_type_template_id_2fd814fb_render = function () {
|
|
12771
12765
|
var _vm = this
|
|
12772
12766
|
var _h = _vm.$createElement
|
|
12773
12767
|
var _c = _vm._self._c || _h
|
|
@@ -12940,21 +12934,14 @@ var mainvue_type_template_id_b0256522_render = function () {
|
|
|
12940
12934
|
item.label
|
|
12941
12935
|
? _c(
|
|
12942
12936
|
"es-label",
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
.event,
|
|
12952
|
-
events:
|
|
12953
|
-
item
|
|
12954
|
-
.label
|
|
12955
|
-
.events,
|
|
12956
|
-
},
|
|
12957
|
-
}
|
|
12937
|
+
_vm._b(
|
|
12938
|
+
{},
|
|
12939
|
+
"es-label",
|
|
12940
|
+
_vm.getLabel(
|
|
12941
|
+
item.label
|
|
12942
|
+
),
|
|
12943
|
+
false
|
|
12944
|
+
)
|
|
12958
12945
|
)
|
|
12959
12946
|
: _vm._e(),
|
|
12960
12947
|
item.text ||
|
|
@@ -13453,28 +13440,13 @@ var mainvue_type_template_id_b0256522_render = function () {
|
|
|
13453
13440
|
{
|
|
13454
13441
|
attrs: {
|
|
13455
13442
|
slot: "label",
|
|
13456
|
-
contents:
|
|
13457
|
-
item.label,
|
|
13458
|
-
plain:
|
|
13459
|
-
item.plain ||
|
|
13460
|
-
item.name ===
|
|
13461
|
-
undefined,
|
|
13462
13443
|
},
|
|
13463
13444
|
slot: "label",
|
|
13464
13445
|
},
|
|
13465
13446
|
"es-label",
|
|
13466
|
-
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
item
|
|
13470
|
-
.label
|
|
13471
|
-
.event,
|
|
13472
|
-
events:
|
|
13473
|
-
item
|
|
13474
|
-
.label
|
|
13475
|
-
.events,
|
|
13476
|
-
}
|
|
13477
|
-
: {},
|
|
13447
|
+
_vm.getLabel(
|
|
13448
|
+
item.label
|
|
13449
|
+
),
|
|
13478
13450
|
false
|
|
13479
13451
|
)
|
|
13480
13452
|
)
|
|
@@ -16130,26 +16102,13 @@ var mainvue_type_template_id_b0256522_render = function () {
|
|
|
16130
16102
|
{
|
|
16131
16103
|
attrs: {
|
|
16132
16104
|
slot: "label",
|
|
16133
|
-
contents:
|
|
16134
|
-
item.label,
|
|
16135
|
-
plain:
|
|
16136
|
-
item.plain ||
|
|
16137
|
-
item.name ===
|
|
16138
|
-
undefined,
|
|
16139
16105
|
},
|
|
16140
16106
|
slot: "label",
|
|
16141
16107
|
},
|
|
16142
16108
|
"es-label",
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
|
|
16146
|
-
item.label
|
|
16147
|
-
.event,
|
|
16148
|
-
events:
|
|
16149
|
-
item.label
|
|
16150
|
-
.events,
|
|
16151
|
-
}
|
|
16152
|
-
: {},
|
|
16109
|
+
_vm.getLabel(
|
|
16110
|
+
item.label
|
|
16111
|
+
),
|
|
16153
16112
|
false
|
|
16154
16113
|
)
|
|
16155
16114
|
)
|
|
@@ -18504,20 +18463,14 @@ var mainvue_type_template_id_b0256522_render = function () {
|
|
|
18504
18463
|
item.label
|
|
18505
18464
|
? _c(
|
|
18506
18465
|
"es-label",
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
|
|
18510
|
-
|
|
18511
|
-
|
|
18512
|
-
|
|
18513
|
-
|
|
18514
|
-
|
|
18515
|
-
events:
|
|
18516
|
-
item
|
|
18517
|
-
.label
|
|
18518
|
-
.events,
|
|
18519
|
-
},
|
|
18520
|
-
}
|
|
18466
|
+
_vm._b(
|
|
18467
|
+
{},
|
|
18468
|
+
"es-label",
|
|
18469
|
+
_vm.getLabel(
|
|
18470
|
+
item.label
|
|
18471
|
+
),
|
|
18472
|
+
false
|
|
18473
|
+
)
|
|
18521
18474
|
)
|
|
18522
18475
|
: _vm._e(),
|
|
18523
18476
|
item.text ||
|
|
@@ -19002,28 +18955,13 @@ var mainvue_type_template_id_b0256522_render = function () {
|
|
|
19002
18955
|
{
|
|
19003
18956
|
attrs: {
|
|
19004
18957
|
slot: "label",
|
|
19005
|
-
contents:
|
|
19006
|
-
item.label,
|
|
19007
|
-
plain:
|
|
19008
|
-
item.plain ||
|
|
19009
|
-
item.name ===
|
|
19010
|
-
undefined,
|
|
19011
18958
|
},
|
|
19012
18959
|
slot: "label",
|
|
19013
18960
|
},
|
|
19014
18961
|
"es-label",
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
item
|
|
19019
|
-
.label
|
|
19020
|
-
.event,
|
|
19021
|
-
events:
|
|
19022
|
-
item
|
|
19023
|
-
.label
|
|
19024
|
-
.events,
|
|
19025
|
-
}
|
|
19026
|
-
: {},
|
|
18962
|
+
_vm.getLabel(
|
|
18963
|
+
item.label
|
|
18964
|
+
),
|
|
19027
18965
|
false
|
|
19028
18966
|
)
|
|
19029
18967
|
)
|
|
@@ -21510,25 +21448,11 @@ var mainvue_type_template_id_b0256522_render = function () {
|
|
|
21510
21448
|
"es-label",
|
|
21511
21449
|
_vm._b(
|
|
21512
21450
|
{
|
|
21513
|
-
attrs: {
|
|
21514
|
-
slot: "label",
|
|
21515
|
-
contents: item.label,
|
|
21516
|
-
plain:
|
|
21517
|
-
item.plain ||
|
|
21518
|
-
item.name ===
|
|
21519
|
-
undefined,
|
|
21520
|
-
},
|
|
21451
|
+
attrs: { slot: "label" },
|
|
21521
21452
|
slot: "label",
|
|
21522
21453
|
},
|
|
21523
21454
|
"es-label",
|
|
21524
|
-
item.label
|
|
21525
|
-
? {
|
|
21526
|
-
event:
|
|
21527
|
-
item.label.event,
|
|
21528
|
-
events:
|
|
21529
|
-
item.label.events,
|
|
21530
|
-
}
|
|
21531
|
-
: {},
|
|
21455
|
+
_vm.getLabel(item.label),
|
|
21532
21456
|
false
|
|
21533
21457
|
)
|
|
21534
21458
|
)
|
|
@@ -23751,11 +23675,11 @@ var mainvue_type_template_id_b0256522_render = function () {
|
|
|
23751
23675
|
)
|
|
23752
23676
|
: _vm._e()
|
|
23753
23677
|
}
|
|
23754
|
-
var
|
|
23755
|
-
|
|
23678
|
+
var mainvue_type_template_id_2fd814fb_staticRenderFns = []
|
|
23679
|
+
mainvue_type_template_id_2fd814fb_render._withStripped = true
|
|
23756
23680
|
|
|
23757
23681
|
|
|
23758
|
-
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=
|
|
23682
|
+
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=2fd814fb&
|
|
23759
23683
|
|
|
23760
23684
|
// CONCATENATED MODULE: ./src/utils/rules.js
|
|
23761
23685
|
// 手机号
|
|
@@ -27654,46 +27578,6 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
27654
27578
|
//
|
|
27655
27579
|
//
|
|
27656
27580
|
//
|
|
27657
|
-
//
|
|
27658
|
-
//
|
|
27659
|
-
//
|
|
27660
|
-
//
|
|
27661
|
-
//
|
|
27662
|
-
//
|
|
27663
|
-
//
|
|
27664
|
-
//
|
|
27665
|
-
//
|
|
27666
|
-
//
|
|
27667
|
-
//
|
|
27668
|
-
//
|
|
27669
|
-
//
|
|
27670
|
-
//
|
|
27671
|
-
//
|
|
27672
|
-
//
|
|
27673
|
-
//
|
|
27674
|
-
//
|
|
27675
|
-
//
|
|
27676
|
-
//
|
|
27677
|
-
//
|
|
27678
|
-
//
|
|
27679
|
-
//
|
|
27680
|
-
//
|
|
27681
|
-
//
|
|
27682
|
-
//
|
|
27683
|
-
//
|
|
27684
|
-
//
|
|
27685
|
-
//
|
|
27686
|
-
//
|
|
27687
|
-
//
|
|
27688
|
-
//
|
|
27689
|
-
//
|
|
27690
|
-
//
|
|
27691
|
-
//
|
|
27692
|
-
//
|
|
27693
|
-
//
|
|
27694
|
-
//
|
|
27695
|
-
//
|
|
27696
|
-
//
|
|
27697
27581
|
|
|
27698
27582
|
|
|
27699
27583
|
|
|
@@ -28157,6 +28041,9 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
28157
28041
|
},
|
|
28158
28042
|
|
|
28159
28043
|
methods: {
|
|
28044
|
+
getLabel: function getLabel(res) {
|
|
28045
|
+
return typeof res === 'string' ? { contents: res } : form_src_mainvue_type_script_lang_js_extends({}, res, { plain: res.plain || res.name === undefined });
|
|
28046
|
+
},
|
|
28160
28047
|
getHeight: function getHeight() {
|
|
28161
28048
|
if (utils_util["a" /* default */].hasClass(this.$parent.$el, 'el-dialog__wrapper') || this.full || this.$el.parentNode.children.length == 1 && utils_util["a" /* default */].getStyle(this.$el.parentNode, 'height')) {
|
|
28162
28049
|
var pt = parseInt(utils_util["a" /* default */].getStyle(this.$el.parentNode, 'padding-top'), 10) || 0;
|
|
@@ -28904,8 +28791,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
|
|
|
28904
28791
|
|
|
28905
28792
|
var form_src_main_component = normalizeComponent(
|
|
28906
28793
|
packages_form_src_mainvue_type_script_lang_js_,
|
|
28907
|
-
|
|
28908
|
-
|
|
28794
|
+
mainvue_type_template_id_2fd814fb_render,
|
|
28795
|
+
mainvue_type_template_id_2fd814fb_staticRenderFns,
|
|
28909
28796
|
false,
|
|
28910
28797
|
null,
|
|
28911
28798
|
null,
|
|
@@ -47675,8 +47562,8 @@ login_src_main.install = function (Vue) {
|
|
|
47675
47562
|
};
|
|
47676
47563
|
|
|
47677
47564
|
/* harmony default export */ var login = (login_src_main);
|
|
47678
|
-
// 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=
|
|
47679
|
-
var
|
|
47565
|
+
// 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=e6267c3c&
|
|
47566
|
+
var mainvue_type_template_id_e6267c3c_render = function () {
|
|
47680
47567
|
var _vm = this
|
|
47681
47568
|
var _h = _vm.$createElement
|
|
47682
47569
|
var _c = _vm._self._c || _h
|
|
@@ -48101,11 +47988,11 @@ var mainvue_type_template_id_cef5b378_render = function () {
|
|
|
48101
47988
|
1
|
|
48102
47989
|
)
|
|
48103
47990
|
}
|
|
48104
|
-
var
|
|
48105
|
-
|
|
47991
|
+
var mainvue_type_template_id_e6267c3c_staticRenderFns = []
|
|
47992
|
+
mainvue_type_template_id_e6267c3c_render._withStripped = true
|
|
48106
47993
|
|
|
48107
47994
|
|
|
48108
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
47995
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=e6267c3c&
|
|
48109
47996
|
|
|
48110
47997
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=799780ee&
|
|
48111
47998
|
var userinfovue_type_template_id_799780ee_render = function () {
|
|
@@ -49891,12 +49778,8 @@ var async_component_component = normalizeComponent(
|
|
|
49891
49778
|
|
|
49892
49779
|
/* harmony default export */ var async_component = (async_component_component.exports);
|
|
49893
49780
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
|
|
49894
|
-
|
|
49895
|
-
|
|
49896
49781
|
var main_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
49897
49782
|
|
|
49898
|
-
function main_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
|
|
49899
|
-
|
|
49900
49783
|
//
|
|
49901
49784
|
//
|
|
49902
49785
|
//
|
|
@@ -50514,7 +50397,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
50514
50397
|
this.isHeader = params.header;
|
|
50515
50398
|
var sysLogoIco = sessionStorage.getItem('sysLogoIco');
|
|
50516
50399
|
sysLogoIco && utils_util["a" /* default */].setFavicon(sysLogoIco);
|
|
50517
|
-
this.
|
|
50400
|
+
this.getConfig(params);
|
|
50518
50401
|
},
|
|
50519
50402
|
mounted: function mounted() {
|
|
50520
50403
|
utils_util["a" /* default */].win.reLogin = this.handleReLogin;
|
|
@@ -50530,156 +50413,6 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
50530
50413
|
},
|
|
50531
50414
|
|
|
50532
50415
|
methods: {
|
|
50533
|
-
isLogin: function isLogin(query) {
|
|
50534
|
-
var _this = this;
|
|
50535
|
-
|
|
50536
|
-
return main_src_mainvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
|
|
50537
|
-
var token, loginPage, pathname;
|
|
50538
|
-
return regenerator_default.a.wrap(function _callee$(_context) {
|
|
50539
|
-
while (1) {
|
|
50540
|
-
switch (_context.prev = _context.next) {
|
|
50541
|
-
case 0:
|
|
50542
|
-
token = utils_util["a" /* default */].getStorage('token') || utils_util["a" /* default */].getStorage('Authorization');
|
|
50543
|
-
loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
50544
|
-
|
|
50545
|
-
if (loginPage) {
|
|
50546
|
-
if (!utils_util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
50547
|
-
pathname = utils_util["a" /* default */].win.top.location.pathname;
|
|
50548
|
-
|
|
50549
|
-
if (pathname !== '/') {
|
|
50550
|
-
pathname = pathname.split('/');
|
|
50551
|
-
pathname.splice(pathname.length - 1);
|
|
50552
|
-
pathname = pathname.join('/');
|
|
50553
|
-
loginPage = pathname + '/' + loginPage.replace('./', '');
|
|
50554
|
-
} else {
|
|
50555
|
-
loginPage = pathname + loginPage.replace('./', '');
|
|
50556
|
-
}
|
|
50557
|
-
}
|
|
50558
|
-
}
|
|
50559
|
-
|
|
50560
|
-
if (!(!token && query && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType'))) {
|
|
50561
|
-
_context.next = 8;
|
|
50562
|
-
break;
|
|
50563
|
-
}
|
|
50564
|
-
|
|
50565
|
-
_context.next = 6;
|
|
50566
|
-
return utils_util["a" /* default */].ajax({
|
|
50567
|
-
method: 'post',
|
|
50568
|
-
url: api["b" /* authCenter */],
|
|
50569
|
-
data: query
|
|
50570
|
-
}).then(function (res) {
|
|
50571
|
-
if (res.rCode === 0) {
|
|
50572
|
-
var results = res.results;
|
|
50573
|
-
|
|
50574
|
-
switch (results.statusCode) {
|
|
50575
|
-
case 0:
|
|
50576
|
-
utils_util["a" /* default */].setStorage({
|
|
50577
|
-
type: _this.storage,
|
|
50578
|
-
key: {
|
|
50579
|
-
ssId: results.ssId,
|
|
50580
|
-
token: results.token,
|
|
50581
|
-
Authorization: results.token,
|
|
50582
|
-
deviceUnique: results.deviceUnique
|
|
50583
|
-
}
|
|
50584
|
-
});
|
|
50585
|
-
if (query.openType) {
|
|
50586
|
-
var _url2 = utils_util["a" /* default */].win.top.location.href;
|
|
50587
|
-
var newUrl = utils_util["a" /* default */].delUrlParam({
|
|
50588
|
-
url: _url2,
|
|
50589
|
-
key: ['serverId', 'authType', 'openType']
|
|
50590
|
-
});
|
|
50591
|
-
switch (query.openType) {
|
|
50592
|
-
case 'self':
|
|
50593
|
-
utils_util["a" /* default */].win.location.href = newUrl;
|
|
50594
|
-
break;
|
|
50595
|
-
case 'blank':
|
|
50596
|
-
utils_util["a" /* default */].win.open(newUrl);
|
|
50597
|
-
break;
|
|
50598
|
-
case 'parent':
|
|
50599
|
-
utils_util["a" /* default */].win.parent.location.href = _href;
|
|
50600
|
-
break;
|
|
50601
|
-
default:
|
|
50602
|
-
utils_util["a" /* default */].win.top.location.href = _href;
|
|
50603
|
-
}
|
|
50604
|
-
} else {
|
|
50605
|
-
_this.getConfig();
|
|
50606
|
-
}
|
|
50607
|
-
break;
|
|
50608
|
-
case 1:
|
|
50609
|
-
break;
|
|
50610
|
-
case 2:
|
|
50611
|
-
break;
|
|
50612
|
-
case 3:
|
|
50613
|
-
var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
50614
|
-
switch (query.openType) {
|
|
50615
|
-
case 'self':
|
|
50616
|
-
utils_util["a" /* default */].win.location.href = _href;
|
|
50617
|
-
break;
|
|
50618
|
-
case 'blank':
|
|
50619
|
-
utils_util["a" /* default */].win.open(_href);
|
|
50620
|
-
break;
|
|
50621
|
-
case 'parent':
|
|
50622
|
-
utils_util["a" /* default */].win.parent.location.href = _href;
|
|
50623
|
-
break;
|
|
50624
|
-
default:
|
|
50625
|
-
utils_util["a" /* default */].win.top.location.href = _href;
|
|
50626
|
-
}
|
|
50627
|
-
break;
|
|
50628
|
-
case 4:
|
|
50629
|
-
_this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
50630
|
-
confirmButtonText: '确定',
|
|
50631
|
-
type: 'error',
|
|
50632
|
-
callback: function callback() {
|
|
50633
|
-
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
50634
|
-
//window.location.href = delUrlParam({ key: 'code' });
|
|
50635
|
-
if (loginPage) {
|
|
50636
|
-
utils_util["a" /* default */].win.top.location.replace(loginPage);
|
|
50637
|
-
} else if (document.referrer) {
|
|
50638
|
-
utils_util["a" /* default */].win.top.location.replace(document.referrer);
|
|
50639
|
-
} else if (utils_util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
50640
|
-
utils_util["a" /* default */].win.top.location.href = './login.html';
|
|
50641
|
-
} else {
|
|
50642
|
-
_this.$router.replace('/login');
|
|
50643
|
-
}
|
|
50644
|
-
}
|
|
50645
|
-
});
|
|
50646
|
-
break;
|
|
50647
|
-
default:
|
|
50648
|
-
}
|
|
50649
|
-
} else {
|
|
50650
|
-
_this.$alert(res.msg, '提示', {
|
|
50651
|
-
confirmButtonText: '确定',
|
|
50652
|
-
type: 'error',
|
|
50653
|
-
callback: function callback() {
|
|
50654
|
-
if (loginPage) {
|
|
50655
|
-
utils_util["a" /* default */].win.top.location.replace(loginPage);
|
|
50656
|
-
} else if (document.referrer) {
|
|
50657
|
-
utils_util["a" /* default */].win.top.location.replace(document.referrer);
|
|
50658
|
-
} else if (utils_util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
50659
|
-
utils_util["a" /* default */].win.top.location.href = './login.html';
|
|
50660
|
-
} else {
|
|
50661
|
-
_this.$router.replace('/login');
|
|
50662
|
-
}
|
|
50663
|
-
}
|
|
50664
|
-
});
|
|
50665
|
-
}
|
|
50666
|
-
}).catch(function (e) {});
|
|
50667
|
-
|
|
50668
|
-
case 6:
|
|
50669
|
-
_context.next = 9;
|
|
50670
|
-
break;
|
|
50671
|
-
|
|
50672
|
-
case 8:
|
|
50673
|
-
_this.getConfig();
|
|
50674
|
-
|
|
50675
|
-
case 9:
|
|
50676
|
-
case 'end':
|
|
50677
|
-
return _context.stop();
|
|
50678
|
-
}
|
|
50679
|
-
}
|
|
50680
|
-
}, _callee, _this);
|
|
50681
|
-
}))();
|
|
50682
|
-
},
|
|
50683
50416
|
menuSuccess: function menuSuccess(res) {
|
|
50684
50417
|
// this.menus
|
|
50685
50418
|
this.menuType = 'custom';
|
|
@@ -50691,14 +50424,14 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
50691
50424
|
|
|
50692
50425
|
//获取主题模板JSON
|
|
50693
50426
|
getMainDetail: function getMainDetail(id) {
|
|
50694
|
-
var
|
|
50427
|
+
var _this = this;
|
|
50695
50428
|
|
|
50696
50429
|
var params = {
|
|
50697
50430
|
url: api["cb" /* mainDetail */],
|
|
50698
50431
|
params: { id: id }
|
|
50699
50432
|
};
|
|
50700
50433
|
utils_util["a" /* default */].ajax(params).then(function (res) {
|
|
50701
|
-
var _that =
|
|
50434
|
+
var _that = _this;
|
|
50702
50435
|
if (!res.results) {
|
|
50703
50436
|
_that.showDefault = true;
|
|
50704
50437
|
}
|
|
@@ -50734,7 +50467,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
50734
50467
|
}
|
|
50735
50468
|
}).catch(function (err) {
|
|
50736
50469
|
if (err.message && err.message !== 'canceled') {
|
|
50737
|
-
|
|
50470
|
+
_this.$message.error(err.message);
|
|
50738
50471
|
}
|
|
50739
50472
|
});
|
|
50740
50473
|
},
|
|
@@ -50810,7 +50543,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
50810
50543
|
|
|
50811
50544
|
//设置主题颜色
|
|
50812
50545
|
setTheme: function setTheme(color) {
|
|
50813
|
-
var
|
|
50546
|
+
var _this2 = this;
|
|
50814
50547
|
|
|
50815
50548
|
if (!color) {
|
|
50816
50549
|
return;
|
|
@@ -50821,24 +50554,24 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
50821
50554
|
data: { color: escape(color.toLowerCase()) }
|
|
50822
50555
|
}).then(function (res) {
|
|
50823
50556
|
if (res.rCode === 0) {
|
|
50824
|
-
|
|
50557
|
+
_this2.color = color;
|
|
50825
50558
|
localStorage.setItem('theme', color);
|
|
50826
50559
|
var _mainConfig = JSON.parse(utils_util["a" /* default */].getStorage('mainConfig'));
|
|
50827
|
-
_mainConfig.userStyle.color =
|
|
50560
|
+
_mainConfig.userStyle.color = _this2.color;
|
|
50828
50561
|
sessionStorage.setItem('mainConfig', JSON.stringify(_mainConfig));
|
|
50829
|
-
|
|
50830
|
-
|
|
50562
|
+
_this2.$emit('setting', 'theme', _this2.color);
|
|
50563
|
+
_this2.$message({
|
|
50831
50564
|
message: res.msg,
|
|
50832
50565
|
type: 'success',
|
|
50833
50566
|
duration: 2000
|
|
50834
50567
|
});
|
|
50835
50568
|
} else {
|
|
50836
50569
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
50837
|
-
|
|
50570
|
+
_this2.$message.error(msg);
|
|
50838
50571
|
}
|
|
50839
50572
|
}).catch(function (err) {
|
|
50840
50573
|
if (err.message && err.message !== 'canceled') {
|
|
50841
|
-
|
|
50574
|
+
_this2.$message.error(err.message);
|
|
50842
50575
|
}
|
|
50843
50576
|
});
|
|
50844
50577
|
},
|
|
@@ -50925,9 +50658,13 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
50925
50658
|
},
|
|
50926
50659
|
|
|
50927
50660
|
//获取用户配置及信息
|
|
50928
|
-
getConfig: function getConfig() {
|
|
50929
|
-
var
|
|
50661
|
+
getConfig: function getConfig(query) {
|
|
50662
|
+
var _this3 = this;
|
|
50930
50663
|
|
|
50664
|
+
var token = utils_util["a" /* default */].getStorage('token') || utils_util["a" /* default */].getStorage('Authorization');
|
|
50665
|
+
if (!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType')) {
|
|
50666
|
+
return false;
|
|
50667
|
+
}
|
|
50931
50668
|
if (utils_util["a" /* default */].getStorage('mainConfig')) {
|
|
50932
50669
|
var results = JSON.parse(utils_util["a" /* default */].getStorage('mainConfig'));
|
|
50933
50670
|
this.setConfig(results);
|
|
@@ -50940,39 +50677,39 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
50940
50677
|
}
|
|
50941
50678
|
utils_util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
|
|
50942
50679
|
if (res && res.rCode === 0) {
|
|
50943
|
-
|
|
50944
|
-
if (
|
|
50945
|
-
|
|
50680
|
+
_this3.setConfig(res.results, 1);
|
|
50681
|
+
if (_this3.socket) {
|
|
50682
|
+
_this3.initWebSocket();
|
|
50946
50683
|
}
|
|
50947
|
-
if (
|
|
50948
|
-
|
|
50684
|
+
if (_this3.remote) {
|
|
50685
|
+
_this3.getMenu();
|
|
50949
50686
|
} else {
|
|
50950
|
-
|
|
50687
|
+
_this3.renderMenu();
|
|
50951
50688
|
}
|
|
50952
50689
|
} else {
|
|
50953
50690
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
50954
|
-
|
|
50691
|
+
_this3.$message.error(msg);
|
|
50955
50692
|
}
|
|
50956
50693
|
}).catch(function (err) {
|
|
50957
50694
|
if (err.message && err.message !== 'canceled') {
|
|
50958
|
-
|
|
50695
|
+
_this3.$message.error(err.message);
|
|
50959
50696
|
}
|
|
50960
50697
|
});
|
|
50961
50698
|
},
|
|
50962
50699
|
reGetConfig: function reGetConfig() {
|
|
50963
|
-
var
|
|
50700
|
+
var _this4 = this;
|
|
50964
50701
|
|
|
50965
50702
|
utils_util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
|
|
50966
50703
|
if (res && res.rCode === 0) {
|
|
50967
50704
|
var results = JSON.parse(JSON.stringify(res.results));
|
|
50968
|
-
|
|
50705
|
+
_this4.setConfig(results, 1);
|
|
50969
50706
|
} else {
|
|
50970
50707
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
50971
|
-
|
|
50708
|
+
_this4.$message.error(msg);
|
|
50972
50709
|
}
|
|
50973
50710
|
}).catch(function (err) {
|
|
50974
50711
|
if (err.message && err.message !== 'canceled') {
|
|
50975
|
-
|
|
50712
|
+
_this4.$message.error(err.message);
|
|
50976
50713
|
}
|
|
50977
50714
|
});
|
|
50978
50715
|
},
|
|
@@ -51033,8 +50770,8 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51033
50770
|
return item.id;
|
|
51034
50771
|
} else {
|
|
51035
50772
|
if (path && item.url) {
|
|
51036
|
-
var
|
|
51037
|
-
if (
|
|
50773
|
+
var url = new URL(item.url, window.location.origin);
|
|
50774
|
+
if (url.hash == res) {
|
|
51038
50775
|
return item.id;
|
|
51039
50776
|
}
|
|
51040
50777
|
}
|
|
@@ -51045,24 +50782,24 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51045
50782
|
|
|
51046
50783
|
//获取应用导航菜单
|
|
51047
50784
|
getMenu: function getMenu() {
|
|
51048
|
-
var
|
|
50785
|
+
var _this5 = this;
|
|
51049
50786
|
|
|
51050
50787
|
utils_util["a" /* default */].ajax({ url: this.action, params: this.param ? this.param : {} }).then(function (res) {
|
|
51051
50788
|
if (res.rCode === 0) {
|
|
51052
50789
|
if (res.results && res.results.length) {
|
|
51053
|
-
|
|
50790
|
+
_this5.menus = JSON.parse(JSON.stringify(res.results));
|
|
51054
50791
|
var applicationid = utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId');
|
|
51055
50792
|
if (applicationid) {
|
|
51056
|
-
var ids =
|
|
50793
|
+
var ids = _this5.getId(_this5.menus, applicationid);
|
|
51057
50794
|
if (ids) {
|
|
51058
|
-
|
|
50795
|
+
_this5.defaultActive = ids;
|
|
51059
50796
|
}
|
|
51060
|
-
} else if (sessionStorage.getItem('jump') &&
|
|
51061
|
-
var _ids4 =
|
|
50797
|
+
} else if (sessionStorage.getItem('jump') && _this5.isHistory) {
|
|
50798
|
+
var _ids4 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
|
|
51062
50799
|
if (_ids4) {
|
|
51063
|
-
|
|
51064
|
-
|
|
51065
|
-
|
|
50800
|
+
_this5.defaultActive = _ids4;
|
|
50801
|
+
_this5.navIds = _ids4;
|
|
50802
|
+
_this5.setTitle(_ids4[0]);
|
|
51066
50803
|
}
|
|
51067
50804
|
} else if (utils_util["a" /* default */].win.location.hash) {
|
|
51068
50805
|
var hash = utils_util["a" /* default */].win.location.hash;
|
|
@@ -51070,34 +50807,34 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51070
50807
|
hash = hash.split('?')[0];
|
|
51071
50808
|
}
|
|
51072
50809
|
if (hash !== '#/' && hash !== '#/main') {
|
|
51073
|
-
var _ids5 =
|
|
50810
|
+
var _ids5 = _this5.getId(_this5.menus, utils_util["a" /* default */].win.location.hash, true);
|
|
51074
50811
|
if (_ids5) {
|
|
51075
|
-
|
|
51076
|
-
|
|
51077
|
-
|
|
50812
|
+
_this5.defaultActive = _ids5;
|
|
50813
|
+
_this5.navIds = _ids5;
|
|
50814
|
+
_this5.setTitle(_ids5[0]);
|
|
51078
50815
|
}
|
|
51079
|
-
} else if (sessionStorage.getItem('jump') &&
|
|
51080
|
-
var _ids6 =
|
|
50816
|
+
} else if (sessionStorage.getItem('jump') && _this5.isHistory) {
|
|
50817
|
+
var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
|
|
51081
50818
|
if (_ids6) {
|
|
51082
|
-
|
|
51083
|
-
|
|
51084
|
-
|
|
50819
|
+
_this5.defaultActive = _ids6;
|
|
50820
|
+
_this5.navIds = _ids6;
|
|
50821
|
+
_this5.setTitle(_ids6[0]);
|
|
51085
50822
|
}
|
|
51086
50823
|
}
|
|
51087
50824
|
}
|
|
51088
|
-
|
|
51089
|
-
utils_store.set('nav',
|
|
51090
|
-
|
|
50825
|
+
_this5.setTips(_this5.menus);
|
|
50826
|
+
utils_store.set('nav', _this5.menus);
|
|
50827
|
+
_this5.setMenu(_this5.menus);
|
|
51091
50828
|
} else {
|
|
51092
|
-
|
|
50829
|
+
_this5.$message.error('未分配菜单权限,请联系管理员!');
|
|
51093
50830
|
}
|
|
51094
50831
|
} else {
|
|
51095
50832
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
51096
|
-
|
|
50833
|
+
_this5.$message.error(msg);
|
|
51097
50834
|
}
|
|
51098
50835
|
}).catch(function (err) {
|
|
51099
50836
|
if (err.message && err.message !== 'canceled') {
|
|
51100
|
-
|
|
50837
|
+
_this5.$message.error(err.message);
|
|
51101
50838
|
}
|
|
51102
50839
|
});
|
|
51103
50840
|
},
|
|
@@ -51219,11 +50956,11 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51219
50956
|
|
|
51220
50957
|
//遍历设置菜单气泡提醒
|
|
51221
50958
|
setTips: function setTips(obj) {
|
|
51222
|
-
var
|
|
50959
|
+
var _this6 = this;
|
|
51223
50960
|
|
|
51224
50961
|
if (Array.isArray(obj)) {
|
|
51225
50962
|
obj.forEach(function (item) {
|
|
51226
|
-
|
|
50963
|
+
_this6.setTips(item);
|
|
51227
50964
|
});
|
|
51228
50965
|
} else {
|
|
51229
50966
|
if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
|
|
@@ -51233,7 +50970,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51233
50970
|
var flag = false;
|
|
51234
50971
|
if (obj.children && obj.children.length) {
|
|
51235
50972
|
obj.children.forEach(function (item) {
|
|
51236
|
-
if (
|
|
50973
|
+
if (_this6.setTips(item)) {
|
|
51237
50974
|
flag = true;
|
|
51238
50975
|
}
|
|
51239
50976
|
});
|
|
@@ -51243,7 +50980,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51243
50980
|
}
|
|
51244
50981
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
51245
50982
|
obj.fourthTabs.forEach(function (item) {
|
|
51246
|
-
if (
|
|
50983
|
+
if (_this6.setTips(item)) {
|
|
51247
50984
|
flag = true;
|
|
51248
50985
|
}
|
|
51249
50986
|
});
|
|
@@ -51327,19 +51064,19 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51327
51064
|
} else {
|
|
51328
51065
|
if (item.children && item.children.length) {
|
|
51329
51066
|
index++;
|
|
51330
|
-
var
|
|
51331
|
-
if (
|
|
51067
|
+
var url = this.getUrl(item.children, active, index, param);
|
|
51068
|
+
if (url && index === active.length - 1) {
|
|
51332
51069
|
this.tabs = '';
|
|
51333
51070
|
}
|
|
51334
|
-
return
|
|
51071
|
+
return url;
|
|
51335
51072
|
}
|
|
51336
51073
|
if (item.fourthTabs && item.fourthTabs.length) {
|
|
51337
51074
|
index++;
|
|
51338
|
-
var
|
|
51339
|
-
if (
|
|
51075
|
+
var _url2 = this.getUrl(item.fourthTabs, active, index, param);
|
|
51076
|
+
if (_url2) {
|
|
51340
51077
|
this.$set(this, 'tabs', item.fourthTabs);
|
|
51341
51078
|
}
|
|
51342
|
-
return
|
|
51079
|
+
return _url2;
|
|
51343
51080
|
}
|
|
51344
51081
|
}
|
|
51345
51082
|
} else if (item.children && item.children.length) {
|
|
@@ -51537,7 +51274,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51537
51274
|
|
|
51538
51275
|
//头部工具交互事件
|
|
51539
51276
|
handleClick: function handleClick(res) {
|
|
51540
|
-
var
|
|
51277
|
+
var _this7 = this;
|
|
51541
51278
|
|
|
51542
51279
|
var type = res.type;
|
|
51543
51280
|
|
|
@@ -51558,7 +51295,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51558
51295
|
this.setMenu(this.menus);
|
|
51559
51296
|
}
|
|
51560
51297
|
this.$nextTick(function () {
|
|
51561
|
-
|
|
51298
|
+
_this7.reset = true;
|
|
51562
51299
|
});
|
|
51563
51300
|
break;
|
|
51564
51301
|
case 'user':
|
|
@@ -51586,21 +51323,21 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51586
51323
|
|
|
51587
51324
|
//刷新子页面、子路由
|
|
51588
51325
|
handleRefresh: function handleRefresh() {
|
|
51589
|
-
var
|
|
51326
|
+
var _this8 = this;
|
|
51590
51327
|
|
|
51591
51328
|
if (this.method === 'iframe') {
|
|
51592
51329
|
this.page = utils_util["a" /* default */].handlerUrl(this.page);
|
|
51593
51330
|
} else {
|
|
51594
51331
|
this.refresh = false;
|
|
51595
51332
|
this.$nextTick(function () {
|
|
51596
|
-
|
|
51333
|
+
_this8.refresh = true;
|
|
51597
51334
|
});
|
|
51598
51335
|
}
|
|
51599
51336
|
},
|
|
51600
51337
|
|
|
51601
51338
|
//跳转页面
|
|
51602
51339
|
handleJump: function handleJump(page, type, res, param) {
|
|
51603
|
-
var
|
|
51340
|
+
var _this9 = this;
|
|
51604
51341
|
|
|
51605
51342
|
console.log(page);
|
|
51606
51343
|
var prevPage = sessionStorage.getItem('jump');
|
|
@@ -51631,7 +51368,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51631
51368
|
this.wjName = 'singlespa';
|
|
51632
51369
|
this.page = this.host + page;
|
|
51633
51370
|
this.$nextTick(function () {
|
|
51634
|
-
|
|
51371
|
+
_this9.refresh = true;
|
|
51635
51372
|
});
|
|
51636
51373
|
} else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
|
|
51637
51374
|
this.method = 'iframe';
|
|
@@ -51663,7 +51400,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51663
51400
|
query: params
|
|
51664
51401
|
});
|
|
51665
51402
|
this.$nextTick(function () {
|
|
51666
|
-
|
|
51403
|
+
_this9.refresh = true;
|
|
51667
51404
|
});
|
|
51668
51405
|
} else {
|
|
51669
51406
|
var urlopenmode = utils_util["a" /* default */].getParams({
|
|
@@ -51679,7 +51416,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51679
51416
|
this.wjName = res && res.appCode ? res.appCode : 'application';
|
|
51680
51417
|
this.page = this.host + page;
|
|
51681
51418
|
this.$nextTick(function () {
|
|
51682
|
-
|
|
51419
|
+
_this9.refresh = true;
|
|
51683
51420
|
});
|
|
51684
51421
|
}
|
|
51685
51422
|
}
|
|
@@ -51691,7 +51428,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51691
51428
|
}
|
|
51692
51429
|
}
|
|
51693
51430
|
this.$nextTick(function () {
|
|
51694
|
-
|
|
51431
|
+
_this9.showPage = true;
|
|
51695
51432
|
});
|
|
51696
51433
|
},
|
|
51697
51434
|
|
|
@@ -51803,7 +51540,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51803
51540
|
|
|
51804
51541
|
//监听改变菜单
|
|
51805
51542
|
handleListener: function handleListener() {
|
|
51806
|
-
var
|
|
51543
|
+
var _this10 = this;
|
|
51807
51544
|
|
|
51808
51545
|
utils_util["a" /* default */].win.addEventListener('message', function (e) {
|
|
51809
51546
|
var msg = e.data;
|
|
@@ -51812,45 +51549,45 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51812
51549
|
if (typeof res === 'string') {
|
|
51813
51550
|
res = res.split(',');
|
|
51814
51551
|
}
|
|
51815
|
-
|
|
51552
|
+
_this10.setDefault(_this10.menus, res);
|
|
51816
51553
|
}
|
|
51817
51554
|
}, false);
|
|
51818
51555
|
},
|
|
51819
51556
|
|
|
51820
51557
|
//开启weosocket
|
|
51821
51558
|
initWebSocket: function initWebSocket() {
|
|
51822
|
-
var
|
|
51559
|
+
var _this11 = this;
|
|
51823
51560
|
|
|
51824
51561
|
utils_util["a" /* default */].socket().then(function (res, close) {
|
|
51825
|
-
|
|
51562
|
+
_this11.close = close;
|
|
51826
51563
|
var data = res.data;
|
|
51827
51564
|
for (var i in data) {
|
|
51828
51565
|
if (data[i] !== null && data[i] !== undefined) {
|
|
51829
51566
|
if (i === 'onlineUserNums' && data[i] > 0) {
|
|
51830
|
-
|
|
51567
|
+
_this11.online = data[i];
|
|
51831
51568
|
}
|
|
51832
51569
|
if (i === 'sysMsgNums') {
|
|
51833
|
-
|
|
51834
|
-
if (
|
|
51835
|
-
|
|
51570
|
+
_this11.notice = data[i];
|
|
51571
|
+
if (_this11.showMsg) {
|
|
51572
|
+
_this11.$refs.message.getMsg(true);
|
|
51836
51573
|
}
|
|
51837
51574
|
}
|
|
51838
51575
|
if (i === 'menuTipsMap') {
|
|
51839
|
-
|
|
51576
|
+
_this11.menuTips = data[i];
|
|
51840
51577
|
}
|
|
51841
51578
|
if (i === 'sysMsgList') {
|
|
51842
|
-
|
|
51579
|
+
_this11.sysMsg = data[i];
|
|
51843
51580
|
}
|
|
51844
51581
|
if (i === 'extraData') {
|
|
51845
|
-
|
|
51582
|
+
_this11.extraData = data[i];
|
|
51846
51583
|
}
|
|
51847
51584
|
}
|
|
51848
51585
|
}
|
|
51849
|
-
if (
|
|
51850
|
-
|
|
51586
|
+
if (_this11.$store) {
|
|
51587
|
+
_this11.$store.commit('websocket', data);
|
|
51851
51588
|
}
|
|
51852
|
-
if (
|
|
51853
|
-
|
|
51589
|
+
if (_this11.$eventBus) {
|
|
51590
|
+
_this11.$eventBus.$emit('websocket', data);
|
|
51854
51591
|
}
|
|
51855
51592
|
if (utils_util["a" /* default */].win.eventBus) {
|
|
51856
51593
|
utils_util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
@@ -51860,13 +51597,13 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51860
51597
|
});
|
|
51861
51598
|
},
|
|
51862
51599
|
handleOpened: function handleOpened(res) {
|
|
51863
|
-
var
|
|
51600
|
+
var _this12 = this;
|
|
51864
51601
|
|
|
51865
51602
|
if (res === undefined) {
|
|
51866
51603
|
this.sysMsg = [];
|
|
51867
51604
|
} else if (res == false && this.sysMsg.length) {
|
|
51868
51605
|
this.sysMsgOut = setTimeout(function () {
|
|
51869
|
-
|
|
51606
|
+
_this12.sysMsg = [];
|
|
51870
51607
|
}, 3000);
|
|
51871
51608
|
} else if (this.sysMsgOut) {
|
|
51872
51609
|
clearTimeout(this.sysMsgOut);
|
|
@@ -51887,7 +51624,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51887
51624
|
}
|
|
51888
51625
|
},
|
|
51889
51626
|
handleReLogin: function handleReLogin(res) {
|
|
51890
|
-
var
|
|
51627
|
+
var _this13 = this;
|
|
51891
51628
|
|
|
51892
51629
|
if (res && typeof res == 'string') {
|
|
51893
51630
|
res = JSON.parse(res);
|
|
@@ -51918,7 +51655,7 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51918
51655
|
this.timer = setTimeout(function () {
|
|
51919
51656
|
console.log('handleReLogin');
|
|
51920
51657
|
sessionStorage.setItem('remind', 1);
|
|
51921
|
-
|
|
51658
|
+
_this13.$confirm(msg, btn).then(function () {
|
|
51922
51659
|
utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
51923
51660
|
var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
|
|
51924
51661
|
if (loginPage) {
|
|
@@ -51993,8 +51730,8 @@ var log = utils_util["a" /* default */].getParams('console');
|
|
|
51993
51730
|
|
|
51994
51731
|
var main_src_main_component = normalizeComponent(
|
|
51995
51732
|
packages_main_src_mainvue_type_script_lang_js_,
|
|
51996
|
-
|
|
51997
|
-
|
|
51733
|
+
mainvue_type_template_id_e6267c3c_render,
|
|
51734
|
+
mainvue_type_template_id_e6267c3c_staticRenderFns,
|
|
51998
51735
|
false,
|
|
51999
51736
|
null,
|
|
52000
51737
|
null,
|
|
@@ -54360,8 +54097,8 @@ qr_code_src_main.install = function (Vue) {
|
|
|
54360
54097
|
};
|
|
54361
54098
|
|
|
54362
54099
|
/* harmony default export */ var qr_code = (qr_code_src_main);
|
|
54363
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=
|
|
54364
|
-
var
|
|
54100
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
|
|
54101
|
+
var mainvue_type_template_id_a0afa96c_render = function () {
|
|
54365
54102
|
var _vm = this
|
|
54366
54103
|
var _h = _vm.$createElement
|
|
54367
54104
|
var _c = _vm._self._c || _h
|
|
@@ -54490,11 +54227,11 @@ var mainvue_type_template_id_0995e7f2_render = function () {
|
|
|
54490
54227
|
)
|
|
54491
54228
|
: _vm._e()
|
|
54492
54229
|
}
|
|
54493
|
-
var
|
|
54494
|
-
|
|
54230
|
+
var mainvue_type_template_id_a0afa96c_staticRenderFns = []
|
|
54231
|
+
mainvue_type_template_id_a0afa96c_render._withStripped = true
|
|
54495
54232
|
|
|
54496
54233
|
|
|
54497
|
-
// CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=
|
|
54234
|
+
// CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
|
|
54498
54235
|
|
|
54499
54236
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=script&lang=js&
|
|
54500
54237
|
var radio_group_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -54682,7 +54419,7 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
|
|
|
54682
54419
|
labelVal: function labelVal() {
|
|
54683
54420
|
var _this = this;
|
|
54684
54421
|
|
|
54685
|
-
if (this.readonly &&
|
|
54422
|
+
if (this.readonly && this.model !== undefined && this.results.length) {
|
|
54686
54423
|
if (radio_group_src_mainvue_type_script_lang_js_typeof(this.model) !== 'object') {
|
|
54687
54424
|
if (utils_util["a" /* default */].isObject(this.results[0])) {
|
|
54688
54425
|
var val = void 0;
|
|
@@ -54806,8 +54543,8 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
|
|
|
54806
54543
|
|
|
54807
54544
|
var radio_group_src_main_component = normalizeComponent(
|
|
54808
54545
|
packages_radio_group_src_mainvue_type_script_lang_js_,
|
|
54809
|
-
|
|
54810
|
-
|
|
54546
|
+
mainvue_type_template_id_a0afa96c_render,
|
|
54547
|
+
mainvue_type_template_id_a0afa96c_staticRenderFns,
|
|
54811
54548
|
false,
|
|
54812
54549
|
null,
|
|
54813
54550
|
null,
|
|
@@ -64942,6 +64679,8 @@ tree_group_src_main.install = function (Vue) {
|
|
|
64942
64679
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/toolbar/src/main.vue?vue&type=script&lang=js&
|
|
64943
64680
|
var toolbar_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
64944
64681
|
|
|
64682
|
+
function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
64683
|
+
|
|
64945
64684
|
/* harmony default export */ var toolbar_src_mainvue_type_script_lang_js_ = ({
|
|
64946
64685
|
name: 'EsToolbar',
|
|
64947
64686
|
inheritAttrs: false,
|
|
@@ -64984,6 +64723,14 @@ var toolbar_src_mainvue_type_script_lang_js_extends = Object.assign || function
|
|
|
64984
64723
|
small: {
|
|
64985
64724
|
type: Boolean,
|
|
64986
64725
|
default: true
|
|
64726
|
+
},
|
|
64727
|
+
showLabel: {
|
|
64728
|
+
type: Boolean,
|
|
64729
|
+
default: false
|
|
64730
|
+
},
|
|
64731
|
+
labelWidth: {
|
|
64732
|
+
type: String,
|
|
64733
|
+
default: 'auto'
|
|
64987
64734
|
}
|
|
64988
64735
|
},
|
|
64989
64736
|
computed: {
|
|
@@ -65139,6 +64886,10 @@ var toolbar_src_mainvue_type_script_lang_js_extends = Object.assign || function
|
|
|
65139
64886
|
}, item.label || item.text);
|
|
65140
64887
|
}))]);
|
|
65141
64888
|
}
|
|
64889
|
+
|
|
64890
|
+
var config = items.config,
|
|
64891
|
+
other = mainvue_type_script_lang_js_objectWithoutProperties(items, ['config']);
|
|
64892
|
+
|
|
65142
64893
|
if (items.type === 'search') {
|
|
65143
64894
|
var itemClass = {
|
|
65144
64895
|
radio: 'es-toolbar-item-radio',
|
|
@@ -65146,13 +64897,11 @@ var toolbar_src_mainvue_type_script_lang_js_extends = Object.assign || function
|
|
|
65146
64897
|
switch: 'es-toolbar-item-switch'
|
|
65147
64898
|
};
|
|
65148
64899
|
search = [h('es-form', {
|
|
65149
|
-
class: ['es-form-search', _this2.small ? 'es-form-search-small' : '', _this2.
|
|
64900
|
+
class: ['es-form-search', _this2.small ? 'es-form-search-small' : '', _this2.showLabel ? 'es-form-search-nobtn' : ''],
|
|
65150
64901
|
props: toolbar_src_mainvue_type_script_lang_js_extends({
|
|
65151
|
-
showButton: items.showButton,
|
|
65152
|
-
formatSubmit: items.formatSubmit
|
|
65153
|
-
}, items.config || {}, {
|
|
65154
64902
|
size: 'medium',
|
|
65155
|
-
showLabel:
|
|
64903
|
+
showLabel: _this2.showLabel,
|
|
64904
|
+
labelWidth: _this2.labelWidth,
|
|
65156
64905
|
closeDialog: false,
|
|
65157
64906
|
model: _this2.searchData,
|
|
65158
64907
|
contents: items.contents,
|
|
@@ -65161,7 +64910,7 @@ var toolbar_src_mainvue_type_script_lang_js_extends = Object.assign || function
|
|
|
65161
64910
|
search: true,
|
|
65162
64911
|
isReset: items.reset,
|
|
65163
64912
|
showButton: _this2.showFormBtn
|
|
65164
|
-
}),
|
|
64913
|
+
}, other, config || {}),
|
|
65165
64914
|
on: {
|
|
65166
64915
|
submit: function submit(data) {
|
|
65167
64916
|
_this2.hanleSearch(data, items.multiCondition);
|
|
@@ -65205,9 +64954,7 @@ var toolbar_src_mainvue_type_script_lang_js_extends = Object.assign || function
|
|
|
65205
64954
|
}, [h('es-form', {
|
|
65206
64955
|
class: 'es-form-search',
|
|
65207
64956
|
ref: 'filter',
|
|
65208
|
-
props: toolbar_src_mainvue_type_script_lang_js_extends({
|
|
65209
|
-
formatSubmit: items.formatSubmit
|
|
65210
|
-
}, items.config || {}, {
|
|
64957
|
+
props: toolbar_src_mainvue_type_script_lang_js_extends({}, other, config || {}, {
|
|
65211
64958
|
size: 'medium',
|
|
65212
64959
|
closeDialog: false,
|
|
65213
64960
|
model: _this2.advancedData,
|
|
@@ -65266,8 +65013,8 @@ toolbar_src_main.install = function (Vue) {
|
|
|
65266
65013
|
};
|
|
65267
65014
|
|
|
65268
65015
|
/* harmony default export */ var packages_toolbar = (toolbar_src_main);
|
|
65269
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=
|
|
65270
|
-
var
|
|
65016
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=3e2bccce&
|
|
65017
|
+
var tablevue_type_template_id_3e2bccce_render = function () {
|
|
65271
65018
|
var _vm = this
|
|
65272
65019
|
var _h = _vm.$createElement
|
|
65273
65020
|
var _c = _vm._self._c || _h
|
|
@@ -65453,20 +65200,9 @@ var tablevue_type_template_id_fdf72a6c_render = function () {
|
|
|
65453
65200
|
? _c(
|
|
65454
65201
|
"es-label",
|
|
65455
65202
|
_vm._b(
|
|
65456
|
-
{
|
|
65457
|
-
attrs: {
|
|
65458
|
-
contents: item.label,
|
|
65459
|
-
plain: item.plain,
|
|
65460
|
-
rules: item.rules,
|
|
65461
|
-
},
|
|
65462
|
-
},
|
|
65203
|
+
{},
|
|
65463
65204
|
"es-label",
|
|
65464
|
-
item.label
|
|
65465
|
-
? {
|
|
65466
|
-
event: item.label.event,
|
|
65467
|
-
events: item.label.events,
|
|
65468
|
-
}
|
|
65469
|
-
: {},
|
|
65205
|
+
_vm.getLabel(item.label),
|
|
65470
65206
|
false
|
|
65471
65207
|
)
|
|
65472
65208
|
)
|
|
@@ -67928,23 +67664,15 @@ var tablevue_type_template_id_fdf72a6c_render = function () {
|
|
|
67928
67664
|
2
|
|
67929
67665
|
)
|
|
67930
67666
|
}
|
|
67931
|
-
var
|
|
67932
|
-
|
|
67667
|
+
var tablevue_type_template_id_3e2bccce_staticRenderFns = []
|
|
67668
|
+
tablevue_type_template_id_3e2bccce_render._withStripped = true
|
|
67933
67669
|
|
|
67934
67670
|
|
|
67935
|
-
// CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=
|
|
67671
|
+
// CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=3e2bccce&
|
|
67936
67672
|
|
|
67937
67673
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=script&lang=js&
|
|
67938
|
-
|
|
67939
|
-
|
|
67940
|
-
//
|
|
67941
|
-
//
|
|
67942
|
-
//
|
|
67943
|
-
//
|
|
67944
|
-
//
|
|
67945
|
-
//
|
|
67946
|
-
//
|
|
67947
|
-
//
|
|
67674
|
+
var src_tablevue_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; };
|
|
67675
|
+
|
|
67948
67676
|
//
|
|
67949
67677
|
//
|
|
67950
67678
|
//
|
|
@@ -69168,6 +68896,9 @@ tablevue_type_template_id_fdf72a6c_render._withStripped = true
|
|
|
69168
68896
|
},
|
|
69169
68897
|
|
|
69170
68898
|
methods: {
|
|
68899
|
+
getLabel: function getLabel(res) {
|
|
68900
|
+
return typeof res === 'string' ? { contents: res } : src_tablevue_type_script_lang_js_extends({}, res, { plain: res.plain || res.name === undefined });
|
|
68901
|
+
},
|
|
69171
68902
|
getRules: function getRules(res) {
|
|
69172
68903
|
if (res.rules && !res.hide) {
|
|
69173
68904
|
if (Array.isArray(res.rules)) {
|
|
@@ -69297,8 +69028,8 @@ tablevue_type_template_id_fdf72a6c_render._withStripped = true
|
|
|
69297
69028
|
|
|
69298
69029
|
var form_src_table_component = normalizeComponent(
|
|
69299
69030
|
packages_form_src_tablevue_type_script_lang_js_,
|
|
69300
|
-
|
|
69301
|
-
|
|
69031
|
+
tablevue_type_template_id_3e2bccce_render,
|
|
69032
|
+
tablevue_type_template_id_3e2bccce_staticRenderFns,
|
|
69302
69033
|
false,
|
|
69303
69034
|
null,
|
|
69304
69035
|
null,
|
|
@@ -71261,7 +70992,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
71261
70992
|
}
|
|
71262
70993
|
|
|
71263
70994
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
71264
|
-
version: '0.5.
|
|
70995
|
+
version: '0.5.11',
|
|
71265
70996
|
install: install,
|
|
71266
70997
|
Button: packages_button,
|
|
71267
70998
|
ButtonGroup: button_group,
|