element-ui-root 2.9.8 → 3.0.1
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/dist/index.common.js +949 -816
- package/dist/index.css +1 -1
- package/dist/index.umd.js +949 -816
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -4291,17 +4291,6 @@ if (!isCallable(store.inspectSource)) {
|
|
|
4291
4291
|
module.exports = store.inspectSource;
|
|
4292
4292
|
|
|
4293
4293
|
|
|
4294
|
-
/***/ }),
|
|
4295
|
-
|
|
4296
|
-
/***/ "0634":
|
|
4297
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4298
|
-
|
|
4299
|
-
"use strict";
|
|
4300
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ed84b344_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b33c");
|
|
4301
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ed84b344_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ed84b344_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
4302
|
-
/* unused harmony reexport * */
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
4294
|
/***/ }),
|
|
4306
4295
|
|
|
4307
4296
|
/***/ "066e":
|
|
@@ -5221,6 +5210,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5221
5210
|
|
|
5222
5211
|
"use strict";
|
|
5223
5212
|
__webpack_require__.r(__webpack_exports__);
|
|
5213
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5a1c");
|
|
5214
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
5215
|
+
|
|
5224
5216
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
5225
5217
|
name: 'AdragBox',
|
|
5226
5218
|
props: {
|
|
@@ -5228,6 +5220,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5228
5220
|
type: String,
|
|
5229
5221
|
default: () => `id-a-drag-box-${Math.random()}`
|
|
5230
5222
|
},
|
|
5223
|
+
prompt: {
|
|
5224
|
+
type: String,
|
|
5225
|
+
default: () => '按住进行拖放'
|
|
5226
|
+
},
|
|
5231
5227
|
dragType: {
|
|
5232
5228
|
type: String,
|
|
5233
5229
|
default: () => 'text/plain'
|
|
@@ -5235,19 +5231,41 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5235
5231
|
draggable: {
|
|
5236
5232
|
type: Boolean,
|
|
5237
5233
|
default: () => true
|
|
5234
|
+
},
|
|
5235
|
+
insert: {
|
|
5236
|
+
type: Boolean,
|
|
5237
|
+
default: () => false
|
|
5238
|
+
},
|
|
5239
|
+
color: {
|
|
5240
|
+
type: String,
|
|
5241
|
+
default: () => ''
|
|
5242
|
+
},
|
|
5243
|
+
padding: {
|
|
5244
|
+
type: String,
|
|
5245
|
+
default: () => '0'
|
|
5246
|
+
},
|
|
5247
|
+
height: {
|
|
5248
|
+
type: String,
|
|
5249
|
+
default: () => '100%'
|
|
5250
|
+
},
|
|
5251
|
+
background: {
|
|
5252
|
+
type: String,
|
|
5253
|
+
default: () => ''
|
|
5254
|
+
},
|
|
5255
|
+
styles: {
|
|
5256
|
+
type: Object,
|
|
5257
|
+
default: () => ({})
|
|
5258
|
+
},
|
|
5259
|
+
loading: {
|
|
5260
|
+
type: Boolean,
|
|
5261
|
+
default: () => false
|
|
5238
5262
|
}
|
|
5239
5263
|
},
|
|
5240
|
-
created() {
|
|
5241
|
-
this.create();
|
|
5242
|
-
},
|
|
5243
5264
|
methods: {
|
|
5244
|
-
create() {
|
|
5245
|
-
// TODO
|
|
5246
|
-
},
|
|
5247
5265
|
dragstart(a) {
|
|
5248
5266
|
if (this.draggable) {
|
|
5249
5267
|
a.dataTransfer.setData(this.dragType, this.id);
|
|
5250
|
-
this.$store.commit('
|
|
5268
|
+
this.$store.commit('setDragId', this.id);
|
|
5251
5269
|
this.$emit('dragstart', a);
|
|
5252
5270
|
}
|
|
5253
5271
|
},
|
|
@@ -5273,41 +5291,62 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5273
5291
|
},
|
|
5274
5292
|
drop(a) {
|
|
5275
5293
|
a.preventDefault();
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5294
|
+
if (this.draggable) {
|
|
5295
|
+
const id = a.dataTransfer.getData(this.dragType);
|
|
5296
|
+
const draging = document.getElementById(id);
|
|
5297
|
+
const droping = document.getElementById(this.id);
|
|
5298
|
+
if (draging !== droping) {
|
|
5299
|
+
let dragPostion = draging.getBoundingClientRect();
|
|
5300
|
+
let dropPostion = droping.getBoundingClientRect();
|
|
5301
|
+
if (this.insert) {
|
|
5302
|
+
if (this.getIndex(draging) > this.getIndex(droping)) {
|
|
5303
|
+
this.$el.parentNode.insertBefore(draging, droping);
|
|
5304
|
+
} else {
|
|
5305
|
+
this.$el.parentNode.insertBefore(draging, droping.nextSibling);
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5308
|
+
this.animate(draging, dragPostion);
|
|
5309
|
+
this.animate(droping, dropPostion);
|
|
5310
|
+
}
|
|
5311
|
+
this.$store.commit('setDropId', this.id);
|
|
5312
|
+
this.$emit('drop', a);
|
|
5313
|
+
}
|
|
5289
5314
|
},
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
return;
|
|
5315
|
+
getIndex(element = null) {
|
|
5316
|
+
let index = 0;
|
|
5317
|
+
if (!element) return -1;
|
|
5318
|
+
while (element = element.previousSibling) index++;
|
|
5319
|
+
return index;
|
|
5293
5320
|
},
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5321
|
+
animate(element, postion, delay = 300) {
|
|
5322
|
+
let current = element.getBoundingClientRect();
|
|
5323
|
+
let action = (() => {
|
|
5324
|
+
element.style.transition = 'none';
|
|
5325
|
+
element.style.transform = `translate3d(${postion.left - current.left}px, ${postion.top - current.top}px, 0)`;
|
|
5326
|
+
element.offsetWidth;
|
|
5327
|
+
element.style.transition = `all ${delay}ms`;
|
|
5328
|
+
element.style.transform = 'translate3d(0, 0, 0)';
|
|
5329
|
+
})();
|
|
5330
|
+
setTimeout(() => action = null, delay);
|
|
5297
5331
|
}
|
|
5298
5332
|
},
|
|
5299
5333
|
render() {
|
|
5300
5334
|
const h = arguments[0];
|
|
5335
|
+
const {
|
|
5336
|
+
...props
|
|
5337
|
+
} = this.$attrs;
|
|
5301
5338
|
return h("div", {
|
|
5302
5339
|
"attrs": {
|
|
5303
5340
|
"id": this.id,
|
|
5341
|
+
"title": this.prompt,
|
|
5304
5342
|
"draggable": this.draggable
|
|
5305
5343
|
},
|
|
5306
5344
|
"class": "a-drag-box",
|
|
5345
|
+
"directives": [{
|
|
5346
|
+
name: "loading",
|
|
5347
|
+
value: this.loading
|
|
5348
|
+
}],
|
|
5307
5349
|
"on": {
|
|
5308
|
-
"mousedown": a => this.mousedown(a, this.id),
|
|
5309
|
-
"mouseover": a => this.mouseover(a, this.id),
|
|
5310
|
-
"mouseup": a => this.mouseup(a, this.id),
|
|
5311
5350
|
"dragstart": this.dragstart,
|
|
5312
5351
|
"dragenter": this.dragenter,
|
|
5313
5352
|
"dragleave": this.dragleave,
|
|
@@ -5315,8 +5354,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5315
5354
|
"dragend": this.dragend,
|
|
5316
5355
|
"drag": this.drag,
|
|
5317
5356
|
"drop": this.drop
|
|
5357
|
+
},
|
|
5358
|
+
"style": {
|
|
5359
|
+
color: this.color,
|
|
5360
|
+
minHeight: this.height,
|
|
5361
|
+
background: this.background,
|
|
5362
|
+
...this.styles
|
|
5363
|
+
},
|
|
5364
|
+
"props": {
|
|
5365
|
+
...props
|
|
5318
5366
|
}
|
|
5319
|
-
}, [
|
|
5367
|
+
}, [h("div", {
|
|
5368
|
+
"class": "a-drag-box-body",
|
|
5369
|
+
"style": {
|
|
5370
|
+
padding: this.padding
|
|
5371
|
+
}
|
|
5372
|
+
}, [h("div", {
|
|
5373
|
+
"class": "custom-body"
|
|
5374
|
+
}, [this.$slots.default])])]);
|
|
5320
5375
|
}
|
|
5321
5376
|
});
|
|
5322
5377
|
|
|
@@ -12761,7 +12816,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12761
12816
|
},
|
|
12762
12817
|
inline: {
|
|
12763
12818
|
type: Boolean,
|
|
12764
|
-
default: () =>
|
|
12819
|
+
default: () => true
|
|
12765
12820
|
},
|
|
12766
12821
|
cols: {
|
|
12767
12822
|
type: String,
|
|
@@ -12810,28 +12865,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12810
12865
|
},
|
|
12811
12866
|
data() {
|
|
12812
12867
|
return {
|
|
12813
|
-
form: {}
|
|
12814
|
-
height: 0,
|
|
12815
|
-
opened: false
|
|
12868
|
+
form: {}
|
|
12816
12869
|
};
|
|
12817
12870
|
},
|
|
12818
12871
|
created() {
|
|
12819
12872
|
this.create();
|
|
12820
12873
|
},
|
|
12821
|
-
mounted() {
|
|
12822
|
-
this.update();
|
|
12823
|
-
},
|
|
12874
|
+
mounted() {},
|
|
12824
12875
|
destroyed() {
|
|
12825
12876
|
this.create = null;
|
|
12826
|
-
this.update = null;
|
|
12827
12877
|
this.submit = null;
|
|
12828
12878
|
this.cancel = null;
|
|
12829
12879
|
this.filter = null;
|
|
12830
12880
|
this.result = null;
|
|
12831
|
-
this.switch = null;
|
|
12832
12881
|
this.prompt = null;
|
|
12833
12882
|
this.format = null;
|
|
12834
|
-
this.output = null;
|
|
12835
12883
|
},
|
|
12836
12884
|
watch: {
|
|
12837
12885
|
values() {
|
|
@@ -12848,10 +12896,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12848
12896
|
this.form = data;
|
|
12849
12897
|
}
|
|
12850
12898
|
},
|
|
12851
|
-
update() {
|
|
12852
|
-
let rows = Math.ceil(Object.keys(this.config).length / this.cols);
|
|
12853
|
-
this.height = this.$el.clientHeight * (rows - 1);
|
|
12854
|
-
},
|
|
12855
12899
|
submit(e) {
|
|
12856
12900
|
// 提交表单
|
|
12857
12901
|
e && e.preventDefault();
|
|
@@ -12861,22 +12905,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12861
12905
|
if (Object.keys(this.config).length > 0) {
|
|
12862
12906
|
// 格式化属性为模糊查询属性
|
|
12863
12907
|
for (let a in this.config) {
|
|
12864
|
-
if (this.config[a] != '' && this.config[a].like && this.form[a]
|
|
12865
|
-
if (this.config[a].like == 'left') data[a] = '%' + this.form[a]
|
|
12866
|
-
if (this.config[a].like == 'right') data[a] = this.form[a]
|
|
12908
|
+
if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
|
|
12909
|
+
if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
|
|
12910
|
+
if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
|
|
12867
12911
|
} else {
|
|
12868
12912
|
if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
|
|
12869
|
-
data[`${a}LE`] = this.form[`${a}LE`]
|
|
12870
|
-
data[`${a}GE`] = this.form[`${a}GE`]
|
|
12871
|
-
} else if (this.form[a].
|
|
12913
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
12914
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
12915
|
+
} else if (this.form[a].includes(' 00:00:00')) data[a] = '%' + this.form[a].split(' 00:00:00')[0] + '%';else data[a] = this.form[a];
|
|
12872
12916
|
}
|
|
12873
12917
|
}
|
|
12874
12918
|
}
|
|
12875
12919
|
if (pass) {
|
|
12876
12920
|
let result = this.filter(data);
|
|
12921
|
+
const {
|
|
12922
|
+
formParams,
|
|
12923
|
+
pageParams
|
|
12924
|
+
} = this.$store.state;
|
|
12925
|
+
this.$store.commit('setFormParams', result); // 添加查询参数
|
|
12926
|
+
this.$store.commit('setPageParams', {
|
|
12927
|
+
...pageParams,
|
|
12928
|
+
page: 1
|
|
12929
|
+
}); // 重置分页参数
|
|
12877
12930
|
this.$nextTick(() => {
|
|
12878
|
-
|
|
12931
|
+
let change = false;
|
|
12932
|
+
Object.keys(result).forEach(a => result[a] != formParams[a] && (change = true));
|
|
12933
|
+
if (change) this.$emit('submit', {
|
|
12879
12934
|
...result,
|
|
12935
|
+
...pageParams,
|
|
12880
12936
|
page: 1
|
|
12881
12937
|
}); // 派发事件并重置当前分页
|
|
12882
12938
|
return result;
|
|
@@ -12889,6 +12945,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12889
12945
|
let pass = !this.check; // 判断是否是空表单
|
|
12890
12946
|
for (let a in this.form) if (this.form[a] != '') pass = true;
|
|
12891
12947
|
if (pass) {
|
|
12948
|
+
const {
|
|
12949
|
+
pageParams
|
|
12950
|
+
} = this.$store.state;
|
|
12951
|
+
this.$store.commit('setPageParams', {
|
|
12952
|
+
...pageParams,
|
|
12953
|
+
page: 1,
|
|
12954
|
+
size: 10
|
|
12955
|
+
}); // 重置分页参数
|
|
12956
|
+
this.$store.commit('setFormParams', {}); // 重置查询参数
|
|
12892
12957
|
this.$nextTick(() => {
|
|
12893
12958
|
for (let a in this.form) this.form[a] = '';
|
|
12894
12959
|
this.$nextTick(() => this.$emit('cancel', this.form));
|
|
@@ -12896,18 +12961,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12896
12961
|
}
|
|
12897
12962
|
},
|
|
12898
12963
|
filter(form = {}) {
|
|
12964
|
+
// 过滤空值属性
|
|
12899
12965
|
const data = {};
|
|
12900
12966
|
for (let a in form) {
|
|
12901
|
-
if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined)
|
|
12967
|
+
if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
|
|
12968
|
+
data[a] = form[a];
|
|
12969
|
+
}
|
|
12902
12970
|
}
|
|
12903
12971
|
return data;
|
|
12904
12972
|
},
|
|
12905
12973
|
result() {
|
|
12974
|
+
// 返回验证后的表单数据
|
|
12906
12975
|
return this.filter(this.form);
|
|
12907
12976
|
},
|
|
12908
|
-
switch() {
|
|
12909
|
-
this.opened = !this.opened;
|
|
12910
|
-
},
|
|
12911
12977
|
prompt(a = {}, index = 0, placeholder = '') {
|
|
12912
12978
|
if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
|
|
12913
12979
|
return placeholder;
|
|
@@ -12936,31 +13002,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12936
13002
|
}
|
|
12937
13003
|
});
|
|
12938
13004
|
}
|
|
12939
|
-
},
|
|
12940
|
-
output(a, b) {
|
|
12941
|
-
const h = this.$createElement;
|
|
12942
|
-
let style = this.cols != '' ? {
|
|
12943
|
-
width: `${100 / this.cols}%`
|
|
12944
|
-
} : {};
|
|
12945
|
-
return h("el-col", {
|
|
12946
|
-
"key": b,
|
|
12947
|
-
"style": style
|
|
12948
|
-
}, [h("el-form-item", {
|
|
12949
|
-
"attrs": {
|
|
12950
|
-
"prop": `${a}`,
|
|
12951
|
-
"label": this.label ? this.config[a]['text'] : ''
|
|
12952
|
-
}
|
|
12953
|
-
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
12954
|
-
"class": "range-cols"
|
|
12955
|
-
}, [h("el-col", {
|
|
12956
|
-
"attrs": {
|
|
12957
|
-
"span": 12
|
|
12958
|
-
}
|
|
12959
|
-
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
12960
|
-
"attrs": {
|
|
12961
|
-
"span": 12
|
|
12962
|
-
}
|
|
12963
|
-
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
|
|
12964
13005
|
}
|
|
12965
13006
|
},
|
|
12966
13007
|
render() {
|
|
@@ -12972,6 +13013,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12972
13013
|
submit = null,
|
|
12973
13014
|
cancel = null
|
|
12974
13015
|
} = this.$listeners;
|
|
13016
|
+
let style = this.cols != '' ? {
|
|
13017
|
+
width: `${100 / this.cols}%`
|
|
13018
|
+
} : {};
|
|
13019
|
+
let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
|
|
12975
13020
|
return h("div", {
|
|
12976
13021
|
"class": "c-f-search",
|
|
12977
13022
|
"style": {
|
|
@@ -12980,8 +13025,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12980
13025
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
12981
13026
|
"ref": "form",
|
|
12982
13027
|
"attrs": {
|
|
12983
|
-
"size": this.size
|
|
12984
|
-
"inline": this.inline
|
|
13028
|
+
"size": this.size
|
|
12985
13029
|
}
|
|
12986
13030
|
}, {
|
|
12987
13031
|
"props": {
|
|
@@ -12993,42 +13037,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12993
13037
|
"labelWidth": this.labelWidth,
|
|
12994
13038
|
"labelPosition": this.labelPosition
|
|
12995
13039
|
}
|
|
12996
|
-
}]), [h("
|
|
12997
|
-
"class": "column"
|
|
12998
|
-
}, [h("el-row", {
|
|
13040
|
+
}]), [h("el-row", {
|
|
12999
13041
|
"attrs": {
|
|
13000
13042
|
"gutter": Number(this.gutter)
|
|
13001
|
-
}
|
|
13002
|
-
|
|
13003
|
-
|
|
13043
|
+
}
|
|
13044
|
+
}, [Object.keys(this.config).map((a, b) => h("el-col", {
|
|
13045
|
+
"key": b,
|
|
13046
|
+
"class": "column",
|
|
13047
|
+
"style": style
|
|
13048
|
+
}, [h("el-form-item", {
|
|
13004
13049
|
"attrs": {
|
|
13005
|
-
"
|
|
13006
|
-
|
|
13007
|
-
"class": "fold-row",
|
|
13008
|
-
"style": {
|
|
13009
|
-
height: this.opened ? `${this.height}px` : '0'
|
|
13050
|
+
"prop": `${a}`,
|
|
13051
|
+
"label": label(a)
|
|
13010
13052
|
}
|
|
13011
|
-
}, [
|
|
13012
|
-
"class": "
|
|
13013
|
-
|
|
13014
|
-
|
|
13053
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
13054
|
+
"class": "range-cols"
|
|
13055
|
+
}, [h("el-col", {
|
|
13056
|
+
"attrs": {
|
|
13057
|
+
"span": 12
|
|
13015
13058
|
}
|
|
13016
|
-
}, [h("el-
|
|
13059
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
13017
13060
|
"attrs": {
|
|
13018
|
-
"
|
|
13061
|
+
"span": 12
|
|
13019
13062
|
}
|
|
13020
|
-
}, [
|
|
13063
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])])), this.$slots.default, (submit || cancel) && h("el-col", {
|
|
13064
|
+
"key": "action",
|
|
13065
|
+
"class": "action",
|
|
13066
|
+
"style": style
|
|
13067
|
+
}, [h("el-form-item", {
|
|
13021
13068
|
"attrs": {
|
|
13022
|
-
"
|
|
13023
|
-
"type": "text"
|
|
13024
|
-
},
|
|
13025
|
-
"class": "collapse-button",
|
|
13026
|
-
"on": {
|
|
13027
|
-
"click": this.switch
|
|
13069
|
+
"label": this.label ? 'action' : ''
|
|
13028
13070
|
}
|
|
13029
|
-
}, [h("
|
|
13030
|
-
"class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
|
|
13031
|
-
}), this.opened ? '收起' : '展开']), submit && h("el-button", {
|
|
13071
|
+
}, [submit && h("el-button", {
|
|
13032
13072
|
"attrs": {
|
|
13033
13073
|
"disabled": this.loading,
|
|
13034
13074
|
"type": "primary"
|
|
@@ -13044,7 +13084,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13044
13084
|
"on": {
|
|
13045
13085
|
"click": this.cancel
|
|
13046
13086
|
}
|
|
13047
|
-
}, [this.cancelText])])])])]);
|
|
13087
|
+
}, [this.cancelText])])])])])]);
|
|
13048
13088
|
}
|
|
13049
13089
|
});
|
|
13050
13090
|
|
|
@@ -13185,6 +13225,7 @@ var map = {
|
|
|
13185
13225
|
"./AdragBox": "0a59",
|
|
13186
13226
|
"./AdragBox/": "0a59",
|
|
13187
13227
|
"./AdragBox/index": "0a59",
|
|
13228
|
+
"./AdragBox/index.css": "5a1c",
|
|
13188
13229
|
"./AdragBox/index.js": "0a59",
|
|
13189
13230
|
"./AdropBox": "b7dd",
|
|
13190
13231
|
"./AdropBox/": "b7dd",
|
|
@@ -13844,14 +13885,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13844
13885
|
if (Object.keys(this.config).length > 0) {
|
|
13845
13886
|
// 格式化属性为模糊查询属性
|
|
13846
13887
|
for (let a in this.config) {
|
|
13847
|
-
if (this.config[a] != '' && this.config[a].like && this.form[a]
|
|
13848
|
-
if (this.config[a].like == 'left') data[a] = '%' + this.form[a]
|
|
13849
|
-
if (this.config[a].like == 'right') data[a] = this.form[a]
|
|
13888
|
+
if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
|
|
13889
|
+
if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
|
|
13890
|
+
if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
|
|
13850
13891
|
} else {
|
|
13851
13892
|
if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
|
|
13852
|
-
data[`${a}LE`] = this.form[`${a}LE`]
|
|
13853
|
-
data[`${a}GE`] = this.form[`${a}GE`]
|
|
13854
|
-
} else if (this.form[a].
|
|
13893
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
13894
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
13895
|
+
} else if (this.form[a].includes(' 00:00:00')) data[a] = '%' + this.form[a].split(' 00:00:00')[0] + '%';else data[a] = this.form[a];
|
|
13855
13896
|
}
|
|
13856
13897
|
}
|
|
13857
13898
|
}
|
|
@@ -13861,8 +13902,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13861
13902
|
formParams,
|
|
13862
13903
|
pageParams
|
|
13863
13904
|
} = this.$store.state;
|
|
13864
|
-
this.$store.commit('
|
|
13865
|
-
this.$store.commit('
|
|
13905
|
+
this.$store.commit('setFormParams', result); // 添加查询参数
|
|
13906
|
+
this.$store.commit('setPageParams', {
|
|
13866
13907
|
...pageParams,
|
|
13867
13908
|
page: 1
|
|
13868
13909
|
}); // 重置分页参数
|
|
@@ -13887,12 +13928,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13887
13928
|
const {
|
|
13888
13929
|
pageParams
|
|
13889
13930
|
} = this.$store.state;
|
|
13890
|
-
this.$store.commit('
|
|
13931
|
+
this.$store.commit('setPageParams', {
|
|
13891
13932
|
...pageParams,
|
|
13892
13933
|
page: 1,
|
|
13893
13934
|
size: 10
|
|
13894
13935
|
}); // 重置分页参数
|
|
13895
|
-
this.$store.commit('
|
|
13936
|
+
this.$store.commit('setFormParams', {}); // 重置查询参数
|
|
13896
13937
|
this.$nextTick(() => {
|
|
13897
13938
|
for (let a in this.form) this.form[a] = '';
|
|
13898
13939
|
this.$nextTick(() => this.$emit('cancel', this.form));
|
|
@@ -19213,6 +19254,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19213
19254
|
"attrs": {
|
|
19214
19255
|
"clearable": true,
|
|
19215
19256
|
"filterable": true,
|
|
19257
|
+
"collapse-tags": true,
|
|
19216
19258
|
"placeholder": props.placeholder || `请选择${words}`
|
|
19217
19259
|
},
|
|
19218
19260
|
"on": {
|
|
@@ -36504,6 +36546,17 @@ exports.scale = scale;
|
|
|
36504
36546
|
exports.invert = invert;
|
|
36505
36547
|
exports.clone = clone;
|
|
36506
36548
|
|
|
36549
|
+
/***/ }),
|
|
36550
|
+
|
|
36551
|
+
/***/ "5934":
|
|
36552
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
36553
|
+
|
|
36554
|
+
"use strict";
|
|
36555
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e95a");
|
|
36556
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
36557
|
+
/* unused harmony reexport * */
|
|
36558
|
+
|
|
36559
|
+
|
|
36507
36560
|
/***/ }),
|
|
36508
36561
|
|
|
36509
36562
|
/***/ "5974":
|
|
@@ -36589,6 +36642,13 @@ module.exports = _default;
|
|
|
36589
36642
|
|
|
36590
36643
|
/***/ }),
|
|
36591
36644
|
|
|
36645
|
+
/***/ "5a1c":
|
|
36646
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
36647
|
+
|
|
36648
|
+
// extracted by mini-css-extract-plugin
|
|
36649
|
+
|
|
36650
|
+
/***/ }),
|
|
36651
|
+
|
|
36592
36652
|
/***/ "5aac":
|
|
36593
36653
|
/***/ (function(module, exports) {
|
|
36594
36654
|
|
|
@@ -37110,6 +37170,13 @@ module.exports = _default;
|
|
|
37110
37170
|
|
|
37111
37171
|
/***/ }),
|
|
37112
37172
|
|
|
37173
|
+
/***/ "5bf5":
|
|
37174
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
37175
|
+
|
|
37176
|
+
// extracted by mini-css-extract-plugin
|
|
37177
|
+
|
|
37178
|
+
/***/ }),
|
|
37179
|
+
|
|
37113
37180
|
/***/ "5c61":
|
|
37114
37181
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
37115
37182
|
|
|
@@ -40521,8 +40588,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40521
40588
|
return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
|
|
40522
40589
|
},
|
|
40523
40590
|
select(items) {
|
|
40524
|
-
this.$store.commit('
|
|
40525
|
-
this.$store.commit('
|
|
40591
|
+
this.$store.commit('setSelectedRows', items);
|
|
40592
|
+
this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
|
|
40526
40593
|
this.$emit('select', {
|
|
40527
40594
|
rows: items,
|
|
40528
40595
|
keys: items.map(a => a[this.rowKey])
|
|
@@ -40532,7 +40599,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40532
40599
|
page: 1,
|
|
40533
40600
|
size: 10
|
|
40534
40601
|
}) {
|
|
40535
|
-
this.$store.commit('
|
|
40602
|
+
this.$store.commit('setPageParams', pages);
|
|
40536
40603
|
this.$emit('change', pages);
|
|
40537
40604
|
this.search(pages);
|
|
40538
40605
|
},
|
|
@@ -47717,13 +47784,6 @@ module.exports = _default;
|
|
|
47717
47784
|
|
|
47718
47785
|
/***/ }),
|
|
47719
47786
|
|
|
47720
|
-
/***/ "731e":
|
|
47721
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
47722
|
-
|
|
47723
|
-
// extracted by mini-css-extract-plugin
|
|
47724
|
-
|
|
47725
|
-
/***/ }),
|
|
47726
|
-
|
|
47727
47787
|
/***/ "734e":
|
|
47728
47788
|
/***/ (function(module, exports) {
|
|
47729
47789
|
|
|
@@ -50922,22 +50982,11 @@ module.exports = _default;
|
|
|
50922
50982
|
__webpack_require__.r(__webpack_exports__);
|
|
50923
50983
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
|
|
50924
50984
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
|
|
50925
|
-
/* harmony import */ var
|
|
50926
|
-
/* harmony import */ var
|
|
50927
|
-
/* harmony import */ var
|
|
50928
|
-
/* harmony import */ var
|
|
50929
|
-
/* harmony import */ var
|
|
50930
|
-
/* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("2234");
|
|
50931
|
-
/* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("1d0c");
|
|
50932
|
-
/* harmony import */ var _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("2ee7");
|
|
50933
|
-
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("e6e6");
|
|
50934
|
-
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_9__);
|
|
50935
|
-
|
|
50936
|
-
|
|
50937
|
-
|
|
50938
|
-
|
|
50939
|
-
|
|
50940
|
-
|
|
50985
|
+
/* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("6cc8");
|
|
50986
|
+
/* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("2234");
|
|
50987
|
+
/* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("1d0c");
|
|
50988
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("e6e6");
|
|
50989
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_4__);
|
|
50941
50990
|
|
|
50942
50991
|
|
|
50943
50992
|
|
|
@@ -50946,20 +50995,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50946
50995
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
50947
50996
|
name: 'Ctable',
|
|
50948
50997
|
components: {
|
|
50949
|
-
|
|
50950
|
-
|
|
50951
|
-
|
|
50952
|
-
AfSearch: _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
50953
|
-
BfSearch: _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
50954
|
-
AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
50955
|
-
Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
50956
|
-
Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
|
|
50998
|
+
Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
50999
|
+
AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
51000
|
+
Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"]
|
|
50957
51001
|
},
|
|
50958
51002
|
props: {
|
|
50959
|
-
margin: {
|
|
50960
|
-
type: String,
|
|
50961
|
-
default: () => '0'
|
|
50962
|
-
},
|
|
50963
51003
|
rowKey: {
|
|
50964
51004
|
type: String,
|
|
50965
51005
|
default: () => 'id'
|
|
@@ -50968,22 +51008,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50968
51008
|
type: String,
|
|
50969
51009
|
default: () => 'medium'
|
|
50970
51010
|
},
|
|
50971
|
-
selectionWidth: {
|
|
50972
|
-
type: String,
|
|
50973
|
-
default: () => '50'
|
|
50974
|
-
},
|
|
50975
51011
|
sort: {
|
|
50976
51012
|
type: Boolean,
|
|
50977
51013
|
default: () => true
|
|
50978
51014
|
},
|
|
50979
|
-
sortTitle: {
|
|
50980
|
-
type: String,
|
|
50981
|
-
default: () => '#'
|
|
50982
|
-
},
|
|
50983
|
-
sortWidth: {
|
|
50984
|
-
type: String,
|
|
50985
|
-
default: () => '50'
|
|
50986
|
-
},
|
|
50987
51015
|
border: {
|
|
50988
51016
|
type: Boolean,
|
|
50989
51017
|
default: () => false
|
|
@@ -50992,10 +51020,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50992
51020
|
type: Boolean,
|
|
50993
51021
|
default: () => false
|
|
50994
51022
|
},
|
|
50995
|
-
loading: {
|
|
50996
|
-
type: Boolean,
|
|
50997
|
-
default: () => false
|
|
50998
|
-
},
|
|
50999
51023
|
column: {
|
|
51000
51024
|
type: Array,
|
|
51001
51025
|
default: () => []
|
|
@@ -51004,50 +51028,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51004
51028
|
type: Object,
|
|
51005
51029
|
default: () => ({})
|
|
51006
51030
|
},
|
|
51007
|
-
|
|
51008
|
-
type:
|
|
51009
|
-
default: () =>
|
|
51010
|
-
},
|
|
51011
|
-
elementLoadingText: {
|
|
51012
|
-
type: String,
|
|
51013
|
-
default: () => ''
|
|
51014
|
-
},
|
|
51015
|
-
elementLoadingSpinner: {
|
|
51016
|
-
type: String,
|
|
51017
|
-
default: () => 'el-icon-loading'
|
|
51018
|
-
},
|
|
51019
|
-
elementLoadingBackground: {
|
|
51020
|
-
type: String,
|
|
51021
|
-
default: () => 'rgba(0, 0, 0, 0.04)'
|
|
51022
|
-
},
|
|
51023
|
-
emptyText: {
|
|
51024
|
-
type: String,
|
|
51025
|
-
default: () => ''
|
|
51026
|
-
},
|
|
51027
|
-
showHeader: {
|
|
51028
|
-
type: Boolean,
|
|
51029
|
-
default: () => true
|
|
51031
|
+
params: {
|
|
51032
|
+
type: Object,
|
|
51033
|
+
default: () => ({})
|
|
51030
51034
|
},
|
|
51031
51035
|
selection: {
|
|
51032
51036
|
type: Boolean,
|
|
51033
|
-
default: () =>
|
|
51037
|
+
default: () => false
|
|
51034
51038
|
},
|
|
51035
51039
|
showOverflowTooltip: {
|
|
51036
51040
|
type: Boolean,
|
|
51037
51041
|
default: () => true
|
|
51038
51042
|
},
|
|
51039
|
-
tooltipEffect: {
|
|
51040
|
-
type: String,
|
|
51041
|
-
default: () => 'light'
|
|
51042
|
-
},
|
|
51043
|
-
showSummary: {
|
|
51044
|
-
type: Boolean,
|
|
51045
|
-
default: () => false
|
|
51046
|
-
},
|
|
51047
|
-
sumText: {
|
|
51048
|
-
type: String,
|
|
51049
|
-
default: () => '合计'
|
|
51050
|
-
},
|
|
51051
51043
|
sortable: {
|
|
51052
51044
|
type: Boolean,
|
|
51053
51045
|
default: () => false
|
|
@@ -51074,22 +51066,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51074
51066
|
hasChildren: 'hasChildren'
|
|
51075
51067
|
})
|
|
51076
51068
|
},
|
|
51077
|
-
highlightCurrentRow: {
|
|
51078
|
-
type: Boolean,
|
|
51079
|
-
default: () => false
|
|
51080
|
-
},
|
|
51081
|
-
action: {
|
|
51082
|
-
type: Object,
|
|
51083
|
-
default: () => ({
|
|
51084
|
-
review: null,
|
|
51085
|
-
modify: null,
|
|
51086
|
-
update: null,
|
|
51087
|
-
handle: null,
|
|
51088
|
-
remove: null,
|
|
51089
|
-
delete: null,
|
|
51090
|
-
export: null
|
|
51091
|
-
})
|
|
51092
|
-
},
|
|
51093
51069
|
actionWidth: {
|
|
51094
51070
|
type: String,
|
|
51095
51071
|
default: () => '180px'
|
|
@@ -51098,157 +51074,138 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51098
51074
|
type: String,
|
|
51099
51075
|
default: () => '操作'
|
|
51100
51076
|
},
|
|
51101
|
-
|
|
51077
|
+
formatTime: {
|
|
51078
|
+
type: Boolean,
|
|
51079
|
+
default: () => true
|
|
51080
|
+
},
|
|
51081
|
+
preview: {
|
|
51102
51082
|
type: Boolean,
|
|
51103
51083
|
default: () => false
|
|
51084
|
+
},
|
|
51085
|
+
page: {
|
|
51086
|
+
type: Boolean,
|
|
51087
|
+
default: () => true
|
|
51104
51088
|
}
|
|
51105
51089
|
},
|
|
51106
|
-
|
|
51107
|
-
|
|
51090
|
+
data() {
|
|
51091
|
+
return {
|
|
51092
|
+
loading: false
|
|
51093
|
+
};
|
|
51108
51094
|
},
|
|
51109
|
-
|
|
51110
|
-
this
|
|
51095
|
+
created() {
|
|
51096
|
+
this.search();
|
|
51097
|
+
this.create();
|
|
51111
51098
|
},
|
|
51112
|
-
|
|
51113
|
-
this.
|
|
51114
|
-
this.search = null;
|
|
51115
|
-
this.select = null;
|
|
51116
|
-
this.choose = null;
|
|
51117
|
-
this.change = null;
|
|
51118
|
-
this.format = null;
|
|
51119
|
-
this.scroll = null;
|
|
51099
|
+
mounted() {
|
|
51100
|
+
this.$refs['c-table'].bodyWrapper.addEventListener('scroll', this.scroll);
|
|
51120
51101
|
},
|
|
51121
51102
|
methods: {
|
|
51122
|
-
create() {
|
|
51103
|
+
create(column = []) {
|
|
51123
51104
|
const h = this.$createElement;
|
|
51124
|
-
|
|
51125
|
-
|
|
51126
|
-
|
|
51127
|
-
|
|
51128
|
-
|
|
51129
|
-
render = null,
|
|
51130
|
-
header = null,
|
|
51131
|
-
...r
|
|
51132
|
-
} = a;
|
|
51133
|
-
let field = a.field || a.index || a.name || a.prop;
|
|
51134
|
-
let label = a.label || a.title || a.text;
|
|
51135
|
-
let props = {
|
|
51136
|
-
key: b,
|
|
51137
|
-
prop: field,
|
|
51138
|
-
scopedSlot: field,
|
|
51139
|
-
sortable: field ? a.sortable ? a.sortable : this.sortable : false,
|
|
51140
|
-
formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
|
|
51141
|
-
showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
|
|
51142
|
-
...r
|
|
51143
|
-
};
|
|
51144
|
-
return h("el-table-column", {
|
|
51145
|
-
"props": {
|
|
51146
|
-
...props
|
|
51147
|
-
}
|
|
51148
|
-
}, [h("template", {
|
|
51149
|
-
"slot": "header"
|
|
51150
|
-
}, [header ? () => header(r) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
|
|
51151
|
-
"attrs": {
|
|
51152
|
-
"content": label,
|
|
51153
|
-
"placement": "top"
|
|
51154
|
-
}
|
|
51155
|
-
}, [h("span", {
|
|
51156
|
-
"attrs": {
|
|
51157
|
-
"title": label
|
|
51158
|
-
}
|
|
51159
|
-
}, [label])]) : h("span", {
|
|
51160
|
-
"attrs": {
|
|
51161
|
-
"title": label
|
|
51162
|
-
}
|
|
51163
|
-
}, [label])])]);
|
|
51105
|
+
if (this.formatTime && this.column.length > 0) {
|
|
51106
|
+
for (let a in this.column) {
|
|
51107
|
+
if (this.column[a].field && this.column[a].field.toLowerCase().includes('time')) {
|
|
51108
|
+
this.column[a].render = item => item[this.column[a].field] != '' && this.filter(item[this.column[a].field]);
|
|
51109
|
+
}
|
|
51164
51110
|
}
|
|
51165
|
-
});
|
|
51166
|
-
},
|
|
51167
|
-
suffix() {
|
|
51168
|
-
const h = this.$createElement;
|
|
51169
|
-
if (this.action.review || this.action.modify || this.action.update || this.action.handle || this.action.remove || this.action.delete || this.action.export || this.$listeners.review || this.$listeners.modify || this.$listeners.update || this.$listeners.handle || this.$listeners.remove || this.$listeners.delete || this.$listeners.export) {
|
|
51170
|
-
return {
|
|
51171
|
-
fixed: 'right',
|
|
51172
|
-
align: 'center',
|
|
51173
|
-
width: this.actionWidth,
|
|
51174
|
-
label: this.actionTitle,
|
|
51175
|
-
formatter: item => h("div", {
|
|
51176
|
-
"class": "action"
|
|
51177
|
-
}, [this.action.review && h("i", {
|
|
51178
|
-
"class": "el-icon-view",
|
|
51179
|
-
"on": {
|
|
51180
|
-
"click": () => this.action.review(item)
|
|
51181
|
-
}
|
|
51182
|
-
}), this.action.modify && h("i", {
|
|
51183
|
-
"class": "el-icon-edit",
|
|
51184
|
-
"on": {
|
|
51185
|
-
"click": () => this.action.modify(item)
|
|
51186
|
-
}
|
|
51187
|
-
}), this.action.update && h("i", {
|
|
51188
|
-
"class": "el-icon-edit",
|
|
51189
|
-
"on": {
|
|
51190
|
-
"click": () => this.action.update(item)
|
|
51191
|
-
}
|
|
51192
|
-
}), this.action.handle && h("i", {
|
|
51193
|
-
"class": "el-icon-edit",
|
|
51194
|
-
"on": {
|
|
51195
|
-
"click": () => this.action.handle(item)
|
|
51196
|
-
}
|
|
51197
|
-
}), this.action.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
51198
|
-
"on": {
|
|
51199
|
-
"submit": () => this.action.remove(item)
|
|
51200
|
-
}
|
|
51201
|
-
}), this.action.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
51202
|
-
"on": {
|
|
51203
|
-
"submit": () => this.action.delete(item)
|
|
51204
|
-
}
|
|
51205
|
-
}), this.action.export && h("i", {
|
|
51206
|
-
"class": "el-icon-download",
|
|
51207
|
-
"on": {
|
|
51208
|
-
"click": () => this.action.export(item)
|
|
51209
|
-
}
|
|
51210
|
-
}), this.$listeners.review && h("i", {
|
|
51211
|
-
"class": "el-icon-view",
|
|
51212
|
-
"on": {
|
|
51213
|
-
"click": () => this.$listeners.review(item)
|
|
51214
|
-
}
|
|
51215
|
-
}), this.$listeners.modify && h("i", {
|
|
51216
|
-
"class": "el-icon-edit",
|
|
51217
|
-
"on": {
|
|
51218
|
-
"click": () => this.$listeners.modify(item)
|
|
51219
|
-
}
|
|
51220
|
-
}), this.$listeners.update && h("i", {
|
|
51221
|
-
"class": "el-icon-edit",
|
|
51222
|
-
"on": {
|
|
51223
|
-
"click": () => this.$listeners.update(item)
|
|
51224
|
-
}
|
|
51225
|
-
}), this.$listeners.handle && h("i", {
|
|
51226
|
-
"class": "el-icon-edit",
|
|
51227
|
-
"on": {
|
|
51228
|
-
"click": () => this.$listeners.handle(item)
|
|
51229
|
-
}
|
|
51230
|
-
}), this.$listeners.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
51231
|
-
"on": {
|
|
51232
|
-
"submit": () => this.$listeners.remove(item)
|
|
51233
|
-
}
|
|
51234
|
-
}), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
51235
|
-
"on": {
|
|
51236
|
-
"submit": () => this.$listeners.delete(item)
|
|
51237
|
-
}
|
|
51238
|
-
}), this.$listeners.export && h("i", {
|
|
51239
|
-
"class": "el-icon-download",
|
|
51240
|
-
"on": {
|
|
51241
|
-
"click": () => this.$listeners.export(item)
|
|
51242
|
-
}
|
|
51243
|
-
})])
|
|
51244
|
-
};
|
|
51245
51111
|
}
|
|
51112
|
+
const actionColumn = () => {
|
|
51113
|
+
let data = [];
|
|
51114
|
+
const {
|
|
51115
|
+
review,
|
|
51116
|
+
modify,
|
|
51117
|
+
update,
|
|
51118
|
+
handle,
|
|
51119
|
+
remove
|
|
51120
|
+
} = this.$listeners;
|
|
51121
|
+
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
|
|
51122
|
+
data = [{
|
|
51123
|
+
label: this.actionTitle,
|
|
51124
|
+
fixed: 'right',
|
|
51125
|
+
align: 'center',
|
|
51126
|
+
width: this.actionWidth,
|
|
51127
|
+
render: item => h("div", {
|
|
51128
|
+
"class": "action"
|
|
51129
|
+
}, [review && h("i", {
|
|
51130
|
+
"class": "el-icon-view",
|
|
51131
|
+
"on": {
|
|
51132
|
+
"click": () => review(item)
|
|
51133
|
+
}
|
|
51134
|
+
}), modify && h("i", {
|
|
51135
|
+
"class": "el-icon-edit",
|
|
51136
|
+
"on": {
|
|
51137
|
+
"click": () => modify(item)
|
|
51138
|
+
}
|
|
51139
|
+
}), update && h("i", {
|
|
51140
|
+
"class": "el-icon-edit",
|
|
51141
|
+
"on": {
|
|
51142
|
+
"click": () => update(item)
|
|
51143
|
+
}
|
|
51144
|
+
}), handle && h("i", {
|
|
51145
|
+
"class": "el-icon-edit",
|
|
51146
|
+
"on": {
|
|
51147
|
+
"click": () => handle(item)
|
|
51148
|
+
}
|
|
51149
|
+
}), remove && h("Apopconfirm", {
|
|
51150
|
+
"on": {
|
|
51151
|
+
"submit": () => remove(item)
|
|
51152
|
+
}
|
|
51153
|
+
}), this.$listeners.delete && h("Apopconfirm", {
|
|
51154
|
+
"on": {
|
|
51155
|
+
"submit": () => this.$listeners.delete(item)
|
|
51156
|
+
}
|
|
51157
|
+
}), this.$listeners.export && h("i", {
|
|
51158
|
+
"class": "el-icon-download",
|
|
51159
|
+
"on": {
|
|
51160
|
+
"click": () => this.$listeners.export(item)
|
|
51161
|
+
}
|
|
51162
|
+
})])
|
|
51163
|
+
}];
|
|
51164
|
+
}
|
|
51165
|
+
return data;
|
|
51166
|
+
};
|
|
51167
|
+
const columnConfig = [...column, ...actionColumn()];
|
|
51168
|
+
return columnConfig.map((a, b) => {
|
|
51169
|
+
if (a) return h("el-table-column", {
|
|
51170
|
+
"key": b,
|
|
51171
|
+
"attrs": {
|
|
51172
|
+
"prop": a.field,
|
|
51173
|
+
"showOverflowTooltip": this.showOverflowTooltip,
|
|
51174
|
+
"sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
|
|
51175
|
+
"formatter": a.formatter ? (e, f, g, h) => a.formatter(e, h) : a.render ? (e, f, g, h) => a.render(e, h) : a.type ? (e, f, g, h) => this.format(a, b, e, h) : null
|
|
51176
|
+
},
|
|
51177
|
+
"props": {
|
|
51178
|
+
...a
|
|
51179
|
+
}
|
|
51180
|
+
});
|
|
51181
|
+
});
|
|
51246
51182
|
},
|
|
51247
|
-
search(
|
|
51183
|
+
search() {
|
|
51184
|
+
const {
|
|
51185
|
+
pageParams,
|
|
51186
|
+
formParams
|
|
51187
|
+
} = this.$store.state;
|
|
51188
|
+
const params = Object.assign({}, pageParams, formParams, this.params);
|
|
51248
51189
|
this.$emit('search', params);
|
|
51249
51190
|
},
|
|
51250
|
-
|
|
51251
|
-
|
|
51191
|
+
filter(timeStamp) {
|
|
51192
|
+
if (!typeof timeStamp == Number) return '';
|
|
51193
|
+
let time = new Date(timeStamp);
|
|
51194
|
+
const YYYY = time.getFullYear();
|
|
51195
|
+
const MM = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
|
|
51196
|
+
const DD = time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
|
|
51197
|
+
const H = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
|
|
51198
|
+
const M = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
|
|
51199
|
+
const S = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
|
|
51200
|
+
return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
|
|
51201
|
+
},
|
|
51202
|
+
select(items) {
|
|
51203
|
+
this.$store.commit('setSelectedRows', items);
|
|
51204
|
+
this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
|
|
51205
|
+
this.$emit('select', {
|
|
51206
|
+
rows: items,
|
|
51207
|
+
keys: items.map(a => a[this.rowKey])
|
|
51208
|
+
});
|
|
51252
51209
|
},
|
|
51253
51210
|
choose(row, column, event) {
|
|
51254
51211
|
this.$emit('choose', {
|
|
@@ -51261,27 +51218,47 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51261
51218
|
page: 1,
|
|
51262
51219
|
size: 10
|
|
51263
51220
|
}) {
|
|
51221
|
+
this.$store.commit('setPageParams', pages);
|
|
51264
51222
|
this.$emit('change', pages);
|
|
51265
51223
|
this.search(pages);
|
|
51266
51224
|
},
|
|
51225
|
+
switch(name = '', symbol = '_') {
|
|
51226
|
+
return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
|
|
51227
|
+
},
|
|
51267
51228
|
format({
|
|
51268
|
-
|
|
51269
|
-
|
|
51270
|
-
|
|
51271
|
-
|
|
51272
|
-
|
|
51273
|
-
|
|
51274
|
-
|
|
51275
|
-
dicts = [],
|
|
51229
|
+
label,
|
|
51230
|
+
field,
|
|
51231
|
+
type,
|
|
51232
|
+
disabled,
|
|
51233
|
+
action = '',
|
|
51234
|
+
path = '',
|
|
51235
|
+
flag = '',
|
|
51276
51236
|
...props
|
|
51277
51237
|
}, colIndex, item, rowIndex) {
|
|
51278
51238
|
const h = this.$createElement;
|
|
51279
|
-
if (type
|
|
51280
|
-
|
|
51239
|
+
if (this.preview && (type != 'select' || type != 'enume' || type != 'enumerate')) return h("span", {
|
|
51240
|
+
"key": colIndex + '-' + rowIndex
|
|
51241
|
+
}, [item[field]]);
|
|
51242
|
+
if (type == 'select' || type == 'enume' || type == 'enumerate') {
|
|
51243
|
+
let dicts = [];
|
|
51244
|
+
if (this.optionApi != '' || action != '' || path != '') {
|
|
51245
|
+
let url = action != '' ? action : path != '' ? path : this.optionApi;
|
|
51246
|
+
let params = flag != '' ? {
|
|
51247
|
+
flag: this.switch(flag)
|
|
51248
|
+
} : {
|
|
51249
|
+
field: this.switch(field)
|
|
51250
|
+
};
|
|
51251
|
+
FN.get(url, params).then(({
|
|
51252
|
+
data
|
|
51253
|
+
}) => {
|
|
51254
|
+
if (data && data.length > 0) dicts = data;
|
|
51255
|
+
});
|
|
51256
|
+
}
|
|
51257
|
+
return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
51281
51258
|
"key": colIndex + '-' + rowIndex,
|
|
51282
51259
|
"attrs": {
|
|
51283
|
-
"field": field
|
|
51284
|
-
"data": dicts
|
|
51260
|
+
"field": `${field}`,
|
|
51261
|
+
"data": dicts
|
|
51285
51262
|
}
|
|
51286
51263
|
}, props, {
|
|
51287
51264
|
"model": {
|
|
@@ -51291,103 +51268,47 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51291
51268
|
}
|
|
51292
51269
|
}
|
|
51293
51270
|
}]));
|
|
51294
|
-
return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
51295
|
-
"key": colIndex + '-' + rowIndex,
|
|
51296
|
-
"attrs": {
|
|
51297
|
-
"field": name,
|
|
51298
|
-
"data": dicts.length > 0 ? dicts : data
|
|
51299
|
-
}
|
|
51300
|
-
}, props, {
|
|
51301
|
-
"model": {
|
|
51302
|
-
value: item[name],
|
|
51303
|
-
callback: $$v => {
|
|
51304
|
-
this.$set(item, name, $$v);
|
|
51305
|
-
}
|
|
51306
|
-
}
|
|
51307
|
-
}]));
|
|
51308
51271
|
}
|
|
51309
|
-
return h(
|
|
51272
|
+
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
51310
51273
|
"key": colIndex + '-' + rowIndex,
|
|
51311
51274
|
"attrs": {
|
|
51312
51275
|
"config": {
|
|
51313
51276
|
type,
|
|
51314
51277
|
form: item,
|
|
51315
|
-
|
|
51316
|
-
field: field
|
|
51317
|
-
|
|
51278
|
+
label,
|
|
51279
|
+
field: `${field}`,
|
|
51280
|
+
dicts,
|
|
51281
|
+
table: true,
|
|
51318
51282
|
...props
|
|
51319
51283
|
}
|
|
51320
51284
|
}
|
|
51321
51285
|
});
|
|
51322
51286
|
},
|
|
51323
|
-
scroll(
|
|
51324
|
-
|
|
51325
|
-
|
|
51326
|
-
|
|
51327
|
-
a.preventDefault();
|
|
51328
|
-
container.scrollTop += a.deltaY;
|
|
51329
|
-
} else {
|
|
51330
|
-
if (container.scrollWidth > container.clientWidth) {
|
|
51331
|
-
a.preventDefault();
|
|
51332
|
-
container.scrollLeft += a.deltaY;
|
|
51333
|
-
}
|
|
51334
|
-
}
|
|
51335
|
-
this.$emit('scroll', a);
|
|
51336
|
-
}
|
|
51287
|
+
scroll({
|
|
51288
|
+
target
|
|
51289
|
+
}) {
|
|
51290
|
+
this.$emit('scroll', target);
|
|
51337
51291
|
}
|
|
51338
51292
|
},
|
|
51339
51293
|
render() {
|
|
51340
51294
|
const h = arguments[0];
|
|
51341
51295
|
const {
|
|
51342
|
-
|
|
51343
|
-
|
|
51344
|
-
searchConfig = {},
|
|
51345
|
-
actionConfig = [],
|
|
51346
|
-
...props
|
|
51347
|
-
} = this.$attrs;
|
|
51348
|
-
const {
|
|
51349
|
-
...r
|
|
51296
|
+
data = [],
|
|
51297
|
+
size = 0
|
|
51350
51298
|
} = this.record;
|
|
51351
|
-
const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
|
|
51352
|
-
const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
|
|
51353
51299
|
const {
|
|
51354
|
-
|
|
51355
|
-
|
|
51356
|
-
|
|
51357
|
-
const
|
|
51300
|
+
pageParams
|
|
51301
|
+
} = this.$store.state;
|
|
51302
|
+
const condition = data && data.length > 0;
|
|
51303
|
+
const {
|
|
51304
|
+
...props
|
|
51305
|
+
} = this.$attrs;
|
|
51358
51306
|
return h("div", {
|
|
51359
|
-
"
|
|
51360
|
-
|
|
51361
|
-
|
|
51362
|
-
|
|
51363
|
-
|
|
51364
|
-
"cols": formCols,
|
|
51365
|
-
"verify": searchVerify,
|
|
51366
|
-
"config": searchConfig,
|
|
51367
|
-
"loading": loading
|
|
51368
|
-
},
|
|
51369
|
-
"on": {
|
|
51370
|
-
"submit": search,
|
|
51371
|
-
"cancel": search
|
|
51372
|
-
}
|
|
51373
|
-
}) : h(_components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
51374
|
-
"attrs": {
|
|
51375
|
-
"cols": formCols,
|
|
51376
|
-
"verify": searchVerify,
|
|
51377
|
-
"config": searchConfig,
|
|
51378
|
-
"loading": loading
|
|
51379
|
-
},
|
|
51380
|
-
"on": {
|
|
51381
|
-
"submit": search,
|
|
51382
|
-
"cancel": search
|
|
51383
|
-
}
|
|
51384
|
-
})), actionConfig.length > 0 && h(_components_Aactions__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
51385
|
-
"attrs": {
|
|
51386
|
-
"config": actionConfig,
|
|
51387
|
-
"disabled": loading
|
|
51388
|
-
}
|
|
51389
|
-
}), h("div", {
|
|
51390
|
-
"class": this.border ? 'c-table' : 'c-table border'
|
|
51307
|
+
"class": "c-table",
|
|
51308
|
+
"directives": [{
|
|
51309
|
+
name: "loading",
|
|
51310
|
+
value: this.loading
|
|
51311
|
+
}]
|
|
51391
51312
|
}, [h("el-table", {
|
|
51392
51313
|
"ref": "c-table",
|
|
51393
51314
|
"attrs": {
|
|
@@ -51395,23 +51316,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51395
51316
|
"size": this.size,
|
|
51396
51317
|
"border": this.border,
|
|
51397
51318
|
"stripe": this.stripe,
|
|
51319
|
+
"column": this.column,
|
|
51398
51320
|
"row-key": this.rowKey,
|
|
51399
|
-
"max-height": this.maxHeight,
|
|
51400
|
-
"element-loading-text": this.elementLoadingText,
|
|
51401
|
-
"element-loading-spinner": this.elementLoadingSpinner,
|
|
51402
|
-
"element-loading-background": this.elementLoadingBackground,
|
|
51403
|
-
"show-header": this.showHeader,
|
|
51404
51321
|
"default-sort": this.defaultSort,
|
|
51405
|
-
"show-summary": this.showSummary,
|
|
51406
|
-
"tooltip-effect": this.tooltipEffect,
|
|
51407
|
-
"default-expand-all": this.defaultExpandAll,
|
|
51408
51322
|
"tree-props": this.tree ? this.treeProps : {},
|
|
51409
|
-
"
|
|
51323
|
+
"default-expand-all": this.defaultExpandAll
|
|
51410
51324
|
},
|
|
51411
|
-
"directives": [{
|
|
51412
|
-
name: "loading",
|
|
51413
|
-
value: loading
|
|
51414
|
-
}],
|
|
51415
51325
|
"on": {
|
|
51416
51326
|
"row-click": this.choose,
|
|
51417
51327
|
"selection-change": this.select
|
|
@@ -51419,34 +51329,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51419
51329
|
"props": {
|
|
51420
51330
|
...props
|
|
51421
51331
|
}
|
|
51422
|
-
}, [condition &&
|
|
51332
|
+
}, [condition && this.selection && h("el-table-column", {
|
|
51423
51333
|
"attrs": {
|
|
51424
51334
|
"fixed": "left",
|
|
51425
51335
|
"type": "selection",
|
|
51426
|
-
"width":
|
|
51336
|
+
"width": "50"
|
|
51427
51337
|
}
|
|
51428
51338
|
}), condition && this.sort && h("el-table-column", {
|
|
51429
51339
|
"attrs": {
|
|
51430
51340
|
"fixed": "left",
|
|
51431
51341
|
"type": "index",
|
|
51432
|
-
"width":
|
|
51433
|
-
"label":
|
|
51434
|
-
}
|
|
51435
|
-
}), condition && this.create(), condition && this.$slots.default, h("div", {
|
|
51436
|
-
"slot": "empty",
|
|
51437
|
-
"class": "empty"
|
|
51438
|
-
}, [!loading && h(_components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
51439
|
-
"attrs": {
|
|
51440
|
-
"description": this.emptyText
|
|
51342
|
+
"width": "50",
|
|
51343
|
+
"label": "#"
|
|
51441
51344
|
}
|
|
51442
|
-
})
|
|
51345
|
+
}), condition && this.create(this.column)]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
|
51443
51346
|
"attrs": {
|
|
51444
|
-
"total": Number(size)
|
|
51347
|
+
"total": Number(size),
|
|
51348
|
+
"pages": pageParams
|
|
51445
51349
|
},
|
|
51446
51350
|
"on": {
|
|
51447
51351
|
"change": this.change
|
|
51448
51352
|
}
|
|
51449
|
-
})])
|
|
51353
|
+
})]);
|
|
51450
51354
|
}
|
|
51451
51355
|
});
|
|
51452
51356
|
|
|
@@ -61693,11 +61597,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61693
61597
|
__webpack_require__.r(__webpack_exports__);
|
|
61694
61598
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
|
|
61695
61599
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
|
|
61696
|
-
/* harmony import */ var
|
|
61697
|
-
/* harmony import */ var
|
|
61698
|
-
/* harmony import */ var
|
|
61699
|
-
/* harmony import */ var
|
|
61700
|
-
/* harmony import */ var
|
|
61600
|
+
/* harmony import */ var _components_Aactions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e94c");
|
|
61601
|
+
/* harmony import */ var _components_Aempty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("bd5e");
|
|
61602
|
+
/* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6cc8");
|
|
61603
|
+
/* harmony import */ var _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("1b78");
|
|
61604
|
+
/* harmony import */ var _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("fc0d");
|
|
61605
|
+
/* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("2234");
|
|
61606
|
+
/* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("1d0c");
|
|
61607
|
+
/* harmony import */ var _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("2ee7");
|
|
61608
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("f4d2");
|
|
61609
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_9__);
|
|
61610
|
+
|
|
61611
|
+
|
|
61612
|
+
|
|
61613
|
+
|
|
61614
|
+
|
|
61615
|
+
|
|
61701
61616
|
|
|
61702
61617
|
|
|
61703
61618
|
|
|
@@ -61706,11 +61621,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61706
61621
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
61707
61622
|
name: 'Btable',
|
|
61708
61623
|
components: {
|
|
61709
|
-
|
|
61710
|
-
|
|
61711
|
-
|
|
61624
|
+
Aactions: _components_Aactions__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
61625
|
+
Aempty: _components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
61626
|
+
Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
61627
|
+
AfSearch: _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
61628
|
+
BfSearch: _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
61629
|
+
AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
61630
|
+
Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
61631
|
+
Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
|
|
61712
61632
|
},
|
|
61713
61633
|
props: {
|
|
61634
|
+
margin: {
|
|
61635
|
+
type: String,
|
|
61636
|
+
default: () => '0'
|
|
61637
|
+
},
|
|
61714
61638
|
rowKey: {
|
|
61715
61639
|
type: String,
|
|
61716
61640
|
default: () => 'id'
|
|
@@ -61719,10 +61643,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61719
61643
|
type: String,
|
|
61720
61644
|
default: () => 'medium'
|
|
61721
61645
|
},
|
|
61646
|
+
selectionWidth: {
|
|
61647
|
+
type: String,
|
|
61648
|
+
default: () => '50'
|
|
61649
|
+
},
|
|
61722
61650
|
sort: {
|
|
61723
61651
|
type: Boolean,
|
|
61724
61652
|
default: () => true
|
|
61725
61653
|
},
|
|
61654
|
+
sortTitle: {
|
|
61655
|
+
type: String,
|
|
61656
|
+
default: () => '#'
|
|
61657
|
+
},
|
|
61658
|
+
sortWidth: {
|
|
61659
|
+
type: String,
|
|
61660
|
+
default: () => '50'
|
|
61661
|
+
},
|
|
61726
61662
|
border: {
|
|
61727
61663
|
type: Boolean,
|
|
61728
61664
|
default: () => false
|
|
@@ -61731,6 +61667,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61731
61667
|
type: Boolean,
|
|
61732
61668
|
default: () => false
|
|
61733
61669
|
},
|
|
61670
|
+
loading: {
|
|
61671
|
+
type: Boolean,
|
|
61672
|
+
default: () => false
|
|
61673
|
+
},
|
|
61734
61674
|
column: {
|
|
61735
61675
|
type: Array,
|
|
61736
61676
|
default: () => []
|
|
@@ -61739,18 +61679,50 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61739
61679
|
type: Object,
|
|
61740
61680
|
default: () => ({})
|
|
61741
61681
|
},
|
|
61742
|
-
|
|
61743
|
-
type:
|
|
61744
|
-
default: () =>
|
|
61682
|
+
maxHeight: {
|
|
61683
|
+
type: String,
|
|
61684
|
+
default: () => '480'
|
|
61685
|
+
},
|
|
61686
|
+
elementLoadingText: {
|
|
61687
|
+
type: String,
|
|
61688
|
+
default: () => ''
|
|
61689
|
+
},
|
|
61690
|
+
elementLoadingSpinner: {
|
|
61691
|
+
type: String,
|
|
61692
|
+
default: () => 'el-icon-loading'
|
|
61693
|
+
},
|
|
61694
|
+
elementLoadingBackground: {
|
|
61695
|
+
type: String,
|
|
61696
|
+
default: () => 'rgba(0, 0, 0, 0.04)'
|
|
61697
|
+
},
|
|
61698
|
+
emptyText: {
|
|
61699
|
+
type: String,
|
|
61700
|
+
default: () => ''
|
|
61701
|
+
},
|
|
61702
|
+
showHeader: {
|
|
61703
|
+
type: Boolean,
|
|
61704
|
+
default: () => true
|
|
61745
61705
|
},
|
|
61746
61706
|
selection: {
|
|
61747
61707
|
type: Boolean,
|
|
61748
|
-
default: () =>
|
|
61708
|
+
default: () => true
|
|
61749
61709
|
},
|
|
61750
61710
|
showOverflowTooltip: {
|
|
61751
61711
|
type: Boolean,
|
|
61752
61712
|
default: () => true
|
|
61753
61713
|
},
|
|
61714
|
+
tooltipEffect: {
|
|
61715
|
+
type: String,
|
|
61716
|
+
default: () => 'light'
|
|
61717
|
+
},
|
|
61718
|
+
showSummary: {
|
|
61719
|
+
type: Boolean,
|
|
61720
|
+
default: () => false
|
|
61721
|
+
},
|
|
61722
|
+
sumText: {
|
|
61723
|
+
type: String,
|
|
61724
|
+
default: () => '合计'
|
|
61725
|
+
},
|
|
61754
61726
|
sortable: {
|
|
61755
61727
|
type: Boolean,
|
|
61756
61728
|
default: () => false
|
|
@@ -61777,6 +61749,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61777
61749
|
hasChildren: 'hasChildren'
|
|
61778
61750
|
})
|
|
61779
61751
|
},
|
|
61752
|
+
highlightCurrentRow: {
|
|
61753
|
+
type: Boolean,
|
|
61754
|
+
default: () => false
|
|
61755
|
+
},
|
|
61756
|
+
action: {
|
|
61757
|
+
type: Object,
|
|
61758
|
+
default: () => ({
|
|
61759
|
+
review: null,
|
|
61760
|
+
modify: null,
|
|
61761
|
+
update: null,
|
|
61762
|
+
handle: null,
|
|
61763
|
+
remove: null,
|
|
61764
|
+
delete: null,
|
|
61765
|
+
export: null
|
|
61766
|
+
})
|
|
61767
|
+
},
|
|
61780
61768
|
actionWidth: {
|
|
61781
61769
|
type: String,
|
|
61782
61770
|
default: () => '180px'
|
|
@@ -61785,138 +61773,168 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61785
61773
|
type: String,
|
|
61786
61774
|
default: () => '操作'
|
|
61787
61775
|
},
|
|
61788
|
-
formatTime: {
|
|
61789
|
-
type: Boolean,
|
|
61790
|
-
default: () => true
|
|
61791
|
-
},
|
|
61792
|
-
preview: {
|
|
61793
|
-
type: Boolean,
|
|
61794
|
-
default: () => false
|
|
61795
|
-
},
|
|
61796
61776
|
page: {
|
|
61797
61777
|
type: Boolean,
|
|
61798
|
-
default: () =>
|
|
61778
|
+
default: () => false
|
|
61799
61779
|
}
|
|
61800
61780
|
},
|
|
61801
|
-
|
|
61802
|
-
|
|
61803
|
-
loading: false
|
|
61804
|
-
};
|
|
61781
|
+
mounted() {
|
|
61782
|
+
this.$refs['b-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
61805
61783
|
},
|
|
61806
|
-
|
|
61807
|
-
this.
|
|
61808
|
-
this.create();
|
|
61784
|
+
beforeDestroy() {
|
|
61785
|
+
this.$refs['b-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
|
|
61809
61786
|
},
|
|
61810
|
-
|
|
61811
|
-
this
|
|
61787
|
+
destroyed() {
|
|
61788
|
+
this.create = null;
|
|
61789
|
+
this.search = null;
|
|
61790
|
+
this.select = null;
|
|
61791
|
+
this.choose = null;
|
|
61792
|
+
this.change = null;
|
|
61793
|
+
this.format = null;
|
|
61794
|
+
this.scroll = null;
|
|
61812
61795
|
},
|
|
61813
61796
|
methods: {
|
|
61814
|
-
create(
|
|
61797
|
+
create() {
|
|
61798
|
+
let column = [...this.column, this.suffix()];
|
|
61799
|
+
return column.map((a, b) => this.output(a, b));
|
|
61800
|
+
},
|
|
61801
|
+
output(a, b) {
|
|
61815
61802
|
const h = this.$createElement;
|
|
61816
|
-
if (
|
|
61817
|
-
|
|
61818
|
-
|
|
61819
|
-
|
|
61820
|
-
|
|
61803
|
+
if (a && Object.keys(a).length > 0) {
|
|
61804
|
+
let {
|
|
61805
|
+
type = null,
|
|
61806
|
+
render = null,
|
|
61807
|
+
header = null,
|
|
61808
|
+
...r
|
|
61809
|
+
} = a;
|
|
61810
|
+
let child = a.children || a.child || a.node || a.list || [];
|
|
61811
|
+
let field = a.field || a.index || a.name || a.prop;
|
|
61812
|
+
let label = a.label || a.title || a.text;
|
|
61813
|
+
let props = {
|
|
61814
|
+
key: b,
|
|
61815
|
+
prop: field,
|
|
61816
|
+
scopedSlot: field,
|
|
61817
|
+
sortable: field ? a.sortable ? a.sortable : this.sortable : false,
|
|
61818
|
+
formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
|
|
61819
|
+
showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
|
|
61820
|
+
...r
|
|
61821
|
+
};
|
|
61822
|
+
if (child.length > 0) {
|
|
61823
|
+
return h("el-table-column", {
|
|
61824
|
+
"key": b,
|
|
61825
|
+
"attrs": {
|
|
61826
|
+
"label": label
|
|
61827
|
+
}
|
|
61828
|
+
}, [child.map((c, d) => this.output(c, `${b}-${d}`))]);
|
|
61829
|
+
} else {
|
|
61830
|
+
return h("el-table-column", {
|
|
61831
|
+
"props": {
|
|
61832
|
+
...props
|
|
61833
|
+
}
|
|
61834
|
+
}, [h("template", {
|
|
61835
|
+
"slot": "header"
|
|
61836
|
+
}, [header ? () => header(r) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
|
|
61837
|
+
"attrs": {
|
|
61838
|
+
"content": label,
|
|
61839
|
+
"placement": "top"
|
|
61840
|
+
}
|
|
61841
|
+
}, [h("span", {
|
|
61842
|
+
"attrs": {
|
|
61843
|
+
"title": label
|
|
61844
|
+
}
|
|
61845
|
+
}, [label])]) : h("span", {
|
|
61846
|
+
"attrs": {
|
|
61847
|
+
"title": label
|
|
61848
|
+
}
|
|
61849
|
+
}, [label])])]);
|
|
61821
61850
|
}
|
|
61822
61851
|
}
|
|
61823
|
-
const actionColumn = () => {
|
|
61824
|
-
let data = [];
|
|
61825
|
-
const {
|
|
61826
|
-
review,
|
|
61827
|
-
modify,
|
|
61828
|
-
update,
|
|
61829
|
-
handle,
|
|
61830
|
-
remove
|
|
61831
|
-
} = this.$listeners;
|
|
61832
|
-
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
|
|
61833
|
-
data = [{
|
|
61834
|
-
label: this.actionTitle,
|
|
61835
|
-
fixed: 'right',
|
|
61836
|
-
align: 'center',
|
|
61837
|
-
width: this.actionWidth,
|
|
61838
|
-
render: item => h("div", {
|
|
61839
|
-
"class": "action"
|
|
61840
|
-
}, [review && h("i", {
|
|
61841
|
-
"class": "el-icon-view",
|
|
61842
|
-
"on": {
|
|
61843
|
-
"click": () => review(item)
|
|
61844
|
-
}
|
|
61845
|
-
}), modify && h("i", {
|
|
61846
|
-
"class": "el-icon-edit",
|
|
61847
|
-
"on": {
|
|
61848
|
-
"click": () => modify(item)
|
|
61849
|
-
}
|
|
61850
|
-
}), update && h("i", {
|
|
61851
|
-
"class": "el-icon-edit",
|
|
61852
|
-
"on": {
|
|
61853
|
-
"click": () => update(item)
|
|
61854
|
-
}
|
|
61855
|
-
}), handle && h("i", {
|
|
61856
|
-
"class": "el-icon-edit",
|
|
61857
|
-
"on": {
|
|
61858
|
-
"click": () => handle(item)
|
|
61859
|
-
}
|
|
61860
|
-
}), remove && h("Apopconfirm", {
|
|
61861
|
-
"on": {
|
|
61862
|
-
"submit": () => remove(item)
|
|
61863
|
-
}
|
|
61864
|
-
}), this.$listeners.delete && h("Apopconfirm", {
|
|
61865
|
-
"on": {
|
|
61866
|
-
"submit": () => this.$listeners.delete(item)
|
|
61867
|
-
}
|
|
61868
|
-
}), this.$listeners.export && h("i", {
|
|
61869
|
-
"class": "el-icon-download",
|
|
61870
|
-
"on": {
|
|
61871
|
-
"click": () => this.$listeners.export(item)
|
|
61872
|
-
}
|
|
61873
|
-
})])
|
|
61874
|
-
}];
|
|
61875
|
-
}
|
|
61876
|
-
return data;
|
|
61877
|
-
};
|
|
61878
|
-
const columnConfig = [...column, ...actionColumn()];
|
|
61879
|
-
return columnConfig.map((a, b) => {
|
|
61880
|
-
if (a) return h("el-table-column", {
|
|
61881
|
-
"key": b,
|
|
61882
|
-
"attrs": {
|
|
61883
|
-
"prop": a.field,
|
|
61884
|
-
"showOverflowTooltip": this.showOverflowTooltip,
|
|
61885
|
-
"sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
|
|
61886
|
-
"formatter": a.formatter ? (e, f, g, h) => a.formatter(e, h) : a.render ? (e, f, g, h) => a.render(e, h) : a.type ? (e, f, g, h) => this.format(a, b, e, h) : null
|
|
61887
|
-
},
|
|
61888
|
-
"props": {
|
|
61889
|
-
...a
|
|
61890
|
-
}
|
|
61891
|
-
});
|
|
61892
|
-
});
|
|
61893
61852
|
},
|
|
61894
|
-
|
|
61895
|
-
const
|
|
61896
|
-
|
|
61897
|
-
|
|
61898
|
-
|
|
61899
|
-
|
|
61900
|
-
|
|
61853
|
+
suffix() {
|
|
61854
|
+
const h = this.$createElement;
|
|
61855
|
+
if (this.action.review || this.action.modify || this.action.update || this.action.handle || this.action.remove || this.action.delete || this.action.export || this.$listeners.review || this.$listeners.modify || this.$listeners.update || this.$listeners.handle || this.$listeners.remove || this.$listeners.delete || this.$listeners.export) {
|
|
61856
|
+
return {
|
|
61857
|
+
fixed: 'right',
|
|
61858
|
+
align: 'center',
|
|
61859
|
+
width: this.actionWidth,
|
|
61860
|
+
label: this.actionTitle,
|
|
61861
|
+
formatter: item => h("div", {
|
|
61862
|
+
"class": "action"
|
|
61863
|
+
}, [this.action.review && h("i", {
|
|
61864
|
+
"class": "el-icon-view",
|
|
61865
|
+
"on": {
|
|
61866
|
+
"click": () => this.action.review(item)
|
|
61867
|
+
}
|
|
61868
|
+
}), this.action.modify && h("i", {
|
|
61869
|
+
"class": "el-icon-edit",
|
|
61870
|
+
"on": {
|
|
61871
|
+
"click": () => this.action.modify(item)
|
|
61872
|
+
}
|
|
61873
|
+
}), this.action.update && h("i", {
|
|
61874
|
+
"class": "el-icon-edit",
|
|
61875
|
+
"on": {
|
|
61876
|
+
"click": () => this.action.update(item)
|
|
61877
|
+
}
|
|
61878
|
+
}), this.action.handle && h("i", {
|
|
61879
|
+
"class": "el-icon-edit",
|
|
61880
|
+
"on": {
|
|
61881
|
+
"click": () => this.action.handle(item)
|
|
61882
|
+
}
|
|
61883
|
+
}), this.action.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
61884
|
+
"on": {
|
|
61885
|
+
"submit": () => this.action.remove(item)
|
|
61886
|
+
}
|
|
61887
|
+
}), this.action.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
61888
|
+
"on": {
|
|
61889
|
+
"submit": () => this.action.delete(item)
|
|
61890
|
+
}
|
|
61891
|
+
}), this.action.export && h("i", {
|
|
61892
|
+
"class": "el-icon-download",
|
|
61893
|
+
"on": {
|
|
61894
|
+
"click": () => this.action.export(item)
|
|
61895
|
+
}
|
|
61896
|
+
}), this.$listeners.review && h("i", {
|
|
61897
|
+
"class": "el-icon-view",
|
|
61898
|
+
"on": {
|
|
61899
|
+
"click": () => this.$listeners.review(item)
|
|
61900
|
+
}
|
|
61901
|
+
}), this.$listeners.modify && h("i", {
|
|
61902
|
+
"class": "el-icon-edit",
|
|
61903
|
+
"on": {
|
|
61904
|
+
"click": () => this.$listeners.modify(item)
|
|
61905
|
+
}
|
|
61906
|
+
}), this.$listeners.update && h("i", {
|
|
61907
|
+
"class": "el-icon-edit",
|
|
61908
|
+
"on": {
|
|
61909
|
+
"click": () => this.$listeners.update(item)
|
|
61910
|
+
}
|
|
61911
|
+
}), this.$listeners.handle && h("i", {
|
|
61912
|
+
"class": "el-icon-edit",
|
|
61913
|
+
"on": {
|
|
61914
|
+
"click": () => this.$listeners.handle(item)
|
|
61915
|
+
}
|
|
61916
|
+
}), this.$listeners.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
61917
|
+
"on": {
|
|
61918
|
+
"submit": () => this.$listeners.remove(item)
|
|
61919
|
+
}
|
|
61920
|
+
}), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
61921
|
+
"on": {
|
|
61922
|
+
"submit": () => this.$listeners.delete(item)
|
|
61923
|
+
}
|
|
61924
|
+
}), this.$listeners.export && h("i", {
|
|
61925
|
+
"class": "el-icon-download",
|
|
61926
|
+
"on": {
|
|
61927
|
+
"click": () => this.$listeners.export(item)
|
|
61928
|
+
}
|
|
61929
|
+
})])
|
|
61930
|
+
};
|
|
61931
|
+
}
|
|
61901
61932
|
},
|
|
61902
|
-
|
|
61903
|
-
|
|
61904
|
-
let time = new Date(timeStamp);
|
|
61905
|
-
const YYYY = time.getFullYear();
|
|
61906
|
-
const MM = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
|
|
61907
|
-
const DD = time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
|
|
61908
|
-
const H = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
|
|
61909
|
-
const M = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
|
|
61910
|
-
const S = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
|
|
61911
|
-
return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
|
|
61933
|
+
search(params = {}) {
|
|
61934
|
+
this.$emit('search', params);
|
|
61912
61935
|
},
|
|
61913
|
-
select(items) {
|
|
61914
|
-
this.$
|
|
61915
|
-
this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
|
|
61916
|
-
this.$emit('select', {
|
|
61917
|
-
rows: items,
|
|
61918
|
-
keys: items.map(a => a[this.rowKey])
|
|
61919
|
-
});
|
|
61936
|
+
select(items = []) {
|
|
61937
|
+
this.$emit('select', items);
|
|
61920
61938
|
},
|
|
61921
61939
|
choose(row, column, event) {
|
|
61922
61940
|
this.$emit('choose', {
|
|
@@ -61929,47 +61947,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61929
61947
|
page: 1,
|
|
61930
61948
|
size: 10
|
|
61931
61949
|
}) {
|
|
61932
|
-
this.$store.commit('changePageParams', pages);
|
|
61933
61950
|
this.$emit('change', pages);
|
|
61934
61951
|
this.search(pages);
|
|
61935
61952
|
},
|
|
61936
|
-
switch(name = '', symbol = '_') {
|
|
61937
|
-
return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
|
|
61938
|
-
},
|
|
61939
61953
|
format({
|
|
61940
|
-
|
|
61941
|
-
|
|
61942
|
-
|
|
61943
|
-
|
|
61944
|
-
|
|
61945
|
-
|
|
61946
|
-
|
|
61954
|
+
type = '',
|
|
61955
|
+
name = '',
|
|
61956
|
+
data = [],
|
|
61957
|
+
text = '',
|
|
61958
|
+
label = '',
|
|
61959
|
+
title = '',
|
|
61960
|
+
field = '',
|
|
61961
|
+
dicts = [],
|
|
61947
61962
|
...props
|
|
61948
61963
|
}, colIndex, item, rowIndex) {
|
|
61949
61964
|
const h = this.$createElement;
|
|
61950
|
-
if (
|
|
61951
|
-
|
|
61952
|
-
}, [item[field]]);
|
|
61953
|
-
if (type == 'select' || type == 'enume' || type == 'enumerate') {
|
|
61954
|
-
let dicts = [];
|
|
61955
|
-
if (this.optionApi != '' || action != '' || path != '') {
|
|
61956
|
-
let url = action != '' ? action : path != '' ? path : this.optionApi;
|
|
61957
|
-
let params = flag != '' ? {
|
|
61958
|
-
flag: this.switch(flag)
|
|
61959
|
-
} : {
|
|
61960
|
-
field: this.switch(field)
|
|
61961
|
-
};
|
|
61962
|
-
FN.get(url, params).then(({
|
|
61963
|
-
data
|
|
61964
|
-
}) => {
|
|
61965
|
-
if (data && data.length > 0) dicts = data;
|
|
61966
|
-
});
|
|
61967
|
-
}
|
|
61968
|
-
return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
61965
|
+
if (type == 'enume' || type == 'enumerate') {
|
|
61966
|
+
if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
61969
61967
|
"key": colIndex + '-' + rowIndex,
|
|
61970
61968
|
"attrs": {
|
|
61971
|
-
"field":
|
|
61972
|
-
"data": dicts
|
|
61969
|
+
"field": field,
|
|
61970
|
+
"data": dicts.length > 0 ? dicts : data
|
|
61973
61971
|
}
|
|
61974
61972
|
}, props, {
|
|
61975
61973
|
"model": {
|
|
@@ -61979,47 +61977,68 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61979
61977
|
}
|
|
61980
61978
|
}
|
|
61981
61979
|
}]));
|
|
61980
|
+
return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
61981
|
+
"key": colIndex + '-' + rowIndex,
|
|
61982
|
+
"attrs": {
|
|
61983
|
+
"field": name,
|
|
61984
|
+
"data": dicts.length > 0 ? dicts : data
|
|
61985
|
+
}
|
|
61986
|
+
}, props, {
|
|
61987
|
+
"model": {
|
|
61988
|
+
value: item[name],
|
|
61989
|
+
callback: $$v => {
|
|
61990
|
+
this.$set(item, name, $$v);
|
|
61991
|
+
}
|
|
61992
|
+
}
|
|
61993
|
+
}]));
|
|
61982
61994
|
}
|
|
61983
|
-
return h(
|
|
61995
|
+
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
61984
61996
|
"key": colIndex + '-' + rowIndex,
|
|
61985
61997
|
"attrs": {
|
|
61986
61998
|
"config": {
|
|
61987
61999
|
type,
|
|
61988
62000
|
form: item,
|
|
61989
|
-
|
|
61990
|
-
field:
|
|
61991
|
-
|
|
61992
|
-
table: true,
|
|
62001
|
+
dicts: dicts.length > 0 ? dicts : data,
|
|
62002
|
+
field: field != '' ? field : name != '' ? name : '',
|
|
62003
|
+
label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
|
|
61993
62004
|
...props
|
|
61994
62005
|
}
|
|
61995
62006
|
}
|
|
61996
62007
|
});
|
|
61997
62008
|
},
|
|
61998
|
-
scroll({
|
|
61999
|
-
|
|
62000
|
-
|
|
62001
|
-
|
|
62009
|
+
scroll(a) {
|
|
62010
|
+
let container = this.$refs['b-table'].bodyWrapper;
|
|
62011
|
+
if (container) {
|
|
62012
|
+
if (container.scrollHeight > container.clientHeight) {
|
|
62013
|
+
a.preventDefault();
|
|
62014
|
+
container.scrollTop += a.deltaY;
|
|
62015
|
+
} else {
|
|
62016
|
+
if (container.scrollWidth > container.clientWidth) {
|
|
62017
|
+
a.preventDefault();
|
|
62018
|
+
container.scrollLeft += a.deltaY;
|
|
62019
|
+
}
|
|
62020
|
+
}
|
|
62021
|
+
this.$emit('scroll', a);
|
|
62022
|
+
}
|
|
62002
62023
|
}
|
|
62003
62024
|
},
|
|
62004
62025
|
render() {
|
|
62005
62026
|
const h = arguments[0];
|
|
62006
|
-
const {
|
|
62007
|
-
data = [],
|
|
62008
|
-
size = 0
|
|
62009
|
-
} = this.record;
|
|
62010
|
-
const {
|
|
62011
|
-
pageParams
|
|
62012
|
-
} = this.$store.state;
|
|
62013
|
-
const condition = data && data.length > 0;
|
|
62014
62027
|
const {
|
|
62015
62028
|
...props
|
|
62016
62029
|
} = this.$attrs;
|
|
62030
|
+
const {
|
|
62031
|
+
...r
|
|
62032
|
+
} = this.record;
|
|
62033
|
+
const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
|
|
62034
|
+
const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
|
|
62035
|
+
const condition = data.length > 0;
|
|
62017
62036
|
return h("div", {
|
|
62018
|
-
"
|
|
62019
|
-
|
|
62020
|
-
|
|
62021
|
-
|
|
62022
|
-
|
|
62037
|
+
"style": {
|
|
62038
|
+
padding: this.margin
|
|
62039
|
+
}
|
|
62040
|
+
}, [h("div", {
|
|
62041
|
+
"class": this.border ? 'b-table' : 'b-table border'
|
|
62023
62042
|
}, [h("el-table", {
|
|
62024
62043
|
"ref": "b-table",
|
|
62025
62044
|
"attrs": {
|
|
@@ -62027,12 +62046,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62027
62046
|
"size": this.size,
|
|
62028
62047
|
"border": this.border,
|
|
62029
62048
|
"stripe": this.stripe,
|
|
62030
|
-
"column": this.column,
|
|
62031
62049
|
"row-key": this.rowKey,
|
|
62050
|
+
"max-height": this.maxHeight,
|
|
62051
|
+
"element-loading-text": this.elementLoadingText,
|
|
62052
|
+
"element-loading-spinner": this.elementLoadingSpinner,
|
|
62053
|
+
"element-loading-background": this.elementLoadingBackground,
|
|
62054
|
+
"show-header": this.showHeader,
|
|
62032
62055
|
"default-sort": this.defaultSort,
|
|
62056
|
+
"show-summary": this.showSummary,
|
|
62057
|
+
"tooltip-effect": this.tooltipEffect,
|
|
62058
|
+
"default-expand-all": this.defaultExpandAll,
|
|
62033
62059
|
"tree-props": this.tree ? this.treeProps : {},
|
|
62034
|
-
"
|
|
62060
|
+
"highlight-current-row": this.highlightCurrentRow
|
|
62035
62061
|
},
|
|
62062
|
+
"directives": [{
|
|
62063
|
+
name: "loading",
|
|
62064
|
+
value: this.loading
|
|
62065
|
+
}],
|
|
62036
62066
|
"on": {
|
|
62037
62067
|
"row-click": this.choose,
|
|
62038
62068
|
"selection-change": this.select
|
|
@@ -62040,28 +62070,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62040
62070
|
"props": {
|
|
62041
62071
|
...props
|
|
62042
62072
|
}
|
|
62043
|
-
}, [condition && this.selection && h("el-table-column", {
|
|
62073
|
+
}, [condition && (this.selection || this.$listeners.select) && h("el-table-column", {
|
|
62044
62074
|
"attrs": {
|
|
62045
62075
|
"fixed": "left",
|
|
62046
62076
|
"type": "selection",
|
|
62047
|
-
"width":
|
|
62077
|
+
"width": this.selectionWidth
|
|
62048
62078
|
}
|
|
62049
62079
|
}), condition && this.sort && h("el-table-column", {
|
|
62050
62080
|
"attrs": {
|
|
62051
62081
|
"fixed": "left",
|
|
62052
62082
|
"type": "index",
|
|
62053
|
-
"width":
|
|
62054
|
-
"label":
|
|
62083
|
+
"width": this.sortWidth,
|
|
62084
|
+
"label": this.sortTitle
|
|
62055
62085
|
}
|
|
62056
|
-
}), condition && this.create(
|
|
62086
|
+
}), condition && this.create(), condition && this.$slots.default, h("div", {
|
|
62087
|
+
"slot": "empty",
|
|
62088
|
+
"class": "empty"
|
|
62089
|
+
}, [!this.loading && h(_components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
62057
62090
|
"attrs": {
|
|
62058
|
-
"
|
|
62059
|
-
|
|
62091
|
+
"description": this.emptyText
|
|
62092
|
+
}
|
|
62093
|
+
})])]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
62094
|
+
"attrs": {
|
|
62095
|
+
"total": Number(size)
|
|
62060
62096
|
},
|
|
62061
62097
|
"on": {
|
|
62062
62098
|
"change": this.change
|
|
62063
62099
|
}
|
|
62064
|
-
})]);
|
|
62100
|
+
})])]);
|
|
62065
62101
|
}
|
|
62066
62102
|
});
|
|
62067
62103
|
|
|
@@ -63881,7 +63917,7 @@ exports.quadraticProjectPoint = quadraticProjectPoint;
|
|
|
63881
63917
|
// ESM COMPAT FLAG
|
|
63882
63918
|
__webpack_require__.r(__webpack_exports__);
|
|
63883
63919
|
|
|
63884
|
-
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Btree/index.vue?vue&type=template&id=
|
|
63920
|
+
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Btree/index.vue?vue&type=template&id=0981a61e&scoped=true&
|
|
63885
63921
|
var render = function render() {
|
|
63886
63922
|
var _vm = this,
|
|
63887
63923
|
_c = _vm._self._c;
|
|
@@ -63893,9 +63929,23 @@ var render = function render() {
|
|
|
63893
63929
|
expression: "loading"
|
|
63894
63930
|
}],
|
|
63895
63931
|
staticClass: "b-tree"
|
|
63896
|
-
}, [_c('el-
|
|
63932
|
+
}, [_vm.filter ? _c('el-input', {
|
|
63933
|
+
staticClass: "filter",
|
|
63934
|
+
attrs: {
|
|
63935
|
+
"size": "small",
|
|
63936
|
+
"placeholder": "输入关键字进行过滤"
|
|
63937
|
+
},
|
|
63938
|
+
model: {
|
|
63939
|
+
value: _vm.context,
|
|
63940
|
+
callback: function ($$v) {
|
|
63941
|
+
_vm.context = $$v;
|
|
63942
|
+
},
|
|
63943
|
+
expression: "context"
|
|
63944
|
+
}
|
|
63945
|
+
}) : _vm._e(), _c('el-tree', {
|
|
63897
63946
|
ref: "bTree",
|
|
63898
63947
|
attrs: {
|
|
63948
|
+
"accordion": _vm.accordion,
|
|
63899
63949
|
"show-checkbox": _vm.showCheckbox,
|
|
63900
63950
|
"check-strictly": _vm.checkStrictly,
|
|
63901
63951
|
"node-key": _vm.nodeKey,
|
|
@@ -63931,7 +63981,7 @@ var render = function render() {
|
|
|
63931
63981
|
};
|
|
63932
63982
|
var staticRenderFns = [];
|
|
63933
63983
|
|
|
63934
|
-
// CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=template&id=
|
|
63984
|
+
// CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=template&id=0981a61e&scoped=true&
|
|
63935
63985
|
|
|
63936
63986
|
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Btree/index.vue?vue&type=script&lang=js&
|
|
63937
63987
|
/* harmony default export */ var Btreevue_type_script_lang_js_ = ({
|
|
@@ -63941,6 +63991,14 @@ var staticRenderFns = [];
|
|
|
63941
63991
|
type: Boolean,
|
|
63942
63992
|
default: () => false
|
|
63943
63993
|
},
|
|
63994
|
+
accordion: {
|
|
63995
|
+
type: Boolean,
|
|
63996
|
+
default: () => false
|
|
63997
|
+
},
|
|
63998
|
+
filter: {
|
|
63999
|
+
type: Boolean,
|
|
64000
|
+
default: () => true
|
|
64001
|
+
},
|
|
63944
64002
|
showCheckbox: {
|
|
63945
64003
|
type: Boolean,
|
|
63946
64004
|
default: () => true
|
|
@@ -64002,7 +64060,8 @@ var staticRenderFns = [];
|
|
|
64002
64060
|
},
|
|
64003
64061
|
halfCheckedKeys: [],
|
|
64004
64062
|
checkedKeys: [],
|
|
64005
|
-
selectedRow: {}
|
|
64063
|
+
selectedRow: {},
|
|
64064
|
+
context: ''
|
|
64006
64065
|
};
|
|
64007
64066
|
},
|
|
64008
64067
|
watch: {
|
|
@@ -64011,6 +64070,9 @@ var staticRenderFns = [];
|
|
|
64011
64070
|
},
|
|
64012
64071
|
defaultCheckedKeys() {
|
|
64013
64072
|
this.create();
|
|
64073
|
+
},
|
|
64074
|
+
context(value) {
|
|
64075
|
+
this.$refs['bTree'].filter(value);
|
|
64014
64076
|
}
|
|
64015
64077
|
},
|
|
64016
64078
|
mounted() {
|
|
@@ -64020,6 +64082,10 @@ var staticRenderFns = [];
|
|
|
64020
64082
|
this.update();
|
|
64021
64083
|
},
|
|
64022
64084
|
methods: {
|
|
64085
|
+
search(value, data) {
|
|
64086
|
+
if (!value) return true;
|
|
64087
|
+
return data[this.labelKey].indexOf(value) != -1;
|
|
64088
|
+
},
|
|
64023
64089
|
create() {
|
|
64024
64090
|
this.checkedKeys = this.defaultCheckedKeys.filter(a => a != 0);
|
|
64025
64091
|
this.$nextTick(() => {
|
|
@@ -64065,8 +64131,8 @@ var staticRenderFns = [];
|
|
|
64065
64131
|
});
|
|
64066
64132
|
// CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=script&lang=js&
|
|
64067
64133
|
/* harmony default export */ var components_Btreevue_type_script_lang_js_ = (Btreevue_type_script_lang_js_);
|
|
64068
|
-
// EXTERNAL MODULE: ./src/components/Btree/index.vue?vue&type=style&index=0&id=
|
|
64069
|
-
var
|
|
64134
|
+
// EXTERNAL MODULE: ./src/components/Btree/index.vue?vue&type=style&index=0&id=0981a61e&prod&scoped=true&lang=css&
|
|
64135
|
+
var Btreevue_type_style_index_0_id_0981a61e_prod_scoped_true_lang_css_ = __webpack_require__("a749");
|
|
64070
64136
|
|
|
64071
64137
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
64072
64138
|
var componentNormalizer = __webpack_require__("e607");
|
|
@@ -64086,7 +64152,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
64086
64152
|
staticRenderFns,
|
|
64087
64153
|
false,
|
|
64088
64154
|
null,
|
|
64089
|
-
"
|
|
64155
|
+
"0981a61e",
|
|
64090
64156
|
null
|
|
64091
64157
|
|
|
64092
64158
|
)
|
|
@@ -127357,6 +127423,17 @@ function layout(gridModel, axisModel, opt) {
|
|
|
127357
127423
|
|
|
127358
127424
|
exports.layout = layout;
|
|
127359
127425
|
|
|
127426
|
+
/***/ }),
|
|
127427
|
+
|
|
127428
|
+
/***/ "a749":
|
|
127429
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127430
|
+
|
|
127431
|
+
"use strict";
|
|
127432
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_0981a61e_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5bf5");
|
|
127433
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_0981a61e_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_0981a61e_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
127434
|
+
/* unused harmony reexport * */
|
|
127435
|
+
|
|
127436
|
+
|
|
127360
127437
|
/***/ }),
|
|
127361
127438
|
|
|
127362
127439
|
/***/ "a777":
|
|
@@ -132867,13 +132944,6 @@ exports.estimateLabelUnionRect = estimateLabelUnionRect;
|
|
|
132867
132944
|
|
|
132868
132945
|
/***/ }),
|
|
132869
132946
|
|
|
132870
|
-
/***/ "b33c":
|
|
132871
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
132872
|
-
|
|
132873
|
-
// extracted by mini-css-extract-plugin
|
|
132874
|
-
|
|
132875
|
-
/***/ }),
|
|
132876
|
-
|
|
132877
132947
|
/***/ "b349":
|
|
132878
132948
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
132879
132949
|
|
|
@@ -134245,7 +134315,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134245
134315
|
dragstart(a) {
|
|
134246
134316
|
if (this.draggable) {
|
|
134247
134317
|
a.dataTransfer.setData(this.dragType, this.id);
|
|
134248
|
-
this.$store.commit('
|
|
134318
|
+
this.$store.commit('setDragId', this.id);
|
|
134249
134319
|
this.$emit('dragstart', a);
|
|
134250
134320
|
}
|
|
134251
134321
|
},
|
|
@@ -136137,27 +136207,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136137
136207
|
},
|
|
136138
136208
|
methods: {
|
|
136139
136209
|
create() {
|
|
136140
|
-
const h = this.$createElement;
|
|
136141
136210
|
let column = [...this.column, this.suffix()];
|
|
136142
|
-
return column.map((a, b) =>
|
|
136143
|
-
|
|
136144
|
-
|
|
136145
|
-
|
|
136146
|
-
|
|
136147
|
-
|
|
136148
|
-
|
|
136149
|
-
|
|
136150
|
-
|
|
136151
|
-
|
|
136152
|
-
|
|
136153
|
-
|
|
136154
|
-
|
|
136155
|
-
|
|
136156
|
-
|
|
136157
|
-
|
|
136158
|
-
|
|
136159
|
-
|
|
136160
|
-
|
|
136211
|
+
return column.map((a, b) => this.output(a, b));
|
|
136212
|
+
},
|
|
136213
|
+
output(a, b) {
|
|
136214
|
+
const h = this.$createElement;
|
|
136215
|
+
if (a && Object.keys(a).length > 0) {
|
|
136216
|
+
let {
|
|
136217
|
+
type = null,
|
|
136218
|
+
render = null,
|
|
136219
|
+
header = null,
|
|
136220
|
+
...r
|
|
136221
|
+
} = a;
|
|
136222
|
+
let child = a.children || a.child || a.node || a.list || [];
|
|
136223
|
+
let field = a.field || a.index || a.name || a.prop;
|
|
136224
|
+
let label = a.label || a.title || a.text;
|
|
136225
|
+
let props = {
|
|
136226
|
+
key: b,
|
|
136227
|
+
prop: field,
|
|
136228
|
+
scopedSlot: field,
|
|
136229
|
+
sortable: field ? a.sortable ? a.sortable : this.sortable : false,
|
|
136230
|
+
formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
|
|
136231
|
+
showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
|
|
136232
|
+
...r
|
|
136233
|
+
};
|
|
136234
|
+
if (child.length > 0) {
|
|
136235
|
+
return h("el-table-column", {
|
|
136236
|
+
"key": b,
|
|
136237
|
+
"attrs": {
|
|
136238
|
+
"label": label
|
|
136239
|
+
}
|
|
136240
|
+
}, [child.map((c, d) => this.output(c, `${b}-${d}`))]);
|
|
136241
|
+
} else {
|
|
136161
136242
|
return h("el-table-column", {
|
|
136162
136243
|
"props": {
|
|
136163
136244
|
...props
|
|
@@ -136179,7 +136260,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136179
136260
|
}
|
|
136180
136261
|
}, [label])])]);
|
|
136181
136262
|
}
|
|
136182
|
-
}
|
|
136263
|
+
}
|
|
136183
136264
|
},
|
|
136184
136265
|
suffix() {
|
|
136185
136266
|
const h = this.$createElement;
|
|
@@ -136270,8 +136351,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136270
136351
|
this.$emit('search', formatParams);
|
|
136271
136352
|
},
|
|
136272
136353
|
select(items = []) {
|
|
136273
|
-
this.$store.commit('
|
|
136274
|
-
this.$store.commit('
|
|
136354
|
+
this.$store.commit('setSelectedRows', items);
|
|
136355
|
+
this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
|
|
136275
136356
|
this.$emit('select', {
|
|
136276
136357
|
rows: items,
|
|
136277
136358
|
keys: items.map(a => a[this.rowKey])
|
|
@@ -136288,7 +136369,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136288
136369
|
page: 1,
|
|
136289
136370
|
size: 10
|
|
136290
136371
|
}) {
|
|
136291
|
-
this.$store.commit('
|
|
136372
|
+
this.$store.commit('setPageParams', pages);
|
|
136292
136373
|
this.$emit('change', pages);
|
|
136293
136374
|
this.search(pages);
|
|
136294
136375
|
},
|
|
@@ -147990,7 +148071,7 @@ module.exports = _default;
|
|
|
147990
148071
|
// ESM COMPAT FLAG
|
|
147991
148072
|
__webpack_require__.r(__webpack_exports__);
|
|
147992
148073
|
|
|
147993
|
-
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atree/index.vue?vue&type=template&id=
|
|
148074
|
+
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7125891e-vue-loader-template"}!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atree/index.vue?vue&type=template&id=446b4709&scoped=true&
|
|
147994
148075
|
var render = function render() {
|
|
147995
148076
|
var _vm = this,
|
|
147996
148077
|
_c = _vm._self._c;
|
|
@@ -148002,9 +148083,23 @@ var render = function render() {
|
|
|
148002
148083
|
expression: "loading"
|
|
148003
148084
|
}],
|
|
148004
148085
|
staticClass: "a-tree"
|
|
148005
|
-
}, [_vm.
|
|
148086
|
+
}, [_vm.filter ? _c('el-input', {
|
|
148087
|
+
staticClass: "filter",
|
|
148088
|
+
attrs: {
|
|
148089
|
+
"size": "small",
|
|
148090
|
+
"placeholder": "输入关键字进行过滤"
|
|
148091
|
+
},
|
|
148092
|
+
model: {
|
|
148093
|
+
value: _vm.context,
|
|
148094
|
+
callback: function ($$v) {
|
|
148095
|
+
_vm.context = $$v;
|
|
148096
|
+
},
|
|
148097
|
+
expression: "context"
|
|
148098
|
+
}
|
|
148099
|
+
}) : _vm._e(), _vm.horizontal ? _c('el-tree', {
|
|
148006
148100
|
ref: "aTree",
|
|
148007
148101
|
attrs: {
|
|
148102
|
+
"accordion": _vm.accordion,
|
|
148008
148103
|
"show-checkbox": _vm.showCheckbox,
|
|
148009
148104
|
"check-strictly": _vm.checkStrictly,
|
|
148010
148105
|
"iconClass": _vm.iconClass != '' ? _vm.iconClass : '',
|
|
@@ -148017,7 +148112,8 @@ var render = function render() {
|
|
|
148017
148112
|
"check-on-click-node": _vm.checkOnClickNode,
|
|
148018
148113
|
"auto-expand-parent": _vm.autoExpandParent,
|
|
148019
148114
|
"default-expanded-keys": _vm.checkedKeys,
|
|
148020
|
-
"draggable": _vm.draggable
|
|
148115
|
+
"draggable": _vm.draggable,
|
|
148116
|
+
"filter-node-method": _vm.search
|
|
148021
148117
|
},
|
|
148022
148118
|
on: {
|
|
148023
148119
|
"node-click": _vm.nodeClick,
|
|
@@ -148028,6 +148124,7 @@ var render = function render() {
|
|
|
148028
148124
|
}) : _c('el-tree', {
|
|
148029
148125
|
ref: "aTree",
|
|
148030
148126
|
attrs: {
|
|
148127
|
+
"accordion": _vm.accordion,
|
|
148031
148128
|
"show-checkbox": _vm.showCheckbox,
|
|
148032
148129
|
"check-strictly": _vm.checkStrictly,
|
|
148033
148130
|
"iconClass": _vm.iconClass != '' ? _vm.iconClass : '',
|
|
@@ -148039,7 +148136,8 @@ var render = function render() {
|
|
|
148039
148136
|
"check-on-click-node": _vm.checkOnClickNode,
|
|
148040
148137
|
"auto-expand-parent": _vm.autoExpandParent,
|
|
148041
148138
|
"default-expanded-keys": _vm.checkedKeys,
|
|
148042
|
-
"draggable": _vm.draggable
|
|
148139
|
+
"draggable": _vm.draggable,
|
|
148140
|
+
"filter-node-method": _vm.search
|
|
148043
148141
|
},
|
|
148044
148142
|
on: {
|
|
148045
148143
|
"node-click": _vm.nodeClick,
|
|
@@ -148051,7 +148149,7 @@ var render = function render() {
|
|
|
148051
148149
|
};
|
|
148052
148150
|
var staticRenderFns = [];
|
|
148053
148151
|
|
|
148054
|
-
// CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=
|
|
148152
|
+
// CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=446b4709&scoped=true&
|
|
148055
148153
|
|
|
148056
148154
|
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--1-0!./node_modules/_vue-loader@15.10.1@vue-loader/lib??vue-loader-options!./src/components/Atree/index.vue?vue&type=script&lang=js&
|
|
148057
148155
|
/* harmony default export */ var Atreevue_type_script_lang_js_ = ({
|
|
@@ -148061,6 +148159,14 @@ var staticRenderFns = [];
|
|
|
148061
148159
|
type: Boolean,
|
|
148062
148160
|
default: () => false
|
|
148063
148161
|
},
|
|
148162
|
+
accordion: {
|
|
148163
|
+
type: Boolean,
|
|
148164
|
+
default: () => false
|
|
148165
|
+
},
|
|
148166
|
+
filter: {
|
|
148167
|
+
type: Boolean,
|
|
148168
|
+
default: () => true
|
|
148169
|
+
},
|
|
148064
148170
|
showCheckbox: {
|
|
148065
148171
|
type: Boolean,
|
|
148066
148172
|
default: () => true
|
|
@@ -148130,7 +148236,8 @@ var staticRenderFns = [];
|
|
|
148130
148236
|
},
|
|
148131
148237
|
halfCheckedKeys: [],
|
|
148132
148238
|
checkedKeys: [],
|
|
148133
|
-
selectedRow: {}
|
|
148239
|
+
selectedRow: {},
|
|
148240
|
+
context: ''
|
|
148134
148241
|
};
|
|
148135
148242
|
},
|
|
148136
148243
|
watch: {
|
|
@@ -148139,6 +148246,9 @@ var staticRenderFns = [];
|
|
|
148139
148246
|
},
|
|
148140
148247
|
defaultCheckedKeys() {
|
|
148141
148248
|
this.create();
|
|
148249
|
+
},
|
|
148250
|
+
context(value) {
|
|
148251
|
+
this.$refs['aTree'].filter(value);
|
|
148142
148252
|
}
|
|
148143
148253
|
},
|
|
148144
148254
|
mounted() {
|
|
@@ -148148,6 +148258,10 @@ var staticRenderFns = [];
|
|
|
148148
148258
|
this.update();
|
|
148149
148259
|
},
|
|
148150
148260
|
methods: {
|
|
148261
|
+
search(value, data) {
|
|
148262
|
+
if (!value) return true;
|
|
148263
|
+
return data[this.labelKey].indexOf(value) != -1;
|
|
148264
|
+
},
|
|
148151
148265
|
format(h, {
|
|
148152
148266
|
node,
|
|
148153
148267
|
data,
|
|
@@ -148208,8 +148322,8 @@ var staticRenderFns = [];
|
|
|
148208
148322
|
});
|
|
148209
148323
|
// CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=script&lang=js&
|
|
148210
148324
|
/* harmony default export */ var components_Atreevue_type_script_lang_js_ = (Atreevue_type_script_lang_js_);
|
|
148211
|
-
// EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=
|
|
148212
|
-
var
|
|
148325
|
+
// EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=446b4709&prod&scoped=true&lang=css&
|
|
148326
|
+
var Atreevue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css_ = __webpack_require__("5934");
|
|
148213
148327
|
|
|
148214
148328
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
148215
148329
|
var componentNormalizer = __webpack_require__("e607");
|
|
@@ -148229,7 +148343,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
148229
148343
|
staticRenderFns,
|
|
148230
148344
|
false,
|
|
148231
148345
|
null,
|
|
148232
|
-
"
|
|
148346
|
+
"446b4709",
|
|
148233
148347
|
null
|
|
148234
148348
|
|
|
148235
148349
|
)
|
|
@@ -159743,7 +159857,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159743
159857
|
"attrs": {
|
|
159744
159858
|
"type": type,
|
|
159745
159859
|
"size": size,
|
|
159746
|
-
"disabled": disabled || selectedKeys == 0
|
|
159860
|
+
"disabled": disabled || selectedKeys.length == 0
|
|
159747
159861
|
},
|
|
159748
159862
|
"on": {
|
|
159749
159863
|
"click": e => this.select(a, e)
|
|
@@ -159758,7 +159872,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159758
159872
|
"attrs": {
|
|
159759
159873
|
"type": "danger",
|
|
159760
159874
|
"size": size,
|
|
159761
|
-
"disabled": disabled || selectedKeys == 0
|
|
159875
|
+
"disabled": disabled || selectedKeys.length == 0
|
|
159762
159876
|
},
|
|
159763
159877
|
"on": {
|
|
159764
159878
|
"click": e => this.select(a, e)
|
|
@@ -159773,7 +159887,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159773
159887
|
"attrs": {
|
|
159774
159888
|
"type": "danger",
|
|
159775
159889
|
"size": size,
|
|
159776
|
-
"disabled": disabled || selectedKeys == 0
|
|
159890
|
+
"disabled": disabled || selectedKeys.length == 0
|
|
159777
159891
|
},
|
|
159778
159892
|
"on": {
|
|
159779
159893
|
"click": e => this.select(a, e)
|
|
@@ -159851,6 +159965,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159851
159965
|
|
|
159852
159966
|
/***/ }),
|
|
159853
159967
|
|
|
159968
|
+
/***/ "e95a":
|
|
159969
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
159970
|
+
|
|
159971
|
+
// extracted by mini-css-extract-plugin
|
|
159972
|
+
|
|
159973
|
+
/***/ }),
|
|
159974
|
+
|
|
159854
159975
|
/***/ "e9e0":
|
|
159855
159976
|
/***/ (function(module, exports, __webpack_require__) {
|
|
159856
159977
|
|
|
@@ -162350,6 +162471,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162350
162471
|
type: String,
|
|
162351
162472
|
default: () => ''
|
|
162352
162473
|
},
|
|
162474
|
+
margin: {
|
|
162475
|
+
type: String,
|
|
162476
|
+
default: () => '0'
|
|
162477
|
+
},
|
|
162353
162478
|
padding: {
|
|
162354
162479
|
type: String,
|
|
162355
162480
|
default: () => '20px'
|
|
@@ -162394,7 +162519,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162394
162519
|
dragstart(a) {
|
|
162395
162520
|
if (this.draggable) {
|
|
162396
162521
|
a.dataTransfer.setData(this.dragType, this.id);
|
|
162397
|
-
this.$store.commit('
|
|
162522
|
+
this.$store.commit('setDragId', this.id);
|
|
162398
162523
|
this.$emit('dragstart', a);
|
|
162399
162524
|
}
|
|
162400
162525
|
},
|
|
@@ -162437,7 +162562,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162437
162562
|
this.animate(draging, dragPostion);
|
|
162438
162563
|
this.animate(droping, dropPostion);
|
|
162439
162564
|
}
|
|
162440
|
-
this.$store.commit('
|
|
162565
|
+
this.$store.commit('setDropId', this.id);
|
|
162441
162566
|
this.$emit('drop', a);
|
|
162442
162567
|
}
|
|
162443
162568
|
},
|
|
@@ -162489,6 +162614,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162489
162614
|
...props
|
|
162490
162615
|
} = this.$attrs;
|
|
162491
162616
|
return h("div", {
|
|
162617
|
+
"style": {
|
|
162618
|
+
padding: this.margin
|
|
162619
|
+
}
|
|
162620
|
+
}, [h("div", {
|
|
162492
162621
|
"attrs": {
|
|
162493
162622
|
"id": this.id
|
|
162494
162623
|
},
|
|
@@ -162556,7 +162685,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162556
162685
|
"size": "small",
|
|
162557
162686
|
"disabled": this.loading
|
|
162558
162687
|
}
|
|
162559
|
-
}, [this.cancelText]), this.actionRender])]);
|
|
162688
|
+
}, [this.cancelText]), this.actionRender])])]);
|
|
162560
162689
|
}
|
|
162561
162690
|
});
|
|
162562
162691
|
|
|
@@ -165364,17 +165493,6 @@ Clip.prototype = {
|
|
|
165364
165493
|
var _default = Clip;
|
|
165365
165494
|
module.exports = _default;
|
|
165366
165495
|
|
|
165367
|
-
/***/ }),
|
|
165368
|
-
|
|
165369
|
-
/***/ "f8b1":
|
|
165370
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
165371
|
-
|
|
165372
|
-
"use strict";
|
|
165373
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_8c6268f6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("731e");
|
|
165374
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_8c6268f6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_15_10_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_15_10_1_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_8c6268f6_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
165375
|
-
/* unused harmony reexport * */
|
|
165376
|
-
|
|
165377
|
-
|
|
165378
165496
|
/***/ }),
|
|
165379
165497
|
|
|
165380
165498
|
/***/ "f8d0":
|
|
@@ -167003,7 +167121,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167003
167121
|
},
|
|
167004
167122
|
inline: {
|
|
167005
167123
|
type: Boolean,
|
|
167006
|
-
default: () =>
|
|
167124
|
+
default: () => false
|
|
167007
167125
|
},
|
|
167008
167126
|
cols: {
|
|
167009
167127
|
type: String,
|
|
@@ -167052,21 +167170,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167052
167170
|
},
|
|
167053
167171
|
data() {
|
|
167054
167172
|
return {
|
|
167055
|
-
form: {}
|
|
167173
|
+
form: {},
|
|
167174
|
+
height: 0,
|
|
167175
|
+
opened: false
|
|
167056
167176
|
};
|
|
167057
167177
|
},
|
|
167058
167178
|
created() {
|
|
167059
167179
|
this.create();
|
|
167060
167180
|
},
|
|
167061
|
-
mounted() {
|
|
167181
|
+
mounted() {
|
|
167182
|
+
this.update();
|
|
167183
|
+
},
|
|
167062
167184
|
destroyed() {
|
|
167063
167185
|
this.create = null;
|
|
167186
|
+
this.update = null;
|
|
167064
167187
|
this.submit = null;
|
|
167065
167188
|
this.cancel = null;
|
|
167066
167189
|
this.filter = null;
|
|
167067
167190
|
this.result = null;
|
|
167191
|
+
this.switch = null;
|
|
167068
167192
|
this.prompt = null;
|
|
167069
167193
|
this.format = null;
|
|
167194
|
+
this.output = null;
|
|
167070
167195
|
},
|
|
167071
167196
|
watch: {
|
|
167072
167197
|
values() {
|
|
@@ -167083,43 +167208,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167083
167208
|
this.form = data;
|
|
167084
167209
|
}
|
|
167085
167210
|
},
|
|
167211
|
+
update() {
|
|
167212
|
+
let rows = Math.ceil(Object.keys(this.config).length / this.cols);
|
|
167213
|
+
this.height = this.$el.clientHeight * (rows - 1);
|
|
167214
|
+
},
|
|
167086
167215
|
submit(e) {
|
|
167087
167216
|
// 提交表单
|
|
167088
167217
|
e && e.preventDefault();
|
|
167089
167218
|
let pass = !this.check; // 判断是否是空表单
|
|
167090
|
-
for (let a in this.form) if (this.form[a]
|
|
167219
|
+
for (let a in this.form) if (this.form[a] != '') pass = true;
|
|
167091
167220
|
let data = {};
|
|
167092
167221
|
if (Object.keys(this.config).length > 0) {
|
|
167093
167222
|
// 格式化属性为模糊查询属性
|
|
167094
167223
|
for (let a in this.config) {
|
|
167095
|
-
if (this.config[a] != '' && this.config[a].like && this.form[a]
|
|
167096
|
-
if (this.config[a].like == 'left') data[a] = '%' + this.form[a]
|
|
167097
|
-
if (this.config[a].like == 'right') data[a] = this.form[a]
|
|
167224
|
+
if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
|
|
167225
|
+
if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
|
|
167226
|
+
if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
|
|
167098
167227
|
} else {
|
|
167099
167228
|
if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
|
|
167100
|
-
data[`${a}LE`] = this.form[`${a}LE`]
|
|
167101
|
-
data[`${a}GE`] = this.form[`${a}GE`]
|
|
167102
|
-
} else if (this.form[a].
|
|
167229
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
167230
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
167231
|
+
} else if (this.form[a].includes(' 00:00:00')) data[a] = '%' + this.form[a].split(' 00:00:00')[0] + '%';else data[a] = this.form[a];
|
|
167103
167232
|
}
|
|
167104
167233
|
}
|
|
167105
167234
|
}
|
|
167106
167235
|
if (pass) {
|
|
167107
167236
|
let result = this.filter(data);
|
|
167108
|
-
const {
|
|
167109
|
-
formParams,
|
|
167110
|
-
pageParams
|
|
167111
|
-
} = this.$store.state;
|
|
167112
|
-
this.$store.commit('changeFormParams', result); // 添加查询参数
|
|
167113
|
-
this.$store.commit('changePageParams', {
|
|
167114
|
-
...pageParams,
|
|
167115
|
-
page: 1
|
|
167116
|
-
}); // 重置分页参数
|
|
167117
167237
|
this.$nextTick(() => {
|
|
167118
|
-
|
|
167119
|
-
Object.keys(result).forEach(a => result[a] != formParams[a] && (change = true));
|
|
167120
|
-
if (change) this.$emit('submit', {
|
|
167238
|
+
this.$emit('submit', {
|
|
167121
167239
|
...result,
|
|
167122
|
-
...pageParams,
|
|
167123
167240
|
page: 1
|
|
167124
167241
|
}); // 派发事件并重置当前分页
|
|
167125
167242
|
return result;
|
|
@@ -167132,15 +167249,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167132
167249
|
let pass = !this.check; // 判断是否是空表单
|
|
167133
167250
|
for (let a in this.form) if (this.form[a] != '') pass = true;
|
|
167134
167251
|
if (pass) {
|
|
167135
|
-
const {
|
|
167136
|
-
pageParams
|
|
167137
|
-
} = this.$store.state;
|
|
167138
|
-
this.$store.commit('changePageParams', {
|
|
167139
|
-
...pageParams,
|
|
167140
|
-
page: 1,
|
|
167141
|
-
size: 10
|
|
167142
|
-
}); // 重置分页参数
|
|
167143
|
-
this.$store.commit('changeFormParams', {}); // 重置查询参数
|
|
167144
167252
|
this.$nextTick(() => {
|
|
167145
167253
|
for (let a in this.form) this.form[a] = '';
|
|
167146
167254
|
this.$nextTick(() => this.$emit('cancel', this.form));
|
|
@@ -167148,19 +167256,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167148
167256
|
}
|
|
167149
167257
|
},
|
|
167150
167258
|
filter(form = {}) {
|
|
167151
|
-
// 过滤空值属性
|
|
167152
167259
|
const data = {};
|
|
167153
167260
|
for (let a in form) {
|
|
167154
|
-
if (
|
|
167155
|
-
data[a] = form[a];
|
|
167156
|
-
}
|
|
167261
|
+
if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
|
|
167157
167262
|
}
|
|
167158
167263
|
return data;
|
|
167159
167264
|
},
|
|
167160
167265
|
result() {
|
|
167161
|
-
// 返回验证后的表单数据
|
|
167162
167266
|
return this.filter(this.form);
|
|
167163
167267
|
},
|
|
167268
|
+
switch() {
|
|
167269
|
+
this.opened = !this.opened;
|
|
167270
|
+
},
|
|
167164
167271
|
prompt(a = {}, index = 0, placeholder = '') {
|
|
167165
167272
|
if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
|
|
167166
167273
|
return placeholder;
|
|
@@ -167189,6 +167296,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167189
167296
|
}
|
|
167190
167297
|
});
|
|
167191
167298
|
}
|
|
167299
|
+
},
|
|
167300
|
+
output(a, b) {
|
|
167301
|
+
const h = this.$createElement;
|
|
167302
|
+
let style = this.cols != '' ? {
|
|
167303
|
+
width: `${100 / this.cols}%`
|
|
167304
|
+
} : {};
|
|
167305
|
+
return h("el-col", {
|
|
167306
|
+
"key": b,
|
|
167307
|
+
"style": style
|
|
167308
|
+
}, [h("el-form-item", {
|
|
167309
|
+
"attrs": {
|
|
167310
|
+
"prop": `${a}`,
|
|
167311
|
+
"label": this.label ? this.config[a]['text'] : ''
|
|
167312
|
+
}
|
|
167313
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
167314
|
+
"class": "range-cols"
|
|
167315
|
+
}, [h("el-col", {
|
|
167316
|
+
"attrs": {
|
|
167317
|
+
"span": 12
|
|
167318
|
+
}
|
|
167319
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
167320
|
+
"attrs": {
|
|
167321
|
+
"span": 12
|
|
167322
|
+
}
|
|
167323
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
|
|
167192
167324
|
}
|
|
167193
167325
|
},
|
|
167194
167326
|
render() {
|
|
@@ -167200,10 +167332,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167200
167332
|
submit = null,
|
|
167201
167333
|
cancel = null
|
|
167202
167334
|
} = this.$listeners;
|
|
167203
|
-
let style = this.cols != '' ? {
|
|
167204
|
-
width: `${100 / this.cols}%`
|
|
167205
|
-
} : {};
|
|
167206
|
-
let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
|
|
167207
167335
|
return h("div", {
|
|
167208
167336
|
"class": "b-f-search",
|
|
167209
167337
|
"style": {
|
|
@@ -167212,7 +167340,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167212
167340
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
167213
167341
|
"ref": "form",
|
|
167214
167342
|
"attrs": {
|
|
167215
|
-
"size": this.size
|
|
167343
|
+
"size": this.size,
|
|
167344
|
+
"inline": this.inline
|
|
167216
167345
|
}
|
|
167217
167346
|
}, {
|
|
167218
167347
|
"props": {
|
|
@@ -167224,38 +167353,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167224
167353
|
"labelWidth": this.labelWidth,
|
|
167225
167354
|
"labelPosition": this.labelPosition
|
|
167226
167355
|
}
|
|
167227
|
-
}]), [h("
|
|
167356
|
+
}]), [h("div", {
|
|
167357
|
+
"class": "column"
|
|
167358
|
+
}, [h("el-row", {
|
|
167228
167359
|
"attrs": {
|
|
167229
167360
|
"gutter": Number(this.gutter)
|
|
167230
|
-
}
|
|
167231
|
-
|
|
167232
|
-
|
|
167233
|
-
"class": "column",
|
|
167234
|
-
"style": style
|
|
167235
|
-
}, [h("el-form-item", {
|
|
167361
|
+
},
|
|
167362
|
+
"class": "main-row"
|
|
167363
|
+
}, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
|
|
167236
167364
|
"attrs": {
|
|
167237
|
-
"
|
|
167238
|
-
|
|
167365
|
+
"gutter": Number(this.gutter)
|
|
167366
|
+
},
|
|
167367
|
+
"class": "fold-row",
|
|
167368
|
+
"style": {
|
|
167369
|
+
height: this.opened ? `${this.height}px` : '0'
|
|
167239
167370
|
}
|
|
167240
|
-
}, [this.config
|
|
167241
|
-
"class": "
|
|
167242
|
-
|
|
167243
|
-
|
|
167244
|
-
"span": 12
|
|
167371
|
+
}, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.output(a, b))])]), (Object.keys(this.config).length > this.cols || submit || cancel) && h("div", {
|
|
167372
|
+
"class": "action",
|
|
167373
|
+
"style": {
|
|
167374
|
+
paddingLeft: `${this.gutter}px`
|
|
167245
167375
|
}
|
|
167246
|
-
}, [
|
|
167376
|
+
}, [h("el-form-item", {
|
|
167247
167377
|
"attrs": {
|
|
167248
|
-
"
|
|
167378
|
+
"label": "action"
|
|
167249
167379
|
}
|
|
167250
|
-
}, [
|
|
167251
|
-
"key": "action",
|
|
167252
|
-
"class": "action",
|
|
167253
|
-
"style": style
|
|
167254
|
-
}, [h("el-form-item", {
|
|
167380
|
+
}, [Object.keys(this.config).length > this.cols && h("el-button", {
|
|
167255
167381
|
"attrs": {
|
|
167256
|
-
"
|
|
167382
|
+
"disabled": this.loading,
|
|
167383
|
+
"type": "text"
|
|
167384
|
+
},
|
|
167385
|
+
"class": "collapse-button",
|
|
167386
|
+
"on": {
|
|
167387
|
+
"click": this.switch
|
|
167257
167388
|
}
|
|
167258
|
-
}, [
|
|
167389
|
+
}, [h("i", {
|
|
167390
|
+
"class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
|
|
167391
|
+
}), this.opened ? '收起' : '展开']), submit && h("el-button", {
|
|
167259
167392
|
"attrs": {
|
|
167260
167393
|
"disabled": this.loading,
|
|
167261
167394
|
"type": "primary"
|
|
@@ -167271,7 +167404,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167271
167404
|
"on": {
|
|
167272
167405
|
"click": this.cancel
|
|
167273
167406
|
}
|
|
167274
|
-
}, [this.cancelText])])])])])
|
|
167407
|
+
}, [this.cancelText])])])])]);
|
|
167275
167408
|
}
|
|
167276
167409
|
});
|
|
167277
167410
|
|