@ecan-bi/datav 1.1.4 → 1.1.6
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 +167 -40
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +166 -39
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +50 -12
- package/package.json +1 -1
- package/types/map/map/index.d.ts +1 -1
- package/types/table/table/Table.vue.d.ts +44 -6
- package/types/table/table/index.d.ts +44 -6
- package/types/table/table/props.d.ts +21 -0
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.6 */
|
|
2
2
|
var _a, _b, _c, _d;
|
|
3
|
-
import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, onBeforeUnmount, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
|
|
3
|
+
import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, onBeforeUnmount, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, reactive, createTextVNode, withDirectives, vShow } from "vue";
|
|
4
4
|
import { throttle, init, use, registerMap } from "echarts/core";
|
|
5
5
|
import { addListener, removeListener } from "resize-detector";
|
|
6
6
|
import { Spin as Spin$1, Skeleton as Skeleton$1, message, Progress, Input as Input$1, DatePicker as DatePicker$1, Select as Select$1, RangePicker as RangePicker$1, Button as Button$1, CheckboxGroup, Modal as Modal$1, Table as Table$1, TableSummary, TableSummaryRow, TableSummaryCell } from "ant-design-vue";
|
|
@@ -1555,7 +1555,7 @@ const REQUEST_MODEL = "REQUEST_MODEL";
|
|
|
1555
1555
|
const GLOBAL_TOKEN = "GLOBAL_TOKEN";
|
|
1556
1556
|
const REFRESH_PAGE = "REFRESH_PAGE";
|
|
1557
1557
|
const INDICATOR_URL = (_a = window == null ? void 0 : window.config) == null ? void 0 : _a.indicatorURL;
|
|
1558
|
-
|
|
1558
|
+
((_b = window == null ? void 0 : window.config) == null ? void 0 : _b.uploadPath) || "/api";
|
|
1559
1559
|
const BASE_URL = ((_c = window == null ? void 0 : window.config) == null ? void 0 : _c.routerBaseURL) || "./";
|
|
1560
1560
|
const ERD_URL = ((_d = window == null ? void 0 : window.config) == null ? void 0 : _d.erdURL) || "";
|
|
1561
1561
|
const useOnEvent = (props2, events) => {
|
|
@@ -1836,13 +1836,14 @@ const useTransformChartDataByAttrKey = (data = [], dataFieldNames) => {
|
|
|
1836
1836
|
};
|
|
1837
1837
|
};
|
|
1838
1838
|
const useImagePath = (path, isFormat = false) => {
|
|
1839
|
+
var _a2;
|
|
1839
1840
|
if (!path)
|
|
1840
1841
|
return path;
|
|
1841
1842
|
let imagePath = "";
|
|
1842
1843
|
if (path == null ? void 0 : path.includes("://")) {
|
|
1843
1844
|
imagePath = path;
|
|
1844
1845
|
} else {
|
|
1845
|
-
imagePath =
|
|
1846
|
+
imagePath = ((_a2 = window == null ? void 0 : window.config) == null ? void 0 : _a2.uploadPath) + path;
|
|
1846
1847
|
}
|
|
1847
1848
|
if (isFormat) {
|
|
1848
1849
|
imagePath = `url(${imagePath})`;
|
|
@@ -2823,7 +2824,6 @@ const _sfc_main$n = defineComponent({
|
|
|
2823
2824
|
let usedVariable = data[v];
|
|
2824
2825
|
if (usedVariable != null) {
|
|
2825
2826
|
const format = props2.format;
|
|
2826
|
-
console.log("format", format);
|
|
2827
2827
|
if (format === "percentage") {
|
|
2828
2828
|
usedVariable = +usedVariable;
|
|
2829
2829
|
if (!isNaN(usedVariable)) {
|
|
@@ -2837,7 +2837,6 @@ const _sfc_main$n = defineComponent({
|
|
|
2837
2837
|
text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${0}%</span>`);
|
|
2838
2838
|
}
|
|
2839
2839
|
} else if (format === "percent") {
|
|
2840
|
-
console.log("format", format);
|
|
2841
2840
|
usedVariable = +usedVariable;
|
|
2842
2841
|
if (!isNaN(usedVariable)) {
|
|
2843
2842
|
usedVariable = (usedVariable * 100).toFixed(2);
|
|
@@ -2925,7 +2924,7 @@ const _sfc_main$n = defineComponent({
|
|
|
2925
2924
|
};
|
|
2926
2925
|
}
|
|
2927
2926
|
});
|
|
2928
|
-
const
|
|
2927
|
+
const Text_vue_vue_type_style_index_0_scoped_445a06d8_lang = "";
|
|
2929
2928
|
const _hoisted_1$8 = ["innerHTML"];
|
|
2930
2929
|
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2931
2930
|
const _component_skeleton = resolveComponent("skeleton");
|
|
@@ -2943,7 +2942,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2943
2942
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2944
2943
|
}, null, 12, _hoisted_1$8));
|
|
2945
2944
|
}
|
|
2946
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
2945
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-445a06d8"]]);
|
|
2947
2946
|
const EcanText = withInstall(Text);
|
|
2948
2947
|
const _sfc_main$m = defineComponent({
|
|
2949
2948
|
name: "EcanScrollText",
|
|
@@ -3160,11 +3159,11 @@ const _hoisted_3$2 = {
|
|
|
3160
3159
|
key: 1,
|
|
3161
3160
|
class: "ecan-list-content"
|
|
3162
3161
|
};
|
|
3163
|
-
const _hoisted_4$
|
|
3162
|
+
const _hoisted_4$2 = {
|
|
3164
3163
|
key: 0,
|
|
3165
3164
|
class: "ranking"
|
|
3166
3165
|
};
|
|
3167
|
-
const _hoisted_5$
|
|
3166
|
+
const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "icon" }, null, -1));
|
|
3168
3167
|
const _hoisted_6$1 = { class: "sort" };
|
|
3169
3168
|
const _hoisted_7$1 = {
|
|
3170
3169
|
key: 2,
|
|
@@ -3225,8 +3224,8 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3225
3224
|
key: item.id || i,
|
|
3226
3225
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
3227
3226
|
}, [
|
|
3228
|
-
_ctx.useRanking ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
3229
|
-
_hoisted_5$
|
|
3227
|
+
_ctx.useRanking ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
3228
|
+
_hoisted_5$2,
|
|
3230
3229
|
createElementVNode("div", _hoisted_6$1, " Top " + toDisplayString(i + 1), 1)
|
|
3231
3230
|
])) : createCommentVNode("", true),
|
|
3232
3231
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (column) => {
|
|
@@ -6220,8 +6219,8 @@ const _withScopeId = (n) => (pushScopeId("data-v-f3fc1305"), n = n(), popScopeId
|
|
|
6220
6219
|
const _hoisted_1$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "top-left border-item" }, null, -1));
|
|
6221
6220
|
const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "top-right border-item" }, null, -1));
|
|
6222
6221
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
|
|
6223
|
-
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
|
|
6224
|
-
const _hoisted_5 = { class: "title-item-wrapper" };
|
|
6222
|
+
const _hoisted_4$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
|
|
6223
|
+
const _hoisted_5$1 = { class: "title-item-wrapper" };
|
|
6225
6224
|
const _hoisted_6 = { class: "title-item" };
|
|
6226
6225
|
const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("img", {
|
|
6227
6226
|
class: "title-decoration-left",
|
|
@@ -6256,7 +6255,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6256
6255
|
_hoisted_1$5,
|
|
6257
6256
|
_hoisted_2$1,
|
|
6258
6257
|
_hoisted_3$1,
|
|
6259
|
-
_hoisted_4
|
|
6258
|
+
_hoisted_4$1
|
|
6260
6259
|
], 64)) : createCommentVNode("", true)
|
|
6261
6260
|
], 4)) : createCommentVNode("", true),
|
|
6262
6261
|
_ctx.mode === "top-title" ? (openBlock(), createElementBlock("div", {
|
|
@@ -6264,7 +6263,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6264
6263
|
class: "top-title",
|
|
6265
6264
|
style: normalizeStyle(_ctx.borderStyle)
|
|
6266
6265
|
}, [
|
|
6267
|
-
createElementVNode("div", _hoisted_5, [
|
|
6266
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
6268
6267
|
createElementVNode("div", _hoisted_6, [
|
|
6269
6268
|
_hoisted_7,
|
|
6270
6269
|
createElementVNode("div", _hoisted_8, toDisplayString(_ctx.title), 1),
|
|
@@ -6735,6 +6734,7 @@ const tableProps = {
|
|
|
6735
6734
|
paginationPageSize: 10,
|
|
6736
6735
|
isUseAction: false,
|
|
6737
6736
|
clickHighlight: false,
|
|
6737
|
+
filterDropdownHeight: "200px",
|
|
6738
6738
|
actionList: [{
|
|
6739
6739
|
title: "",
|
|
6740
6740
|
href: "",
|
|
@@ -6780,6 +6780,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
6780
6780
|
name: "EcanTable",
|
|
6781
6781
|
components: {
|
|
6782
6782
|
Skeleton,
|
|
6783
|
+
AInput: Input$1,
|
|
6784
|
+
ACheckboxGroup: CheckboxGroup,
|
|
6783
6785
|
ATable: Table$1,
|
|
6784
6786
|
ATableSummary: TableSummary,
|
|
6785
6787
|
ATableSummaryRow: TableSummaryRow,
|
|
@@ -6820,6 +6822,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
6820
6822
|
const total = ref(0);
|
|
6821
6823
|
const pageNum = ref(1);
|
|
6822
6824
|
const pageSize = computed(() => props2.paginationPageSize);
|
|
6825
|
+
const filterDataIndexList = reactive([]);
|
|
6823
6826
|
const handleChildrenColumns = (_columns = []) => {
|
|
6824
6827
|
if (Array.isArray(_columns) && _columns.length > 0) {
|
|
6825
6828
|
const len = _columns.length;
|
|
@@ -6835,8 +6838,16 @@ const _sfc_main$1 = defineComponent({
|
|
|
6835
6838
|
cellAlign = "center",
|
|
6836
6839
|
cellColor,
|
|
6837
6840
|
dataIndex,
|
|
6838
|
-
title
|
|
6841
|
+
title,
|
|
6842
|
+
tableFilter
|
|
6839
6843
|
} = column;
|
|
6844
|
+
if (tableFilter) {
|
|
6845
|
+
filterDataIndexList.push(dataIndex);
|
|
6846
|
+
column.filterOptionsInputValue = "";
|
|
6847
|
+
column.filterCheckboxGroupValue = [];
|
|
6848
|
+
column.customFilterDropdown = true;
|
|
6849
|
+
column.onFilter = (value, record) => record[dataIndex].toString().toLowerCase().includes(value.toLowerCase());
|
|
6850
|
+
}
|
|
6840
6851
|
column.customCell = (record, rowIndex) => ({
|
|
6841
6852
|
style: {
|
|
6842
6853
|
textAlign: cellAlign,
|
|
@@ -6903,14 +6914,48 @@ const _sfc_main$1 = defineComponent({
|
|
|
6903
6914
|
}, {
|
|
6904
6915
|
immediate: true
|
|
6905
6916
|
});
|
|
6917
|
+
const allFilterOptions = ref({});
|
|
6918
|
+
const handleFilterCheckboxOptions = (dataSource) => {
|
|
6919
|
+
if (Array.isArray(dataSource)) {
|
|
6920
|
+
const dataLen = dataSource.length;
|
|
6921
|
+
const keys = filterDataIndexList;
|
|
6922
|
+
const keysLen = keys.length;
|
|
6923
|
+
const filterOptionsMap = {};
|
|
6924
|
+
for (let i = 0; i < dataLen; i++) {
|
|
6925
|
+
const record = dataSource[i];
|
|
6926
|
+
for (let j = 0; j < keysLen; j++) {
|
|
6927
|
+
const key = keys[j];
|
|
6928
|
+
if (filterOptionsMap[key]) {
|
|
6929
|
+
filterOptionsMap[key].add(record[key]);
|
|
6930
|
+
} else {
|
|
6931
|
+
const set = /* @__PURE__ */ new Set();
|
|
6932
|
+
set.add(record[key]);
|
|
6933
|
+
filterOptionsMap[key] = set;
|
|
6934
|
+
}
|
|
6935
|
+
}
|
|
6936
|
+
}
|
|
6937
|
+
const _allFilterOptions = {};
|
|
6938
|
+
for (const key in filterOptionsMap) {
|
|
6939
|
+
if (Object.prototype.hasOwnProperty.call(filterOptionsMap, key)) {
|
|
6940
|
+
const optionsSet = filterOptionsMap[key];
|
|
6941
|
+
const options = Array.from(optionsSet);
|
|
6942
|
+
_allFilterOptions[key] = options.map((option) => ({ label: option, value: option }));
|
|
6943
|
+
}
|
|
6944
|
+
}
|
|
6945
|
+
allFilterOptions.value = _allFilterOptions;
|
|
6946
|
+
}
|
|
6947
|
+
};
|
|
6906
6948
|
watch(() => [props2.isReverse, myColumns.value, myDataSource.value], () => {
|
|
6949
|
+
const _columns = unref(myColumns);
|
|
6950
|
+
const _dataSource = unref(myDataSource);
|
|
6951
|
+
handleFilterCheckboxOptions(_dataSource);
|
|
6907
6952
|
if (props2.isReverse) {
|
|
6908
|
-
const { columns, dataSource } = handleReverseTable(cloneDeep(
|
|
6953
|
+
const { columns, dataSource } = handleReverseTable(cloneDeep(_columns), cloneDeep(_dataSource));
|
|
6909
6954
|
tableColumns.value = columns;
|
|
6910
6955
|
tableDataSource.value = dataSource;
|
|
6911
6956
|
} else {
|
|
6912
|
-
tableColumns.value =
|
|
6913
|
-
tableDataSource.value =
|
|
6957
|
+
tableColumns.value = _columns;
|
|
6958
|
+
tableDataSource.value = _dataSource;
|
|
6914
6959
|
}
|
|
6915
6960
|
}, {
|
|
6916
6961
|
immediate: true,
|
|
@@ -7049,8 +7094,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
7049
7094
|
});
|
|
7050
7095
|
const handleIndicatorDataset = (dataColumns = [], dataRows = []) => {
|
|
7051
7096
|
const _columns = dataColumns.map((column) => ({ title: column, dataIndex: column, key: column }));
|
|
7052
|
-
|
|
7053
|
-
myColumns.value = columns;
|
|
7097
|
+
myColumns.value = handleColumns(_columns);
|
|
7054
7098
|
myDataSource.value = dataRows;
|
|
7055
7099
|
};
|
|
7056
7100
|
const indicatorData = useIndicatorData(props2);
|
|
@@ -7170,6 +7214,34 @@ const _sfc_main$1 = defineComponent({
|
|
|
7170
7214
|
}, "*");
|
|
7171
7215
|
}
|
|
7172
7216
|
};
|
|
7217
|
+
const useSetSelectedKeys = (setSelectedKeys, column) => {
|
|
7218
|
+
setSelectedKeys(column.filterCheckboxGroupValue);
|
|
7219
|
+
};
|
|
7220
|
+
const onResetFilter = (clearFilters, column) => {
|
|
7221
|
+
clearFilters({ confirm: true });
|
|
7222
|
+
column.filterOptionsInputValue = "";
|
|
7223
|
+
column.filterCheckboxGroupValue = [];
|
|
7224
|
+
};
|
|
7225
|
+
const onSearchFilterOptions = () => {
|
|
7226
|
+
};
|
|
7227
|
+
const useFilterOptions = (column) => {
|
|
7228
|
+
const key = column.dataIndex;
|
|
7229
|
+
if (typeof key === "string") {
|
|
7230
|
+
let filterOptions = unref(allFilterOptions)[key];
|
|
7231
|
+
const _inputValue = unref(column.filterOptionsInputValue).trim();
|
|
7232
|
+
if (Array.isArray(filterOptions)) {
|
|
7233
|
+
filterOptions = filterOptions.filter((filterOption) => {
|
|
7234
|
+
if (filterOption.label) {
|
|
7235
|
+
return filterOption.label.toLowerCase().includes(_inputValue.toLowerCase());
|
|
7236
|
+
}
|
|
7237
|
+
return true;
|
|
7238
|
+
});
|
|
7239
|
+
return filterOptions;
|
|
7240
|
+
}
|
|
7241
|
+
return [];
|
|
7242
|
+
}
|
|
7243
|
+
return [];
|
|
7244
|
+
};
|
|
7173
7245
|
return {
|
|
7174
7246
|
x,
|
|
7175
7247
|
y,
|
|
@@ -7179,8 +7251,6 @@ const _sfc_main$1 = defineComponent({
|
|
|
7179
7251
|
formatFn,
|
|
7180
7252
|
contrastClass,
|
|
7181
7253
|
tableChange,
|
|
7182
|
-
myColumns,
|
|
7183
|
-
myDataSource,
|
|
7184
7254
|
summaryList,
|
|
7185
7255
|
loading,
|
|
7186
7256
|
onTouchHrefEvent,
|
|
@@ -7188,19 +7258,28 @@ const _sfc_main$1 = defineComponent({
|
|
|
7188
7258
|
handleHrefTarget,
|
|
7189
7259
|
useRowIndex,
|
|
7190
7260
|
tableColumns,
|
|
7191
|
-
tableDataSource
|
|
7261
|
+
tableDataSource,
|
|
7262
|
+
useFilterOptions,
|
|
7263
|
+
useSetSelectedKeys,
|
|
7264
|
+
onResetFilter,
|
|
7265
|
+
onSearchFilterOptions
|
|
7192
7266
|
};
|
|
7193
7267
|
}
|
|
7194
7268
|
});
|
|
7195
|
-
const
|
|
7269
|
+
const Table_vue_vue_type_style_index_0_scoped_915e7876_lang = "";
|
|
7196
7270
|
const Table_vue_vue_type_style_index_1_lang = "";
|
|
7197
|
-
const _hoisted_1$1 =
|
|
7198
|
-
const _hoisted_2 =
|
|
7271
|
+
const _hoisted_1$1 = /* @__PURE__ */ createTextVNode(" \u641C\u7D22 ");
|
|
7272
|
+
const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u91CD\u7F6E ");
|
|
7273
|
+
const _hoisted_3 = { key: 0 };
|
|
7274
|
+
const _hoisted_4 = {
|
|
7199
7275
|
key: 1,
|
|
7200
7276
|
class: "action-list"
|
|
7201
7277
|
};
|
|
7202
|
-
const
|
|
7278
|
+
const _hoisted_5 = ["href", "target", "onClick"];
|
|
7203
7279
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7280
|
+
const _component_a_input = resolveComponent("a-input");
|
|
7281
|
+
const _component_a_checkbox_group = resolveComponent("a-checkbox-group");
|
|
7282
|
+
const _component_a_button = resolveComponent("a-button");
|
|
7204
7283
|
const _component_a_table_summary_cell = resolveComponent("a-table-summary-cell");
|
|
7205
7284
|
const _component_a_table_summary_row = resolveComponent("a-table-summary-row");
|
|
7206
7285
|
const _component_a_table_summary = resolveComponent("a-table-summary");
|
|
@@ -7239,9 +7318,55 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7239
7318
|
})
|
|
7240
7319
|
}, toDisplayString(column.title), 5)
|
|
7241
7320
|
]),
|
|
7321
|
+
customFilterDropdown: withCtx(({ column, selectedKeys, setSelectedKeys, confirm, clearFilters }) => [
|
|
7322
|
+
createElementVNode("div", {
|
|
7323
|
+
class: "ecan-table-filter",
|
|
7324
|
+
style: normalizeStyle({
|
|
7325
|
+
height: _ctx.filterDropdownHeight
|
|
7326
|
+
})
|
|
7327
|
+
}, [
|
|
7328
|
+
createVNode(_component_a_input, {
|
|
7329
|
+
value: column.filterOptionsInputValue,
|
|
7330
|
+
"onUpdate:value": ($event) => column.filterOptionsInputValue = $event,
|
|
7331
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57",
|
|
7332
|
+
class: "filter-input",
|
|
7333
|
+
onChange: _ctx.onSearchFilterOptions
|
|
7334
|
+
}, null, 8, ["value", "onUpdate:value", "onChange"]),
|
|
7335
|
+
createVNode(_component_a_checkbox_group, {
|
|
7336
|
+
value: column.filterCheckboxGroupValue,
|
|
7337
|
+
"onUpdate:value": ($event) => column.filterCheckboxGroupValue = $event,
|
|
7338
|
+
class: "filter-checkbox",
|
|
7339
|
+
options: _ctx.useFilterOptions(column),
|
|
7340
|
+
onChange: ($event) => _ctx.useSetSelectedKeys(setSelectedKeys, column)
|
|
7341
|
+
}, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
|
|
7342
|
+
createElementVNode("div", null, [
|
|
7343
|
+
createVNode(_component_a_button, {
|
|
7344
|
+
type: "primary",
|
|
7345
|
+
size: "small",
|
|
7346
|
+
style: { "width": "90px", "margin-right": "8px" },
|
|
7347
|
+
onClick: () => confirm()
|
|
7348
|
+
}, {
|
|
7349
|
+
default: withCtx(() => [
|
|
7350
|
+
_hoisted_1$1
|
|
7351
|
+
]),
|
|
7352
|
+
_: 2
|
|
7353
|
+
}, 1032, ["onClick"]),
|
|
7354
|
+
createVNode(_component_a_button, {
|
|
7355
|
+
size: "small",
|
|
7356
|
+
style: { "width": "90px" },
|
|
7357
|
+
onClick: ($event) => _ctx.onResetFilter(clearFilters)
|
|
7358
|
+
}, {
|
|
7359
|
+
default: withCtx(() => [
|
|
7360
|
+
_hoisted_2
|
|
7361
|
+
]),
|
|
7362
|
+
_: 2
|
|
7363
|
+
}, 1032, ["onClick"])
|
|
7364
|
+
])
|
|
7365
|
+
], 4)
|
|
7366
|
+
]),
|
|
7242
7367
|
bodyCell: withCtx(({ column, index: index2, text, record }) => [
|
|
7243
|
-
column.dataIndex === "SEQ" ? (openBlock(), createElementBlock("span",
|
|
7244
|
-
column.dataIndex === "ACTION" ? (openBlock(), createElementBlock("div",
|
|
7368
|
+
column.dataIndex === "SEQ" ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(index2 + 1), 1)) : createCommentVNode("", true),
|
|
7369
|
+
column.dataIndex === "ACTION" ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
7245
7370
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.actionList, (action, index22) => {
|
|
7246
7371
|
return openBlock(), createElementBlock("div", {
|
|
7247
7372
|
class: "action",
|
|
@@ -7256,7 +7381,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7256
7381
|
fontWeight: _ctx.fontWeight
|
|
7257
7382
|
}),
|
|
7258
7383
|
onClick: ($event) => _ctx.onTouchHrefEvent(action.target, _ctx.handleHref(action.href, record))
|
|
7259
|
-
}, toDisplayString(action.title), 13,
|
|
7384
|
+
}, toDisplayString(action.title), 13, _hoisted_5)
|
|
7260
7385
|
]);
|
|
7261
7386
|
}), 128))
|
|
7262
7387
|
])) : (openBlock(), createElementBlock("div", {
|
|
@@ -7310,7 +7435,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7310
7435
|
}, 8, ["loading"])
|
|
7311
7436
|
], 4);
|
|
7312
7437
|
}
|
|
7313
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7438
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-915e7876"]]);
|
|
7314
7439
|
const EcanTable = withInstall(Table);
|
|
7315
7440
|
const mapProps = {
|
|
7316
7441
|
...props,
|
|
@@ -7476,17 +7601,19 @@ const _sfc_main = defineComponent({
|
|
|
7476
7601
|
});
|
|
7477
7602
|
const isLoadedData = ref(false);
|
|
7478
7603
|
const handleRegisterMap = async () => {
|
|
7604
|
+
var _a2;
|
|
7479
7605
|
const mapJson = props2.mapJson;
|
|
7480
|
-
if (mapJson
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7606
|
+
if (mapJson != null && mapJson.path) {
|
|
7607
|
+
const res = await request(((_a2 = window == null ? void 0 : window.config) == null ? void 0 : _a2.uploadPath) + mapJson.path);
|
|
7608
|
+
registerMap("map", (res == null ? void 0 : res.data) || {});
|
|
7609
|
+
}
|
|
7484
7610
|
isLoadedData.value = true;
|
|
7485
7611
|
};
|
|
7486
7612
|
watch(() => props2.mapJson, () => {
|
|
7487
7613
|
handleRegisterMap();
|
|
7488
7614
|
}, {
|
|
7489
|
-
immediate: true
|
|
7615
|
+
immediate: true,
|
|
7616
|
+
deep: true
|
|
7490
7617
|
});
|
|
7491
7618
|
return {
|
|
7492
7619
|
option,
|
|
@@ -7497,7 +7624,7 @@ const _sfc_main = defineComponent({
|
|
|
7497
7624
|
};
|
|
7498
7625
|
}
|
|
7499
7626
|
});
|
|
7500
|
-
const
|
|
7627
|
+
const Map_vue_vue_type_style_index_0_scoped_1eea2b3c_lang = "";
|
|
7501
7628
|
const _hoisted_1 = ["src"];
|
|
7502
7629
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7503
7630
|
const _component_echarts = resolveComponent("echarts");
|
|
@@ -7519,7 +7646,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7519
7646
|
])
|
|
7520
7647
|
], 4);
|
|
7521
7648
|
}
|
|
7522
|
-
const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
7649
|
+
const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1eea2b3c"]]);
|
|
7523
7650
|
const EcanMap = withInstall(Map$1);
|
|
7524
7651
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7525
7652
|
__proto__: null,
|