@weitutech/by-components 1.1.48 → 1.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/by-components.common.js +63 -43
- package/lib/by-components.umd.js +63 -43
- package/lib/by-components.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -60535,7 +60535,7 @@ if (typeof window !== 'undefined') {
|
|
|
60535
60535
|
var es_iterator_constructor = __webpack_require__(8111);
|
|
60536
60536
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
60537
60537
|
var es_iterator_for_each = __webpack_require__(7588);
|
|
60538
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/pager/index.vue?vue&type=template&id=
|
|
60538
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/pager/index.vue?vue&type=template&id=88b7da70
|
|
60539
60539
|
var render = function render() {
|
|
60540
60540
|
var _vm = this,
|
|
60541
60541
|
_c = _vm._self._c;
|
|
@@ -60563,7 +60563,7 @@ var staticRenderFns = [];
|
|
|
60563
60563
|
|
|
60564
60564
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/pager/index.vue?vue&type=script&lang=js
|
|
60565
60565
|
/* harmony default export */ var pagervue_type_script_lang_js = ({
|
|
60566
|
-
name: '
|
|
60566
|
+
name: 'ByPager',
|
|
60567
60567
|
props: {
|
|
60568
60568
|
limit: {
|
|
60569
60569
|
type: Number,
|
|
@@ -60742,8 +60742,8 @@ var component = normalizeComponent(
|
|
|
60742
60742
|
)
|
|
60743
60743
|
|
|
60744
60744
|
/* harmony default export */ var pager = (component.exports);
|
|
60745
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=
|
|
60746
|
-
var
|
|
60745
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=470bed02
|
|
60746
|
+
var tablevue_type_template_id_470bed02_render = function render() {
|
|
60747
60747
|
var _vm = this,
|
|
60748
60748
|
_c = _vm._self._c;
|
|
60749
60749
|
return _c('div', [_c('vxe-grid', _vm._g(_vm._b({
|
|
@@ -60817,7 +60817,7 @@ var tablevue_type_template_id_edc3cbea_render = function render() {
|
|
|
60817
60817
|
}
|
|
60818
60818
|
}) : _vm._e()], 1);
|
|
60819
60819
|
};
|
|
60820
|
-
var
|
|
60820
|
+
var tablevue_type_template_id_470bed02_staticRenderFns = [];
|
|
60821
60821
|
|
|
60822
60822
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
60823
60823
|
var es_array_push = __webpack_require__(4114);
|
|
@@ -61741,7 +61741,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61741
61741
|
|
|
61742
61742
|
|
|
61743
61743
|
/* harmony default export */ var tablevue_type_script_lang_js = ({
|
|
61744
|
-
name: '
|
|
61744
|
+
name: 'ByTable',
|
|
61745
61745
|
components: {
|
|
61746
61746
|
CustomColumn: custom_column
|
|
61747
61747
|
},
|
|
@@ -61770,6 +61770,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61770
61770
|
* @property {boolean} sortConfig.remote - 是否远程排序
|
|
61771
61771
|
* @property {string} sortConfig.trigger - 排序触发方式
|
|
61772
61772
|
* @property {boolean} sortConfig.frontendSort - 是否启用前端排序
|
|
61773
|
+
* @property {boolean} sortConfig.hasTopRow - 是否显示特殊第一行
|
|
61773
61774
|
* @property {Array} copyFields - 可复制字段列表
|
|
61774
61775
|
* @property {string} emptyText - 空数据提示文本
|
|
61775
61776
|
* @property {Object} loadingConfig - 加载配置
|
|
@@ -61788,6 +61789,10 @@ var custom_column_component = normalizeComponent(
|
|
|
61788
61789
|
// 是否根据内容自动撑高
|
|
61789
61790
|
type: Boolean,
|
|
61790
61791
|
default: false
|
|
61792
|
+
},
|
|
61793
|
+
loading: {
|
|
61794
|
+
type: Boolean,
|
|
61795
|
+
default: false
|
|
61791
61796
|
}
|
|
61792
61797
|
},
|
|
61793
61798
|
data() {
|
|
@@ -61811,8 +61816,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61811
61816
|
sortState: {
|
|
61812
61817
|
field: null,
|
|
61813
61818
|
order: null
|
|
61814
|
-
}
|
|
61815
|
-
tableLoading: false
|
|
61819
|
+
}
|
|
61816
61820
|
};
|
|
61817
61821
|
},
|
|
61818
61822
|
mounted() {
|
|
@@ -61858,7 +61862,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61858
61862
|
},
|
|
61859
61863
|
computed: {
|
|
61860
61864
|
options() {
|
|
61861
|
-
var _others$pagerConfig, _others$sortConfig, _others$pagerConfig2, _others$pagerConfig3, _others$sortConfig2;
|
|
61865
|
+
var _others$pagerConfig, _others$sortConfig, _others$pagerConfig2, _others$pagerConfig3, _others$sortConfig2, _sortConfig$remote;
|
|
61862
61866
|
const {
|
|
61863
61867
|
customColumnConfig,
|
|
61864
61868
|
columns,
|
|
@@ -61907,7 +61911,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61907
61911
|
copyFields: [],
|
|
61908
61912
|
// pagerConfig: pagerConfig,
|
|
61909
61913
|
emptyText: '暂无数据',
|
|
61910
|
-
loading: this.
|
|
61914
|
+
loading: this.loading,
|
|
61911
61915
|
loadingConfig: {
|
|
61912
61916
|
text: '加载中...'
|
|
61913
61917
|
},
|
|
@@ -61925,8 +61929,8 @@ var custom_column_component = normalizeComponent(
|
|
|
61925
61929
|
sortConfig: {
|
|
61926
61930
|
...sortConfig,
|
|
61927
61931
|
// 只在前端排序/分页时强制 remote: true
|
|
61928
|
-
//
|
|
61929
|
-
remote: (_others$pagerConfig3 = others.pagerConfig) !== null && _others$pagerConfig3 !== void 0 && _others$pagerConfig3.frontendPagination || (_others$sortConfig2 = others.sortConfig) !== null && _others$sortConfig2 !== void 0 && _others$sortConfig2.frontendSort ? true : sortConfig === null || sortConfig === void 0 ? void 0 : sortConfig.remote,
|
|
61932
|
+
// 其他情况保持外部配置,但确保后端分页时remote为false
|
|
61933
|
+
remote: (_others$pagerConfig3 = others.pagerConfig) !== null && _others$pagerConfig3 !== void 0 && _others$pagerConfig3.frontendPagination || (_others$sortConfig2 = others.sortConfig) !== null && _others$sortConfig2 !== void 0 && _others$sortConfig2.frontendSort ? true : (_sortConfig$remote = sortConfig === null || sortConfig === void 0 ? void 0 : sortConfig.remote) !== null && _sortConfig$remote !== void 0 ? _sortConfig$remote : false,
|
|
61930
61934
|
trigger: 'cell',
|
|
61931
61935
|
...this.gridOptions.sortConfig
|
|
61932
61936
|
},
|
|
@@ -62120,8 +62124,8 @@ var custom_column_component = normalizeComponent(
|
|
|
62120
62124
|
* @returns 特殊的第一条数据
|
|
62121
62125
|
*/
|
|
62122
62126
|
specialFirstRow(allData) {
|
|
62123
|
-
|
|
62124
|
-
return
|
|
62127
|
+
var _this$gridOptions2, _this$gridOptions2$so;
|
|
62128
|
+
return (_this$gridOptions2 = this.gridOptions) !== null && _this$gridOptions2 !== void 0 && (_this$gridOptions2$so = _this$gridOptions2.sortConfig) !== null && _this$gridOptions2$so !== void 0 && _this$gridOptions2$so.hasTopRow ? allData[0] : null;
|
|
62125
62129
|
},
|
|
62126
62130
|
/**
|
|
62127
62131
|
* 获取当前页显示数据
|
|
@@ -62222,10 +62226,12 @@ var custom_column_component = normalizeComponent(
|
|
|
62222
62226
|
order
|
|
62223
62227
|
} = event;
|
|
62224
62228
|
const shouldHandleSort = ((_this$gridOptions$pag2 = this.gridOptions.pagerConfig) === null || _this$gridOptions$pag2 === void 0 ? void 0 : _this$gridOptions$pag2.frontendPagination) || ((_this$gridOptions$sor = this.gridOptions.sortConfig) === null || _this$gridOptions$sor === void 0 ? void 0 : _this$gridOptions$sor.frontendSort);
|
|
62229
|
+
|
|
62230
|
+
// 无论前端还是后端分页,都保存排序状态用于恢复箭头高亮
|
|
62231
|
+
this.sortState.field = property;
|
|
62232
|
+
this.sortState.order = order;
|
|
62225
62233
|
if (shouldHandleSort) {
|
|
62226
62234
|
var _this$gridOptions$pag3, _this$gridOptions$pag4;
|
|
62227
|
-
this.sortState.field = property;
|
|
62228
|
-
this.sortState.order = order;
|
|
62229
62235
|
const newData = this.spliteListData(this.allData, (_this$gridOptions$pag3 = this.gridOptions.pagerConfig) !== null && _this$gridOptions$pag3 !== void 0 && _this$gridOptions$pag3.frontendPagination ? this.gridOptions.pagerConfig.currentPage : null, (_this$gridOptions$pag4 = this.gridOptions.pagerConfig) !== null && _this$gridOptions$pag4 !== void 0 && _this$gridOptions$pag4.frontendPagination ? this.gridOptions.pagerConfig.pageSize : null);
|
|
62230
62236
|
if (this.$refs.xGrid) {
|
|
62231
62237
|
this.$refs.xGrid.reloadData(newData);
|
|
@@ -62257,6 +62263,17 @@ var custom_column_component = normalizeComponent(
|
|
|
62257
62263
|
}, 0);
|
|
62258
62264
|
});
|
|
62259
62265
|
}
|
|
62266
|
+
} else {
|
|
62267
|
+
// 后端分页模式下,确保排序箭头高亮
|
|
62268
|
+
this.$nextTick(() => {
|
|
62269
|
+
if (property && order && this.$refs.xGrid) {
|
|
62270
|
+
setTimeout(() => {
|
|
62271
|
+
this.$refs.xGrid.sort(property, order, {
|
|
62272
|
+
silent: true
|
|
62273
|
+
});
|
|
62274
|
+
}, 100);
|
|
62275
|
+
}
|
|
62276
|
+
});
|
|
62260
62277
|
}
|
|
62261
62278
|
this.$emit('sort-change', event);
|
|
62262
62279
|
},
|
|
@@ -62287,8 +62304,8 @@ var custom_column_component = normalizeComponent(
|
|
|
62287
62304
|
;
|
|
62288
62305
|
var table_component = normalizeComponent(
|
|
62289
62306
|
components_tablevue_type_script_lang_js,
|
|
62290
|
-
|
|
62291
|
-
|
|
62307
|
+
tablevue_type_template_id_470bed02_render,
|
|
62308
|
+
tablevue_type_template_id_470bed02_staticRenderFns,
|
|
62292
62309
|
false,
|
|
62293
62310
|
null,
|
|
62294
62311
|
null,
|
|
@@ -62577,8 +62594,8 @@ var formvue_type_template_id_f2397dbe_scoped_true_render = function render() {
|
|
|
62577
62594
|
};
|
|
62578
62595
|
var formvue_type_template_id_f2397dbe_scoped_true_staticRenderFns = [];
|
|
62579
62596
|
|
|
62580
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/pair-number-input.vue?vue&type=template&id=
|
|
62581
|
-
var
|
|
62597
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/pair-number-input.vue?vue&type=template&id=604235f6
|
|
62598
|
+
var pair_number_inputvue_type_template_id_604235f6_render = function render() {
|
|
62582
62599
|
var _vm = this,
|
|
62583
62600
|
_c = _vm._self._c;
|
|
62584
62601
|
return _c('div', {
|
|
@@ -62605,10 +62622,11 @@ var pair_number_inputvue_type_template_id_3344cc16_render = function render() {
|
|
|
62605
62622
|
}
|
|
62606
62623
|
})], 1);
|
|
62607
62624
|
};
|
|
62608
|
-
var
|
|
62625
|
+
var pair_number_inputvue_type_template_id_604235f6_staticRenderFns = [];
|
|
62609
62626
|
|
|
62610
62627
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/pair-number-input.vue?vue&type=script&lang=js
|
|
62611
62628
|
/* harmony default export */ var pair_number_inputvue_type_script_lang_js = ({
|
|
62629
|
+
name: 'ByPairNumberInput',
|
|
62612
62630
|
props: {
|
|
62613
62631
|
value: {
|
|
62614
62632
|
type: Array,
|
|
@@ -62671,8 +62689,8 @@ var pair_number_inputvue_type_template_id_3344cc16_staticRenderFns = [];
|
|
|
62671
62689
|
;
|
|
62672
62690
|
var pair_number_input_component = normalizeComponent(
|
|
62673
62691
|
comps_pair_number_inputvue_type_script_lang_js,
|
|
62674
|
-
|
|
62675
|
-
|
|
62692
|
+
pair_number_inputvue_type_template_id_604235f6_render,
|
|
62693
|
+
pair_number_inputvue_type_template_id_604235f6_staticRenderFns,
|
|
62676
62694
|
false,
|
|
62677
62695
|
null,
|
|
62678
62696
|
null,
|
|
@@ -62681,8 +62699,8 @@ var pair_number_input_component = normalizeComponent(
|
|
|
62681
62699
|
)
|
|
62682
62700
|
|
|
62683
62701
|
/* harmony default export */ var pair_number_input = (pair_number_input_component.exports);
|
|
62684
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/custom-date-picker.vue?vue&type=template&id=
|
|
62685
|
-
var
|
|
62702
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/custom-date-picker.vue?vue&type=template&id=250a2dc7
|
|
62703
|
+
var custom_date_pickervue_type_template_id_250a2dc7_render = function render() {
|
|
62686
62704
|
var _vm = this,
|
|
62687
62705
|
_c = _vm._self._c;
|
|
62688
62706
|
return _c('div', {
|
|
@@ -62714,7 +62732,7 @@ var custom_date_pickervue_type_template_id_2b63f178_render = function render() {
|
|
|
62714
62732
|
}, [_vm._v(" " + _vm._s(item.label) + " ")]);
|
|
62715
62733
|
}), 0)], 1);
|
|
62716
62734
|
};
|
|
62717
|
-
var
|
|
62735
|
+
var custom_date_pickervue_type_template_id_250a2dc7_staticRenderFns = [];
|
|
62718
62736
|
|
|
62719
62737
|
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
62720
62738
|
var moment = __webpack_require__(9412);
|
|
@@ -62726,6 +62744,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
62726
62744
|
|
|
62727
62745
|
|
|
62728
62746
|
/* harmony default export */ var custom_date_pickervue_type_script_lang_js = ({
|
|
62747
|
+
name: 'ByCustomDatePicker',
|
|
62729
62748
|
props: {
|
|
62730
62749
|
value: {
|
|
62731
62750
|
type: [Array, String],
|
|
@@ -62863,8 +62882,8 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
62863
62882
|
;
|
|
62864
62883
|
var custom_date_picker_component = normalizeComponent(
|
|
62865
62884
|
comps_custom_date_pickervue_type_script_lang_js,
|
|
62866
|
-
|
|
62867
|
-
|
|
62885
|
+
custom_date_pickervue_type_template_id_250a2dc7_render,
|
|
62886
|
+
custom_date_pickervue_type_template_id_250a2dc7_staticRenderFns,
|
|
62868
62887
|
false,
|
|
62869
62888
|
null,
|
|
62870
62889
|
null,
|
|
@@ -63096,8 +63115,8 @@ var form_component = normalizeComponent(
|
|
|
63096
63115
|
)
|
|
63097
63116
|
|
|
63098
63117
|
/* harmony default export */ var form_form = (form_component.exports);
|
|
63099
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/page-search/page-search.vue?vue&type=template&id=
|
|
63100
|
-
var
|
|
63118
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/page-search/page-search.vue?vue&type=template&id=642560df
|
|
63119
|
+
var page_searchvue_type_template_id_642560df_render = function render() {
|
|
63101
63120
|
var _vm = this,
|
|
63102
63121
|
_c = _vm._self._c;
|
|
63103
63122
|
return _c('div', {
|
|
@@ -63143,7 +63162,7 @@ var page_searchvue_type_template_id_feae5b44_render = function render() {
|
|
|
63143
63162
|
})], null, true)
|
|
63144
63163
|
}, 'by-form', _vm.searchFormConfig, false))], 1);
|
|
63145
63164
|
};
|
|
63146
|
-
var
|
|
63165
|
+
var page_searchvue_type_template_id_642560df_staticRenderFns = [];
|
|
63147
63166
|
|
|
63148
63167
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/page-search/page-search.vue?vue&type=script&lang=js
|
|
63149
63168
|
|
|
@@ -63151,6 +63170,7 @@ var page_searchvue_type_template_id_feae5b44_staticRenderFns = [];
|
|
|
63151
63170
|
|
|
63152
63171
|
|
|
63153
63172
|
/* harmony default export */ var page_searchvue_type_script_lang_js = ({
|
|
63173
|
+
name: 'ByPageSearch',
|
|
63154
63174
|
props: {
|
|
63155
63175
|
searchFormConfig: {
|
|
63156
63176
|
type: Object,
|
|
@@ -63256,8 +63276,8 @@ var page_searchvue_type_template_id_feae5b44_staticRenderFns = [];
|
|
|
63256
63276
|
;
|
|
63257
63277
|
var page_search_component = normalizeComponent(
|
|
63258
63278
|
page_search_page_searchvue_type_script_lang_js,
|
|
63259
|
-
|
|
63260
|
-
|
|
63279
|
+
page_searchvue_type_template_id_642560df_render,
|
|
63280
|
+
page_searchvue_type_template_id_642560df_staticRenderFns,
|
|
63261
63281
|
false,
|
|
63262
63282
|
null,
|
|
63263
63283
|
null,
|
|
@@ -63342,8 +63362,8 @@ var fold_search_component = normalizeComponent(
|
|
|
63342
63362
|
)
|
|
63343
63363
|
|
|
63344
63364
|
/* harmony default export */ var fold_search = (fold_search_component.exports);
|
|
63345
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/select.vue?vue&type=template&id=
|
|
63346
|
-
var
|
|
63365
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/select.vue?vue&type=template&id=1b25f46b
|
|
63366
|
+
var selectvue_type_template_id_1b25f46b_render = function render() {
|
|
63347
63367
|
var _vm = this,
|
|
63348
63368
|
_c = _vm._self._c;
|
|
63349
63369
|
return _c('el-select', _vm._b({
|
|
@@ -63351,7 +63371,7 @@ var selectvue_type_template_id_2ee8e5b9_render = function render() {
|
|
|
63351
63371
|
attrs: {
|
|
63352
63372
|
"value": _vm.value,
|
|
63353
63373
|
"placeholder": _vm.config && _vm.config.placeholder || '请选择',
|
|
63354
|
-
"loading": _vm.
|
|
63374
|
+
"loading": _vm.innerLoading
|
|
63355
63375
|
},
|
|
63356
63376
|
on: {
|
|
63357
63377
|
"change": _vm.change,
|
|
@@ -63386,7 +63406,7 @@ var selectvue_type_template_id_2ee8e5b9_render = function render() {
|
|
|
63386
63406
|
});
|
|
63387
63407
|
})], 2);
|
|
63388
63408
|
};
|
|
63389
|
-
var
|
|
63409
|
+
var selectvue_type_template_id_1b25f46b_staticRenderFns = [];
|
|
63390
63410
|
|
|
63391
63411
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
|
|
63392
63412
|
var element_ui_common = __webpack_require__(4927);
|
|
@@ -63395,7 +63415,7 @@ var element_ui_common = __webpack_require__(4927);
|
|
|
63395
63415
|
|
|
63396
63416
|
|
|
63397
63417
|
/* harmony default export */ var selectvue_type_script_lang_js = ({
|
|
63398
|
-
name: '
|
|
63418
|
+
name: 'BySelect',
|
|
63399
63419
|
props: {
|
|
63400
63420
|
...element_ui_common.Select.props,
|
|
63401
63421
|
value: {
|
|
@@ -63433,7 +63453,7 @@ var element_ui_common = __webpack_require__(4927);
|
|
|
63433
63453
|
return {
|
|
63434
63454
|
searchVal: '',
|
|
63435
63455
|
filterData: [],
|
|
63436
|
-
|
|
63456
|
+
innerLoading: false,
|
|
63437
63457
|
asyncOptions: []
|
|
63438
63458
|
};
|
|
63439
63459
|
},
|
|
@@ -63464,7 +63484,7 @@ var element_ui_common = __webpack_require__(4927);
|
|
|
63464
63484
|
async loadAsyncOptions() {
|
|
63465
63485
|
if (!this.loadOptions) return;
|
|
63466
63486
|
try {
|
|
63467
|
-
this.
|
|
63487
|
+
this.innerLoading = true;
|
|
63468
63488
|
const result = await this.loadOptions();
|
|
63469
63489
|
|
|
63470
63490
|
// 支持直接返回数组或返回包含 data 属性的对象
|
|
@@ -63474,7 +63494,7 @@ var element_ui_common = __webpack_require__(4927);
|
|
|
63474
63494
|
console.error('加载选项数据失败:', error);
|
|
63475
63495
|
this.$emit('load-error', error);
|
|
63476
63496
|
} finally {
|
|
63477
|
-
this.
|
|
63497
|
+
this.innerLoading = false;
|
|
63478
63498
|
}
|
|
63479
63499
|
},
|
|
63480
63500
|
// 手动刷新数据
|
|
@@ -63542,8 +63562,8 @@ var element_ui_common = __webpack_require__(4927);
|
|
|
63542
63562
|
;
|
|
63543
63563
|
var select_component = normalizeComponent(
|
|
63544
63564
|
comps_selectvue_type_script_lang_js,
|
|
63545
|
-
|
|
63546
|
-
|
|
63565
|
+
selectvue_type_template_id_1b25f46b_render,
|
|
63566
|
+
selectvue_type_template_id_1b25f46b_staticRenderFns,
|
|
63547
63567
|
false,
|
|
63548
63568
|
null,
|
|
63549
63569
|
null,
|
package/lib/by-components.umd.js
CHANGED
|
@@ -60545,7 +60545,7 @@ if (typeof window !== 'undefined') {
|
|
|
60545
60545
|
var es_iterator_constructor = __webpack_require__(8111);
|
|
60546
60546
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
60547
60547
|
var es_iterator_for_each = __webpack_require__(7588);
|
|
60548
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/pager/index.vue?vue&type=template&id=
|
|
60548
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/pager/index.vue?vue&type=template&id=88b7da70
|
|
60549
60549
|
var render = function render() {
|
|
60550
60550
|
var _vm = this,
|
|
60551
60551
|
_c = _vm._self._c;
|
|
@@ -60573,7 +60573,7 @@ var staticRenderFns = [];
|
|
|
60573
60573
|
|
|
60574
60574
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/pager/index.vue?vue&type=script&lang=js
|
|
60575
60575
|
/* harmony default export */ var pagervue_type_script_lang_js = ({
|
|
60576
|
-
name: '
|
|
60576
|
+
name: 'ByPager',
|
|
60577
60577
|
props: {
|
|
60578
60578
|
limit: {
|
|
60579
60579
|
type: Number,
|
|
@@ -60752,8 +60752,8 @@ var component = normalizeComponent(
|
|
|
60752
60752
|
)
|
|
60753
60753
|
|
|
60754
60754
|
/* harmony default export */ var pager = (component.exports);
|
|
60755
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=
|
|
60756
|
-
var
|
|
60755
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=470bed02
|
|
60756
|
+
var tablevue_type_template_id_470bed02_render = function render() {
|
|
60757
60757
|
var _vm = this,
|
|
60758
60758
|
_c = _vm._self._c;
|
|
60759
60759
|
return _c('div', [_c('vxe-grid', _vm._g(_vm._b({
|
|
@@ -60827,7 +60827,7 @@ var tablevue_type_template_id_edc3cbea_render = function render() {
|
|
|
60827
60827
|
}
|
|
60828
60828
|
}) : _vm._e()], 1);
|
|
60829
60829
|
};
|
|
60830
|
-
var
|
|
60830
|
+
var tablevue_type_template_id_470bed02_staticRenderFns = [];
|
|
60831
60831
|
|
|
60832
60832
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
60833
60833
|
var es_array_push = __webpack_require__(4114);
|
|
@@ -61751,7 +61751,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61751
61751
|
|
|
61752
61752
|
|
|
61753
61753
|
/* harmony default export */ var tablevue_type_script_lang_js = ({
|
|
61754
|
-
name: '
|
|
61754
|
+
name: 'ByTable',
|
|
61755
61755
|
components: {
|
|
61756
61756
|
CustomColumn: custom_column
|
|
61757
61757
|
},
|
|
@@ -61780,6 +61780,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61780
61780
|
* @property {boolean} sortConfig.remote - 是否远程排序
|
|
61781
61781
|
* @property {string} sortConfig.trigger - 排序触发方式
|
|
61782
61782
|
* @property {boolean} sortConfig.frontendSort - 是否启用前端排序
|
|
61783
|
+
* @property {boolean} sortConfig.hasTopRow - 是否显示特殊第一行
|
|
61783
61784
|
* @property {Array} copyFields - 可复制字段列表
|
|
61784
61785
|
* @property {string} emptyText - 空数据提示文本
|
|
61785
61786
|
* @property {Object} loadingConfig - 加载配置
|
|
@@ -61798,6 +61799,10 @@ var custom_column_component = normalizeComponent(
|
|
|
61798
61799
|
// 是否根据内容自动撑高
|
|
61799
61800
|
type: Boolean,
|
|
61800
61801
|
default: false
|
|
61802
|
+
},
|
|
61803
|
+
loading: {
|
|
61804
|
+
type: Boolean,
|
|
61805
|
+
default: false
|
|
61801
61806
|
}
|
|
61802
61807
|
},
|
|
61803
61808
|
data() {
|
|
@@ -61821,8 +61826,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61821
61826
|
sortState: {
|
|
61822
61827
|
field: null,
|
|
61823
61828
|
order: null
|
|
61824
|
-
}
|
|
61825
|
-
tableLoading: false
|
|
61829
|
+
}
|
|
61826
61830
|
};
|
|
61827
61831
|
},
|
|
61828
61832
|
mounted() {
|
|
@@ -61868,7 +61872,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61868
61872
|
},
|
|
61869
61873
|
computed: {
|
|
61870
61874
|
options() {
|
|
61871
|
-
var _others$pagerConfig, _others$sortConfig, _others$pagerConfig2, _others$pagerConfig3, _others$sortConfig2;
|
|
61875
|
+
var _others$pagerConfig, _others$sortConfig, _others$pagerConfig2, _others$pagerConfig3, _others$sortConfig2, _sortConfig$remote;
|
|
61872
61876
|
const {
|
|
61873
61877
|
customColumnConfig,
|
|
61874
61878
|
columns,
|
|
@@ -61917,7 +61921,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61917
61921
|
copyFields: [],
|
|
61918
61922
|
// pagerConfig: pagerConfig,
|
|
61919
61923
|
emptyText: '暂无数据',
|
|
61920
|
-
loading: this.
|
|
61924
|
+
loading: this.loading,
|
|
61921
61925
|
loadingConfig: {
|
|
61922
61926
|
text: '加载中...'
|
|
61923
61927
|
},
|
|
@@ -61935,8 +61939,8 @@ var custom_column_component = normalizeComponent(
|
|
|
61935
61939
|
sortConfig: {
|
|
61936
61940
|
...sortConfig,
|
|
61937
61941
|
// 只在前端排序/分页时强制 remote: true
|
|
61938
|
-
//
|
|
61939
|
-
remote: (_others$pagerConfig3 = others.pagerConfig) !== null && _others$pagerConfig3 !== void 0 && _others$pagerConfig3.frontendPagination || (_others$sortConfig2 = others.sortConfig) !== null && _others$sortConfig2 !== void 0 && _others$sortConfig2.frontendSort ? true : sortConfig === null || sortConfig === void 0 ? void 0 : sortConfig.remote,
|
|
61942
|
+
// 其他情况保持外部配置,但确保后端分页时remote为false
|
|
61943
|
+
remote: (_others$pagerConfig3 = others.pagerConfig) !== null && _others$pagerConfig3 !== void 0 && _others$pagerConfig3.frontendPagination || (_others$sortConfig2 = others.sortConfig) !== null && _others$sortConfig2 !== void 0 && _others$sortConfig2.frontendSort ? true : (_sortConfig$remote = sortConfig === null || sortConfig === void 0 ? void 0 : sortConfig.remote) !== null && _sortConfig$remote !== void 0 ? _sortConfig$remote : false,
|
|
61940
61944
|
trigger: 'cell',
|
|
61941
61945
|
...this.gridOptions.sortConfig
|
|
61942
61946
|
},
|
|
@@ -62130,8 +62134,8 @@ var custom_column_component = normalizeComponent(
|
|
|
62130
62134
|
* @returns 特殊的第一条数据
|
|
62131
62135
|
*/
|
|
62132
62136
|
specialFirstRow(allData) {
|
|
62133
|
-
|
|
62134
|
-
return
|
|
62137
|
+
var _this$gridOptions2, _this$gridOptions2$so;
|
|
62138
|
+
return (_this$gridOptions2 = this.gridOptions) !== null && _this$gridOptions2 !== void 0 && (_this$gridOptions2$so = _this$gridOptions2.sortConfig) !== null && _this$gridOptions2$so !== void 0 && _this$gridOptions2$so.hasTopRow ? allData[0] : null;
|
|
62135
62139
|
},
|
|
62136
62140
|
/**
|
|
62137
62141
|
* 获取当前页显示数据
|
|
@@ -62232,10 +62236,12 @@ var custom_column_component = normalizeComponent(
|
|
|
62232
62236
|
order
|
|
62233
62237
|
} = event;
|
|
62234
62238
|
const shouldHandleSort = ((_this$gridOptions$pag2 = this.gridOptions.pagerConfig) === null || _this$gridOptions$pag2 === void 0 ? void 0 : _this$gridOptions$pag2.frontendPagination) || ((_this$gridOptions$sor = this.gridOptions.sortConfig) === null || _this$gridOptions$sor === void 0 ? void 0 : _this$gridOptions$sor.frontendSort);
|
|
62239
|
+
|
|
62240
|
+
// 无论前端还是后端分页,都保存排序状态用于恢复箭头高亮
|
|
62241
|
+
this.sortState.field = property;
|
|
62242
|
+
this.sortState.order = order;
|
|
62235
62243
|
if (shouldHandleSort) {
|
|
62236
62244
|
var _this$gridOptions$pag3, _this$gridOptions$pag4;
|
|
62237
|
-
this.sortState.field = property;
|
|
62238
|
-
this.sortState.order = order;
|
|
62239
62245
|
const newData = this.spliteListData(this.allData, (_this$gridOptions$pag3 = this.gridOptions.pagerConfig) !== null && _this$gridOptions$pag3 !== void 0 && _this$gridOptions$pag3.frontendPagination ? this.gridOptions.pagerConfig.currentPage : null, (_this$gridOptions$pag4 = this.gridOptions.pagerConfig) !== null && _this$gridOptions$pag4 !== void 0 && _this$gridOptions$pag4.frontendPagination ? this.gridOptions.pagerConfig.pageSize : null);
|
|
62240
62246
|
if (this.$refs.xGrid) {
|
|
62241
62247
|
this.$refs.xGrid.reloadData(newData);
|
|
@@ -62267,6 +62273,17 @@ var custom_column_component = normalizeComponent(
|
|
|
62267
62273
|
}, 0);
|
|
62268
62274
|
});
|
|
62269
62275
|
}
|
|
62276
|
+
} else {
|
|
62277
|
+
// 后端分页模式下,确保排序箭头高亮
|
|
62278
|
+
this.$nextTick(() => {
|
|
62279
|
+
if (property && order && this.$refs.xGrid) {
|
|
62280
|
+
setTimeout(() => {
|
|
62281
|
+
this.$refs.xGrid.sort(property, order, {
|
|
62282
|
+
silent: true
|
|
62283
|
+
});
|
|
62284
|
+
}, 100);
|
|
62285
|
+
}
|
|
62286
|
+
});
|
|
62270
62287
|
}
|
|
62271
62288
|
this.$emit('sort-change', event);
|
|
62272
62289
|
},
|
|
@@ -62297,8 +62314,8 @@ var custom_column_component = normalizeComponent(
|
|
|
62297
62314
|
;
|
|
62298
62315
|
var table_component = normalizeComponent(
|
|
62299
62316
|
components_tablevue_type_script_lang_js,
|
|
62300
|
-
|
|
62301
|
-
|
|
62317
|
+
tablevue_type_template_id_470bed02_render,
|
|
62318
|
+
tablevue_type_template_id_470bed02_staticRenderFns,
|
|
62302
62319
|
false,
|
|
62303
62320
|
null,
|
|
62304
62321
|
null,
|
|
@@ -62587,8 +62604,8 @@ var formvue_type_template_id_f2397dbe_scoped_true_render = function render() {
|
|
|
62587
62604
|
};
|
|
62588
62605
|
var formvue_type_template_id_f2397dbe_scoped_true_staticRenderFns = [];
|
|
62589
62606
|
|
|
62590
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/pair-number-input.vue?vue&type=template&id=
|
|
62591
|
-
var
|
|
62607
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/pair-number-input.vue?vue&type=template&id=604235f6
|
|
62608
|
+
var pair_number_inputvue_type_template_id_604235f6_render = function render() {
|
|
62592
62609
|
var _vm = this,
|
|
62593
62610
|
_c = _vm._self._c;
|
|
62594
62611
|
return _c('div', {
|
|
@@ -62615,10 +62632,11 @@ var pair_number_inputvue_type_template_id_3344cc16_render = function render() {
|
|
|
62615
62632
|
}
|
|
62616
62633
|
})], 1);
|
|
62617
62634
|
};
|
|
62618
|
-
var
|
|
62635
|
+
var pair_number_inputvue_type_template_id_604235f6_staticRenderFns = [];
|
|
62619
62636
|
|
|
62620
62637
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/pair-number-input.vue?vue&type=script&lang=js
|
|
62621
62638
|
/* harmony default export */ var pair_number_inputvue_type_script_lang_js = ({
|
|
62639
|
+
name: 'ByPairNumberInput',
|
|
62622
62640
|
props: {
|
|
62623
62641
|
value: {
|
|
62624
62642
|
type: Array,
|
|
@@ -62681,8 +62699,8 @@ var pair_number_inputvue_type_template_id_3344cc16_staticRenderFns = [];
|
|
|
62681
62699
|
;
|
|
62682
62700
|
var pair_number_input_component = normalizeComponent(
|
|
62683
62701
|
comps_pair_number_inputvue_type_script_lang_js,
|
|
62684
|
-
|
|
62685
|
-
|
|
62702
|
+
pair_number_inputvue_type_template_id_604235f6_render,
|
|
62703
|
+
pair_number_inputvue_type_template_id_604235f6_staticRenderFns,
|
|
62686
62704
|
false,
|
|
62687
62705
|
null,
|
|
62688
62706
|
null,
|
|
@@ -62691,8 +62709,8 @@ var pair_number_input_component = normalizeComponent(
|
|
|
62691
62709
|
)
|
|
62692
62710
|
|
|
62693
62711
|
/* harmony default export */ var pair_number_input = (pair_number_input_component.exports);
|
|
62694
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/custom-date-picker.vue?vue&type=template&id=
|
|
62695
|
-
var
|
|
62712
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/custom-date-picker.vue?vue&type=template&id=250a2dc7
|
|
62713
|
+
var custom_date_pickervue_type_template_id_250a2dc7_render = function render() {
|
|
62696
62714
|
var _vm = this,
|
|
62697
62715
|
_c = _vm._self._c;
|
|
62698
62716
|
return _c('div', {
|
|
@@ -62724,7 +62742,7 @@ var custom_date_pickervue_type_template_id_2b63f178_render = function render() {
|
|
|
62724
62742
|
}, [_vm._v(" " + _vm._s(item.label) + " ")]);
|
|
62725
62743
|
}), 0)], 1);
|
|
62726
62744
|
};
|
|
62727
|
-
var
|
|
62745
|
+
var custom_date_pickervue_type_template_id_250a2dc7_staticRenderFns = [];
|
|
62728
62746
|
|
|
62729
62747
|
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
62730
62748
|
var moment = __webpack_require__(9618);
|
|
@@ -62736,6 +62754,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
62736
62754
|
|
|
62737
62755
|
|
|
62738
62756
|
/* harmony default export */ var custom_date_pickervue_type_script_lang_js = ({
|
|
62757
|
+
name: 'ByCustomDatePicker',
|
|
62739
62758
|
props: {
|
|
62740
62759
|
value: {
|
|
62741
62760
|
type: [Array, String],
|
|
@@ -62873,8 +62892,8 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
62873
62892
|
;
|
|
62874
62893
|
var custom_date_picker_component = normalizeComponent(
|
|
62875
62894
|
comps_custom_date_pickervue_type_script_lang_js,
|
|
62876
|
-
|
|
62877
|
-
|
|
62895
|
+
custom_date_pickervue_type_template_id_250a2dc7_render,
|
|
62896
|
+
custom_date_pickervue_type_template_id_250a2dc7_staticRenderFns,
|
|
62878
62897
|
false,
|
|
62879
62898
|
null,
|
|
62880
62899
|
null,
|
|
@@ -63106,8 +63125,8 @@ var form_component = normalizeComponent(
|
|
|
63106
63125
|
)
|
|
63107
63126
|
|
|
63108
63127
|
/* harmony default export */ var form_form = (form_component.exports);
|
|
63109
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/page-search/page-search.vue?vue&type=template&id=
|
|
63110
|
-
var
|
|
63128
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/page-search/page-search.vue?vue&type=template&id=642560df
|
|
63129
|
+
var page_searchvue_type_template_id_642560df_render = function render() {
|
|
63111
63130
|
var _vm = this,
|
|
63112
63131
|
_c = _vm._self._c;
|
|
63113
63132
|
return _c('div', {
|
|
@@ -63153,7 +63172,7 @@ var page_searchvue_type_template_id_feae5b44_render = function render() {
|
|
|
63153
63172
|
})], null, true)
|
|
63154
63173
|
}, 'by-form', _vm.searchFormConfig, false))], 1);
|
|
63155
63174
|
};
|
|
63156
|
-
var
|
|
63175
|
+
var page_searchvue_type_template_id_642560df_staticRenderFns = [];
|
|
63157
63176
|
|
|
63158
63177
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/page-search/page-search.vue?vue&type=script&lang=js
|
|
63159
63178
|
|
|
@@ -63161,6 +63180,7 @@ var page_searchvue_type_template_id_feae5b44_staticRenderFns = [];
|
|
|
63161
63180
|
|
|
63162
63181
|
|
|
63163
63182
|
/* harmony default export */ var page_searchvue_type_script_lang_js = ({
|
|
63183
|
+
name: 'ByPageSearch',
|
|
63164
63184
|
props: {
|
|
63165
63185
|
searchFormConfig: {
|
|
63166
63186
|
type: Object,
|
|
@@ -63266,8 +63286,8 @@ var page_searchvue_type_template_id_feae5b44_staticRenderFns = [];
|
|
|
63266
63286
|
;
|
|
63267
63287
|
var page_search_component = normalizeComponent(
|
|
63268
63288
|
page_search_page_searchvue_type_script_lang_js,
|
|
63269
|
-
|
|
63270
|
-
|
|
63289
|
+
page_searchvue_type_template_id_642560df_render,
|
|
63290
|
+
page_searchvue_type_template_id_642560df_staticRenderFns,
|
|
63271
63291
|
false,
|
|
63272
63292
|
null,
|
|
63273
63293
|
null,
|
|
@@ -63352,8 +63372,8 @@ var fold_search_component = normalizeComponent(
|
|
|
63352
63372
|
)
|
|
63353
63373
|
|
|
63354
63374
|
/* harmony default export */ var fold_search = (fold_search_component.exports);
|
|
63355
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/select.vue?vue&type=template&id=
|
|
63356
|
-
var
|
|
63375
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"268ca57a-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/select.vue?vue&type=template&id=1b25f46b
|
|
63376
|
+
var selectvue_type_template_id_1b25f46b_render = function render() {
|
|
63357
63377
|
var _vm = this,
|
|
63358
63378
|
_c = _vm._self._c;
|
|
63359
63379
|
return _c('el-select', _vm._b({
|
|
@@ -63361,7 +63381,7 @@ var selectvue_type_template_id_2ee8e5b9_render = function render() {
|
|
|
63361
63381
|
attrs: {
|
|
63362
63382
|
"value": _vm.value,
|
|
63363
63383
|
"placeholder": _vm.config && _vm.config.placeholder || '请选择',
|
|
63364
|
-
"loading": _vm.
|
|
63384
|
+
"loading": _vm.innerLoading
|
|
63365
63385
|
},
|
|
63366
63386
|
on: {
|
|
63367
63387
|
"change": _vm.change,
|
|
@@ -63396,7 +63416,7 @@ var selectvue_type_template_id_2ee8e5b9_render = function render() {
|
|
|
63396
63416
|
});
|
|
63397
63417
|
})], 2);
|
|
63398
63418
|
};
|
|
63399
|
-
var
|
|
63419
|
+
var selectvue_type_template_id_1b25f46b_staticRenderFns = [];
|
|
63400
63420
|
|
|
63401
63421
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
|
|
63402
63422
|
var element_ui_common = __webpack_require__(3421);
|
|
@@ -63405,7 +63425,7 @@ var element_ui_common = __webpack_require__(3421);
|
|
|
63405
63425
|
|
|
63406
63426
|
|
|
63407
63427
|
/* harmony default export */ var selectvue_type_script_lang_js = ({
|
|
63408
|
-
name: '
|
|
63428
|
+
name: 'BySelect',
|
|
63409
63429
|
props: {
|
|
63410
63430
|
...element_ui_common.Select.props,
|
|
63411
63431
|
value: {
|
|
@@ -63443,7 +63463,7 @@ var element_ui_common = __webpack_require__(3421);
|
|
|
63443
63463
|
return {
|
|
63444
63464
|
searchVal: '',
|
|
63445
63465
|
filterData: [],
|
|
63446
|
-
|
|
63466
|
+
innerLoading: false,
|
|
63447
63467
|
asyncOptions: []
|
|
63448
63468
|
};
|
|
63449
63469
|
},
|
|
@@ -63474,7 +63494,7 @@ var element_ui_common = __webpack_require__(3421);
|
|
|
63474
63494
|
async loadAsyncOptions() {
|
|
63475
63495
|
if (!this.loadOptions) return;
|
|
63476
63496
|
try {
|
|
63477
|
-
this.
|
|
63497
|
+
this.innerLoading = true;
|
|
63478
63498
|
const result = await this.loadOptions();
|
|
63479
63499
|
|
|
63480
63500
|
// 支持直接返回数组或返回包含 data 属性的对象
|
|
@@ -63484,7 +63504,7 @@ var element_ui_common = __webpack_require__(3421);
|
|
|
63484
63504
|
console.error('加载选项数据失败:', error);
|
|
63485
63505
|
this.$emit('load-error', error);
|
|
63486
63506
|
} finally {
|
|
63487
|
-
this.
|
|
63507
|
+
this.innerLoading = false;
|
|
63488
63508
|
}
|
|
63489
63509
|
},
|
|
63490
63510
|
// 手动刷新数据
|
|
@@ -63552,8 +63572,8 @@ var element_ui_common = __webpack_require__(3421);
|
|
|
63552
63572
|
;
|
|
63553
63573
|
var select_component = normalizeComponent(
|
|
63554
63574
|
comps_selectvue_type_script_lang_js,
|
|
63555
|
-
|
|
63556
|
-
|
|
63575
|
+
selectvue_type_template_id_1b25f46b_render,
|
|
63576
|
+
selectvue_type_template_id_1b25f46b_staticRenderFns,
|
|
63557
63577
|
false,
|
|
63558
63578
|
null,
|
|
63559
63579
|
null,
|
|
@@ -328,4 +328,4 @@ var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e
|
|
|
328
328
|
//! moment.js locale configuration
|
|
329
329
|
var t=e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t}))},9786:function(e,t,n){var i=n(6903),r=n(6791),a=n(3971),s=n(4632),o=n(3066),l="prototype",u=function(e,t,n){var c,d,h,f=e&u.F,p=e&u.G,m=e&u.S,_=e&u.P,v=e&u.B,g=e&u.W,y=p?r:r[t]||(r[t]={}),b=y[l],w=p?i:m?i[t]:(i[t]||{})[l];for(c in p&&(n=t),n)d=!f&&w&&void 0!==w[c],d&&o(y,c)||(h=d?w[c]:n[c],y[c]=p&&"function"!=typeof w[c]?n[c]:v&&d?a(h,i):g&&w[c]==h?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[l]=e[l],t}(h):_&&"function"==typeof h?a(Function.call,h):h,_&&((y.virtual||(y.virtual={}))[c]=h,e&u.R&&b&&!b[c]&&s(b,c,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},9813:function(e,t,n){"use strict";n(4114),n(8111),n(7588),t.__esModule=!0;var i=n(9274),r=s(i),a=n(2172);function s(e){return e&&e.__esModule?e:{default:e}}var o=!1,l=!1,u=void 0,c=function(){if(!r.default.prototype.$isServer){var e=h.modalDom;return e?o=!0:(o=!1,e=document.createElement("div"),h.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){h.doOnModalClick&&h.doOnModalClick()}))),e}},d={},h={modalFade:!0,getInstance:function(e){return d[e]},register:function(e,t){e&&t&&(d[e]=t)},deregister:function(e){e&&(d[e]=null,delete d[e])},nextZIndex:function(){return h.zIndex++},modalStack:[],doOnModalClick:function(){var e=h.modalStack[h.modalStack.length-1];if(e){var t=h.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,i,s){if(!r.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=s;for(var l=this.modalStack,u=0,d=l.length;u<d;u++){var h=l[u];if(h.id===e)return}var f=c();if((0,a.addClass)(f,"v-modal"),this.modalFade&&!o&&(0,a.addClass)(f,"v-modal-enter"),i){var p=i.trim().split(/\s+/);p.forEach((function(e){return(0,a.addClass)(f,e)}))}setTimeout((function(){(0,a.removeClass)(f,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(f):document.body.appendChild(f),t&&(f.style.zIndex=t),f.tabIndex=0,f.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:i})}},closeModal:function(e){var t=this.modalStack,n=c();if(t.length>0){var i=t[t.length-1];if(i.id===e){if(i.modalClass){var r=i.modalClass.trim().split(/\s+/);r.forEach((function(e){return(0,a.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var s=t.length-1;s>=0;s--)if(t[s].id===e){t.splice(s,1);break}}0===t.length&&(this.modalFade&&(0,a.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",h.modalDom=void 0),(0,a.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(h,"zIndex",{configurable:!0,get:function(){return l||(u=u||(r.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),u},set:function(e){u=e}});var f=function(){if(!r.default.prototype.$isServer&&h.modalStack.length>0){var e=h.modalStack[h.modalStack.length-1];if(!e)return;var t=h.getInstance(e.id);return t}};r.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=f();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t["default"]=h},9821:function(e,t,n){(function(e,t){t(n(6879))})(0,(function(e){"use strict";
|
|
330
330
|
//! moment.js locale configuration
|
|
331
|
-
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,i){var r={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?n?"хвіліна":"хвіліну":"h"===i?n?"гадзіна":"гадзіну":e+" "+t(r[i],+e)}var i=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return i}))},9979:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=78)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,s,o){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},2:function(e,t){e.exports=n(2172)},3:function(e,t){e.exports=n(5294)},5:function(e,t){e.exports=n(9731)},7:function(e,t){e.exports=n(9274)},78:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},r=[];i._withStripped=!0;var a=n(5),s=n.n(a),o=n(2),l=n(3),u={name:"ElPopover",mixins:[s.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(l["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(o["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(o["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(o["on"])(n,"focusin",this.handleFocus),Object(o["on"])(t,"focusout",this.handleBlur),Object(o["on"])(n,"focusout",this.handleBlur)),Object(o["on"])(t,"keydown",this.handleKeydown),Object(o["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(o["on"])(t,"click",this.doToggle),Object(o["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(o["on"])(t,"mouseenter",this.handleMouseEnter),Object(o["on"])(n,"mouseenter",this.handleMouseEnter),Object(o["on"])(t,"mouseleave",this.handleMouseLeave),Object(o["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(o["on"])(t,"focusin",this.doShow),Object(o["on"])(t,"focusout",this.doClose)):(Object(o["on"])(t,"mousedown",this.doShow),Object(o["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(o["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(o["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(o["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(o["off"])(e,"click",this.doToggle),Object(o["off"])(e,"mouseup",this.doClose),Object(o["off"])(e,"mousedown",this.doShow),Object(o["off"])(e,"focusin",this.doShow),Object(o["off"])(e,"focusout",this.doClose),Object(o["off"])(e,"mousedown",this.doShow),Object(o["off"])(e,"mouseup",this.doClose),Object(o["off"])(e,"mouseleave",this.handleMouseLeave),Object(o["off"])(e,"mouseenter",this.handleMouseEnter),Object(o["off"])(document,"click",this.handleDocumentClick)}},c=u,d=n(0),h=Object(d["a"])(c,i,r,!1,null,null,null);h.options.__file="packages/popover/src/main.vue";var f=h.exports,p=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},m={bind:function(e,t,n){p(e,t,n)},inserted:function(e,t,n){p(e,t,n)}},_=n(7),v=n.n(_);v.a.directive("popover",m),f.install=function(e){e.directive("popover",m),e.component(f.name,f)},f.directive=m;t["default"]=f}})}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}!function(){i.amdO={}}(),function(){i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,{a:t}),t}}(),function(){i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){i.p=""}();var r={};return function(){"use strict";if(i.r(r),i.d(r,{ByCustomDatePicker:function(){return X},ByDatePickerRange:function(){return De},ByFoldSearch:function(){return fe},ByForm:function(){return te},ByPageSearch:function(){return oe},ByPager:function(){return c},BySelect:function(){return be},ByTable:function(){return $},default:function(){return nt}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(i.p=t[1])}i(8111),i(7588);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pager fixed bottom-0 right-0 w-full flex justify-center items-center z-50",attrs:{id:"pager"}},[t("el-pagination",{attrs:{"current-page":e.pager["page"],"page-size":e.pager["limit"],"page-sizes":e.pageSizes,background:"",layout:"total, prev, pager, next,sizes, jumper",total:e.totalCount},on:{"size-change":t=>e.handleValueChange(t,"limit"),"current-change":t=>e.handleValueChange(t,"page")}})],1)},a=[],s={name:"BYPager",props:{limit:{type:Number,default:15},page:{type:Number,default:1},totalCount:{type:Number,required:!0,default:25},pageSizes:{type:Array,default:()=>[10,15,20,25,30,50,100]}},data(){return{pager:{page:this.page,limit:this.limit}}},watch:{page:{handler:function(e,t){this.pager.page=e},immediate:!0},limit:{handler:function(e,t){this.pager.limit=e},immediate:!0}},mounted(){document.getElementsByClassName("el-pagination__jump")[0].childNodes[0].nodeValue="跳至",document.getElementsByClassName("el-pagination__jump")[0].childNodes[2].nodeValue=""},methods:{handleValueChange(e,t){if(!e)return;const n={...this.pager,[t]:e,page:"limit"===t?1:e};this.$emit("onChange",n)}}},o=s;function l(e,t,n,i,r,a,s,o){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}var u=l(o,n,a,!1,null,null,null),c=u.exports,d=function(){var e=this,t=e._self._c;return t("div",[t("vxe-grid",e._g(e._b({ref:"xGrid",on:{"cell-click":e.handleCellClick,"resizable-change":e.handleResizableChange},scopedSlots:e._u([e._l(e.slotMap,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}})),e.options.pagerConfig?{key:"pager",fn:function(){return[t("div",{staticClass:"pager-container"},[e.showResetCache?t("el-button",{attrs:{disabled:!e.hasCache,size:"small"},on:{click:e.resetCachedTableColumns}},[e._v(" 重置列宽 ")]):e._e(),t("by-pager",{attrs:{page:e.options.pagerConfig.currentPage,limit:e.options.pagerConfig.pageSize,"total-count":e.options.pagerConfig.total,"page-sizes":e.options.pagerConfig.pageSizes},on:{onChange:e.pageChange}})],1)]},proxy:!0}:{key:"pager",fn:function(){return[t("div",{staticClass:"reset-button"},[e.showResetCache?t("el-button",{attrs:{disabled:!e.hasCache,size:"small"},on:{click:e.resetCachedTableColumns}},[e._v(" 重置列宽 ")]):e._e()],1)]},proxy:!0}],null,!0)},"vxe-grid",e.options,!1),e.eventListeners)),e.gridOptions&&e.gridOptions.customColumnConfig&&e.gridOptions.customColumnConfig.showCustomColumn?t("CustomColumn",{ref:"CustomColumnRef",attrs:{"info-method":e.gridOptions.customColumnConfig.infoMethod,"submit-method":e.gridOptions.customColumnConfig.submitMethod,"fixed-max-count":e.gridOptions.customColumnConfig.fixedMaxCount,"dialog-visible":e.customTableVisible},on:{closeDialog:e.closeCustomColumnDialog,changeTable:e.changeTableFields,changeTableGroup:e.changeTableGroupFields}}):e._e()],1)},h=[],f=(i(4114),i(1148),i(7642),i(8004),i(3853),i(5876),i(2475),i(5024),i(1698),function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"custom_column"}},[t("el-dialog",{attrs:{"close-on-click-modal":!1,visible:e.dialogVisible,width:"920px","append-to-body":!0,"show-close":!1,"custom-class":"custom_dialog_class"},on:{close:e.closeDialog},scopedSlots:e._u([{key:"footer",fn:function(){return[t("el-row",{staticStyle:{"margin-top":"7px"}},[t("el-button",{staticStyle:{width:"96px"},attrs:{size:"small"},on:{click:e.closeDialog}},[e._v("取消")]),t("el-button",{staticStyle:{width:"96px"},attrs:{size:"small",type:"primary"},on:{click:e.submit}},[e._v("确定")])],1)]},proxy:!0}])},[t("div",{staticClass:"el-dialog-box"},[t("div",{staticClass:"left_box"},[t("div",{staticClass:"box_title"},[e._v("数据指标")]),t("div",{staticClass:"row",staticStyle:{"padding-right":"20px"}},[t("div",{staticClass:"cell"},[t("el-input",{staticStyle:{width:"228px","margin-bottom":"10px"},attrs:{placeholder:"搜索指标",size:"medium","prefix-icon":"el-icon-search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),t("el-button",{attrs:{type:"text"},on:{click:e.selectNone}},[e._v("全不选")])],1),t("div",{staticClass:"left_box_body"},[t("div",{staticClass:"left_nav"},[t("ul",e._l(e.checkBoxMenuBySearch,(function(n,i){return t("li",{key:i,class:{active:e.activeId===i},on:{click:function(t){return e.setHighlight(i)}}},[e._v(" "+e._s(n.label)+" ")])})),0)]),t("div",{staticClass:"left_menu"},e._l(e.checkBoxMenuBySearch,(function(n,i){return t("div",{key:i,ref:"tagItem",refInFor:!0},[t("div",{staticClass:"checkbox_title"},[e._v(" "+e._s(n.label)+" ")]),t("el-row",e._l(n.data,(function(n,i){return t("el-col",{key:i,staticStyle:{"margin-bottom":"3px"},attrs:{span:12}},[t("el-checkbox",{on:{change:function(t){return e.changeCheckbox(n.key,n.type)}},model:{value:n.type,callback:function(t){e.$set(n,"type",t)},expression:"each.type"}},[e._v(" "+e._s(n.label)+" ")])],1)})),1)],1)})),0)])]),t("div",{staticClass:"right_box"},[t("div",{staticClass:"drag_box"},[t("el-row",[t("div",{staticClass:"drag_text_box"},[t("span",{staticClass:"drag_title"},[e._v(e._s(`已选指标(${e.number})`))]),t("span",{staticClass:"recover",on:{click:e.recoverDefault}},[e._v("恢复默认")])])]),t("div",{staticClass:"drag_ul"},[t("draggable",{attrs:{"chosen-class":"chosen","force-fallback":"true",animation:"500"},on:{end:e.onEnd},model:{value:e.draggableMenu,callback:function(t){e.draggableMenu=t},expression:"draggableMenu"}},[t("transition-group",{attrs:{name:"list",tag:"div"}},e._l(e.draggableMenu,(function(n){return t("div",{directives:[{name:"show",rawName:"v-show",value:n.type,expression:"col.type"}],key:n.key,class:"sort-cut-off"===n.key?"fixedClass":"drag_li_box"},["sort-cut-off"!==n.key?t("div",{staticClass:"drag_li_text_box"},[t("i",{staticClass:"el-icon-rank icon-box"}),t("span",{staticClass:"drag_li_text"},[e._v(e._s(n.label))])]):e._e(),"sort-cut-off"!==n.key&&n.parent?t("span",{staticClass:"parent-label"},[e._v(" "+e._s(n.parent&&n.parent.label?n.parent.label:"")+" ")]):e._e(),"sort-cut-off"!==n.key?t("i",{staticClass:"el-icon-close remove",on:{click:function(t){return e.changeCheckbox(n.key,!1)}}}):e._e()])})),0)],1)],1)],1)])])])],1)}),p=[],m=(i(2489),i(116),i(531),i(1701),i(3579),i(6906)),_=i.n(m);const v=e=>{let t;if("object"===typeof e)if(Array.isArray(e)){t=[];for(const n in e)t.push(v(e[n]))}else if(null===e)t=null;else if(e.constructor===RegExp)t=e;else{t={};for(const n in e)t[n]=v(e[n])}else t=e;return t},g=e=>!!e&&!!localStorage.getItem(e),y=e=>{localStorage.removeItem(e)},b=(e,t)=>{if(!e)return;const n=t.$table.collectColumn,i=w(e),r=(e,t,n)=>{const i=[];for(const a of e)if(a.children){const e=r(a.children,t,n);e.length>0&&i.push({field:a.field,width:n,children:e})}else t&&""!==t&&a.field===t&&i.push({field:a.field,width:n});return i},a=t.column,s=r(n,a.field,a.renderWidth),o=(e,t)=>{const n=[...t];for(const i of e){const e=n.findIndex((e=>e.field===i.field));-1!==e?i.children&&n[e].children?n[e].children=o(i.children,n[e].children):n[e].width=i.width:n.push(i)}return n},l=o(s,i);localStorage.setItem(e,JSON.stringify(l))},w=e=>JSON.parse(localStorage.getItem(e)||"[]"),k=(e,t)=>{if(!e)return t;const n=w(e);if(!n)return t;const i=(e,t)=>e.map((e=>{if(e.children){const n=t.find((t=>t.field===e.field));return{...e,...(null===n||void 0===n?void 0:n.width)&&{width:n.width},children:i(e.children,(null===n||void 0===n?void 0:n.children)||[])}}const n=t.filter((e=>e.field&&""!==e.field)).find((t=>t.field===e.field));return{...e,...(null===n||void 0===n?void 0:n.width)&&{width:n.width}}}));return i(t,n)},M=(e,t)=>{if(!e||!t)return[];if(!e||0===e.length)return t;const n=[];for(const i of t){const t=e.find((e=>e.field===i.field));if(i.children){const e={...i,children:M((null===t||void 0===t?void 0:t.children)||[],i.children)};t&&(null!==t&&void 0!==t&&t.width?e.width=t.width:delete e.width),n.push(e)}else{const e={...i};t&&(null!==t&&void 0!==t&&t.width?e.width=t.width:delete e.width),n.push(e)}}return n},x=(e,t)=>{e&&Array.isArray(e)&&e.forEach((e=>{if(e.slots){const n=Object.values(e.slots);n.forEach((e=>t.add(e)))}e.children&&x(e.children,t)}))},S=(e,t=6)=>{let n=0;if(e.forEach((e=>{e.data.forEach((e=>{"left"===e.fixed&&["true",!0,"1",1].includes(e.type)&&n++}))})),n>t){const t=e.map((e=>({...e,fixed:void 0,data:e.data.map((e=>({...e,fixed:void 0})))})));return t}const i=[],r=[];e.forEach((e=>{const t=[],n=[];e.data.forEach((e=>{"left"===e.fixed?t.push(e):n.push(e)})),t.length>0&&i.push({label:e.label,fixed:"left",data:t}),n.length>0&&r.push({label:e.label,data:n})}));const a=[...i,...r];return a},D=(e,t=6)=>{if(!e)return[];let n=0;return e.forEach((e=>{"left"===e.fixed&&["true",!0,"1",1].includes(e.type)&&n++})),n>t&&e.map((e=>{e.fixed=!1})),e},L=e=>null===e||void 0===e||(!!Number.isNaN(e)||(""===e||0===e||("object"===typeof e&&0===Object.keys(e).length||!(!Array.isArray(e)||0!==e.length))));var C={name:"CustomColumn",components:{draggable:_()},props:{dialogVisible:{type:Boolean,default:!1},infoMethod:{type:Function,required:!0,default:()=>{}},submitMethod:{type:Function,required:!0,default:()=>{}},fixedMaxCount:{type:Number,default:6,validator:e=>e>=0}},data(){return{draggableMenu:[],checkBoxMenu:[],activeId:0,id:void 0,page:"",search:"",columnList:[]}},computed:{number(){return this.draggableMenu.filter((e=>e.type&&"sort-cut-off"!==e.key)).length},checkBoxMenuBySearch(){return this.search?this.checkBoxMenu.map((e=>{const t=e.data.filter((e=>e.label.includes(this.search)));return{label:e.label,data:t}})).filter((e=>e.data.length>0)):this.checkBoxMenu}},methods:{deepClone:v,async getCustomTableList(e,t){if(!e)throw new Error("缺少表格列接口路径");{this.columnList=this.deepClone(t),this.page=e||"";const n=[],i=await this.infoMethod({page:e});"[]"!==JSON.stringify(i.data)&&(this.id=i.data.id||void 0,i.data.column.forEach((e=>n.push(...e.data)))),this.initTableList(this.deepClone(t),n)}},initTableList(e,t=[]){const n=e=>{const t=e.flatMap((e=>e.data)),n=t.filter((e=>"left"===e.fixed)).sort(((e,t)=>e.sort-t.sort)),i=t.filter((e=>"left"!==e.fixed)).sort(((e,t)=>e.sort-t.sort)),r={type:!0,label:"",key:"sort-cut-off",fixed:n.length>0?"left":void 0,parent:""};return n.length>0?[...n,r,...i]:[r,...i]};if(t&&t.length>0)e.forEach((e=>{e.data.forEach((n=>{const i=t.find((e=>e.key===n.key))||{};n.type=["true",!0,"1",1].includes(i.type),n.sort=i.sort,n.fixed=i.fixed,n.parent={label:e.label}}))})),this.checkBoxMenu=this.deepClone(e),this.draggableMenu=n(this.checkBoxMenu);else{let t=0;e.forEach((e=>{e.data.forEach((n=>{t++,n.type=!0,n.width=n.width?+n.width:0,n.sort=t,n.fixed=e.fixed,n.parent={label:e.label}}))})),this.checkBoxMenu=this.deepClone(e),this.draggableMenu=n(this.checkBoxMenu)}this.emitChangeTable(this.draggableMenu.filter((e=>"sort-cut-off"!==e.key)).sort(((e,t)=>e.sort-t.sort))),this.emitChangeTableGroup(this.checkBoxMenu)},selectNone(){this.checkBoxMenu.forEach((e=>e.data.forEach((e=>e.type=!1)))),this.draggableMenu.forEach((e=>{"sort-cut-off"===e.key?e.type=!0:e.type=!1}))},setHighlight(e){this.activeId=e,this.$refs.tagItem&&this.$refs.tagItem[e].scrollIntoView({behavior:"smooth"})},changeCheckbox(e,t){this.draggableMenu.forEach((n=>{n.key===e&&(n.type=t)})),this.checkBoxMenu.forEach((n=>{n.data.forEach((n=>{n.key===e&&(n.type=t)}))}))},recoverDefault(){this.initTableList(this.deepClone(this.columnList))},onEnd(){let e=!0;this.draggableMenu.forEach(((t,n)=>{"sort-cut-off"===t.key?(t.fixed="left",t.sort=n+1,e=!1):e?(t.sort=n+1,t.fixed="left"):(t.sort=n,delete t.fixed)}))},async submit(){const e={column:[],id:this.id,page:this.page};this.draggableMenu.forEach((t=>{if("sort-cut-off"!==t.key){const{parent:n,...i}=t,r=e.column.some((e=>e.label===n.label));r?e.column.forEach((e=>{e.label===n.label&&e.data.push(i)})):e.column.push({label:n.label,data:[i]})}})),await this.submitMethod(e);const t=[];e.column.forEach((e=>{t.push(...e.data)})),this.emitChangeTable(t.sort(((e,t)=>e.sort-t.sort))),this.emitChangeTableGroup(e.column),this.closeDialog()},emitChangeTable(e){const t=D(e,this.fixedMaxCount);this.$emit("changeTable",t)},emitChangeTableGroup(e){const t=S(e,this.fixedMaxCount);this.$emit("changeTableGroup",t)},closeDialog(){this.search="",this.activeId=0,this.$emit("closeDialog")}}},T=C,Y=l(T,f,p,!1,null,null,null),O=Y.exports,E={name:"BYTable",components:{CustomColumn:O},props:{gridOptions:{type:Object,default:()=>({})},name:{type:String,default:""},autoHeight:{type:Boolean,default:!1}},data(){return{events:["keydown","current-change","radio-change","checkbox-change","checkbox-all","checkbox-range-start","checkbox-range-change","checkbox-range-end","cell-dblclick","cell-menu","cell-mouseenter","cell-mouseleave","cell-delete-value","header-cell-click","header-cell-dblclick","header-cell-menu","footer-cell-click","footer-cell-dblclick","footer-cell-menu","clear-merge","sort-change","clear-sort","filter-visible","filter-change","clear-filter","toggle-row-expand","toggle-tree-expand","menu-click","cell-selected","edit-closed","edit-activated","edit-disabled","valid-error","scroll","custom","page-change","form-submit","form-submit-invalid","form-reset","form-collapse","proxy-query","proxy-delete","proxy-save","toolbar-button-click","toolbar-tool-click","zoom"],customTableVisible:!1,showResetCache:!1,hasCache:!1,originColumns:[],tempColumns:[],allData:[],sortState:{field:null,order:null},tableLoading:!1}},mounted(){this.showResetCache=!!this.name},watch:{"gridOptions.columns":{handler(e){const t=M(this.tempColumns,e);this.originColumns=t},deep:!0},"gridOptions.data":{handler(){this.$nextTick((()=>{setTimeout((()=>{this.$refs.xGrid&&this.$refs.xGrid.refreshScroll&&this.$refs.xGrid.refreshScroll(),this.$refs.xGrid&&this.$refs.xGrid.scrollTo&&this.$refs.xGrid.scrollTo({top:0,left:0}),this.sortState.field&&this.sortState.order&&this.$refs.xGrid&&setTimeout((()=>{this.$refs.xGrid.sort(this.sortState.field,this.sortState.order,{silent:!0})}),100)}),0)}))},deep:!0}},computed:{options(){var e,t,n,i,r;const{customColumnConfig:a,columns:s,...o}=this.gridOptions;this.originColumns=M(this.tempColumns,s);const l=k(this.name,s);this.setHasCache();let u=o.data||[];(null!==(e=o.pagerConfig)&&void 0!==e&&e.frontendPagination||null!==(t=o.sortConfig)&&void 0!==t&&t.frontendSort)&&(this.allData=[...u]),null!==(n=o.pagerConfig)&&void 0!==n&&n.frontendPagination&&(u=this.spliteListData(this.allData,o.pagerConfig.currentPage,o.pagerConfig.pageSize));const{data:c,sortConfig:d,...h}=o,f=this.gridOptions.seqConfig||{},p=this.specialFirstRow(this.allData),m=({rowIndex:e})=>p?e:e+1;return{border:!0,resizable:!0,showOverflow:!this.autoHeight,height:550,align:"left",copyFields:[],emptyText:"暂无数据",loading:this.tableLoading,loadingConfig:{text:"加载中..."},columns:l,data:u,resizableConfig:{minWidth:50,...this.gridOptions.resizableConfig},rowConfig:{height:41,isHover:!0,...this.gridOptions.rowConfig},sortConfig:{...d,remote:!!(null!==(i=o.pagerConfig)&&void 0!==i&&i.frontendPagination||null!==(r=o.sortConfig)&&void 0!==r&&r.frontendSort)||(null===d||void 0===d?void 0:d.remote),trigger:"cell",...this.gridOptions.sortConfig},seqConfig:{...f,seqMethod:f.seqMethod||m},...h}},slotMap(){var e,t,n;const i=new Set([]),r=null!==(e=null===(t=this.gridOptions)||void 0===t||null===(n=t.customColumnConfig)||void 0===n?void 0:n.slots)&&void 0!==e?e:[];return x(this.options.columns,i),[...Array.from(i),...r]},eventListeners(){const e={};return this.events.forEach((t=>{e[t]="sort-change"===t?e=>this.handleSortChange(e):e=>this.$emit(t,e)})),e}},methods:{handleCellClick(e){if(this.options.copyFields.includes(e.column.field)){const t=e.cell.outerText;this.copy(t)}this.$emit("cell-click",e)},handleResizableChange(e){this.$emit("resizable-change",e),b(this.name,e),this.setHasCache()},setHasCache(){this.hasCache=g(this.name)},resetCachedTableColumns(){y(this.name),this.setHasCache(),this.$refs.xGrid&&this.$refs.xGrid.reloadColumn(this.originColumns)},pageChange(e){var t;null!==(t=this.gridOptions.pagerConfig)&&void 0!==t&&t.frontendPagination?setTimeout((()=>{const t=this.spliteListData(this.allData,e.page,e.limit);this.$refs.xGrid.reloadData(t),this.$nextTick((()=>{this.sortState.field&&this.sortState.order&&this.$refs.xGrid&&setTimeout((()=>{this.$refs.xGrid.sort(this.sortState.field,this.sortState.order,{silent:!0})}),100)})),setTimeout((()=>{this.$refs.xGrid&&this.$refs.xGrid.scrollTo(0,0)}),0)}),0):(this.$refs.xGrid&&this.$refs.xGrid.scrollTo(0,0),this.$emit("page-change",e))},copy(e){const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),this.$message({message:"复制成功",type:"success"}),t.remove()},getCustomColumnRef(){return this.$refs.CustomColumnRef},handleOpenCustomColumn(){this.customTableVisible=!0},changeTableFields(e){const t=[];e.forEach((e=>{!t.some((t=>t.field===e.key))&&e.type&&t.push({field:e.key,title:e.label,minWidth:e.minWidth||e.width,maxWidth:e.maxWidth,sortable:"undefined"===typeof e.sortable||JSON.parse(e.sortable),fixed:e.fixed,popover:"undefined"===typeof e.popover?"":e.popover,slots:this.gridOptions.customColumnConfig.slots.includes(e.key)?{default:e.key}:void 0})})),this.tempColumns=v(t);const n=k(this.name,t);this.setHasCache(),this.$emit("setColumn",n)},changeTableGroupFields(e){const t=e=>{const n=[];return e.forEach(((i,r)=>{if(i.data&&i.data.length>0){const a=i.data.every((e=>!e.type));a||(n.push({title:i.label,align:"center",fixed:i.fixed,children:t(i.data)}),r<e.length-1&&n.push({title:"",width:5,headerClassName:"group-split",className:"group-split",fixed:e[r].fixed&&e[r+1].fixed}))}else!n.some((e=>e.field===i.key))&&i.type&&n.push({field:i.key,title:i.label,minWidth:i.minWidth||i.width,maxWidth:i.maxWidth,sortable:"undefined"===typeof i.sortable||JSON.parse(i.sortable),fixed:i.fixed,popover:"undefined"===typeof i.popover?"":i.popover,slots:this.gridOptions.customColumnConfig.slots.includes(i.key)?{default:i.key}:void 0})})),n};this.$emit("setGroupColumn",t(e))},closeCustomColumnDialog(){this.customTableVisible=!1},specialFirstRow(e){const t=e&&e[0];return t&&"object"===typeof t&&L(t.id)?t:null},spliteListData(e,t,n){if(!Array.isArray(e)||0===e.length)return[];const i=this.specialFirstRow(e);let r=i?e.slice(1):e;this.sortState.field&&this.sortState.order&&(r=this.sortData(r,this.sortState.field,this.sortState.order));let a=[];if(t&&n){const i=(t-1)*n,s=i+n;this.gridOptions.pagerConfig.currentPage=t,this.gridOptions.pagerConfig.pageSize=n,this.gridOptions.pagerConfig.total=e.length,a=r.slice(i,s)}else a=r;return i&&(a=[i,...a]),a},sortData(e,t,n){return t&&n?[...e].sort(((e,i)=>{let r=e[t],a=i[t];if(null!==r&&void 0!==r||(r=""),null!==a&&void 0!==a||(a=""),"number"===typeof r&&"number"===typeof a)return"asc"===n?r-a:a-r;const s=String(r).toLowerCase(),o=String(a).toLowerCase(),l="string"===typeof r&&r.trim().endsWith("%")&&!isNaN(r.trim().slice(0,-1)),u="string"===typeof a&&a.trim().endsWith("%")&&!isNaN(a.trim().slice(0,-1));if(l&&u){const e=parseFloat(r),t=parseFloat(a);return"asc"===n?e-t:t-e}const c=!isNaN(s)&&""!==s.trim(),d=!isNaN(o)&&""!==o.trim();return c&&d?"asc"===n?Number(s)-Number(o):Number(o)-Number(s):"asc"===n?s.localeCompare(o):o.localeCompare(s)})):e},handleSortChange(e){var t,n;const{property:i,order:r}=e,a=(null===(t=this.gridOptions.pagerConfig)||void 0===t?void 0:t.frontendPagination)||(null===(n=this.gridOptions.sortConfig)||void 0===n?void 0:n.frontendSort);if(a){var s,o;this.sortState.field=i,this.sortState.order=r;const e=this.spliteListData(this.allData,null!==(s=this.gridOptions.pagerConfig)&&void 0!==s&&s.frontendPagination?this.gridOptions.pagerConfig.currentPage:null,null!==(o=this.gridOptions.pagerConfig)&&void 0!==o&&o.frontendPagination?this.gridOptions.pagerConfig.pageSize:null);this.$refs.xGrid&&(this.$refs.xGrid.reloadData(e),this.$nextTick((()=>{i&&r&&setTimeout((()=>{this.$refs.xGrid.sort(i,r,{silent:!0})}),100),setTimeout((()=>{var e;if(null!==(e=this.gridOptions.pagerConfig)&&void 0!==e&&e.frontendPagination&&this.$refs.xGrid){const e=this.gridOptions.pagerConfig.currentPage;1!==e?this.pageChange({page:1,limit:this.gridOptions.pagerConfig.pageSize}):this.$refs.xGrid.scrollTo(0,0)}}),0)})))}this.$emit("sort-change",e)},resetSortState(){this.sortState.field=null,this.sortState.order=null,setTimeout((()=>{this.$refs.xGrid.sort(this.sortState.field,this.sortState.order,{silent:!0})}),100)}}},j=E,P=l(j,d,h,!1,null,null,null),$=P.exports,N=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-form"},[t("div",{staticClass:"header"},[e._t("header")],2),t("el-form",{ref:"formRef",staticClass:"myForm",attrs:{"label-position":e.labelPosition,rules:e.rules,"label-width":e.labelWidth,inline:e.inline,model:e.value,"label-suffix":":"},nativeOn:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)},reset:function(t){return t.preventDefault(),e.reset.apply(null,arguments)}}},[t("el-row",[e._l(e.formItems,(function(n){return[n.isHidden?e._e():t("el-col",e._b({directives:[{name:"show",rawName:"v-show",value:e.showFold(n),expression:"showFold(item)"}],key:n.label},"el-col",n.colLayout||e.colLayout,!1),[t("el-form-item",{style:n.itemStyle||e.itemStyle,attrs:{label:n.label||"",rules:n.rules,prop:n.field,"label-width":n.labelWidth||e.labelWidth}},["input"===n.type||"password"===n.type?[t("el-input",e._b({staticStyle:{width:"100%"},attrs:{placeholder:n.placeholder,clearable:"","show-password":"password"===n.type,value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-input",n.otherOptions,!1),[n.otherOptions&&n.otherOptions.isPrefix?e._t("prefix",(function(){return["select"===n.otherOptions.prefixType?t("el-select",{style:{width:"100px"},attrs:{slot:"prepend",value:e.value[`${n.otherOptions.prefixField}`],placeholder:"请选择"},on:{input:function(t){return e.handleValueChange(t,n.otherOptions)}},slot:"prepend"},e._l(n.otherOptions.prefixOption,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()]})):e._e(),e._t("suffix"),e._t("prepend"),e._t("append")],2)]:"select"===n.type?[t("by-select",e._b({staticStyle:{width:"100%"},attrs:{value:e.value[`${n.field}`],config:n,clearable:"",filterable:"",size:e.elSize,options:n.options,loadOptions:n.loadOptions,autoLoad:!1!==n.autoLoad},on:{input:function(t){return e.handleValueChange(t,n)},"load-success":function(t){return e.handleSelectLoadSuccess(t,n)},"load-error":function(t){return e.handleSelectLoadError(t,n)}}},"by-select",n.otherOptions,!1)),e._t(n.field)]:"datepicker"===n.type?[t("el-date-picker",e._b({staticStyle:{width:"100%"},attrs:{placeholder:n.placeholder,value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-date-picker",n.otherOptions,!1))]:"cascader"===n.type?[t("el-cascader",e._b({staticStyle:{width:"100%"},attrs:{placeholder:n.placeholder,options:n.options,clearable:"",filterable:"",value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-cascader",n.otherOptions,!1))]:"switch"===n.type?[t("el-switch",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-switch",n.otherOptions,!1))]:"radioGroup"===n.type?["button"===n.cGOptions.type?t("el-radio-group",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-radio-group",n.otherOptions,!1),e._l(n.cGOptions.options,(function(n){return t("el-radio-button",{key:n.value,attrs:{label:n.value,disabled:!!n.disabled}},[e._v(" "+e._s(n.label)+" ")])})),1):e._e(),"checkbox"===n.cGOptions.type?t("el-radio-group",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-radio-group",n.otherOptions,!1),e._l(n.cGOptions.options,(function(n){return t("el-radio",{key:n.value,attrs:{label:n.value,disabled:!!n.disabled}},[e._v(" "+e._s(n.label)+" ")])})),1):e._e()]:"checkboxGroup"===n.type?["button"===n.cGOptions.type?t("el-checkbox-group",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-checkbox-group",n.otherOptions,!1),e._l(n.cGOptions.options,(function(n){return t("el-checkbox-button",{key:n.value,attrs:{label:n.value}},[e._v(" "+e._s(n.label)+" ")])})),1):e._e(),"checkbox"===n.cGOptions.type?t("el-checkbox-group",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-checkbox-group",n.otherOptions,!1),e._l(n.cGOptions.options,(function(n){return t("el-checkbox",{key:n.value,attrs:{label:n.value}},[e._v(" "+e._s(n.label)+" ")])})),1):e._e()]:"text"===n.type?[e._t(n.slotName,(function(){return[t("div",[e._v(e._s(`${n.defaultValue}`))])]}))]:"pairNumberInput"===n.type?[t("PairNumberInput",{attrs:{value:e.value[`${n.field}`],"earliest-placeholder":n.earliestPlaceholder,"latest-placeholder":n.latestPlaceholder},on:{input:function(t){return e.handleValueChange(t,n)}}})]:"customDatePicker"===n.type?[t("CustomDatePicker",e._b({attrs:{value:e.value[`${n.field}`]},on:{input:function(t){return e.handleValueChange(t,n)},"range-change":function(t){return e.handleRangeChange(t,n)}}},"CustomDatePicker",n,!1))]:"custom"===n.type?[e._t(n.field,null,{row:n})]:"search"===n.type?[t("el-button",e._b({attrs:{size:e.elSize||"mini",type:"primary",icon:"el-icon-search"},on:{click:e.handleQueryClick}},"el-button",n.otherOptions||{},!1),[e._v(" "+e._s((n.otherOptions||{}).text||"搜索")+" ")])]:"formButtons"===n.type?[n.otherOptions&&!1===n.otherOptions.reset?e._e():t("el-button",e._b({attrs:{"native-type":"reset",size:e.elSize||"mini"}},"el-button",n.otherOptions||{},!1),[e._v(" "+e._s((n.otherOptions||{}).resetText||"重置")+" ")]),n.otherOptions&&!1===n.otherOptions.submit?e._e():t("el-button",e._b({attrs:{"native-type":"submit",size:e.elSize||"mini",type:"primary",icon:n.otherOptions&&!1===n.otherOptions.showSubmitIcon?"":"el-icon-search"}},"el-button",n.otherOptions||{},!1),[e._v(" "+e._s((n.otherOptions||{}).submitText||"搜索")+" ")])]:e._e()],2)],1)]})),e._t("btn",null,{formData:e.formData})],2)],1),t("div",{staticClass:"footer"},[e._t("footer")],2)],1)},I=[],H=function(){var e=this,t=e._self._c;return t("div",{staticClass:"w-full flex"},[t("el-input",{staticClass:"w-1/2",attrs:{value:e.value[0],placeholder:e.earliestPlaceholder},on:{input:t=>e.handleInput(t,"min"),blur:t=>e.handleBlur(+t.target.value,"min")}}),t("span",[e._v("~")]),t("el-input",{staticClass:"w-1/2",attrs:{value:e.value[1],placeholder:e.latestPlaceholder},on:{input:t=>e.handleInput(t,"max"),blur:t=>e.handleBlur(+t.target.value,"max")}})],1)},A=[],F={props:{value:{type:Array,required:!0,default:()=>["",0]},earliestPlaceholder:{type:String,default:""},latestPlaceholder:{type:String,default:""}},methods:{handleInput(e,t){if("min"===t){const t=[e.replace(/\D+/,""),this.value[1]];this.$emit("input",t)}else if("max"===t){const t=[this.value[0],e.replace(/\D+/,"")];this.$emit("input",t)}},handleBlur(e,t){if("min"===t){if(e>this.value[1]){const e=[this.value[1],this.value[1]];this.$emit("input",e)}}else if("max"===t&&e<this.value[0]){const e=[this.value[0],this.value[0]];this.$emit("input",e)}}}},z=F,W=l(z,H,A,!1,null,null,null),V=W.exports,R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-picker wrapper"},[t("el-date-picker",e._b({staticStyle:{width:"70%"},attrs:{value:e.value},on:{input:e.handleChange}},"el-date-picker",e.dateOptions,!1)),t("div",{staticClass:"btn"},e._l(e.shortcuts,(function(n){return t("span",{key:n.key,staticClass:"item",class:{item_active:n.key===e.active},on:{click:function(t){return e.handleClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})),0)],1)},B=[],q=i(6879),U=i.n(q),G={props:{value:{type:[Array,String],required:!0,default:()=>[]},otherOption:{type:Object,default:()=>({startPlaceholder:"开始时间",endPlaceholder:"结束时间",type:"daterange",rangeSeparator:"-",size:"mini",active:""})},startTimeField:{type:String,default:""},endTimeField:{type:String,default:""}},data(){return{shortcuts:[{label:"上月",start_time:U()().subtract(1,"months").startOf("month").format("YYYY-MM-DD"),end_time:U()().subtract(1,"months").endOf("month").format("YYYY-MM-DD"),key:"last_month"},{label:"昨天",start_time:U()().subtract(1,"days").format("YYYY-MM-DD"),end_time:U()().subtract(1,"days").format("YYYY-MM-DD"),key:"yesterday"},{label:"今天",start_time:U()().startOf("day").format("YYYY-MM-DD"),end_time:U()().startOf("day").format("YYYY-MM-DD"),key:"today"},{label:"本周",start_time:U()().startOf("week").format("YYYY-MM-DD"),end_time:U()().endOf("week").format("YYYY-MM-DD"),key:"week"},{label:"本月",start_time:U()().startOf("month").format("YYYY-MM-DD"),end_time:U()().endOf("month").format("YYYY-MM-DD"),key:"month"}],active:""}},computed:{dateOptions(){return{startPlaceholder:"开始时间",endPlaceholder:"结束时间",type:"daterange",rangeSeparator:"至",size:"mini",active:"",...this.otherOption}}},watch:{value:{handler(e,t){if(e&&e.length)this.active="",this.shortcuts.forEach((t=>{t.start_time===e[0]&&t.end_time===e[1]&&(this.active=t.key)}));else{this.active=this.dateOptions.active;const e=this.shortcuts.find((e=>e.key===this.dateOptions.active))||{};e.start_time&&e.end_time&&this.handleClick(e)}},immediate:!0}},methods:{handleChange(e){if(e){const t=e.map((e=>U()(e).format("YYYY-MM-DD")));this.$emit("input",t),this.startTimeField&&this.endTimeField&&this.$emit("range-change",{startTime:t[0],endTime:t[1]})}else this.$emit("input",[]),this.startTimeField&&this.endTimeField&&this.$emit("range-change",{startTime:"",endTime:""});this.active=""},handleClick(e){this.active=e.key,this.$emit("input",[e.start_time,e.end_time]),this.startTimeField&&this.endTimeField&&this.$emit("range-change",{startTime:e.start_time,endTime:e.end_time})}}},K=G,J=l(K,R,B,!1,null,null,null),X=J.exports,Z={name:"ByForm",components:{PairNumberInput:V,CustomDatePicker:X},props:{value:{type:Object,required:!0},labelPosition:{type:String,default:"right"},formItems:{type:Array,default:()=>[]},flexible:{type:Object,default:()=>({foldField:"none",unfold:!1})},labelWidth:{type:String,default:"100px"},itemStyle:{type:Object,default:()=>({padding:"10px 40px"})},colLayout:{type:Object,default:()=>({xl:4,lg:6,md:6,sm:8,xs:12})},isFlexible:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},rules:{type:Object,default:()=>{}},elSize:{type:String,default:"mini"}},data(){return{formData:this.value,replacementData:void 0,initialValues:{...this.value}}},computed:{showFold(){return e=>!!this.isFlexible||(!this.flexible||!this.flexible.foldField.length||!this.flexible.foldField.includes(e.id)&&!this.flexible.foldField.includes(e.field))}},watch:{value:{handler(e,t){this.formData=e,this.replacementData={...this.replacementData?this.replacementData:{},...e}},deep:!0,immediate:!0}},methods:{validate(e=()=>{}){this.$refs.formRef.validate(((t,n)=>{e(t,n)}))},clearValidate(){this.$refs.formRef.clearValidate()},handleValueChange(e,t){this.replacementData?this.replacementData[t.field]=e:this.replacementData={...this.value,[t.field]:e},this.$emit("change",{...t,value:e}),this.$emit("input",this.replacementData)},handleRangeChange({startTime:e,endTime:t},n){n.startTimeField&&n.endTimeField&&(this.replacementData?(this.replacementData[n.startTimeField]=e,this.replacementData[n.endTimeField]=t):this.replacementData={...this.value,[n.startTimeField]:e,[n.endTimeField]:t},this.$emit("input",this.replacementData))},handleQueryClick(){this.$emit("queryBtnClick")},submit(){this.$refs.formRef.validate((e=>{if(!e)return!1;this.$emit("submit",this.formData)}))},reset(){this.$refs.formRef.resetFields(),this.$emit("input",{...this.initialValues}),this.$nextTick((()=>{this.$emit("reset")}))},handleSelectLoadSuccess(e,t){this.$emit("select-load-success",{options:e,item:t})},handleSelectLoadError(e,t){this.$emit("select-load-error",{error:e,item:t})}}},Q=Z,ee=l(Q,N,I,!1,null,"f2397dbe",null),te=ee.exports,ne=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-page-search"},[t("by-form",e._b({attrs:{value:e.formData,"is-flexible":e.unfold},on:{input:e.handleInput,change:e.handleChange,queryBtnClick:e.handleQueryClick,submit:e.submit,reset:e.reset},scopedSlots:e._u([{key:"header",fn:function(){return[e._t("header")]},proxy:!0},{key:"footer",fn:function(){return[e.isShowUnfoldBtn?t("div",{staticClass:"fold"},[t("by-fold-search",{on:{change:e.handleFlexible}})],1):e._e()]},proxy:!0},e._l(e.getCustomItem,(function(t){return{key:t,fn:function(){return[e._t(t)]},proxy:!0}}))],null,!0)},"by-form",e.searchFormConfig,!1))],1)},ie=[],re={props:{searchFormConfig:{type:Object,required:!0,default:()=>{}},value:{type:Object,default:()=>{}}},data(){var e,t;return{formItems:null!==(e=null===(t=this.searchFormConfig)||void 0===t?void 0:t.formItems)&&void 0!==e?e:[],formOriginData:{},formData:{},unfold:!1}},computed:{isShowUnfoldBtn(){var e,t,n,i,r;const a=null!==(e=null===(t=this.searchFormConfig)||void 0===t?void 0:t.formItems)&&void 0!==e?e:[],s=null!==(n=null===(i=this.searchFormConfig)||void 0===i?void 0:i.flexible)&&void 0!==n?n:void 0,o=null!==(r=null===s||void 0===s?void 0:s.foldField)&&void 0!==r?r:[];return!!s&&o.some((e=>a.some((t=>t.field===e&&!t.isHidden))))},getCustomItem(){return this.formItems.filter((e=>"custom"===e.type)).map((e=>e.field))}},watch:{value:{handler(e,t){this.formData=e},deep:!0,immediate:!0}},mounted(){var e,t;this.formOriginData=this.value,this.unfold=null!==(e=null===(t=this.searchFormConfig.flexible)||void 0===t?void 0:t.unfold)&&void 0!==e&&e},methods:{handleResetClick(){this.formData={...this.formOriginData},this.$emit("input",{...this.formOriginData}),this.$emit("resetBtnClick")},handleQueryClick(){this.$emit("queryBtnClick")},handleFlexible(){this.unfold=!this.unfold},handleInput(e){this.formData=e,this.$emit("input",{...this.formData})},handleChange(e){this.$emit("change",e)},submit(){this.$emit("submit",this.formData)},reset(){this.$emit("reset")}}},ae=re,se=l(ae,ne,ie,!1,null,null,null),oe=se.exports,le=function(){var e=this,t=e._self._c;return t("div",{staticClass:"drawer_query_btn b-fold-search"},[t("div",{on:{click:e.drawer}},[1==e.show?[t("span",{staticStyle:{color:"#3aa1ff","vertical-align":"middle"}},[e._v("收起")]),e._v(" "),t("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMHB4IiBoZWlnaHQ9IjIwMC4wMHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzVjYWRmZiIgZD0iTTg3Ny41IDU2NS45bC0zNjcuNi0zNDAtMzY3LjYgMzQwYy0yMi41IDE0LjUtNTIuNSAxNC41LTY3LjUgMC0xNS0yMS43LTE1LTUwLjcgMC02NS4xTDQ5NSAxMTcuNWMwLTcuMiA3LjUtNy4yIDE1LTcuMnM3LjUgMCAxNSA3LjJsNDIwLjIgMzgzLjNjMjIuNSAyMS43IDE1IDUwLjYgMCA2NS4xLTIyLjcgMTQuNS01Mi43IDE0LjUtNjcuNyAwek00OTQuOCA0NTAuMWMwLTcuMiA3LjUtNy4yIDE1LTcuMnMxNSAwIDE1IDcuMkw5NDUgODMzLjRjMjIuNSAyMS43IDE1IDUwLjYgMCA2NS4xLTIyLjUgMTQuNC01Mi41IDE0LjQtNjcuNSAwTDUwOS44IDU1OC42IDE0Mi4yIDkwNS44Yy0yMi41IDE0LjUtNTIuNSAxNC41LTY3LjUgMC0xNS0yMS43LTE1LTUwLjcgMC02NS4xbDQyMC4xLTM5MC42eiBtMCAwIiAvPjwvc3ZnPg==",alt:"收起"}})]:[t("span",{staticStyle:{color:"#3aa1ff","vertical-align":"middle"}},[e._v("展开更多")]),e._v(" "),t("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMHB4IiBoZWlnaHQ9IjIwMC4wMHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzVjYWRmZiIgZD0iTTE0NS40IDQ2MS4xbDM2Ny42IDM0MCAzNjcuNi0zNDBjMjIuNS0xNC41IDUyLjUtMTQuNSA2Ny41IDAgMTUgMjEuNyAxNSA1MC43IDAgNjUuMUw1MjcuOSA5MDkuNWMwIDcuMi03LjUgNy4yLTE1IDcuMnMtNy41IDAtMTUtNy4yTDc3LjcgNTI2LjJjLTIyLjUtMjEuNy0xNS01MC42IDAtNjUuMSAyMi42LTE0LjUgNTIuNi0xNC41IDY3LjcgMHpNNTI4IDU3Ni45YzAgNy4yLTcuNSA3LjItMTUgNy4ycy0xNSAwLTE1LTcuMkw3Ny44IDE5My42Yy0yMi41LTIxLjctMTUtNTAuNiAwLTY1LjEgMjIuNS0xNC40IDUyLjUtMTQuNCA2Ny41IDBMNTEzIDQ2OC40bDM2Ny42LTM0Ny4yYzIyLjUtMTQuNSA1Mi41LTE0LjUgNjcuNSAwIDE1IDIxLjcgMTUgNTAuNyAwIDY1LjFMNTI4IDU3Ni45eiBtMCAwIiAvPjwvc3ZnPg==",alt:"展开更多"}})]],2)])},ue=[],ce={data(){return{show:!1}},methods:{drawer(e){this.show=!this.show,this.$emit("change",this.show)}}},de=ce,he=l(de,le,ue,!1,null,null,null),fe=he.exports,pe=function(){var e=this,t=e._self._c;return t("el-select",e._b({ref:"selection",attrs:{value:e.value,placeholder:e.config&&e.config.placeholder||"请选择",loading:e.loading},on:{change:e.change,"visible-change":e.visibleChange,"remove-tag":e.removeTag,clear:e.clear,blur:e.blur,focus:e.focus}},"el-select",e.$props,!1),[e.config&&"group"===e.config.mode?e._l(e.item.options,(function(n){return t("el-option-group",{key:n[e.config.optionValue||"value"],attrs:{label:n[e.config.optionLabel||"label"]}},e._l(n.options,(function(n){return t("el-option",{key:n[e.config.optionValue||"value"],attrs:{label:n[e.config.optionLabel||"label"],value:n[e.config.optionValue||"value"]}})})),1)})):e._l(e.filterData,(function(n){return t("el-option",{key:n[e.config.optionValue||"value"]+"-"+n[e.config.optionLabel||"label"],attrs:{label:n[e.config.optionLabel||"label"],value:n[e.config.optionValue||"value"]}})}))],2)},me=[],_e=i(7822),ve={name:"BYSelect",props:{..._e.Select.props,value:{type:[String,Number,Array]},placeholder:{type:String,default:"请选择"},options:{type:Array,default:()=>[]},loadOptions:{type:Function,default:null},autoLoad:{type:Boolean,default:!0},config:{type:Object,default:()=>({})}},data(){return{searchVal:"",filterData:[],loading:!1,asyncOptions:[]}},watch:{options:{handler(){this.filterData=this.loadOptions?this.asyncOptions:this.options},deep:!0,immediate:!0},asyncOptions:{handler(){this.filterData=this.asyncOptions},deep:!0}},async mounted(){this.loadOptions&&this.autoLoad&&await this.loadAsyncOptions()},methods:{async loadAsyncOptions(){if(this.loadOptions)try{this.loading=!0;const e=await this.loadOptions();this.asyncOptions=Array.isArray(e)?e:e.data||[],this.$emit("load-success",this.asyncOptions)}catch(e){console.error("加载选项数据失败:",e),this.$emit("load-error",e)}finally{this.loading=!1}},async refresh(){await this.loadAsyncOptions()},change(e){this.$emit("change",1===arguments.length?e:arguments),this.$emit("input",e)},input(e){this.$emit("change",1===arguments.length?e:arguments),this.$emit("input",e)},visibleChange(e){this.$emit("visible-change",1===arguments.length?e:arguments),e&&this.loadOptions&&this.config.refreshOnOpen&&this.loadAsyncOptions()},removeTag(e){this.$emit("remove-tag",1===arguments.length?e:arguments)},clear(e){this.$emit("clear",1===arguments.length?e:arguments)},blur(e){this.$emit("blur",1===arguments.length?e:arguments)},focus(e){this.multiple&&this.searchNoReset(),this.$emit("blur",1===arguments.length?e:arguments)},searchNoReset(){this.$refs.selection.$refs.input.blur=()=>{this.filterData=this.loadOptions?this.asyncOptions:this.options},this.$refs.selection.$refs.input.onkeyup=()=>{this.filterData=this.loadOptions?this.asyncOptions:this.options,this.searchVal=this.$refs.selection.$refs.input.value;const e=this.loadOptions?this.asyncOptions:this.options;this.filterData=e.filter((e=>-1!==e[this.config.optionLabel].indexOf(this.searchVal)))}}}},ge=ve,ye=l(ge,pe,me,!1,null,null,null),be=ye.exports,we=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-picker wrapper"},[t("el-date-picker",{staticStyle:{width:"70%"},attrs:{"start-placeholder":e.config&&e.config.startPlaceholder||"开始时间","end-placeholder":e.config&&e.config.endPlaceholder||"结束时间","range-separator":e.config&&e.config.rangeSeparator||"-",size:e.config&&e.config.size||"mini",type:"daterange"},on:{input:e.handleChange},model:{value:e.value[e.config&&e.config.field],callback:function(t){e.$set(e.value,e.config&&e.config.field,t)},expression:"value[config && config.field]"}}),t("div",{staticClass:"btn"},e._l(e.shortcuts,(function(n){return t("span",{key:n.key,staticClass:"item",class:{item_active:n.key===e.active},on:{click:function(t){return e.handleClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})),0)],1)},ke=[],Me={name:"ByDatePickerRange",props:{value:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},data(){return{shortcuts:[{label:"上月",start_time:U()().subtract(1,"months").startOf("month").format("YYYY-MM-DD"),end_time:U()().subtract(1,"months").endOf("month").format("YYYY-MM-DD"),key:"last_month"},{label:"昨天",start_time:U()().subtract(1,"days").format("YYYY-MM-DD"),end_time:U()().subtract(1,"days").format("YYYY-MM-DD"),key:"yesterday"},{label:"今天",start_time:U()().startOf("day").format("YYYY-MM-DD"),end_time:U()().startOf("day").format("YYYY-MM-DD"),key:"today"},{label:"本周",start_time:U()().startOf("week").format("YYYY-MM-DD"),end_time:U()().endOf("week").format("YYYY-MM-DD"),key:"week"},{label:"本月",start_time:U()().startOf("month").format("YYYY-MM-DD"),end_time:U()().endOf("month").format("YYYY-MM-DD"),key:"month"}],active:""}},mounted(){this.active=this.config.active||"today";const e=this.shortcuts.find((e=>e.key===this.active))||{};e.start_time&&e.end_time&&this.handleClick(e)},methods:{handleChange(e){e?this.$emit("input",e.map((e=>U()(e).format("YYYY-MM-DD")))):this.$emit("input",[]),this.active=""},handleClick(e){this.active=e.key,this.value[this.config.field]=[e.start_time,e.end_time],this.$emit("input",[e.start_time,e.end_time])}}},xe=Me,Se=l(xe,we,ke,!1,null,null,null),De=Se.exports,Le=null,Ce=null,Te=null,Ye="z-index-manage",Oe=null,Ee="z-index-style",je="m",Pe="s",$e={m:1e3,s:1e3};function Ne(){return Le||"undefined"!==typeof document&&(Le=document),Le}function Ie(){return Le&&!Ce&&(Ce=Le.body||Le.getElementsByTagName("body")[0]),Ce}function He(){var e=0,t=Ne();if(t){var n=Ie();if(n)for(var i=n.getElementsByTagName("*"),r=0;r<i.length;r++){var a=i[r];if(a&&a.style&&1===a.nodeType){var s=a.style.zIndex;s&&/^\d+$/.test(s)&&(e=Math.max(e,Number(s)))}}}return e}function Ae(){if(!Oe){var e=Ne();e&&(Oe=e.getElementById(Ee),Oe||(Oe=e.createElement("style"),Oe.id=Ee,e.getElementsByTagName("head")[0].appendChild(Oe)))}return Oe}function Fe(){var e=Ae();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Be()+";"+t+"sub"+n+":"+Ke()+"}"}}function ze(){if(!Te){var e=Ne();if(e&&(Te=e.getElementById(Ye),!Te)){var t=Ie();t&&(Te=e.createElement("div"),Te.id=Ye,Te.style.display="none",t.appendChild(Te),Ve($e.m),Ue($e.s))}}return Te}function We(e){return function(t){if(t){t=Number(t),$e[e]=t;var n=ze();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Fe(),$e[e]}}var Ve=We(je);function Re(e,t){return function(n){var i,r=ze();if(r){var a=r.dataset?r.dataset[e]:r.getAttribute("data-"+e);a&&(i=Number(a))}return i||(i=$e[e]),n?Number(n)<i?t():n:i}}var Be=Re(je,qe);function qe(){return Ve(Be()+1)}var Ue=We(Pe),Ge=Re(Pe,Je);function Ke(){return Be()+Ge()}function Je(){return Ue(Ge()+1),Ke()}var Xe={setCurrent:Ve,getCurrent:Be,getNext:qe,setSubCurrent:Ue,getSubCurrent:Ke,getSubNext:Je,getMax:He};Fe();var Ze=Xe;const Qe={ByPager:c,ByTable:$,ByForm:te,ByPageSearch:oe,ByFoldSearch:fe,BySelect:be,ByDatePickerRange:De,ByCustomDatePicker:X};Ze.setCurrent(99999);const et=e=>{Object.keys(Qe).forEach((t=>{e.component(t,Qe[t]),e.component(t.toLowerCase(),Qe[t])}))};"undefined"!==typeof window&&window.Vue&&et(window.Vue);var tt={install:et},nt=tt}(),r}()}));
|
|
331
|
+
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,i){var r={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?n?"хвіліна":"хвіліну":"h"===i?n?"гадзіна":"гадзіну":e+" "+t(r[i],+e)}var i=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return i}))},9979:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=78)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,s,o){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},2:function(e,t){e.exports=n(2172)},3:function(e,t){e.exports=n(5294)},5:function(e,t){e.exports=n(9731)},7:function(e,t){e.exports=n(9274)},78:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},r=[];i._withStripped=!0;var a=n(5),s=n.n(a),o=n(2),l=n(3),u={name:"ElPopover",mixins:[s.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(l["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(o["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(o["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(o["on"])(n,"focusin",this.handleFocus),Object(o["on"])(t,"focusout",this.handleBlur),Object(o["on"])(n,"focusout",this.handleBlur)),Object(o["on"])(t,"keydown",this.handleKeydown),Object(o["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(o["on"])(t,"click",this.doToggle),Object(o["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(o["on"])(t,"mouseenter",this.handleMouseEnter),Object(o["on"])(n,"mouseenter",this.handleMouseEnter),Object(o["on"])(t,"mouseleave",this.handleMouseLeave),Object(o["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(o["on"])(t,"focusin",this.doShow),Object(o["on"])(t,"focusout",this.doClose)):(Object(o["on"])(t,"mousedown",this.doShow),Object(o["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(o["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(o["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(o["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(o["off"])(e,"click",this.doToggle),Object(o["off"])(e,"mouseup",this.doClose),Object(o["off"])(e,"mousedown",this.doShow),Object(o["off"])(e,"focusin",this.doShow),Object(o["off"])(e,"focusout",this.doClose),Object(o["off"])(e,"mousedown",this.doShow),Object(o["off"])(e,"mouseup",this.doClose),Object(o["off"])(e,"mouseleave",this.handleMouseLeave),Object(o["off"])(e,"mouseenter",this.handleMouseEnter),Object(o["off"])(document,"click",this.handleDocumentClick)}},c=u,d=n(0),h=Object(d["a"])(c,i,r,!1,null,null,null);h.options.__file="packages/popover/src/main.vue";var f=h.exports,p=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},m={bind:function(e,t,n){p(e,t,n)},inserted:function(e,t,n){p(e,t,n)}},_=n(7),v=n.n(_);v.a.directive("popover",m),f.install=function(e){e.directive("popover",m),e.component(f.name,f)},f.directive=m;t["default"]=f}})}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}!function(){i.amdO={}}(),function(){i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,{a:t}),t}}(),function(){i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){i.p=""}();var r={};return function(){"use strict";if(i.r(r),i.d(r,{ByCustomDatePicker:function(){return J},ByDatePickerRange:function(){return Se},ByFoldSearch:function(){return he},ByForm:function(){return ee},ByPageSearch:function(){return se},ByPager:function(){return c},BySelect:function(){return ye},ByTable:function(){return P},default:function(){return tt}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(i.p=t[1])}i(8111),i(7588);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pager fixed bottom-0 right-0 w-full flex justify-center items-center z-50",attrs:{id:"pager"}},[t("el-pagination",{attrs:{"current-page":e.pager["page"],"page-size":e.pager["limit"],"page-sizes":e.pageSizes,background:"",layout:"total, prev, pager, next,sizes, jumper",total:e.totalCount},on:{"size-change":t=>e.handleValueChange(t,"limit"),"current-change":t=>e.handleValueChange(t,"page")}})],1)},a=[],s={name:"ByPager",props:{limit:{type:Number,default:15},page:{type:Number,default:1},totalCount:{type:Number,required:!0,default:25},pageSizes:{type:Array,default:()=>[10,15,20,25,30,50,100]}},data(){return{pager:{page:this.page,limit:this.limit}}},watch:{page:{handler:function(e,t){this.pager.page=e},immediate:!0},limit:{handler:function(e,t){this.pager.limit=e},immediate:!0}},mounted(){document.getElementsByClassName("el-pagination__jump")[0].childNodes[0].nodeValue="跳至",document.getElementsByClassName("el-pagination__jump")[0].childNodes[2].nodeValue=""},methods:{handleValueChange(e,t){if(!e)return;const n={...this.pager,[t]:e,page:"limit"===t?1:e};this.$emit("onChange",n)}}},o=s;function l(e,t,n,i,r,a,s,o){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}var u=l(o,n,a,!1,null,null,null),c=u.exports,d=function(){var e=this,t=e._self._c;return t("div",[t("vxe-grid",e._g(e._b({ref:"xGrid",on:{"cell-click":e.handleCellClick,"resizable-change":e.handleResizableChange},scopedSlots:e._u([e._l(e.slotMap,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}})),e.options.pagerConfig?{key:"pager",fn:function(){return[t("div",{staticClass:"pager-container"},[e.showResetCache?t("el-button",{attrs:{disabled:!e.hasCache,size:"small"},on:{click:e.resetCachedTableColumns}},[e._v(" 重置列宽 ")]):e._e(),t("by-pager",{attrs:{page:e.options.pagerConfig.currentPage,limit:e.options.pagerConfig.pageSize,"total-count":e.options.pagerConfig.total,"page-sizes":e.options.pagerConfig.pageSizes},on:{onChange:e.pageChange}})],1)]},proxy:!0}:{key:"pager",fn:function(){return[t("div",{staticClass:"reset-button"},[e.showResetCache?t("el-button",{attrs:{disabled:!e.hasCache,size:"small"},on:{click:e.resetCachedTableColumns}},[e._v(" 重置列宽 ")]):e._e()],1)]},proxy:!0}],null,!0)},"vxe-grid",e.options,!1),e.eventListeners)),e.gridOptions&&e.gridOptions.customColumnConfig&&e.gridOptions.customColumnConfig.showCustomColumn?t("CustomColumn",{ref:"CustomColumnRef",attrs:{"info-method":e.gridOptions.customColumnConfig.infoMethod,"submit-method":e.gridOptions.customColumnConfig.submitMethod,"fixed-max-count":e.gridOptions.customColumnConfig.fixedMaxCount,"dialog-visible":e.customTableVisible},on:{closeDialog:e.closeCustomColumnDialog,changeTable:e.changeTableFields,changeTableGroup:e.changeTableGroupFields}}):e._e()],1)},h=[],f=(i(4114),i(1148),i(7642),i(8004),i(3853),i(5876),i(2475),i(5024),i(1698),function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"custom_column"}},[t("el-dialog",{attrs:{"close-on-click-modal":!1,visible:e.dialogVisible,width:"920px","append-to-body":!0,"show-close":!1,"custom-class":"custom_dialog_class"},on:{close:e.closeDialog},scopedSlots:e._u([{key:"footer",fn:function(){return[t("el-row",{staticStyle:{"margin-top":"7px"}},[t("el-button",{staticStyle:{width:"96px"},attrs:{size:"small"},on:{click:e.closeDialog}},[e._v("取消")]),t("el-button",{staticStyle:{width:"96px"},attrs:{size:"small",type:"primary"},on:{click:e.submit}},[e._v("确定")])],1)]},proxy:!0}])},[t("div",{staticClass:"el-dialog-box"},[t("div",{staticClass:"left_box"},[t("div",{staticClass:"box_title"},[e._v("数据指标")]),t("div",{staticClass:"row",staticStyle:{"padding-right":"20px"}},[t("div",{staticClass:"cell"},[t("el-input",{staticStyle:{width:"228px","margin-bottom":"10px"},attrs:{placeholder:"搜索指标",size:"medium","prefix-icon":"el-icon-search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),t("el-button",{attrs:{type:"text"},on:{click:e.selectNone}},[e._v("全不选")])],1),t("div",{staticClass:"left_box_body"},[t("div",{staticClass:"left_nav"},[t("ul",e._l(e.checkBoxMenuBySearch,(function(n,i){return t("li",{key:i,class:{active:e.activeId===i},on:{click:function(t){return e.setHighlight(i)}}},[e._v(" "+e._s(n.label)+" ")])})),0)]),t("div",{staticClass:"left_menu"},e._l(e.checkBoxMenuBySearch,(function(n,i){return t("div",{key:i,ref:"tagItem",refInFor:!0},[t("div",{staticClass:"checkbox_title"},[e._v(" "+e._s(n.label)+" ")]),t("el-row",e._l(n.data,(function(n,i){return t("el-col",{key:i,staticStyle:{"margin-bottom":"3px"},attrs:{span:12}},[t("el-checkbox",{on:{change:function(t){return e.changeCheckbox(n.key,n.type)}},model:{value:n.type,callback:function(t){e.$set(n,"type",t)},expression:"each.type"}},[e._v(" "+e._s(n.label)+" ")])],1)})),1)],1)})),0)])]),t("div",{staticClass:"right_box"},[t("div",{staticClass:"drag_box"},[t("el-row",[t("div",{staticClass:"drag_text_box"},[t("span",{staticClass:"drag_title"},[e._v(e._s(`已选指标(${e.number})`))]),t("span",{staticClass:"recover",on:{click:e.recoverDefault}},[e._v("恢复默认")])])]),t("div",{staticClass:"drag_ul"},[t("draggable",{attrs:{"chosen-class":"chosen","force-fallback":"true",animation:"500"},on:{end:e.onEnd},model:{value:e.draggableMenu,callback:function(t){e.draggableMenu=t},expression:"draggableMenu"}},[t("transition-group",{attrs:{name:"list",tag:"div"}},e._l(e.draggableMenu,(function(n){return t("div",{directives:[{name:"show",rawName:"v-show",value:n.type,expression:"col.type"}],key:n.key,class:"sort-cut-off"===n.key?"fixedClass":"drag_li_box"},["sort-cut-off"!==n.key?t("div",{staticClass:"drag_li_text_box"},[t("i",{staticClass:"el-icon-rank icon-box"}),t("span",{staticClass:"drag_li_text"},[e._v(e._s(n.label))])]):e._e(),"sort-cut-off"!==n.key&&n.parent?t("span",{staticClass:"parent-label"},[e._v(" "+e._s(n.parent&&n.parent.label?n.parent.label:"")+" ")]):e._e(),"sort-cut-off"!==n.key?t("i",{staticClass:"el-icon-close remove",on:{click:function(t){return e.changeCheckbox(n.key,!1)}}}):e._e()])})),0)],1)],1)],1)])])])],1)}),p=[],m=(i(2489),i(116),i(531),i(1701),i(3579),i(6906)),_=i.n(m);const v=e=>{let t;if("object"===typeof e)if(Array.isArray(e)){t=[];for(const n in e)t.push(v(e[n]))}else if(null===e)t=null;else if(e.constructor===RegExp)t=e;else{t={};for(const n in e)t[n]=v(e[n])}else t=e;return t},g=e=>!!e&&!!localStorage.getItem(e),y=e=>{localStorage.removeItem(e)},b=(e,t)=>{if(!e)return;const n=t.$table.collectColumn,i=w(e),r=(e,t,n)=>{const i=[];for(const a of e)if(a.children){const e=r(a.children,t,n);e.length>0&&i.push({field:a.field,width:n,children:e})}else t&&""!==t&&a.field===t&&i.push({field:a.field,width:n});return i},a=t.column,s=r(n,a.field,a.renderWidth),o=(e,t)=>{const n=[...t];for(const i of e){const e=n.findIndex((e=>e.field===i.field));-1!==e?i.children&&n[e].children?n[e].children=o(i.children,n[e].children):n[e].width=i.width:n.push(i)}return n},l=o(s,i);localStorage.setItem(e,JSON.stringify(l))},w=e=>JSON.parse(localStorage.getItem(e)||"[]"),k=(e,t)=>{if(!e)return t;const n=w(e);if(!n)return t;const i=(e,t)=>e.map((e=>{if(e.children){const n=t.find((t=>t.field===e.field));return{...e,...(null===n||void 0===n?void 0:n.width)&&{width:n.width},children:i(e.children,(null===n||void 0===n?void 0:n.children)||[])}}const n=t.filter((e=>e.field&&""!==e.field)).find((t=>t.field===e.field));return{...e,...(null===n||void 0===n?void 0:n.width)&&{width:n.width}}}));return i(t,n)},M=(e,t)=>{if(!e||!t)return[];if(!e||0===e.length)return t;const n=[];for(const i of t){const t=e.find((e=>e.field===i.field));if(i.children){const e={...i,children:M((null===t||void 0===t?void 0:t.children)||[],i.children)};t&&(null!==t&&void 0!==t&&t.width?e.width=t.width:delete e.width),n.push(e)}else{const e={...i};t&&(null!==t&&void 0!==t&&t.width?e.width=t.width:delete e.width),n.push(e)}}return n},x=(e,t)=>{e&&Array.isArray(e)&&e.forEach((e=>{if(e.slots){const n=Object.values(e.slots);n.forEach((e=>t.add(e)))}e.children&&x(e.children,t)}))},S=(e,t=6)=>{let n=0;if(e.forEach((e=>{e.data.forEach((e=>{"left"===e.fixed&&["true",!0,"1",1].includes(e.type)&&n++}))})),n>t){const t=e.map((e=>({...e,fixed:void 0,data:e.data.map((e=>({...e,fixed:void 0})))})));return t}const i=[],r=[];e.forEach((e=>{const t=[],n=[];e.data.forEach((e=>{"left"===e.fixed?t.push(e):n.push(e)})),t.length>0&&i.push({label:e.label,fixed:"left",data:t}),n.length>0&&r.push({label:e.label,data:n})}));const a=[...i,...r];return a},D=(e,t=6)=>{if(!e)return[];let n=0;return e.forEach((e=>{"left"===e.fixed&&["true",!0,"1",1].includes(e.type)&&n++})),n>t&&e.map((e=>{e.fixed=!1})),e};var L={name:"CustomColumn",components:{draggable:_()},props:{dialogVisible:{type:Boolean,default:!1},infoMethod:{type:Function,required:!0,default:()=>{}},submitMethod:{type:Function,required:!0,default:()=>{}},fixedMaxCount:{type:Number,default:6,validator:e=>e>=0}},data(){return{draggableMenu:[],checkBoxMenu:[],activeId:0,id:void 0,page:"",search:"",columnList:[]}},computed:{number(){return this.draggableMenu.filter((e=>e.type&&"sort-cut-off"!==e.key)).length},checkBoxMenuBySearch(){return this.search?this.checkBoxMenu.map((e=>{const t=e.data.filter((e=>e.label.includes(this.search)));return{label:e.label,data:t}})).filter((e=>e.data.length>0)):this.checkBoxMenu}},methods:{deepClone:v,async getCustomTableList(e,t){if(!e)throw new Error("缺少表格列接口路径");{this.columnList=this.deepClone(t),this.page=e||"";const n=[],i=await this.infoMethod({page:e});"[]"!==JSON.stringify(i.data)&&(this.id=i.data.id||void 0,i.data.column.forEach((e=>n.push(...e.data)))),this.initTableList(this.deepClone(t),n)}},initTableList(e,t=[]){const n=e=>{const t=e.flatMap((e=>e.data)),n=t.filter((e=>"left"===e.fixed)).sort(((e,t)=>e.sort-t.sort)),i=t.filter((e=>"left"!==e.fixed)).sort(((e,t)=>e.sort-t.sort)),r={type:!0,label:"",key:"sort-cut-off",fixed:n.length>0?"left":void 0,parent:""};return n.length>0?[...n,r,...i]:[r,...i]};if(t&&t.length>0)e.forEach((e=>{e.data.forEach((n=>{const i=t.find((e=>e.key===n.key))||{};n.type=["true",!0,"1",1].includes(i.type),n.sort=i.sort,n.fixed=i.fixed,n.parent={label:e.label}}))})),this.checkBoxMenu=this.deepClone(e),this.draggableMenu=n(this.checkBoxMenu);else{let t=0;e.forEach((e=>{e.data.forEach((n=>{t++,n.type=!0,n.width=n.width?+n.width:0,n.sort=t,n.fixed=e.fixed,n.parent={label:e.label}}))})),this.checkBoxMenu=this.deepClone(e),this.draggableMenu=n(this.checkBoxMenu)}this.emitChangeTable(this.draggableMenu.filter((e=>"sort-cut-off"!==e.key)).sort(((e,t)=>e.sort-t.sort))),this.emitChangeTableGroup(this.checkBoxMenu)},selectNone(){this.checkBoxMenu.forEach((e=>e.data.forEach((e=>e.type=!1)))),this.draggableMenu.forEach((e=>{"sort-cut-off"===e.key?e.type=!0:e.type=!1}))},setHighlight(e){this.activeId=e,this.$refs.tagItem&&this.$refs.tagItem[e].scrollIntoView({behavior:"smooth"})},changeCheckbox(e,t){this.draggableMenu.forEach((n=>{n.key===e&&(n.type=t)})),this.checkBoxMenu.forEach((n=>{n.data.forEach((n=>{n.key===e&&(n.type=t)}))}))},recoverDefault(){this.initTableList(this.deepClone(this.columnList))},onEnd(){let e=!0;this.draggableMenu.forEach(((t,n)=>{"sort-cut-off"===t.key?(t.fixed="left",t.sort=n+1,e=!1):e?(t.sort=n+1,t.fixed="left"):(t.sort=n,delete t.fixed)}))},async submit(){const e={column:[],id:this.id,page:this.page};this.draggableMenu.forEach((t=>{if("sort-cut-off"!==t.key){const{parent:n,...i}=t,r=e.column.some((e=>e.label===n.label));r?e.column.forEach((e=>{e.label===n.label&&e.data.push(i)})):e.column.push({label:n.label,data:[i]})}})),await this.submitMethod(e);const t=[];e.column.forEach((e=>{t.push(...e.data)})),this.emitChangeTable(t.sort(((e,t)=>e.sort-t.sort))),this.emitChangeTableGroup(e.column),this.closeDialog()},emitChangeTable(e){const t=D(e,this.fixedMaxCount);this.$emit("changeTable",t)},emitChangeTableGroup(e){const t=S(e,this.fixedMaxCount);this.$emit("changeTableGroup",t)},closeDialog(){this.search="",this.activeId=0,this.$emit("closeDialog")}}},C=L,T=l(C,f,p,!1,null,null,null),Y=T.exports,O={name:"ByTable",components:{CustomColumn:Y},props:{gridOptions:{type:Object,default:()=>({})},name:{type:String,default:""},autoHeight:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data(){return{events:["keydown","current-change","radio-change","checkbox-change","checkbox-all","checkbox-range-start","checkbox-range-change","checkbox-range-end","cell-dblclick","cell-menu","cell-mouseenter","cell-mouseleave","cell-delete-value","header-cell-click","header-cell-dblclick","header-cell-menu","footer-cell-click","footer-cell-dblclick","footer-cell-menu","clear-merge","sort-change","clear-sort","filter-visible","filter-change","clear-filter","toggle-row-expand","toggle-tree-expand","menu-click","cell-selected","edit-closed","edit-activated","edit-disabled","valid-error","scroll","custom","page-change","form-submit","form-submit-invalid","form-reset","form-collapse","proxy-query","proxy-delete","proxy-save","toolbar-button-click","toolbar-tool-click","zoom"],customTableVisible:!1,showResetCache:!1,hasCache:!1,originColumns:[],tempColumns:[],allData:[],sortState:{field:null,order:null}}},mounted(){this.showResetCache=!!this.name},watch:{"gridOptions.columns":{handler(e){const t=M(this.tempColumns,e);this.originColumns=t},deep:!0},"gridOptions.data":{handler(){this.$nextTick((()=>{setTimeout((()=>{this.$refs.xGrid&&this.$refs.xGrid.refreshScroll&&this.$refs.xGrid.refreshScroll(),this.$refs.xGrid&&this.$refs.xGrid.scrollTo&&this.$refs.xGrid.scrollTo({top:0,left:0}),this.sortState.field&&this.sortState.order&&this.$refs.xGrid&&setTimeout((()=>{this.$refs.xGrid.sort(this.sortState.field,this.sortState.order,{silent:!0})}),100)}),0)}))},deep:!0}},computed:{options(){var e,t,n,i,r,a;const{customColumnConfig:s,columns:o,...l}=this.gridOptions;this.originColumns=M(this.tempColumns,o);const u=k(this.name,o);this.setHasCache();let c=l.data||[];(null!==(e=l.pagerConfig)&&void 0!==e&&e.frontendPagination||null!==(t=l.sortConfig)&&void 0!==t&&t.frontendSort)&&(this.allData=[...c]),null!==(n=l.pagerConfig)&&void 0!==n&&n.frontendPagination&&(c=this.spliteListData(this.allData,l.pagerConfig.currentPage,l.pagerConfig.pageSize));const{data:d,sortConfig:h,...f}=l,p=this.gridOptions.seqConfig||{},m=this.specialFirstRow(this.allData),_=({rowIndex:e})=>m?e:e+1;return{border:!0,resizable:!0,showOverflow:!this.autoHeight,height:550,align:"left",copyFields:[],emptyText:"暂无数据",loading:this.loading,loadingConfig:{text:"加载中..."},columns:u,data:c,resizableConfig:{minWidth:50,...this.gridOptions.resizableConfig},rowConfig:{height:41,isHover:!0,...this.gridOptions.rowConfig},sortConfig:{...h,remote:!!(null!==(i=l.pagerConfig)&&void 0!==i&&i.frontendPagination||null!==(r=l.sortConfig)&&void 0!==r&&r.frontendSort)||null!==(a=null===h||void 0===h?void 0:h.remote)&&void 0!==a&&a,trigger:"cell",...this.gridOptions.sortConfig},seqConfig:{...p,seqMethod:p.seqMethod||_},...f}},slotMap(){var e,t,n;const i=new Set([]),r=null!==(e=null===(t=this.gridOptions)||void 0===t||null===(n=t.customColumnConfig)||void 0===n?void 0:n.slots)&&void 0!==e?e:[];return x(this.options.columns,i),[...Array.from(i),...r]},eventListeners(){const e={};return this.events.forEach((t=>{e[t]="sort-change"===t?e=>this.handleSortChange(e):e=>this.$emit(t,e)})),e}},methods:{handleCellClick(e){if(this.options.copyFields.includes(e.column.field)){const t=e.cell.outerText;this.copy(t)}this.$emit("cell-click",e)},handleResizableChange(e){this.$emit("resizable-change",e),b(this.name,e),this.setHasCache()},setHasCache(){this.hasCache=g(this.name)},resetCachedTableColumns(){y(this.name),this.setHasCache(),this.$refs.xGrid&&this.$refs.xGrid.reloadColumn(this.originColumns)},pageChange(e){var t;null!==(t=this.gridOptions.pagerConfig)&&void 0!==t&&t.frontendPagination?setTimeout((()=>{const t=this.spliteListData(this.allData,e.page,e.limit);this.$refs.xGrid.reloadData(t),this.$nextTick((()=>{this.sortState.field&&this.sortState.order&&this.$refs.xGrid&&setTimeout((()=>{this.$refs.xGrid.sort(this.sortState.field,this.sortState.order,{silent:!0})}),100)})),setTimeout((()=>{this.$refs.xGrid&&this.$refs.xGrid.scrollTo(0,0)}),0)}),0):(this.$refs.xGrid&&this.$refs.xGrid.scrollTo(0,0),this.$emit("page-change",e))},copy(e){const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),this.$message({message:"复制成功",type:"success"}),t.remove()},getCustomColumnRef(){return this.$refs.CustomColumnRef},handleOpenCustomColumn(){this.customTableVisible=!0},changeTableFields(e){const t=[];e.forEach((e=>{!t.some((t=>t.field===e.key))&&e.type&&t.push({field:e.key,title:e.label,minWidth:e.minWidth||e.width,maxWidth:e.maxWidth,sortable:"undefined"===typeof e.sortable||JSON.parse(e.sortable),fixed:e.fixed,popover:"undefined"===typeof e.popover?"":e.popover,slots:this.gridOptions.customColumnConfig.slots.includes(e.key)?{default:e.key}:void 0})})),this.tempColumns=v(t);const n=k(this.name,t);this.setHasCache(),this.$emit("setColumn",n)},changeTableGroupFields(e){const t=e=>{const n=[];return e.forEach(((i,r)=>{if(i.data&&i.data.length>0){const a=i.data.every((e=>!e.type));a||(n.push({title:i.label,align:"center",fixed:i.fixed,children:t(i.data)}),r<e.length-1&&n.push({title:"",width:5,headerClassName:"group-split",className:"group-split",fixed:e[r].fixed&&e[r+1].fixed}))}else!n.some((e=>e.field===i.key))&&i.type&&n.push({field:i.key,title:i.label,minWidth:i.minWidth||i.width,maxWidth:i.maxWidth,sortable:"undefined"===typeof i.sortable||JSON.parse(i.sortable),fixed:i.fixed,popover:"undefined"===typeof i.popover?"":i.popover,slots:this.gridOptions.customColumnConfig.slots.includes(i.key)?{default:i.key}:void 0})})),n};this.$emit("setGroupColumn",t(e))},closeCustomColumnDialog(){this.customTableVisible=!1},specialFirstRow(e){var t,n;return null!==(t=this.gridOptions)&&void 0!==t&&null!==(n=t.sortConfig)&&void 0!==n&&n.hasTopRow?e[0]:null},spliteListData(e,t,n){if(!Array.isArray(e)||0===e.length)return[];const i=this.specialFirstRow(e);let r=i?e.slice(1):e;this.sortState.field&&this.sortState.order&&(r=this.sortData(r,this.sortState.field,this.sortState.order));let a=[];if(t&&n){const i=(t-1)*n,s=i+n;this.gridOptions.pagerConfig.currentPage=t,this.gridOptions.pagerConfig.pageSize=n,this.gridOptions.pagerConfig.total=e.length,a=r.slice(i,s)}else a=r;return i&&(a=[i,...a]),a},sortData(e,t,n){return t&&n?[...e].sort(((e,i)=>{let r=e[t],a=i[t];if(null!==r&&void 0!==r||(r=""),null!==a&&void 0!==a||(a=""),"number"===typeof r&&"number"===typeof a)return"asc"===n?r-a:a-r;const s=String(r).toLowerCase(),o=String(a).toLowerCase(),l="string"===typeof r&&r.trim().endsWith("%")&&!isNaN(r.trim().slice(0,-1)),u="string"===typeof a&&a.trim().endsWith("%")&&!isNaN(a.trim().slice(0,-1));if(l&&u){const e=parseFloat(r),t=parseFloat(a);return"asc"===n?e-t:t-e}const c=!isNaN(s)&&""!==s.trim(),d=!isNaN(o)&&""!==o.trim();return c&&d?"asc"===n?Number(s)-Number(o):Number(o)-Number(s):"asc"===n?s.localeCompare(o):o.localeCompare(s)})):e},handleSortChange(e){var t,n;const{property:i,order:r}=e,a=(null===(t=this.gridOptions.pagerConfig)||void 0===t?void 0:t.frontendPagination)||(null===(n=this.gridOptions.sortConfig)||void 0===n?void 0:n.frontendSort);if(this.sortState.field=i,this.sortState.order=r,a){var s,o;const e=this.spliteListData(this.allData,null!==(s=this.gridOptions.pagerConfig)&&void 0!==s&&s.frontendPagination?this.gridOptions.pagerConfig.currentPage:null,null!==(o=this.gridOptions.pagerConfig)&&void 0!==o&&o.frontendPagination?this.gridOptions.pagerConfig.pageSize:null);this.$refs.xGrid&&(this.$refs.xGrid.reloadData(e),this.$nextTick((()=>{i&&r&&setTimeout((()=>{this.$refs.xGrid.sort(i,r,{silent:!0})}),100),setTimeout((()=>{var e;if(null!==(e=this.gridOptions.pagerConfig)&&void 0!==e&&e.frontendPagination&&this.$refs.xGrid){const e=this.gridOptions.pagerConfig.currentPage;1!==e?this.pageChange({page:1,limit:this.gridOptions.pagerConfig.pageSize}):this.$refs.xGrid.scrollTo(0,0)}}),0)})))}else this.$nextTick((()=>{i&&r&&this.$refs.xGrid&&setTimeout((()=>{this.$refs.xGrid.sort(i,r,{silent:!0})}),100)}));this.$emit("sort-change",e)},resetSortState(){this.sortState.field=null,this.sortState.order=null,setTimeout((()=>{this.$refs.xGrid.sort(this.sortState.field,this.sortState.order,{silent:!0})}),100)}}},E=O,j=l(E,d,h,!1,null,null,null),P=j.exports,$=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-form"},[t("div",{staticClass:"header"},[e._t("header")],2),t("el-form",{ref:"formRef",staticClass:"myForm",attrs:{"label-position":e.labelPosition,rules:e.rules,"label-width":e.labelWidth,inline:e.inline,model:e.value,"label-suffix":":"},nativeOn:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)},reset:function(t){return t.preventDefault(),e.reset.apply(null,arguments)}}},[t("el-row",[e._l(e.formItems,(function(n){return[n.isHidden?e._e():t("el-col",e._b({directives:[{name:"show",rawName:"v-show",value:e.showFold(n),expression:"showFold(item)"}],key:n.label},"el-col",n.colLayout||e.colLayout,!1),[t("el-form-item",{style:n.itemStyle||e.itemStyle,attrs:{label:n.label||"",rules:n.rules,prop:n.field,"label-width":n.labelWidth||e.labelWidth}},["input"===n.type||"password"===n.type?[t("el-input",e._b({staticStyle:{width:"100%"},attrs:{placeholder:n.placeholder,clearable:"","show-password":"password"===n.type,value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-input",n.otherOptions,!1),[n.otherOptions&&n.otherOptions.isPrefix?e._t("prefix",(function(){return["select"===n.otherOptions.prefixType?t("el-select",{style:{width:"100px"},attrs:{slot:"prepend",value:e.value[`${n.otherOptions.prefixField}`],placeholder:"请选择"},on:{input:function(t){return e.handleValueChange(t,n.otherOptions)}},slot:"prepend"},e._l(n.otherOptions.prefixOption,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()]})):e._e(),e._t("suffix"),e._t("prepend"),e._t("append")],2)]:"select"===n.type?[t("by-select",e._b({staticStyle:{width:"100%"},attrs:{value:e.value[`${n.field}`],config:n,clearable:"",filterable:"",size:e.elSize,options:n.options,loadOptions:n.loadOptions,autoLoad:!1!==n.autoLoad},on:{input:function(t){return e.handleValueChange(t,n)},"load-success":function(t){return e.handleSelectLoadSuccess(t,n)},"load-error":function(t){return e.handleSelectLoadError(t,n)}}},"by-select",n.otherOptions,!1)),e._t(n.field)]:"datepicker"===n.type?[t("el-date-picker",e._b({staticStyle:{width:"100%"},attrs:{placeholder:n.placeholder,value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-date-picker",n.otherOptions,!1))]:"cascader"===n.type?[t("el-cascader",e._b({staticStyle:{width:"100%"},attrs:{placeholder:n.placeholder,options:n.options,clearable:"",filterable:"",value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-cascader",n.otherOptions,!1))]:"switch"===n.type?[t("el-switch",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-switch",n.otherOptions,!1))]:"radioGroup"===n.type?["button"===n.cGOptions.type?t("el-radio-group",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-radio-group",n.otherOptions,!1),e._l(n.cGOptions.options,(function(n){return t("el-radio-button",{key:n.value,attrs:{label:n.value,disabled:!!n.disabled}},[e._v(" "+e._s(n.label)+" ")])})),1):e._e(),"checkbox"===n.cGOptions.type?t("el-radio-group",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-radio-group",n.otherOptions,!1),e._l(n.cGOptions.options,(function(n){return t("el-radio",{key:n.value,attrs:{label:n.value,disabled:!!n.disabled}},[e._v(" "+e._s(n.label)+" ")])})),1):e._e()]:"checkboxGroup"===n.type?["button"===n.cGOptions.type?t("el-checkbox-group",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-checkbox-group",n.otherOptions,!1),e._l(n.cGOptions.options,(function(n){return t("el-checkbox-button",{key:n.value,attrs:{label:n.value}},[e._v(" "+e._s(n.label)+" ")])})),1):e._e(),"checkbox"===n.cGOptions.type?t("el-checkbox-group",e._b({attrs:{value:e.value[`${n.field}`],size:e.elSize},on:{input:function(t){return e.handleValueChange(t,n)}}},"el-checkbox-group",n.otherOptions,!1),e._l(n.cGOptions.options,(function(n){return t("el-checkbox",{key:n.value,attrs:{label:n.value}},[e._v(" "+e._s(n.label)+" ")])})),1):e._e()]:"text"===n.type?[e._t(n.slotName,(function(){return[t("div",[e._v(e._s(`${n.defaultValue}`))])]}))]:"pairNumberInput"===n.type?[t("PairNumberInput",{attrs:{value:e.value[`${n.field}`],"earliest-placeholder":n.earliestPlaceholder,"latest-placeholder":n.latestPlaceholder},on:{input:function(t){return e.handleValueChange(t,n)}}})]:"customDatePicker"===n.type?[t("CustomDatePicker",e._b({attrs:{value:e.value[`${n.field}`]},on:{input:function(t){return e.handleValueChange(t,n)},"range-change":function(t){return e.handleRangeChange(t,n)}}},"CustomDatePicker",n,!1))]:"custom"===n.type?[e._t(n.field,null,{row:n})]:"search"===n.type?[t("el-button",e._b({attrs:{size:e.elSize||"mini",type:"primary",icon:"el-icon-search"},on:{click:e.handleQueryClick}},"el-button",n.otherOptions||{},!1),[e._v(" "+e._s((n.otherOptions||{}).text||"搜索")+" ")])]:"formButtons"===n.type?[n.otherOptions&&!1===n.otherOptions.reset?e._e():t("el-button",e._b({attrs:{"native-type":"reset",size:e.elSize||"mini"}},"el-button",n.otherOptions||{},!1),[e._v(" "+e._s((n.otherOptions||{}).resetText||"重置")+" ")]),n.otherOptions&&!1===n.otherOptions.submit?e._e():t("el-button",e._b({attrs:{"native-type":"submit",size:e.elSize||"mini",type:"primary",icon:n.otherOptions&&!1===n.otherOptions.showSubmitIcon?"":"el-icon-search"}},"el-button",n.otherOptions||{},!1),[e._v(" "+e._s((n.otherOptions||{}).submitText||"搜索")+" ")])]:e._e()],2)],1)]})),e._t("btn",null,{formData:e.formData})],2)],1),t("div",{staticClass:"footer"},[e._t("footer")],2)],1)},N=[],I=function(){var e=this,t=e._self._c;return t("div",{staticClass:"w-full flex"},[t("el-input",{staticClass:"w-1/2",attrs:{value:e.value[0],placeholder:e.earliestPlaceholder},on:{input:t=>e.handleInput(t,"min"),blur:t=>e.handleBlur(+t.target.value,"min")}}),t("span",[e._v("~")]),t("el-input",{staticClass:"w-1/2",attrs:{value:e.value[1],placeholder:e.latestPlaceholder},on:{input:t=>e.handleInput(t,"max"),blur:t=>e.handleBlur(+t.target.value,"max")}})],1)},H=[],A={name:"ByPairNumberInput",props:{value:{type:Array,required:!0,default:()=>["",0]},earliestPlaceholder:{type:String,default:""},latestPlaceholder:{type:String,default:""}},methods:{handleInput(e,t){if("min"===t){const t=[e.replace(/\D+/,""),this.value[1]];this.$emit("input",t)}else if("max"===t){const t=[this.value[0],e.replace(/\D+/,"")];this.$emit("input",t)}},handleBlur(e,t){if("min"===t){if(e>this.value[1]){const e=[this.value[1],this.value[1]];this.$emit("input",e)}}else if("max"===t&&e<this.value[0]){const e=[this.value[0],this.value[0]];this.$emit("input",e)}}}},F=A,z=l(F,I,H,!1,null,null,null),W=z.exports,V=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-picker wrapper"},[t("el-date-picker",e._b({staticStyle:{width:"70%"},attrs:{value:e.value},on:{input:e.handleChange}},"el-date-picker",e.dateOptions,!1)),t("div",{staticClass:"btn"},e._l(e.shortcuts,(function(n){return t("span",{key:n.key,staticClass:"item",class:{item_active:n.key===e.active},on:{click:function(t){return e.handleClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})),0)],1)},R=[],B=i(6879),q=i.n(B),U={name:"ByCustomDatePicker",props:{value:{type:[Array,String],required:!0,default:()=>[]},otherOption:{type:Object,default:()=>({startPlaceholder:"开始时间",endPlaceholder:"结束时间",type:"daterange",rangeSeparator:"-",size:"mini",active:""})},startTimeField:{type:String,default:""},endTimeField:{type:String,default:""}},data(){return{shortcuts:[{label:"上月",start_time:q()().subtract(1,"months").startOf("month").format("YYYY-MM-DD"),end_time:q()().subtract(1,"months").endOf("month").format("YYYY-MM-DD"),key:"last_month"},{label:"昨天",start_time:q()().subtract(1,"days").format("YYYY-MM-DD"),end_time:q()().subtract(1,"days").format("YYYY-MM-DD"),key:"yesterday"},{label:"今天",start_time:q()().startOf("day").format("YYYY-MM-DD"),end_time:q()().startOf("day").format("YYYY-MM-DD"),key:"today"},{label:"本周",start_time:q()().startOf("week").format("YYYY-MM-DD"),end_time:q()().endOf("week").format("YYYY-MM-DD"),key:"week"},{label:"本月",start_time:q()().startOf("month").format("YYYY-MM-DD"),end_time:q()().endOf("month").format("YYYY-MM-DD"),key:"month"}],active:""}},computed:{dateOptions(){return{startPlaceholder:"开始时间",endPlaceholder:"结束时间",type:"daterange",rangeSeparator:"至",size:"mini",active:"",...this.otherOption}}},watch:{value:{handler(e,t){if(e&&e.length)this.active="",this.shortcuts.forEach((t=>{t.start_time===e[0]&&t.end_time===e[1]&&(this.active=t.key)}));else{this.active=this.dateOptions.active;const e=this.shortcuts.find((e=>e.key===this.dateOptions.active))||{};e.start_time&&e.end_time&&this.handleClick(e)}},immediate:!0}},methods:{handleChange(e){if(e){const t=e.map((e=>q()(e).format("YYYY-MM-DD")));this.$emit("input",t),this.startTimeField&&this.endTimeField&&this.$emit("range-change",{startTime:t[0],endTime:t[1]})}else this.$emit("input",[]),this.startTimeField&&this.endTimeField&&this.$emit("range-change",{startTime:"",endTime:""});this.active=""},handleClick(e){this.active=e.key,this.$emit("input",[e.start_time,e.end_time]),this.startTimeField&&this.endTimeField&&this.$emit("range-change",{startTime:e.start_time,endTime:e.end_time})}}},G=U,K=l(G,V,R,!1,null,null,null),J=K.exports,X={name:"ByForm",components:{PairNumberInput:W,CustomDatePicker:J},props:{value:{type:Object,required:!0},labelPosition:{type:String,default:"right"},formItems:{type:Array,default:()=>[]},flexible:{type:Object,default:()=>({foldField:"none",unfold:!1})},labelWidth:{type:String,default:"100px"},itemStyle:{type:Object,default:()=>({padding:"10px 40px"})},colLayout:{type:Object,default:()=>({xl:4,lg:6,md:6,sm:8,xs:12})},isFlexible:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},rules:{type:Object,default:()=>{}},elSize:{type:String,default:"mini"}},data(){return{formData:this.value,replacementData:void 0,initialValues:{...this.value}}},computed:{showFold(){return e=>!!this.isFlexible||(!this.flexible||!this.flexible.foldField.length||!this.flexible.foldField.includes(e.id)&&!this.flexible.foldField.includes(e.field))}},watch:{value:{handler(e,t){this.formData=e,this.replacementData={...this.replacementData?this.replacementData:{},...e}},deep:!0,immediate:!0}},methods:{validate(e=()=>{}){this.$refs.formRef.validate(((t,n)=>{e(t,n)}))},clearValidate(){this.$refs.formRef.clearValidate()},handleValueChange(e,t){this.replacementData?this.replacementData[t.field]=e:this.replacementData={...this.value,[t.field]:e},this.$emit("change",{...t,value:e}),this.$emit("input",this.replacementData)},handleRangeChange({startTime:e,endTime:t},n){n.startTimeField&&n.endTimeField&&(this.replacementData?(this.replacementData[n.startTimeField]=e,this.replacementData[n.endTimeField]=t):this.replacementData={...this.value,[n.startTimeField]:e,[n.endTimeField]:t},this.$emit("input",this.replacementData))},handleQueryClick(){this.$emit("queryBtnClick")},submit(){this.$refs.formRef.validate((e=>{if(!e)return!1;this.$emit("submit",this.formData)}))},reset(){this.$refs.formRef.resetFields(),this.$emit("input",{...this.initialValues}),this.$nextTick((()=>{this.$emit("reset")}))},handleSelectLoadSuccess(e,t){this.$emit("select-load-success",{options:e,item:t})},handleSelectLoadError(e,t){this.$emit("select-load-error",{error:e,item:t})}}},Z=X,Q=l(Z,$,N,!1,null,"f2397dbe",null),ee=Q.exports,te=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-page-search"},[t("by-form",e._b({attrs:{value:e.formData,"is-flexible":e.unfold},on:{input:e.handleInput,change:e.handleChange,queryBtnClick:e.handleQueryClick,submit:e.submit,reset:e.reset},scopedSlots:e._u([{key:"header",fn:function(){return[e._t("header")]},proxy:!0},{key:"footer",fn:function(){return[e.isShowUnfoldBtn?t("div",{staticClass:"fold"},[t("by-fold-search",{on:{change:e.handleFlexible}})],1):e._e()]},proxy:!0},e._l(e.getCustomItem,(function(t){return{key:t,fn:function(){return[e._t(t)]},proxy:!0}}))],null,!0)},"by-form",e.searchFormConfig,!1))],1)},ne=[],ie={name:"ByPageSearch",props:{searchFormConfig:{type:Object,required:!0,default:()=>{}},value:{type:Object,default:()=>{}}},data(){var e,t;return{formItems:null!==(e=null===(t=this.searchFormConfig)||void 0===t?void 0:t.formItems)&&void 0!==e?e:[],formOriginData:{},formData:{},unfold:!1}},computed:{isShowUnfoldBtn(){var e,t,n,i,r;const a=null!==(e=null===(t=this.searchFormConfig)||void 0===t?void 0:t.formItems)&&void 0!==e?e:[],s=null!==(n=null===(i=this.searchFormConfig)||void 0===i?void 0:i.flexible)&&void 0!==n?n:void 0,o=null!==(r=null===s||void 0===s?void 0:s.foldField)&&void 0!==r?r:[];return!!s&&o.some((e=>a.some((t=>t.field===e&&!t.isHidden))))},getCustomItem(){return this.formItems.filter((e=>"custom"===e.type)).map((e=>e.field))}},watch:{value:{handler(e,t){this.formData=e},deep:!0,immediate:!0}},mounted(){var e,t;this.formOriginData=this.value,this.unfold=null!==(e=null===(t=this.searchFormConfig.flexible)||void 0===t?void 0:t.unfold)&&void 0!==e&&e},methods:{handleResetClick(){this.formData={...this.formOriginData},this.$emit("input",{...this.formOriginData}),this.$emit("resetBtnClick")},handleQueryClick(){this.$emit("queryBtnClick")},handleFlexible(){this.unfold=!this.unfold},handleInput(e){this.formData=e,this.$emit("input",{...this.formData})},handleChange(e){this.$emit("change",e)},submit(){this.$emit("submit",this.formData)},reset(){this.$emit("reset")}}},re=ie,ae=l(re,te,ne,!1,null,null,null),se=ae.exports,oe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"drawer_query_btn b-fold-search"},[t("div",{on:{click:e.drawer}},[1==e.show?[t("span",{staticStyle:{color:"#3aa1ff","vertical-align":"middle"}},[e._v("收起")]),e._v(" "),t("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMHB4IiBoZWlnaHQ9IjIwMC4wMHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzVjYWRmZiIgZD0iTTg3Ny41IDU2NS45bC0zNjcuNi0zNDAtMzY3LjYgMzQwYy0yMi41IDE0LjUtNTIuNSAxNC41LTY3LjUgMC0xNS0yMS43LTE1LTUwLjcgMC02NS4xTDQ5NSAxMTcuNWMwLTcuMiA3LjUtNy4yIDE1LTcuMnM3LjUgMCAxNSA3LjJsNDIwLjIgMzgzLjNjMjIuNSAyMS43IDE1IDUwLjYgMCA2NS4xLTIyLjcgMTQuNS01Mi43IDE0LjUtNjcuNyAwek00OTQuOCA0NTAuMWMwLTcuMiA3LjUtNy4yIDE1LTcuMnMxNSAwIDE1IDcuMkw5NDUgODMzLjRjMjIuNSAyMS43IDE1IDUwLjYgMCA2NS4xLTIyLjUgMTQuNC01Mi41IDE0LjQtNjcuNSAwTDUwOS44IDU1OC42IDE0Mi4yIDkwNS44Yy0yMi41IDE0LjUtNTIuNSAxNC41LTY3LjUgMC0xNS0yMS43LTE1LTUwLjcgMC02NS4xbDQyMC4xLTM5MC42eiBtMCAwIiAvPjwvc3ZnPg==",alt:"收起"}})]:[t("span",{staticStyle:{color:"#3aa1ff","vertical-align":"middle"}},[e._v("展开更多")]),e._v(" "),t("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMHB4IiBoZWlnaHQ9IjIwMC4wMHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzVjYWRmZiIgZD0iTTE0NS40IDQ2MS4xbDM2Ny42IDM0MCAzNjcuNi0zNDBjMjIuNS0xNC41IDUyLjUtMTQuNSA2Ny41IDAgMTUgMjEuNyAxNSA1MC43IDAgNjUuMUw1MjcuOSA5MDkuNWMwIDcuMi03LjUgNy4yLTE1IDcuMnMtNy41IDAtMTUtNy4yTDc3LjcgNTI2LjJjLTIyLjUtMjEuNy0xNS01MC42IDAtNjUuMSAyMi42LTE0LjUgNTIuNi0xNC41IDY3LjcgMHpNNTI4IDU3Ni45YzAgNy4yLTcuNSA3LjItMTUgNy4ycy0xNSAwLTE1LTcuMkw3Ny44IDE5My42Yy0yMi41LTIxLjctMTUtNTAuNiAwLTY1LjEgMjIuNS0xNC40IDUyLjUtMTQuNCA2Ny41IDBMNTEzIDQ2OC40bDM2Ny42LTM0Ny4yYzIyLjUtMTQuNSA1Mi41LTE0LjUgNjcuNSAwIDE1IDIxLjcgMTUgNTAuNyAwIDY1LjFMNTI4IDU3Ni45eiBtMCAwIiAvPjwvc3ZnPg==",alt:"展开更多"}})]],2)])},le=[],ue={data(){return{show:!1}},methods:{drawer(e){this.show=!this.show,this.$emit("change",this.show)}}},ce=ue,de=l(ce,oe,le,!1,null,null,null),he=de.exports,fe=function(){var e=this,t=e._self._c;return t("el-select",e._b({ref:"selection",attrs:{value:e.value,placeholder:e.config&&e.config.placeholder||"请选择",loading:e.innerLoading},on:{change:e.change,"visible-change":e.visibleChange,"remove-tag":e.removeTag,clear:e.clear,blur:e.blur,focus:e.focus}},"el-select",e.$props,!1),[e.config&&"group"===e.config.mode?e._l(e.item.options,(function(n){return t("el-option-group",{key:n[e.config.optionValue||"value"],attrs:{label:n[e.config.optionLabel||"label"]}},e._l(n.options,(function(n){return t("el-option",{key:n[e.config.optionValue||"value"],attrs:{label:n[e.config.optionLabel||"label"],value:n[e.config.optionValue||"value"]}})})),1)})):e._l(e.filterData,(function(n){return t("el-option",{key:n[e.config.optionValue||"value"]+"-"+n[e.config.optionLabel||"label"],attrs:{label:n[e.config.optionLabel||"label"],value:n[e.config.optionValue||"value"]}})}))],2)},pe=[],me=i(7822),_e={name:"BySelect",props:{...me.Select.props,value:{type:[String,Number,Array]},placeholder:{type:String,default:"请选择"},options:{type:Array,default:()=>[]},loadOptions:{type:Function,default:null},autoLoad:{type:Boolean,default:!0},config:{type:Object,default:()=>({})}},data(){return{searchVal:"",filterData:[],innerLoading:!1,asyncOptions:[]}},watch:{options:{handler(){this.filterData=this.loadOptions?this.asyncOptions:this.options},deep:!0,immediate:!0},asyncOptions:{handler(){this.filterData=this.asyncOptions},deep:!0}},async mounted(){this.loadOptions&&this.autoLoad&&await this.loadAsyncOptions()},methods:{async loadAsyncOptions(){if(this.loadOptions)try{this.innerLoading=!0;const e=await this.loadOptions();this.asyncOptions=Array.isArray(e)?e:e.data||[],this.$emit("load-success",this.asyncOptions)}catch(e){console.error("加载选项数据失败:",e),this.$emit("load-error",e)}finally{this.innerLoading=!1}},async refresh(){await this.loadAsyncOptions()},change(e){this.$emit("change",1===arguments.length?e:arguments),this.$emit("input",e)},input(e){this.$emit("change",1===arguments.length?e:arguments),this.$emit("input",e)},visibleChange(e){this.$emit("visible-change",1===arguments.length?e:arguments),e&&this.loadOptions&&this.config.refreshOnOpen&&this.loadAsyncOptions()},removeTag(e){this.$emit("remove-tag",1===arguments.length?e:arguments)},clear(e){this.$emit("clear",1===arguments.length?e:arguments)},blur(e){this.$emit("blur",1===arguments.length?e:arguments)},focus(e){this.multiple&&this.searchNoReset(),this.$emit("blur",1===arguments.length?e:arguments)},searchNoReset(){this.$refs.selection.$refs.input.blur=()=>{this.filterData=this.loadOptions?this.asyncOptions:this.options},this.$refs.selection.$refs.input.onkeyup=()=>{this.filterData=this.loadOptions?this.asyncOptions:this.options,this.searchVal=this.$refs.selection.$refs.input.value;const e=this.loadOptions?this.asyncOptions:this.options;this.filterData=e.filter((e=>-1!==e[this.config.optionLabel].indexOf(this.searchVal)))}}}},ve=_e,ge=l(ve,fe,pe,!1,null,null,null),ye=ge.exports,be=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-picker wrapper"},[t("el-date-picker",{staticStyle:{width:"70%"},attrs:{"start-placeholder":e.config&&e.config.startPlaceholder||"开始时间","end-placeholder":e.config&&e.config.endPlaceholder||"结束时间","range-separator":e.config&&e.config.rangeSeparator||"-",size:e.config&&e.config.size||"mini",type:"daterange"},on:{input:e.handleChange},model:{value:e.value[e.config&&e.config.field],callback:function(t){e.$set(e.value,e.config&&e.config.field,t)},expression:"value[config && config.field]"}}),t("div",{staticClass:"btn"},e._l(e.shortcuts,(function(n){return t("span",{key:n.key,staticClass:"item",class:{item_active:n.key===e.active},on:{click:function(t){return e.handleClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})),0)],1)},we=[],ke={name:"ByDatePickerRange",props:{value:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},data(){return{shortcuts:[{label:"上月",start_time:q()().subtract(1,"months").startOf("month").format("YYYY-MM-DD"),end_time:q()().subtract(1,"months").endOf("month").format("YYYY-MM-DD"),key:"last_month"},{label:"昨天",start_time:q()().subtract(1,"days").format("YYYY-MM-DD"),end_time:q()().subtract(1,"days").format("YYYY-MM-DD"),key:"yesterday"},{label:"今天",start_time:q()().startOf("day").format("YYYY-MM-DD"),end_time:q()().startOf("day").format("YYYY-MM-DD"),key:"today"},{label:"本周",start_time:q()().startOf("week").format("YYYY-MM-DD"),end_time:q()().endOf("week").format("YYYY-MM-DD"),key:"week"},{label:"本月",start_time:q()().startOf("month").format("YYYY-MM-DD"),end_time:q()().endOf("month").format("YYYY-MM-DD"),key:"month"}],active:""}},mounted(){this.active=this.config.active||"today";const e=this.shortcuts.find((e=>e.key===this.active))||{};e.start_time&&e.end_time&&this.handleClick(e)},methods:{handleChange(e){e?this.$emit("input",e.map((e=>q()(e).format("YYYY-MM-DD")))):this.$emit("input",[]),this.active=""},handleClick(e){this.active=e.key,this.value[this.config.field]=[e.start_time,e.end_time],this.$emit("input",[e.start_time,e.end_time])}}},Me=ke,xe=l(Me,be,we,!1,null,null,null),Se=xe.exports,De=null,Le=null,Ce=null,Te="z-index-manage",Ye=null,Oe="z-index-style",Ee="m",je="s",Pe={m:1e3,s:1e3};function $e(){return De||"undefined"!==typeof document&&(De=document),De}function Ne(){return De&&!Le&&(Le=De.body||De.getElementsByTagName("body")[0]),Le}function Ie(){var e=0,t=$e();if(t){var n=Ne();if(n)for(var i=n.getElementsByTagName("*"),r=0;r<i.length;r++){var a=i[r];if(a&&a.style&&1===a.nodeType){var s=a.style.zIndex;s&&/^\d+$/.test(s)&&(e=Math.max(e,Number(s)))}}}return e}function He(){if(!Ye){var e=$e();e&&(Ye=e.getElementById(Oe),Ye||(Ye=e.createElement("style"),Ye.id=Oe,e.getElementsByTagName("head")[0].appendChild(Ye)))}return Ye}function Ae(){var e=He();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Re()+";"+t+"sub"+n+":"+Ge()+"}"}}function Fe(){if(!Ce){var e=$e();if(e&&(Ce=e.getElementById(Te),!Ce)){var t=Ne();t&&(Ce=e.createElement("div"),Ce.id=Te,Ce.style.display="none",t.appendChild(Ce),We(Pe.m),qe(Pe.s))}}return Ce}function ze(e){return function(t){if(t){t=Number(t),Pe[e]=t;var n=Fe();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Ae(),Pe[e]}}var We=ze(Ee);function Ve(e,t){return function(n){var i,r=Fe();if(r){var a=r.dataset?r.dataset[e]:r.getAttribute("data-"+e);a&&(i=Number(a))}return i||(i=Pe[e]),n?Number(n)<i?t():n:i}}var Re=Ve(Ee,Be);function Be(){return We(Re()+1)}var qe=ze(je),Ue=Ve(je,Ke);function Ge(){return Re()+Ue()}function Ke(){return qe(Ue()+1),Ge()}var Je={setCurrent:We,getCurrent:Re,getNext:Be,setSubCurrent:qe,getSubCurrent:Ge,getSubNext:Ke,getMax:Ie};Ae();var Xe=Je;const Ze={ByPager:c,ByTable:P,ByForm:ee,ByPageSearch:se,ByFoldSearch:he,BySelect:ye,ByDatePickerRange:Se,ByCustomDatePicker:J};Xe.setCurrent(99999);const Qe=e=>{Object.keys(Ze).forEach((t=>{e.component(t,Ze[t]),e.component(t.toLowerCase(),Ze[t])}))};"undefined"!==typeof window&&window.Vue&&Qe(window.Vue);var et={install:Qe},tt=et}(),r}()}));
|