element-ui-root 2.9.8 → 2.9.9
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 +896 -794
- package/dist/index.css +1 -1
- package/dist/index.umd.js +896 -794
- 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));
|
|
@@ -36504,6 +36545,17 @@ exports.scale = scale;
|
|
|
36504
36545
|
exports.invert = invert;
|
|
36505
36546
|
exports.clone = clone;
|
|
36506
36547
|
|
|
36548
|
+
/***/ }),
|
|
36549
|
+
|
|
36550
|
+
/***/ "5934":
|
|
36551
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
36552
|
+
|
|
36553
|
+
"use strict";
|
|
36554
|
+
/* 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");
|
|
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___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__);
|
|
36556
|
+
/* unused harmony reexport * */
|
|
36557
|
+
|
|
36558
|
+
|
|
36507
36559
|
/***/ }),
|
|
36508
36560
|
|
|
36509
36561
|
/***/ "5974":
|
|
@@ -36589,6 +36641,13 @@ module.exports = _default;
|
|
|
36589
36641
|
|
|
36590
36642
|
/***/ }),
|
|
36591
36643
|
|
|
36644
|
+
/***/ "5a1c":
|
|
36645
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
36646
|
+
|
|
36647
|
+
// extracted by mini-css-extract-plugin
|
|
36648
|
+
|
|
36649
|
+
/***/ }),
|
|
36650
|
+
|
|
36592
36651
|
/***/ "5aac":
|
|
36593
36652
|
/***/ (function(module, exports) {
|
|
36594
36653
|
|
|
@@ -37110,6 +37169,13 @@ module.exports = _default;
|
|
|
37110
37169
|
|
|
37111
37170
|
/***/ }),
|
|
37112
37171
|
|
|
37172
|
+
/***/ "5bf5":
|
|
37173
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
37174
|
+
|
|
37175
|
+
// extracted by mini-css-extract-plugin
|
|
37176
|
+
|
|
37177
|
+
/***/ }),
|
|
37178
|
+
|
|
37113
37179
|
/***/ "5c61":
|
|
37114
37180
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
37115
37181
|
|
|
@@ -40521,8 +40587,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40521
40587
|
return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
|
|
40522
40588
|
},
|
|
40523
40589
|
select(items) {
|
|
40524
|
-
this.$store.commit('
|
|
40525
|
-
this.$store.commit('
|
|
40590
|
+
this.$store.commit('setSelectedRows', items);
|
|
40591
|
+
this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
|
|
40526
40592
|
this.$emit('select', {
|
|
40527
40593
|
rows: items,
|
|
40528
40594
|
keys: items.map(a => a[this.rowKey])
|
|
@@ -40532,7 +40598,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40532
40598
|
page: 1,
|
|
40533
40599
|
size: 10
|
|
40534
40600
|
}) {
|
|
40535
|
-
this.$store.commit('
|
|
40601
|
+
this.$store.commit('setPageParams', pages);
|
|
40536
40602
|
this.$emit('change', pages);
|
|
40537
40603
|
this.search(pages);
|
|
40538
40604
|
},
|
|
@@ -47717,13 +47783,6 @@ module.exports = _default;
|
|
|
47717
47783
|
|
|
47718
47784
|
/***/ }),
|
|
47719
47785
|
|
|
47720
|
-
/***/ "731e":
|
|
47721
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
47722
|
-
|
|
47723
|
-
// extracted by mini-css-extract-plugin
|
|
47724
|
-
|
|
47725
|
-
/***/ }),
|
|
47726
|
-
|
|
47727
47786
|
/***/ "734e":
|
|
47728
47787
|
/***/ (function(module, exports) {
|
|
47729
47788
|
|
|
@@ -50922,22 +50981,11 @@ module.exports = _default;
|
|
|
50922
50981
|
__webpack_require__.r(__webpack_exports__);
|
|
50923
50982
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
|
|
50924
50983
|
/* 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
|
-
|
|
50984
|
+
/* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("6cc8");
|
|
50985
|
+
/* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("2234");
|
|
50986
|
+
/* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("1d0c");
|
|
50987
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("e6e6");
|
|
50988
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_4__);
|
|
50941
50989
|
|
|
50942
50990
|
|
|
50943
50991
|
|
|
@@ -50946,20 +50994,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50946
50994
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
50947
50995
|
name: 'Ctable',
|
|
50948
50996
|
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"]
|
|
50997
|
+
Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
50998
|
+
AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
50999
|
+
Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"]
|
|
50957
51000
|
},
|
|
50958
51001
|
props: {
|
|
50959
|
-
margin: {
|
|
50960
|
-
type: String,
|
|
50961
|
-
default: () => '0'
|
|
50962
|
-
},
|
|
50963
51002
|
rowKey: {
|
|
50964
51003
|
type: String,
|
|
50965
51004
|
default: () => 'id'
|
|
@@ -50968,22 +51007,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50968
51007
|
type: String,
|
|
50969
51008
|
default: () => 'medium'
|
|
50970
51009
|
},
|
|
50971
|
-
selectionWidth: {
|
|
50972
|
-
type: String,
|
|
50973
|
-
default: () => '50'
|
|
50974
|
-
},
|
|
50975
51010
|
sort: {
|
|
50976
51011
|
type: Boolean,
|
|
50977
51012
|
default: () => true
|
|
50978
51013
|
},
|
|
50979
|
-
sortTitle: {
|
|
50980
|
-
type: String,
|
|
50981
|
-
default: () => '#'
|
|
50982
|
-
},
|
|
50983
|
-
sortWidth: {
|
|
50984
|
-
type: String,
|
|
50985
|
-
default: () => '50'
|
|
50986
|
-
},
|
|
50987
51014
|
border: {
|
|
50988
51015
|
type: Boolean,
|
|
50989
51016
|
default: () => false
|
|
@@ -50992,10 +51019,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50992
51019
|
type: Boolean,
|
|
50993
51020
|
default: () => false
|
|
50994
51021
|
},
|
|
50995
|
-
loading: {
|
|
50996
|
-
type: Boolean,
|
|
50997
|
-
default: () => false
|
|
50998
|
-
},
|
|
50999
51022
|
column: {
|
|
51000
51023
|
type: Array,
|
|
51001
51024
|
default: () => []
|
|
@@ -51004,50 +51027,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51004
51027
|
type: Object,
|
|
51005
51028
|
default: () => ({})
|
|
51006
51029
|
},
|
|
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
|
|
51030
|
+
params: {
|
|
51031
|
+
type: Object,
|
|
51032
|
+
default: () => ({})
|
|
51030
51033
|
},
|
|
51031
51034
|
selection: {
|
|
51032
51035
|
type: Boolean,
|
|
51033
|
-
default: () =>
|
|
51036
|
+
default: () => false
|
|
51034
51037
|
},
|
|
51035
51038
|
showOverflowTooltip: {
|
|
51036
51039
|
type: Boolean,
|
|
51037
51040
|
default: () => true
|
|
51038
51041
|
},
|
|
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
51042
|
sortable: {
|
|
51052
51043
|
type: Boolean,
|
|
51053
51044
|
default: () => false
|
|
@@ -51074,22 +51065,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51074
51065
|
hasChildren: 'hasChildren'
|
|
51075
51066
|
})
|
|
51076
51067
|
},
|
|
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
51068
|
actionWidth: {
|
|
51094
51069
|
type: String,
|
|
51095
51070
|
default: () => '180px'
|
|
@@ -51098,157 +51073,138 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51098
51073
|
type: String,
|
|
51099
51074
|
default: () => '操作'
|
|
51100
51075
|
},
|
|
51101
|
-
|
|
51076
|
+
formatTime: {
|
|
51077
|
+
type: Boolean,
|
|
51078
|
+
default: () => true
|
|
51079
|
+
},
|
|
51080
|
+
preview: {
|
|
51102
51081
|
type: Boolean,
|
|
51103
51082
|
default: () => false
|
|
51083
|
+
},
|
|
51084
|
+
page: {
|
|
51085
|
+
type: Boolean,
|
|
51086
|
+
default: () => true
|
|
51104
51087
|
}
|
|
51105
51088
|
},
|
|
51106
|
-
|
|
51107
|
-
|
|
51089
|
+
data() {
|
|
51090
|
+
return {
|
|
51091
|
+
loading: false
|
|
51092
|
+
};
|
|
51108
51093
|
},
|
|
51109
|
-
|
|
51110
|
-
this
|
|
51094
|
+
created() {
|
|
51095
|
+
this.search();
|
|
51096
|
+
this.create();
|
|
51111
51097
|
},
|
|
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;
|
|
51098
|
+
mounted() {
|
|
51099
|
+
this.$refs['c-table'].bodyWrapper.addEventListener('scroll', this.scroll);
|
|
51120
51100
|
},
|
|
51121
51101
|
methods: {
|
|
51122
|
-
create() {
|
|
51102
|
+
create(column = []) {
|
|
51123
51103
|
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])])]);
|
|
51104
|
+
if (this.formatTime && this.column.length > 0) {
|
|
51105
|
+
for (let a in this.column) {
|
|
51106
|
+
if (this.column[a].field && this.column[a].field.toLowerCase().includes('time')) {
|
|
51107
|
+
this.column[a].render = item => item[this.column[a].field] != '' && this.filter(item[this.column[a].field]);
|
|
51108
|
+
}
|
|
51164
51109
|
}
|
|
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
51110
|
}
|
|
51111
|
+
const actionColumn = () => {
|
|
51112
|
+
let data = [];
|
|
51113
|
+
const {
|
|
51114
|
+
review,
|
|
51115
|
+
modify,
|
|
51116
|
+
update,
|
|
51117
|
+
handle,
|
|
51118
|
+
remove
|
|
51119
|
+
} = this.$listeners;
|
|
51120
|
+
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
|
|
51121
|
+
data = [{
|
|
51122
|
+
label: this.actionTitle,
|
|
51123
|
+
fixed: 'right',
|
|
51124
|
+
align: 'center',
|
|
51125
|
+
width: this.actionWidth,
|
|
51126
|
+
render: item => h("div", {
|
|
51127
|
+
"class": "action"
|
|
51128
|
+
}, [review && h("i", {
|
|
51129
|
+
"class": "el-icon-view",
|
|
51130
|
+
"on": {
|
|
51131
|
+
"click": () => review(item)
|
|
51132
|
+
}
|
|
51133
|
+
}), modify && h("i", {
|
|
51134
|
+
"class": "el-icon-edit",
|
|
51135
|
+
"on": {
|
|
51136
|
+
"click": () => modify(item)
|
|
51137
|
+
}
|
|
51138
|
+
}), update && h("i", {
|
|
51139
|
+
"class": "el-icon-edit",
|
|
51140
|
+
"on": {
|
|
51141
|
+
"click": () => update(item)
|
|
51142
|
+
}
|
|
51143
|
+
}), handle && h("i", {
|
|
51144
|
+
"class": "el-icon-edit",
|
|
51145
|
+
"on": {
|
|
51146
|
+
"click": () => handle(item)
|
|
51147
|
+
}
|
|
51148
|
+
}), remove && h("Apopconfirm", {
|
|
51149
|
+
"on": {
|
|
51150
|
+
"submit": () => remove(item)
|
|
51151
|
+
}
|
|
51152
|
+
}), this.$listeners.delete && h("Apopconfirm", {
|
|
51153
|
+
"on": {
|
|
51154
|
+
"submit": () => this.$listeners.delete(item)
|
|
51155
|
+
}
|
|
51156
|
+
}), this.$listeners.export && h("i", {
|
|
51157
|
+
"class": "el-icon-download",
|
|
51158
|
+
"on": {
|
|
51159
|
+
"click": () => this.$listeners.export(item)
|
|
51160
|
+
}
|
|
51161
|
+
})])
|
|
51162
|
+
}];
|
|
51163
|
+
}
|
|
51164
|
+
return data;
|
|
51165
|
+
};
|
|
51166
|
+
const columnConfig = [...column, ...actionColumn()];
|
|
51167
|
+
return columnConfig.map((a, b) => {
|
|
51168
|
+
if (a) return h("el-table-column", {
|
|
51169
|
+
"key": b,
|
|
51170
|
+
"attrs": {
|
|
51171
|
+
"prop": a.field,
|
|
51172
|
+
"showOverflowTooltip": this.showOverflowTooltip,
|
|
51173
|
+
"sortable": a.field ? a.sortable ? a.sortable : this.sortable : false,
|
|
51174
|
+
"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
|
|
51175
|
+
},
|
|
51176
|
+
"props": {
|
|
51177
|
+
...a
|
|
51178
|
+
}
|
|
51179
|
+
});
|
|
51180
|
+
});
|
|
51246
51181
|
},
|
|
51247
|
-
search(
|
|
51182
|
+
search() {
|
|
51183
|
+
const {
|
|
51184
|
+
pageParams,
|
|
51185
|
+
formParams
|
|
51186
|
+
} = this.$store.state;
|
|
51187
|
+
const params = Object.assign({}, pageParams, formParams, this.params);
|
|
51248
51188
|
this.$emit('search', params);
|
|
51249
51189
|
},
|
|
51250
|
-
|
|
51251
|
-
|
|
51190
|
+
filter(timeStamp) {
|
|
51191
|
+
if (!typeof timeStamp == Number) return '';
|
|
51192
|
+
let time = new Date(timeStamp);
|
|
51193
|
+
const YYYY = time.getFullYear();
|
|
51194
|
+
const MM = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
|
|
51195
|
+
const DD = time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
|
|
51196
|
+
const H = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
|
|
51197
|
+
const M = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
|
|
51198
|
+
const S = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
|
|
51199
|
+
return YYYY + '-' + MM + '-' + DD + ' ' + H + ':' + M + ':' + S;
|
|
51200
|
+
},
|
|
51201
|
+
select(items) {
|
|
51202
|
+
this.$store.commit('setSelectedRows', items);
|
|
51203
|
+
this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
|
|
51204
|
+
this.$emit('select', {
|
|
51205
|
+
rows: items,
|
|
51206
|
+
keys: items.map(a => a[this.rowKey])
|
|
51207
|
+
});
|
|
51252
51208
|
},
|
|
51253
51209
|
choose(row, column, event) {
|
|
51254
51210
|
this.$emit('choose', {
|
|
@@ -51261,27 +51217,47 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51261
51217
|
page: 1,
|
|
51262
51218
|
size: 10
|
|
51263
51219
|
}) {
|
|
51220
|
+
this.$store.commit('setPageParams', pages);
|
|
51264
51221
|
this.$emit('change', pages);
|
|
51265
51222
|
this.search(pages);
|
|
51266
51223
|
},
|
|
51224
|
+
switch(name = '', symbol = '_') {
|
|
51225
|
+
return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
|
|
51226
|
+
},
|
|
51267
51227
|
format({
|
|
51268
|
-
|
|
51269
|
-
|
|
51270
|
-
|
|
51271
|
-
|
|
51272
|
-
|
|
51273
|
-
|
|
51274
|
-
|
|
51275
|
-
dicts = [],
|
|
51228
|
+
label,
|
|
51229
|
+
field,
|
|
51230
|
+
type,
|
|
51231
|
+
disabled,
|
|
51232
|
+
action = '',
|
|
51233
|
+
path = '',
|
|
51234
|
+
flag = '',
|
|
51276
51235
|
...props
|
|
51277
51236
|
}, colIndex, item, rowIndex) {
|
|
51278
51237
|
const h = this.$createElement;
|
|
51279
|
-
if (type
|
|
51280
|
-
|
|
51238
|
+
if (this.preview && (type != 'select' || type != 'enume' || type != 'enumerate')) return h("span", {
|
|
51239
|
+
"key": colIndex + '-' + rowIndex
|
|
51240
|
+
}, [item[field]]);
|
|
51241
|
+
if (type == 'select' || type == 'enume' || type == 'enumerate') {
|
|
51242
|
+
let dicts = [];
|
|
51243
|
+
if (this.optionApi != '' || action != '' || path != '') {
|
|
51244
|
+
let url = action != '' ? action : path != '' ? path : this.optionApi;
|
|
51245
|
+
let params = flag != '' ? {
|
|
51246
|
+
flag: this.switch(flag)
|
|
51247
|
+
} : {
|
|
51248
|
+
field: this.switch(field)
|
|
51249
|
+
};
|
|
51250
|
+
FN.get(url, params).then(({
|
|
51251
|
+
data
|
|
51252
|
+
}) => {
|
|
51253
|
+
if (data && data.length > 0) dicts = data;
|
|
51254
|
+
});
|
|
51255
|
+
}
|
|
51256
|
+
return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_1__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
51281
51257
|
"key": colIndex + '-' + rowIndex,
|
|
51282
51258
|
"attrs": {
|
|
51283
|
-
"field": field
|
|
51284
|
-
"data": dicts
|
|
51259
|
+
"field": `${field}`,
|
|
51260
|
+
"data": dicts
|
|
51285
51261
|
}
|
|
51286
51262
|
}, props, {
|
|
51287
51263
|
"model": {
|
|
@@ -51291,103 +51267,47 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51291
51267
|
}
|
|
51292
51268
|
}
|
|
51293
51269
|
}]));
|
|
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
51270
|
}
|
|
51309
|
-
return h(
|
|
51271
|
+
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
51310
51272
|
"key": colIndex + '-' + rowIndex,
|
|
51311
51273
|
"attrs": {
|
|
51312
51274
|
"config": {
|
|
51313
51275
|
type,
|
|
51314
51276
|
form: item,
|
|
51315
|
-
|
|
51316
|
-
field: field
|
|
51317
|
-
|
|
51277
|
+
label,
|
|
51278
|
+
field: `${field}`,
|
|
51279
|
+
dicts,
|
|
51280
|
+
table: true,
|
|
51318
51281
|
...props
|
|
51319
51282
|
}
|
|
51320
51283
|
}
|
|
51321
51284
|
});
|
|
51322
51285
|
},
|
|
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
|
-
}
|
|
51286
|
+
scroll({
|
|
51287
|
+
target
|
|
51288
|
+
}) {
|
|
51289
|
+
this.$emit('scroll', target);
|
|
51337
51290
|
}
|
|
51338
51291
|
},
|
|
51339
51292
|
render() {
|
|
51340
51293
|
const h = arguments[0];
|
|
51341
51294
|
const {
|
|
51342
|
-
|
|
51343
|
-
|
|
51344
|
-
searchConfig = {},
|
|
51345
|
-
actionConfig = [],
|
|
51346
|
-
...props
|
|
51347
|
-
} = this.$attrs;
|
|
51348
|
-
const {
|
|
51349
|
-
...r
|
|
51295
|
+
data = [],
|
|
51296
|
+
size = 0
|
|
51350
51297
|
} = 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
51298
|
const {
|
|
51354
|
-
|
|
51355
|
-
|
|
51356
|
-
|
|
51357
|
-
const
|
|
51299
|
+
pageParams
|
|
51300
|
+
} = this.$store.state;
|
|
51301
|
+
const condition = data && data.length > 0;
|
|
51302
|
+
const {
|
|
51303
|
+
...props
|
|
51304
|
+
} = this.$attrs;
|
|
51358
51305
|
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'
|
|
51306
|
+
"class": "c-table",
|
|
51307
|
+
"directives": [{
|
|
51308
|
+
name: "loading",
|
|
51309
|
+
value: this.loading
|
|
51310
|
+
}]
|
|
51391
51311
|
}, [h("el-table", {
|
|
51392
51312
|
"ref": "c-table",
|
|
51393
51313
|
"attrs": {
|
|
@@ -51395,23 +51315,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51395
51315
|
"size": this.size,
|
|
51396
51316
|
"border": this.border,
|
|
51397
51317
|
"stripe": this.stripe,
|
|
51318
|
+
"column": this.column,
|
|
51398
51319
|
"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
51320
|
"default-sort": this.defaultSort,
|
|
51405
|
-
"show-summary": this.showSummary,
|
|
51406
|
-
"tooltip-effect": this.tooltipEffect,
|
|
51407
|
-
"default-expand-all": this.defaultExpandAll,
|
|
51408
51321
|
"tree-props": this.tree ? this.treeProps : {},
|
|
51409
|
-
"
|
|
51322
|
+
"default-expand-all": this.defaultExpandAll
|
|
51410
51323
|
},
|
|
51411
|
-
"directives": [{
|
|
51412
|
-
name: "loading",
|
|
51413
|
-
value: loading
|
|
51414
|
-
}],
|
|
51415
51324
|
"on": {
|
|
51416
51325
|
"row-click": this.choose,
|
|
51417
51326
|
"selection-change": this.select
|
|
@@ -51419,34 +51328,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51419
51328
|
"props": {
|
|
51420
51329
|
...props
|
|
51421
51330
|
}
|
|
51422
|
-
}, [condition &&
|
|
51331
|
+
}, [condition && this.selection && h("el-table-column", {
|
|
51423
51332
|
"attrs": {
|
|
51424
51333
|
"fixed": "left",
|
|
51425
51334
|
"type": "selection",
|
|
51426
|
-
"width":
|
|
51335
|
+
"width": "50"
|
|
51427
51336
|
}
|
|
51428
51337
|
}), condition && this.sort && h("el-table-column", {
|
|
51429
51338
|
"attrs": {
|
|
51430
51339
|
"fixed": "left",
|
|
51431
51340
|
"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
|
|
51341
|
+
"width": "50",
|
|
51342
|
+
"label": "#"
|
|
51441
51343
|
}
|
|
51442
|
-
})
|
|
51344
|
+
}), condition && this.create(this.column)]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
|
51443
51345
|
"attrs": {
|
|
51444
|
-
"total": Number(size)
|
|
51346
|
+
"total": Number(size),
|
|
51347
|
+
"pages": pageParams
|
|
51445
51348
|
},
|
|
51446
51349
|
"on": {
|
|
51447
51350
|
"change": this.change
|
|
51448
51351
|
}
|
|
51449
|
-
})])
|
|
51352
|
+
})]);
|
|
51450
51353
|
}
|
|
51451
51354
|
});
|
|
51452
51355
|
|
|
@@ -61693,11 +61596,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61693
61596
|
__webpack_require__.r(__webpack_exports__);
|
|
61694
61597
|
/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6aaa");
|
|
61695
61598
|
/* 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
|
|
61599
|
+
/* harmony import */ var _components_Aactions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e94c");
|
|
61600
|
+
/* harmony import */ var _components_Aempty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("bd5e");
|
|
61601
|
+
/* harmony import */ var _components_Aenume__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("6cc8");
|
|
61602
|
+
/* harmony import */ var _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("1b78");
|
|
61603
|
+
/* harmony import */ var _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("fc0d");
|
|
61604
|
+
/* harmony import */ var _components_AformItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("2234");
|
|
61605
|
+
/* harmony import */ var _components_Apages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("1d0c");
|
|
61606
|
+
/* harmony import */ var _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("2ee7");
|
|
61607
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("f4d2");
|
|
61608
|
+
/* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_9__);
|
|
61609
|
+
|
|
61610
|
+
|
|
61611
|
+
|
|
61612
|
+
|
|
61613
|
+
|
|
61614
|
+
|
|
61701
61615
|
|
|
61702
61616
|
|
|
61703
61617
|
|
|
@@ -61706,11 +61620,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61706
61620
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
61707
61621
|
name: 'Btable',
|
|
61708
61622
|
components: {
|
|
61709
|
-
|
|
61710
|
-
|
|
61711
|
-
|
|
61623
|
+
Aactions: _components_Aactions__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
61624
|
+
Aempty: _components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
61625
|
+
Aenume: _components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
61626
|
+
AfSearch: _components_Aform_AfSearch__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
61627
|
+
BfSearch: _components_Aform_BfSearch__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
61628
|
+
AformItem: _components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
61629
|
+
Apages: _components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
61630
|
+
Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
|
|
61712
61631
|
},
|
|
61713
61632
|
props: {
|
|
61633
|
+
margin: {
|
|
61634
|
+
type: String,
|
|
61635
|
+
default: () => '0'
|
|
61636
|
+
},
|
|
61714
61637
|
rowKey: {
|
|
61715
61638
|
type: String,
|
|
61716
61639
|
default: () => 'id'
|
|
@@ -61719,10 +61642,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61719
61642
|
type: String,
|
|
61720
61643
|
default: () => 'medium'
|
|
61721
61644
|
},
|
|
61645
|
+
selectionWidth: {
|
|
61646
|
+
type: String,
|
|
61647
|
+
default: () => '50'
|
|
61648
|
+
},
|
|
61722
61649
|
sort: {
|
|
61723
61650
|
type: Boolean,
|
|
61724
61651
|
default: () => true
|
|
61725
61652
|
},
|
|
61653
|
+
sortTitle: {
|
|
61654
|
+
type: String,
|
|
61655
|
+
default: () => '#'
|
|
61656
|
+
},
|
|
61657
|
+
sortWidth: {
|
|
61658
|
+
type: String,
|
|
61659
|
+
default: () => '50'
|
|
61660
|
+
},
|
|
61726
61661
|
border: {
|
|
61727
61662
|
type: Boolean,
|
|
61728
61663
|
default: () => false
|
|
@@ -61731,6 +61666,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61731
61666
|
type: Boolean,
|
|
61732
61667
|
default: () => false
|
|
61733
61668
|
},
|
|
61669
|
+
loading: {
|
|
61670
|
+
type: Boolean,
|
|
61671
|
+
default: () => false
|
|
61672
|
+
},
|
|
61734
61673
|
column: {
|
|
61735
61674
|
type: Array,
|
|
61736
61675
|
default: () => []
|
|
@@ -61739,18 +61678,50 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61739
61678
|
type: Object,
|
|
61740
61679
|
default: () => ({})
|
|
61741
61680
|
},
|
|
61742
|
-
|
|
61743
|
-
type:
|
|
61744
|
-
default: () =>
|
|
61681
|
+
maxHeight: {
|
|
61682
|
+
type: String,
|
|
61683
|
+
default: () => '480'
|
|
61684
|
+
},
|
|
61685
|
+
elementLoadingText: {
|
|
61686
|
+
type: String,
|
|
61687
|
+
default: () => ''
|
|
61688
|
+
},
|
|
61689
|
+
elementLoadingSpinner: {
|
|
61690
|
+
type: String,
|
|
61691
|
+
default: () => 'el-icon-loading'
|
|
61692
|
+
},
|
|
61693
|
+
elementLoadingBackground: {
|
|
61694
|
+
type: String,
|
|
61695
|
+
default: () => 'rgba(0, 0, 0, 0.04)'
|
|
61696
|
+
},
|
|
61697
|
+
emptyText: {
|
|
61698
|
+
type: String,
|
|
61699
|
+
default: () => ''
|
|
61700
|
+
},
|
|
61701
|
+
showHeader: {
|
|
61702
|
+
type: Boolean,
|
|
61703
|
+
default: () => true
|
|
61745
61704
|
},
|
|
61746
61705
|
selection: {
|
|
61747
61706
|
type: Boolean,
|
|
61748
|
-
default: () =>
|
|
61707
|
+
default: () => true
|
|
61749
61708
|
},
|
|
61750
61709
|
showOverflowTooltip: {
|
|
61751
61710
|
type: Boolean,
|
|
61752
61711
|
default: () => true
|
|
61753
61712
|
},
|
|
61713
|
+
tooltipEffect: {
|
|
61714
|
+
type: String,
|
|
61715
|
+
default: () => 'light'
|
|
61716
|
+
},
|
|
61717
|
+
showSummary: {
|
|
61718
|
+
type: Boolean,
|
|
61719
|
+
default: () => false
|
|
61720
|
+
},
|
|
61721
|
+
sumText: {
|
|
61722
|
+
type: String,
|
|
61723
|
+
default: () => '合计'
|
|
61724
|
+
},
|
|
61754
61725
|
sortable: {
|
|
61755
61726
|
type: Boolean,
|
|
61756
61727
|
default: () => false
|
|
@@ -61777,6 +61748,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61777
61748
|
hasChildren: 'hasChildren'
|
|
61778
61749
|
})
|
|
61779
61750
|
},
|
|
61751
|
+
highlightCurrentRow: {
|
|
61752
|
+
type: Boolean,
|
|
61753
|
+
default: () => false
|
|
61754
|
+
},
|
|
61755
|
+
action: {
|
|
61756
|
+
type: Object,
|
|
61757
|
+
default: () => ({
|
|
61758
|
+
review: null,
|
|
61759
|
+
modify: null,
|
|
61760
|
+
update: null,
|
|
61761
|
+
handle: null,
|
|
61762
|
+
remove: null,
|
|
61763
|
+
delete: null,
|
|
61764
|
+
export: null
|
|
61765
|
+
})
|
|
61766
|
+
},
|
|
61780
61767
|
actionWidth: {
|
|
61781
61768
|
type: String,
|
|
61782
61769
|
default: () => '180px'
|
|
@@ -61785,138 +61772,157 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61785
61772
|
type: String,
|
|
61786
61773
|
default: () => '操作'
|
|
61787
61774
|
},
|
|
61788
|
-
formatTime: {
|
|
61789
|
-
type: Boolean,
|
|
61790
|
-
default: () => true
|
|
61791
|
-
},
|
|
61792
|
-
preview: {
|
|
61793
|
-
type: Boolean,
|
|
61794
|
-
default: () => false
|
|
61795
|
-
},
|
|
61796
61775
|
page: {
|
|
61797
61776
|
type: Boolean,
|
|
61798
|
-
default: () =>
|
|
61777
|
+
default: () => false
|
|
61799
61778
|
}
|
|
61800
61779
|
},
|
|
61801
|
-
|
|
61802
|
-
|
|
61803
|
-
loading: false
|
|
61804
|
-
};
|
|
61780
|
+
mounted() {
|
|
61781
|
+
this.$refs['b-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
61805
61782
|
},
|
|
61806
|
-
|
|
61807
|
-
this.
|
|
61808
|
-
this.create();
|
|
61783
|
+
beforeDestroy() {
|
|
61784
|
+
this.$refs['b-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
|
|
61809
61785
|
},
|
|
61810
|
-
|
|
61811
|
-
this
|
|
61786
|
+
destroyed() {
|
|
61787
|
+
this.create = null;
|
|
61788
|
+
this.search = null;
|
|
61789
|
+
this.select = null;
|
|
61790
|
+
this.choose = null;
|
|
61791
|
+
this.change = null;
|
|
61792
|
+
this.format = null;
|
|
61793
|
+
this.scroll = null;
|
|
61812
61794
|
},
|
|
61813
61795
|
methods: {
|
|
61814
|
-
create(
|
|
61796
|
+
create() {
|
|
61815
61797
|
const h = this.$createElement;
|
|
61816
|
-
|
|
61817
|
-
|
|
61818
|
-
|
|
61819
|
-
|
|
61820
|
-
|
|
61821
|
-
|
|
61822
|
-
|
|
61823
|
-
|
|
61824
|
-
|
|
61825
|
-
|
|
61826
|
-
|
|
61827
|
-
|
|
61828
|
-
|
|
61829
|
-
|
|
61830
|
-
|
|
61831
|
-
|
|
61832
|
-
|
|
61833
|
-
|
|
61834
|
-
|
|
61835
|
-
|
|
61836
|
-
|
|
61837
|
-
|
|
61838
|
-
|
|
61839
|
-
|
|
61840
|
-
|
|
61841
|
-
|
|
61842
|
-
|
|
61843
|
-
|
|
61844
|
-
|
|
61845
|
-
|
|
61846
|
-
|
|
61847
|
-
|
|
61848
|
-
|
|
61849
|
-
|
|
61850
|
-
}
|
|
61851
|
-
|
|
61852
|
-
|
|
61853
|
-
|
|
61854
|
-
|
|
61855
|
-
|
|
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
|
-
}];
|
|
61798
|
+
let column = [...this.column, this.suffix()];
|
|
61799
|
+
return column.map((a, b) => {
|
|
61800
|
+
if (a && Object.keys(a).length > 0) {
|
|
61801
|
+
let {
|
|
61802
|
+
type = null,
|
|
61803
|
+
render = null,
|
|
61804
|
+
header = null,
|
|
61805
|
+
...r
|
|
61806
|
+
} = a;
|
|
61807
|
+
let field = a.field || a.index || a.name || a.prop;
|
|
61808
|
+
let label = a.label || a.title || a.text;
|
|
61809
|
+
let props = {
|
|
61810
|
+
key: b,
|
|
61811
|
+
prop: field,
|
|
61812
|
+
scopedSlot: field,
|
|
61813
|
+
sortable: field ? a.sortable ? a.sortable : this.sortable : false,
|
|
61814
|
+
formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
|
|
61815
|
+
showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
|
|
61816
|
+
...r
|
|
61817
|
+
};
|
|
61818
|
+
return h("el-table-column", {
|
|
61819
|
+
"props": {
|
|
61820
|
+
...props
|
|
61821
|
+
}
|
|
61822
|
+
}, [h("template", {
|
|
61823
|
+
"slot": "header"
|
|
61824
|
+
}, [header ? () => header(r) : label && label != '' && label.length && label.length > 8 ? h("el-tooltip", {
|
|
61825
|
+
"attrs": {
|
|
61826
|
+
"content": label,
|
|
61827
|
+
"placement": "top"
|
|
61828
|
+
}
|
|
61829
|
+
}, [h("span", {
|
|
61830
|
+
"attrs": {
|
|
61831
|
+
"title": label
|
|
61832
|
+
}
|
|
61833
|
+
}, [label])]) : h("span", {
|
|
61834
|
+
"attrs": {
|
|
61835
|
+
"title": label
|
|
61836
|
+
}
|
|
61837
|
+
}, [label])])]);
|
|
61875
61838
|
}
|
|
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
61839
|
});
|
|
61893
61840
|
},
|
|
61894
|
-
|
|
61895
|
-
const
|
|
61896
|
-
|
|
61897
|
-
|
|
61898
|
-
|
|
61899
|
-
|
|
61900
|
-
|
|
61841
|
+
suffix() {
|
|
61842
|
+
const h = this.$createElement;
|
|
61843
|
+
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) {
|
|
61844
|
+
return {
|
|
61845
|
+
fixed: 'right',
|
|
61846
|
+
align: 'center',
|
|
61847
|
+
width: this.actionWidth,
|
|
61848
|
+
label: this.actionTitle,
|
|
61849
|
+
formatter: item => h("div", {
|
|
61850
|
+
"class": "action"
|
|
61851
|
+
}, [this.action.review && h("i", {
|
|
61852
|
+
"class": "el-icon-view",
|
|
61853
|
+
"on": {
|
|
61854
|
+
"click": () => this.action.review(item)
|
|
61855
|
+
}
|
|
61856
|
+
}), this.action.modify && h("i", {
|
|
61857
|
+
"class": "el-icon-edit",
|
|
61858
|
+
"on": {
|
|
61859
|
+
"click": () => this.action.modify(item)
|
|
61860
|
+
}
|
|
61861
|
+
}), this.action.update && h("i", {
|
|
61862
|
+
"class": "el-icon-edit",
|
|
61863
|
+
"on": {
|
|
61864
|
+
"click": () => this.action.update(item)
|
|
61865
|
+
}
|
|
61866
|
+
}), this.action.handle && h("i", {
|
|
61867
|
+
"class": "el-icon-edit",
|
|
61868
|
+
"on": {
|
|
61869
|
+
"click": () => this.action.handle(item)
|
|
61870
|
+
}
|
|
61871
|
+
}), this.action.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
61872
|
+
"on": {
|
|
61873
|
+
"submit": () => this.action.remove(item)
|
|
61874
|
+
}
|
|
61875
|
+
}), this.action.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
61876
|
+
"on": {
|
|
61877
|
+
"submit": () => this.action.delete(item)
|
|
61878
|
+
}
|
|
61879
|
+
}), this.action.export && h("i", {
|
|
61880
|
+
"class": "el-icon-download",
|
|
61881
|
+
"on": {
|
|
61882
|
+
"click": () => this.action.export(item)
|
|
61883
|
+
}
|
|
61884
|
+
}), this.$listeners.review && h("i", {
|
|
61885
|
+
"class": "el-icon-view",
|
|
61886
|
+
"on": {
|
|
61887
|
+
"click": () => this.$listeners.review(item)
|
|
61888
|
+
}
|
|
61889
|
+
}), this.$listeners.modify && h("i", {
|
|
61890
|
+
"class": "el-icon-edit",
|
|
61891
|
+
"on": {
|
|
61892
|
+
"click": () => this.$listeners.modify(item)
|
|
61893
|
+
}
|
|
61894
|
+
}), this.$listeners.update && h("i", {
|
|
61895
|
+
"class": "el-icon-edit",
|
|
61896
|
+
"on": {
|
|
61897
|
+
"click": () => this.$listeners.update(item)
|
|
61898
|
+
}
|
|
61899
|
+
}), this.$listeners.handle && h("i", {
|
|
61900
|
+
"class": "el-icon-edit",
|
|
61901
|
+
"on": {
|
|
61902
|
+
"click": () => this.$listeners.handle(item)
|
|
61903
|
+
}
|
|
61904
|
+
}), this.$listeners.remove && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
61905
|
+
"on": {
|
|
61906
|
+
"submit": () => this.$listeners.remove(item)
|
|
61907
|
+
}
|
|
61908
|
+
}), this.$listeners.delete && h(_components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
61909
|
+
"on": {
|
|
61910
|
+
"submit": () => this.$listeners.delete(item)
|
|
61911
|
+
}
|
|
61912
|
+
}), this.$listeners.export && h("i", {
|
|
61913
|
+
"class": "el-icon-download",
|
|
61914
|
+
"on": {
|
|
61915
|
+
"click": () => this.$listeners.export(item)
|
|
61916
|
+
}
|
|
61917
|
+
})])
|
|
61918
|
+
};
|
|
61919
|
+
}
|
|
61901
61920
|
},
|
|
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;
|
|
61921
|
+
search(params = {}) {
|
|
61922
|
+
this.$emit('search', params);
|
|
61912
61923
|
},
|
|
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
|
-
});
|
|
61924
|
+
select(items = []) {
|
|
61925
|
+
this.$emit('select', items);
|
|
61920
61926
|
},
|
|
61921
61927
|
choose(row, column, event) {
|
|
61922
61928
|
this.$emit('choose', {
|
|
@@ -61929,47 +61935,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61929
61935
|
page: 1,
|
|
61930
61936
|
size: 10
|
|
61931
61937
|
}) {
|
|
61932
|
-
this.$store.commit('changePageParams', pages);
|
|
61933
61938
|
this.$emit('change', pages);
|
|
61934
61939
|
this.search(pages);
|
|
61935
61940
|
},
|
|
61936
|
-
switch(name = '', symbol = '_') {
|
|
61937
|
-
return name.replace(/([A-Z])/g, `${symbol}$1`).toLowerCase();
|
|
61938
|
-
},
|
|
61939
61941
|
format({
|
|
61940
|
-
|
|
61941
|
-
|
|
61942
|
-
|
|
61943
|
-
|
|
61944
|
-
|
|
61945
|
-
|
|
61946
|
-
|
|
61942
|
+
type = '',
|
|
61943
|
+
name = '',
|
|
61944
|
+
data = [],
|
|
61945
|
+
text = '',
|
|
61946
|
+
label = '',
|
|
61947
|
+
title = '',
|
|
61948
|
+
field = '',
|
|
61949
|
+
dicts = [],
|
|
61947
61950
|
...props
|
|
61948
61951
|
}, colIndex, item, rowIndex) {
|
|
61949
61952
|
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()([{
|
|
61953
|
+
if (type == 'enume' || type == 'enumerate') {
|
|
61954
|
+
if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
61969
61955
|
"key": colIndex + '-' + rowIndex,
|
|
61970
61956
|
"attrs": {
|
|
61971
|
-
"field":
|
|
61972
|
-
"data": dicts
|
|
61957
|
+
"field": field,
|
|
61958
|
+
"data": dicts.length > 0 ? dicts : data
|
|
61973
61959
|
}
|
|
61974
61960
|
}, props, {
|
|
61975
61961
|
"model": {
|
|
@@ -61979,47 +61965,68 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61979
61965
|
}
|
|
61980
61966
|
}
|
|
61981
61967
|
}]));
|
|
61968
|
+
return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
61969
|
+
"key": colIndex + '-' + rowIndex,
|
|
61970
|
+
"attrs": {
|
|
61971
|
+
"field": name,
|
|
61972
|
+
"data": dicts.length > 0 ? dicts : data
|
|
61973
|
+
}
|
|
61974
|
+
}, props, {
|
|
61975
|
+
"model": {
|
|
61976
|
+
value: item[name],
|
|
61977
|
+
callback: $$v => {
|
|
61978
|
+
this.$set(item, name, $$v);
|
|
61979
|
+
}
|
|
61980
|
+
}
|
|
61981
|
+
}]));
|
|
61982
61982
|
}
|
|
61983
|
-
return h(
|
|
61983
|
+
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
61984
61984
|
"key": colIndex + '-' + rowIndex,
|
|
61985
61985
|
"attrs": {
|
|
61986
61986
|
"config": {
|
|
61987
61987
|
type,
|
|
61988
61988
|
form: item,
|
|
61989
|
-
|
|
61990
|
-
field:
|
|
61991
|
-
|
|
61992
|
-
table: true,
|
|
61989
|
+
dicts: dicts.length > 0 ? dicts : data,
|
|
61990
|
+
field: field != '' ? field : name != '' ? name : '',
|
|
61991
|
+
label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
|
|
61993
61992
|
...props
|
|
61994
61993
|
}
|
|
61995
61994
|
}
|
|
61996
61995
|
});
|
|
61997
61996
|
},
|
|
61998
|
-
scroll({
|
|
61999
|
-
|
|
62000
|
-
|
|
62001
|
-
|
|
61997
|
+
scroll(a) {
|
|
61998
|
+
let container = this.$refs['b-table'].bodyWrapper;
|
|
61999
|
+
if (container) {
|
|
62000
|
+
if (container.scrollHeight > container.clientHeight) {
|
|
62001
|
+
a.preventDefault();
|
|
62002
|
+
container.scrollTop += a.deltaY;
|
|
62003
|
+
} else {
|
|
62004
|
+
if (container.scrollWidth > container.clientWidth) {
|
|
62005
|
+
a.preventDefault();
|
|
62006
|
+
container.scrollLeft += a.deltaY;
|
|
62007
|
+
}
|
|
62008
|
+
}
|
|
62009
|
+
this.$emit('scroll', a);
|
|
62010
|
+
}
|
|
62002
62011
|
}
|
|
62003
62012
|
},
|
|
62004
62013
|
render() {
|
|
62005
62014
|
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
62015
|
const {
|
|
62015
62016
|
...props
|
|
62016
62017
|
} = this.$attrs;
|
|
62018
|
+
const {
|
|
62019
|
+
...r
|
|
62020
|
+
} = this.record;
|
|
62021
|
+
const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
|
|
62022
|
+
const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
|
|
62023
|
+
const condition = data.length > 0;
|
|
62017
62024
|
return h("div", {
|
|
62018
|
-
"
|
|
62019
|
-
|
|
62020
|
-
|
|
62021
|
-
|
|
62022
|
-
|
|
62025
|
+
"style": {
|
|
62026
|
+
padding: this.margin
|
|
62027
|
+
}
|
|
62028
|
+
}, [h("div", {
|
|
62029
|
+
"class": this.border ? 'b-table' : 'b-table border'
|
|
62023
62030
|
}, [h("el-table", {
|
|
62024
62031
|
"ref": "b-table",
|
|
62025
62032
|
"attrs": {
|
|
@@ -62027,12 +62034,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62027
62034
|
"size": this.size,
|
|
62028
62035
|
"border": this.border,
|
|
62029
62036
|
"stripe": this.stripe,
|
|
62030
|
-
"column": this.column,
|
|
62031
62037
|
"row-key": this.rowKey,
|
|
62038
|
+
"max-height": this.maxHeight,
|
|
62039
|
+
"element-loading-text": this.elementLoadingText,
|
|
62040
|
+
"element-loading-spinner": this.elementLoadingSpinner,
|
|
62041
|
+
"element-loading-background": this.elementLoadingBackground,
|
|
62042
|
+
"show-header": this.showHeader,
|
|
62032
62043
|
"default-sort": this.defaultSort,
|
|
62044
|
+
"show-summary": this.showSummary,
|
|
62045
|
+
"tooltip-effect": this.tooltipEffect,
|
|
62046
|
+
"default-expand-all": this.defaultExpandAll,
|
|
62033
62047
|
"tree-props": this.tree ? this.treeProps : {},
|
|
62034
|
-
"
|
|
62048
|
+
"highlight-current-row": this.highlightCurrentRow
|
|
62035
62049
|
},
|
|
62050
|
+
"directives": [{
|
|
62051
|
+
name: "loading",
|
|
62052
|
+
value: this.loading
|
|
62053
|
+
}],
|
|
62036
62054
|
"on": {
|
|
62037
62055
|
"row-click": this.choose,
|
|
62038
62056
|
"selection-change": this.select
|
|
@@ -62040,28 +62058,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62040
62058
|
"props": {
|
|
62041
62059
|
...props
|
|
62042
62060
|
}
|
|
62043
|
-
}, [condition && this.selection && h("el-table-column", {
|
|
62061
|
+
}, [condition && (this.selection || this.$listeners.select) && h("el-table-column", {
|
|
62044
62062
|
"attrs": {
|
|
62045
62063
|
"fixed": "left",
|
|
62046
62064
|
"type": "selection",
|
|
62047
|
-
"width":
|
|
62065
|
+
"width": this.selectionWidth
|
|
62048
62066
|
}
|
|
62049
62067
|
}), condition && this.sort && h("el-table-column", {
|
|
62050
62068
|
"attrs": {
|
|
62051
62069
|
"fixed": "left",
|
|
62052
62070
|
"type": "index",
|
|
62053
|
-
"width":
|
|
62054
|
-
"label":
|
|
62071
|
+
"width": this.sortWidth,
|
|
62072
|
+
"label": this.sortTitle
|
|
62055
62073
|
}
|
|
62056
|
-
}), condition && this.create(
|
|
62074
|
+
}), condition && this.create(), condition && this.$slots.default, h("div", {
|
|
62075
|
+
"slot": "empty",
|
|
62076
|
+
"class": "empty"
|
|
62077
|
+
}, [!this.loading && h(_components_Aempty__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
62057
62078
|
"attrs": {
|
|
62058
|
-
"
|
|
62059
|
-
|
|
62079
|
+
"description": this.emptyText
|
|
62080
|
+
}
|
|
62081
|
+
})])]), !this.tree && this.page && condition && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
62082
|
+
"attrs": {
|
|
62083
|
+
"total": Number(size)
|
|
62060
62084
|
},
|
|
62061
62085
|
"on": {
|
|
62062
62086
|
"change": this.change
|
|
62063
62087
|
}
|
|
62064
|
-
})]);
|
|
62088
|
+
})])]);
|
|
62065
62089
|
}
|
|
62066
62090
|
});
|
|
62067
62091
|
|
|
@@ -63881,7 +63905,7 @@ exports.quadraticProjectPoint = quadraticProjectPoint;
|
|
|
63881
63905
|
// ESM COMPAT FLAG
|
|
63882
63906
|
__webpack_require__.r(__webpack_exports__);
|
|
63883
63907
|
|
|
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=
|
|
63908
|
+
// 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
63909
|
var render = function render() {
|
|
63886
63910
|
var _vm = this,
|
|
63887
63911
|
_c = _vm._self._c;
|
|
@@ -63893,9 +63917,23 @@ var render = function render() {
|
|
|
63893
63917
|
expression: "loading"
|
|
63894
63918
|
}],
|
|
63895
63919
|
staticClass: "b-tree"
|
|
63896
|
-
}, [_c('el-
|
|
63920
|
+
}, [_vm.filter ? _c('el-input', {
|
|
63921
|
+
staticClass: "filter",
|
|
63922
|
+
attrs: {
|
|
63923
|
+
"size": "small",
|
|
63924
|
+
"placeholder": "输入关键字进行过滤"
|
|
63925
|
+
},
|
|
63926
|
+
model: {
|
|
63927
|
+
value: _vm.context,
|
|
63928
|
+
callback: function ($$v) {
|
|
63929
|
+
_vm.context = $$v;
|
|
63930
|
+
},
|
|
63931
|
+
expression: "context"
|
|
63932
|
+
}
|
|
63933
|
+
}) : _vm._e(), _c('el-tree', {
|
|
63897
63934
|
ref: "bTree",
|
|
63898
63935
|
attrs: {
|
|
63936
|
+
"accordion": _vm.accordion,
|
|
63899
63937
|
"show-checkbox": _vm.showCheckbox,
|
|
63900
63938
|
"check-strictly": _vm.checkStrictly,
|
|
63901
63939
|
"node-key": _vm.nodeKey,
|
|
@@ -63931,7 +63969,7 @@ var render = function render() {
|
|
|
63931
63969
|
};
|
|
63932
63970
|
var staticRenderFns = [];
|
|
63933
63971
|
|
|
63934
|
-
// CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=template&id=
|
|
63972
|
+
// CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=template&id=0981a61e&scoped=true&
|
|
63935
63973
|
|
|
63936
63974
|
// 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
63975
|
/* harmony default export */ var Btreevue_type_script_lang_js_ = ({
|
|
@@ -63941,6 +63979,14 @@ var staticRenderFns = [];
|
|
|
63941
63979
|
type: Boolean,
|
|
63942
63980
|
default: () => false
|
|
63943
63981
|
},
|
|
63982
|
+
accordion: {
|
|
63983
|
+
type: Boolean,
|
|
63984
|
+
default: () => false
|
|
63985
|
+
},
|
|
63986
|
+
filter: {
|
|
63987
|
+
type: Boolean,
|
|
63988
|
+
default: () => true
|
|
63989
|
+
},
|
|
63944
63990
|
showCheckbox: {
|
|
63945
63991
|
type: Boolean,
|
|
63946
63992
|
default: () => true
|
|
@@ -64002,7 +64048,8 @@ var staticRenderFns = [];
|
|
|
64002
64048
|
},
|
|
64003
64049
|
halfCheckedKeys: [],
|
|
64004
64050
|
checkedKeys: [],
|
|
64005
|
-
selectedRow: {}
|
|
64051
|
+
selectedRow: {},
|
|
64052
|
+
context: ''
|
|
64006
64053
|
};
|
|
64007
64054
|
},
|
|
64008
64055
|
watch: {
|
|
@@ -64011,6 +64058,9 @@ var staticRenderFns = [];
|
|
|
64011
64058
|
},
|
|
64012
64059
|
defaultCheckedKeys() {
|
|
64013
64060
|
this.create();
|
|
64061
|
+
},
|
|
64062
|
+
context(value) {
|
|
64063
|
+
this.$refs['bTree'].filter(value);
|
|
64014
64064
|
}
|
|
64015
64065
|
},
|
|
64016
64066
|
mounted() {
|
|
@@ -64020,6 +64070,10 @@ var staticRenderFns = [];
|
|
|
64020
64070
|
this.update();
|
|
64021
64071
|
},
|
|
64022
64072
|
methods: {
|
|
64073
|
+
search(value, data) {
|
|
64074
|
+
if (!value) return true;
|
|
64075
|
+
return data[this.labelKey].indexOf(value) != -1;
|
|
64076
|
+
},
|
|
64023
64077
|
create() {
|
|
64024
64078
|
this.checkedKeys = this.defaultCheckedKeys.filter(a => a != 0);
|
|
64025
64079
|
this.$nextTick(() => {
|
|
@@ -64065,8 +64119,8 @@ var staticRenderFns = [];
|
|
|
64065
64119
|
});
|
|
64066
64120
|
// CONCATENATED MODULE: ./src/components/Btree/index.vue?vue&type=script&lang=js&
|
|
64067
64121
|
/* 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
|
|
64122
|
+
// EXTERNAL MODULE: ./src/components/Btree/index.vue?vue&type=style&index=0&id=0981a61e&prod&scoped=true&lang=css&
|
|
64123
|
+
var Btreevue_type_style_index_0_id_0981a61e_prod_scoped_true_lang_css_ = __webpack_require__("a749");
|
|
64070
64124
|
|
|
64071
64125
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
64072
64126
|
var componentNormalizer = __webpack_require__("e607");
|
|
@@ -64086,7 +64140,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
64086
64140
|
staticRenderFns,
|
|
64087
64141
|
false,
|
|
64088
64142
|
null,
|
|
64089
|
-
"
|
|
64143
|
+
"0981a61e",
|
|
64090
64144
|
null
|
|
64091
64145
|
|
|
64092
64146
|
)
|
|
@@ -127357,6 +127411,17 @@ function layout(gridModel, axisModel, opt) {
|
|
|
127357
127411
|
|
|
127358
127412
|
exports.layout = layout;
|
|
127359
127413
|
|
|
127414
|
+
/***/ }),
|
|
127415
|
+
|
|
127416
|
+
/***/ "a749":
|
|
127417
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127418
|
+
|
|
127419
|
+
"use strict";
|
|
127420
|
+
/* 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");
|
|
127421
|
+
/* 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__);
|
|
127422
|
+
/* unused harmony reexport * */
|
|
127423
|
+
|
|
127424
|
+
|
|
127360
127425
|
/***/ }),
|
|
127361
127426
|
|
|
127362
127427
|
/***/ "a777":
|
|
@@ -132867,13 +132932,6 @@ exports.estimateLabelUnionRect = estimateLabelUnionRect;
|
|
|
132867
132932
|
|
|
132868
132933
|
/***/ }),
|
|
132869
132934
|
|
|
132870
|
-
/***/ "b33c":
|
|
132871
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
132872
|
-
|
|
132873
|
-
// extracted by mini-css-extract-plugin
|
|
132874
|
-
|
|
132875
|
-
/***/ }),
|
|
132876
|
-
|
|
132877
132935
|
/***/ "b349":
|
|
132878
132936
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
132879
132937
|
|
|
@@ -134245,7 +134303,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134245
134303
|
dragstart(a) {
|
|
134246
134304
|
if (this.draggable) {
|
|
134247
134305
|
a.dataTransfer.setData(this.dragType, this.id);
|
|
134248
|
-
this.$store.commit('
|
|
134306
|
+
this.$store.commit('setDragId', this.id);
|
|
134249
134307
|
this.$emit('dragstart', a);
|
|
134250
134308
|
}
|
|
134251
134309
|
},
|
|
@@ -136270,8 +136328,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136270
136328
|
this.$emit('search', formatParams);
|
|
136271
136329
|
},
|
|
136272
136330
|
select(items = []) {
|
|
136273
|
-
this.$store.commit('
|
|
136274
|
-
this.$store.commit('
|
|
136331
|
+
this.$store.commit('setSelectedRows', items);
|
|
136332
|
+
this.$store.commit('setSelectedKeys', items.map(a => a[this.rowKey]));
|
|
136275
136333
|
this.$emit('select', {
|
|
136276
136334
|
rows: items,
|
|
136277
136335
|
keys: items.map(a => a[this.rowKey])
|
|
@@ -136288,7 +136346,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136288
136346
|
page: 1,
|
|
136289
136347
|
size: 10
|
|
136290
136348
|
}) {
|
|
136291
|
-
this.$store.commit('
|
|
136349
|
+
this.$store.commit('setPageParams', pages);
|
|
136292
136350
|
this.$emit('change', pages);
|
|
136293
136351
|
this.search(pages);
|
|
136294
136352
|
},
|
|
@@ -147990,7 +148048,7 @@ module.exports = _default;
|
|
|
147990
148048
|
// ESM COMPAT FLAG
|
|
147991
148049
|
__webpack_require__.r(__webpack_exports__);
|
|
147992
148050
|
|
|
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=
|
|
148051
|
+
// 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
148052
|
var render = function render() {
|
|
147995
148053
|
var _vm = this,
|
|
147996
148054
|
_c = _vm._self._c;
|
|
@@ -148002,9 +148060,23 @@ var render = function render() {
|
|
|
148002
148060
|
expression: "loading"
|
|
148003
148061
|
}],
|
|
148004
148062
|
staticClass: "a-tree"
|
|
148005
|
-
}, [_vm.
|
|
148063
|
+
}, [_vm.filter ? _c('el-input', {
|
|
148064
|
+
staticClass: "filter",
|
|
148065
|
+
attrs: {
|
|
148066
|
+
"size": "small",
|
|
148067
|
+
"placeholder": "输入关键字进行过滤"
|
|
148068
|
+
},
|
|
148069
|
+
model: {
|
|
148070
|
+
value: _vm.context,
|
|
148071
|
+
callback: function ($$v) {
|
|
148072
|
+
_vm.context = $$v;
|
|
148073
|
+
},
|
|
148074
|
+
expression: "context"
|
|
148075
|
+
}
|
|
148076
|
+
}) : _vm._e(), _vm.horizontal ? _c('el-tree', {
|
|
148006
148077
|
ref: "aTree",
|
|
148007
148078
|
attrs: {
|
|
148079
|
+
"accordion": _vm.accordion,
|
|
148008
148080
|
"show-checkbox": _vm.showCheckbox,
|
|
148009
148081
|
"check-strictly": _vm.checkStrictly,
|
|
148010
148082
|
"iconClass": _vm.iconClass != '' ? _vm.iconClass : '',
|
|
@@ -148017,7 +148089,8 @@ var render = function render() {
|
|
|
148017
148089
|
"check-on-click-node": _vm.checkOnClickNode,
|
|
148018
148090
|
"auto-expand-parent": _vm.autoExpandParent,
|
|
148019
148091
|
"default-expanded-keys": _vm.checkedKeys,
|
|
148020
|
-
"draggable": _vm.draggable
|
|
148092
|
+
"draggable": _vm.draggable,
|
|
148093
|
+
"filter-node-method": _vm.search
|
|
148021
148094
|
},
|
|
148022
148095
|
on: {
|
|
148023
148096
|
"node-click": _vm.nodeClick,
|
|
@@ -148028,6 +148101,7 @@ var render = function render() {
|
|
|
148028
148101
|
}) : _c('el-tree', {
|
|
148029
148102
|
ref: "aTree",
|
|
148030
148103
|
attrs: {
|
|
148104
|
+
"accordion": _vm.accordion,
|
|
148031
148105
|
"show-checkbox": _vm.showCheckbox,
|
|
148032
148106
|
"check-strictly": _vm.checkStrictly,
|
|
148033
148107
|
"iconClass": _vm.iconClass != '' ? _vm.iconClass : '',
|
|
@@ -148039,7 +148113,8 @@ var render = function render() {
|
|
|
148039
148113
|
"check-on-click-node": _vm.checkOnClickNode,
|
|
148040
148114
|
"auto-expand-parent": _vm.autoExpandParent,
|
|
148041
148115
|
"default-expanded-keys": _vm.checkedKeys,
|
|
148042
|
-
"draggable": _vm.draggable
|
|
148116
|
+
"draggable": _vm.draggable,
|
|
148117
|
+
"filter-node-method": _vm.search
|
|
148043
148118
|
},
|
|
148044
148119
|
on: {
|
|
148045
148120
|
"node-click": _vm.nodeClick,
|
|
@@ -148051,7 +148126,7 @@ var render = function render() {
|
|
|
148051
148126
|
};
|
|
148052
148127
|
var staticRenderFns = [];
|
|
148053
148128
|
|
|
148054
|
-
// CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=
|
|
148129
|
+
// CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=template&id=446b4709&scoped=true&
|
|
148055
148130
|
|
|
148056
148131
|
// 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
148132
|
/* harmony default export */ var Atreevue_type_script_lang_js_ = ({
|
|
@@ -148061,6 +148136,14 @@ var staticRenderFns = [];
|
|
|
148061
148136
|
type: Boolean,
|
|
148062
148137
|
default: () => false
|
|
148063
148138
|
},
|
|
148139
|
+
accordion: {
|
|
148140
|
+
type: Boolean,
|
|
148141
|
+
default: () => false
|
|
148142
|
+
},
|
|
148143
|
+
filter: {
|
|
148144
|
+
type: Boolean,
|
|
148145
|
+
default: () => true
|
|
148146
|
+
},
|
|
148064
148147
|
showCheckbox: {
|
|
148065
148148
|
type: Boolean,
|
|
148066
148149
|
default: () => true
|
|
@@ -148130,7 +148213,8 @@ var staticRenderFns = [];
|
|
|
148130
148213
|
},
|
|
148131
148214
|
halfCheckedKeys: [],
|
|
148132
148215
|
checkedKeys: [],
|
|
148133
|
-
selectedRow: {}
|
|
148216
|
+
selectedRow: {},
|
|
148217
|
+
context: ''
|
|
148134
148218
|
};
|
|
148135
148219
|
},
|
|
148136
148220
|
watch: {
|
|
@@ -148139,6 +148223,9 @@ var staticRenderFns = [];
|
|
|
148139
148223
|
},
|
|
148140
148224
|
defaultCheckedKeys() {
|
|
148141
148225
|
this.create();
|
|
148226
|
+
},
|
|
148227
|
+
context(value) {
|
|
148228
|
+
this.$refs['aTree'].filter(value);
|
|
148142
148229
|
}
|
|
148143
148230
|
},
|
|
148144
148231
|
mounted() {
|
|
@@ -148148,6 +148235,10 @@ var staticRenderFns = [];
|
|
|
148148
148235
|
this.update();
|
|
148149
148236
|
},
|
|
148150
148237
|
methods: {
|
|
148238
|
+
search(value, data) {
|
|
148239
|
+
if (!value) return true;
|
|
148240
|
+
return data[this.labelKey].indexOf(value) != -1;
|
|
148241
|
+
},
|
|
148151
148242
|
format(h, {
|
|
148152
148243
|
node,
|
|
148153
148244
|
data,
|
|
@@ -148208,8 +148299,8 @@ var staticRenderFns = [];
|
|
|
148208
148299
|
});
|
|
148209
148300
|
// CONCATENATED MODULE: ./src/components/Atree/index.vue?vue&type=script&lang=js&
|
|
148210
148301
|
/* 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
|
|
148302
|
+
// EXTERNAL MODULE: ./src/components/Atree/index.vue?vue&type=style&index=0&id=446b4709&prod&scoped=true&lang=css&
|
|
148303
|
+
var Atreevue_type_style_index_0_id_446b4709_prod_scoped_true_lang_css_ = __webpack_require__("5934");
|
|
148213
148304
|
|
|
148214
148305
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
148215
148306
|
var componentNormalizer = __webpack_require__("e607");
|
|
@@ -148229,7 +148320,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
148229
148320
|
staticRenderFns,
|
|
148230
148321
|
false,
|
|
148231
148322
|
null,
|
|
148232
|
-
"
|
|
148323
|
+
"446b4709",
|
|
148233
148324
|
null
|
|
148234
148325
|
|
|
148235
148326
|
)
|
|
@@ -159743,7 +159834,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159743
159834
|
"attrs": {
|
|
159744
159835
|
"type": type,
|
|
159745
159836
|
"size": size,
|
|
159746
|
-
"disabled": disabled || selectedKeys == 0
|
|
159837
|
+
"disabled": disabled || selectedKeys.length == 0
|
|
159747
159838
|
},
|
|
159748
159839
|
"on": {
|
|
159749
159840
|
"click": e => this.select(a, e)
|
|
@@ -159758,7 +159849,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159758
159849
|
"attrs": {
|
|
159759
159850
|
"type": "danger",
|
|
159760
159851
|
"size": size,
|
|
159761
|
-
"disabled": disabled || selectedKeys == 0
|
|
159852
|
+
"disabled": disabled || selectedKeys.length == 0
|
|
159762
159853
|
},
|
|
159763
159854
|
"on": {
|
|
159764
159855
|
"click": e => this.select(a, e)
|
|
@@ -159773,7 +159864,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159773
159864
|
"attrs": {
|
|
159774
159865
|
"type": "danger",
|
|
159775
159866
|
"size": size,
|
|
159776
|
-
"disabled": disabled || selectedKeys == 0
|
|
159867
|
+
"disabled": disabled || selectedKeys.length == 0
|
|
159777
159868
|
},
|
|
159778
159869
|
"on": {
|
|
159779
159870
|
"click": e => this.select(a, e)
|
|
@@ -159851,6 +159942,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159851
159942
|
|
|
159852
159943
|
/***/ }),
|
|
159853
159944
|
|
|
159945
|
+
/***/ "e95a":
|
|
159946
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
159947
|
+
|
|
159948
|
+
// extracted by mini-css-extract-plugin
|
|
159949
|
+
|
|
159950
|
+
/***/ }),
|
|
159951
|
+
|
|
159854
159952
|
/***/ "e9e0":
|
|
159855
159953
|
/***/ (function(module, exports, __webpack_require__) {
|
|
159856
159954
|
|
|
@@ -162394,7 +162492,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162394
162492
|
dragstart(a) {
|
|
162395
162493
|
if (this.draggable) {
|
|
162396
162494
|
a.dataTransfer.setData(this.dragType, this.id);
|
|
162397
|
-
this.$store.commit('
|
|
162495
|
+
this.$store.commit('setDragId', this.id);
|
|
162398
162496
|
this.$emit('dragstart', a);
|
|
162399
162497
|
}
|
|
162400
162498
|
},
|
|
@@ -162437,7 +162535,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162437
162535
|
this.animate(draging, dragPostion);
|
|
162438
162536
|
this.animate(droping, dropPostion);
|
|
162439
162537
|
}
|
|
162440
|
-
this.$store.commit('
|
|
162538
|
+
this.$store.commit('setDropId', this.id);
|
|
162441
162539
|
this.$emit('drop', a);
|
|
162442
162540
|
}
|
|
162443
162541
|
},
|
|
@@ -165364,17 +165462,6 @@ Clip.prototype = {
|
|
|
165364
165462
|
var _default = Clip;
|
|
165365
165463
|
module.exports = _default;
|
|
165366
165464
|
|
|
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
165465
|
/***/ }),
|
|
165379
165466
|
|
|
165380
165467
|
/***/ "f8d0":
|
|
@@ -167003,7 +167090,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167003
167090
|
},
|
|
167004
167091
|
inline: {
|
|
167005
167092
|
type: Boolean,
|
|
167006
|
-
default: () =>
|
|
167093
|
+
default: () => false
|
|
167007
167094
|
},
|
|
167008
167095
|
cols: {
|
|
167009
167096
|
type: String,
|
|
@@ -167052,21 +167139,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167052
167139
|
},
|
|
167053
167140
|
data() {
|
|
167054
167141
|
return {
|
|
167055
|
-
form: {}
|
|
167142
|
+
form: {},
|
|
167143
|
+
height: 0,
|
|
167144
|
+
opened: false
|
|
167056
167145
|
};
|
|
167057
167146
|
},
|
|
167058
167147
|
created() {
|
|
167059
167148
|
this.create();
|
|
167060
167149
|
},
|
|
167061
|
-
mounted() {
|
|
167150
|
+
mounted() {
|
|
167151
|
+
this.update();
|
|
167152
|
+
},
|
|
167062
167153
|
destroyed() {
|
|
167063
167154
|
this.create = null;
|
|
167155
|
+
this.update = null;
|
|
167064
167156
|
this.submit = null;
|
|
167065
167157
|
this.cancel = null;
|
|
167066
167158
|
this.filter = null;
|
|
167067
167159
|
this.result = null;
|
|
167160
|
+
this.switch = null;
|
|
167068
167161
|
this.prompt = null;
|
|
167069
167162
|
this.format = null;
|
|
167163
|
+
this.output = null;
|
|
167070
167164
|
},
|
|
167071
167165
|
watch: {
|
|
167072
167166
|
values() {
|
|
@@ -167083,43 +167177,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167083
167177
|
this.form = data;
|
|
167084
167178
|
}
|
|
167085
167179
|
},
|
|
167180
|
+
update() {
|
|
167181
|
+
let rows = Math.ceil(Object.keys(this.config).length / this.cols);
|
|
167182
|
+
this.height = this.$el.clientHeight * (rows - 1);
|
|
167183
|
+
},
|
|
167086
167184
|
submit(e) {
|
|
167087
167185
|
// 提交表单
|
|
167088
167186
|
e && e.preventDefault();
|
|
167089
167187
|
let pass = !this.check; // 判断是否是空表单
|
|
167090
|
-
for (let a in this.form) if (this.form[a]
|
|
167188
|
+
for (let a in this.form) if (this.form[a] != '') pass = true;
|
|
167091
167189
|
let data = {};
|
|
167092
167190
|
if (Object.keys(this.config).length > 0) {
|
|
167093
167191
|
// 格式化属性为模糊查询属性
|
|
167094
167192
|
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]
|
|
167193
|
+
if (this.config[a] != '' && this.config[a].like && this.form[a] != '' && this.form[a] != null && this.form[a] != undefined) {
|
|
167194
|
+
if (this.config[a].like == 'left') data[a] = '%' + this.form[a];
|
|
167195
|
+
if (this.config[a].like == 'right') data[a] = this.form[a] + '%';else data[a] = '%' + this.form[a] + '%';
|
|
167098
167196
|
} else {
|
|
167099
167197
|
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].
|
|
167198
|
+
data[`${a}LE`] = this.form[`${a}LE`];
|
|
167199
|
+
data[`${a}GE`] = this.form[`${a}GE`];
|
|
167200
|
+
} 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
167201
|
}
|
|
167104
167202
|
}
|
|
167105
167203
|
}
|
|
167106
167204
|
if (pass) {
|
|
167107
167205
|
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
167206
|
this.$nextTick(() => {
|
|
167118
|
-
|
|
167119
|
-
Object.keys(result).forEach(a => result[a] != formParams[a] && (change = true));
|
|
167120
|
-
if (change) this.$emit('submit', {
|
|
167207
|
+
this.$emit('submit', {
|
|
167121
167208
|
...result,
|
|
167122
|
-
...pageParams,
|
|
167123
167209
|
page: 1
|
|
167124
167210
|
}); // 派发事件并重置当前分页
|
|
167125
167211
|
return result;
|
|
@@ -167132,15 +167218,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167132
167218
|
let pass = !this.check; // 判断是否是空表单
|
|
167133
167219
|
for (let a in this.form) if (this.form[a] != '') pass = true;
|
|
167134
167220
|
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
167221
|
this.$nextTick(() => {
|
|
167145
167222
|
for (let a in this.form) this.form[a] = '';
|
|
167146
167223
|
this.$nextTick(() => this.$emit('cancel', this.form));
|
|
@@ -167148,19 +167225,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167148
167225
|
}
|
|
167149
167226
|
},
|
|
167150
167227
|
filter(form = {}) {
|
|
167151
|
-
// 过滤空值属性
|
|
167152
167228
|
const data = {};
|
|
167153
167229
|
for (let a in form) {
|
|
167154
|
-
if (
|
|
167155
|
-
data[a] = form[a];
|
|
167156
|
-
}
|
|
167230
|
+
if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
|
|
167157
167231
|
}
|
|
167158
167232
|
return data;
|
|
167159
167233
|
},
|
|
167160
167234
|
result() {
|
|
167161
|
-
// 返回验证后的表单数据
|
|
167162
167235
|
return this.filter(this.form);
|
|
167163
167236
|
},
|
|
167237
|
+
switch() {
|
|
167238
|
+
this.opened = !this.opened;
|
|
167239
|
+
},
|
|
167164
167240
|
prompt(a = {}, index = 0, placeholder = '') {
|
|
167165
167241
|
if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
|
|
167166
167242
|
return placeholder;
|
|
@@ -167189,6 +167265,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167189
167265
|
}
|
|
167190
167266
|
});
|
|
167191
167267
|
}
|
|
167268
|
+
},
|
|
167269
|
+
output(a, b) {
|
|
167270
|
+
const h = this.$createElement;
|
|
167271
|
+
let style = this.cols != '' ? {
|
|
167272
|
+
width: `${100 / this.cols}%`
|
|
167273
|
+
} : {};
|
|
167274
|
+
return h("el-col", {
|
|
167275
|
+
"key": b,
|
|
167276
|
+
"style": style
|
|
167277
|
+
}, [h("el-form-item", {
|
|
167278
|
+
"attrs": {
|
|
167279
|
+
"prop": `${a}`,
|
|
167280
|
+
"label": this.label ? this.config[a]['text'] : ''
|
|
167281
|
+
}
|
|
167282
|
+
}, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
|
|
167283
|
+
"class": "range-cols"
|
|
167284
|
+
}, [h("el-col", {
|
|
167285
|
+
"attrs": {
|
|
167286
|
+
"span": 12
|
|
167287
|
+
}
|
|
167288
|
+
}, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
|
|
167289
|
+
"attrs": {
|
|
167290
|
+
"span": 12
|
|
167291
|
+
}
|
|
167292
|
+
}, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
|
|
167192
167293
|
}
|
|
167193
167294
|
},
|
|
167194
167295
|
render() {
|
|
@@ -167200,10 +167301,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167200
167301
|
submit = null,
|
|
167201
167302
|
cancel = null
|
|
167202
167303
|
} = 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
167304
|
return h("div", {
|
|
167208
167305
|
"class": "b-f-search",
|
|
167209
167306
|
"style": {
|
|
@@ -167212,7 +167309,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167212
167309
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
167213
167310
|
"ref": "form",
|
|
167214
167311
|
"attrs": {
|
|
167215
|
-
"size": this.size
|
|
167312
|
+
"size": this.size,
|
|
167313
|
+
"inline": this.inline
|
|
167216
167314
|
}
|
|
167217
167315
|
}, {
|
|
167218
167316
|
"props": {
|
|
@@ -167224,38 +167322,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167224
167322
|
"labelWidth": this.labelWidth,
|
|
167225
167323
|
"labelPosition": this.labelPosition
|
|
167226
167324
|
}
|
|
167227
|
-
}]), [h("
|
|
167325
|
+
}]), [h("div", {
|
|
167326
|
+
"class": "column"
|
|
167327
|
+
}, [h("el-row", {
|
|
167228
167328
|
"attrs": {
|
|
167229
167329
|
"gutter": Number(this.gutter)
|
|
167230
|
-
}
|
|
167231
|
-
|
|
167232
|
-
|
|
167233
|
-
"class": "column",
|
|
167234
|
-
"style": style
|
|
167235
|
-
}, [h("el-form-item", {
|
|
167330
|
+
},
|
|
167331
|
+
"class": "main-row"
|
|
167332
|
+
}, [Object.keys(this.config).map((a, b) => b < this.cols && this.output(a, b))]), h("el-row", {
|
|
167236
167333
|
"attrs": {
|
|
167237
|
-
"
|
|
167238
|
-
|
|
167334
|
+
"gutter": Number(this.gutter)
|
|
167335
|
+
},
|
|
167336
|
+
"class": "fold-row",
|
|
167337
|
+
"style": {
|
|
167338
|
+
height: this.opened ? `${this.height}px` : '0'
|
|
167239
167339
|
}
|
|
167240
|
-
}, [this.config
|
|
167241
|
-
"class": "
|
|
167242
|
-
|
|
167243
|
-
|
|
167244
|
-
"span": 12
|
|
167340
|
+
}, [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", {
|
|
167341
|
+
"class": "action",
|
|
167342
|
+
"style": {
|
|
167343
|
+
paddingLeft: `${this.gutter}px`
|
|
167245
167344
|
}
|
|
167246
|
-
}, [
|
|
167345
|
+
}, [h("el-form-item", {
|
|
167247
167346
|
"attrs": {
|
|
167248
|
-
"
|
|
167347
|
+
"label": "action"
|
|
167249
167348
|
}
|
|
167250
|
-
}, [
|
|
167251
|
-
"key": "action",
|
|
167252
|
-
"class": "action",
|
|
167253
|
-
"style": style
|
|
167254
|
-
}, [h("el-form-item", {
|
|
167349
|
+
}, [Object.keys(this.config).length > this.cols && h("el-button", {
|
|
167255
167350
|
"attrs": {
|
|
167256
|
-
"
|
|
167351
|
+
"disabled": this.loading,
|
|
167352
|
+
"type": "text"
|
|
167353
|
+
},
|
|
167354
|
+
"class": "collapse-button",
|
|
167355
|
+
"on": {
|
|
167356
|
+
"click": this.switch
|
|
167257
167357
|
}
|
|
167258
|
-
}, [
|
|
167358
|
+
}, [h("i", {
|
|
167359
|
+
"class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
|
|
167360
|
+
}), this.opened ? '收起' : '展开']), submit && h("el-button", {
|
|
167259
167361
|
"attrs": {
|
|
167260
167362
|
"disabled": this.loading,
|
|
167261
167363
|
"type": "primary"
|
|
@@ -167271,7 +167373,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167271
167373
|
"on": {
|
|
167272
167374
|
"click": this.cancel
|
|
167273
167375
|
}
|
|
167274
|
-
}, [this.cancelText])])])])])
|
|
167376
|
+
}, [this.cancelText])])])])]);
|
|
167275
167377
|
}
|
|
167276
167378
|
});
|
|
167277
167379
|
|