eoss-ui 0.5.14 → 0.5.16
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 +5 -1
- package/lib/button.js +5 -1
- package/lib/checkbox-group.js +5 -1
- package/lib/data-table-form.js +5 -1
- package/lib/data-table.js +73 -70
- package/lib/date-picker.js +5 -1
- package/lib/dialog.js +5 -1
- package/lib/eoss-ui.common.js +76 -73
- package/lib/flow-group.js +5 -1
- package/lib/flow-list.js +5 -1
- package/lib/flow.js +5 -1
- package/lib/form.js +5 -1
- package/lib/handle-user.js +5 -1
- package/lib/handler.js +5 -1
- package/lib/index.js +1 -1
- package/lib/input-number.js +5 -1
- package/lib/input.js +5 -1
- package/lib/login.js +5 -1
- package/lib/main.js +5 -1
- package/lib/nav.js +5 -1
- package/lib/page.js +5 -1
- package/lib/player.js +5 -1
- package/lib/qr-code.js +5 -1
- package/lib/radio-group.js +5 -1
- package/lib/retrial-auth.js +5 -1
- package/lib/select-ganged.js +5 -1
- package/lib/select.js +5 -1
- package/lib/selector-panel.js +5 -1
- package/lib/selector.js +5 -1
- package/lib/sizer.js +5 -1
- package/lib/steps.js +5 -1
- package/lib/switch.js +5 -1
- package/lib/table-form.js +5 -1
- package/lib/tabs.js +5 -1
- package/lib/tips.js +5 -1
- package/lib/tree-group.js +5 -1
- package/lib/tree.js +5 -1
- package/lib/upload.js +5 -1
- package/lib/utils/util.js +5 -1
- package/lib/wujie.js +5 -1
- package/lib/wxlogin.js +5 -1
- package/package.json +2 -2
- package/packages/data-table/src/column.vue +7 -5
- package/packages/data-table/src/main.vue +12 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +5 -1
package/lib/button-group.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/button.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|
package/lib/checkbox-group.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/data-table-form.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/data-table.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
|
@@ -3855,8 +3859,8 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
3855
3859
|
// ESM COMPAT FLAG
|
|
3856
3860
|
__webpack_require__.r(__webpack_exports__);
|
|
3857
3861
|
|
|
3858
|
-
// 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=
|
|
3859
|
-
var
|
|
3862
|
+
// 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=55ef7929&
|
|
3863
|
+
var mainvue_type_template_id_55ef7929_render = function () {
|
|
3860
3864
|
var _vm = this
|
|
3861
3865
|
var _h = _vm.$createElement
|
|
3862
3866
|
var _c = _vm._self._c || _h
|
|
@@ -4103,10 +4107,10 @@ var mainvue_type_template_id_2d512d7f_render = function () {
|
|
|
4103
4107
|
)
|
|
4104
4108
|
}
|
|
4105
4109
|
var staticRenderFns = []
|
|
4106
|
-
|
|
4110
|
+
mainvue_type_template_id_55ef7929_render._withStripped = true
|
|
4107
4111
|
|
|
4108
4112
|
|
|
4109
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=
|
|
4113
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=55ef7929&
|
|
4110
4114
|
|
|
4111
4115
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4112
4116
|
var api = __webpack_require__(1);
|
|
@@ -4154,8 +4158,8 @@ childrenvue_type_template_id_29bcbc72_render._withStripped = true
|
|
|
4154
4158
|
|
|
4155
4159
|
// CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
|
|
4156
4160
|
|
|
4157
|
-
// 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/column.vue?vue&type=template&id=
|
|
4158
|
-
var
|
|
4161
|
+
// 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/column.vue?vue&type=template&id=c4b1a5d6&
|
|
4162
|
+
var columnvue_type_template_id_c4b1a5d6_render = function () {
|
|
4159
4163
|
var _vm = this
|
|
4160
4164
|
var _h = _vm.$createElement
|
|
4161
4165
|
var _c = _vm._self._c || _h
|
|
@@ -4768,10 +4772,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
4768
4772
|
},
|
|
4769
4773
|
"es-button-group",
|
|
4770
4774
|
_vm.exclAttribute({
|
|
4771
|
-
data:
|
|
4772
|
-
prop: this.prop,
|
|
4773
|
-
field: this.field,
|
|
4774
|
-
}),
|
|
4775
|
+
data: _vm.config,
|
|
4775
4776
|
attrs: [
|
|
4776
4777
|
"contents",
|
|
4777
4778
|
"events",
|
|
@@ -4787,10 +4788,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
4787
4788
|
: _vm.render
|
|
4788
4789
|
? _c("expand-dom", {
|
|
4789
4790
|
attrs: {
|
|
4790
|
-
column:
|
|
4791
|
-
prop: this.prop,
|
|
4792
|
-
field: this.field,
|
|
4793
|
-
}),
|
|
4791
|
+
column: _vm.config,
|
|
4794
4792
|
row: scope.row,
|
|
4795
4793
|
render: _vm.render,
|
|
4796
4794
|
index: _vm.indexs,
|
|
@@ -4831,11 +4829,11 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
4831
4829
|
2
|
|
4832
4830
|
)
|
|
4833
4831
|
}
|
|
4834
|
-
var
|
|
4835
|
-
|
|
4832
|
+
var columnvue_type_template_id_c4b1a5d6_staticRenderFns = []
|
|
4833
|
+
columnvue_type_template_id_c4b1a5d6_render._withStripped = true
|
|
4836
4834
|
|
|
4837
4835
|
|
|
4838
|
-
// CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=
|
|
4836
|
+
// CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=c4b1a5d6&
|
|
4839
4837
|
|
|
4840
4838
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
4841
4839
|
var regenerator_ = __webpack_require__(12);
|
|
@@ -5321,8 +5319,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
5321
5319
|
labelClassName: String,
|
|
5322
5320
|
type: String,
|
|
5323
5321
|
required: Boolean,
|
|
5324
|
-
width: String,
|
|
5325
|
-
minWidth: String,
|
|
5322
|
+
width: [Number, String],
|
|
5323
|
+
minWidth: [Number, String],
|
|
5326
5324
|
hide: Boolean,
|
|
5327
5325
|
showOverflowTooltip: Boolean,
|
|
5328
5326
|
render: [Function, String],
|
|
@@ -5380,9 +5378,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
5380
5378
|
sortable: this.sortable || this.sort,
|
|
5381
5379
|
minWidth: this.minWidth || this.table.minWidth || minWidth,
|
|
5382
5380
|
className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
|
|
5383
|
-
labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' ')
|
|
5381
|
+
labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' '),
|
|
5382
|
+
prop: this.field || this.prop,
|
|
5383
|
+
field: this.field
|
|
5384
5384
|
}, this.$attrs);
|
|
5385
|
-
return
|
|
5385
|
+
return config;
|
|
5386
5386
|
},
|
|
5387
5387
|
formOption: function formOption() {
|
|
5388
5388
|
return _extends({
|
|
@@ -5664,8 +5664,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
5664
5664
|
|
|
5665
5665
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
5666
5666
|
src_columnvue_type_script_lang_js_,
|
|
5667
|
-
|
|
5668
|
-
|
|
5667
|
+
columnvue_type_template_id_c4b1a5d6_render,
|
|
5668
|
+
columnvue_type_template_id_c4b1a5d6_staticRenderFns,
|
|
5669
5669
|
false,
|
|
5670
5670
|
null,
|
|
5671
5671
|
null,
|
|
@@ -5983,7 +5983,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5983
5983
|
|
|
5984
5984
|
var 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; };
|
|
5985
5985
|
|
|
5986
|
-
var mainvue_type_script_lang_js_components;
|
|
5986
|
+
var mainvue_type_script_lang_js_components, _watch;
|
|
5987
5987
|
|
|
5988
5988
|
//
|
|
5989
5989
|
//
|
|
@@ -6306,7 +6306,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
6306
6306
|
height: [Number, String],
|
|
6307
6307
|
maxHeight: [Number, String],
|
|
6308
6308
|
response: Function,
|
|
6309
|
-
minWidth: String,
|
|
6309
|
+
minWidth: [Number, String],
|
|
6310
6310
|
border: {
|
|
6311
6311
|
type: Boolean,
|
|
6312
6312
|
default: false
|
|
@@ -6461,7 +6461,16 @@ var mainvue_type_script_lang_js_components;
|
|
|
6461
6461
|
}
|
|
6462
6462
|
}
|
|
6463
6463
|
},
|
|
6464
|
-
watch: {
|
|
6464
|
+
watch: (_watch = {
|
|
6465
|
+
showToolbar: function showToolbar() {
|
|
6466
|
+
this.resetHeight();
|
|
6467
|
+
this.doLayout();
|
|
6468
|
+
},
|
|
6469
|
+
page: function page() {
|
|
6470
|
+
this.resetHeight();
|
|
6471
|
+
this.doLayout();
|
|
6472
|
+
},
|
|
6473
|
+
|
|
6465
6474
|
scale: {
|
|
6466
6475
|
deep: true,
|
|
6467
6476
|
handler: function handler(val) {
|
|
@@ -6504,51 +6513,45 @@ var mainvue_type_script_lang_js_components;
|
|
|
6504
6513
|
handler: function handler(val) {
|
|
6505
6514
|
this.getTableData();
|
|
6506
6515
|
}
|
|
6507
|
-
}
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
}
|
|
6521
|
-
}
|
|
6522
|
-
},
|
|
6523
|
-
'config.pageNum': function configPageNum() {
|
|
6524
|
-
if (this.data.length) {
|
|
6525
|
-
this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
|
|
6526
|
-
}
|
|
6527
|
-
},
|
|
6528
|
-
|
|
6529
|
-
height: {
|
|
6530
|
-
immediate: true,
|
|
6531
|
-
handler: function handler(val) {
|
|
6532
|
-
if (val) {
|
|
6533
|
-
this.tableHeight = val;
|
|
6534
|
-
}
|
|
6535
|
-
}
|
|
6536
|
-
},
|
|
6537
|
-
maxHeight: {
|
|
6538
|
-
immediate: true,
|
|
6539
|
-
handler: function handler(val) {
|
|
6540
|
-
if (val && this.height === undefined) {
|
|
6541
|
-
this.tableHeight = val;
|
|
6542
|
-
}
|
|
6516
|
+
}
|
|
6517
|
+
}, _watch['page'] = {
|
|
6518
|
+
immediate: true,
|
|
6519
|
+
deep: true,
|
|
6520
|
+
handler: function handler(val) {
|
|
6521
|
+
if ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object') {
|
|
6522
|
+
this.config = util["a" /* default */].extend({}, this.config, val);
|
|
6523
|
+
} else {
|
|
6524
|
+
this.config = {
|
|
6525
|
+
pageNum: 1,
|
|
6526
|
+
pageSize: 20,
|
|
6527
|
+
totalCount: 0
|
|
6528
|
+
};
|
|
6543
6529
|
}
|
|
6544
|
-
}
|
|
6545
|
-
|
|
6530
|
+
}
|
|
6531
|
+
}, _watch['config.pageNum'] = function configPageNum() {
|
|
6532
|
+
if (this.data.length) {
|
|
6533
|
+
this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
|
|
6534
|
+
}
|
|
6535
|
+
}, _watch.height = {
|
|
6536
|
+
immediate: true,
|
|
6537
|
+
handler: function handler(val) {
|
|
6546
6538
|
if (val) {
|
|
6547
|
-
this.
|
|
6548
|
-
this.doLayout();
|
|
6539
|
+
this.tableHeight = val;
|
|
6549
6540
|
}
|
|
6550
6541
|
}
|
|
6551
|
-
},
|
|
6542
|
+
}, _watch.maxHeight = {
|
|
6543
|
+
immediate: true,
|
|
6544
|
+
handler: function handler(val) {
|
|
6545
|
+
if (val && this.height === undefined) {
|
|
6546
|
+
this.tableHeight = val;
|
|
6547
|
+
}
|
|
6548
|
+
}
|
|
6549
|
+
}, _watch.display = function display(val) {
|
|
6550
|
+
if (val) {
|
|
6551
|
+
this.resetHeight();
|
|
6552
|
+
this.doLayout();
|
|
6553
|
+
}
|
|
6554
|
+
}, _watch),
|
|
6552
6555
|
created: function created() {
|
|
6553
6556
|
if (Array.isArray(this.thead) && this.thead.length) {
|
|
6554
6557
|
this.getOptions(this.thead);
|
|
@@ -6763,7 +6766,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
6763
6766
|
}).then(function (res) {
|
|
6764
6767
|
_this6.tableLoading = false;
|
|
6765
6768
|
if (res.rCode === 0 || res.status === 'success') {
|
|
6766
|
-
_this6.$refs.oaTable.resetScroll(0, 0);
|
|
6769
|
+
_this6.$refs.oaTable && _this6.$refs.oaTable.resetScroll && _this6.$refs.oaTable.resetScroll(0, 0);
|
|
6767
6770
|
var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
|
|
6768
6771
|
_this6.list = results.data || results.records || results.list || [];
|
|
6769
6772
|
_this6.config.totalCount = results.count || results.total || results.totalCount;
|
|
@@ -7260,7 +7263,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
7260
7263
|
|
|
7261
7264
|
var main_component = Object(componentNormalizer["a" /* default */])(
|
|
7262
7265
|
src_mainvue_type_script_lang_js_,
|
|
7263
|
-
|
|
7266
|
+
mainvue_type_template_id_55ef7929_render,
|
|
7264
7267
|
staticRenderFns,
|
|
7265
7268
|
false,
|
|
7266
7269
|
null,
|
package/lib/date-picker.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|
package/lib/dialog.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
package/lib/eoss-ui.common.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|
|
@@ -5529,8 +5533,8 @@ clients_src_main.install = function (Vue) {
|
|
|
5529
5533
|
};
|
|
5530
5534
|
|
|
5531
5535
|
/* harmony default export */ var clients = (clients_src_main);
|
|
5532
|
-
// 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=
|
|
5533
|
-
var
|
|
5536
|
+
// 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=55ef7929&
|
|
5537
|
+
var mainvue_type_template_id_55ef7929_render = function () {
|
|
5534
5538
|
var _vm = this
|
|
5535
5539
|
var _h = _vm.$createElement
|
|
5536
5540
|
var _c = _vm._self._c || _h
|
|
@@ -5776,11 +5780,11 @@ var mainvue_type_template_id_2d512d7f_render = function () {
|
|
|
5776
5780
|
1
|
|
5777
5781
|
)
|
|
5778
5782
|
}
|
|
5779
|
-
var
|
|
5780
|
-
|
|
5783
|
+
var mainvue_type_template_id_55ef7929_staticRenderFns = []
|
|
5784
|
+
mainvue_type_template_id_55ef7929_render._withStripped = true
|
|
5781
5785
|
|
|
5782
5786
|
|
|
5783
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=
|
|
5787
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=55ef7929&
|
|
5784
5788
|
|
|
5785
5789
|
// 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=29bcbc72&
|
|
5786
5790
|
var childrenvue_type_template_id_29bcbc72_render = function () {
|
|
@@ -5825,8 +5829,8 @@ childrenvue_type_template_id_29bcbc72_render._withStripped = true
|
|
|
5825
5829
|
|
|
5826
5830
|
// CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
|
|
5827
5831
|
|
|
5828
|
-
// 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/column.vue?vue&type=template&id=
|
|
5829
|
-
var
|
|
5832
|
+
// 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/column.vue?vue&type=template&id=c4b1a5d6&
|
|
5833
|
+
var columnvue_type_template_id_c4b1a5d6_render = function () {
|
|
5830
5834
|
var _vm = this
|
|
5831
5835
|
var _h = _vm.$createElement
|
|
5832
5836
|
var _c = _vm._self._c || _h
|
|
@@ -6439,10 +6443,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
6439
6443
|
},
|
|
6440
6444
|
"es-button-group",
|
|
6441
6445
|
_vm.exclAttribute({
|
|
6442
|
-
data:
|
|
6443
|
-
prop: this.prop,
|
|
6444
|
-
field: this.field,
|
|
6445
|
-
}),
|
|
6446
|
+
data: _vm.config,
|
|
6446
6447
|
attrs: [
|
|
6447
6448
|
"contents",
|
|
6448
6449
|
"events",
|
|
@@ -6458,10 +6459,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
6458
6459
|
: _vm.render
|
|
6459
6460
|
? _c("expand-dom", {
|
|
6460
6461
|
attrs: {
|
|
6461
|
-
column:
|
|
6462
|
-
prop: this.prop,
|
|
6463
|
-
field: this.field,
|
|
6464
|
-
}),
|
|
6462
|
+
column: _vm.config,
|
|
6465
6463
|
row: scope.row,
|
|
6466
6464
|
render: _vm.render,
|
|
6467
6465
|
index: _vm.indexs,
|
|
@@ -6502,11 +6500,11 @@ var columnvue_type_template_id_7363f6a6_render = function () {
|
|
|
6502
6500
|
2
|
|
6503
6501
|
)
|
|
6504
6502
|
}
|
|
6505
|
-
var
|
|
6506
|
-
|
|
6503
|
+
var columnvue_type_template_id_c4b1a5d6_staticRenderFns = []
|
|
6504
|
+
columnvue_type_template_id_c4b1a5d6_render._withStripped = true
|
|
6507
6505
|
|
|
6508
6506
|
|
|
6509
|
-
// CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=
|
|
6507
|
+
// CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=c4b1a5d6&
|
|
6510
6508
|
|
|
6511
6509
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
6512
6510
|
var regenerator_ = __webpack_require__(2);
|
|
@@ -6989,8 +6987,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
6989
6987
|
labelClassName: String,
|
|
6990
6988
|
type: String,
|
|
6991
6989
|
required: Boolean,
|
|
6992
|
-
width: String,
|
|
6993
|
-
minWidth: String,
|
|
6990
|
+
width: [Number, String],
|
|
6991
|
+
minWidth: [Number, String],
|
|
6994
6992
|
hide: Boolean,
|
|
6995
6993
|
showOverflowTooltip: Boolean,
|
|
6996
6994
|
render: [Function, String],
|
|
@@ -7048,9 +7046,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
7048
7046
|
sortable: this.sortable || this.sort,
|
|
7049
7047
|
minWidth: this.minWidth || this.table.minWidth || minWidth,
|
|
7050
7048
|
className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
|
|
7051
|
-
labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' ')
|
|
7049
|
+
labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' '),
|
|
7050
|
+
prop: this.field || this.prop,
|
|
7051
|
+
field: this.field
|
|
7052
7052
|
}, this.$attrs);
|
|
7053
|
-
return
|
|
7053
|
+
return config;
|
|
7054
7054
|
},
|
|
7055
7055
|
formOption: function formOption() {
|
|
7056
7056
|
return columnvue_type_script_lang_js_extends({
|
|
@@ -7329,8 +7329,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
7329
7329
|
|
|
7330
7330
|
var column_component = normalizeComponent(
|
|
7331
7331
|
src_columnvue_type_script_lang_js_,
|
|
7332
|
-
|
|
7333
|
-
|
|
7332
|
+
columnvue_type_template_id_c4b1a5d6_render,
|
|
7333
|
+
columnvue_type_template_id_c4b1a5d6_staticRenderFns,
|
|
7334
7334
|
false,
|
|
7335
7335
|
null,
|
|
7336
7336
|
null,
|
|
@@ -7847,7 +7847,7 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
|
|
|
7847
7847
|
|
|
7848
7848
|
var data_table_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; };
|
|
7849
7849
|
|
|
7850
|
-
var mainvue_type_script_lang_js_components;
|
|
7850
|
+
var mainvue_type_script_lang_js_components, _watch;
|
|
7851
7851
|
|
|
7852
7852
|
//
|
|
7853
7853
|
//
|
|
@@ -8170,7 +8170,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
8170
8170
|
height: [Number, String],
|
|
8171
8171
|
maxHeight: [Number, String],
|
|
8172
8172
|
response: Function,
|
|
8173
|
-
minWidth: String,
|
|
8173
|
+
minWidth: [Number, String],
|
|
8174
8174
|
border: {
|
|
8175
8175
|
type: Boolean,
|
|
8176
8176
|
default: false
|
|
@@ -8325,7 +8325,16 @@ var mainvue_type_script_lang_js_components;
|
|
|
8325
8325
|
}
|
|
8326
8326
|
}
|
|
8327
8327
|
},
|
|
8328
|
-
watch: {
|
|
8328
|
+
watch: (_watch = {
|
|
8329
|
+
showToolbar: function showToolbar() {
|
|
8330
|
+
this.resetHeight();
|
|
8331
|
+
this.doLayout();
|
|
8332
|
+
},
|
|
8333
|
+
page: function page() {
|
|
8334
|
+
this.resetHeight();
|
|
8335
|
+
this.doLayout();
|
|
8336
|
+
},
|
|
8337
|
+
|
|
8329
8338
|
scale: {
|
|
8330
8339
|
deep: true,
|
|
8331
8340
|
handler: function handler(val) {
|
|
@@ -8368,51 +8377,45 @@ var mainvue_type_script_lang_js_components;
|
|
|
8368
8377
|
handler: function handler(val) {
|
|
8369
8378
|
this.getTableData();
|
|
8370
8379
|
}
|
|
8371
|
-
}
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
}
|
|
8385
|
-
}
|
|
8386
|
-
},
|
|
8387
|
-
'config.pageNum': function configPageNum() {
|
|
8388
|
-
if (this.data.length) {
|
|
8389
|
-
this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
|
|
8390
|
-
}
|
|
8391
|
-
},
|
|
8392
|
-
|
|
8393
|
-
height: {
|
|
8394
|
-
immediate: true,
|
|
8395
|
-
handler: function handler(val) {
|
|
8396
|
-
if (val) {
|
|
8397
|
-
this.tableHeight = val;
|
|
8398
|
-
}
|
|
8399
|
-
}
|
|
8400
|
-
},
|
|
8401
|
-
maxHeight: {
|
|
8402
|
-
immediate: true,
|
|
8403
|
-
handler: function handler(val) {
|
|
8404
|
-
if (val && this.height === undefined) {
|
|
8405
|
-
this.tableHeight = val;
|
|
8406
|
-
}
|
|
8380
|
+
}
|
|
8381
|
+
}, _watch['page'] = {
|
|
8382
|
+
immediate: true,
|
|
8383
|
+
deep: true,
|
|
8384
|
+
handler: function handler(val) {
|
|
8385
|
+
if ((typeof val === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(val)) === 'object') {
|
|
8386
|
+
this.config = utils_util["a" /* default */].extend({}, this.config, val);
|
|
8387
|
+
} else {
|
|
8388
|
+
this.config = {
|
|
8389
|
+
pageNum: 1,
|
|
8390
|
+
pageSize: 20,
|
|
8391
|
+
totalCount: 0
|
|
8392
|
+
};
|
|
8407
8393
|
}
|
|
8408
|
-
}
|
|
8409
|
-
|
|
8394
|
+
}
|
|
8395
|
+
}, _watch['config.pageNum'] = function configPageNum() {
|
|
8396
|
+
if (this.data.length) {
|
|
8397
|
+
this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
|
|
8398
|
+
}
|
|
8399
|
+
}, _watch.height = {
|
|
8400
|
+
immediate: true,
|
|
8401
|
+
handler: function handler(val) {
|
|
8410
8402
|
if (val) {
|
|
8411
|
-
this.
|
|
8412
|
-
this.doLayout();
|
|
8403
|
+
this.tableHeight = val;
|
|
8413
8404
|
}
|
|
8414
8405
|
}
|
|
8415
|
-
},
|
|
8406
|
+
}, _watch.maxHeight = {
|
|
8407
|
+
immediate: true,
|
|
8408
|
+
handler: function handler(val) {
|
|
8409
|
+
if (val && this.height === undefined) {
|
|
8410
|
+
this.tableHeight = val;
|
|
8411
|
+
}
|
|
8412
|
+
}
|
|
8413
|
+
}, _watch.display = function display(val) {
|
|
8414
|
+
if (val) {
|
|
8415
|
+
this.resetHeight();
|
|
8416
|
+
this.doLayout();
|
|
8417
|
+
}
|
|
8418
|
+
}, _watch),
|
|
8416
8419
|
created: function created() {
|
|
8417
8420
|
if (Array.isArray(this.thead) && this.thead.length) {
|
|
8418
8421
|
this.getOptions(this.thead);
|
|
@@ -8627,7 +8630,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
8627
8630
|
}).then(function (res) {
|
|
8628
8631
|
_this6.tableLoading = false;
|
|
8629
8632
|
if (res.rCode === 0 || res.status === 'success') {
|
|
8630
|
-
_this6.$refs.oaTable.resetScroll(0, 0);
|
|
8633
|
+
_this6.$refs.oaTable && _this6.$refs.oaTable.resetScroll && _this6.$refs.oaTable.resetScroll(0, 0);
|
|
8631
8634
|
var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
|
|
8632
8635
|
_this6.list = results.data || results.records || results.list || [];
|
|
8633
8636
|
_this6.config.totalCount = results.count || results.total || results.totalCount;
|
|
@@ -9124,8 +9127,8 @@ var mainvue_type_script_lang_js_components;
|
|
|
9124
9127
|
|
|
9125
9128
|
var data_table_src_main_component = normalizeComponent(
|
|
9126
9129
|
packages_data_table_src_mainvue_type_script_lang_js_,
|
|
9127
|
-
|
|
9128
|
-
|
|
9130
|
+
mainvue_type_template_id_55ef7929_render,
|
|
9131
|
+
mainvue_type_template_id_55ef7929_staticRenderFns,
|
|
9129
9132
|
false,
|
|
9130
9133
|
null,
|
|
9131
9134
|
null,
|
|
@@ -70589,7 +70592,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
70589
70592
|
}
|
|
70590
70593
|
|
|
70591
70594
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
70592
|
-
version: '0.5.
|
|
70595
|
+
version: '0.5.16',
|
|
70593
70596
|
install: install,
|
|
70594
70597
|
Button: packages_button,
|
|
70595
70598
|
ButtonGroup: button_group,
|
package/lib/flow-group.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|
package/lib/flow-list.js
CHANGED
|
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1966
1966
|
// const logined = getStorage('logined');
|
|
1967
1967
|
// eslint-disable-next-line eqeqeq
|
|
1968
1968
|
if (token || cookie == true || cookie == 1) {
|
|
1969
|
-
|
|
1969
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1970
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1971
|
+
} else {
|
|
1972
|
+
next && next();
|
|
1973
|
+
}
|
|
1970
1974
|
} else {
|
|
1971
1975
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1972
1976
|
ajax({
|
package/lib/flow.js
CHANGED
|
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1965
1965
|
// const logined = getStorage('logined');
|
|
1966
1966
|
// eslint-disable-next-line eqeqeq
|
|
1967
1967
|
if (token || cookie == true || cookie == 1) {
|
|
1968
|
-
|
|
1968
|
+
if (to.path === '/main' || to.path === '/login') {
|
|
1969
|
+
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
1970
|
+
} else {
|
|
1971
|
+
next && next();
|
|
1972
|
+
}
|
|
1969
1973
|
} else {
|
|
1970
1974
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1971
1975
|
ajax({
|