cnhis-design-vue 3.0.5 → 3.0.8
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 +34 -0
- package/es/big-table/index.js +220 -142
- package/es/button-print/index.css +32 -32
- package/es/button-print/index.js +3 -2
- package/es/drag-layout/index.css +32 -32
- package/es/field-set/index.css +74 -74
- package/es/grid/index.css +89 -89
- package/es/index.css +275 -0
- package/es/index.js +1480 -256
- package/es/select-person/index.css +1319 -0
- package/es/select-person/index.js +13191 -0
- package/package.json +3 -3
- package/packages/big-table/src/BigTable.vue +39 -30
- package/packages/big-table/src/bigTableEmits.ts +2 -2
- package/packages/big-table/src/bigTableProps.ts +1 -1
- package/packages/big-table/src/components/edit-form/edit-date.vue +41 -0
- package/packages/big-table/src/components/edit-form/edit-input.vue +2 -2
- package/packages/big-table/src/components/edit-form/edit-select.vue +12 -3
- package/packages/big-table/src/hooks/useEdit.ts +17 -5
- package/packages/button-print/src/ButtonPrint.vue +2 -1
- package/packages/index.ts +5 -2
- package/packages/select-person/index.ts +11 -0
- package/packages/select-person/src/SelectPerson.vue +1104 -0
- package/packages/select-person/src/search-tree.vue +326 -0
- package/packages/select-person/src/utils/index.js +66 -0
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { watch, h as h$1, resolveComponent, defineComponent, inject, computed, nextTick, reactive, createApp, ref, Teleport, createCommentVNode, provide, onMounted, onUnmounted, getCurrentInstance, onBeforeUnmount, onActivated, onDeactivated, createVNode, mergeProps, isVNode, openBlock, createElementBlock, unref, createElementVNode, toDisplayString, withCtx, normalizeClass, renderSlot, createTextVNode, useAttrs, normalizeStyle, withDirectives, vShow, Fragment, createBlock, vModelSelect, vModelText, pushScopeId, popScopeId, vModelCheckbox, withModifiers } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { watch, h as h$1, resolveComponent, defineComponent, inject, computed, nextTick, reactive, createApp, ref, Teleport, createCommentVNode, provide, onMounted, onUnmounted, getCurrentInstance, onBeforeUnmount, onActivated, onDeactivated, createVNode, mergeProps, isVNode, openBlock, createElementBlock, unref, createElementVNode, toDisplayString, withCtx, normalizeClass, renderSlot, createTextVNode, useAttrs, normalizeStyle, withDirectives, vShow, Fragment, createBlock, vModelSelect, vModelText, pushScopeId, popScopeId, vModelCheckbox, withModifiers, renderList } from 'vue';
|
|
2
|
+
import { NInput, NInputNumber, NSelect, NDatePicker, NTooltip, useMessage, NIcon, NPopconfirm, NButton, NInputGroup, NCheckbox, NCheckboxGroup, NSpace, NProgress, NDropdown, NSwitch, NPopover, NSpin, NRadio, NModal, NForm, NGrid, NFormItemGi, NFormItem, NTree } from 'naive-ui';
|
|
3
|
+
import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline, EllipsisVerticalSharp, Reload, ChevronDown, Search, CloseCircleSharp } from '@vicons/ionicons5';
|
|
4
4
|
import draggable from 'vuedraggable';
|
|
5
5
|
|
|
6
6
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -1764,7 +1764,7 @@ var eachTree$1 = eachTree_1;
|
|
|
1764
1764
|
* @param {Object} context 上下文
|
|
1765
1765
|
* @return {Array}
|
|
1766
1766
|
*/
|
|
1767
|
-
function filterTree$
|
|
1767
|
+
function filterTree$2 (obj, iterate, options, context) {
|
|
1768
1768
|
var result = [];
|
|
1769
1769
|
if (obj && iterate) {
|
|
1770
1770
|
eachTree$1(obj, function (item, index, items, path, parent, nodes) {
|
|
@@ -1776,7 +1776,7 @@ function filterTree$1 (obj, iterate, options, context) {
|
|
|
1776
1776
|
return result
|
|
1777
1777
|
}
|
|
1778
1778
|
|
|
1779
|
-
var filterTree_1 = filterTree$
|
|
1779
|
+
var filterTree_1 = filterTree$2;
|
|
1780
1780
|
|
|
1781
1781
|
var helperCreateTreeFunc = helperCreateTreeFunc_1;
|
|
1782
1782
|
|
|
@@ -5326,7 +5326,7 @@ var toTreeArray = toTreeArray_1;
|
|
|
5326
5326
|
var findTree = findTree_1;
|
|
5327
5327
|
var eachTree = eachTree_1;
|
|
5328
5328
|
var mapTree = mapTree_1;
|
|
5329
|
-
var filterTree = filterTree_1;
|
|
5329
|
+
var filterTree$1 = filterTree_1;
|
|
5330
5330
|
var searchTree = searchTree_1;
|
|
5331
5331
|
var arrayIndexOf = arrayIndexOf_1;
|
|
5332
5332
|
var arrayLastIndexOf = arrayLastIndexOf_1;
|
|
@@ -5518,7 +5518,7 @@ assign(XEUtils, {
|
|
|
5518
5518
|
findTree: findTree,
|
|
5519
5519
|
eachTree: eachTree,
|
|
5520
5520
|
mapTree: mapTree,
|
|
5521
|
-
filterTree: filterTree,
|
|
5521
|
+
filterTree: filterTree$1,
|
|
5522
5522
|
searchTree: searchTree,
|
|
5523
5523
|
|
|
5524
5524
|
// base
|
|
@@ -30877,7 +30877,7 @@ const bigTableState = {
|
|
|
30877
30877
|
|
|
30878
30878
|
const bigTableProps = {
|
|
30879
30879
|
data: { type: Array, default: () => [] },
|
|
30880
|
-
|
|
30880
|
+
maxCheckSize: { type: Number, default: 0 },
|
|
30881
30881
|
showFooter: Boolean,
|
|
30882
30882
|
sumData: { type: Object, default: () => ({}) },
|
|
30883
30883
|
avgData: { type: Object, default: () => ({}) },
|
|
@@ -31033,7 +31033,8 @@ const bigTableEmits = [
|
|
|
31033
31033
|
"selectionChangeLocal",
|
|
31034
31034
|
"switchBtnOnChange",
|
|
31035
31035
|
"asyncTableChange",
|
|
31036
|
-
"
|
|
31036
|
+
"formChange",
|
|
31037
|
+
"scroll"
|
|
31037
31038
|
];
|
|
31038
31039
|
|
|
31039
31040
|
var moment$1 = {exports: {}};
|
|
@@ -38412,6 +38413,162 @@ const useNestTable = (props, state, emit) => {
|
|
|
38412
38413
|
};
|
|
38413
38414
|
};
|
|
38414
38415
|
|
|
38416
|
+
var script$e = defineComponent({
|
|
38417
|
+
name: "EditInput",
|
|
38418
|
+
inheritAttrs: false,
|
|
38419
|
+
components: {
|
|
38420
|
+
NInput,
|
|
38421
|
+
NInputNumber
|
|
38422
|
+
},
|
|
38423
|
+
props: {
|
|
38424
|
+
type: {
|
|
38425
|
+
type: String,
|
|
38426
|
+
default: "input"
|
|
38427
|
+
},
|
|
38428
|
+
col: {
|
|
38429
|
+
type: Object,
|
|
38430
|
+
default: () => ({})
|
|
38431
|
+
},
|
|
38432
|
+
row: {
|
|
38433
|
+
type: Object,
|
|
38434
|
+
default: () => ({})
|
|
38435
|
+
},
|
|
38436
|
+
index: {
|
|
38437
|
+
type: [Number, Object],
|
|
38438
|
+
default: 0
|
|
38439
|
+
}
|
|
38440
|
+
},
|
|
38441
|
+
emits: ["formChange"],
|
|
38442
|
+
setup(props, { attrs, slots, emit }) {
|
|
38443
|
+
const onUpdateValue = (value) => {
|
|
38444
|
+
emit("formChange", {
|
|
38445
|
+
value,
|
|
38446
|
+
row: props.row,
|
|
38447
|
+
column: props.col,
|
|
38448
|
+
index: props.index
|
|
38449
|
+
});
|
|
38450
|
+
};
|
|
38451
|
+
return () => props.type === "input" ? createVNode(NInput, mergeProps(attrs, {
|
|
38452
|
+
"onUpdateValue": onUpdateValue
|
|
38453
|
+
}), null) : createVNode(NInputNumber, mergeProps(attrs, {
|
|
38454
|
+
"onUpdateValue": onUpdateValue
|
|
38455
|
+
}), null);
|
|
38456
|
+
}
|
|
38457
|
+
});
|
|
38458
|
+
|
|
38459
|
+
script$e.__file = "packages/big-table/src/components/edit-form/edit-input.vue";
|
|
38460
|
+
|
|
38461
|
+
var script$d = defineComponent({
|
|
38462
|
+
name: "EditSelect",
|
|
38463
|
+
inheritAttrs: false,
|
|
38464
|
+
components: {
|
|
38465
|
+
NSelect
|
|
38466
|
+
},
|
|
38467
|
+
props: {
|
|
38468
|
+
col: {
|
|
38469
|
+
type: Object,
|
|
38470
|
+
default: () => ({})
|
|
38471
|
+
},
|
|
38472
|
+
row: {
|
|
38473
|
+
type: Object,
|
|
38474
|
+
default: () => ({})
|
|
38475
|
+
},
|
|
38476
|
+
index: {
|
|
38477
|
+
type: [Number, Object],
|
|
38478
|
+
default: 0
|
|
38479
|
+
}
|
|
38480
|
+
},
|
|
38481
|
+
emits: ["setOptions", "formChange"],
|
|
38482
|
+
setup(props, { attrs, slots, emit }) {
|
|
38483
|
+
const state = reactive({
|
|
38484
|
+
options: []
|
|
38485
|
+
});
|
|
38486
|
+
const setOptions = async () => {
|
|
38487
|
+
if (props.col.options) {
|
|
38488
|
+
state.options = JSON.parse(JSON.stringify(props.col.options));
|
|
38489
|
+
}
|
|
38490
|
+
else {
|
|
38491
|
+
const optionsName = `${props.col.columnName}_options`;
|
|
38492
|
+
state.options = props.row[optionsName] || await props.col.queryOptions();
|
|
38493
|
+
if (!props.row[optionsName]) {
|
|
38494
|
+
emit("setOptions", state.options);
|
|
38495
|
+
}
|
|
38496
|
+
}
|
|
38497
|
+
};
|
|
38498
|
+
setOptions();
|
|
38499
|
+
const onUpdateValue = (value) => {
|
|
38500
|
+
emit("formChange", {
|
|
38501
|
+
value,
|
|
38502
|
+
row: props.row,
|
|
38503
|
+
column: props.col,
|
|
38504
|
+
index: props.index
|
|
38505
|
+
});
|
|
38506
|
+
};
|
|
38507
|
+
return () => [createVNode(NSelect, mergeProps(attrs, {
|
|
38508
|
+
"options": state.options,
|
|
38509
|
+
"consistentMenuWidth": false,
|
|
38510
|
+
"clearable": true,
|
|
38511
|
+
"filterable": true,
|
|
38512
|
+
"to": false,
|
|
38513
|
+
"placeholder": "\u8BF7\u9009\u62E9",
|
|
38514
|
+
"onUpdateValue": onUpdateValue
|
|
38515
|
+
}), null)];
|
|
38516
|
+
}
|
|
38517
|
+
});
|
|
38518
|
+
|
|
38519
|
+
script$d.__file = "packages/big-table/src/components/edit-form/edit-select.vue";
|
|
38520
|
+
|
|
38521
|
+
var script$c = defineComponent({
|
|
38522
|
+
name: "EditDate",
|
|
38523
|
+
inheritAttrs: false,
|
|
38524
|
+
components: {
|
|
38525
|
+
NDatePicker
|
|
38526
|
+
},
|
|
38527
|
+
props: {
|
|
38528
|
+
col: {
|
|
38529
|
+
type: Object,
|
|
38530
|
+
default: () => ({})
|
|
38531
|
+
},
|
|
38532
|
+
row: {
|
|
38533
|
+
type: Object,
|
|
38534
|
+
default: () => ({})
|
|
38535
|
+
},
|
|
38536
|
+
index: {
|
|
38537
|
+
type: [Number, Object],
|
|
38538
|
+
default: 0
|
|
38539
|
+
}
|
|
38540
|
+
},
|
|
38541
|
+
emits: ["formChange"],
|
|
38542
|
+
setup(props, { attrs, slots, emit }) {
|
|
38543
|
+
const onConfirm = (value) => {
|
|
38544
|
+
emit("formChange", {
|
|
38545
|
+
value,
|
|
38546
|
+
row: props.row,
|
|
38547
|
+
column: props.col,
|
|
38548
|
+
index: props.index
|
|
38549
|
+
});
|
|
38550
|
+
};
|
|
38551
|
+
const config = {
|
|
38552
|
+
type: props.col.type || "datetime",
|
|
38553
|
+
clearable: props.col.clearable || true,
|
|
38554
|
+
disabled: props.col.disabled || false,
|
|
38555
|
+
valueFormat: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
|
|
38556
|
+
to: false
|
|
38557
|
+
};
|
|
38558
|
+
return () => createVNode(NDatePicker, mergeProps(attrs, config, {
|
|
38559
|
+
"onUpdateFormattedValue": onConfirm
|
|
38560
|
+
}), null);
|
|
38561
|
+
}
|
|
38562
|
+
});
|
|
38563
|
+
|
|
38564
|
+
script$c.__file = "packages/big-table/src/components/edit-form/edit-date.vue";
|
|
38565
|
+
|
|
38566
|
+
const comps = {
|
|
38567
|
+
"input": script$e,
|
|
38568
|
+
"number": script$e,
|
|
38569
|
+
"select": script$d,
|
|
38570
|
+
"date": script$c
|
|
38571
|
+
};
|
|
38415
38572
|
const useEdit = (props, state, emit, xGrid) => {
|
|
38416
38573
|
const initEditTable = async () => {
|
|
38417
38574
|
const { isEdit, fieldList = [] } = props.columnConfig;
|
|
@@ -38467,14 +38624,15 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
38467
38624
|
await xGrid.value.insertAt(record, getInsertRecords.at(-1));
|
|
38468
38625
|
xGrid.value.clearActived();
|
|
38469
38626
|
};
|
|
38470
|
-
const
|
|
38471
|
-
|
|
38627
|
+
const onFormChange = ({ value, row, column, index }) => {
|
|
38628
|
+
row[column.columnName] = value;
|
|
38629
|
+
emit("formChange", { value, row, column, index });
|
|
38472
38630
|
};
|
|
38473
38631
|
const getDefaultValue = (params, item) => {
|
|
38474
38632
|
const value = params.row[item.columnName];
|
|
38475
38633
|
if (item.formType === "select") {
|
|
38476
38634
|
if (item.options) {
|
|
38477
|
-
return item.options.find((v) => v.value
|
|
38635
|
+
return item.options.find((v) => v.value == value)?.label || "";
|
|
38478
38636
|
}
|
|
38479
38637
|
if (item.queryOptions) {
|
|
38480
38638
|
return params.row[`${item.columnName}_options`]?.find((v) => v.value === value)?.label || "";
|
|
@@ -38488,7 +38646,7 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
38488
38646
|
activeMethod,
|
|
38489
38647
|
deleteRow,
|
|
38490
38648
|
onClickSelectTable,
|
|
38491
|
-
|
|
38649
|
+
onFormChange,
|
|
38492
38650
|
getDefaultValue
|
|
38493
38651
|
};
|
|
38494
38652
|
};
|
|
@@ -38501,9 +38659,9 @@ var img$4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAggAAAGUCAYAAABQsNrGA
|
|
|
38501
38659
|
|
|
38502
38660
|
var img$3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAADKCAYAAABDnT56AAAAAXNSR0IArs4c6QAAN55JREFUeNrtfQmQJFeZXmZVdfU108dcmrPnliyNrhEa0LHSMEigC0loFwFCSGtjYxZsEw6vcYTDa4fWG2z4iGDDYe8aAoN30aJYQKwCQSCJlRBmhEASOkejY0bXaKZ7ru65+qwz/X1Z+apfvcrMyqyurq6e/v+IrMzK62W+fP/3/uv9z7KEhISEhISEhISEhISEhIS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uHbCBYRMZgp6TAZpnbJWF2evdiWDeRHybKu0Ugbi1NI560hDGOu+Ur6U3+zy6W5g57jS4ngIy1oFMOjygGAM+yYsujXpxcjlJq1SVqcpDyAyGtMXNGnCmW/1b1tCQkIlbijlZaC00OMtaUMdyLpi/1tvFa0tWwqe6uDUmy27VcUlISGhamBIePxx1jG9kJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJA//X+kXatP82cdjQAAAABJRU5ErkJggg==";
|
|
38503
38661
|
|
|
38504
|
-
const _hoisted_1$
|
|
38505
|
-
const _hoisted_2$
|
|
38506
|
-
const _hoisted_3$
|
|
38662
|
+
const _hoisted_1$a = { class: "no-data-tip NoData-page" };
|
|
38663
|
+
const _hoisted_2$9 = ["src"];
|
|
38664
|
+
const _hoisted_3$7 = { key: 1 };
|
|
38507
38665
|
var script$b = /* @__PURE__ */ defineComponent({
|
|
38508
38666
|
props: {
|
|
38509
38667
|
noDataTip: {
|
|
@@ -38552,14 +38710,14 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
38552
38710
|
return res;
|
|
38553
38711
|
});
|
|
38554
38712
|
return (_ctx, _cache) => {
|
|
38555
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
38713
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
38556
38714
|
__props.showImg ? (openBlock(), createElementBlock("img", {
|
|
38557
38715
|
key: 0,
|
|
38558
38716
|
src: unref(imgStr),
|
|
38559
38717
|
alt: ""
|
|
38560
|
-
}, null, 8, _hoisted_2$
|
|
38718
|
+
}, null, 8, _hoisted_2$9)) : createCommentVNode("v-if", true),
|
|
38561
38719
|
createElementVNode("p", null, toDisplayString(__props.noDataTip), 1),
|
|
38562
|
-
unref(handleDesc) ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
38720
|
+
unref(handleDesc) ? (openBlock(), createElementBlock("span", _hoisted_3$7, toDisplayString(unref(handleDesc)), 1)) : createCommentVNode("v-if", true)
|
|
38563
38721
|
]);
|
|
38564
38722
|
};
|
|
38565
38723
|
}
|
|
@@ -38568,12 +38726,12 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
38568
38726
|
script$b.__scopeId = "data-v-4a4b0812";
|
|
38569
38727
|
script$b.__file = "packages/big-table/src/components/NoData.vue";
|
|
38570
38728
|
|
|
38571
|
-
const _hoisted_1$
|
|
38572
|
-
const __default__$
|
|
38729
|
+
const _hoisted_1$9 = { class: "text-over-tooltip-components" };
|
|
38730
|
+
const __default__$9 = {
|
|
38573
38731
|
name: "TextOverTooltip"
|
|
38574
38732
|
};
|
|
38575
38733
|
var script$a = /* @__PURE__ */ defineComponent({
|
|
38576
|
-
...__default__$
|
|
38734
|
+
...__default__$9,
|
|
38577
38735
|
props: {
|
|
38578
38736
|
content: { type: [String, Number], required: false },
|
|
38579
38737
|
className: { type: String, required: false },
|
|
@@ -38607,7 +38765,7 @@ var script$a = /* @__PURE__ */ defineComponent({
|
|
|
38607
38765
|
isDisabledTooltip.value = false;
|
|
38608
38766
|
};
|
|
38609
38767
|
return (_ctx, _cache) => {
|
|
38610
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
38768
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
38611
38769
|
createVNode(unref(NTooltip), {
|
|
38612
38770
|
effect: __props.effect,
|
|
38613
38771
|
show: unref(isDisabledTooltip),
|
|
@@ -38643,13 +38801,13 @@ var script$a = /* @__PURE__ */ defineComponent({
|
|
|
38643
38801
|
script$a.__scopeId = "data-v-6633a934";
|
|
38644
38802
|
script$a.__file = "packages/big-table/src/components/TextOverTooltip.vue";
|
|
38645
38803
|
|
|
38646
|
-
const _hoisted_1$
|
|
38647
|
-
const _hoisted_2$
|
|
38648
|
-
const __default__$
|
|
38804
|
+
const _hoisted_1$8 = { key: 0 };
|
|
38805
|
+
const _hoisted_2$8 = ["xlink:href"];
|
|
38806
|
+
const __default__$8 = {
|
|
38649
38807
|
name: "SvgIcon"
|
|
38650
38808
|
};
|
|
38651
38809
|
var script$9 = /* @__PURE__ */ defineComponent({
|
|
38652
|
-
...__default__$
|
|
38810
|
+
...__default__$8,
|
|
38653
38811
|
props: {
|
|
38654
38812
|
iconClass: { type: String, required: true, default: "" },
|
|
38655
38813
|
title: { type: String, required: true, default: "" },
|
|
@@ -38671,8 +38829,8 @@ var script$9 = /* @__PURE__ */ defineComponent({
|
|
|
38671
38829
|
class: unref(svgClass),
|
|
38672
38830
|
"aria-hidden": "true"
|
|
38673
38831
|
}, _ctx.$attrs), [
|
|
38674
|
-
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$
|
|
38675
|
-
createElementVNode("use", { "xlink:href": unref(iconName) }, null, 8, _hoisted_2$
|
|
38832
|
+
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$8, toDisplayString(__props.title), 1)) : createCommentVNode("v-if", true),
|
|
38833
|
+
createElementVNode("use", { "xlink:href": unref(iconName) }, null, 8, _hoisted_2$8)
|
|
38676
38834
|
], 16);
|
|
38677
38835
|
};
|
|
38678
38836
|
}
|
|
@@ -38681,100 +38839,6 @@ var script$9 = /* @__PURE__ */ defineComponent({
|
|
|
38681
38839
|
script$9.__scopeId = "data-v-d1ad5be8";
|
|
38682
38840
|
script$9.__file = "src/component/svg/index.vue";
|
|
38683
38841
|
|
|
38684
|
-
var script$8 = defineComponent({
|
|
38685
|
-
name: "EditInput",
|
|
38686
|
-
inheritAttrs: false,
|
|
38687
|
-
components: {
|
|
38688
|
-
NInput,
|
|
38689
|
-
NInputNumber
|
|
38690
|
-
},
|
|
38691
|
-
props: {
|
|
38692
|
-
type: {
|
|
38693
|
-
type: String,
|
|
38694
|
-
default: "input"
|
|
38695
|
-
},
|
|
38696
|
-
col: {
|
|
38697
|
-
type: Object,
|
|
38698
|
-
default: () => ({})
|
|
38699
|
-
},
|
|
38700
|
-
row: {
|
|
38701
|
-
type: Object,
|
|
38702
|
-
default: () => ({})
|
|
38703
|
-
},
|
|
38704
|
-
index: {
|
|
38705
|
-
type: [Number, Object],
|
|
38706
|
-
default: 0
|
|
38707
|
-
}
|
|
38708
|
-
},
|
|
38709
|
-
emits: ["updateInput"],
|
|
38710
|
-
setup(props, { attrs, slots, emit }) {
|
|
38711
|
-
const onUpdateValue = (value) => {
|
|
38712
|
-
emit("updateInput", {
|
|
38713
|
-
value,
|
|
38714
|
-
row: props.row,
|
|
38715
|
-
column: props.col,
|
|
38716
|
-
index: props.index
|
|
38717
|
-
});
|
|
38718
|
-
};
|
|
38719
|
-
return () => props.type === "input" ? createVNode(NInput, mergeProps(attrs, {
|
|
38720
|
-
"onUpdateValue": onUpdateValue
|
|
38721
|
-
}), null) : createVNode(NInputNumber, mergeProps(attrs, {
|
|
38722
|
-
"onUpdateValue": onUpdateValue
|
|
38723
|
-
}), null);
|
|
38724
|
-
}
|
|
38725
|
-
});
|
|
38726
|
-
|
|
38727
|
-
script$8.__file = "packages/big-table/src/components/edit-form/edit-input.vue";
|
|
38728
|
-
|
|
38729
|
-
var script$7 = defineComponent({
|
|
38730
|
-
name: "EditSelect",
|
|
38731
|
-
inheritAttrs: false,
|
|
38732
|
-
components: {
|
|
38733
|
-
NSelect
|
|
38734
|
-
},
|
|
38735
|
-
props: {
|
|
38736
|
-
col: {
|
|
38737
|
-
type: Object,
|
|
38738
|
-
default: () => {
|
|
38739
|
-
}
|
|
38740
|
-
},
|
|
38741
|
-
row: {
|
|
38742
|
-
type: Object,
|
|
38743
|
-
default: () => {
|
|
38744
|
-
}
|
|
38745
|
-
}
|
|
38746
|
-
},
|
|
38747
|
-
emits: ["setOptions"],
|
|
38748
|
-
setup(props, { attrs, slots, emit }) {
|
|
38749
|
-
const state = reactive({
|
|
38750
|
-
options: []
|
|
38751
|
-
});
|
|
38752
|
-
const setOptions = async () => {
|
|
38753
|
-
if (props.col.options) {
|
|
38754
|
-
state.options = JSON.parse(JSON.stringify(props.col.options));
|
|
38755
|
-
}
|
|
38756
|
-
else {
|
|
38757
|
-
const optionsName = `${props.col.columnName}_options`;
|
|
38758
|
-
state.options = props.row[optionsName] || await props.col.queryOptions();
|
|
38759
|
-
if (!props.row[optionsName]) {
|
|
38760
|
-
emit("setOptions", state.options);
|
|
38761
|
-
}
|
|
38762
|
-
}
|
|
38763
|
-
};
|
|
38764
|
-
setOptions();
|
|
38765
|
-
return () => [createVNode(NSelect, mergeProps(attrs, {
|
|
38766
|
-
"options": state.options,
|
|
38767
|
-
"consistentMenuWidth": false,
|
|
38768
|
-
"clearable": true,
|
|
38769
|
-
"filterable": true,
|
|
38770
|
-
"to": false,
|
|
38771
|
-
"placeholder": "\u8BF7\u9009\u62E9"
|
|
38772
|
-
}), null)];
|
|
38773
|
-
}
|
|
38774
|
-
});
|
|
38775
|
-
|
|
38776
|
-
script$7.__file = "packages/big-table/src/components/edit-form/edit-select.vue";
|
|
38777
|
-
|
|
38778
38842
|
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+OO6deuu34wmxh1AqGlHR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IxzuO72sHBwedWrlz5/XoJrSrolStXkltaWiqI6J/UynY4cGLxuiNxMu52cH9d17FOZFt+fn5VQUHBuL7lPPLrMGKhRJhzLly4kNTd3f1z0zS/0xdxa5r228zMzD/Onj37r+NF3B4M0E6cOMGvgieiDZqmZaixWjSVjDaGHjaxR9f11zVN+/PixYv/el8F79VxqHdra+sa64cI7iMiPCGFXxNwrMWLBJobcF3X+ccINE3jHyPIy8vbO95qGkmem6bC0ZiD748dO8Y/hxEXF1caCAT45zA0TctXfw7DKij06rrei5/FME2zRdf1c6ZpYq/Bz2EsXbr0O/s5jP8H7IBGeRihM9IAAAAASUVORK5CYII=";
|
|
38779
38843
|
|
|
38780
38844
|
const isJSON = (str) => {
|
|
@@ -39395,21 +39459,21 @@ var img$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSA
|
|
|
39395
39459
|
|
|
39396
39460
|
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAIAAABBat1dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEZ0lEQVR4nO3dQW7bMBRAQbvo/a+cbh6yZAqqFCl3ZlvYkhU/cPFL+v319fUCXq9fu28ATiEGiBggYoCIASIGiBggYoD8Hvzb+/2+7T5WG8wWxx9z0VBycNHxFafvdtELn2X8bK0MEDFAxAARA0QMEDFAxAARA0QMkNEEeuy0/aLTg9IrE9/pt13k/mnxx3wNXlYG+CYGiBggYoCIASIGiBggYoDMD90GFo1+tsx3Fu2HnP4spw25xp71TbAyQMQAEQNEDBAxQMQAEQNEDBAxQJZMoJ/lkw7W5QorA0QMEDFAxAARA0QMEDFAxAARA8QEev7g4S0nFj/rIORnsTJAxAARA0QMEDFAxAARA0QMkCVDt0+a79x/8PD4badHclfedtqzvglWBogYIGKAiAEiBogYIGKAiAEiBsj8BPpjzutdNJrdspt00bx84GO+Bi8rA3wTA0QMEDFAxAARA0QMEDFAxAB5P2uX6v3uHxWzi5UBIgaIGCBigIgBIgaIGCBigCw5eHjR0blXrDjod8vHvH836aL54KKh5JW3tTJAxAARA0QMEDFAxAARA0QMEDFARhPoRVPS6ddu2Uh5/0R8kekPcuD/J1jEygARA0QMEDFAxAARA0QMEDFARkO3LeeBLjrbdJrfz9xietJ35UtrZYCIASIGiBggYoCIASIGiBggYoDMb/vccjTsihfefwbwj69d8cIt8/L779bBw/APiAEiBogYIGKAiAEiBogYIGKAHLcHeuBZm4Pv/43aK/czbXw/0x9zy353KwNEDBAxQMQAEQNEDBAxQMQAGQ3dxu7fRnhlbHTaecZHXXHXRactOg3aygARA0QMEDFAxAARA0QMEDFAxAB5Tw/znnXQ77T7n89pDhxOL3q2VgaIGCBigIgBIgaIGCBigIgBIgbIaAL9wyvXbFZeZMXd3j/zvnLRRQchj502vfbTt/BXxAARA0QMEDFAxAARA0QMkNHBw9PbGp81jRp71mxxxR/ltMHZOlYGiBggYoCIASIGiBggYoCIASIGyPy2z49x2rx8yzbLRV+D035x2LZP+CtigIgBIgaIGCBigIgBIgbI/LbPZxlMWxZNx7Zss7x/2+dpQ9sr92NlgIgBIgaIGCBigIgBIgaIGCBigIwm0GOnjR5PO1h3y7bGFe7fEbqLlQEiBogYIGKAiAEiBogYIGKAiAEyP4Ee2DLTPc2WCetpY/hpW+b3VgaIGCBigIgBIgaIGCBigIgBsmTo9izT850tg6rTdpNOT0JPG/O9rAzwTQwQMUDEABEDRAwQMUDEABEDxAR6/qddF/1G7dj0RT9pVDz9Rxk/BCsDRAwQMUDEABEDRAwQMUDEABEDZMkE+lknBG+528Gg9LSnt+h+Fm3mvnK3VgaIGCBigIgBIgaIGCBigIgB8l60rfE0KyZHBz6fFX/NA6djiy5qZYCIASIGiBggYoCIASIGiBggYoCMJtDwX7EyQMQAEQNEDBAxQMQAEQNEDBAxQP4ApTl2NmJRF0AAAAAASUVORK5CYII=";
|
|
39397
39461
|
|
|
39398
|
-
const _hoisted_1$
|
|
39462
|
+
const _hoisted_1$7 = {
|
|
39399
39463
|
key: 0,
|
|
39400
39464
|
class: "check-wrap"
|
|
39401
39465
|
};
|
|
39402
|
-
const _hoisted_2$
|
|
39403
|
-
const _hoisted_3$
|
|
39466
|
+
const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("span", null, "\u7CFB\u7EDF\u68C0\u6D4B\u5230\u6709\u6570\u636E\u66F4\u65B0,", -1);
|
|
39467
|
+
const _hoisted_3$6 = {
|
|
39404
39468
|
class: "check-wrap"
|
|
39405
39469
|
};
|
|
39406
|
-
const _hoisted_4$
|
|
39470
|
+
const _hoisted_4$5 = {
|
|
39407
39471
|
class: "check-wrap-title"
|
|
39408
39472
|
};
|
|
39409
|
-
const _hoisted_5$
|
|
39473
|
+
const _hoisted_5$5 = {
|
|
39410
39474
|
key: 0
|
|
39411
39475
|
};
|
|
39412
|
-
const _hoisted_6$
|
|
39476
|
+
const _hoisted_6$5 = {
|
|
39413
39477
|
key: 1
|
|
39414
39478
|
};
|
|
39415
39479
|
const _hoisted_7$4 = {
|
|
@@ -39432,11 +39496,11 @@ const _hoisted_13$1 = {
|
|
|
39432
39496
|
function _isSlot(s) {
|
|
39433
39497
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
39434
39498
|
}
|
|
39435
|
-
const __default__$
|
|
39499
|
+
const __default__$7 = create({
|
|
39436
39500
|
name: "BigTable"
|
|
39437
39501
|
});
|
|
39438
|
-
var script$
|
|
39439
|
-
...__default__$
|
|
39502
|
+
var script$8 = /* @__PURE__ */ defineComponent({
|
|
39503
|
+
...__default__$7,
|
|
39440
39504
|
props: bigTableProps,
|
|
39441
39505
|
emits: bigTableEmits,
|
|
39442
39506
|
setup(__props, { expose, emit }) {
|
|
@@ -39451,7 +39515,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
39451
39515
|
const { formatData, htmlToText, getBtnStyle } = useFormat(state);
|
|
39452
39516
|
const { imgs2imgArr, parseDurationValue, parseCombinationValue, formatFieldText } = useTableParse(formatData);
|
|
39453
39517
|
const { allSelectedLength, checkOperateCurrentTable, setRowStatus, resetBatchOperationRowStatus, checkListFormUnionSettingParamsList, handleClickCancelBtnByInline, setAllRowInlineStatus, hideSelectCloumns, handleEditFormLength, resetOperationRowStatus, recordClickBtnInfo, getInlineOpreateRow } = useBatchEditing(props, state, emit, xGrid);
|
|
39454
|
-
const { initEditTable, activeMethod, deleteRow, onClickSelectTable,
|
|
39518
|
+
const { initEditTable, activeMethod, deleteRow, onClickSelectTable, onFormChange, getDefaultValue } = useEdit(props, state, emit, xGrid);
|
|
39455
39519
|
const { isAboutNestTable, isExpandTable, handleRowId, toggleExpandMethod, loadExpandMethod, nestHandleClickRow } = useNestTable(props, state, emit);
|
|
39456
39520
|
const attr = useAttrs();
|
|
39457
39521
|
const currentCheckedKeys = computed(() => {
|
|
@@ -39459,7 +39523,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
39459
39523
|
});
|
|
39460
39524
|
const visibleCancelCheckAllBtn = computed(() => {
|
|
39461
39525
|
let isCurrentPageAllCheck = state.currentPageSelectedLength === state.curAbleCheckedLen;
|
|
39462
|
-
let isMaxChecked = currentCheckedKeys.value.length === props.
|
|
39526
|
+
let isMaxChecked = currentCheckedKeys.value.length === props.maxCheckSize;
|
|
39463
39527
|
let isCheckedTotal = currentCheckedKeys.value.length === props.pageVO.total;
|
|
39464
39528
|
return isMaxChecked || !isCurrentPageAllCheck || isCheckedTotal;
|
|
39465
39529
|
});
|
|
@@ -39543,7 +39607,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
39543
39607
|
};
|
|
39544
39608
|
onMounted(() => {
|
|
39545
39609
|
bindDocumentClick();
|
|
39546
|
-
state.tableHeight = handleTableHeight(state, props);
|
|
39610
|
+
state.tableHeight = handleTableHeight(state, props) || "auto";
|
|
39547
39611
|
if (!props.isNestTable)
|
|
39548
39612
|
return;
|
|
39549
39613
|
loadColumn(props.columnConfig);
|
|
@@ -39785,29 +39849,31 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
39785
39849
|
const formatterEdit = (params, col) => {
|
|
39786
39850
|
let { row, column, $rowIndex, rowIndex } = params;
|
|
39787
39851
|
let formType = column.formType || col.formType || "";
|
|
39852
|
+
if (!formType)
|
|
39853
|
+
return null;
|
|
39788
39854
|
if (formType === "custom") {
|
|
39789
39855
|
return col.slotFn(params);
|
|
39790
39856
|
}
|
|
39857
|
+
const Comp = comps[formType] || "";
|
|
39858
|
+
if (!Comp)
|
|
39859
|
+
return null;
|
|
39791
39860
|
const propsData = {
|
|
39792
39861
|
col,
|
|
39793
39862
|
row,
|
|
39794
|
-
index: $rowIndex
|
|
39863
|
+
index: $rowIndex,
|
|
39864
|
+
type: formType,
|
|
39865
|
+
onFormChange
|
|
39795
39866
|
};
|
|
39796
|
-
if (formType === "
|
|
39797
|
-
|
|
39798
|
-
|
|
39799
|
-
|
|
39800
|
-
|
|
39801
|
-
"onUpdateInput": onUpdateInput
|
|
39802
|
-
}), null);
|
|
39867
|
+
if (formType === "date") {
|
|
39868
|
+
propsData.defaultFormattedValue = row[col.columnName];
|
|
39869
|
+
}
|
|
39870
|
+
else {
|
|
39871
|
+
propsData.defaultValue = row[col.columnName];
|
|
39803
39872
|
}
|
|
39804
39873
|
if (formType === "select") {
|
|
39805
|
-
|
|
39806
|
-
"value": row[col.columnName],
|
|
39807
|
-
"onUpdate:value": ($event) => row[col.columnName] = $event,
|
|
39808
|
-
"onSetOptions": (options) => row[`${col.columnName}_options`] = options
|
|
39809
|
-
}), null);
|
|
39874
|
+
propsData.onSetOptions = (options) => row[`${col.columnName}_options`] = options;
|
|
39810
39875
|
}
|
|
39876
|
+
return createVNode(Comp, propsData, null);
|
|
39811
39877
|
};
|
|
39812
39878
|
const getEditBtn = (row, col, index) => {
|
|
39813
39879
|
return col.tileBtnList?.map((btn) => {
|
|
@@ -39903,7 +39969,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
39903
39969
|
return getOrCode(row, own, attrType);
|
|
39904
39970
|
}
|
|
39905
39971
|
if (column.property === "operatorColumn") {
|
|
39906
|
-
if (props.columnConfig.isEdit) {
|
|
39972
|
+
if (props.columnConfig.isEdit && !row.initRow) {
|
|
39907
39973
|
return getEditBtn(row, col, $rowIndex);
|
|
39908
39974
|
}
|
|
39909
39975
|
if (state.showButtonTop != 0 || props.isBatchEditing)
|
|
@@ -40238,8 +40304,8 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
40238
40304
|
emit("refreshTable");
|
|
40239
40305
|
};
|
|
40240
40306
|
const handleCheckAll = () => {
|
|
40241
|
-
if (props.pageVO.total > props.
|
|
40242
|
-
let text = `\u5F53\u524D\u5217\u8868\u5171${props.pageVO.total}\u6761\u6570\u636E\uFF0C\u4E3A\u4E86\u786E\u4FDD\u7CFB\u7EDF\u5B89\u5168\uFF0C\u53EA\u80FD\u5355\u6B21\u64CD\u4F5C${props.
|
|
40307
|
+
if (props.pageVO.total > props.maxCheckSize) {
|
|
40308
|
+
let text = `\u5F53\u524D\u5217\u8868\u5171${props.pageVO.total}\u6761\u6570\u636E\uFF0C\u4E3A\u4E86\u786E\u4FDD\u7CFB\u7EDF\u5B89\u5168\uFF0C\u53EA\u80FD\u5355\u6B21\u64CD\u4F5C${props.maxCheckSize}\u6761\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u9AD8\u7EA7\u7B5B\u9009\u8FC7\u6EE4\u518D\u6B21\u5C1D\u8BD5`;
|
|
40243
40309
|
window.$message.warning(text);
|
|
40244
40310
|
}
|
|
40245
40311
|
emit("selectionChangeAll");
|
|
@@ -40327,7 +40393,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
40327
40393
|
};
|
|
40328
40394
|
const setChecklist = (list) => {
|
|
40329
40395
|
return list.map((i) => {
|
|
40330
|
-
i["checked"] = false;
|
|
40396
|
+
i["checked"] = i.checked || false;
|
|
40331
40397
|
if (state.isTree == 2) {
|
|
40332
40398
|
const treeNodeKey = state.levelLazyLoadSetting.childCountKey;
|
|
40333
40399
|
const { isTreeOrList = "" } = props.tableParams;
|
|
@@ -40617,8 +40683,8 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
40617
40683
|
const addCheckedRows = (rows) => {
|
|
40618
40684
|
removeCheckedDisabledRows(state);
|
|
40619
40685
|
let checkedRows = state.checkedRows;
|
|
40620
|
-
if (currentCheckedKeys.value.length + rows.length > props.
|
|
40621
|
-
window.$message.warning(`\u4E3A\u4E86\u4FDD\u8BC1\u7CFB\u7EDF\u5B89\u5168\uFF0C\u5355\u6B21\u64CD\u4F5C\u6570\u636E\u91CF\u9650\u989D\u4E3A${props.
|
|
40686
|
+
if (currentCheckedKeys.value.length + rows.length > props.maxCheckSize) {
|
|
40687
|
+
window.$message.warning(`\u4E3A\u4E86\u4FDD\u8BC1\u7CFB\u7EDF\u5B89\u5168\uFF0C\u5355\u6B21\u64CD\u4F5C\u6570\u636E\u91CF\u9650\u989D\u4E3A${props.maxCheckSize}\u6761\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u9AD8\u7EA7\u7B5B\u9009\u8FC7\u6EE4\u540E\u518D\u6B21\u5C1D\u8BD5`);
|
|
40622
40688
|
return false;
|
|
40623
40689
|
}
|
|
40624
40690
|
let newCheckedRows = rows.filter((row) => {
|
|
@@ -40687,10 +40753,21 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
40687
40753
|
emit("setNestTableClickSetting", props.isNestTable);
|
|
40688
40754
|
emit("showDrawer", theads);
|
|
40689
40755
|
};
|
|
40756
|
+
let scrollEvent = (params) => {
|
|
40757
|
+
emit("scroll", params);
|
|
40758
|
+
};
|
|
40759
|
+
const initScroll = () => {
|
|
40760
|
+
const { throttle = false, throttleTime = 800, throttleOptions = {} } = props.columnConfig?.scrollConfig;
|
|
40761
|
+
if (throttle) {
|
|
40762
|
+
scrollEvent = xeUtils.throttle(scrollEvent, throttleTime, throttleOptions);
|
|
40763
|
+
}
|
|
40764
|
+
};
|
|
40765
|
+
initScroll();
|
|
40690
40766
|
const handlerScroll = (params) => {
|
|
40691
40767
|
if (params.isX) {
|
|
40692
40768
|
hideFilterWrap(state, props);
|
|
40693
40769
|
}
|
|
40770
|
+
scrollEvent(params);
|
|
40694
40771
|
};
|
|
40695
40772
|
const handleCellMouseenter = ({ column, $event }) => {
|
|
40696
40773
|
if (column.showOverflow === "title") {
|
|
@@ -41403,18 +41480,18 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
41403
41480
|
style: normalizeStyle({
|
|
41404
41481
|
height: unref(state).tableHeight
|
|
41405
41482
|
})
|
|
41406
|
-
}, [unref(state).hasRefresh && !props.isNestTable ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
41483
|
+
}, [unref(state).hasRefresh && !props.isNestTable ? (openBlock(), createElementBlock("div", _hoisted_1$7, [createElementVNode("p", {
|
|
41407
41484
|
class: "check-wrap-title"
|
|
41408
|
-
}, [_hoisted_2$
|
|
41485
|
+
}, [_hoisted_2$7, createElementVNode("span", {
|
|
41409
41486
|
class: "check-wrap-btn",
|
|
41410
41487
|
onClick: refreshTable
|
|
41411
|
-
}, "\u70B9\u51FB\u67E5\u770B")])])) : createCommentVNode("v-if", true), createCommentVNode(" \u5168\u9009 \u9009\u62E9\u6846 "), withDirectives(createElementVNode("div", _hoisted_3$
|
|
41488
|
+
}, "\u70B9\u51FB\u67E5\u770B")])])) : createCommentVNode("v-if", true), createCommentVNode(" \u5168\u9009 \u9009\u62E9\u6846 "), withDirectives(createElementVNode("div", _hoisted_3$6, [createElementVNode("p", _hoisted_4$5, [createElementVNode("span", null, "\u5DF2\u52FE\u9009\u6570\u636E\u5171" + toDisplayString(unref(allSelectedLength)) + "\u6761", 1), withDirectives(createElementVNode("span", null, " \uFF08\u5F53\u524D\u9875" + toDisplayString(unref(state).currentPageSelectedLength) + "\u6761\uFF09 ", 513), [[vShow, unref(state).visibleCheckAllWrapMore]])]), unref(state).visibleCheckAllWrapMore && !props.asyncCount ? (openBlock(), createElementBlock(Fragment, {
|
|
41412
41489
|
key: 0
|
|
41413
41490
|
}, [!unref(visibleCancelCheckAllBtn) ? (openBlock(), createElementBlock("p", {
|
|
41414
41491
|
key: 0,
|
|
41415
41492
|
class: "check-wrap-btn",
|
|
41416
41493
|
onClick: handleCheckAll
|
|
41417
|
-
}, [_ctx.pageVO.total > _ctx.
|
|
41494
|
+
}, [_ctx.pageVO.total > _ctx.maxCheckSize ? (openBlock(), createElementBlock("span", _hoisted_5$5, [createCommentVNode(" {{ `\u6700\u5927\u52FE\u9009\u201C${tableName}\u201D ${maxCheckSize}\u6761\u6570\u636E` }} "), createTextVNode(toDisplayString(`\u52FE\u9009\u5168\u90E8\u9875 ${_ctx.maxCheckSize}\u6761\u6570\u636E`), 1)])) : (openBlock(), createElementBlock("span", _hoisted_6$5, [createCommentVNode(' {{ $t("1.9.598", { name: tableName, total }) }} '), createTextVNode(toDisplayString(`\u52FE\u9009\u5168\u90E8\u9875 ${_ctx.pageVO.total}\u6761\u6570\u636E`), 1)]))])) : (openBlock(), createElementBlock("p", {
|
|
41418
41495
|
key: 1,
|
|
41419
41496
|
class: "check-wrap-btn",
|
|
41420
41497
|
onClick: handleCancelAllCheck
|
|
@@ -41476,6 +41553,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
41476
41553
|
iconOpen: "iconfont icon-a-xitongtubiaozhediejian",
|
|
41477
41554
|
iconClose: "iconfont icon-a-xitongtubiaotianjia"
|
|
41478
41555
|
},
|
|
41556
|
+
"keyboard-config": _ctx.columnConfig.keyboardConfig || {},
|
|
41479
41557
|
onCellDblclick: rowdblclick,
|
|
41480
41558
|
onCellClick: handlerClickRow,
|
|
41481
41559
|
onCheckboxChange: selectionChange,
|
|
@@ -41526,7 +41604,7 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
41526
41604
|
}
|
|
41527
41605
|
})]),
|
|
41528
41606
|
_: 3
|
|
41529
|
-
}, 8, ["seq-config", "tree-config", "row-id", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
41607
|
+
}, 8, ["seq-config", "tree-config", "row-id", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
41530
41608
|
class: "refresh",
|
|
41531
41609
|
onClick: hanldeClickRefresh
|
|
41532
41610
|
}, [createVNode(unref(NIcon), {
|
|
@@ -41537,22 +41615,22 @@ var script$6 = /* @__PURE__ */ defineComponent({
|
|
|
41537
41615
|
}
|
|
41538
41616
|
});
|
|
41539
41617
|
|
|
41540
|
-
script$
|
|
41618
|
+
script$8.__file = "packages/big-table/src/BigTable.vue";
|
|
41541
41619
|
|
|
41542
|
-
script$
|
|
41543
|
-
app.component(script$
|
|
41620
|
+
script$8.install = function (app) {
|
|
41621
|
+
app.component(script$8.name, script$8);
|
|
41544
41622
|
};
|
|
41545
41623
|
|
|
41546
41624
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-726261b7"), n = n(), popScopeId(), n);
|
|
41547
|
-
const _hoisted_1$
|
|
41548
|
-
const _hoisted_2$
|
|
41549
|
-
const _hoisted_3$
|
|
41625
|
+
const _hoisted_1$6 = { class: "fields-set-content" };
|
|
41626
|
+
const _hoisted_2$6 = { class: "fields-table" };
|
|
41627
|
+
const _hoisted_3$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", {
|
|
41550
41628
|
class: "width-show",
|
|
41551
41629
|
style: { "width": "4%" }
|
|
41552
41630
|
}, null, -1));
|
|
41553
|
-
const _hoisted_4$
|
|
41554
|
-
const _hoisted_5$
|
|
41555
|
-
const _hoisted_6$
|
|
41631
|
+
const _hoisted_4$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "width-large" }, "\u6240\u6709\u5B57\u6BB5", -1));
|
|
41632
|
+
const _hoisted_5$4 = { class: "width-show" };
|
|
41633
|
+
const _hoisted_6$4 = /* @__PURE__ */ createTextVNode(" \u663E\u793A ");
|
|
41556
41634
|
const _hoisted_7$3 = { class: "width-show" };
|
|
41557
41635
|
const _hoisted_8$3 = /* @__PURE__ */ createTextVNode(" \u6392\u5E8F ");
|
|
41558
41636
|
const _hoisted_9$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "width-showed" }, "\u56FA\u5B9A", -1));
|
|
@@ -41589,11 +41667,11 @@ const _hoisted_29 = {
|
|
|
41589
41667
|
const _hoisted_30 = { class: "btn-operate" };
|
|
41590
41668
|
const _hoisted_31 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
41591
41669
|
const _hoisted_32 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
|
|
41592
|
-
const __default__$
|
|
41670
|
+
const __default__$6 = create({
|
|
41593
41671
|
name: "FieldSet"
|
|
41594
41672
|
});
|
|
41595
|
-
var script$
|
|
41596
|
-
...__default__$
|
|
41673
|
+
var script$7 = /* @__PURE__ */ defineComponent({
|
|
41674
|
+
...__default__$6,
|
|
41597
41675
|
props: {
|
|
41598
41676
|
fields: {
|
|
41599
41677
|
type: Array,
|
|
@@ -41718,22 +41796,22 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
41718
41796
|
style: { "width": "100%", "height": "100%" }
|
|
41719
41797
|
}, {
|
|
41720
41798
|
default: withCtx(() => [
|
|
41721
|
-
createElementVNode("div", _hoisted_1$
|
|
41722
|
-
createElementVNode("div", _hoisted_2$
|
|
41799
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
41800
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
41723
41801
|
createElementVNode("div", {
|
|
41724
41802
|
class: normalizeClass(["setting-title", { "seting-title-api": !unref(state).isCustomSearch }])
|
|
41725
41803
|
}, [
|
|
41726
|
-
_hoisted_3$
|
|
41804
|
+
_hoisted_3$5,
|
|
41727
41805
|
createCommentVNode(" \u5B57\u6BB5\u540D\u79F0 "),
|
|
41728
|
-
_hoisted_4$
|
|
41806
|
+
_hoisted_4$4,
|
|
41729
41807
|
createCommentVNode(" \u663E\u793A "),
|
|
41730
|
-
createElementVNode("span", _hoisted_5$
|
|
41808
|
+
createElementVNode("span", _hoisted_5$4, [
|
|
41731
41809
|
showCheckBox("isShow") ? (openBlock(), createBlock(unref(NCheckbox), {
|
|
41732
41810
|
key: 0,
|
|
41733
41811
|
checked: calculateCheck("isShow"),
|
|
41734
41812
|
"onUpdate:checked": _cache[0] || (_cache[0] = ($event) => handleAllCheck($event, "isShow"))
|
|
41735
41813
|
}, null, 8, ["checked"])) : createCommentVNode("v-if", true),
|
|
41736
|
-
_hoisted_6$
|
|
41814
|
+
_hoisted_6$4
|
|
41737
41815
|
]),
|
|
41738
41816
|
createCommentVNode(" \u6392\u5E8F "),
|
|
41739
41817
|
createElementVNode("span", _hoisted_7$3, [
|
|
@@ -41875,22 +41953,22 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
41875
41953
|
}
|
|
41876
41954
|
});
|
|
41877
41955
|
|
|
41878
|
-
script$
|
|
41879
|
-
script$
|
|
41956
|
+
script$7.__scopeId = "data-v-726261b7";
|
|
41957
|
+
script$7.__file = "packages/field-set/src/FieldSet.vue";
|
|
41880
41958
|
|
|
41881
|
-
script$
|
|
41882
|
-
app.component(script$
|
|
41959
|
+
script$7.install = function (app) {
|
|
41960
|
+
app.component(script$7.name, script$7);
|
|
41883
41961
|
};
|
|
41884
41962
|
|
|
41885
|
-
const _hoisted_1$
|
|
41886
|
-
const _hoisted_2$
|
|
41963
|
+
const _hoisted_1$5 = { class: "DragFormLeftItem" };
|
|
41964
|
+
const _hoisted_2$5 = {
|
|
41887
41965
|
key: 0,
|
|
41888
41966
|
class: "style-box"
|
|
41889
41967
|
};
|
|
41890
|
-
const _hoisted_3$
|
|
41891
|
-
const _hoisted_4$
|
|
41892
|
-
const _hoisted_5$
|
|
41893
|
-
const _hoisted_6$
|
|
41968
|
+
const _hoisted_3$4 = { class: "style-box" };
|
|
41969
|
+
const _hoisted_4$3 = { class: "style-box" };
|
|
41970
|
+
const _hoisted_5$3 = { class: "style-box" };
|
|
41971
|
+
const _hoisted_6$3 = /* @__PURE__ */ createTextVNode("\u7537");
|
|
41894
41972
|
const _hoisted_7$2 = /* @__PURE__ */ createTextVNode("\u5973");
|
|
41895
41973
|
const _hoisted_8$2 = { class: "style-box" };
|
|
41896
41974
|
const _hoisted_9$2 = { class: "style-box" };
|
|
@@ -41902,22 +41980,22 @@ const _hoisted_11$1 = {
|
|
|
41902
41980
|
key: 7,
|
|
41903
41981
|
class: "style-box"
|
|
41904
41982
|
};
|
|
41905
|
-
const __default__$
|
|
41983
|
+
const __default__$5 = {
|
|
41906
41984
|
name: "DragFormLeftItem"
|
|
41907
41985
|
};
|
|
41908
|
-
var script$
|
|
41909
|
-
...__default__$
|
|
41986
|
+
var script$6 = /* @__PURE__ */ defineComponent({
|
|
41987
|
+
...__default__$5,
|
|
41910
41988
|
props: {
|
|
41911
41989
|
element: { type: null, required: true }
|
|
41912
41990
|
},
|
|
41913
41991
|
setup(__props) {
|
|
41914
41992
|
return (_ctx, _cache) => {
|
|
41915
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
41993
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
41916
41994
|
createElementVNode("div", {
|
|
41917
41995
|
class: normalizeClass(["left-content", [__props.element.extraField ? "blue-border" : "", "item-" + __props.element.html_type]])
|
|
41918
41996
|
}, [
|
|
41919
41997
|
createCommentVNode(" \u6587\u672C\u57DF "),
|
|
41920
|
-
__props.element.html_type === "TEXTAREA" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
41998
|
+
__props.element.html_type === "TEXTAREA" ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
41921
41999
|
createVNode(unref(NInput), {
|
|
41922
42000
|
class: "style-box-input",
|
|
41923
42001
|
disabled: "",
|
|
@@ -41927,7 +42005,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
|
|
|
41927
42005
|
}, null, 8, ["placeholder"])
|
|
41928
42006
|
])) : __props.element.html_type === "DATE" || __props.element.html_type === "DATE-INPUT" || __props.element.html_type === "DATETIME-INPUT" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
41929
42007
|
createCommentVNode(" \u65E5\u671F "),
|
|
41930
|
-
createElementVNode("div", _hoisted_3$
|
|
42008
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
41931
42009
|
createVNode(unref(NDatePicker), {
|
|
41932
42010
|
disabled: "",
|
|
41933
42011
|
placeholder: __props.element.placeholder || __props.element.name
|
|
@@ -41935,7 +42013,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
|
|
|
41935
42013
|
])
|
|
41936
42014
|
], 2112)) : __props.element.html_type === "SELECT" || __props.element.html_type === "SEARCH" || __props.element.html_type === "SEARCH_MORE" || __props.element.html_type === "PHONE_TYPE" || __props.element.html_type === "IDCARD_TYPE" || __props.element.html_type === "LABEL" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
41937
42015
|
createCommentVNode(" \u4E0B\u62C9 \u6807\u7B7E "),
|
|
41938
|
-
createElementVNode("div", _hoisted_4$
|
|
42016
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
41939
42017
|
createVNode(unref(NSelect), {
|
|
41940
42018
|
disabled: "",
|
|
41941
42019
|
options: []
|
|
@@ -41943,13 +42021,13 @@ var script$4 = /* @__PURE__ */ defineComponent({
|
|
|
41943
42021
|
])
|
|
41944
42022
|
], 2112)) : __props.element.html_type === "RADIO" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
41945
42023
|
createCommentVNode(" \u5355\u9009 "),
|
|
41946
|
-
createElementVNode("div", _hoisted_5$
|
|
42024
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
41947
42025
|
createVNode(unref(NRadio), {
|
|
41948
42026
|
disabled: "",
|
|
41949
42027
|
defaultChecked: ""
|
|
41950
42028
|
}, {
|
|
41951
42029
|
default: withCtx(() => [
|
|
41952
|
-
_hoisted_6$
|
|
42030
|
+
_hoisted_6$3
|
|
41953
42031
|
]),
|
|
41954
42032
|
_: 1
|
|
41955
42033
|
}),
|
|
@@ -42003,18 +42081,18 @@ var script$4 = /* @__PURE__ */ defineComponent({
|
|
|
42003
42081
|
}
|
|
42004
42082
|
});
|
|
42005
42083
|
|
|
42006
|
-
script$
|
|
42007
|
-
script$
|
|
42084
|
+
script$6.__scopeId = "data-v-55852966";
|
|
42085
|
+
script$6.__file = "packages/drag-layout/src/DragFormLeftItem.vue";
|
|
42008
42086
|
|
|
42009
|
-
const _hoisted_1$
|
|
42010
|
-
const _hoisted_2$
|
|
42087
|
+
const _hoisted_1$4 = { class: "DragFormRightItem" };
|
|
42088
|
+
const _hoisted_2$4 = {
|
|
42011
42089
|
key: 0,
|
|
42012
42090
|
class: "red"
|
|
42013
42091
|
};
|
|
42014
|
-
const _hoisted_3$
|
|
42015
|
-
const _hoisted_4$
|
|
42016
|
-
const _hoisted_5$
|
|
42017
|
-
const _hoisted_6$
|
|
42092
|
+
const _hoisted_3$3 = { class: "form-btn" };
|
|
42093
|
+
const _hoisted_4$2 = /* @__PURE__ */ createTextVNode("\u5FC5\u586B");
|
|
42094
|
+
const _hoisted_5$2 = /* @__PURE__ */ createTextVNode("\u4FEE\u6539");
|
|
42095
|
+
const _hoisted_6$2 = /* @__PURE__ */ createTextVNode("\u79FB\u9664");
|
|
42018
42096
|
const _hoisted_7$1 = {
|
|
42019
42097
|
key: 0,
|
|
42020
42098
|
class: "red"
|
|
@@ -42023,11 +42101,11 @@ const _hoisted_8$1 = { class: "form-btn" };
|
|
|
42023
42101
|
const _hoisted_9$1 = /* @__PURE__ */ createTextVNode("\u5FC5\u586B");
|
|
42024
42102
|
const _hoisted_10$1 = /* @__PURE__ */ createTextVNode("\u4FEE\u6539");
|
|
42025
42103
|
const _hoisted_11 = /* @__PURE__ */ createTextVNode("\u79FB\u9664");
|
|
42026
|
-
const __default__$
|
|
42104
|
+
const __default__$4 = {
|
|
42027
42105
|
name: "DragFormRightItem"
|
|
42028
42106
|
};
|
|
42029
|
-
var script$
|
|
42030
|
-
...__default__$
|
|
42107
|
+
var script$5 = /* @__PURE__ */ defineComponent({
|
|
42108
|
+
...__default__$4,
|
|
42031
42109
|
props: {
|
|
42032
42110
|
fields: { type: null, required: false },
|
|
42033
42111
|
element: { type: null, required: true },
|
|
@@ -42095,7 +42173,7 @@ var script$3 = /* @__PURE__ */ defineComponent({
|
|
|
42095
42173
|
}, { immediate: true, deep: true });
|
|
42096
42174
|
return (_ctx, _cache) => {
|
|
42097
42175
|
const _component_DragFormRightItem = resolveComponent("DragFormRightItem", true);
|
|
42098
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
42176
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
42099
42177
|
__props.element.html_type === "COMBINATION" ? (openBlock(), createElementBlock("div", {
|
|
42100
42178
|
key: 0,
|
|
42101
42179
|
class: normalizeClass(["combination-item", {
|
|
@@ -42103,9 +42181,9 @@ var script$3 = /* @__PURE__ */ defineComponent({
|
|
|
42103
42181
|
}])
|
|
42104
42182
|
}, [
|
|
42105
42183
|
createElementVNode("div", null, [
|
|
42106
|
-
__props.element.is_null == 0 ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
42184
|
+
__props.element.is_null == 0 ? (openBlock(), createElementBlock("span", _hoisted_2$4, "*")) : createCommentVNode("v-if", true),
|
|
42107
42185
|
createTextVNode(" " + toDisplayString(__props.element.name) + " ", 1),
|
|
42108
|
-
createElementVNode("div", _hoisted_3$
|
|
42186
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
42109
42187
|
__props.element.html_type != "TEXT" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
42110
42188
|
__props.element.is_edit == 1 && !isLineType(__props.element.html_type) ? (openBlock(), createBlock(unref(NButton), {
|
|
42111
42189
|
key: 0,
|
|
@@ -42125,7 +42203,7 @@ var script$3 = /* @__PURE__ */ defineComponent({
|
|
|
42125
42203
|
onClick: _cache[1] || (_cache[1] = ($event) => handlechangNull(__props.element))
|
|
42126
42204
|
}, {
|
|
42127
42205
|
default: withCtx(() => [
|
|
42128
|
-
_hoisted_4$
|
|
42206
|
+
_hoisted_4$2
|
|
42129
42207
|
]),
|
|
42130
42208
|
_: 1
|
|
42131
42209
|
})) : createCommentVNode("v-if", true),
|
|
@@ -42135,7 +42213,7 @@ var script$3 = /* @__PURE__ */ defineComponent({
|
|
|
42135
42213
|
onClick: _cache[2] || (_cache[2] = ($event) => handleEdit(__props.element, __props.index, "edit"))
|
|
42136
42214
|
}, {
|
|
42137
42215
|
default: withCtx(() => [
|
|
42138
|
-
_hoisted_5$
|
|
42216
|
+
_hoisted_5$2
|
|
42139
42217
|
]),
|
|
42140
42218
|
_: 1
|
|
42141
42219
|
}, 512), [
|
|
@@ -42149,7 +42227,7 @@ var script$3 = /* @__PURE__ */ defineComponent({
|
|
|
42149
42227
|
onClick: _cache[3] || (_cache[3] = ($event) => handleDelete(__props.element, __props.index))
|
|
42150
42228
|
}, {
|
|
42151
42229
|
default: withCtx(() => [
|
|
42152
|
-
_hoisted_6$
|
|
42230
|
+
_hoisted_6$2
|
|
42153
42231
|
]),
|
|
42154
42232
|
_: 1
|
|
42155
42233
|
})) : createCommentVNode("v-if", true)
|
|
@@ -42270,25 +42348,25 @@ var script$3 = /* @__PURE__ */ defineComponent({
|
|
|
42270
42348
|
}
|
|
42271
42349
|
});
|
|
42272
42350
|
|
|
42273
|
-
script$
|
|
42274
|
-
script$
|
|
42351
|
+
script$5.__scopeId = "data-v-2d9603cc";
|
|
42352
|
+
script$5.__file = "packages/drag-layout/src/DragFormRightItem.vue";
|
|
42275
42353
|
|
|
42276
42354
|
const _withScopeId = (n) => (pushScopeId("data-v-3b2d7d19"), n = n(), popScopeId(), n);
|
|
42277
|
-
const _hoisted_1$
|
|
42278
|
-
const _hoisted_2$
|
|
42279
|
-
const _hoisted_3 = { class: "form-area" };
|
|
42280
|
-
const _hoisted_4 = { class: "info-header" };
|
|
42281
|
-
const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u65B0\u5EFA\u5206\u884C\u7B26");
|
|
42282
|
-
const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u65B0\u5EFA\u5206\u7EBF\u680F");
|
|
42355
|
+
const _hoisted_1$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "border-box" }, null, -1));
|
|
42356
|
+
const _hoisted_2$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "info-header" }, "\u5907\u9009\u5B57\u6BB5", -1));
|
|
42357
|
+
const _hoisted_3$2 = { class: "form-area" };
|
|
42358
|
+
const _hoisted_4$1 = { class: "info-header" };
|
|
42359
|
+
const _hoisted_5$1 = /* @__PURE__ */ createTextVNode("\u65B0\u5EFA\u5206\u884C\u7B26");
|
|
42360
|
+
const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("\u65B0\u5EFA\u5206\u7EBF\u680F");
|
|
42283
42361
|
const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("label", { class: "new-name" }, "\u540D\u79F0", -1));
|
|
42284
42362
|
const _hoisted_8 = /* @__PURE__ */ createTextVNode(" \u9ED8\u8BA4\u5C55\u5F00 ");
|
|
42285
42363
|
const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
|
|
42286
42364
|
const _hoisted_10 = /* @__PURE__ */ createTextVNode(" \u4E0D\u53EF\u6298\u53E0 ");
|
|
42287
|
-
const __default__$
|
|
42365
|
+
const __default__$3 = create({
|
|
42288
42366
|
name: "DragLayout"
|
|
42289
42367
|
});
|
|
42290
|
-
var script$
|
|
42291
|
-
...__default__$
|
|
42368
|
+
var script$4 = /* @__PURE__ */ defineComponent({
|
|
42369
|
+
...__default__$3,
|
|
42292
42370
|
props: {
|
|
42293
42371
|
leftList: { type: Array, required: false, default: () => [] },
|
|
42294
42372
|
rightList: { type: Array, required: false, default: () => [] },
|
|
@@ -42594,14 +42672,14 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
42594
42672
|
ref_key: "dragLayoutContainer",
|
|
42595
42673
|
ref: dragLayoutContainer
|
|
42596
42674
|
}, [
|
|
42597
|
-
_hoisted_1$
|
|
42675
|
+
_hoisted_1$3,
|
|
42598
42676
|
createCommentVNode(" \u5DE6\u8FB9 "),
|
|
42599
42677
|
createElementVNode("div", {
|
|
42600
42678
|
class: "text-area",
|
|
42601
42679
|
ref_key: "textArea",
|
|
42602
42680
|
ref: textArea
|
|
42603
42681
|
}, [
|
|
42604
|
-
_hoisted_2$
|
|
42682
|
+
_hoisted_2$3,
|
|
42605
42683
|
createVNode(unref(draggable), {
|
|
42606
42684
|
class: "min-height text-draggable",
|
|
42607
42685
|
itemKey: "val_key",
|
|
@@ -42615,7 +42693,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
42615
42693
|
item: withCtx(({ element }) => [
|
|
42616
42694
|
createElementVNode("li", null, [
|
|
42617
42695
|
renderSlot(_ctx.$slots, "leftItem", { itemData: element }, () => [
|
|
42618
|
-
createVNode(script$
|
|
42696
|
+
createVNode(script$6, { element }, null, 8, ["element"])
|
|
42619
42697
|
])
|
|
42620
42698
|
])
|
|
42621
42699
|
]),
|
|
@@ -42623,8 +42701,8 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
42623
42701
|
}, 8, ["modelValue"])
|
|
42624
42702
|
], 512),
|
|
42625
42703
|
createCommentVNode(" \u53F3\u8FB9 "),
|
|
42626
|
-
createElementVNode("div", _hoisted_3, [
|
|
42627
|
-
createElementVNode("div", _hoisted_4, [
|
|
42704
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
42705
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
42628
42706
|
createVNode(unref(NButton), {
|
|
42629
42707
|
class: "add-divider",
|
|
42630
42708
|
dashed: "",
|
|
@@ -42632,7 +42710,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
42632
42710
|
onClick: handlerAddBranchLine
|
|
42633
42711
|
}, {
|
|
42634
42712
|
default: withCtx(() => [
|
|
42635
|
-
_hoisted_5
|
|
42713
|
+
_hoisted_5$1
|
|
42636
42714
|
]),
|
|
42637
42715
|
_: 1
|
|
42638
42716
|
}),
|
|
@@ -42643,7 +42721,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
42643
42721
|
onClick: handlerAddLine
|
|
42644
42722
|
}, {
|
|
42645
42723
|
default: withCtx(() => [
|
|
42646
|
-
_hoisted_6
|
|
42724
|
+
_hoisted_6$1
|
|
42647
42725
|
]),
|
|
42648
42726
|
_: 1
|
|
42649
42727
|
})
|
|
@@ -42669,7 +42747,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
42669
42747
|
})
|
|
42670
42748
|
}, [
|
|
42671
42749
|
renderSlot(_ctx.$slots, "rightItem", { itemData: element }, () => [
|
|
42672
|
-
createVNode(script$
|
|
42750
|
+
createVNode(script$5, {
|
|
42673
42751
|
element,
|
|
42674
42752
|
index,
|
|
42675
42753
|
onHandleEdit: handleEdit,
|
|
@@ -42931,11 +43009,11 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
42931
43009
|
}
|
|
42932
43010
|
});
|
|
42933
43011
|
|
|
42934
|
-
script$
|
|
42935
|
-
script$
|
|
43012
|
+
script$4.__scopeId = "data-v-3b2d7d19";
|
|
43013
|
+
script$4.__file = "packages/drag-layout/src/DragLayout.vue";
|
|
42936
43014
|
|
|
42937
|
-
script$
|
|
42938
|
-
app.component(script$
|
|
43015
|
+
script$4.install = function (app) {
|
|
43016
|
+
app.component(script$4.name, script$4);
|
|
42939
43017
|
};
|
|
42940
43018
|
|
|
42941
43019
|
function t(t2, e2, r2, n2, o2, i2, a2) {
|
|
@@ -45017,13 +45095,13 @@ var qi = "".concat("http://127.0.0.1:11111", "/services/print"), Hi = "".concat(
|
|
|
45017
45095
|
} }], i2 && r(o2.prototype, i2), t2;
|
|
45018
45096
|
}();
|
|
45019
45097
|
|
|
45020
|
-
const _hoisted_1 = { class: "content" };
|
|
45021
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u767B\u5F55");
|
|
45022
|
-
const __default__$
|
|
45098
|
+
const _hoisted_1$2 = { class: "content" };
|
|
45099
|
+
const _hoisted_2$2 = /* @__PURE__ */ createTextVNode("\u767B\u5F55");
|
|
45100
|
+
const __default__$2 = {
|
|
45023
45101
|
name: "IdentityVerificationModal"
|
|
45024
45102
|
};
|
|
45025
|
-
var script$
|
|
45026
|
-
...__default__$
|
|
45103
|
+
var script$3 = /* @__PURE__ */ defineComponent({
|
|
45104
|
+
...__default__$2,
|
|
45027
45105
|
props: {
|
|
45028
45106
|
verifyUser: { type: Function, required: false, default: () => Promise.resolve() },
|
|
45029
45107
|
identityVerificationTitle: { type: String, required: false },
|
|
@@ -45088,7 +45166,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
45088
45166
|
onAfterLeave: handleClickClose
|
|
45089
45167
|
}, {
|
|
45090
45168
|
default: withCtx(() => [
|
|
45091
|
-
createElementVNode("div", _hoisted_1, [
|
|
45169
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
45092
45170
|
createVNode(unref(NForm), {
|
|
45093
45171
|
class: "login-form",
|
|
45094
45172
|
ref_key: "formRef",
|
|
@@ -45126,7 +45204,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
45126
45204
|
onClick: handleClickSubmit
|
|
45127
45205
|
}, {
|
|
45128
45206
|
default: withCtx(() => [
|
|
45129
|
-
_hoisted_2
|
|
45207
|
+
_hoisted_2$2
|
|
45130
45208
|
]),
|
|
45131
45209
|
_: 1
|
|
45132
45210
|
})
|
|
@@ -45144,14 +45222,14 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
45144
45222
|
}
|
|
45145
45223
|
});
|
|
45146
45224
|
|
|
45147
|
-
script$
|
|
45148
|
-
script$
|
|
45225
|
+
script$3.__scopeId = "data-v-06588d4e";
|
|
45226
|
+
script$3.__file = "packages/button-print/src/components/IdentityVerification.vue";
|
|
45149
45227
|
|
|
45150
|
-
const __default__ = create({
|
|
45228
|
+
const __default__$1 = create({
|
|
45151
45229
|
name: "ButtonPrint"
|
|
45152
45230
|
});
|
|
45153
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
45154
|
-
...__default__,
|
|
45231
|
+
var script$2 = /* @__PURE__ */ defineComponent({
|
|
45232
|
+
...__default__$1,
|
|
45155
45233
|
props: {
|
|
45156
45234
|
btnText: { type: String, required: false, default: "\u6253\u5370" },
|
|
45157
45235
|
printText: { type: String, required: false, default: "\u76F4\u63A5\u6253\u5370" },
|
|
@@ -45163,7 +45241,8 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
45163
45241
|
verifyUser: { type: Function, required: false, default: () => Promise.resolve() },
|
|
45164
45242
|
queryPrintFormatByNumber: { type: Function, required: true, default: () => Promise.resolve({}) },
|
|
45165
45243
|
queryTemplateParams: { type: Function, required: false, default: () => Promise.resolve({}) },
|
|
45166
|
-
strategy: { type: String, required: false, default: "MULTI" }
|
|
45244
|
+
strategy: { type: String, required: false, default: "MULTI" },
|
|
45245
|
+
printParams: { type: Array, required: false }
|
|
45167
45246
|
},
|
|
45168
45247
|
emits: ["success", "error"],
|
|
45169
45248
|
setup(__props, { emit }) {
|
|
@@ -45227,7 +45306,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
45227
45306
|
emit("error", error);
|
|
45228
45307
|
};
|
|
45229
45308
|
const getPrintParams = (index = 0) => {
|
|
45230
|
-
const params = state.printParams[index];
|
|
45309
|
+
const params = props.printParams?.length ? props.printParams[index] : state.printParams[index];
|
|
45231
45310
|
return JSON.stringify(params);
|
|
45232
45311
|
};
|
|
45233
45312
|
const getOnceParams = () => {
|
|
@@ -45530,7 +45609,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
45530
45609
|
]),
|
|
45531
45610
|
_: 3
|
|
45532
45611
|
}, 8, ["show", "options"]),
|
|
45533
|
-
createVNode(script$
|
|
45612
|
+
createVNode(script$3, mergeProps({
|
|
45534
45613
|
modelValue: unref(state).identityVerification.visible,
|
|
45535
45614
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(state).identityVerification.visible = $event)
|
|
45536
45615
|
}, _ctx.$attrs, { onSuccess: verifiySuccess }), null, 16, ["modelValue"])
|
|
@@ -45539,8 +45618,1152 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
45539
45618
|
}
|
|
45540
45619
|
});
|
|
45541
45620
|
|
|
45542
|
-
script.__scopeId = "data-v-1e5281d7";
|
|
45543
|
-
script.__file = "packages/button-print/src/ButtonPrint.vue";
|
|
45621
|
+
script$2.__scopeId = "data-v-1e5281d7";
|
|
45622
|
+
script$2.__file = "packages/button-print/src/ButtonPrint.vue";
|
|
45623
|
+
|
|
45624
|
+
script$2.install = function (app) {
|
|
45625
|
+
app.component(script$2.name, script$2);
|
|
45626
|
+
};
|
|
45627
|
+
|
|
45628
|
+
const _hoisted_1$1 = {
|
|
45629
|
+
class: "search-tree-wrap"
|
|
45630
|
+
};
|
|
45631
|
+
const _hoisted_2$1 = {
|
|
45632
|
+
style: {
|
|
45633
|
+
"text-align": "center"
|
|
45634
|
+
}
|
|
45635
|
+
};
|
|
45636
|
+
const _hoisted_3$1 = {
|
|
45637
|
+
key: 1,
|
|
45638
|
+
class: "load-more-btn-wrap"
|
|
45639
|
+
};
|
|
45640
|
+
var script$1 = /* @__PURE__ */ defineComponent({
|
|
45641
|
+
props: {
|
|
45642
|
+
visible: {
|
|
45643
|
+
type: Boolean,
|
|
45644
|
+
required: true,
|
|
45645
|
+
default: false
|
|
45646
|
+
},
|
|
45647
|
+
searchNoMore: {
|
|
45648
|
+
type: Boolean,
|
|
45649
|
+
required: false,
|
|
45650
|
+
default: false
|
|
45651
|
+
},
|
|
45652
|
+
loadMorenLoadinng: {
|
|
45653
|
+
type: Boolean,
|
|
45654
|
+
required: false,
|
|
45655
|
+
default: false
|
|
45656
|
+
},
|
|
45657
|
+
formatTreeData: {
|
|
45658
|
+
type: Array,
|
|
45659
|
+
required: false,
|
|
45660
|
+
default: () => []
|
|
45661
|
+
},
|
|
45662
|
+
searchValue: {
|
|
45663
|
+
type: String,
|
|
45664
|
+
required: false
|
|
45665
|
+
},
|
|
45666
|
+
defaultExpandedKeys: {
|
|
45667
|
+
type: Array,
|
|
45668
|
+
required: true
|
|
45669
|
+
},
|
|
45670
|
+
allCheckedKeys: {
|
|
45671
|
+
type: null,
|
|
45672
|
+
required: false
|
|
45673
|
+
},
|
|
45674
|
+
dataListKeys: {
|
|
45675
|
+
type: null,
|
|
45676
|
+
required: false
|
|
45677
|
+
}
|
|
45678
|
+
},
|
|
45679
|
+
emits: ["addCheckedkeysMain", "removeCheckedkeysMain", "addCheckedkeysOther", "removeCheckedkeysOther", "searchOnloadMore"],
|
|
45680
|
+
setup(__props, { expose, emit }) {
|
|
45681
|
+
const props = __props;
|
|
45682
|
+
const state = reactive({
|
|
45683
|
+
expandedKeys: [],
|
|
45684
|
+
autoExpandParent: true,
|
|
45685
|
+
checkedKeys: [],
|
|
45686
|
+
defaultCheckedKeys: {
|
|
45687
|
+
main: [],
|
|
45688
|
+
other: []
|
|
45689
|
+
}
|
|
45690
|
+
});
|
|
45691
|
+
const dataLen = computed(() => props.formatTreeData?.length || 0);
|
|
45692
|
+
const resetData = () => {
|
|
45693
|
+
state.checkedKeys = [];
|
|
45694
|
+
state.expandedKeys = [];
|
|
45695
|
+
state.autoExpandParent = true;
|
|
45696
|
+
state.defaultCheckedKeys.main = [];
|
|
45697
|
+
state.defaultCheckedKeys.other = [];
|
|
45698
|
+
};
|
|
45699
|
+
const emitCheckedkeys = () => {
|
|
45700
|
+
emitCheckedkeysMain();
|
|
45701
|
+
emitCheckedkeysOther();
|
|
45702
|
+
setDefaultCheckedKeys();
|
|
45703
|
+
};
|
|
45704
|
+
const emitCheckedkeysMain = () => {
|
|
45705
|
+
let searchCheckedKeysMain = state.checkedKeys.filter((key) => {
|
|
45706
|
+
return props.dataListKeys.main.includes(key);
|
|
45707
|
+
});
|
|
45708
|
+
let defaultCheckedKeysMain = state.defaultCheckedKeys.main;
|
|
45709
|
+
let { add, remove } = calcChangeKeys(defaultCheckedKeysMain, searchCheckedKeysMain);
|
|
45710
|
+
emit("addCheckedkeysMain", add);
|
|
45711
|
+
emit("removeCheckedkeysMain", remove);
|
|
45712
|
+
};
|
|
45713
|
+
const emitCheckedkeysOther = () => {
|
|
45714
|
+
let searchCheckedKeysOther = state.checkedKeys.filter((key) => {
|
|
45715
|
+
return props.dataListKeys.other.includes(key);
|
|
45716
|
+
});
|
|
45717
|
+
let defaultCheckedKeysOther = state.defaultCheckedKeys.other;
|
|
45718
|
+
let { add, remove } = calcChangeKeys(defaultCheckedKeysOther, searchCheckedKeysOther);
|
|
45719
|
+
emit("addCheckedkeysOther", add);
|
|
45720
|
+
emit("removeCheckedkeysOther", remove);
|
|
45721
|
+
};
|
|
45722
|
+
const calcChangeKeys = (defaultCheckedKeys, currentCheckedKeys) => {
|
|
45723
|
+
let add = [];
|
|
45724
|
+
let remove = [];
|
|
45725
|
+
currentCheckedKeys.forEach((key) => {
|
|
45726
|
+
if (!defaultCheckedKeys.includes(key)) {
|
|
45727
|
+
add.push(key);
|
|
45728
|
+
}
|
|
45729
|
+
});
|
|
45730
|
+
defaultCheckedKeys.forEach((key) => {
|
|
45731
|
+
if (!currentCheckedKeys.includes(key)) {
|
|
45732
|
+
remove.push(key);
|
|
45733
|
+
}
|
|
45734
|
+
});
|
|
45735
|
+
return {
|
|
45736
|
+
add,
|
|
45737
|
+
remove
|
|
45738
|
+
};
|
|
45739
|
+
};
|
|
45740
|
+
const emptyCheckedKeys = () => {
|
|
45741
|
+
state.checkedKeys = [];
|
|
45742
|
+
emitCheckedkeys();
|
|
45743
|
+
};
|
|
45744
|
+
const setDefaultCheckedKeys = () => {
|
|
45745
|
+
setDefaultCheckedKeysMain();
|
|
45746
|
+
setDefaultCheckedKeysOther();
|
|
45747
|
+
setCurrentCheckedKeys();
|
|
45748
|
+
};
|
|
45749
|
+
const setDefaultCheckedKeysMain = () => {
|
|
45750
|
+
state.defaultCheckedKeys.main = props.dataListKeys.main.filter((key) => {
|
|
45751
|
+
return props.allCheckedKeys.main.includes(key);
|
|
45752
|
+
});
|
|
45753
|
+
};
|
|
45754
|
+
const setDefaultCheckedKeysOther = () => {
|
|
45755
|
+
state.defaultCheckedKeys.other = props.dataListKeys.other.filter((key) => {
|
|
45756
|
+
return props.allCheckedKeys.other.includes(key);
|
|
45757
|
+
});
|
|
45758
|
+
};
|
|
45759
|
+
const setCurrentCheckedKeys = () => {
|
|
45760
|
+
let { main, other } = state.defaultCheckedKeys;
|
|
45761
|
+
let res = [... /* @__PURE__ */new Set([...main, ...other])];
|
|
45762
|
+
state.checkedKeys = res;
|
|
45763
|
+
};
|
|
45764
|
+
const onCheck = () => {
|
|
45765
|
+
emitCheckedkeys();
|
|
45766
|
+
};
|
|
45767
|
+
const onExpand = (expandedKeys) => {
|
|
45768
|
+
state.expandedKeys = expandedKeys;
|
|
45769
|
+
state.autoExpandParent = false;
|
|
45770
|
+
};
|
|
45771
|
+
const searchOnloadMore = () => {
|
|
45772
|
+
emit("searchOnloadMore");
|
|
45773
|
+
};
|
|
45774
|
+
const renderLabel = ({ option }) => {
|
|
45775
|
+
return createVNode("div", {
|
|
45776
|
+
"class": "search-tree-item"
|
|
45777
|
+
}, [createVNode("div", {
|
|
45778
|
+
"class": "info-wrap"
|
|
45779
|
+
}, [createVNode(NTooltip, {
|
|
45780
|
+
"trigger": "hover"
|
|
45781
|
+
}, {
|
|
45782
|
+
default: () => `${option.title} ${option.sub_title || ""}`,
|
|
45783
|
+
trigger: () => createVNode("p", {
|
|
45784
|
+
"class": "info-wrap-top",
|
|
45785
|
+
"style": "margin: 0"
|
|
45786
|
+
}, [createVNode("span", {
|
|
45787
|
+
"class": "info-wrap-title"
|
|
45788
|
+
}, [createVNode("span", {
|
|
45789
|
+
"class": "c-title"
|
|
45790
|
+
}, [option.title]), createTextVNode("\u2009"), createVNode("span", {
|
|
45791
|
+
"class": "c-sub-title"
|
|
45792
|
+
}, [option.sub_title])])])
|
|
45793
|
+
})])]);
|
|
45794
|
+
};
|
|
45795
|
+
watch(() => props.defaultExpandedKeys, (val) => {
|
|
45796
|
+
state.expandedKeys = val;
|
|
45797
|
+
}, {
|
|
45798
|
+
immediate: true,
|
|
45799
|
+
deep: true
|
|
45800
|
+
});
|
|
45801
|
+
watch(() => props.visible, (val) => {
|
|
45802
|
+
if (!val) {
|
|
45803
|
+
resetData();
|
|
45804
|
+
return;
|
|
45805
|
+
}
|
|
45806
|
+
setDefaultCheckedKeys();
|
|
45807
|
+
});
|
|
45808
|
+
watch(() => dataLen, (val) => {
|
|
45809
|
+
if (val.value > 0) {
|
|
45810
|
+
setDefaultCheckedKeys();
|
|
45811
|
+
}
|
|
45812
|
+
});
|
|
45813
|
+
expose({
|
|
45814
|
+
setDefaultCheckedKeys,
|
|
45815
|
+
checkedKeys: state.checkedKeys,
|
|
45816
|
+
emptyCheckedKeys
|
|
45817
|
+
});
|
|
45818
|
+
return (_ctx, _cache) => {
|
|
45819
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [createVNode(unref(NTree), mergeProps(_ctx.$attrs, {
|
|
45820
|
+
ref: "searchTree",
|
|
45821
|
+
"checked-keys": unref(state).checkedKeys,
|
|
45822
|
+
"onUpdate:checked-keys": _cache[0] || (_cache[0] = ($event) => unref(state).checkedKeys = $event),
|
|
45823
|
+
"onUpdate:expandedKeys": onExpand,
|
|
45824
|
+
"onUpdate:checkedKeys": onCheck,
|
|
45825
|
+
checkable: "",
|
|
45826
|
+
cascade: "",
|
|
45827
|
+
"allow-checking-not-loaded": "",
|
|
45828
|
+
"check-strategy": "all",
|
|
45829
|
+
selectable: false,
|
|
45830
|
+
"expanded-keys": unref(state).expandedKeys,
|
|
45831
|
+
data: __props.formatTreeData,
|
|
45832
|
+
"render-label": renderLabel
|
|
45833
|
+
}), null, 16, ["checked-keys", "expanded-keys", "data"]), withDirectives(createElementVNode("div", _hoisted_2$1, [createCommentVNode(" loadMorenLoadinng "), __props.loadMorenLoadinng ? (openBlock(), createBlock(unref(NSpin), {
|
|
45834
|
+
key: 0
|
|
45835
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_3$1, [createVNode(unref(NIcon), {
|
|
45836
|
+
component: unref(Search),
|
|
45837
|
+
class: "search-input-icon"
|
|
45838
|
+
}, null, 8, ["component"]), createElementVNode("div", {
|
|
45839
|
+
class: "load-more-btn",
|
|
45840
|
+
onClick: searchOnloadMore
|
|
45841
|
+
}, " \u52A0\u8F7D\u66F4\u591A ")]))], 512), [[vShow, !__props.searchNoMore]])], 512)), [[vShow, __props.visible]]);
|
|
45842
|
+
};
|
|
45843
|
+
}
|
|
45844
|
+
});
|
|
45845
|
+
|
|
45846
|
+
script$1.__scopeId = "data-v-3b67e11b";
|
|
45847
|
+
script$1.__file = "packages/select-person/src/search-tree.vue";
|
|
45848
|
+
|
|
45849
|
+
const filterTree = ({ value, data, prop, filter, filterXor, children, visible, filterChildren = true, callback }) => {
|
|
45850
|
+
visible = visible || "visible";
|
|
45851
|
+
children = children || "children";
|
|
45852
|
+
prop = prop || "text";
|
|
45853
|
+
const filterNodeMethod = function(value2, data2) {
|
|
45854
|
+
if (!value2) {
|
|
45855
|
+
return true;
|
|
45856
|
+
}
|
|
45857
|
+
let flag = (data2[prop] || "").indexOf(value2) !== -1;
|
|
45858
|
+
return filterXor ? !flag : flag;
|
|
45859
|
+
};
|
|
45860
|
+
const traverse = function(node) {
|
|
45861
|
+
const childNodes = node[children] || [];
|
|
45862
|
+
childNodes.forEach((child) => {
|
|
45863
|
+
callback && callback(child);
|
|
45864
|
+
child[visible] = !node.root && !filterChildren && node[visible] || filterNodeMethod.call(child, value, child, prop);
|
|
45865
|
+
traverse(child);
|
|
45866
|
+
});
|
|
45867
|
+
if (!node[visible] && childNodes.length) {
|
|
45868
|
+
let allHidden = true;
|
|
45869
|
+
allHidden = !childNodes.some((child) => child[visible]);
|
|
45870
|
+
node[visible] = allHidden === false;
|
|
45871
|
+
}
|
|
45872
|
+
};
|
|
45873
|
+
let totalData = {
|
|
45874
|
+
root: true
|
|
45875
|
+
};
|
|
45876
|
+
totalData[children] = data;
|
|
45877
|
+
traverse(totalData);
|
|
45878
|
+
if (filter) {
|
|
45879
|
+
let copyData = data.slice();
|
|
45880
|
+
let filterHandle = (filterData) => {
|
|
45881
|
+
return filterData.filter((item, index) => {
|
|
45882
|
+
if (item[visible]) {
|
|
45883
|
+
if (item[children]) {
|
|
45884
|
+
item[children] = filterHandle(item[children]);
|
|
45885
|
+
}
|
|
45886
|
+
return true;
|
|
45887
|
+
}
|
|
45888
|
+
return false;
|
|
45889
|
+
});
|
|
45890
|
+
};
|
|
45891
|
+
return filterHandle(copyData);
|
|
45892
|
+
}
|
|
45893
|
+
};
|
|
45894
|
+
|
|
45895
|
+
const _hoisted_1 = {
|
|
45896
|
+
class: "personnel"
|
|
45897
|
+
};
|
|
45898
|
+
const _hoisted_2 = {
|
|
45899
|
+
class: "people-tree"
|
|
45900
|
+
};
|
|
45901
|
+
const _hoisted_3 = {
|
|
45902
|
+
class: "people-tree-item people-tree-left"
|
|
45903
|
+
};
|
|
45904
|
+
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u5168\u9009");
|
|
45905
|
+
const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u5168\u9009");
|
|
45906
|
+
const _hoisted_6 = {
|
|
45907
|
+
class: "people-tree-item tags-box"
|
|
45908
|
+
};
|
|
45909
|
+
const __default__ = create({
|
|
45910
|
+
name: "SelectPerson"
|
|
45911
|
+
});
|
|
45912
|
+
var script = /* @__PURE__ */ defineComponent({
|
|
45913
|
+
...__default__,
|
|
45914
|
+
props: {
|
|
45915
|
+
visible: {
|
|
45916
|
+
type: Boolean,
|
|
45917
|
+
required: false,
|
|
45918
|
+
default: false
|
|
45919
|
+
},
|
|
45920
|
+
isDetail: {
|
|
45921
|
+
type: Boolean,
|
|
45922
|
+
required: false,
|
|
45923
|
+
default: false
|
|
45924
|
+
},
|
|
45925
|
+
defaultList: {
|
|
45926
|
+
type: Array,
|
|
45927
|
+
required: false,
|
|
45928
|
+
default: () => []
|
|
45929
|
+
},
|
|
45930
|
+
data: {
|
|
45931
|
+
type: Array,
|
|
45932
|
+
required: false,
|
|
45933
|
+
default: () => []
|
|
45934
|
+
},
|
|
45935
|
+
searchPlaceholder: {
|
|
45936
|
+
type: String,
|
|
45937
|
+
required: false,
|
|
45938
|
+
default: "\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22"
|
|
45939
|
+
},
|
|
45940
|
+
searchButtonText: {
|
|
45941
|
+
type: String,
|
|
45942
|
+
required: false,
|
|
45943
|
+
default: "\u641C\u7D22"
|
|
45944
|
+
},
|
|
45945
|
+
wordbook: {
|
|
45946
|
+
type: null,
|
|
45947
|
+
required: true,
|
|
45948
|
+
default: () => ({})
|
|
45949
|
+
},
|
|
45950
|
+
wordbookChild: {
|
|
45951
|
+
type: null,
|
|
45952
|
+
required: false,
|
|
45953
|
+
default: () => ({})
|
|
45954
|
+
},
|
|
45955
|
+
SearchLoadMore: {
|
|
45956
|
+
type: Boolean,
|
|
45957
|
+
required: false,
|
|
45958
|
+
default: false
|
|
45959
|
+
},
|
|
45960
|
+
queryMainTreeData: {
|
|
45961
|
+
type: Function,
|
|
45962
|
+
required: false
|
|
45963
|
+
},
|
|
45964
|
+
queryLoadChildData: {
|
|
45965
|
+
type: Function,
|
|
45966
|
+
required: false
|
|
45967
|
+
},
|
|
45968
|
+
queryTreeSearch: {
|
|
45969
|
+
type: Function,
|
|
45970
|
+
required: false
|
|
45971
|
+
}
|
|
45972
|
+
},
|
|
45973
|
+
emits: ["check", "pubCheckedTreeItem", "handleOk", "change", "submitData", "update:visible"],
|
|
45974
|
+
setup(__props, { emit }) {
|
|
45975
|
+
const props = __props;
|
|
45976
|
+
window.$message = useMessage();
|
|
45977
|
+
const FIXEDKEY = "8982eeb4-0439-4100-9805-8cdd12b2256c-front-end-fixed-key";
|
|
45978
|
+
const searchTree = ref(null);
|
|
45979
|
+
const state = reactive({
|
|
45980
|
+
treeData: {
|
|
45981
|
+
main: [],
|
|
45982
|
+
search: []
|
|
45983
|
+
},
|
|
45984
|
+
expandedKeys: [],
|
|
45985
|
+
autoExpandParent: true,
|
|
45986
|
+
dataList: {
|
|
45987
|
+
main: [],
|
|
45988
|
+
other: []
|
|
45989
|
+
},
|
|
45990
|
+
checkedKeys: {
|
|
45991
|
+
main: [],
|
|
45992
|
+
other: []
|
|
45993
|
+
},
|
|
45994
|
+
search: {
|
|
45995
|
+
defaultExpandedKeys: [],
|
|
45996
|
+
status: 0,
|
|
45997
|
+
dataListKeys: {
|
|
45998
|
+
main: [],
|
|
45999
|
+
other: []
|
|
46000
|
+
},
|
|
46001
|
+
records: 0
|
|
46002
|
+
},
|
|
46003
|
+
searchValue: "",
|
|
46004
|
+
searchPage: 1,
|
|
46005
|
+
searchNoMore: false,
|
|
46006
|
+
title: "",
|
|
46007
|
+
checkedLeafKeys: [],
|
|
46008
|
+
spinning: false,
|
|
46009
|
+
loadMorenLoadinng: false,
|
|
46010
|
+
errorMsg: "",
|
|
46011
|
+
defaultShowList: [],
|
|
46012
|
+
checkedKeysMain: [],
|
|
46013
|
+
cacheParentIdObj: {},
|
|
46014
|
+
singleChecked: false,
|
|
46015
|
+
indeterminate: false,
|
|
46016
|
+
searchIndeterminate: false,
|
|
46017
|
+
searchChecked: false
|
|
46018
|
+
});
|
|
46019
|
+
const searchTreeVisable = computed(() => state.search.status == 2);
|
|
46020
|
+
const dataListMainKeys = computed(() => {
|
|
46021
|
+
if (!state.dataList.main.length)
|
|
46022
|
+
return [];
|
|
46023
|
+
return state.dataList.main.map((i) => i.key);
|
|
46024
|
+
});
|
|
46025
|
+
const dataListOtherKeys = computed(() => {
|
|
46026
|
+
if (!state.dataList.other.length)
|
|
46027
|
+
return [];
|
|
46028
|
+
return state.dataList.other.map((i) => i.key);
|
|
46029
|
+
});
|
|
46030
|
+
const checkedTreeItem = computed(() => {
|
|
46031
|
+
let otherItems = state.dataList.other.filter((item) => {
|
|
46032
|
+
return state.checkedKeys.other.includes(item.key);
|
|
46033
|
+
});
|
|
46034
|
+
let mainItems = state.dataList.main.filter((item) => {
|
|
46035
|
+
let { isLeaf, key } = item;
|
|
46036
|
+
let parentId = getParentId(item);
|
|
46037
|
+
let showKeys = [...state.checkedKeys.main, ...otherItems];
|
|
46038
|
+
let checked = showKeys.includes(key);
|
|
46039
|
+
if (isLeaf && parentId && state.checkedKeys.main.some((v) => v == parentId)) {
|
|
46040
|
+
checked = false;
|
|
46041
|
+
}
|
|
46042
|
+
return checked;
|
|
46043
|
+
});
|
|
46044
|
+
let list = uniqArrObj([...mainItems, ...otherItems], "key");
|
|
46045
|
+
return list;
|
|
46046
|
+
});
|
|
46047
|
+
const wordbookConfig = computed(() => {
|
|
46048
|
+
const { parent_id_obj, parent_name_obj } = props.wordbook || {};
|
|
46049
|
+
const { user_id_obj, user_name_obj } = props.wordbookChild || {};
|
|
46050
|
+
return {
|
|
46051
|
+
parent_id_obj,
|
|
46052
|
+
parent_name_obj,
|
|
46053
|
+
user_id_obj,
|
|
46054
|
+
user_name_obj
|
|
46055
|
+
};
|
|
46056
|
+
});
|
|
46057
|
+
const getLoadChildData = computed(() => {
|
|
46058
|
+
if (typeof props.queryLoadChildData == "function") {
|
|
46059
|
+
return onLoadData;
|
|
46060
|
+
}
|
|
46061
|
+
return null;
|
|
46062
|
+
});
|
|
46063
|
+
const renderLabel = ({ option }) => {
|
|
46064
|
+
if (option.isLeaf || !option.children) {
|
|
46065
|
+
return createVNode(NTooltip, {
|
|
46066
|
+
"trigger": "hover"
|
|
46067
|
+
}, {
|
|
46068
|
+
default: () => `${option.title} ${option.sub_title || ""}`,
|
|
46069
|
+
trigger: () => createVNode("span", null, [createVNode("span", {
|
|
46070
|
+
"class": "c-title"
|
|
46071
|
+
}, [option.title || option.key, createTextVNode("\u2009 ")]), createVNode("span", {
|
|
46072
|
+
"class": "c-sub-title"
|
|
46073
|
+
}, [option.sub_title])])
|
|
46074
|
+
});
|
|
46075
|
+
}
|
|
46076
|
+
else {
|
|
46077
|
+
return createVNode("span", {
|
|
46078
|
+
"class": "p-title"
|
|
46079
|
+
}, [createVNode("span", null, [option.title || option.key]), treeCount(option.count)]);
|
|
46080
|
+
}
|
|
46081
|
+
};
|
|
46082
|
+
const initDefault = () => {
|
|
46083
|
+
if (getLoadChildData.value) {
|
|
46084
|
+
getDefaultList();
|
|
46085
|
+
}
|
|
46086
|
+
else {
|
|
46087
|
+
nextTick(() => {
|
|
46088
|
+
state.checkedKeys.main = [...props.defaultList];
|
|
46089
|
+
});
|
|
46090
|
+
}
|
|
46091
|
+
};
|
|
46092
|
+
const getDefaultList = () => {
|
|
46093
|
+
let copy = JSON.parse(JSON.stringify(props.defaultList));
|
|
46094
|
+
if (Array.isArray(copy)) {
|
|
46095
|
+
copy.forEach((v) => {
|
|
46096
|
+
handleDefMapping(v);
|
|
46097
|
+
getuniqKey(v);
|
|
46098
|
+
let pId = getParentId(v);
|
|
46099
|
+
state.cacheParentIdObj[pId] = pId;
|
|
46100
|
+
});
|
|
46101
|
+
state.defaultShowList = copy;
|
|
46102
|
+
}
|
|
46103
|
+
};
|
|
46104
|
+
const handleDefMapping = (v) => {
|
|
46105
|
+
const { parent_id_obj, parent_name_obj, user_id_obj, user_name_obj } = wordbookConfig.value || {};
|
|
46106
|
+
const { parent_id_obj_key, parent_name_obj_key } = props.wordbook;
|
|
46107
|
+
const { user_id_obj_key, user_name_obj_key } = props.wordbookChild;
|
|
46108
|
+
v[parent_id_obj] = v[parent_id_obj_key] || v.parent_id;
|
|
46109
|
+
v[parent_name_obj] = v[parent_name_obj_key] || v.parent_name;
|
|
46110
|
+
v[user_id_obj] = v[user_id_obj_key] || v.user_id;
|
|
46111
|
+
v[user_name_obj] = v[user_name_obj_key] || v.user_name;
|
|
46112
|
+
};
|
|
46113
|
+
const staticDataInit = () => {
|
|
46114
|
+
if (!Array.isArray(props.data) || props.data.length == 0)
|
|
46115
|
+
return;
|
|
46116
|
+
state.treeData.main = JSON.parse(JSON.stringify(props.data));
|
|
46117
|
+
generateDataList(state.treeData.main, state.dataList.main);
|
|
46118
|
+
};
|
|
46119
|
+
const getcheckedKeys = () => {
|
|
46120
|
+
let checkedKeysMain = [], checkedKeysOther = [];
|
|
46121
|
+
let copy = JSON.parse(JSON.stringify(props.defaultList));
|
|
46122
|
+
if (Array.isArray(copy)) {
|
|
46123
|
+
copy.forEach((v) => {
|
|
46124
|
+
handleDefMapping(v);
|
|
46125
|
+
let key = getuniqKey(v);
|
|
46126
|
+
checkedKeysMain.push(key);
|
|
46127
|
+
if (String(key).includes(FIXEDKEY)) {
|
|
46128
|
+
checkedKeysOther.push(key);
|
|
46129
|
+
}
|
|
46130
|
+
});
|
|
46131
|
+
}
|
|
46132
|
+
return {
|
|
46133
|
+
checkedKeysMain,
|
|
46134
|
+
checkedKeysOther
|
|
46135
|
+
};
|
|
46136
|
+
};
|
|
46137
|
+
const loadSelected = async () => {
|
|
46138
|
+
try {
|
|
46139
|
+
let list = await Promise.all(state.treeData.main.map(async (v) => {
|
|
46140
|
+
const { parent_id_obj } = props.wordbook || {};
|
|
46141
|
+
if ([v.key, v[parent_id_obj], String(v[parent_id_obj])].includes(state.cacheParentIdObj[v[parent_id_obj]])) {
|
|
46142
|
+
await onLoadData(v);
|
|
46143
|
+
return v;
|
|
46144
|
+
}
|
|
46145
|
+
}));
|
|
46146
|
+
return list;
|
|
46147
|
+
}
|
|
46148
|
+
catch (error) {
|
|
46149
|
+
return Promise.resolve();
|
|
46150
|
+
}
|
|
46151
|
+
};
|
|
46152
|
+
const onLoadData = (option) => {
|
|
46153
|
+
return new Promise(async (resolve) => {
|
|
46154
|
+
if (option.children) {
|
|
46155
|
+
resolve();
|
|
46156
|
+
return;
|
|
46157
|
+
}
|
|
46158
|
+
option.children = await handleLoadChildData(option.key, option);
|
|
46159
|
+
hanldeFilterDefaultShowList(option.children);
|
|
46160
|
+
nextTick(() => {
|
|
46161
|
+
state.treeData.main = [...state.treeData.main];
|
|
46162
|
+
});
|
|
46163
|
+
addCheckedKeysChildrenMain(option);
|
|
46164
|
+
generateDataList(option.children || [], state.dataList.main);
|
|
46165
|
+
resolve();
|
|
46166
|
+
});
|
|
46167
|
+
};
|
|
46168
|
+
const getUsers = async () => {
|
|
46169
|
+
try {
|
|
46170
|
+
if (typeof props.queryMainTreeData !== "function") {
|
|
46171
|
+
return;
|
|
46172
|
+
}
|
|
46173
|
+
state.spinning = true;
|
|
46174
|
+
const { parent_id_obj } = wordbookConfig.value || {};
|
|
46175
|
+
let rows = await props.queryMainTreeData();
|
|
46176
|
+
let list = uniqArrObj(rows || [], parent_id_obj);
|
|
46177
|
+
state.treeData.main = list;
|
|
46178
|
+
generateDataList(state.treeData.main, state.dataList.main);
|
|
46179
|
+
await loadSelected();
|
|
46180
|
+
let { checkedKeysMain, checkedKeysOther } = getcheckedKeys();
|
|
46181
|
+
state.checkedKeys.main.push(...checkedKeysMain);
|
|
46182
|
+
state.checkedKeys.other = [...checkedKeysOther];
|
|
46183
|
+
state.treeData.main.forEach((f) => {
|
|
46184
|
+
if (f && f.children && f.children.length) {
|
|
46185
|
+
let flag = f.children.every((c) => checkedKeysMain.includes(c.key));
|
|
46186
|
+
if (flag && f.key) {
|
|
46187
|
+
state.checkedKeys.main.push(f.key);
|
|
46188
|
+
}
|
|
46189
|
+
}
|
|
46190
|
+
});
|
|
46191
|
+
state.spinning = false;
|
|
46192
|
+
}
|
|
46193
|
+
catch (error) {
|
|
46194
|
+
state.spinning = false;
|
|
46195
|
+
window.$message.error("\u67E5\u8BE2\u5F02\u5E38");
|
|
46196
|
+
}
|
|
46197
|
+
};
|
|
46198
|
+
const loadMainChildData = (searchResultTreeData) => {
|
|
46199
|
+
return new Promise(async (resolve) => {
|
|
46200
|
+
let promises = searchResultTreeData.map(async (item) => {
|
|
46201
|
+
if (item.users) {
|
|
46202
|
+
let mainTreeItem = state.treeData.main.find((mainItem) => mainItem.key == item.key);
|
|
46203
|
+
if (!mainTreeItem || mainTreeItem && !mainTreeItem.children) {
|
|
46204
|
+
if (!mainTreeItem) {
|
|
46205
|
+
mainTreeItem = {
|
|
46206
|
+
...item
|
|
46207
|
+
};
|
|
46208
|
+
}
|
|
46209
|
+
mainTreeItem.children = await handleLoadChildData(item.key, mainTreeItem);
|
|
46210
|
+
generateDataList(mainTreeItem.children, state.dataList.main);
|
|
46211
|
+
addCheckedKeysChildrenMain(mainTreeItem);
|
|
46212
|
+
}
|
|
46213
|
+
}
|
|
46214
|
+
});
|
|
46215
|
+
await Promise.all(promises);
|
|
46216
|
+
resolve();
|
|
46217
|
+
});
|
|
46218
|
+
};
|
|
46219
|
+
const handleLoadChildData = async (key, option) => {
|
|
46220
|
+
let rows = props.queryLoadChildData && await props.queryLoadChildData(key, option);
|
|
46221
|
+
let list = rows;
|
|
46222
|
+
return list;
|
|
46223
|
+
};
|
|
46224
|
+
const generateDataList = (data, dataList) => {
|
|
46225
|
+
for (let i = 0; i < data.length; i++) {
|
|
46226
|
+
const node = data[i];
|
|
46227
|
+
dataList.push({
|
|
46228
|
+
parentId: getParentId(node),
|
|
46229
|
+
...node
|
|
46230
|
+
});
|
|
46231
|
+
if (node.children) {
|
|
46232
|
+
generateDataList(node.children, dataList);
|
|
46233
|
+
}
|
|
46234
|
+
}
|
|
46235
|
+
};
|
|
46236
|
+
const addCheckedKeysChildrenMain = (item) => {
|
|
46237
|
+
if (!item.key)
|
|
46238
|
+
return;
|
|
46239
|
+
if (!state.checkedKeys.main.includes(String(item.key)))
|
|
46240
|
+
return false;
|
|
46241
|
+
if (!Array.isArray(item.children))
|
|
46242
|
+
return false;
|
|
46243
|
+
item.children.forEach(({ key }) => {
|
|
46244
|
+
if (state.checkedKeys.main.includes(key) || !key)
|
|
46245
|
+
return false;
|
|
46246
|
+
state.checkedKeys.main.push(key);
|
|
46247
|
+
});
|
|
46248
|
+
};
|
|
46249
|
+
const hanldeFilterDefaultShowList = (list) => {
|
|
46250
|
+
state.defaultShowList = state.defaultShowList.filter((d) => list.findIndex((l) => getuniqKey(d) == getuniqKey(l)) == -1);
|
|
46251
|
+
};
|
|
46252
|
+
const searchFetch = async (data = {}, config = {}) => {
|
|
46253
|
+
if (typeof props.queryTreeSearch !== "function") {
|
|
46254
|
+
staticDataSearch();
|
|
46255
|
+
state.spinning = false;
|
|
46256
|
+
isSearchAllCheck();
|
|
46257
|
+
return;
|
|
46258
|
+
}
|
|
46259
|
+
if (!state.searchValue) {
|
|
46260
|
+
state.search.status = 0;
|
|
46261
|
+
state.search.defaultExpandedKeys = [];
|
|
46262
|
+
state.expandedKeys = [];
|
|
46263
|
+
state.spinning = false;
|
|
46264
|
+
state.searchNoMore = false;
|
|
46265
|
+
return false;
|
|
46266
|
+
}
|
|
46267
|
+
if (!config.loadMoren) {
|
|
46268
|
+
state.search.status = 1;
|
|
46269
|
+
}
|
|
46270
|
+
else {
|
|
46271
|
+
state.loadMorenLoadinng = true;
|
|
46272
|
+
}
|
|
46273
|
+
let rows = await props.queryTreeSearch(state.searchValue, data);
|
|
46274
|
+
let searchResultTreeData = rows;
|
|
46275
|
+
state.loadMorenLoadinng = false;
|
|
46276
|
+
if (!searchResultTreeData || !searchResultTreeData.length) {
|
|
46277
|
+
if (state.searchPage == 1) {
|
|
46278
|
+
state.search.defaultExpandedKeys = [];
|
|
46279
|
+
state.search.status = 3;
|
|
46280
|
+
}
|
|
46281
|
+
else {
|
|
46282
|
+
state.search.status = 2;
|
|
46283
|
+
state.searchNoMore = true;
|
|
46284
|
+
}
|
|
46285
|
+
state.spinning = false;
|
|
46286
|
+
isSearchAllCheck();
|
|
46287
|
+
return false;
|
|
46288
|
+
}
|
|
46289
|
+
const { parent_id_obj, parent_name_obj, user_count_obj } = props.wordbook || {};
|
|
46290
|
+
props.wordbookChild || {};
|
|
46291
|
+
let pObj = {};
|
|
46292
|
+
searchResultTreeData.forEach((item) => {
|
|
46293
|
+
item[parent_id_obj] && (pObj[item[parent_id_obj]] = {
|
|
46294
|
+
key: item[parent_id_obj],
|
|
46295
|
+
users: []
|
|
46296
|
+
});
|
|
46297
|
+
if (item.users) {
|
|
46298
|
+
insertSearchTreeData(item);
|
|
46299
|
+
}
|
|
46300
|
+
else {
|
|
46301
|
+
insertSearchTreeDataOther(item);
|
|
46302
|
+
}
|
|
46303
|
+
});
|
|
46304
|
+
let pList = [];
|
|
46305
|
+
Object.keys(pObj || {}).forEach((v) => {
|
|
46306
|
+
if (v) {
|
|
46307
|
+
pList.push({
|
|
46308
|
+
...pObj[v]
|
|
46309
|
+
});
|
|
46310
|
+
}
|
|
46311
|
+
});
|
|
46312
|
+
state.treeData.search.length || 0;
|
|
46313
|
+
if (props.SearchLoadMore) {
|
|
46314
|
+
state.searchNoMore = false;
|
|
46315
|
+
}
|
|
46316
|
+
else {
|
|
46317
|
+
state.searchNoMore = true;
|
|
46318
|
+
}
|
|
46319
|
+
await loadMainChildData(pList);
|
|
46320
|
+
generateSearchDataListKeys(searchResultTreeData);
|
|
46321
|
+
hanldeFilterDefaultShowList(searchResultTreeData);
|
|
46322
|
+
refreshSearchTree();
|
|
46323
|
+
state.search.status = 2;
|
|
46324
|
+
state.spinning = false;
|
|
46325
|
+
isSearchAllCheck();
|
|
46326
|
+
};
|
|
46327
|
+
const refreshSearchTree = () => {
|
|
46328
|
+
if (!searchTreeVisable.value)
|
|
46329
|
+
return false;
|
|
46330
|
+
searchTree.value.setDefaultCheckedKeys();
|
|
46331
|
+
nextTick(() => {
|
|
46332
|
+
isSearchAllCheck();
|
|
46333
|
+
});
|
|
46334
|
+
};
|
|
46335
|
+
const generateSearchDataListKeys = (searchResultTreeData) => {
|
|
46336
|
+
searchResultTreeData.forEach((item) => {
|
|
46337
|
+
if (!dataListMainKeys.value.includes(item.key)) {
|
|
46338
|
+
state.search.dataListKeys.other.push(item.key);
|
|
46339
|
+
item.children && item.children.forEach((childItem) => {
|
|
46340
|
+
state.search.dataListKeys.other.push(childItem.key);
|
|
46341
|
+
});
|
|
46342
|
+
return;
|
|
46343
|
+
}
|
|
46344
|
+
state.search.dataListKeys.main.push(item.key);
|
|
46345
|
+
item.children && item.children.forEach((childItem) => {
|
|
46346
|
+
state.search.dataListKeys.main.push(childItem.key);
|
|
46347
|
+
});
|
|
46348
|
+
});
|
|
46349
|
+
};
|
|
46350
|
+
const insertSearchTreeData = (item) => {
|
|
46351
|
+
const { user_count_obj } = props.wordbook || {};
|
|
46352
|
+
state.search.defaultExpandedKeys.push(item.key);
|
|
46353
|
+
hanldeFilterDefaultShowList(item.children || []);
|
|
46354
|
+
if (item[user_count_obj] == item.children.length) {
|
|
46355
|
+
item.disableCheckbox = false;
|
|
46356
|
+
}
|
|
46357
|
+
state.treeData.search.push(item);
|
|
46358
|
+
};
|
|
46359
|
+
const insertSearchTreeDataOther = (item) => {
|
|
46360
|
+
let formatItem = Object.assign({}, item, {
|
|
46361
|
+
isLeaf: true
|
|
46362
|
+
});
|
|
46363
|
+
state.treeData.search.push(formatItem);
|
|
46364
|
+
if (dataListOtherKeys.value.includes(formatItem.key))
|
|
46365
|
+
return false;
|
|
46366
|
+
generateDataList([formatItem], state.dataList.other);
|
|
46367
|
+
};
|
|
46368
|
+
const isSearchAllCheck = () => {
|
|
46369
|
+
nextTick(() => {
|
|
46370
|
+
let skeyArr = state.treeData.search.map((item) => item.key);
|
|
46371
|
+
let serchCheckedKeys = searchTree.value.checkedKeys;
|
|
46372
|
+
state.searchIndeterminate = !!serchCheckedKeys.length && serchCheckedKeys.length < skeyArr.length;
|
|
46373
|
+
state.searchChecked = serchCheckedKeys.length === skeyArr.length;
|
|
46374
|
+
});
|
|
46375
|
+
};
|
|
46376
|
+
const staticDataSearch = () => {
|
|
46377
|
+
if (!state.title) {
|
|
46378
|
+
state.treeData.main = JSON.parse(JSON.stringify(props.data));
|
|
46379
|
+
return;
|
|
46380
|
+
}
|
|
46381
|
+
let copyData = JSON.parse(JSON.stringify(state.treeData.main));
|
|
46382
|
+
filterTree({
|
|
46383
|
+
value: state.title,
|
|
46384
|
+
data: copyData,
|
|
46385
|
+
prop: "title"
|
|
46386
|
+
});
|
|
46387
|
+
const expandedKeys = [];
|
|
46388
|
+
xeUtils.searchTree(copyData, (item) => {
|
|
46389
|
+
if (item.visible) {
|
|
46390
|
+
expandedKeys.push(item.key);
|
|
46391
|
+
}
|
|
46392
|
+
if (item.children?.length) {
|
|
46393
|
+
item.children = item.children.filter((child) => child.visible);
|
|
46394
|
+
}
|
|
46395
|
+
});
|
|
46396
|
+
state.treeData.main = copyData;
|
|
46397
|
+
state.expandedKeys = expandedKeys;
|
|
46398
|
+
};
|
|
46399
|
+
const onExpand = (expandedKeys) => {
|
|
46400
|
+
state.expandedKeys = expandedKeys;
|
|
46401
|
+
state.autoExpandParent = false;
|
|
46402
|
+
};
|
|
46403
|
+
const searchClick = () => {
|
|
46404
|
+
state.searchValue = state.title;
|
|
46405
|
+
state.treeData.search = [];
|
|
46406
|
+
state.search.dataListKeys.other = [];
|
|
46407
|
+
state.search.dataListKeys.main = [];
|
|
46408
|
+
state.search.defaultExpandedKeys = [];
|
|
46409
|
+
state.spinning = true;
|
|
46410
|
+
state.searchPage = 1;
|
|
46411
|
+
searchFetch();
|
|
46412
|
+
};
|
|
46413
|
+
const isAllCheck = (checkedKeys = []) => {
|
|
46414
|
+
if (!checkedKeys || checkedKeys.length == 0) {
|
|
46415
|
+
state.indeterminate = false;
|
|
46416
|
+
state.singleChecked = false;
|
|
46417
|
+
}
|
|
46418
|
+
else {
|
|
46419
|
+
let keyArr = state.treeData.main.map((item) => item.key);
|
|
46420
|
+
let keyArrTemp = keyArr.filter((item) => checkedKeys.indexOf(item) !== -1);
|
|
46421
|
+
state.indeterminate = !(keyArr.length == keyArrTemp.length);
|
|
46422
|
+
state.singleChecked = keyArr.length == keyArrTemp.length;
|
|
46423
|
+
}
|
|
46424
|
+
};
|
|
46425
|
+
const addCheckedkeysMain = (keys) => {
|
|
46426
|
+
let checkedKeys = state.checkedKeys.main;
|
|
46427
|
+
let filterKey = (keys || {}).filter(Boolean);
|
|
46428
|
+
filterKey.forEach((key) => {
|
|
46429
|
+
checkedKeys.push(key);
|
|
46430
|
+
let _getParentKey = getParentKey(key, state.treeData.main);
|
|
46431
|
+
if (!_getParentKey)
|
|
46432
|
+
return;
|
|
46433
|
+
let parent = state.treeData.main.filter((item) => {
|
|
46434
|
+
return item.key == _getParentKey;
|
|
46435
|
+
});
|
|
46436
|
+
let allCheck = (parent[0]?.children || []).every((item) => {
|
|
46437
|
+
return checkedKeys.includes(item.key);
|
|
46438
|
+
});
|
|
46439
|
+
allCheck && checkedKeys.push(_getParentKey);
|
|
46440
|
+
});
|
|
46441
|
+
};
|
|
46442
|
+
const getParentKey = (key, tree) => {
|
|
46443
|
+
let parentKey;
|
|
46444
|
+
for (let i = 0; i < tree.length; i++) {
|
|
46445
|
+
const node = tree[i];
|
|
46446
|
+
if (node.key == key) {
|
|
46447
|
+
parentKey = node.key;
|
|
46448
|
+
return parentKey;
|
|
46449
|
+
}
|
|
46450
|
+
if (node.children) {
|
|
46451
|
+
if (node.children.some((item) => item.key == key)) {
|
|
46452
|
+
parentKey = node.key;
|
|
46453
|
+
}
|
|
46454
|
+
else if (getParentKey(key, node.children)) {
|
|
46455
|
+
parentKey = getParentKey(key, node.children);
|
|
46456
|
+
}
|
|
46457
|
+
}
|
|
46458
|
+
}
|
|
46459
|
+
return parentKey;
|
|
46460
|
+
};
|
|
46461
|
+
const radioChange = (checked) => {
|
|
46462
|
+
if (searchTreeVisable.value) {
|
|
46463
|
+
state.singleChecked = checked;
|
|
46464
|
+
}
|
|
46465
|
+
else {
|
|
46466
|
+
state.searchChecked = checked;
|
|
46467
|
+
}
|
|
46468
|
+
checkAll(checked ? 1 : 2);
|
|
46469
|
+
};
|
|
46470
|
+
const checkAll = (type) => {
|
|
46471
|
+
if (checkAllSearchTree(type))
|
|
46472
|
+
return false;
|
|
46473
|
+
if (type == 1) {
|
|
46474
|
+
state.expandedKeys = [];
|
|
46475
|
+
state.checkedKeys.main = dataListMainKeys.value;
|
|
46476
|
+
}
|
|
46477
|
+
else if (type == 2) {
|
|
46478
|
+
state.checkedKeys.main = [];
|
|
46479
|
+
state.autoExpandParent = true;
|
|
46480
|
+
}
|
|
46481
|
+
};
|
|
46482
|
+
const checkAllSearchTree = (type) => {
|
|
46483
|
+
if (!searchTreeVisable.value)
|
|
46484
|
+
return false;
|
|
46485
|
+
if (type == 1) {
|
|
46486
|
+
let allSearchkeysMain = state.search.dataListKeys.main.filter((key) => {
|
|
46487
|
+
return !state.search.defaultExpandedKeys.includes(key);
|
|
46488
|
+
});
|
|
46489
|
+
let allSearchkeysOther = state.search.dataListKeys.other;
|
|
46490
|
+
state.checkedKeys.main = xeUtils.uniq([...state.checkedKeys.main, ...allSearchkeysMain]);
|
|
46491
|
+
state.checkedKeys.other = xeUtils.uniq([...state.checkedKeys.other, ...allSearchkeysOther]);
|
|
46492
|
+
state.search.dataListKeys.main.forEach((key) => {
|
|
46493
|
+
let parentKey = getParentKey(key, state.treeData.main);
|
|
46494
|
+
let parent = state.treeData.main.filter((item) => {
|
|
46495
|
+
return item.key == parentKey;
|
|
46496
|
+
});
|
|
46497
|
+
let allCheck = parent[0].children.every((item) => {
|
|
46498
|
+
return state.checkedKeys.main.includes(item.key);
|
|
46499
|
+
});
|
|
46500
|
+
allCheck && state.checkedKeys.main.push(parentKey);
|
|
46501
|
+
});
|
|
46502
|
+
refreshSearchTree();
|
|
46503
|
+
}
|
|
46504
|
+
else if (type == 2) {
|
|
46505
|
+
searchTree.value.emptyCheckedKeys();
|
|
46506
|
+
state.autoExpandParent = true;
|
|
46507
|
+
}
|
|
46508
|
+
isSearchAllCheck();
|
|
46509
|
+
return true;
|
|
46510
|
+
};
|
|
46511
|
+
const removeCheckedkeysMain = (keys) => {
|
|
46512
|
+
let checkedKeysMain = xeUtils.clone(state.checkedKeys.main, true);
|
|
46513
|
+
keys.forEach((key) => {
|
|
46514
|
+
let index = checkedKeysMain.findIndex((mainKey) => mainKey == key);
|
|
46515
|
+
if (index !== -1) {
|
|
46516
|
+
checkedKeysMain.splice(index, 1);
|
|
46517
|
+
state.checkedKeys.main = [...checkedKeysMain];
|
|
46518
|
+
}
|
|
46519
|
+
let parentKey = getParentKey(key, state.treeData.main);
|
|
46520
|
+
let parentIndex = checkedKeysMain.findIndex((mainKey) => mainKey == parentKey);
|
|
46521
|
+
if (parentIndex !== -1) {
|
|
46522
|
+
checkedKeysMain.splice(parentIndex, 1);
|
|
46523
|
+
}
|
|
46524
|
+
});
|
|
46525
|
+
state.checkedKeys.main = [...checkedKeysMain];
|
|
46526
|
+
};
|
|
46527
|
+
const addCheckedkeysOther = (keys) => {
|
|
46528
|
+
state.checkedKeys.other.push(...keys);
|
|
46529
|
+
};
|
|
46530
|
+
const removeCheckedkeysOther = (keys) => {
|
|
46531
|
+
let checkedKeys = state.checkedKeys.other;
|
|
46532
|
+
keys.forEach((key) => {
|
|
46533
|
+
let index = checkedKeys.findIndex((otherKey) => otherKey == key);
|
|
46534
|
+
checkedKeys.splice(index, 1);
|
|
46535
|
+
handleDeldefaultShowList(key);
|
|
46536
|
+
});
|
|
46537
|
+
removeCheckedkeysMain(keys);
|
|
46538
|
+
};
|
|
46539
|
+
const handleDeldefaultShowList = (key) => {
|
|
46540
|
+
let len = state?.defaultShowList?.length || 0;
|
|
46541
|
+
if (len > 0) {
|
|
46542
|
+
for (let i = len - 1; i >= 0; i--) {
|
|
46543
|
+
let d = state.defaultShowList[i];
|
|
46544
|
+
if (`${d.parent_id}_${d.user_id}` == key) {
|
|
46545
|
+
closeDefaultTag(d, i);
|
|
46546
|
+
}
|
|
46547
|
+
}
|
|
46548
|
+
}
|
|
46549
|
+
};
|
|
46550
|
+
const closeDefaultTag = (tag, i) => {
|
|
46551
|
+
state.defaultShowList.splice(i, 1);
|
|
46552
|
+
closeTag({
|
|
46553
|
+
parentId: getParentId(tag),
|
|
46554
|
+
...tag
|
|
46555
|
+
});
|
|
46556
|
+
};
|
|
46557
|
+
const closeTag = (removedTag) => {
|
|
46558
|
+
removedCheckedkeysMain(removedTag);
|
|
46559
|
+
removedCheckedkeysOther(removedTag);
|
|
46560
|
+
refreshSearchTree();
|
|
46561
|
+
};
|
|
46562
|
+
const removeCheckedkeysIncludeChildren = (parentKey) => {
|
|
46563
|
+
let needRemoveChildKeys = state.dataList.main.filter((i) => {
|
|
46564
|
+
let parentId = getParentId(i);
|
|
46565
|
+
return parentId == parentKey || i.key == parentKey;
|
|
46566
|
+
}).map((i) => {
|
|
46567
|
+
return i.key;
|
|
46568
|
+
});
|
|
46569
|
+
state.checkedKeys.main = state.checkedKeys.main.filter((i) => {
|
|
46570
|
+
return !needRemoveChildKeys.includes(i);
|
|
46571
|
+
});
|
|
46572
|
+
};
|
|
46573
|
+
const removedCheckedkeysMain = (tag) => {
|
|
46574
|
+
let checkedKeys = state.checkedKeys.main;
|
|
46575
|
+
let parentId = getParentId(tag);
|
|
46576
|
+
for (let i = 0; i < checkedKeys.length; i++) {
|
|
46577
|
+
if (tag.key == checkedKeys[i] && tag.key == parentId) {
|
|
46578
|
+
removeCheckedkeysIncludeChildren(tag.key);
|
|
46579
|
+
return false;
|
|
46580
|
+
}
|
|
46581
|
+
else if (tag.key == checkedKeys[i]) {
|
|
46582
|
+
checkedKeys.splice(i, 1);
|
|
46583
|
+
return false;
|
|
46584
|
+
}
|
|
46585
|
+
}
|
|
46586
|
+
};
|
|
46587
|
+
const removedCheckedkeysOther = (tag) => {
|
|
46588
|
+
let checkedKeys = state.checkedKeys.other;
|
|
46589
|
+
if (checkedKeys.includes(tag.key)) {
|
|
46590
|
+
for (let i = 0; i < checkedKeys.length; i++) {
|
|
46591
|
+
if (tag.key == checkedKeys[i]) {
|
|
46592
|
+
checkedKeys.splice(i, 1);
|
|
46593
|
+
return false;
|
|
46594
|
+
}
|
|
46595
|
+
}
|
|
46596
|
+
}
|
|
46597
|
+
else {
|
|
46598
|
+
OtherRemoveCheckedkeysIncludeChildren(tag.key);
|
|
46599
|
+
}
|
|
46600
|
+
};
|
|
46601
|
+
const OtherRemoveCheckedkeysIncludeChildren = (parentKey) => {
|
|
46602
|
+
let needRemoveChildKeys = state.dataList.main.filter((i) => {
|
|
46603
|
+
let parentId = getParentId(i);
|
|
46604
|
+
return parentId == parentKey || i.key == parentKey;
|
|
46605
|
+
}).map((i) => {
|
|
46606
|
+
return i.key;
|
|
46607
|
+
});
|
|
46608
|
+
state.checkedKeys.other = state.checkedKeys.other.filter((i) => {
|
|
46609
|
+
return !needRemoveChildKeys.includes(i);
|
|
46610
|
+
});
|
|
46611
|
+
};
|
|
46612
|
+
const searchOnloadMore = () => {
|
|
46613
|
+
state.searchPage = state.searchPage + 1;
|
|
46614
|
+
searchFetch({
|
|
46615
|
+
page: state.searchPage
|
|
46616
|
+
}, {
|
|
46617
|
+
loadMoren: true
|
|
46618
|
+
});
|
|
46619
|
+
};
|
|
46620
|
+
const treeCount = (count) => {
|
|
46621
|
+
if (!count)
|
|
46622
|
+
return "";
|
|
46623
|
+
return `(${count})`;
|
|
46624
|
+
};
|
|
46625
|
+
const getParentId = (v) => {
|
|
46626
|
+
const { parent_id_obj } = wordbookConfig.value || {};
|
|
46627
|
+
return `${v[parent_id_obj]}`;
|
|
46628
|
+
};
|
|
46629
|
+
const uniqArrObj = (arr, name) => {
|
|
46630
|
+
let obj = {};
|
|
46631
|
+
return arr.reduce((cur, next) => {
|
|
46632
|
+
obj[next[name]] ? "" : obj[next[name]] = cur.push(next);
|
|
46633
|
+
return cur;
|
|
46634
|
+
}, []);
|
|
46635
|
+
};
|
|
46636
|
+
const getuniqKey = (v) => {
|
|
46637
|
+
const { user_id_obj } = wordbookConfig.value || {};
|
|
46638
|
+
return `${getParentId(v)}_${v[user_id_obj]}`;
|
|
46639
|
+
};
|
|
46640
|
+
watch(() => props.defaultList, (val) => {
|
|
46641
|
+
if (!val)
|
|
46642
|
+
return;
|
|
46643
|
+
initDefault();
|
|
46644
|
+
}, {
|
|
46645
|
+
immediate: true
|
|
46646
|
+
});
|
|
46647
|
+
watch(() => state.checkedKeys.main, (val) => {
|
|
46648
|
+
isAllCheck(val);
|
|
46649
|
+
isSearchAllCheck();
|
|
46650
|
+
emit("check", val);
|
|
46651
|
+
}, {
|
|
46652
|
+
immediate: true,
|
|
46653
|
+
deep: true
|
|
46654
|
+
});
|
|
46655
|
+
watch(() => props.data, (val) => {
|
|
46656
|
+
staticDataInit();
|
|
46657
|
+
}, {
|
|
46658
|
+
immediate: true
|
|
46659
|
+
});
|
|
46660
|
+
onMounted(() => {
|
|
46661
|
+
getUsers();
|
|
46662
|
+
});
|
|
46663
|
+
return (_ctx, _cache) => {
|
|
46664
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(NSpin), {
|
|
46665
|
+
show: unref(state).spinning
|
|
46666
|
+
}, {
|
|
46667
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [createCommentVNode(" \u6811\u4E3B\u4F53\u4E0E\u68C0\u7D22 "), createElementVNode("div", _hoisted_3, [createVNode(unref(NInputGroup), {
|
|
46668
|
+
style: {
|
|
46669
|
+
"margin-bottom": "12px"
|
|
46670
|
+
}
|
|
46671
|
+
}, {
|
|
46672
|
+
default: withCtx(() => [createVNode(unref(NInput), {
|
|
46673
|
+
style: {
|
|
46674
|
+
"text-align": "left"
|
|
46675
|
+
},
|
|
46676
|
+
clearable: "",
|
|
46677
|
+
value: unref(state).title,
|
|
46678
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => unref(state).title = $event),
|
|
46679
|
+
placeholder: __props.searchPlaceholder
|
|
46680
|
+
}, null, 8, ["value", "placeholder"]), createVNode(unref(NButton), {
|
|
46681
|
+
type: "primary",
|
|
46682
|
+
onClick: searchClick
|
|
46683
|
+
}, {
|
|
46684
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.searchButtonText), 1)]),
|
|
46685
|
+
_: 1
|
|
46686
|
+
})]),
|
|
46687
|
+
_: 1
|
|
46688
|
+
}), unref(searchTreeVisable) ? (openBlock(), createBlock(unref(NCheckbox), {
|
|
46689
|
+
key: 0,
|
|
46690
|
+
checked: unref(state).searchChecked,
|
|
46691
|
+
"onUpdate:checked": [_cache[1] || (_cache[1] = ($event) => unref(state).searchChecked = $event), radioChange],
|
|
46692
|
+
indeterminate: unref(state).searchIndeterminate
|
|
46693
|
+
}, {
|
|
46694
|
+
default: withCtx(() => [_hoisted_4]),
|
|
46695
|
+
_: 1
|
|
46696
|
+
}, 8, ["checked", "indeterminate"])) : (openBlock(), createBlock(unref(NCheckbox), {
|
|
46697
|
+
key: 1,
|
|
46698
|
+
checked: unref(state).singleChecked,
|
|
46699
|
+
"onUpdate:checked": [_cache[2] || (_cache[2] = ($event) => unref(state).singleChecked = $event), radioChange],
|
|
46700
|
+
indeterminate: unref(state).searchIndeterminate
|
|
46701
|
+
}, {
|
|
46702
|
+
default: withCtx(() => [_hoisted_5]),
|
|
46703
|
+
_: 1
|
|
46704
|
+
}, 8, ["checked", "indeterminate"])), createCommentVNode(' <div v-show="state.search.status == 3 || (state.search.status == 0 && state.treeData.main && state.treeData.main.length == 0)" class="no-data-tips">\r\n \u67E5\u65E0\u7ED3\u679C\r\n </div> '), createCommentVNode(" main tree "), withDirectives(createVNode(unref(NTree), {
|
|
46705
|
+
class: "main-tree-container",
|
|
46706
|
+
"checked-keys": unref(state).checkedKeys.main,
|
|
46707
|
+
"onUpdate:checked-keys": _cache[3] || (_cache[3] = ($event) => unref(state).checkedKeys.main = $event),
|
|
46708
|
+
"expanded-keys": unref(state).expandedKeys,
|
|
46709
|
+
checkable: "",
|
|
46710
|
+
cascade: "",
|
|
46711
|
+
"allow-checking-not-loaded": "",
|
|
46712
|
+
selectable: false,
|
|
46713
|
+
data: unref(state).treeData.main,
|
|
46714
|
+
"check-strategy": __props.queryMainTreeData ? "all" : "child",
|
|
46715
|
+
"onUpdate:expandedKeys": onExpand,
|
|
46716
|
+
"on-load": onLoadData,
|
|
46717
|
+
"render-label": renderLabel
|
|
46718
|
+
}, null, 8, ["checked-keys", "expanded-keys", "data", "check-strategy"]), [[vShow, unref(state).search.status == 0]]), createCommentVNode(" search tree "), createVNode(script$1, mergeProps(_ctx.$attrs, {
|
|
46719
|
+
ref_key: "searchTree",
|
|
46720
|
+
ref: searchTree,
|
|
46721
|
+
visible: unref(searchTreeVisable),
|
|
46722
|
+
formatTreeData: unref(state).treeData.search,
|
|
46723
|
+
searchValue: unref(state).searchValue,
|
|
46724
|
+
allCheckedKeys: unref(state).checkedKeys,
|
|
46725
|
+
defaultExpandedKeys: unref(state).search.defaultExpandedKeys,
|
|
46726
|
+
dataListKeys: unref(state).search.dataListKeys,
|
|
46727
|
+
searchNoMore: unref(state).searchNoMore,
|
|
46728
|
+
loadMorenLoadinng: unref(state).loadMorenLoadinng,
|
|
46729
|
+
onAddCheckedkeysMain: addCheckedkeysMain,
|
|
46730
|
+
onRemoveCheckedkeysMain: removeCheckedkeysMain,
|
|
46731
|
+
onAddCheckedkeysOther: addCheckedkeysOther,
|
|
46732
|
+
onRemoveCheckedkeysOther: removeCheckedkeysOther,
|
|
46733
|
+
onSearchOnloadMore: searchOnloadMore
|
|
46734
|
+
}), null, 16, ["visible", "formatTreeData", "searchValue", "allCheckedKeys", "defaultExpandedKeys", "dataListKeys", "searchNoMore", "loadMorenLoadinng"])]), createCommentVNode(" \u6811\u5DF2\u9009\u7684\u6570\u636E "), createElementVNode("div", _hoisted_6, [unref(state).defaultShowList && unref(state).defaultShowList.length ? renderSlot(_ctx.$slots, "default", {
|
|
46735
|
+
key: 0
|
|
46736
|
+
}, () => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(state).defaultShowList, (tag, i) => {
|
|
46737
|
+
return openBlock(), createElementBlock("div", {
|
|
46738
|
+
class: "tag-item def-item",
|
|
46739
|
+
key: i
|
|
46740
|
+
}, [createTextVNode(toDisplayString(tag.title || tag[__props.wordbookChild.user_name_obj]) + " ", 1), !__props.isDetail ? (openBlock(), createBlock(unref(NIcon), {
|
|
46741
|
+
key: 0,
|
|
46742
|
+
class: "tag-close",
|
|
46743
|
+
component: unref(CloseCircleSharp),
|
|
46744
|
+
onClick: ($event) => closeDefaultTag(tag, i)
|
|
46745
|
+
}, null, 8, ["component", "onClick"])) : createCommentVNode("v-if", true)]);
|
|
46746
|
+
}), 128))]) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(unref(checkedTreeItem), (tag) => {
|
|
46747
|
+
return openBlock(), createElementBlock("div", {
|
|
46748
|
+
class: normalizeClass(["tag-item", {
|
|
46749
|
+
isRoot: !tag.isLeaf
|
|
46750
|
+
}]),
|
|
46751
|
+
key: tag.key
|
|
46752
|
+
}, [createTextVNode(toDisplayString(tag.title || tag.key) + " " + toDisplayString(treeCount(tag.count)) + " ", 1), !__props.isDetail ? (openBlock(), createBlock(unref(NIcon), {
|
|
46753
|
+
key: 0,
|
|
46754
|
+
class: "tag-close",
|
|
46755
|
+
component: unref(CloseCircleSharp),
|
|
46756
|
+
onClick: ($event) => closeTag(tag)
|
|
46757
|
+
}, null, 8, ["component", "onClick"])) : createCommentVNode("v-if", true)], 2);
|
|
46758
|
+
}), 128))])])]),
|
|
46759
|
+
_: 3
|
|
46760
|
+
}, 8, ["show"])]);
|
|
46761
|
+
};
|
|
46762
|
+
}
|
|
46763
|
+
});
|
|
46764
|
+
|
|
46765
|
+
script.__scopeId = "data-v-41061249";
|
|
46766
|
+
script.__file = "packages/select-person/src/SelectPerson.vue";
|
|
45544
46767
|
|
|
45545
46768
|
script.install = function (app) {
|
|
45546
46769
|
app.component(script.name, script);
|
|
@@ -45548,8 +46771,9 @@ script.install = function (app) {
|
|
|
45548
46771
|
|
|
45549
46772
|
const components = [
|
|
45550
46773
|
Grid,
|
|
45551
|
-
script$
|
|
45552
|
-
script$
|
|
46774
|
+
script$8,
|
|
46775
|
+
script$7,
|
|
46776
|
+
script$4,
|
|
45553
46777
|
script$2,
|
|
45554
46778
|
script
|
|
45555
46779
|
];
|
|
@@ -45563,4 +46787,4 @@ var index = {
|
|
|
45563
46787
|
...components
|
|
45564
46788
|
};
|
|
45565
46789
|
|
|
45566
|
-
export { script$
|
|
46790
|
+
export { script$8 as CBigTable, script$2 as CButtonPrint, script$4 as CDragLayout, script$7 as CFieldSet, Grid as CGrid, script as CSelectPerson, index as default };
|