cnhis-design-vue 3.0.0 → 3.0.3
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/CHANGELOG.md +27 -4
- package/env.d.ts +2 -0
- package/es/big-table/index.css +0 -4
- package/es/big-table/index.js +300 -474
- package/es/button-print/index.css +1 -5
- package/es/button-print/index.js +4920 -18073
- package/es/drag-layout/index.css +1 -5
- package/es/grid/index.css +0 -4
- package/es/grid/index.js +3 -4
- package/es/index.css +0 -4
- package/es/index.js +257 -7227
- package/package.json +2 -8
- package/packages/big-table/src/BigTable.vue +40 -41
- package/packages/big-table/src/bigTableEmits.ts +3 -1
- package/packages/big-table/src/components/edit-form/edit-input.vue +27 -7
- package/packages/big-table/src/components/edit-form/edit-select-table.vue +2 -2
- package/packages/big-table/src/components/edit-form/edit-select.vue +1 -1
- package/packages/big-table/src/hooks/useBatchEditing.ts +123 -123
- package/packages/big-table/src/hooks/useEdit.ts +45 -18
- package/packages/button-print/src/ButtonPrint.vue +11 -144
- package/packages/button-print/src/components/IdentityVerification.vue +14 -43
- package/packages/grid/index.ts +5 -2
- package/packages/grid/src/Grid.tsx +1 -5
- package/packages/grid/src/hooks.ts +1 -2
- package/packages/index.ts +13 -14
- package/tsconfig.node.json +1 -1
- package/packages/big-table/src/components/edit-form3/EditForm.vue +0 -426
- package/packages/big-table/src/components/edit-form3/edit-component/edit-date-picker/edit-date-picker.vue +0 -66
- package/packages/big-table/src/components/edit-form3/edit-component/edit-digital/edit-digital.vue +0 -60
- package/packages/big-table/src/components/edit-form3/edit-component/edit-input/edit-input.vue +0 -38
- package/packages/big-table/src/components/edit-form3/edit-component/edit-input-password/edit-input-password.vue +0 -89
- package/packages/big-table/src/components/edit-form3/edit-component/edit-month-picker/edit-month-picker.vue +0 -38
- package/packages/big-table/src/components/edit-form3/edit-component/edit-search/edit-search.vue +0 -63
- package/packages/big-table/src/components/edit-form3/edit-component/edit-search-more/edit-search-more.vue +0 -69
- package/packages/big-table/src/components/edit-form3/edit-component/edit-select/edit-select.vue +0 -51
- package/packages/big-table/src/components/edit-form3/edit-component/edit-select-multiple/edit-select-multiple.vue +0 -60
- package/packages/big-table/src/components/edit-form3/edit-component/edit-textarea/edit-textarea.vue +0 -34
- package/packages/big-table/src/components/edit-form3/edit-component/edit-time-picker/edit-time-picker.vue +0 -42
- package/packages/big-table/src/components/edit-form3/edit-component/editFormProps.ts +0 -91
- package/packages/big-table/src/components/edit-form3/edit-component/register-com.ts +0 -18
- package/packages/big-table/src/components/edit-form3/hooks/useConfigData.ts +0 -79
- package/packages/big-table/src/components/edit-form3/hooks/useDateType.ts +0 -184
- package/packages/big-table/src/components/edit-form3/hooks/useFormCommon.ts +0 -373
- package/packages/big-table/src/components/edit-form3/hooks/useItemDefault.ts +0 -638
- package/packages/big-table/src/components/edit-form3/hooks/useSearch.ts +0 -910
- package/packages/big-table/src/components/edit-form3/hooks/useValidateRules.ts +0 -387
- package/packages/big-table/src/components/edit-form3/interface.ts +0 -53
- package/packages/big-table/src/components/edit-form3/types.ts +0 -3
- package/packages/big-table/src/components/edit-form3/utils.ts +0 -247
package/es/big-table/index.js
CHANGED
|
@@ -1,102 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import axios from 'axios';
|
|
1
|
+
import { computed, watch, defineComponent, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString, ref, createVNode, withCtx, normalizeClass, renderSlot, createTextVNode, mergeProps, reactive, h, resolveComponent, inject, nextTick, createApp, Teleport, provide, onMounted, onUnmounted, getCurrentInstance, onBeforeUnmount, onActivated, onDeactivated, isVNode, useAttrs, normalizeStyle, withDirectives, vShow, Fragment, createBlock, vModelSelect, vModelText, pushScopeId, popScopeId } from 'vue';
|
|
3
2
|
import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline } from '@vicons/ionicons5';
|
|
4
|
-
import { NTooltip,
|
|
3
|
+
import { NTooltip, NInput, NInputNumber, NSelect, useMessage, NIcon, NPopconfirm, NButton, NInputGroup, NCheckbox, NCheckboxGroup, NSpace, NProgress, NDropdown, NSwitch, NPopover, NSpin } from 'naive-ui';
|
|
5
4
|
import draggable from 'vuedraggable';
|
|
6
5
|
|
|
7
|
-
/*!
|
|
8
|
-
* vue-router v4.0.13
|
|
9
|
-
* (c) 2022 Eduardo San Martin Morote
|
|
10
|
-
* @license MIT
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
const hasSymbol = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
14
|
-
const PolySymbol = (name) =>
|
|
15
|
-
// vr = vue router
|
|
16
|
-
hasSymbol
|
|
17
|
-
? Symbol((process.env.NODE_ENV !== 'production') ? '[vue-router]: ' + name : name)
|
|
18
|
-
: ((process.env.NODE_ENV !== 'production') ? '[vue-router]: ' : '_vr_') + name;
|
|
19
|
-
// rvlm = Router View Location Matched
|
|
20
|
-
/**
|
|
21
|
-
* RouteRecord being rendered by the closest ancestor Router View. Used for
|
|
22
|
-
* `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
|
|
23
|
-
* Location Matched
|
|
24
|
-
*
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view location matched' : 'rvlm');
|
|
28
|
-
/**
|
|
29
|
-
* Allows overriding the router view depth to control which component in
|
|
30
|
-
* `matched` is rendered. rvd stands for Router View Depth
|
|
31
|
-
*
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
34
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view depth' : 'rvd');
|
|
35
|
-
/**
|
|
36
|
-
* Allows overriding the router instance returned by `useRouter` in tests. r
|
|
37
|
-
* stands for router
|
|
38
|
-
*
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router' : 'r');
|
|
42
|
-
/**
|
|
43
|
-
* Allows overriding the current route returned by `useRoute` in tests. rl
|
|
44
|
-
* stands for route location
|
|
45
|
-
*
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
const routeLocationKey = /*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'route location' : 'rl');
|
|
49
|
-
/**
|
|
50
|
-
* Allows overriding the current route used by router-view. Internally this is
|
|
51
|
-
* used when the `route` prop is passed.
|
|
52
|
-
*
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view location' : 'rvl');
|
|
56
|
-
|
|
57
|
-
var NavigationType;
|
|
58
|
-
(function (NavigationType) {
|
|
59
|
-
NavigationType["pop"] = "pop";
|
|
60
|
-
NavigationType["push"] = "push";
|
|
61
|
-
})(NavigationType || (NavigationType = {}));
|
|
62
|
-
var NavigationDirection;
|
|
63
|
-
(function (NavigationDirection) {
|
|
64
|
-
NavigationDirection["back"] = "back";
|
|
65
|
-
NavigationDirection["forward"] = "forward";
|
|
66
|
-
NavigationDirection["unknown"] = "";
|
|
67
|
-
})(NavigationDirection || (NavigationDirection = {}));
|
|
68
|
-
|
|
69
|
-
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'navigation failure' : 'nf');
|
|
70
|
-
/**
|
|
71
|
-
* Enumeration with all possible types for navigation failures. Can be passed to
|
|
72
|
-
* {@link isNavigationFailure} to check for specific failures.
|
|
73
|
-
*/
|
|
74
|
-
var NavigationFailureType;
|
|
75
|
-
(function (NavigationFailureType) {
|
|
76
|
-
/**
|
|
77
|
-
* An aborted navigation is a navigation that failed because a navigation
|
|
78
|
-
* guard returned `false` or called `next(false)`
|
|
79
|
-
*/
|
|
80
|
-
NavigationFailureType[NavigationFailureType["aborted"] = 4] = "aborted";
|
|
81
|
-
/**
|
|
82
|
-
* A cancelled navigation is a navigation that failed because a more recent
|
|
83
|
-
* navigation finished started (not necessarily finished).
|
|
84
|
-
*/
|
|
85
|
-
NavigationFailureType[NavigationFailureType["cancelled"] = 8] = "cancelled";
|
|
86
|
-
/**
|
|
87
|
-
* A duplicated navigation is a navigation that failed because it was
|
|
88
|
-
* initiated while already being at the exact same location.
|
|
89
|
-
*/
|
|
90
|
-
NavigationFailureType[NavigationFailureType["duplicated"] = 16] = "duplicated";
|
|
91
|
-
})(NavigationFailureType || (NavigationFailureType = {}));
|
|
92
|
-
/**
|
|
93
|
-
* Returns the current route location. Equivalent to using `$route` inside
|
|
94
|
-
* templates.
|
|
95
|
-
*/
|
|
96
|
-
function useRoute() {
|
|
97
|
-
return inject(routeLocationKey);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
6
|
const bigTableState = {
|
|
101
7
|
curAbleCheckedLen: 0,
|
|
102
8
|
showButtonTop: 0,
|
|
@@ -304,7 +210,8 @@ const bigTableEmits = [
|
|
|
304
210
|
"setNestLastClickTable",
|
|
305
211
|
"selectionChangeLocal",
|
|
306
212
|
"switchBtnOnChange",
|
|
307
|
-
"asyncTableChange"
|
|
213
|
+
"asyncTableChange",
|
|
214
|
+
"updateInput"
|
|
308
215
|
];
|
|
309
216
|
|
|
310
217
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -13028,15 +12935,6 @@ const useBatchEditing = (props, state, emit, xGrid) => {
|
|
|
13028
12935
|
return false;
|
|
13029
12936
|
handleClickBatchCancelBtnByInline();
|
|
13030
12937
|
});
|
|
13031
|
-
watch(() => props.batchEditDoneNumber, (obj) => {
|
|
13032
|
-
if (!obj || !Object.keys(obj).length || props.isNestTable)
|
|
13033
|
-
return;
|
|
13034
|
-
if (state.isTree != 0 || !props.isMatchComponent)
|
|
13035
|
-
return false;
|
|
13036
|
-
if (!checkOperateCurrentTable())
|
|
13037
|
-
return false;
|
|
13038
|
-
submitBatchInlineForm(obj);
|
|
13039
|
-
});
|
|
13040
12938
|
const checkOperateCurrentTable = () => {
|
|
13041
12939
|
if (props.isNestTable)
|
|
13042
12940
|
return false;
|
|
@@ -13259,71 +13157,6 @@ const useBatchEditing = (props, state, emit, xGrid) => {
|
|
|
13259
13157
|
await vxeTable.reloadData(state.originFormatList);
|
|
13260
13158
|
resetBatchOperationRowStatus();
|
|
13261
13159
|
};
|
|
13262
|
-
const handleIsBatchDoneAll = (obj) => {
|
|
13263
|
-
return false;
|
|
13264
|
-
};
|
|
13265
|
-
const handleSubmitParams = (batchFormData) => {
|
|
13266
|
-
let arr = [];
|
|
13267
|
-
for (let key in batchFormData) {
|
|
13268
|
-
let matchItem = props.oldtableData.find((v) => v[props.primaryKey] == key);
|
|
13269
|
-
let obj = batchFormData[key];
|
|
13270
|
-
if (matchItem) {
|
|
13271
|
-
obj = Object.assign({}, obj, {
|
|
13272
|
-
[props.primaryKey]: matchItem[props.primaryKey]
|
|
13273
|
-
});
|
|
13274
|
-
}
|
|
13275
|
-
arr.push(obj);
|
|
13276
|
-
}
|
|
13277
|
-
return arr;
|
|
13278
|
-
};
|
|
13279
|
-
const savaForm = (formId, params) => {
|
|
13280
|
-
let url = `/form/editRows/update/${formId}`;
|
|
13281
|
-
return axios({
|
|
13282
|
-
method: "post",
|
|
13283
|
-
url,
|
|
13284
|
-
headers: { "Content-Type": "application/json; charset=utf-8" },
|
|
13285
|
-
data: params
|
|
13286
|
-
});
|
|
13287
|
-
};
|
|
13288
|
-
const submitBatchInlineForm = (obj) => {
|
|
13289
|
-
if (props.batchError) {
|
|
13290
|
-
props.resetBatchEditRowStatus();
|
|
13291
|
-
emit("triggerSpinning", false);
|
|
13292
|
-
return;
|
|
13293
|
-
}
|
|
13294
|
-
let isBatchDoneAll = handleIsBatchDoneAll();
|
|
13295
|
-
if (!isBatchDoneAll) {
|
|
13296
|
-
props.resetBatchEditRowStatus();
|
|
13297
|
-
emit("triggerSpinning", false);
|
|
13298
|
-
return;
|
|
13299
|
-
}
|
|
13300
|
-
let { formId } = props.listFormUnionSetting;
|
|
13301
|
-
let params = handleSubmitParams(props.batchFormData);
|
|
13302
|
-
if (!formId || !params) {
|
|
13303
|
-
props.resetBatchEditRowStatus();
|
|
13304
|
-
emit("triggerSpinning", false);
|
|
13305
|
-
return;
|
|
13306
|
-
}
|
|
13307
|
-
if (state.isSaveForm)
|
|
13308
|
-
return false;
|
|
13309
|
-
state.isSaveForm = true;
|
|
13310
|
-
savaForm(formId, params).then(async ({ data }) => {
|
|
13311
|
-
emit("triggerSpinning", false);
|
|
13312
|
-
if (data.result !== "SUCCESS") {
|
|
13313
|
-
state.isSaveForm = false;
|
|
13314
|
-
window.$message.error(data.resultMsg);
|
|
13315
|
-
props.resetBatchEditRowStatus();
|
|
13316
|
-
return false;
|
|
13317
|
-
}
|
|
13318
|
-
await props.resetInlineBatchEdit();
|
|
13319
|
-
handleClickBatchCancelBtnByInline();
|
|
13320
|
-
emit("pubTableReload");
|
|
13321
|
-
}).finally(() => {
|
|
13322
|
-
state.isSaveForm = false;
|
|
13323
|
-
emit("triggerSpinning", false);
|
|
13324
|
-
props.resetBatchEditRowStatus();
|
|
13325
|
-
});
|
|
13326
|
-
};
|
|
13327
13160
|
return {
|
|
13328
13161
|
allSelectedLength,
|
|
13329
13162
|
checkOperateCurrentTable,
|
|
@@ -13424,7 +13257,7 @@ const useNestTable = (props, state, emit) => {
|
|
|
13424
13257
|
|
|
13425
13258
|
const useEdit = (props, state, emit, xGrid) => {
|
|
13426
13259
|
const initEditTable = async () => {
|
|
13427
|
-
const { isEdit, fieldList } = props.columnConfig;
|
|
13260
|
+
const { isEdit, fieldList = [] } = props.columnConfig;
|
|
13428
13261
|
if (!isEdit)
|
|
13429
13262
|
return;
|
|
13430
13263
|
const hasSelectTable = fieldList.find((v) => v.formType === "selectTable");
|
|
@@ -13440,29 +13273,19 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
13440
13273
|
});
|
|
13441
13274
|
await xGrid.value.insertAt(record, -1);
|
|
13442
13275
|
};
|
|
13443
|
-
const deleteRow = (row) => {
|
|
13276
|
+
const deleteRow = (row, col, index) => {
|
|
13444
13277
|
xGrid.value.remove(row);
|
|
13278
|
+
emit("clickBtn", { row, column: col, index });
|
|
13445
13279
|
};
|
|
13446
13280
|
const activeMethod = ({ row, rowIndex, column, columnIndex }) => {
|
|
13447
13281
|
const { isEdit, fieldList } = props.columnConfig;
|
|
13448
13282
|
if (isEdit) {
|
|
13449
|
-
const selectTableObj = fieldList.find((v) => v.formType === "selectTable");
|
|
13450
13283
|
const isEditCol = fieldList.find((v) => v.columnName === column.field)?.isEdit || false;
|
|
13451
|
-
if (
|
|
13452
|
-
|
|
13453
|
-
return true;
|
|
13454
|
-
}
|
|
13455
|
-
else {
|
|
13456
|
-
return false;
|
|
13457
|
-
}
|
|
13284
|
+
if (isEditCol) {
|
|
13285
|
+
return true;
|
|
13458
13286
|
}
|
|
13459
13287
|
else {
|
|
13460
|
-
|
|
13461
|
-
return true;
|
|
13462
|
-
}
|
|
13463
|
-
else {
|
|
13464
|
-
return false;
|
|
13465
|
-
}
|
|
13288
|
+
return false;
|
|
13466
13289
|
}
|
|
13467
13290
|
}
|
|
13468
13291
|
else {
|
|
@@ -13470,6 +13293,7 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
13470
13293
|
}
|
|
13471
13294
|
};
|
|
13472
13295
|
const onClickSelectTable = async (row) => {
|
|
13296
|
+
emit("clickSelectTable", { row });
|
|
13473
13297
|
const record = {
|
|
13474
13298
|
initRow: false,
|
|
13475
13299
|
row: JSON.parse(JSON.stringify(row))
|
|
@@ -13486,11 +13310,29 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
13486
13310
|
await xGrid.value.insertAt(record, getInsertRecords.at(-1));
|
|
13487
13311
|
xGrid.value.clearActived();
|
|
13488
13312
|
};
|
|
13313
|
+
const onUpdateInput = ({ value, row, column }) => {
|
|
13314
|
+
emit("updateInput", { value, row, column });
|
|
13315
|
+
};
|
|
13316
|
+
const getDefaultValue = (params, item) => {
|
|
13317
|
+
const value = params.row[item.columnName];
|
|
13318
|
+
if (item.formType === "select") {
|
|
13319
|
+
if (item.options) {
|
|
13320
|
+
return item.options.find((v) => v.value === value)?.label || "";
|
|
13321
|
+
}
|
|
13322
|
+
if (item.queryOptions) {
|
|
13323
|
+
return params.row[`${item.columnName}_options`]?.find((v) => v.value === value)?.label || "";
|
|
13324
|
+
}
|
|
13325
|
+
return value;
|
|
13326
|
+
}
|
|
13327
|
+
return value;
|
|
13328
|
+
};
|
|
13489
13329
|
return {
|
|
13490
13330
|
initEditTable,
|
|
13491
13331
|
activeMethod,
|
|
13492
13332
|
deleteRow,
|
|
13493
|
-
onClickSelectTable
|
|
13333
|
+
onClickSelectTable,
|
|
13334
|
+
onUpdateInput,
|
|
13335
|
+
getDefaultValue
|
|
13494
13336
|
};
|
|
13495
13337
|
};
|
|
13496
13338
|
|
|
@@ -13505,7 +13347,7 @@ var img$3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAADKCAYAAABDnT56A
|
|
|
13505
13347
|
const _hoisted_1$4 = { class: "no-data-tip NoData-page" };
|
|
13506
13348
|
const _hoisted_2$3 = ["src"];
|
|
13507
13349
|
const _hoisted_3$2 = { key: 1 };
|
|
13508
|
-
var script$
|
|
13350
|
+
var script$6 = /* @__PURE__ */ defineComponent({
|
|
13509
13351
|
props: {
|
|
13510
13352
|
noDataTip: {
|
|
13511
13353
|
type: String,
|
|
@@ -13566,14 +13408,14 @@ var script$7 = /* @__PURE__ */ defineComponent({
|
|
|
13566
13408
|
}
|
|
13567
13409
|
});
|
|
13568
13410
|
|
|
13569
|
-
script$
|
|
13570
|
-
script$
|
|
13411
|
+
script$6.__scopeId = "data-v-4a4b0812";
|
|
13412
|
+
script$6.__file = "packages/big-table/src/components/NoData.vue";
|
|
13571
13413
|
|
|
13572
13414
|
const _hoisted_1$3 = { class: "text-over-tooltip-components" };
|
|
13573
13415
|
const __default__$3 = {
|
|
13574
13416
|
name: "TextOverTooltip"
|
|
13575
13417
|
};
|
|
13576
|
-
var script$
|
|
13418
|
+
var script$5 = /* @__PURE__ */ defineComponent({
|
|
13577
13419
|
...__default__$3,
|
|
13578
13420
|
props: {
|
|
13579
13421
|
content: { type: [String, Number], required: false },
|
|
@@ -13641,45 +13483,140 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
13641
13483
|
}
|
|
13642
13484
|
});
|
|
13643
13485
|
|
|
13644
|
-
script$
|
|
13645
|
-
script$
|
|
13486
|
+
script$5.__scopeId = "data-v-6633a934";
|
|
13487
|
+
script$5.__file = "packages/big-table/src/components/TextOverTooltip.vue";
|
|
13646
13488
|
|
|
13647
|
-
const _hoisted_1$2 = { key: 0 };
|
|
13648
|
-
const _hoisted_2$2 = ["xlink:href"];
|
|
13649
|
-
const __default__$2 = {
|
|
13650
|
-
|
|
13651
|
-
};
|
|
13652
|
-
var script$
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13489
|
+
const _hoisted_1$2 = { key: 0 };
|
|
13490
|
+
const _hoisted_2$2 = ["xlink:href"];
|
|
13491
|
+
const __default__$2 = {
|
|
13492
|
+
name: "SvgIcon"
|
|
13493
|
+
};
|
|
13494
|
+
var script$4 = /* @__PURE__ */ defineComponent({
|
|
13495
|
+
...__default__$2,
|
|
13496
|
+
props: {
|
|
13497
|
+
iconClass: { type: String, required: true, default: "" },
|
|
13498
|
+
title: { type: String, required: true, default: "" },
|
|
13499
|
+
className: { type: String, required: false }
|
|
13500
|
+
},
|
|
13501
|
+
setup(__props) {
|
|
13502
|
+
const props = __props;
|
|
13503
|
+
const iconName = computed(() => `#icon-${props.iconClass}`);
|
|
13504
|
+
const svgClass = computed(() => {
|
|
13505
|
+
if (props.className) {
|
|
13506
|
+
return "svg-icon " + props.className;
|
|
13507
|
+
}
|
|
13508
|
+
else {
|
|
13509
|
+
return "svg-icon";
|
|
13510
|
+
}
|
|
13511
|
+
});
|
|
13512
|
+
return (_ctx, _cache) => {
|
|
13513
|
+
return openBlock(), createElementBlock("svg", mergeProps({
|
|
13514
|
+
class: unref(svgClass),
|
|
13515
|
+
"aria-hidden": "true"
|
|
13516
|
+
}, _ctx.$attrs), [
|
|
13517
|
+
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$2, toDisplayString(__props.title), 1)) : createCommentVNode("v-if", true),
|
|
13518
|
+
createElementVNode("use", { "xlink:href": unref(iconName) }, null, 8, _hoisted_2$2)
|
|
13519
|
+
], 16);
|
|
13520
|
+
};
|
|
13521
|
+
}
|
|
13522
|
+
});
|
|
13523
|
+
|
|
13524
|
+
script$4.__scopeId = "data-v-d1ad5be8";
|
|
13525
|
+
script$4.__file = "src/component/svg/index.vue";
|
|
13526
|
+
|
|
13527
|
+
var script$3 = defineComponent({
|
|
13528
|
+
name: "EditInput",
|
|
13529
|
+
inheritAttrs: false,
|
|
13530
|
+
components: {
|
|
13531
|
+
NInput,
|
|
13532
|
+
NInputNumber
|
|
13533
|
+
},
|
|
13534
|
+
props: {
|
|
13535
|
+
type: {
|
|
13536
|
+
type: String,
|
|
13537
|
+
default: "input"
|
|
13538
|
+
},
|
|
13539
|
+
col: {
|
|
13540
|
+
type: Object,
|
|
13541
|
+
default: () => ({})
|
|
13542
|
+
},
|
|
13543
|
+
row: {
|
|
13544
|
+
type: Object,
|
|
13545
|
+
default: () => ({})
|
|
13546
|
+
},
|
|
13547
|
+
index: {
|
|
13548
|
+
type: [Number, Object],
|
|
13549
|
+
default: 0
|
|
13550
|
+
}
|
|
13551
|
+
},
|
|
13552
|
+
emits: ["updateInput"],
|
|
13553
|
+
setup(props, { attrs, slots, emit }) {
|
|
13554
|
+
const onUpdateValue = (value) => {
|
|
13555
|
+
emit("updateInput", {
|
|
13556
|
+
value,
|
|
13557
|
+
row: props.row,
|
|
13558
|
+
column: props.col,
|
|
13559
|
+
index: props.index
|
|
13560
|
+
});
|
|
13561
|
+
};
|
|
13562
|
+
return () => props.type === "input" ? createVNode(NInput, mergeProps(attrs, {
|
|
13563
|
+
"onUpdateValue": onUpdateValue
|
|
13564
|
+
}), null) : createVNode(NInputNumber, mergeProps(attrs, {
|
|
13565
|
+
"onUpdateValue": onUpdateValue
|
|
13566
|
+
}), null);
|
|
13567
|
+
}
|
|
13568
|
+
});
|
|
13569
|
+
|
|
13570
|
+
script$3.__file = "packages/big-table/src/components/edit-form/edit-input.vue";
|
|
13571
|
+
|
|
13572
|
+
var script$2 = defineComponent({
|
|
13573
|
+
name: "EditSelect",
|
|
13574
|
+
inheritAttrs: false,
|
|
13575
|
+
components: {
|
|
13576
|
+
NSelect
|
|
13577
|
+
},
|
|
13578
|
+
props: {
|
|
13579
|
+
col: {
|
|
13580
|
+
type: Object,
|
|
13581
|
+
default: () => {
|
|
13582
|
+
}
|
|
13583
|
+
},
|
|
13584
|
+
row: {
|
|
13585
|
+
type: Object,
|
|
13586
|
+
default: () => {
|
|
13587
|
+
}
|
|
13588
|
+
}
|
|
13589
|
+
},
|
|
13590
|
+
emits: ["setOptions"],
|
|
13591
|
+
setup(props, { attrs, slots, emit }) {
|
|
13592
|
+
const state = reactive({
|
|
13593
|
+
options: []
|
|
13594
|
+
});
|
|
13595
|
+
const setOptions = async () => {
|
|
13596
|
+
if (props.col.options) {
|
|
13597
|
+
state.options = JSON.parse(JSON.stringify(props.col.options));
|
|
13598
|
+
}
|
|
13599
|
+
else {
|
|
13600
|
+
const optionsName = `${props.col.columnName}_options`;
|
|
13601
|
+
state.options = props.row[optionsName] || await props.col.queryOptions();
|
|
13602
|
+
if (!props.row[optionsName]) {
|
|
13603
|
+
emit("setOptions", state.options);
|
|
13604
|
+
}
|
|
13605
|
+
}
|
|
13606
|
+
};
|
|
13607
|
+
setOptions();
|
|
13608
|
+
return () => [createVNode(NSelect, mergeProps(attrs, {
|
|
13609
|
+
"options": state.options,
|
|
13610
|
+
"consistentMenuWidth": false,
|
|
13611
|
+
"clearable": true,
|
|
13612
|
+
"filterable": true,
|
|
13613
|
+
"to": false,
|
|
13614
|
+
"placeholder": "\u8BF7\u9009\u62E9"
|
|
13615
|
+
}), null)];
|
|
13616
|
+
}
|
|
13679
13617
|
});
|
|
13680
13618
|
|
|
13681
|
-
script$
|
|
13682
|
-
script$5.__file = "src/component/svg/index.vue";
|
|
13619
|
+
script$2.__file = "packages/big-table/src/components/edit-form/edit-select.vue";
|
|
13683
13620
|
|
|
13684
13621
|
var iconPrefix = 'vxe-icon--';
|
|
13685
13622
|
var GlobalConfig = {
|
|
@@ -38803,8 +38740,7 @@ const useMethods = () => {
|
|
|
38803
38740
|
const funcs = {};
|
|
38804
38741
|
methodKeys.forEach((name) => {
|
|
38805
38742
|
funcs[name] = (...args) => {
|
|
38806
|
-
|
|
38807
|
-
return $xGrid && $xGrid[name](...args);
|
|
38743
|
+
return xGrid.value && xGrid.value[name](...args);
|
|
38808
38744
|
};
|
|
38809
38745
|
});
|
|
38810
38746
|
return {
|
|
@@ -38819,7 +38755,7 @@ function _isSlot$1(s) {
|
|
|
38819
38755
|
var Grid = defineComponent(create({
|
|
38820
38756
|
name: "Grid",
|
|
38821
38757
|
setup(props, { attrs, slots }) {
|
|
38822
|
-
const renderVN = () => createVNode(
|
|
38758
|
+
const renderVN = () => createVNode(resolveComponent("vxe-grid"), mergeProps({
|
|
38823
38759
|
"ref": "xGrid"
|
|
38824
38760
|
}, attrs), _isSlot$1(slots) ? slots : {
|
|
38825
38761
|
default: () => [slots]
|
|
@@ -38834,208 +38770,11 @@ var Grid = defineComponent(create({
|
|
|
38834
38770
|
}
|
|
38835
38771
|
}));
|
|
38836
38772
|
|
|
38837
|
-
Grid.install = function(app) {
|
|
38838
|
-
|
|
38839
|
-
|
|
38773
|
+
Grid.install = function (app) {
|
|
38774
|
+
app.use(VXETableExport);
|
|
38775
|
+
app.component(Grid.name, Grid);
|
|
38840
38776
|
};
|
|
38841
38777
|
|
|
38842
|
-
var script$4 = defineComponent({
|
|
38843
|
-
name: "EditSelectTable",
|
|
38844
|
-
inheritAttrs: false,
|
|
38845
|
-
components: {
|
|
38846
|
-
NSelect,
|
|
38847
|
-
CGrid: Grid,
|
|
38848
|
-
NPagination,
|
|
38849
|
-
NEmpty,
|
|
38850
|
-
NSpin,
|
|
38851
|
-
NSpace
|
|
38852
|
-
},
|
|
38853
|
-
props: {
|
|
38854
|
-
row: {
|
|
38855
|
-
type: Object,
|
|
38856
|
-
default: {}
|
|
38857
|
-
},
|
|
38858
|
-
col: {
|
|
38859
|
-
type: Object,
|
|
38860
|
-
default: {}
|
|
38861
|
-
},
|
|
38862
|
-
value: {
|
|
38863
|
-
type: String,
|
|
38864
|
-
default: ""
|
|
38865
|
-
}
|
|
38866
|
-
},
|
|
38867
|
-
emits: ["update:value", "clickSelectTable"],
|
|
38868
|
-
setup(props, { attrs, slots, emit }) {
|
|
38869
|
-
const state = reactive({
|
|
38870
|
-
value: props.value,
|
|
38871
|
-
row: JSON.parse(JSON.stringify(props.row)),
|
|
38872
|
-
page: 1,
|
|
38873
|
-
pageCount: 0,
|
|
38874
|
-
keyword: "",
|
|
38875
|
-
data: [],
|
|
38876
|
-
columns: JSON.parse(JSON.stringify(props.col.tableColumn)),
|
|
38877
|
-
loading: false,
|
|
38878
|
-
show: true
|
|
38879
|
-
});
|
|
38880
|
-
const selectTableFocus = () => {
|
|
38881
|
-
state.show = true;
|
|
38882
|
-
state.page = 1;
|
|
38883
|
-
state.keyword = "";
|
|
38884
|
-
state.pageCount = 0;
|
|
38885
|
-
querySelectTableList();
|
|
38886
|
-
};
|
|
38887
|
-
const querySelectTableList = async () => {
|
|
38888
|
-
state.loading = true;
|
|
38889
|
-
const obj = {
|
|
38890
|
-
page: state.page,
|
|
38891
|
-
keyword: state.keyword
|
|
38892
|
-
};
|
|
38893
|
-
const { data, pageCount } = await props.col.querySelectTableList(obj);
|
|
38894
|
-
state.data = data;
|
|
38895
|
-
state.pageCount = pageCount;
|
|
38896
|
-
state.loading = false;
|
|
38897
|
-
};
|
|
38898
|
-
let selectTableSearch = (value) => {
|
|
38899
|
-
state.keyword = value;
|
|
38900
|
-
querySelectTableList();
|
|
38901
|
-
};
|
|
38902
|
-
selectTableSearch = xeUtils.debounce(selectTableSearch, 800);
|
|
38903
|
-
selectTableSearch("");
|
|
38904
|
-
const getSelectTableGrid = () => {
|
|
38905
|
-
const config = {
|
|
38906
|
-
border: "outer",
|
|
38907
|
-
resizable: true,
|
|
38908
|
-
autoResize: true,
|
|
38909
|
-
showOverflow: true,
|
|
38910
|
-
showHeaderOverflow: true,
|
|
38911
|
-
highlightHoverRow: true,
|
|
38912
|
-
highlightCurrentRow: true,
|
|
38913
|
-
maxHeight: "500",
|
|
38914
|
-
align: "center",
|
|
38915
|
-
columns: state.columns,
|
|
38916
|
-
data: state.data
|
|
38917
|
-
};
|
|
38918
|
-
return createVNode(Grid, mergeProps(config, {
|
|
38919
|
-
"onCellClick": (data) => onCellClick(data)
|
|
38920
|
-
}), {
|
|
38921
|
-
empty: () => createVNode(NEmpty, {
|
|
38922
|
-
"description": "\u65E0\u6570\u636E"
|
|
38923
|
-
}, null)
|
|
38924
|
-
});
|
|
38925
|
-
};
|
|
38926
|
-
const onCellClick = (data) => {
|
|
38927
|
-
const { row } = data;
|
|
38928
|
-
emit("clickSelectTable", row);
|
|
38929
|
-
state.show = false;
|
|
38930
|
-
};
|
|
38931
|
-
const getPagination = () => {
|
|
38932
|
-
const pagination = () => {
|
|
38933
|
-
return createVNode(NPagination, {
|
|
38934
|
-
"page": state.page,
|
|
38935
|
-
"onUpdate:page": ($event) => state.page = $event,
|
|
38936
|
-
"pageCount": state.pageCount,
|
|
38937
|
-
"onUpdatePage": (page) => querySelectTableList()
|
|
38938
|
-
}, null);
|
|
38939
|
-
};
|
|
38940
|
-
return createVNode(NSpace, {
|
|
38941
|
-
"justify": "space-between",
|
|
38942
|
-
"align": "center",
|
|
38943
|
-
"style": "margin-top: 5px"
|
|
38944
|
-
}, {
|
|
38945
|
-
default: () => [`\u5171${state.pageCount}\u6761`, pagination()]
|
|
38946
|
-
});
|
|
38947
|
-
};
|
|
38948
|
-
return () => [createVNode(NSelect, {
|
|
38949
|
-
"class": "form-select-table",
|
|
38950
|
-
"placeholder": "\u8BF7\u9009\u62E9",
|
|
38951
|
-
"options": [],
|
|
38952
|
-
"consistentMenuWidth": false,
|
|
38953
|
-
"clearable": true,
|
|
38954
|
-
"filterable": true,
|
|
38955
|
-
"to": false,
|
|
38956
|
-
"show": state.show,
|
|
38957
|
-
"loading": state.loading,
|
|
38958
|
-
"onFocus": selectTableFocus,
|
|
38959
|
-
"onBlur": () => state.show = false,
|
|
38960
|
-
"onSearch": selectTableSearch
|
|
38961
|
-
}, {
|
|
38962
|
-
action: () => state.loading ? createVNode(NSpace, {
|
|
38963
|
-
"justify": "center"
|
|
38964
|
-
}, {
|
|
38965
|
-
default: () => createVNode(NSpin, {
|
|
38966
|
-
"class": "spin",
|
|
38967
|
-
"size": "small"
|
|
38968
|
-
}, null)
|
|
38969
|
-
}) : [getSelectTableGrid(), state.pageCount ? getPagination() : null]
|
|
38970
|
-
})];
|
|
38971
|
-
}
|
|
38972
|
-
});
|
|
38973
|
-
|
|
38974
|
-
script$4.__scopeId = "data-v-464c5a9c";
|
|
38975
|
-
script$4.__file = "packages/big-table/src/components/edit-form/edit-select-table.vue";
|
|
38976
|
-
|
|
38977
|
-
var script$3 = defineComponent({
|
|
38978
|
-
name: "EditInput",
|
|
38979
|
-
inheritAttrs: false,
|
|
38980
|
-
components: {
|
|
38981
|
-
NInput
|
|
38982
|
-
},
|
|
38983
|
-
setup(props, { attrs, slots, emit }) {
|
|
38984
|
-
return () => [createVNode(NInput, attrs, null)];
|
|
38985
|
-
}
|
|
38986
|
-
});
|
|
38987
|
-
|
|
38988
|
-
script$3.__file = "packages/big-table/src/components/edit-form/edit-input.vue";
|
|
38989
|
-
|
|
38990
|
-
var script$2 = defineComponent({
|
|
38991
|
-
name: "EditSelect",
|
|
38992
|
-
inheritAttrs: false,
|
|
38993
|
-
components: {
|
|
38994
|
-
NSelect
|
|
38995
|
-
},
|
|
38996
|
-
props: {
|
|
38997
|
-
col: {
|
|
38998
|
-
type: Object,
|
|
38999
|
-
default: () => {
|
|
39000
|
-
}
|
|
39001
|
-
},
|
|
39002
|
-
row: {
|
|
39003
|
-
type: Object,
|
|
39004
|
-
default: () => {
|
|
39005
|
-
}
|
|
39006
|
-
}
|
|
39007
|
-
},
|
|
39008
|
-
emits: ["setOptions"],
|
|
39009
|
-
setup(props, { attrs, slots, emit }) {
|
|
39010
|
-
const state = reactive({
|
|
39011
|
-
options: []
|
|
39012
|
-
});
|
|
39013
|
-
const setOptions = async () => {
|
|
39014
|
-
if (props.col.options) {
|
|
39015
|
-
state.options = JSON.parse(JSON.stringify(props.col.options));
|
|
39016
|
-
}
|
|
39017
|
-
else {
|
|
39018
|
-
const optionsName = `${props.col.columnName}_options`;
|
|
39019
|
-
state.options = props.row[optionsName] || await props.col.queryOptions(props.row.row);
|
|
39020
|
-
if (!props.row[optionsName]) {
|
|
39021
|
-
emit("setOptions", state.options);
|
|
39022
|
-
}
|
|
39023
|
-
}
|
|
39024
|
-
};
|
|
39025
|
-
setOptions();
|
|
39026
|
-
return () => [createVNode(NSelect, mergeProps(attrs, {
|
|
39027
|
-
"options": state.options,
|
|
39028
|
-
"consistentMenuWidth": false,
|
|
39029
|
-
"clearable": true,
|
|
39030
|
-
"filterable": true,
|
|
39031
|
-
"to": false,
|
|
39032
|
-
"placeholder": "\u8BF7\u9009\u62E9"
|
|
39033
|
-
}), null)];
|
|
39034
|
-
}
|
|
39035
|
-
});
|
|
39036
|
-
|
|
39037
|
-
script$2.__file = "packages/big-table/src/components/edit-form/edit-select.vue";
|
|
39038
|
-
|
|
39039
38778
|
var img$2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAYm0lEQVR4XtVd+3MVVZ7/dudF3iEJCa+QB6+ACCKP+AAcBVEZZWsVmZldZ6xRkIRZrZ3Z2T9gd539ZYaZLcUkCjpTs1u1NZRu+WRFURR5riAKAgEEkhDyTsg7Iffe7q3P9/a3Od237yMP1Omqrk7u7e7zPZ/z+T7P6b4afYfbyy+/nGua5mLTNOcSkeyTiSjdNM10TdPSIZ5pmr2apvUSEfZmIjqHXdM07Ce2bNnS/l11Q/s2G961a1dyZ2fnGiK6zzCM+zRNu9U0zTHJoGmaaZrmKV3XPyaij7Ozs/du3Lhx8Nvq15iEj0VIALRjx45VgUDgZ6ZpbiCijFiuG8M5PZqmvR4XF/fnzZs37wfAY7hX1EtvGoC7d+9Oqq+v/7lhGP9MRCVRJbk5J1zSdf23M2bM+OO6deuu34wmxh1AqGlHR0e5aZq/JqKpN0PoUdyzUdO03+Xk5FSPt3qPK4DV1dWPmKb5gmmaRaPo5E2/RNO0Wk3TnisvL39nvBobFwB37txZ6PP5ANz68RLsZt5H07S3dV1/dsuWLfVjbWfMAFZXVz9qGMarRJQ1VmG+5eu7dF1/ury8/H/G0u6oAdy1a1die3v774jo2bEI8D249sXc3Nxfb9y4cXg0sowKwJ07d2YPDw/Djtw1mkZjvcY0Rx6BaNqounQoMTHxkU2bNnXGKpucN+LWduzYMd3v9+8xTXP+SBsLd/5ogBpJ27GAqmnamfj4+Ac2b97cMKJ7j+TkyspKpFsfElHBSK7zOjcaaAkJCZScnEwTJkygxMREwv848ohrGum6Tn6fj4Z9PvL5fDTQ308Dg4N0/bp3uBcLiER0hYju37p1K1LFmLaYGQjm+Xy+Q2MBLxJoSYmJlJmVRelpaZSWnk7xcXEMFATEdQwAdlW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JHCKjd4yv9je+Da8sp4wQ4/8h8JRFW93KqGuBHMRCYDz82LiUYR4oQzH7yoaXiYZ/EaGhp4l8A5kuePEpuOzyP/lj10vHQiGpBuMGEXkU/L+ml8jwAc2Q0+c88zS9EWHVQdgBqOgGUAjadRldX3+BsASjFUNCMCy0JMxri+dELu7n7tiReIbuAAElRYnpgUe8fplbroUn0i0/WIA9rBudKe/C3MUr9XQUJwXF9f73hiyYtxHvHolXF/7YliD0NevBMOSLALMaKwzq1+KjMEBHwm4MYCmHRerlcBwt+8Auubb+z0LCSGC111cPNevKMy0evVTyqQsHkCnnROtUmR2BuJccJwu56oPBYrZS91MOT8ixcvUnd3d4iqqoB+K69+kgYjvXwM4CGMifboq8rIcCrqZowA4j7fQw0dl6ItN4iue397Lx+Thr1ef4eOIb2TlaBum+gFiGrTvADyuibWz1SVhjqfPn06+FCjc/v2X3+ntq++gLGgoIDyrTd1hFNT9Vqvc6IB6vW9qtJedk7UGst6kfta23f7AkZVUKR9SUlJL8ydO3f9aABQVTIau8Z6/7q6OgTZ359XgKodPn78+COBQOAFTdOKvLxoNHBi+d7tZCIxzuO72sHBwedWrlz5/XoJrSrolStXkltaWiqI6J/UynY4cGLxuiNxMu52cH9d17FOZFt+fn5VQUHBuL7lPPLrMGKhRJhzLly4kNTd3f1z0zS/0xdxa5r228zMzD/Onj37r+NF3B4M0E6cOMGvgieiDZqmZaixWjSVjDaGHjaxR9f11zVN+/PixYv/el8F79VxqHdra+sa64cI7iMiPCGFXxNwrMWLBJobcF3X+ccINE3jHyPIy8vbO95qGkmem6bC0ZiD748dO8Y/hxEXF1caCAT45zA0TctXfw7DKij06rrei5/FME2zRdf1c6ZpYq/Bz2EsXbr0O/s5jP8H7IBGeRihM9IAAAAASUVORK5CYII=";
|
|
39040
38779
|
|
|
39041
38780
|
const isJSON = (str) => {
|
|
@@ -39462,6 +39201,14 @@ const getRowStyle = ({ row }) => {
|
|
|
39462
39201
|
}
|
|
39463
39202
|
return null;
|
|
39464
39203
|
};
|
|
39204
|
+
const handleTableHeight = (state, props) => {
|
|
39205
|
+
if (!props.isNestTable)
|
|
39206
|
+
return props.height;
|
|
39207
|
+
let tableHeight = props.styleSetting?.tableHeight || "table-simple";
|
|
39208
|
+
let dataLen = props.data?.length || 1;
|
|
39209
|
+
let height = state.checkWidth[tableHeight] * dataLen + 90;
|
|
39210
|
+
return `${height}px`;
|
|
39211
|
+
};
|
|
39465
39212
|
const handleName = (item, key = "name") => {
|
|
39466
39213
|
return item.alias || item[key];
|
|
39467
39214
|
};
|
|
@@ -39698,14 +39445,13 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
39698
39445
|
let _beforeSearchConvert = [];
|
|
39699
39446
|
let addInlineEditPrimaryKey = "";
|
|
39700
39447
|
const GROUP_TITLE_KEY = "group-show-title";
|
|
39701
|
-
const route = useRoute();
|
|
39702
39448
|
window.$message = useMessage();
|
|
39703
39449
|
const xGrid = ref(null);
|
|
39704
39450
|
const state = reactive(bigTableState);
|
|
39705
39451
|
const { formatData, htmlToText, getBtnStyle } = useFormat(state);
|
|
39706
39452
|
const { imgs2imgArr, parseDurationValue, parseCombinationValue, formatFieldText } = useTableParse(formatData);
|
|
39707
39453
|
const { allSelectedLength, checkOperateCurrentTable, setRowStatus, resetBatchOperationRowStatus, checkListFormUnionSettingParamsList, handleClickCancelBtnByInline, setAllRowInlineStatus, hideSelectCloumns, handleEditFormLength, resetOperationRowStatus, recordClickBtnInfo, getInlineOpreateRow } = useBatchEditing(props, state, emit, xGrid);
|
|
39708
|
-
const { initEditTable, activeMethod, deleteRow, onClickSelectTable } = useEdit(props, state, emit, xGrid);
|
|
39454
|
+
const { initEditTable, activeMethod, deleteRow, onClickSelectTable, onUpdateInput, getDefaultValue } = useEdit(props, state, emit, xGrid);
|
|
39709
39455
|
const { isAboutNestTable, isExpandTable, handleRowId, toggleExpandMethod, loadExpandMethod, nestHandleClickRow } = useNestTable(props, state, emit);
|
|
39710
39456
|
const attr = useAttrs();
|
|
39711
39457
|
const currentCheckedKeys = computed(() => {
|
|
@@ -39797,7 +39543,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
39797
39543
|
};
|
|
39798
39544
|
onMounted(() => {
|
|
39799
39545
|
bindDocumentClick();
|
|
39800
|
-
state.tableHeight =
|
|
39546
|
+
state.tableHeight = handleTableHeight(state, props);
|
|
39801
39547
|
if (!props.isNestTable)
|
|
39802
39548
|
return;
|
|
39803
39549
|
loadColumn(props.columnConfig);
|
|
@@ -39857,7 +39603,6 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
39857
39603
|
};
|
|
39858
39604
|
});
|
|
39859
39605
|
await table.loadData(formatList);
|
|
39860
|
-
initEditTable();
|
|
39861
39606
|
table.setCurrentRow({});
|
|
39862
39607
|
setCurrentPageRowChecked();
|
|
39863
39608
|
setGroupTreeExpand();
|
|
@@ -39897,13 +39642,9 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
39897
39642
|
};
|
|
39898
39643
|
const formatColumns = (map) => {
|
|
39899
39644
|
let { selectType } = getOtherConfigInit() || {};
|
|
39900
|
-
let { isBatchSelect, fieldList, showButtonTop, isScanMultiTable: isScanMultiTable2, isEdit = false, editConfig = {} } = map;
|
|
39645
|
+
let { isBatchSelect, fieldList = [], showButtonTop, isScanMultiTable: isScanMultiTable2, isEdit = false, editConfig = {} } = map;
|
|
39901
39646
|
if (isEdit) {
|
|
39902
|
-
state.editConfig = Object.assign(state.editConfig, editConfig, {
|
|
39903
|
-
mode: "cell",
|
|
39904
|
-
autoClear: true,
|
|
39905
|
-
activeMethod
|
|
39906
|
-
});
|
|
39647
|
+
state.editConfig = Object.assign(state.editConfig, editConfig, {});
|
|
39907
39648
|
}
|
|
39908
39649
|
if (selectType) {
|
|
39909
39650
|
isBatchSelect = 1;
|
|
@@ -40004,7 +39745,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
40004
39745
|
return formatter(params, item);
|
|
40005
39746
|
}
|
|
40006
39747
|
else {
|
|
40007
|
-
return createVNode("span", null, [params
|
|
39748
|
+
return createVNode("span", null, [getDefaultValue(params, item)]);
|
|
40008
39749
|
}
|
|
40009
39750
|
}
|
|
40010
39751
|
},
|
|
@@ -40043,29 +39784,24 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
40043
39784
|
};
|
|
40044
39785
|
const formatterEdit = (params, col) => {
|
|
40045
39786
|
let { row, column, $rowIndex, rowIndex } = params;
|
|
40046
|
-
let formType = column.formType || col.formType;
|
|
40047
|
-
if (formType === "
|
|
40048
|
-
|
|
40049
|
-
|
|
40050
|
-
|
|
40051
|
-
|
|
40052
|
-
|
|
39787
|
+
let formType = column.formType || col.formType || "";
|
|
39788
|
+
if (formType === "custom") {
|
|
39789
|
+
return col.slotFn(params);
|
|
39790
|
+
}
|
|
39791
|
+
const propsData = {
|
|
39792
|
+
col,
|
|
39793
|
+
row,
|
|
39794
|
+
index: $rowIndex
|
|
39795
|
+
};
|
|
39796
|
+
if (formType === "input" || formType === "number") {
|
|
39797
|
+
return createVNode(script$3, mergeProps(propsData, {
|
|
39798
|
+
"type": formType,
|
|
40053
39799
|
"value": row[col.columnName],
|
|
40054
39800
|
"onUpdate:value": ($event) => row[col.columnName] = $event,
|
|
40055
|
-
"
|
|
39801
|
+
"onUpdateInput": onUpdateInput
|
|
40056
39802
|
}), null);
|
|
40057
39803
|
}
|
|
40058
|
-
if (formType === "input") {
|
|
40059
|
-
return createVNode(script$3, {
|
|
40060
|
-
"value": row[col.columnName],
|
|
40061
|
-
"onUpdate:value": ($event) => row[col.columnName] = $event
|
|
40062
|
-
}, null);
|
|
40063
|
-
}
|
|
40064
39804
|
if (formType === "select") {
|
|
40065
|
-
const propsData = {
|
|
40066
|
-
col,
|
|
40067
|
-
row
|
|
40068
|
-
};
|
|
40069
39805
|
return createVNode(script$2, mergeProps(propsData, {
|
|
40070
39806
|
"value": row[col.columnName],
|
|
40071
39807
|
"onUpdate:value": ($event) => row[col.columnName] = $event,
|
|
@@ -40073,11 +39809,11 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
40073
39809
|
}), null);
|
|
40074
39810
|
}
|
|
40075
39811
|
};
|
|
40076
|
-
const getEditBtn = (row, col) => {
|
|
39812
|
+
const getEditBtn = (row, col, index) => {
|
|
40077
39813
|
return col.tileBtnList.map((btn) => {
|
|
40078
39814
|
if (btn.settingObj[0].trigger_type === "DELETE") {
|
|
40079
39815
|
return createVNode(NPopconfirm, {
|
|
40080
|
-
"onPositiveClick": () => deleteRow(row)
|
|
39816
|
+
"onPositiveClick": () => deleteRow(row, col, index)
|
|
40081
39817
|
}, {
|
|
40082
39818
|
trigger: () => createVNode(NButton, {
|
|
40083
39819
|
"color": btn.settingObj[0].color || "#999",
|
|
@@ -40167,8 +39903,8 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
40167
39903
|
return getOrCode(row, own, attrType);
|
|
40168
39904
|
}
|
|
40169
39905
|
if (column.property === "operatorColumn") {
|
|
40170
|
-
if (props.columnConfig.isEdit
|
|
40171
|
-
return getEditBtn(row, col);
|
|
39906
|
+
if (props.columnConfig.isEdit) {
|
|
39907
|
+
return getEditBtn(row, col, $rowIndex);
|
|
40172
39908
|
}
|
|
40173
39909
|
if (state.showButtonTop != 0 || props.isBatchEditing)
|
|
40174
39910
|
return;
|
|
@@ -40452,13 +40188,13 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
40452
40188
|
isAlias = !!tooltipTitle;
|
|
40453
40189
|
}
|
|
40454
40190
|
if (type === "format")
|
|
40455
|
-
return createVNode(script$
|
|
40191
|
+
return createVNode(script$5, {
|
|
40456
40192
|
"tooltipTitle": tooltipTitle,
|
|
40457
40193
|
"content": name,
|
|
40458
40194
|
"isAlias": isAlias
|
|
40459
40195
|
}, null);
|
|
40460
40196
|
return () => {
|
|
40461
|
-
return [createVNode(script$
|
|
40197
|
+
return [createVNode(script$5, {
|
|
40462
40198
|
"tooltipTitle": tooltipTitle,
|
|
40463
40199
|
"content": name,
|
|
40464
40200
|
"isAlias": isAlias
|
|
@@ -41012,7 +40748,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
41012
40748
|
return createVNode(NPopconfirm, {
|
|
41013
40749
|
"onPositiveClick": () => confirmScanMulti(params)
|
|
41014
40750
|
}, {
|
|
41015
|
-
trigger: () => createVNode(script$
|
|
40751
|
+
trigger: () => createVNode(script$4, {
|
|
41016
40752
|
"class": "scan-multi-delete",
|
|
41017
40753
|
"iconClass": "shanchu"
|
|
41018
40754
|
}, null),
|
|
@@ -41225,7 +40961,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
41225
40961
|
}, [createVNode("img", {
|
|
41226
40962
|
"class": "bigTable-qr-img",
|
|
41227
40963
|
"src": src
|
|
41228
|
-
}, null), createVNode("span", null, [createVNode(script$
|
|
40964
|
+
}, null), createVNode("span", null, [createVNode(script$4, {
|
|
41229
40965
|
"iconClass": "fangda"
|
|
41230
40966
|
}, null)])])];
|
|
41231
40967
|
};
|
|
@@ -41309,7 +41045,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
41309
41045
|
}
|
|
41310
41046
|
else {
|
|
41311
41047
|
icon = createVNode(NTooltip, null, {
|
|
41312
|
-
trigger: () => createVNode(script$
|
|
41048
|
+
trigger: () => createVNode(script$4, {
|
|
41313
41049
|
"iconClass": btn.icon,
|
|
41314
41050
|
"style": {
|
|
41315
41051
|
marginRight: mr
|
|
@@ -41320,7 +41056,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
41320
41056
|
}
|
|
41321
41057
|
}
|
|
41322
41058
|
else if (btn.iconSetting) {
|
|
41323
|
-
icon = createVNode(script$
|
|
41059
|
+
icon = createVNode(script$4, {
|
|
41324
41060
|
"iconClass": JSON.parse(btn.iconSetting).icon,
|
|
41325
41061
|
"style": {
|
|
41326
41062
|
marginRight: mr
|
|
@@ -41636,9 +41372,6 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
41636
41372
|
removeInlineAddRow();
|
|
41637
41373
|
handleClickCancelBtnByInline();
|
|
41638
41374
|
});
|
|
41639
|
-
watch(() => route, (val) => {
|
|
41640
|
-
resetTableInlineEditStatus();
|
|
41641
|
-
});
|
|
41642
41375
|
watch(() => props.tableRefreshCache, (val, oldVal) => {
|
|
41643
41376
|
if (props.isNestTable)
|
|
41644
41377
|
return;
|
|
@@ -41752,7 +41485,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
41752
41485
|
onScroll: handlerScroll,
|
|
41753
41486
|
onCellMouseenter: handleCellMouseenter
|
|
41754
41487
|
}, {
|
|
41755
|
-
empty: withCtx(() => [unref(state).isShowEmpty ? (openBlock(), createElementBlock("div", _hoisted_9$1, [createVNode(script$
|
|
41488
|
+
empty: withCtx(() => [unref(state).isShowEmpty ? (openBlock(), createElementBlock("div", _hoisted_9$1, [createVNode(script$6, {
|
|
41756
41489
|
"no-data-img": props.emptyItems.noDataImg,
|
|
41757
41490
|
"no-data-tip": props.emptyItems.noDataTip,
|
|
41758
41491
|
"show-img": !props.isNestTable
|
|
@@ -41806,6 +41539,99 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
41806
41539
|
|
|
41807
41540
|
script$1.__file = "packages/big-table/src/BigTable.vue";
|
|
41808
41541
|
|
|
41542
|
+
/*!
|
|
41543
|
+
* vue-router v4.0.13
|
|
41544
|
+
* (c) 2022 Eduardo San Martin Morote
|
|
41545
|
+
* @license MIT
|
|
41546
|
+
*/
|
|
41547
|
+
|
|
41548
|
+
const hasSymbol = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
41549
|
+
const PolySymbol = (name) =>
|
|
41550
|
+
// vr = vue router
|
|
41551
|
+
hasSymbol
|
|
41552
|
+
? Symbol((process.env.NODE_ENV !== 'production') ? '[vue-router]: ' + name : name)
|
|
41553
|
+
: ((process.env.NODE_ENV !== 'production') ? '[vue-router]: ' : '_vr_') + name;
|
|
41554
|
+
// rvlm = Router View Location Matched
|
|
41555
|
+
/**
|
|
41556
|
+
* RouteRecord being rendered by the closest ancestor Router View. Used for
|
|
41557
|
+
* `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
|
|
41558
|
+
* Location Matched
|
|
41559
|
+
*
|
|
41560
|
+
* @internal
|
|
41561
|
+
*/
|
|
41562
|
+
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view location matched' : 'rvlm');
|
|
41563
|
+
/**
|
|
41564
|
+
* Allows overriding the router view depth to control which component in
|
|
41565
|
+
* `matched` is rendered. rvd stands for Router View Depth
|
|
41566
|
+
*
|
|
41567
|
+
* @internal
|
|
41568
|
+
*/
|
|
41569
|
+
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view depth' : 'rvd');
|
|
41570
|
+
/**
|
|
41571
|
+
* Allows overriding the router instance returned by `useRouter` in tests. r
|
|
41572
|
+
* stands for router
|
|
41573
|
+
*
|
|
41574
|
+
* @internal
|
|
41575
|
+
*/
|
|
41576
|
+
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router' : 'r');
|
|
41577
|
+
/**
|
|
41578
|
+
* Allows overriding the current route returned by `useRoute` in tests. rl
|
|
41579
|
+
* stands for route location
|
|
41580
|
+
*
|
|
41581
|
+
* @internal
|
|
41582
|
+
*/
|
|
41583
|
+
const routeLocationKey = /*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'route location' : 'rl');
|
|
41584
|
+
/**
|
|
41585
|
+
* Allows overriding the current route used by router-view. Internally this is
|
|
41586
|
+
* used when the `route` prop is passed.
|
|
41587
|
+
*
|
|
41588
|
+
* @internal
|
|
41589
|
+
*/
|
|
41590
|
+
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'router view location' : 'rvl');
|
|
41591
|
+
|
|
41592
|
+
var NavigationType;
|
|
41593
|
+
(function (NavigationType) {
|
|
41594
|
+
NavigationType["pop"] = "pop";
|
|
41595
|
+
NavigationType["push"] = "push";
|
|
41596
|
+
})(NavigationType || (NavigationType = {}));
|
|
41597
|
+
var NavigationDirection;
|
|
41598
|
+
(function (NavigationDirection) {
|
|
41599
|
+
NavigationDirection["back"] = "back";
|
|
41600
|
+
NavigationDirection["forward"] = "forward";
|
|
41601
|
+
NavigationDirection["unknown"] = "";
|
|
41602
|
+
})(NavigationDirection || (NavigationDirection = {}));
|
|
41603
|
+
|
|
41604
|
+
/*#__PURE__*/ PolySymbol((process.env.NODE_ENV !== 'production') ? 'navigation failure' : 'nf');
|
|
41605
|
+
/**
|
|
41606
|
+
* Enumeration with all possible types for navigation failures. Can be passed to
|
|
41607
|
+
* {@link isNavigationFailure} to check for specific failures.
|
|
41608
|
+
*/
|
|
41609
|
+
var NavigationFailureType;
|
|
41610
|
+
(function (NavigationFailureType) {
|
|
41611
|
+
/**
|
|
41612
|
+
* An aborted navigation is a navigation that failed because a navigation
|
|
41613
|
+
* guard returned `false` or called `next(false)`
|
|
41614
|
+
*/
|
|
41615
|
+
NavigationFailureType[NavigationFailureType["aborted"] = 4] = "aborted";
|
|
41616
|
+
/**
|
|
41617
|
+
* A cancelled navigation is a navigation that failed because a more recent
|
|
41618
|
+
* navigation finished started (not necessarily finished).
|
|
41619
|
+
*/
|
|
41620
|
+
NavigationFailureType[NavigationFailureType["cancelled"] = 8] = "cancelled";
|
|
41621
|
+
/**
|
|
41622
|
+
* A duplicated navigation is a navigation that failed because it was
|
|
41623
|
+
* initiated while already being at the exact same location.
|
|
41624
|
+
*/
|
|
41625
|
+
NavigationFailureType[NavigationFailureType["duplicated"] = 16] = "duplicated";
|
|
41626
|
+
})(NavigationFailureType || (NavigationFailureType = {}));
|
|
41627
|
+
/**
|
|
41628
|
+
* Returns the current route location. Equivalent to using `$route` inside
|
|
41629
|
+
* templates.
|
|
41630
|
+
*/
|
|
41631
|
+
function useRoute() {
|
|
41632
|
+
return inject(routeLocationKey);
|
|
41633
|
+
}
|
|
41634
|
+
|
|
41809
41635
|
const _withScopeId = (n) => (pushScopeId("data-v-5cd39776"), n = n(), popScopeId(), n);
|
|
41810
41636
|
const _hoisted_1 = { class: "fields-set-content" };
|
|
41811
41637
|
const _hoisted_2 = { class: "fields-table" };
|