@ecan-bi/datav 1.0.88 → 1.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +146 -48
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +145 -47
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +13 -17
- package/es/container/modal/Modal.js +1 -4
- package/es/container/modal/Modal.js.map +1 -1
- package/es/container/modal/index.js.map +1 -1
- package/es/container/modal/props.js +1 -1
- package/es/container/modal/props.js.map +1 -1
- package/es/graph/bar/Bar.js +33 -2
- package/es/graph/bar/Bar.js.map +1 -1
- package/es/graph/bar/index.js.map +1 -1
- package/es/graph/bar/props.js +1 -2
- package/es/graph/bar/props.js.map +1 -1
- package/es/graph/combo-graph/ComboGraph.js +44 -12
- package/es/graph/combo-graph/ComboGraph.js.map +1 -1
- package/es/graph/combo-graph/props.js +1 -1
- package/es/graph/combo-graph/props.js.map +1 -1
- package/es/graph/line/Line.js +37 -3
- package/es/graph/line/Line.js.map +1 -1
- package/es/graph/line/props.js +7 -6
- package/es/graph/line/props.js.map +1 -1
- package/es/graph/pie/Pie.js +22 -1
- package/es/graph/pie/Pie.js.map +1 -1
- package/es/graph/pie/props.js +1 -1
- package/es/graph/pie/props.js.map +1 -1
- package/es/graph/scatter/Scatter.js +10 -1
- package/es/graph/scatter/Scatter.js.map +1 -1
- package/es/graph/scatter/props.js +1 -1
- package/es/graph/scatter/props.js.map +1 -1
- package/es/hooks/useRequestData.js +1 -1
- package/es/hooks/useRequestData.js.map +1 -1
- package/es/hooks/useValueFormatter.js +2 -1
- package/es/hooks/useValueFormatter.js.map +1 -1
- package/es/hooks/useVariablesInText.js +32 -11
- package/es/hooks/useVariablesInText.js.map +1 -1
- package/es/setting/provider-config/ProviderConfig.js +3 -1
- package/es/setting/provider-config/ProviderConfig.js.map +1 -1
- package/es/table/table/Table.js +87 -28
- package/es/table/table/Table.js.map +1 -1
- package/es/table/table/index.js.map +1 -1
- package/es/table/table/props.js +1 -0
- package/es/table/table/props.js.map +1 -1
- package/es/text/text/Text.js +21 -1
- package/es/text/text/Text.js.map +1 -1
- package/es/text/text/props.js +4 -1
- package/es/text/text/props.js.map +1 -1
- package/lib/container/modal/Modal.js +1 -4
- package/lib/container/modal/Modal.js.map +1 -1
- package/lib/container/modal/index.js.map +1 -1
- package/lib/container/modal/props.js +1 -1
- package/lib/container/modal/props.js.map +1 -1
- package/lib/graph/bar/Bar.js +33 -2
- package/lib/graph/bar/Bar.js.map +1 -1
- package/lib/graph/bar/index.js.map +1 -1
- package/lib/graph/bar/props.js +1 -2
- package/lib/graph/bar/props.js.map +1 -1
- package/lib/graph/combo-graph/ComboGraph.js +44 -12
- package/lib/graph/combo-graph/ComboGraph.js.map +1 -1
- package/lib/graph/combo-graph/props.js +1 -1
- package/lib/graph/combo-graph/props.js.map +1 -1
- package/lib/graph/line/Line.js +37 -3
- package/lib/graph/line/Line.js.map +1 -1
- package/lib/graph/line/props.js +7 -6
- package/lib/graph/line/props.js.map +1 -1
- package/lib/graph/pie/Pie.js +22 -1
- package/lib/graph/pie/Pie.js.map +1 -1
- package/lib/graph/pie/props.js +1 -1
- package/lib/graph/pie/props.js.map +1 -1
- package/lib/graph/scatter/Scatter.js +10 -1
- package/lib/graph/scatter/Scatter.js.map +1 -1
- package/lib/graph/scatter/props.js +1 -1
- package/lib/graph/scatter/props.js.map +1 -1
- package/lib/hooks/useRequestData.js +1 -1
- package/lib/hooks/useRequestData.js.map +1 -1
- package/lib/hooks/useValueFormatter.js +2 -1
- package/lib/hooks/useValueFormatter.js.map +1 -1
- package/lib/hooks/useVariablesInText.js +33 -11
- package/lib/hooks/useVariablesInText.js.map +1 -1
- package/lib/setting/provider-config/ProviderConfig.js +3 -1
- package/lib/setting/provider-config/ProviderConfig.js.map +1 -1
- package/lib/style.css +6503 -6503
- package/lib/table/table/Table.js +87 -28
- package/lib/table/table/Table.js.map +1 -1
- package/lib/table/table/index.js.map +1 -1
- package/lib/table/table/props.js +1 -0
- package/lib/table/table/props.js.map +1 -1
- package/lib/text/text/Text.js +21 -1
- package/lib/text/text/Text.js.map +1 -1
- package/lib/text/text/props.js +4 -1
- package/lib/text/text/props.js.map +1 -1
- package/package.json +1 -1
- package/types/container/modal/index.d.ts +1 -1
- package/types/control/select/Select.vue.d.ts +1 -0
- package/types/control/select/index.d.ts +1 -0
- package/types/table/table/Table.vue.d.ts +124 -5
- package/types/table/table/index.d.ts +125 -6
- package/types/table/table/props.d.ts +63 -0
- package/types/text/text/Text.vue.d.ts +66 -0
- package/types/text/text/index.d.ts +66 -0
- package/types/text/text/props.d.ts +36 -0
- package/types/hooks/usePickEchartsData.d.ts +0 -2
- package/types/hooks/useTooltipFormatter.d.ts +0 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.0.
|
|
1
|
+
/*! @ecan-bi/datav@1.0.90 */
|
|
2
2
|
(function(global, factory) {
|
|
3
3
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("echarts/core"), require("resize-detector"), require("ant-design-vue"), require("ant-design-vue/es/spin/style"), require("ant-design-vue/es/skeleton/style"), require("lodash-es"), require("axios"), require("mitt"), require("dayjs"), require("ant-design-vue/es/progress/style"), require("ant-design-vue/es/input/style"), require("ant-design-vue/es/date-picker/style"), require("ant-design-vue/es/date-picker/locale/zh_CN"), require("ant-design-vue/es/select/style"), require("ant-design-vue/es/button/style"), require("ant-design-vue/es/checkbox/style"), require("echarts/renderers"), require("echarts/charts"), require("echarts/components"), require("echarts"), require("ant-design-vue/es/modal/style"), require("ant-design-vue/es/table/style")) : typeof define === "function" && define.amd ? define(["exports", "vue", "echarts/core", "resize-detector", "ant-design-vue", "ant-design-vue/es/spin/style", "ant-design-vue/es/skeleton/style", "lodash-es", "axios", "mitt", "dayjs", "ant-design-vue/es/progress/style", "ant-design-vue/es/input/style", "ant-design-vue/es/date-picker/style", "ant-design-vue/es/date-picker/locale/zh_CN", "ant-design-vue/es/select/style", "ant-design-vue/es/button/style", "ant-design-vue/es/checkbox/style", "echarts/renderers", "echarts/charts", "echarts/components", "echarts", "ant-design-vue/es/modal/style", "ant-design-vue/es/table/style"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@ecan/bi-datav"] = {}, global.vue, global["echarts/core"], global["resize-detector"], global["ant-design-vue"], null, null, global["lodash-es"], global.axios, global.mitt, global.dayjs, null, null, null, global["ant-design-vue/es/date-picker/locale/zh_CN"], null, null, null, global["echarts/renderers"], global["echarts/charts"], global["echarts/components"], global.echarts));
|
|
4
4
|
})(this, function(exports2, vue, core, resizeDetector, antDesignVue, style$1, style$2, lodashEs, axios, mitt, dayjs, style$3, style$4, style$5, locale, style$6, style$7, style$8, renderers, charts, components$1, echarts) {
|
|
@@ -1703,7 +1703,6 @@
|
|
|
1703
1703
|
if (useSpace) {
|
|
1704
1704
|
formatter = formatter == null ? void 0 : formatter.replace(/\s{2,}?/g, " ");
|
|
1705
1705
|
}
|
|
1706
|
-
console.log("formatter", formatter);
|
|
1707
1706
|
return formatter;
|
|
1708
1707
|
};
|
|
1709
1708
|
const useRequestData = (props2, callBack = () => {
|
|
@@ -1756,7 +1755,7 @@
|
|
|
1756
1755
|
_params[key] = useVariablesInText(value);
|
|
1757
1756
|
}
|
|
1758
1757
|
});
|
|
1759
|
-
_params = { ...window.requestParams, ..._params, ...params };
|
|
1758
|
+
_params = { ...window.config.requestParams, ..._params, ...params };
|
|
1760
1759
|
let urlParams = "";
|
|
1761
1760
|
const keys = Object.keys(_params);
|
|
1762
1761
|
const last = keys.length - 1;
|
|
@@ -2622,7 +2621,6 @@
|
|
|
2622
2621
|
setTheme();
|
|
2623
2622
|
});
|
|
2624
2623
|
const contextRequestUrl = vue.computed(() => {
|
|
2625
|
-
console.log("props.contextRequestUrl", props2.contextRequestUrl);
|
|
2626
2624
|
return useVariablesInText(props2.contextRequestUrl);
|
|
2627
2625
|
});
|
|
2628
2626
|
const pageMode = vue.computed(() => props2.pageMode);
|
|
@@ -2776,7 +2774,10 @@
|
|
|
2776
2774
|
variableFontSize: "14px",
|
|
2777
2775
|
data: {},
|
|
2778
2776
|
variableDefaultValue: "0",
|
|
2779
|
-
format: ""
|
|
2777
|
+
format: "",
|
|
2778
|
+
target: "self",
|
|
2779
|
+
href: "",
|
|
2780
|
+
linkPage: ""
|
|
2780
2781
|
};
|
|
2781
2782
|
const textComponentProps = transformToComponentProps(textProps);
|
|
2782
2783
|
const textEvents = ["refreshData", "click"];
|
|
@@ -2876,6 +2877,24 @@
|
|
|
2876
2877
|
});
|
|
2877
2878
|
const emitEvent = useEmitEvent(props2);
|
|
2878
2879
|
const click = emitEvent("click", () => {
|
|
2880
|
+
if (!props2.linkPage && !props2.href)
|
|
2881
|
+
return;
|
|
2882
|
+
const linkPage = props2.linkPage || "";
|
|
2883
|
+
const pageUrl = usePageUrl(vue.unref(pageMode), linkPage);
|
|
2884
|
+
const href = props2.href;
|
|
2885
|
+
let url = href || pageUrl;
|
|
2886
|
+
url = useVariablesInText(url);
|
|
2887
|
+
const target = props2.target;
|
|
2888
|
+
if (target == null || target === "")
|
|
2889
|
+
return;
|
|
2890
|
+
if (target !== "event") {
|
|
2891
|
+
window.open(url, "_" + target);
|
|
2892
|
+
} else {
|
|
2893
|
+
window.parent.postMessage({
|
|
2894
|
+
type: "openPage",
|
|
2895
|
+
url: href
|
|
2896
|
+
}, "*");
|
|
2897
|
+
}
|
|
2879
2898
|
});
|
|
2880
2899
|
return {
|
|
2881
2900
|
style: style2,
|
|
@@ -2902,7 +2921,7 @@
|
|
|
2902
2921
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2903
2922
|
}, null, 12, _hoisted_1$7));
|
|
2904
2923
|
}
|
|
2905
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-
|
|
2924
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-604c9a14"]]);
|
|
2906
2925
|
const EcanText = withInstall(Text);
|
|
2907
2926
|
const ScrollText_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2908
2927
|
const _sfc_main$l = vue.defineComponent({
|
|
@@ -3622,15 +3641,23 @@
|
|
|
3622
3641
|
}
|
|
3623
3642
|
return !!((value == null ? void 0 : value.toLowerCase().indexOf(input == null ? void 0 : input.toLowerCase())) >= 0);
|
|
3624
3643
|
};
|
|
3644
|
+
const loading = vue.ref(false);
|
|
3625
3645
|
const handleRequestData = async () => {
|
|
3626
3646
|
var _a2, _b2;
|
|
3627
3647
|
if (props2.dataType !== "request" || vue.unref(pageMode) === "design")
|
|
3628
3648
|
return;
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3649
|
+
loading.value = true;
|
|
3650
|
+
try {
|
|
3651
|
+
const res = await requestData();
|
|
3652
|
+
options.value = ((_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.rows) || [];
|
|
3653
|
+
const firstOption = vue.unref(options)[0];
|
|
3654
|
+
if (props2.value === "" && firstOption != null) {
|
|
3655
|
+
myValue.value = firstOption[dataFieldNames.value];
|
|
3656
|
+
}
|
|
3657
|
+
} catch (e) {
|
|
3658
|
+
console.error(e);
|
|
3659
|
+
} finally {
|
|
3660
|
+
loading.value = false;
|
|
3634
3661
|
}
|
|
3635
3662
|
};
|
|
3636
3663
|
const { getGlobalModel, setGlobalModel } = vue.inject(GLOBAL_MODEL, {
|
|
@@ -3660,7 +3687,8 @@
|
|
|
3660
3687
|
myValue,
|
|
3661
3688
|
selectChange,
|
|
3662
3689
|
options,
|
|
3663
|
-
filterOption
|
|
3690
|
+
filterOption,
|
|
3691
|
+
loading
|
|
3664
3692
|
};
|
|
3665
3693
|
}
|
|
3666
3694
|
});
|
|
@@ -3679,11 +3707,12 @@
|
|
|
3679
3707
|
"field-names": _ctx.dataFieldNames,
|
|
3680
3708
|
"show-search": "",
|
|
3681
3709
|
"filter-option": _ctx.filterOption,
|
|
3682
|
-
onChange: _ctx.selectChange
|
|
3683
|
-
|
|
3710
|
+
onChange: _ctx.selectChange,
|
|
3711
|
+
loading: _ctx.loading
|
|
3712
|
+
}, null, 8, ["value", "options", "getPopupContainer", "field-names", "filter-option", "onChange", "loading"])
|
|
3684
3713
|
], 4);
|
|
3685
3714
|
}
|
|
3686
|
-
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-
|
|
3715
|
+
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-7ae9493f"]]);
|
|
3687
3716
|
const EcanSelect = withInstall(Select);
|
|
3688
3717
|
const rangePickerProps = {
|
|
3689
3718
|
...props,
|
|
@@ -6199,7 +6228,7 @@
|
|
|
6199
6228
|
keyName: "\u5F39\u7A97",
|
|
6200
6229
|
componentList: [],
|
|
6201
6230
|
fullModal: false,
|
|
6202
|
-
destroyOnClose:
|
|
6231
|
+
destroyOnClose: true,
|
|
6203
6232
|
position: "default"
|
|
6204
6233
|
};
|
|
6205
6234
|
const modalComponentProps = transformToComponentProps(modalProps);
|
|
@@ -6311,9 +6340,6 @@
|
|
|
6311
6340
|
width: _ctx.isFullModal || _ctx.isFullWidth ? "100%" : _ctx.modalWith,
|
|
6312
6341
|
destroyOnClose: _ctx.destroyOnClose,
|
|
6313
6342
|
style: vue.normalizeStyle(_ctx.modalStyle),
|
|
6314
|
-
bodyStyle: {
|
|
6315
|
-
background: "red"
|
|
6316
|
-
},
|
|
6317
6343
|
onOk: _ctx.onOk,
|
|
6318
6344
|
onCancel: _ctx.onCancel
|
|
6319
6345
|
}, vue.createSlots({
|
|
@@ -6352,7 +6378,7 @@
|
|
|
6352
6378
|
} : void 0
|
|
6353
6379
|
]), 1032, ["getContainer", "wrapClassName", "visible", "width", "destroyOnClose", "style", "onOk", "onCancel"]);
|
|
6354
6380
|
}
|
|
6355
|
-
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
6381
|
+
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-780a06e1"]]);
|
|
6356
6382
|
const EcanModal = withInstall(Modal);
|
|
6357
6383
|
const tabsProps = {
|
|
6358
6384
|
...props,
|
|
@@ -6557,13 +6583,16 @@
|
|
|
6557
6583
|
width: "400px",
|
|
6558
6584
|
height: "240px",
|
|
6559
6585
|
bordered: false,
|
|
6586
|
+
headerFontSize: "14px",
|
|
6560
6587
|
fontSize: "14px",
|
|
6561
6588
|
isUseSeq: false,
|
|
6562
6589
|
size: "default",
|
|
6590
|
+
headerFontWeight: 400,
|
|
6563
6591
|
fontWeight: 400,
|
|
6564
6592
|
columnsFixedNum: 0,
|
|
6565
6593
|
scrollX: 0,
|
|
6566
6594
|
paginationShow: true,
|
|
6595
|
+
isReverse: false,
|
|
6567
6596
|
simple: false,
|
|
6568
6597
|
headerCellBackgroundColor: "",
|
|
6569
6598
|
cellBackgroundColor: "",
|
|
@@ -6651,27 +6680,34 @@
|
|
|
6651
6680
|
});
|
|
6652
6681
|
const x = vue.computed(() => props2.scrollX);
|
|
6653
6682
|
const y = vue.computed(() => parseFloat(props2.height) - vue.unref(splitY));
|
|
6654
|
-
const myColumns = vue.
|
|
6655
|
-
|
|
6683
|
+
const myColumns = vue.ref([]);
|
|
6684
|
+
const myDataSource = vue.ref(props2.data);
|
|
6685
|
+
const tableColumns = vue.ref([]);
|
|
6686
|
+
const tableDataSource = vue.ref([]);
|
|
6687
|
+
const total = vue.ref(0);
|
|
6688
|
+
const pageNum = vue.ref(1);
|
|
6689
|
+
const pageSize = vue.computed(() => props2.paginationPageSize);
|
|
6690
|
+
const handleColumns = (columns = []) => {
|
|
6691
|
+
let _columns = [];
|
|
6656
6692
|
const isUseSeq = props2.isUseSeq;
|
|
6657
6693
|
if (isUseSeq) {
|
|
6658
|
-
|
|
6694
|
+
_columns.push({
|
|
6659
6695
|
title: "\u5E8F\u53F7",
|
|
6660
6696
|
dataIndex: "SEQ"
|
|
6661
6697
|
});
|
|
6662
6698
|
}
|
|
6663
|
-
|
|
6699
|
+
_columns = _columns.concat(lodashEs.cloneDeep(columns));
|
|
6664
6700
|
if (props2.isUseAction) {
|
|
6665
|
-
|
|
6701
|
+
_columns.push({
|
|
6666
6702
|
title: "\u64CD\u4F5C",
|
|
6667
6703
|
dataIndex: "ACTION",
|
|
6668
6704
|
width: props2.actionColumnWidth
|
|
6669
6705
|
});
|
|
6670
6706
|
}
|
|
6671
|
-
const len =
|
|
6707
|
+
const len = _columns.length;
|
|
6672
6708
|
const columnsFixedNum = props2.columnsFixedNum;
|
|
6673
6709
|
for (let i = 0; i < len; i++) {
|
|
6674
|
-
const column =
|
|
6710
|
+
const column = _columns[i];
|
|
6675
6711
|
if (i < columnsFixedNum) {
|
|
6676
6712
|
column.fixed = "left";
|
|
6677
6713
|
} else {
|
|
@@ -6700,16 +6736,73 @@
|
|
|
6700
6736
|
}
|
|
6701
6737
|
});
|
|
6702
6738
|
}
|
|
6703
|
-
|
|
6739
|
+
myColumns.value = _columns;
|
|
6740
|
+
};
|
|
6741
|
+
vue.watch(() => [
|
|
6742
|
+
props2.columns,
|
|
6743
|
+
props2.isUseSeq,
|
|
6744
|
+
props2.isUseAction,
|
|
6745
|
+
props2.columnsFixedNum,
|
|
6746
|
+
props2.actionColumnWidth,
|
|
6747
|
+
props2.headerCellBackgroundColor,
|
|
6748
|
+
props2.cellBackgroundColor,
|
|
6749
|
+
props2.borderColor
|
|
6750
|
+
], () => {
|
|
6751
|
+
handleColumns(props2.columns);
|
|
6752
|
+
}, {
|
|
6753
|
+
immediate: true,
|
|
6754
|
+
deep: true
|
|
6704
6755
|
});
|
|
6705
|
-
const total = vue.ref(0);
|
|
6706
|
-
const pageNum = vue.ref(1);
|
|
6707
|
-
const pageSize = vue.computed(() => props2.paginationPageSize);
|
|
6708
|
-
const dataSource = vue.ref(props2.data);
|
|
6709
6756
|
vue.watch(() => [props2.data, props2.dataType], ([data, dataType]) => {
|
|
6710
6757
|
if (dataType !== "static")
|
|
6711
6758
|
return;
|
|
6712
|
-
|
|
6759
|
+
myDataSource.value = data;
|
|
6760
|
+
});
|
|
6761
|
+
const handleReverseTable = (columns, dataSource) => {
|
|
6762
|
+
const firstColumns = columns[0];
|
|
6763
|
+
const _columns = [{
|
|
6764
|
+
title: firstColumns.title,
|
|
6765
|
+
dataIndex: "col0",
|
|
6766
|
+
key: "col0",
|
|
6767
|
+
align: "center"
|
|
6768
|
+
}];
|
|
6769
|
+
for (let i = 0; i < dataSource.length; i++) {
|
|
6770
|
+
const data = dataSource[i];
|
|
6771
|
+
const dataIndex = "col" + (i + 1);
|
|
6772
|
+
_columns.push({
|
|
6773
|
+
title: data[firstColumns.dataIndex],
|
|
6774
|
+
dataIndex,
|
|
6775
|
+
key: dataIndex,
|
|
6776
|
+
align: "center"
|
|
6777
|
+
});
|
|
6778
|
+
}
|
|
6779
|
+
const _dataSource = [];
|
|
6780
|
+
for (let i = 1; i < columns.length; i++) {
|
|
6781
|
+
const column = columns[i];
|
|
6782
|
+
const _data = { col0: column.title };
|
|
6783
|
+
for (let j = 0; j < dataSource.length; j++) {
|
|
6784
|
+
const data = dataSource[j];
|
|
6785
|
+
_data[`col${j + 1}`] = data[column.dataIndex];
|
|
6786
|
+
}
|
|
6787
|
+
_dataSource.push(_data);
|
|
6788
|
+
}
|
|
6789
|
+
return {
|
|
6790
|
+
columns: _columns,
|
|
6791
|
+
dataSource: _dataSource
|
|
6792
|
+
};
|
|
6793
|
+
};
|
|
6794
|
+
vue.watch(() => [props2.isReverse, myColumns.value, myDataSource.value], () => {
|
|
6795
|
+
if (props2.isReverse) {
|
|
6796
|
+
const { columns, dataSource } = handleReverseTable(vue.unref(myColumns), vue.unref(myDataSource));
|
|
6797
|
+
tableColumns.value = columns;
|
|
6798
|
+
tableDataSource.value = dataSource;
|
|
6799
|
+
} else {
|
|
6800
|
+
tableColumns.value = vue.unref(myColumns);
|
|
6801
|
+
tableDataSource.value = vue.unref(myDataSource);
|
|
6802
|
+
}
|
|
6803
|
+
}, {
|
|
6804
|
+
deep: true,
|
|
6805
|
+
immediate: true
|
|
6713
6806
|
});
|
|
6714
6807
|
const orderCondition = vue.ref(void 0);
|
|
6715
6808
|
const requestData = useRequestData(props2);
|
|
@@ -6733,7 +6826,7 @@
|
|
|
6733
6826
|
const res = await requestData(params);
|
|
6734
6827
|
const { rows = [], total: tableTotal = 0 } = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) || {};
|
|
6735
6828
|
total.value = tableTotal;
|
|
6736
|
-
|
|
6829
|
+
myDataSource.value = rows;
|
|
6737
6830
|
} catch (e) {
|
|
6738
6831
|
console.error(e);
|
|
6739
6832
|
} finally {
|
|
@@ -6806,12 +6899,10 @@
|
|
|
6806
6899
|
getGlobalModel: (key) => void 0,
|
|
6807
6900
|
setGlobalModel: (key, value) => void 0
|
|
6808
6901
|
});
|
|
6809
|
-
const dataColumns =
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
});
|
|
6814
|
-
dataSource.value = rows;
|
|
6902
|
+
const handleIndicatorDataset = (dataColumns = [], dataRows = []) => {
|
|
6903
|
+
const _columns = dataColumns.map((column) => ({ title: column, dataIndex: column, key: column }));
|
|
6904
|
+
handleColumns(_columns);
|
|
6905
|
+
myDataSource.value = dataRows;
|
|
6815
6906
|
};
|
|
6816
6907
|
const indicatorData = useIndicatorData(props2);
|
|
6817
6908
|
const handleIndicatorData = async () => {
|
|
@@ -6872,7 +6963,7 @@
|
|
|
6872
6963
|
return [];
|
|
6873
6964
|
const start = (vue.unref(pageNum) - 1) * vue.unref(pageSize);
|
|
6874
6965
|
const end = start + vue.unref(pageSize);
|
|
6875
|
-
const records = vue.unref(
|
|
6966
|
+
const records = vue.unref(myDataSource).slice(start, end);
|
|
6876
6967
|
for (let i = 0; i < records.length; i++) {
|
|
6877
6968
|
const record = records[i];
|
|
6878
6969
|
for (let j = 0; j < summaryList2.length; j++) {
|
|
@@ -6918,15 +7009,14 @@
|
|
|
6918
7009
|
return {
|
|
6919
7010
|
x,
|
|
6920
7011
|
y,
|
|
6921
|
-
myColumns,
|
|
6922
7012
|
style: style2,
|
|
6923
7013
|
customRow,
|
|
6924
7014
|
pagination,
|
|
6925
7015
|
formatFn,
|
|
6926
7016
|
contrastClass,
|
|
6927
7017
|
tableChange,
|
|
6928
|
-
|
|
6929
|
-
|
|
7018
|
+
tableDataSource,
|
|
7019
|
+
tableColumns,
|
|
6930
7020
|
summaryList,
|
|
6931
7021
|
loading,
|
|
6932
7022
|
onTouchHrefEvent,
|
|
@@ -6957,8 +7047,8 @@
|
|
|
6957
7047
|
style: {
|
|
6958
7048
|
height: "100%"
|
|
6959
7049
|
},
|
|
6960
|
-
columns: _ctx.
|
|
6961
|
-
"data-source": _ctx.
|
|
7050
|
+
columns: _ctx.tableColumns,
|
|
7051
|
+
"data-source": _ctx.tableDataSource,
|
|
6962
7052
|
bordered: _ctx.bordered,
|
|
6963
7053
|
size: _ctx.size,
|
|
6964
7054
|
customRow: _ctx.customRow,
|
|
@@ -6966,6 +7056,14 @@
|
|
|
6966
7056
|
pagination: _ctx.pagination,
|
|
6967
7057
|
onChange: _ctx.tableChange
|
|
6968
7058
|
}, {
|
|
7059
|
+
headerCell: vue.withCtx(({ column }) => [
|
|
7060
|
+
vue.createElementVNode("span", {
|
|
7061
|
+
style: vue.normalizeStyle({
|
|
7062
|
+
fontSize: _ctx.headerFontSize,
|
|
7063
|
+
fontWeight: _ctx.headerFontWeight
|
|
7064
|
+
})
|
|
7065
|
+
}, vue.toDisplayString(column.title), 5)
|
|
7066
|
+
]),
|
|
6969
7067
|
bodyCell: vue.withCtx(({ column, index: index2, text, record }) => [
|
|
6970
7068
|
column.dataIndex === "SEQ" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
6971
7069
|
key: 0,
|
|
@@ -7038,7 +7136,7 @@
|
|
|
7038
7136
|
}, 8, ["loading"])
|
|
7039
7137
|
], 4);
|
|
7040
7138
|
}
|
|
7041
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7139
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-32101ced"]]);
|
|
7042
7140
|
const EcanTable = withInstall(Table);
|
|
7043
7141
|
const mapProps = {
|
|
7044
7142
|
...props,
|