@94ai/nf-search-form 3.2.52 → 3.2.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +78 -0
- package/lib/nf-column-check-drawer.vue.d.ts +9 -0
- package/lib/nf-search-form.cjs.js +72 -42
- package/lib/nf-search-form.esm-bundler.js +72 -42
- package/lib/nf-search-form.vue.d.ts +27 -0
- package/package/nf-column-check-dialog.vue +2 -2
- package/package/nf-column-check-drawer.vue +3 -1
- package/package/nf-search-form.vue +81 -65
- package/package.json +18 -17
package/lib/index.d.ts
CHANGED
|
@@ -134,6 +134,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
134
134
|
type: import("vue-demi").PropType<boolean>;
|
|
135
135
|
default: boolean;
|
|
136
136
|
};
|
|
137
|
+
expandBtnTooltipDesc: {
|
|
138
|
+
type: import("vue-demi").PropType<string>;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
shrinkBtnTooltipDesc: {
|
|
142
|
+
type: import("vue-demi").PropType<string>;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
137
145
|
labelSuffix: {
|
|
138
146
|
type: import("vue-demi").PropType<string>;
|
|
139
147
|
default: undefined;
|
|
@@ -265,6 +273,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
265
273
|
type: import("vue-demi").PropType<string>;
|
|
266
274
|
default: string;
|
|
267
275
|
};
|
|
276
|
+
columnCheckBasicFieldDesc: {
|
|
277
|
+
type: import("vue-demi").PropType<string>;
|
|
278
|
+
default: string;
|
|
279
|
+
};
|
|
268
280
|
columnCheckGetCheckedLengthDesc: {
|
|
269
281
|
type: import("vue-demi").PropType<Function>;
|
|
270
282
|
default: (length: any) => string;
|
|
@@ -539,6 +551,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
539
551
|
type: import("vue-demi").PropType<boolean>;
|
|
540
552
|
default: boolean;
|
|
541
553
|
};
|
|
554
|
+
expandBtnTooltipDesc: {
|
|
555
|
+
type: import("vue-demi").PropType<string>;
|
|
556
|
+
default: string;
|
|
557
|
+
};
|
|
558
|
+
shrinkBtnTooltipDesc: {
|
|
559
|
+
type: import("vue-demi").PropType<string>;
|
|
560
|
+
default: string;
|
|
561
|
+
};
|
|
542
562
|
labelSuffix: {
|
|
543
563
|
type: import("vue-demi").PropType<string>;
|
|
544
564
|
default: undefined;
|
|
@@ -670,6 +690,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
670
690
|
type: import("vue-demi").PropType<string>;
|
|
671
691
|
default: string;
|
|
672
692
|
};
|
|
693
|
+
columnCheckBasicFieldDesc: {
|
|
694
|
+
type: import("vue-demi").PropType<string>;
|
|
695
|
+
default: string;
|
|
696
|
+
};
|
|
673
697
|
columnCheckGetCheckedLengthDesc: {
|
|
674
698
|
type: import("vue-demi").PropType<Function>;
|
|
675
699
|
default: (length: any) => string;
|
|
@@ -850,6 +874,8 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
850
874
|
expandBtnCircle: boolean;
|
|
851
875
|
expandBtnLoading: boolean;
|
|
852
876
|
expandBtnDisabled: boolean;
|
|
877
|
+
expandBtnTooltipDesc: string;
|
|
878
|
+
shrinkBtnTooltipDesc: string;
|
|
853
879
|
labelSuffix: string;
|
|
854
880
|
hideRequiredAsterisk: boolean;
|
|
855
881
|
showMessage: boolean;
|
|
@@ -882,6 +908,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
882
908
|
columnCheckFixedLeftDesc: string;
|
|
883
909
|
columnCheckClearDesc: string;
|
|
884
910
|
columnCheckNoFixedDesc: string;
|
|
911
|
+
columnCheckBasicFieldDesc: string;
|
|
885
912
|
columnCheckGetCheckedLengthDesc: Function;
|
|
886
913
|
columnCheckGetAllCheckDesc: Function;
|
|
887
914
|
btnItems: "" | string[] | "search" | "export" | "reset";
|
|
@@ -1048,6 +1075,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1048
1075
|
type: import("vue-demi").PropType<boolean>;
|
|
1049
1076
|
default: boolean;
|
|
1050
1077
|
};
|
|
1078
|
+
expandBtnTooltipDesc: {
|
|
1079
|
+
type: import("vue-demi").PropType<string>;
|
|
1080
|
+
default: string;
|
|
1081
|
+
};
|
|
1082
|
+
shrinkBtnTooltipDesc: {
|
|
1083
|
+
type: import("vue-demi").PropType<string>;
|
|
1084
|
+
default: string;
|
|
1085
|
+
};
|
|
1051
1086
|
labelSuffix: {
|
|
1052
1087
|
type: import("vue-demi").PropType<string>;
|
|
1053
1088
|
default: undefined;
|
|
@@ -1179,6 +1214,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1179
1214
|
type: import("vue-demi").PropType<string>;
|
|
1180
1215
|
default: string;
|
|
1181
1216
|
};
|
|
1217
|
+
columnCheckBasicFieldDesc: {
|
|
1218
|
+
type: import("vue-demi").PropType<string>;
|
|
1219
|
+
default: string;
|
|
1220
|
+
};
|
|
1182
1221
|
columnCheckGetCheckedLengthDesc: {
|
|
1183
1222
|
type: import("vue-demi").PropType<Function>;
|
|
1184
1223
|
default: (length: any) => string;
|
|
@@ -1522,6 +1561,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1522
1561
|
type: import("vue-demi").PropType<boolean>;
|
|
1523
1562
|
default: boolean;
|
|
1524
1563
|
};
|
|
1564
|
+
expandBtnTooltipDesc: {
|
|
1565
|
+
type: import("vue-demi").PropType<string>;
|
|
1566
|
+
default: string;
|
|
1567
|
+
};
|
|
1568
|
+
shrinkBtnTooltipDesc: {
|
|
1569
|
+
type: import("vue-demi").PropType<string>;
|
|
1570
|
+
default: string;
|
|
1571
|
+
};
|
|
1525
1572
|
labelSuffix: {
|
|
1526
1573
|
type: import("vue-demi").PropType<string>;
|
|
1527
1574
|
default: undefined;
|
|
@@ -1653,6 +1700,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1653
1700
|
type: import("vue-demi").PropType<string>;
|
|
1654
1701
|
default: string;
|
|
1655
1702
|
};
|
|
1703
|
+
columnCheckBasicFieldDesc: {
|
|
1704
|
+
type: import("vue-demi").PropType<string>;
|
|
1705
|
+
default: string;
|
|
1706
|
+
};
|
|
1656
1707
|
columnCheckGetCheckedLengthDesc: {
|
|
1657
1708
|
type: import("vue-demi").PropType<Function>;
|
|
1658
1709
|
default: (length: any) => string;
|
|
@@ -1927,6 +1978,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1927
1978
|
type: import("vue-demi").PropType<boolean>;
|
|
1928
1979
|
default: boolean;
|
|
1929
1980
|
};
|
|
1981
|
+
expandBtnTooltipDesc: {
|
|
1982
|
+
type: import("vue-demi").PropType<string>;
|
|
1983
|
+
default: string;
|
|
1984
|
+
};
|
|
1985
|
+
shrinkBtnTooltipDesc: {
|
|
1986
|
+
type: import("vue-demi").PropType<string>;
|
|
1987
|
+
default: string;
|
|
1988
|
+
};
|
|
1930
1989
|
labelSuffix: {
|
|
1931
1990
|
type: import("vue-demi").PropType<string>;
|
|
1932
1991
|
default: undefined;
|
|
@@ -2058,6 +2117,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2058
2117
|
type: import("vue-demi").PropType<string>;
|
|
2059
2118
|
default: string;
|
|
2060
2119
|
};
|
|
2120
|
+
columnCheckBasicFieldDesc: {
|
|
2121
|
+
type: import("vue-demi").PropType<string>;
|
|
2122
|
+
default: string;
|
|
2123
|
+
};
|
|
2061
2124
|
columnCheckGetCheckedLengthDesc: {
|
|
2062
2125
|
type: import("vue-demi").PropType<Function>;
|
|
2063
2126
|
default: (length: any) => string;
|
|
@@ -2307,6 +2370,8 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2307
2370
|
expandBtnCircle: boolean;
|
|
2308
2371
|
expandBtnLoading: boolean;
|
|
2309
2372
|
expandBtnDisabled: boolean;
|
|
2373
|
+
expandBtnTooltipDesc: string;
|
|
2374
|
+
shrinkBtnTooltipDesc: string;
|
|
2310
2375
|
labelSuffix: string;
|
|
2311
2376
|
hideRequiredAsterisk: boolean;
|
|
2312
2377
|
showMessage: boolean;
|
|
@@ -2339,6 +2404,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2339
2404
|
columnCheckFixedLeftDesc: string;
|
|
2340
2405
|
columnCheckClearDesc: string;
|
|
2341
2406
|
columnCheckNoFixedDesc: string;
|
|
2407
|
+
columnCheckBasicFieldDesc: string;
|
|
2342
2408
|
columnCheckGetCheckedLengthDesc: Function;
|
|
2343
2409
|
columnCheckGetAllCheckDesc: Function;
|
|
2344
2410
|
btnItems: "" | string[] | "search" | "export" | "reset";
|
|
@@ -2506,6 +2572,14 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2506
2572
|
type: import("vue-demi").PropType<boolean>;
|
|
2507
2573
|
default: boolean;
|
|
2508
2574
|
};
|
|
2575
|
+
expandBtnTooltipDesc: {
|
|
2576
|
+
type: import("vue-demi").PropType<string>;
|
|
2577
|
+
default: string;
|
|
2578
|
+
};
|
|
2579
|
+
shrinkBtnTooltipDesc: {
|
|
2580
|
+
type: import("vue-demi").PropType<string>;
|
|
2581
|
+
default: string;
|
|
2582
|
+
};
|
|
2509
2583
|
labelSuffix: {
|
|
2510
2584
|
type: import("vue-demi").PropType<string>;
|
|
2511
2585
|
default: undefined;
|
|
@@ -2637,6 +2711,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2637
2711
|
type: import("vue-demi").PropType<string>;
|
|
2638
2712
|
default: string;
|
|
2639
2713
|
};
|
|
2714
|
+
columnCheckBasicFieldDesc: {
|
|
2715
|
+
type: import("vue-demi").PropType<string>;
|
|
2716
|
+
default: string;
|
|
2717
|
+
};
|
|
2640
2718
|
columnCheckGetCheckedLengthDesc: {
|
|
2641
2719
|
type: import("vue-demi").PropType<Function>;
|
|
2642
2720
|
default: (length: any) => string;
|
|
@@ -31,6 +31,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
31
31
|
type: import("vue-demi").PropType<string>;
|
|
32
32
|
default: string;
|
|
33
33
|
};
|
|
34
|
+
basicFieldDesc: {
|
|
35
|
+
type: import("vue-demi").PropType<string>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
34
38
|
getCheckedLengthDesc: {
|
|
35
39
|
type: import("vue-demi").PropType<Function>;
|
|
36
40
|
default: (length: any) => string;
|
|
@@ -98,6 +102,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
98
102
|
type: import("vue-demi").PropType<string>;
|
|
99
103
|
default: string;
|
|
100
104
|
};
|
|
105
|
+
basicFieldDesc: {
|
|
106
|
+
type: import("vue-demi").PropType<string>;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
101
109
|
getCheckedLengthDesc: {
|
|
102
110
|
type: import("vue-demi").PropType<Function>;
|
|
103
111
|
default: (length: any) => string;
|
|
@@ -115,6 +123,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
115
123
|
fixedLeftDesc: string;
|
|
116
124
|
clearDesc: string;
|
|
117
125
|
noFixedDesc: string;
|
|
126
|
+
basicFieldDesc: string;
|
|
118
127
|
getCheckedLengthDesc: Function;
|
|
119
128
|
getAllCheckDesc: Function;
|
|
120
129
|
}>;
|
|
@@ -1009,7 +1009,7 @@ var _sfc_render$2 = function render4() {
|
|
|
1009
1009
|
}), 0), _vm._t("footer", function() {
|
|
1010
1010
|
return [_c("div", {
|
|
1011
1011
|
staticClass: "nf-search-form-nf-column-check-dialog-button-container"
|
|
1012
|
-
}, [_c("
|
|
1012
|
+
}, [_c("nf-button", {
|
|
1013
1013
|
staticClass: "nf-search-form-nf-column-check-dialog-button-cancel",
|
|
1014
1014
|
attrs: {
|
|
1015
1015
|
"size": "mini"
|
|
@@ -1019,7 +1019,7 @@ var _sfc_render$2 = function render4() {
|
|
|
1019
1019
|
_vm.visible = false;
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
}, [_vm._v(_vm._s(_vm.cancelText))]), _c("
|
|
1022
|
+
}, [_vm._v(_vm._s(_vm.cancelText))]), _c("nf-button", {
|
|
1023
1023
|
staticClass: "nf-search-form-nf-column-check-dialog-button-confirm",
|
|
1024
1024
|
attrs: {
|
|
1025
1025
|
"type": "primary",
|
|
@@ -6011,6 +6011,12 @@ __sfc_main$1.props = {
|
|
|
6011
6011
|
type: String,
|
|
6012
6012
|
default: "不固定"
|
|
6013
6013
|
},
|
|
6014
|
+
basicFieldDesc: {
|
|
6015
|
+
key: "basicFieldDesc",
|
|
6016
|
+
required: false,
|
|
6017
|
+
type: String,
|
|
6018
|
+
default: "基础字段"
|
|
6019
|
+
},
|
|
6014
6020
|
getCheckedLengthDesc: {
|
|
6015
6021
|
key: "getCheckedLengthDesc",
|
|
6016
6022
|
required: false,
|
|
@@ -6060,7 +6066,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6060
6066
|
const setFields = (tableColumns) => {
|
|
6061
6067
|
const obj = {};
|
|
6062
6068
|
tableColumns.map((item) => {
|
|
6063
|
-
const key = item.category ||
|
|
6069
|
+
const key = item.category || props.basicFieldDesc;
|
|
6064
6070
|
if (!obj[key]) {
|
|
6065
6071
|
obj[key] = [];
|
|
6066
6072
|
}
|
|
@@ -6481,6 +6487,18 @@ __sfc_main.props = {
|
|
|
6481
6487
|
type: Boolean,
|
|
6482
6488
|
default: false
|
|
6483
6489
|
},
|
|
6490
|
+
expandBtnTooltipDesc: {
|
|
6491
|
+
key: "expandBtnTooltipDesc",
|
|
6492
|
+
required: false,
|
|
6493
|
+
type: String,
|
|
6494
|
+
default: "展开"
|
|
6495
|
+
},
|
|
6496
|
+
shrinkBtnTooltipDesc: {
|
|
6497
|
+
key: "shrinkBtnTooltipDesc",
|
|
6498
|
+
required: false,
|
|
6499
|
+
type: String,
|
|
6500
|
+
default: "收起"
|
|
6501
|
+
},
|
|
6484
6502
|
rules: {
|
|
6485
6503
|
key: "rules",
|
|
6486
6504
|
required: false,
|
|
@@ -6804,6 +6822,12 @@ __sfc_main.props = {
|
|
|
6804
6822
|
type: String,
|
|
6805
6823
|
default: "不固定"
|
|
6806
6824
|
},
|
|
6825
|
+
columnCheckBasicFieldDesc: {
|
|
6826
|
+
key: "columnCheckBasicFieldDesc",
|
|
6827
|
+
required: false,
|
|
6828
|
+
type: String,
|
|
6829
|
+
default: "基础字段"
|
|
6830
|
+
},
|
|
6807
6831
|
columnCheckGetCheckedLengthDesc: {
|
|
6808
6832
|
key: "columnCheckGetCheckedLengthDesc",
|
|
6809
6833
|
required: false,
|
|
@@ -7074,6 +7098,28 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7074
7098
|
commonUtils.CachedManager.syncCachedSet(props.storageKey, columnState);
|
|
7075
7099
|
}
|
|
7076
7100
|
};
|
|
7101
|
+
const syncShowItemToInitHidden = () => {
|
|
7102
|
+
props.formOptions._skip = true;
|
|
7103
|
+
props.formOptions.forEach((item) => {
|
|
7104
|
+
var _a2;
|
|
7105
|
+
if ((_a2 = localShowItems.value) == null ? void 0 : _a2.includes(item.prop)) {
|
|
7106
|
+
item.initHidden = false;
|
|
7107
|
+
} else {
|
|
7108
|
+
item.initHidden = true;
|
|
7109
|
+
}
|
|
7110
|
+
});
|
|
7111
|
+
vueDemi.nextTick(() => {
|
|
7112
|
+
props.formOptions._skip = false;
|
|
7113
|
+
});
|
|
7114
|
+
};
|
|
7115
|
+
const setLocalShowItems = (list, syncToInitHidden = false) => {
|
|
7116
|
+
if (JSON.stringify(list.sort()) !== JSON.stringify(localShowItems.value.sort())) {
|
|
7117
|
+
localShowItems.value = list;
|
|
7118
|
+
if (syncToInitHidden) {
|
|
7119
|
+
syncShowItemToInitHidden();
|
|
7120
|
+
}
|
|
7121
|
+
}
|
|
7122
|
+
};
|
|
7077
7123
|
const syncCookiesToLocalShowColumn = async () => {
|
|
7078
7124
|
if (props.columnEdit) {
|
|
7079
7125
|
try {
|
|
@@ -7098,20 +7144,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7098
7144
|
}
|
|
7099
7145
|
}
|
|
7100
7146
|
};
|
|
7101
|
-
const syncShowItemToInitHidden = () => {
|
|
7102
|
-
props.formOptions._skip = true;
|
|
7103
|
-
props.formOptions.forEach((item) => {
|
|
7104
|
-
var _a2;
|
|
7105
|
-
if ((_a2 = localShowItems.value) == null ? void 0 : _a2.includes(item.prop)) {
|
|
7106
|
-
item.initHidden = false;
|
|
7107
|
-
} else {
|
|
7108
|
-
item.initHidden = true;
|
|
7109
|
-
}
|
|
7110
|
-
});
|
|
7111
|
-
vueDemi.nextTick(() => {
|
|
7112
|
-
props.formOptions._skip = false;
|
|
7113
|
-
});
|
|
7114
|
-
};
|
|
7115
7147
|
const initCachedData = async () => {
|
|
7116
7148
|
var _a2, _b;
|
|
7117
7149
|
if (props.columnEdit) {
|
|
@@ -7134,6 +7166,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7134
7166
|
return instance == null ? void 0 : instance.$slots.btnBox;
|
|
7135
7167
|
});
|
|
7136
7168
|
const renderSearchFormItemOptions = vueDemi.ref([]);
|
|
7169
|
+
let initSearchForm = true;
|
|
7137
7170
|
const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
|
|
7138
7171
|
props.formOptions._skip = true;
|
|
7139
7172
|
const columns = props.formOptions.map((item, index2) => {
|
|
@@ -7173,6 +7206,10 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7173
7206
|
}
|
|
7174
7207
|
renderSearchFormItemOptions.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
7175
7208
|
vueDemi.nextTick(() => {
|
|
7209
|
+
if (initSearchForm) {
|
|
7210
|
+
initSearchForm = false;
|
|
7211
|
+
calcColumns();
|
|
7212
|
+
}
|
|
7176
7213
|
props.formOptions._skip = false;
|
|
7177
7214
|
});
|
|
7178
7215
|
};
|
|
@@ -7193,14 +7230,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7193
7230
|
}, {
|
|
7194
7231
|
immediate: true
|
|
7195
7232
|
});
|
|
7196
|
-
const setLocalShowItems = (list, syncToInitHidden = false) => {
|
|
7197
|
-
if (JSON.stringify(list.sort()) !== JSON.stringify(localShowItems.value.sort())) {
|
|
7198
|
-
localShowItems.value = list;
|
|
7199
|
-
if (syncToInitHidden) {
|
|
7200
|
-
syncShowItemToInitHidden();
|
|
7201
|
-
}
|
|
7202
|
-
}
|
|
7203
|
-
};
|
|
7204
7233
|
vueDemi.onBeforeMount(() => {
|
|
7205
7234
|
vueDemi.watch(() => {
|
|
7206
7235
|
return props.formOptions;
|
|
@@ -7293,8 +7322,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7293
7322
|
};
|
|
7294
7323
|
const observer = vueDemi.ref();
|
|
7295
7324
|
vueDemi.onMounted(async () => {
|
|
7296
|
-
await vueDemi.nextTick();
|
|
7297
|
-
calcColumns();
|
|
7298
7325
|
await vueDemi.nextTick();
|
|
7299
7326
|
observer.value = new ResizeObserver(onResize);
|
|
7300
7327
|
observer.value.observe(topDom.value, {
|
|
@@ -7358,6 +7385,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7358
7385
|
}
|
|
7359
7386
|
};
|
|
7360
7387
|
const columnCheckConfirm = async (cb, error) => {
|
|
7388
|
+
var _a2;
|
|
7361
7389
|
try {
|
|
7362
7390
|
const value = columnCheckDrawer.value.syncTableColumnsToCookies();
|
|
7363
7391
|
columnCheckConfirmFeedback(value);
|
|
@@ -7366,6 +7394,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7366
7394
|
refreshNfSearchFormModel();
|
|
7367
7395
|
await vueDemi.nextTick();
|
|
7368
7396
|
refreshLabel();
|
|
7397
|
+
(_a2 = nfSearchFormRef.value) == null ? void 0 : _a2.getFormItems();
|
|
7369
7398
|
cb();
|
|
7370
7399
|
} catch (e) {
|
|
7371
7400
|
error();
|
|
@@ -7517,7 +7546,9 @@ var _sfc_render = function render6() {
|
|
|
7517
7546
|
"up-icon": _vm.upIcon,
|
|
7518
7547
|
"down-icon": _vm.downIcon,
|
|
7519
7548
|
"show-btn": _vm.showBtn,
|
|
7520
|
-
"is-collapse": _vm.isCollapse
|
|
7549
|
+
"is-collapse": _vm.isCollapse,
|
|
7550
|
+
"expand-btn-tooltip-desc": _vm.expandBtnTooltipDesc,
|
|
7551
|
+
"shrink-btn-tooltip-desc": _vm.shrinkBtnTooltipDesc
|
|
7521
7552
|
},
|
|
7522
7553
|
on: {
|
|
7523
7554
|
"isCollapseChange": _vm.isCollapseChange
|
|
@@ -7573,7 +7604,7 @@ var _sfc_render = function render6() {
|
|
|
7573
7604
|
}
|
|
7574
7605
|
}, [_c("div", {
|
|
7575
7606
|
staticClass: "nf-flex nf-flex-align-items-start"
|
|
7576
|
-
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("
|
|
7607
|
+
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("nf-button", {
|
|
7577
7608
|
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
7578
7609
|
attrs: {
|
|
7579
7610
|
"type": _vm.queryBtnType,
|
|
@@ -7588,7 +7619,7 @@ var _sfc_render = function render6() {
|
|
|
7588
7619
|
on: {
|
|
7589
7620
|
"click": _vm.onNfSearchFormSearch
|
|
7590
7621
|
}
|
|
7591
|
-
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("export") ? _c("
|
|
7622
|
+
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("export") ? _c("nf-button", {
|
|
7592
7623
|
class: (_vm.exportBtnClass || "") + " nf-btn-export",
|
|
7593
7624
|
attrs: {
|
|
7594
7625
|
"type": _vm.exportBtnType,
|
|
@@ -7603,7 +7634,7 @@ var _sfc_render = function render6() {
|
|
|
7603
7634
|
on: {
|
|
7604
7635
|
"click": _vm.onNfSearchFormExport
|
|
7605
7636
|
}
|
|
7606
|
-
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("reset") ? _c("
|
|
7637
|
+
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("reset") ? _c("nf-button", {
|
|
7607
7638
|
class: (_vm.resetBtnClass || "") + " nf-btn-reset",
|
|
7608
7639
|
attrs: {
|
|
7609
7640
|
"type": _vm.resetBtnType,
|
|
@@ -7618,7 +7649,7 @@ var _sfc_render = function render6() {
|
|
|
7618
7649
|
on: {
|
|
7619
7650
|
"click": _vm.resetNfSearchFormModel
|
|
7620
7651
|
}
|
|
7621
|
-
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _vm.columnEdit ? _c("
|
|
7652
|
+
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _vm.columnEdit ? _c("nf-button", {
|
|
7622
7653
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
7623
7654
|
attrs: {
|
|
7624
7655
|
"type": _vm.checkBtnType,
|
|
@@ -7631,20 +7662,19 @@ var _sfc_render = function render6() {
|
|
|
7631
7662
|
},
|
|
7632
7663
|
on: {
|
|
7633
7664
|
"click": function($event) {
|
|
7634
|
-
$event.stopPropagation();
|
|
7635
7665
|
_vm.configNfSearchItemVisibleDialog = true;
|
|
7636
7666
|
}
|
|
7637
7667
|
}
|
|
7638
7668
|
}, [_c("el-tooltip", {
|
|
7639
7669
|
attrs: {
|
|
7640
7670
|
"content": _vm.columnDisplayBtnText,
|
|
7641
|
-
"placement": "
|
|
7671
|
+
"placement": "top"
|
|
7642
7672
|
}
|
|
7643
7673
|
}, [_c("i", {
|
|
7644
7674
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7645
7675
|
})])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2)]) : _vm._e()], 2), _vm.btnModel === "block" ? _c("div", {
|
|
7646
7676
|
staticClass: "nf-flex nf-flex-align-items nf-mt10"
|
|
7647
|
-
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("
|
|
7677
|
+
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("nf-button", {
|
|
7648
7678
|
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
7649
7679
|
attrs: {
|
|
7650
7680
|
"type": _vm.queryBtnType,
|
|
@@ -7659,7 +7689,7 @@ var _sfc_render = function render6() {
|
|
|
7659
7689
|
on: {
|
|
7660
7690
|
"click": _vm.onNfSearchFormSearch
|
|
7661
7691
|
}
|
|
7662
|
-
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("export") ? _c("
|
|
7692
|
+
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("export") ? _c("nf-button", {
|
|
7663
7693
|
class: (_vm.exportBtnClass || "") + " nf-btn-export",
|
|
7664
7694
|
attrs: {
|
|
7665
7695
|
"type": _vm.exportBtnType,
|
|
@@ -7674,7 +7704,7 @@ var _sfc_render = function render6() {
|
|
|
7674
7704
|
on: {
|
|
7675
7705
|
"click": _vm.onNfSearchFormExport
|
|
7676
7706
|
}
|
|
7677
|
-
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("reset") ? _c("
|
|
7707
|
+
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("reset") ? _c("nf-button", {
|
|
7678
7708
|
class: (_vm.resetBtnClass || "") + " nf-btn-reset",
|
|
7679
7709
|
attrs: {
|
|
7680
7710
|
"type": _vm.resetBtnType,
|
|
@@ -7689,7 +7719,7 @@ var _sfc_render = function render6() {
|
|
|
7689
7719
|
on: {
|
|
7690
7720
|
"click": _vm.resetNfSearchFormModel
|
|
7691
7721
|
}
|
|
7692
|
-
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _vm.columnEdit ? _c("
|
|
7722
|
+
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _vm.columnEdit ? _c("nf-button", {
|
|
7693
7723
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
7694
7724
|
attrs: {
|
|
7695
7725
|
"type": _vm.checkBtnType,
|
|
@@ -7702,18 +7732,17 @@ var _sfc_render = function render6() {
|
|
|
7702
7732
|
},
|
|
7703
7733
|
on: {
|
|
7704
7734
|
"click": function($event) {
|
|
7705
|
-
$event.stopPropagation();
|
|
7706
7735
|
_vm.configNfSearchItemVisibleDialog = true;
|
|
7707
7736
|
}
|
|
7708
7737
|
}
|
|
7709
|
-
}, [_c("el-tooltip", {
|
|
7738
|
+
}, [_vm.columnEdit ? _c("el-tooltip", {
|
|
7710
7739
|
attrs: {
|
|
7711
7740
|
"content": _vm.columnDisplayBtnText,
|
|
7712
|
-
"placement": "
|
|
7741
|
+
"placement": "top"
|
|
7713
7742
|
}
|
|
7714
7743
|
}, [_c("i", {
|
|
7715
7744
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7716
|
-
})])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.columnEdit && _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7745
|
+
})]) : _vm._e()], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.columnEdit && _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7717
7746
|
ref: "columnCheckDialog",
|
|
7718
7747
|
attrs: {
|
|
7719
7748
|
"storage-key": _vm.storageKey,
|
|
@@ -7789,6 +7818,7 @@ var _sfc_render = function render6() {
|
|
|
7789
7818
|
"fixed-left-desc": _vm.columnCheckFixedLeftDesc,
|
|
7790
7819
|
"clear-desc": _vm.columnCheckClearDesc,
|
|
7791
7820
|
"no-fixed-desc": _vm.columnCheckNoFixedDesc,
|
|
7821
|
+
"basic-field-desc": _vm.columnCheckBasicFieldDesc,
|
|
7792
7822
|
"get-checked-length-desc": _vm.columnCheckGetCheckedLengthDesc,
|
|
7793
7823
|
"get-all-check-desc": _vm.columnCheckGetAllCheckDesc,
|
|
7794
7824
|
"storage-key": _vm.storageKey,
|
|
@@ -1007,7 +1007,7 @@ var _sfc_render$2 = function render4() {
|
|
|
1007
1007
|
}), 0), _vm._t("footer", function() {
|
|
1008
1008
|
return [_c("div", {
|
|
1009
1009
|
staticClass: "nf-search-form-nf-column-check-dialog-button-container"
|
|
1010
|
-
}, [_c("
|
|
1010
|
+
}, [_c("nf-button", {
|
|
1011
1011
|
staticClass: "nf-search-form-nf-column-check-dialog-button-cancel",
|
|
1012
1012
|
attrs: {
|
|
1013
1013
|
"size": "mini"
|
|
@@ -1017,7 +1017,7 @@ var _sfc_render$2 = function render4() {
|
|
|
1017
1017
|
_vm.visible = false;
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
}, [_vm._v(_vm._s(_vm.cancelText))]), _c("
|
|
1020
|
+
}, [_vm._v(_vm._s(_vm.cancelText))]), _c("nf-button", {
|
|
1021
1021
|
staticClass: "nf-search-form-nf-column-check-dialog-button-confirm",
|
|
1022
1022
|
attrs: {
|
|
1023
1023
|
"type": "primary",
|
|
@@ -6009,6 +6009,12 @@ __sfc_main$1.props = {
|
|
|
6009
6009
|
type: String,
|
|
6010
6010
|
default: "不固定"
|
|
6011
6011
|
},
|
|
6012
|
+
basicFieldDesc: {
|
|
6013
|
+
key: "basicFieldDesc",
|
|
6014
|
+
required: false,
|
|
6015
|
+
type: String,
|
|
6016
|
+
default: "基础字段"
|
|
6017
|
+
},
|
|
6012
6018
|
getCheckedLengthDesc: {
|
|
6013
6019
|
key: "getCheckedLengthDesc",
|
|
6014
6020
|
required: false,
|
|
@@ -6058,7 +6064,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6058
6064
|
const setFields = (tableColumns) => {
|
|
6059
6065
|
const obj = {};
|
|
6060
6066
|
tableColumns.map((item) => {
|
|
6061
|
-
const key = item.category ||
|
|
6067
|
+
const key = item.category || props.basicFieldDesc;
|
|
6062
6068
|
if (!obj[key]) {
|
|
6063
6069
|
obj[key] = [];
|
|
6064
6070
|
}
|
|
@@ -6479,6 +6485,18 @@ __sfc_main.props = {
|
|
|
6479
6485
|
type: Boolean,
|
|
6480
6486
|
default: false
|
|
6481
6487
|
},
|
|
6488
|
+
expandBtnTooltipDesc: {
|
|
6489
|
+
key: "expandBtnTooltipDesc",
|
|
6490
|
+
required: false,
|
|
6491
|
+
type: String,
|
|
6492
|
+
default: "展开"
|
|
6493
|
+
},
|
|
6494
|
+
shrinkBtnTooltipDesc: {
|
|
6495
|
+
key: "shrinkBtnTooltipDesc",
|
|
6496
|
+
required: false,
|
|
6497
|
+
type: String,
|
|
6498
|
+
default: "收起"
|
|
6499
|
+
},
|
|
6482
6500
|
rules: {
|
|
6483
6501
|
key: "rules",
|
|
6484
6502
|
required: false,
|
|
@@ -6802,6 +6820,12 @@ __sfc_main.props = {
|
|
|
6802
6820
|
type: String,
|
|
6803
6821
|
default: "不固定"
|
|
6804
6822
|
},
|
|
6823
|
+
columnCheckBasicFieldDesc: {
|
|
6824
|
+
key: "columnCheckBasicFieldDesc",
|
|
6825
|
+
required: false,
|
|
6826
|
+
type: String,
|
|
6827
|
+
default: "基础字段"
|
|
6828
|
+
},
|
|
6805
6829
|
columnCheckGetCheckedLengthDesc: {
|
|
6806
6830
|
key: "columnCheckGetCheckedLengthDesc",
|
|
6807
6831
|
required: false,
|
|
@@ -7072,6 +7096,28 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7072
7096
|
CachedManager.syncCachedSet(props.storageKey, columnState);
|
|
7073
7097
|
}
|
|
7074
7098
|
};
|
|
7099
|
+
const syncShowItemToInitHidden = () => {
|
|
7100
|
+
props.formOptions._skip = true;
|
|
7101
|
+
props.formOptions.forEach((item) => {
|
|
7102
|
+
var _a2;
|
|
7103
|
+
if ((_a2 = localShowItems.value) == null ? void 0 : _a2.includes(item.prop)) {
|
|
7104
|
+
item.initHidden = false;
|
|
7105
|
+
} else {
|
|
7106
|
+
item.initHidden = true;
|
|
7107
|
+
}
|
|
7108
|
+
});
|
|
7109
|
+
nextTick(() => {
|
|
7110
|
+
props.formOptions._skip = false;
|
|
7111
|
+
});
|
|
7112
|
+
};
|
|
7113
|
+
const setLocalShowItems = (list, syncToInitHidden = false) => {
|
|
7114
|
+
if (JSON.stringify(list.sort()) !== JSON.stringify(localShowItems.value.sort())) {
|
|
7115
|
+
localShowItems.value = list;
|
|
7116
|
+
if (syncToInitHidden) {
|
|
7117
|
+
syncShowItemToInitHidden();
|
|
7118
|
+
}
|
|
7119
|
+
}
|
|
7120
|
+
};
|
|
7075
7121
|
const syncCookiesToLocalShowColumn = async () => {
|
|
7076
7122
|
if (props.columnEdit) {
|
|
7077
7123
|
try {
|
|
@@ -7096,20 +7142,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7096
7142
|
}
|
|
7097
7143
|
}
|
|
7098
7144
|
};
|
|
7099
|
-
const syncShowItemToInitHidden = () => {
|
|
7100
|
-
props.formOptions._skip = true;
|
|
7101
|
-
props.formOptions.forEach((item) => {
|
|
7102
|
-
var _a2;
|
|
7103
|
-
if ((_a2 = localShowItems.value) == null ? void 0 : _a2.includes(item.prop)) {
|
|
7104
|
-
item.initHidden = false;
|
|
7105
|
-
} else {
|
|
7106
|
-
item.initHidden = true;
|
|
7107
|
-
}
|
|
7108
|
-
});
|
|
7109
|
-
nextTick(() => {
|
|
7110
|
-
props.formOptions._skip = false;
|
|
7111
|
-
});
|
|
7112
|
-
};
|
|
7113
7145
|
const initCachedData = async () => {
|
|
7114
7146
|
var _a2, _b;
|
|
7115
7147
|
if (props.columnEdit) {
|
|
@@ -7132,6 +7164,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7132
7164
|
return instance == null ? void 0 : instance.$slots.btnBox;
|
|
7133
7165
|
});
|
|
7134
7166
|
const renderSearchFormItemOptions = ref([]);
|
|
7167
|
+
let initSearchForm = true;
|
|
7135
7168
|
const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
|
|
7136
7169
|
props.formOptions._skip = true;
|
|
7137
7170
|
const columns = props.formOptions.map((item, index2) => {
|
|
@@ -7171,6 +7204,10 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7171
7204
|
}
|
|
7172
7205
|
renderSearchFormItemOptions.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
7173
7206
|
nextTick(() => {
|
|
7207
|
+
if (initSearchForm) {
|
|
7208
|
+
initSearchForm = false;
|
|
7209
|
+
calcColumns();
|
|
7210
|
+
}
|
|
7174
7211
|
props.formOptions._skip = false;
|
|
7175
7212
|
});
|
|
7176
7213
|
};
|
|
@@ -7191,14 +7228,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7191
7228
|
}, {
|
|
7192
7229
|
immediate: true
|
|
7193
7230
|
});
|
|
7194
|
-
const setLocalShowItems = (list, syncToInitHidden = false) => {
|
|
7195
|
-
if (JSON.stringify(list.sort()) !== JSON.stringify(localShowItems.value.sort())) {
|
|
7196
|
-
localShowItems.value = list;
|
|
7197
|
-
if (syncToInitHidden) {
|
|
7198
|
-
syncShowItemToInitHidden();
|
|
7199
|
-
}
|
|
7200
|
-
}
|
|
7201
|
-
};
|
|
7202
7231
|
onBeforeMount(() => {
|
|
7203
7232
|
watch(() => {
|
|
7204
7233
|
return props.formOptions;
|
|
@@ -7291,8 +7320,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7291
7320
|
};
|
|
7292
7321
|
const observer = ref();
|
|
7293
7322
|
onMounted(async () => {
|
|
7294
|
-
await nextTick();
|
|
7295
|
-
calcColumns();
|
|
7296
7323
|
await nextTick();
|
|
7297
7324
|
observer.value = new ResizeObserver(onResize);
|
|
7298
7325
|
observer.value.observe(topDom.value, {
|
|
@@ -7356,6 +7383,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7356
7383
|
}
|
|
7357
7384
|
};
|
|
7358
7385
|
const columnCheckConfirm = async (cb, error) => {
|
|
7386
|
+
var _a2;
|
|
7359
7387
|
try {
|
|
7360
7388
|
const value = columnCheckDrawer.value.syncTableColumnsToCookies();
|
|
7361
7389
|
columnCheckConfirmFeedback(value);
|
|
@@ -7364,6 +7392,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7364
7392
|
refreshNfSearchFormModel();
|
|
7365
7393
|
await nextTick();
|
|
7366
7394
|
refreshLabel();
|
|
7395
|
+
(_a2 = nfSearchFormRef.value) == null ? void 0 : _a2.getFormItems();
|
|
7367
7396
|
cb();
|
|
7368
7397
|
} catch (e) {
|
|
7369
7398
|
error();
|
|
@@ -7515,7 +7544,9 @@ var _sfc_render = function render6() {
|
|
|
7515
7544
|
"up-icon": _vm.upIcon,
|
|
7516
7545
|
"down-icon": _vm.downIcon,
|
|
7517
7546
|
"show-btn": _vm.showBtn,
|
|
7518
|
-
"is-collapse": _vm.isCollapse
|
|
7547
|
+
"is-collapse": _vm.isCollapse,
|
|
7548
|
+
"expand-btn-tooltip-desc": _vm.expandBtnTooltipDesc,
|
|
7549
|
+
"shrink-btn-tooltip-desc": _vm.shrinkBtnTooltipDesc
|
|
7519
7550
|
},
|
|
7520
7551
|
on: {
|
|
7521
7552
|
"isCollapseChange": _vm.isCollapseChange
|
|
@@ -7571,7 +7602,7 @@ var _sfc_render = function render6() {
|
|
|
7571
7602
|
}
|
|
7572
7603
|
}, [_c("div", {
|
|
7573
7604
|
staticClass: "nf-flex nf-flex-align-items-start"
|
|
7574
|
-
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("
|
|
7605
|
+
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("nf-button", {
|
|
7575
7606
|
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
7576
7607
|
attrs: {
|
|
7577
7608
|
"type": _vm.queryBtnType,
|
|
@@ -7586,7 +7617,7 @@ var _sfc_render = function render6() {
|
|
|
7586
7617
|
on: {
|
|
7587
7618
|
"click": _vm.onNfSearchFormSearch
|
|
7588
7619
|
}
|
|
7589
|
-
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("export") ? _c("
|
|
7620
|
+
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("export") ? _c("nf-button", {
|
|
7590
7621
|
class: (_vm.exportBtnClass || "") + " nf-btn-export",
|
|
7591
7622
|
attrs: {
|
|
7592
7623
|
"type": _vm.exportBtnType,
|
|
@@ -7601,7 +7632,7 @@ var _sfc_render = function render6() {
|
|
|
7601
7632
|
on: {
|
|
7602
7633
|
"click": _vm.onNfSearchFormExport
|
|
7603
7634
|
}
|
|
7604
|
-
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("reset") ? _c("
|
|
7635
|
+
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("reset") ? _c("nf-button", {
|
|
7605
7636
|
class: (_vm.resetBtnClass || "") + " nf-btn-reset",
|
|
7606
7637
|
attrs: {
|
|
7607
7638
|
"type": _vm.resetBtnType,
|
|
@@ -7616,7 +7647,7 @@ var _sfc_render = function render6() {
|
|
|
7616
7647
|
on: {
|
|
7617
7648
|
"click": _vm.resetNfSearchFormModel
|
|
7618
7649
|
}
|
|
7619
|
-
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _vm.columnEdit ? _c("
|
|
7650
|
+
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _vm.columnEdit ? _c("nf-button", {
|
|
7620
7651
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
7621
7652
|
attrs: {
|
|
7622
7653
|
"type": _vm.checkBtnType,
|
|
@@ -7629,20 +7660,19 @@ var _sfc_render = function render6() {
|
|
|
7629
7660
|
},
|
|
7630
7661
|
on: {
|
|
7631
7662
|
"click": function($event) {
|
|
7632
|
-
$event.stopPropagation();
|
|
7633
7663
|
_vm.configNfSearchItemVisibleDialog = true;
|
|
7634
7664
|
}
|
|
7635
7665
|
}
|
|
7636
7666
|
}, [_c("el-tooltip", {
|
|
7637
7667
|
attrs: {
|
|
7638
7668
|
"content": _vm.columnDisplayBtnText,
|
|
7639
|
-
"placement": "
|
|
7669
|
+
"placement": "top"
|
|
7640
7670
|
}
|
|
7641
7671
|
}, [_c("i", {
|
|
7642
7672
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7643
7673
|
})])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2)]) : _vm._e()], 2), _vm.btnModel === "block" ? _c("div", {
|
|
7644
7674
|
staticClass: "nf-flex nf-flex-align-items nf-mt10"
|
|
7645
|
-
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("
|
|
7675
|
+
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("nf-button", {
|
|
7646
7676
|
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
7647
7677
|
attrs: {
|
|
7648
7678
|
"type": _vm.queryBtnType,
|
|
@@ -7657,7 +7687,7 @@ var _sfc_render = function render6() {
|
|
|
7657
7687
|
on: {
|
|
7658
7688
|
"click": _vm.onNfSearchFormSearch
|
|
7659
7689
|
}
|
|
7660
|
-
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("export") ? _c("
|
|
7690
|
+
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("export") ? _c("nf-button", {
|
|
7661
7691
|
class: (_vm.exportBtnClass || "") + " nf-btn-export",
|
|
7662
7692
|
attrs: {
|
|
7663
7693
|
"type": _vm.exportBtnType,
|
|
@@ -7672,7 +7702,7 @@ var _sfc_render = function render6() {
|
|
|
7672
7702
|
on: {
|
|
7673
7703
|
"click": _vm.onNfSearchFormExport
|
|
7674
7704
|
}
|
|
7675
|
-
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("reset") ? _c("
|
|
7705
|
+
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : _vm._e(), _vm.btnItems.includes("reset") ? _c("nf-button", {
|
|
7676
7706
|
class: (_vm.resetBtnClass || "") + " nf-btn-reset",
|
|
7677
7707
|
attrs: {
|
|
7678
7708
|
"type": _vm.resetBtnType,
|
|
@@ -7687,7 +7717,7 @@ var _sfc_render = function render6() {
|
|
|
7687
7717
|
on: {
|
|
7688
7718
|
"click": _vm.resetNfSearchFormModel
|
|
7689
7719
|
}
|
|
7690
|
-
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _vm.columnEdit ? _c("
|
|
7720
|
+
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _vm.columnEdit ? _c("nf-button", {
|
|
7691
7721
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
7692
7722
|
attrs: {
|
|
7693
7723
|
"type": _vm.checkBtnType,
|
|
@@ -7700,18 +7730,17 @@ var _sfc_render = function render6() {
|
|
|
7700
7730
|
},
|
|
7701
7731
|
on: {
|
|
7702
7732
|
"click": function($event) {
|
|
7703
|
-
$event.stopPropagation();
|
|
7704
7733
|
_vm.configNfSearchItemVisibleDialog = true;
|
|
7705
7734
|
}
|
|
7706
7735
|
}
|
|
7707
|
-
}, [_c("el-tooltip", {
|
|
7736
|
+
}, [_vm.columnEdit ? _c("el-tooltip", {
|
|
7708
7737
|
attrs: {
|
|
7709
7738
|
"content": _vm.columnDisplayBtnText,
|
|
7710
|
-
"placement": "
|
|
7739
|
+
"placement": "top"
|
|
7711
7740
|
}
|
|
7712
7741
|
}, [_c("i", {
|
|
7713
7742
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7714
|
-
})])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.columnEdit && _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7743
|
+
})]) : _vm._e()], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.columnEdit && _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7715
7744
|
ref: "columnCheckDialog",
|
|
7716
7745
|
attrs: {
|
|
7717
7746
|
"storage-key": _vm.storageKey,
|
|
@@ -7787,6 +7816,7 @@ var _sfc_render = function render6() {
|
|
|
7787
7816
|
"fixed-left-desc": _vm.columnCheckFixedLeftDesc,
|
|
7788
7817
|
"clear-desc": _vm.columnCheckClearDesc,
|
|
7789
7818
|
"no-fixed-desc": _vm.columnCheckNoFixedDesc,
|
|
7819
|
+
"basic-field-desc": _vm.columnCheckBasicFieldDesc,
|
|
7790
7820
|
"get-checked-length-desc": _vm.columnCheckGetCheckedLengthDesc,
|
|
7791
7821
|
"get-all-check-desc": _vm.columnCheckGetAllCheckDesc,
|
|
7792
7822
|
"storage-key": _vm.storageKey,
|
|
@@ -135,6 +135,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
135
135
|
type: import("vue-demi").PropType<boolean>;
|
|
136
136
|
default: boolean;
|
|
137
137
|
};
|
|
138
|
+
expandBtnTooltipDesc: {
|
|
139
|
+
type: import("vue-demi").PropType<string>;
|
|
140
|
+
default: string;
|
|
141
|
+
};
|
|
142
|
+
shrinkBtnTooltipDesc: {
|
|
143
|
+
type: import("vue-demi").PropType<string>;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
138
146
|
labelSuffix: {
|
|
139
147
|
type: import("vue-demi").PropType<string>;
|
|
140
148
|
default: undefined;
|
|
@@ -266,6 +274,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
266
274
|
type: import("vue-demi").PropType<string>;
|
|
267
275
|
default: string;
|
|
268
276
|
};
|
|
277
|
+
columnCheckBasicFieldDesc: {
|
|
278
|
+
type: import("vue-demi").PropType<string>;
|
|
279
|
+
default: string;
|
|
280
|
+
};
|
|
269
281
|
columnCheckGetCheckedLengthDesc: {
|
|
270
282
|
type: import("vue-demi").PropType<Function>;
|
|
271
283
|
default: (length: any) => string;
|
|
@@ -617,6 +629,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
617
629
|
type: import("vue-demi").PropType<boolean>;
|
|
618
630
|
default: boolean;
|
|
619
631
|
};
|
|
632
|
+
expandBtnTooltipDesc: {
|
|
633
|
+
type: import("vue-demi").PropType<string>;
|
|
634
|
+
default: string;
|
|
635
|
+
};
|
|
636
|
+
shrinkBtnTooltipDesc: {
|
|
637
|
+
type: import("vue-demi").PropType<string>;
|
|
638
|
+
default: string;
|
|
639
|
+
};
|
|
620
640
|
labelSuffix: {
|
|
621
641
|
type: import("vue-demi").PropType<string>;
|
|
622
642
|
default: undefined;
|
|
@@ -748,6 +768,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
748
768
|
type: import("vue-demi").PropType<string>;
|
|
749
769
|
default: string;
|
|
750
770
|
};
|
|
771
|
+
columnCheckBasicFieldDesc: {
|
|
772
|
+
type: import("vue-demi").PropType<string>;
|
|
773
|
+
default: string;
|
|
774
|
+
};
|
|
751
775
|
columnCheckGetCheckedLengthDesc: {
|
|
752
776
|
type: import("vue-demi").PropType<Function>;
|
|
753
777
|
default: (length: any) => string;
|
|
@@ -920,6 +944,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
920
944
|
expandBtnCircle: boolean;
|
|
921
945
|
expandBtnLoading: boolean;
|
|
922
946
|
expandBtnDisabled: boolean;
|
|
947
|
+
expandBtnTooltipDesc: string;
|
|
948
|
+
shrinkBtnTooltipDesc: string;
|
|
923
949
|
labelSuffix: string;
|
|
924
950
|
hideRequiredAsterisk: boolean;
|
|
925
951
|
showMessage: boolean;
|
|
@@ -952,6 +978,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
952
978
|
columnCheckFixedLeftDesc: string;
|
|
953
979
|
columnCheckClearDesc: string;
|
|
954
980
|
columnCheckNoFixedDesc: string;
|
|
981
|
+
columnCheckBasicFieldDesc: string;
|
|
955
982
|
columnCheckGetCheckedLengthDesc: Function;
|
|
956
983
|
columnCheckGetAllCheckDesc: Function;
|
|
957
984
|
btnItems: string[] | 'search' | 'export' | 'reset' | '';
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
<slot slot="footer" name="footer">
|
|
34
34
|
<div class="nf-search-form-nf-column-check-dialog-button-container">
|
|
35
|
-
<
|
|
36
|
-
<
|
|
35
|
+
<nf-button size="mini" class="nf-search-form-nf-column-check-dialog-button-cancel" @click="visible=false">{{ cancelText }}</nf-button>
|
|
36
|
+
<nf-button type="primary" class="nf-search-form-nf-column-check-dialog-button-confirm" size="mini" @click="submit">{{ confirmText }}</nf-button>
|
|
37
37
|
</div>
|
|
38
38
|
</slot>
|
|
39
39
|
</el-dialog>
|
|
@@ -154,6 +154,7 @@ const props = withDefaults(defineProps<{
|
|
|
154
154
|
fixedLeftDesc?: string
|
|
155
155
|
clearDesc?: string
|
|
156
156
|
noFixedDesc?: string
|
|
157
|
+
basicFieldDesc?: string
|
|
157
158
|
getCheckedLengthDesc?: Function
|
|
158
159
|
getAllCheckDesc?: Function
|
|
159
160
|
/**
|
|
@@ -168,6 +169,7 @@ const props = withDefaults(defineProps<{
|
|
|
168
169
|
fixedLeftDesc: '固定在左侧',
|
|
169
170
|
clearDesc: '清除',
|
|
170
171
|
noFixedDesc: '不固定',
|
|
172
|
+
basicFieldDesc: '基础字段',
|
|
171
173
|
getCheckedLengthDesc: (length) => '已选(' + length + ')',
|
|
172
174
|
getAllCheckDesc: (length) => '全选(' + length + ')',
|
|
173
175
|
columnEdit: false
|
|
@@ -221,7 +223,7 @@ const fields = ref<{
|
|
|
221
223
|
const setFields = (tableColumns) => {
|
|
222
224
|
const obj: Record<string, any> = {}
|
|
223
225
|
tableColumns.map(item => {
|
|
224
|
-
const key = item.category ||
|
|
226
|
+
const key = item.category || props.basicFieldDesc
|
|
225
227
|
if (!obj[key]) {
|
|
226
228
|
obj[key] = []
|
|
227
229
|
}
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
:down-icon="downIcon"
|
|
31
31
|
:show-btn="showBtn"
|
|
32
32
|
:is-collapse="isCollapse"
|
|
33
|
+
:expand-btn-tooltip-desc="expandBtnTooltipDesc"
|
|
34
|
+
:shrink-btn-tooltip-desc="shrinkBtnTooltipDesc"
|
|
33
35
|
|
|
34
36
|
@isCollapseChange="isCollapseChange"
|
|
35
37
|
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
>
|
|
75
77
|
<div class="nf-flex nf-flex-align-items-start">
|
|
76
78
|
<slot v-if="isShowBtnBoxSlot && !reverseBtnSlot" name="btnBox" />
|
|
77
|
-
<
|
|
79
|
+
<nf-button
|
|
78
80
|
v-if="btnItems.includes('search')"
|
|
79
81
|
:type="queryBtnType"
|
|
80
82
|
:icon="queryBtnIcon"
|
|
@@ -87,8 +89,8 @@
|
|
|
87
89
|
:class="(queryBtnClass || '') + ' nf-btn-search'"
|
|
88
90
|
@click="onNfSearchFormSearch"
|
|
89
91
|
>{{ queryBtnText }}
|
|
90
|
-
</
|
|
91
|
-
<
|
|
92
|
+
</nf-button>
|
|
93
|
+
<nf-button
|
|
92
94
|
v-if="btnItems.includes('export')"
|
|
93
95
|
:type="exportBtnType"
|
|
94
96
|
:icon="exportBtnIcon"
|
|
@@ -101,8 +103,8 @@
|
|
|
101
103
|
:class="(exportBtnClass || '') + ' nf-btn-export'"
|
|
102
104
|
@click="onNfSearchFormExport"
|
|
103
105
|
>{{ exportBtnText }}
|
|
104
|
-
</
|
|
105
|
-
<
|
|
106
|
+
</nf-button>
|
|
107
|
+
<nf-button
|
|
106
108
|
v-if="btnItems.includes('reset')"
|
|
107
109
|
:type="resetBtnType"
|
|
108
110
|
:icon="resetBtnIcon"
|
|
@@ -115,29 +117,29 @@
|
|
|
115
117
|
:class="(resetBtnClass || '') + ' nf-btn-reset'"
|
|
116
118
|
@click="resetNfSearchFormModel"
|
|
117
119
|
>{{ resetBtnText }}
|
|
118
|
-
</
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
120
|
+
</nf-button>
|
|
121
|
+
<nf-button :type="checkBtnType"
|
|
122
|
+
:plain="checkBtnPlain"
|
|
123
|
+
:size="checkBtnSize"
|
|
124
|
+
:round="checkBtnRound"
|
|
125
|
+
:circle="checkBtnCircle"
|
|
126
|
+
:loading="checkBtnLoading"
|
|
127
|
+
:disabled="checkBtnDisabled"
|
|
128
|
+
:class="(checkBtnClass || '') + ' nf-btn-check'"
|
|
129
|
+
v-if="columnEdit"
|
|
130
|
+
@click="configNfSearchItemVisibleDialog = true"
|
|
131
|
+
>
|
|
132
|
+
<el-tooltip :content="columnDisplayBtnText" placement="top">
|
|
133
|
+
<i class="iconfont icon-shaixuan1 nf-fs12"></i>
|
|
134
|
+
</el-tooltip>
|
|
135
|
+
</nf-button>
|
|
134
136
|
<slot v-if="isShowBtnBoxSlot && reverseBtnSlot" name="btnBox" />
|
|
135
137
|
</div>
|
|
136
138
|
</nf-form-item>
|
|
137
139
|
</nf-form>
|
|
138
140
|
<div class="nf-flex nf-flex-align-items nf-mt10" v-if="btnModel==='block'">
|
|
139
141
|
<slot v-if="isShowBtnBoxSlot && !reverseBtnSlot" name="btnBox" />
|
|
140
|
-
<
|
|
142
|
+
<nf-button
|
|
141
143
|
v-if="btnItems.includes('search')"
|
|
142
144
|
:type="queryBtnType"
|
|
143
145
|
:icon="queryBtnIcon"
|
|
@@ -150,8 +152,8 @@
|
|
|
150
152
|
:class="(queryBtnClass || '') + ' nf-btn-search'"
|
|
151
153
|
@click="onNfSearchFormSearch"
|
|
152
154
|
>{{ queryBtnText }}
|
|
153
|
-
</
|
|
154
|
-
<
|
|
155
|
+
</nf-button>
|
|
156
|
+
<nf-button
|
|
155
157
|
v-if="btnItems.includes('export')"
|
|
156
158
|
:type="exportBtnType"
|
|
157
159
|
:icon="exportBtnIcon"
|
|
@@ -164,8 +166,8 @@
|
|
|
164
166
|
:class="(exportBtnClass || '') + ' nf-btn-export'"
|
|
165
167
|
@click="onNfSearchFormExport"
|
|
166
168
|
>{{ exportBtnText }}
|
|
167
|
-
</
|
|
168
|
-
<
|
|
169
|
+
</nf-button>
|
|
170
|
+
<nf-button
|
|
169
171
|
v-if="btnItems.includes('reset')"
|
|
170
172
|
:type="resetBtnType"
|
|
171
173
|
:icon="resetBtnIcon"
|
|
@@ -178,22 +180,22 @@
|
|
|
178
180
|
:class="(resetBtnClass || '') + ' nf-btn-reset'"
|
|
179
181
|
@click="resetNfSearchFormModel"
|
|
180
182
|
>{{ resetBtnText }}
|
|
181
|
-
</
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
183
|
+
</nf-button>
|
|
184
|
+
<nf-button :type="checkBtnType"
|
|
185
|
+
v-if="columnEdit"
|
|
186
|
+
:plain="checkBtnPlain"
|
|
187
|
+
:size="checkBtnSize || size"
|
|
188
|
+
:round="checkBtnRound"
|
|
189
|
+
:circle="checkBtnCircle"
|
|
190
|
+
:loading="checkBtnLoading"
|
|
191
|
+
:disabled="checkBtnDisabled"
|
|
192
|
+
@click="configNfSearchItemVisibleDialog = true"
|
|
193
|
+
:class="(checkBtnClass || '') + ' nf-btn-check'"
|
|
194
|
+
>
|
|
195
|
+
<el-tooltip :content="columnDisplayBtnText" placement="top" v-if="columnEdit">
|
|
196
|
+
<i class="iconfont icon-shaixuan1 nf-fs12"></i>
|
|
197
|
+
</el-tooltip>
|
|
198
|
+
</nf-button>
|
|
197
199
|
<slot v-if="isShowBtnBoxSlot && reverseBtnSlot" name="btnBox" />
|
|
198
200
|
</div>
|
|
199
201
|
<column-check-dialog
|
|
@@ -249,6 +251,7 @@
|
|
|
249
251
|
:fixed-left-desc="columnCheckFixedLeftDesc"
|
|
250
252
|
:clear-desc="columnCheckClearDesc"
|
|
251
253
|
:no-fixed-desc="columnCheckNoFixedDesc"
|
|
254
|
+
:basic-field-desc="columnCheckBasicFieldDesc"
|
|
252
255
|
:get-checked-length-desc="columnCheckGetCheckedLengthDesc"
|
|
253
256
|
:get-all-check-desc="columnCheckGetAllCheckDesc"
|
|
254
257
|
ref="columnCheckDrawer"
|
|
@@ -313,6 +316,8 @@ const props = withDefaults(defineProps<{
|
|
|
313
316
|
expandBtnCircle?: boolean,
|
|
314
317
|
expandBtnLoading?: boolean,
|
|
315
318
|
expandBtnDisabled?: boolean,
|
|
319
|
+
expandBtnTooltipDesc?: string,
|
|
320
|
+
shrinkBtnTooltipDesc?: string,
|
|
316
321
|
/**
|
|
317
322
|
* 以下同el-form配置项
|
|
318
323
|
*/
|
|
@@ -403,6 +408,7 @@ const props = withDefaults(defineProps<{
|
|
|
403
408
|
columnCheckFixedLeftDesc?: string
|
|
404
409
|
columnCheckClearDesc?: string
|
|
405
410
|
columnCheckNoFixedDesc?: string
|
|
411
|
+
columnCheckBasicFieldDesc?: string
|
|
406
412
|
columnCheckGetCheckedLengthDesc?: Function
|
|
407
413
|
columnCheckGetAllCheckDesc?: Function
|
|
408
414
|
columnCheckTabs?: ITabItem[],
|
|
@@ -467,6 +473,8 @@ const props = withDefaults(defineProps<{
|
|
|
467
473
|
expandBtnCircle: false,
|
|
468
474
|
expandBtnLoading: false,
|
|
469
475
|
expandBtnDisabled: false,
|
|
476
|
+
expandBtnTooltipDesc: '展开',
|
|
477
|
+
shrinkBtnTooltipDesc: '收起',
|
|
470
478
|
columns: undefined,
|
|
471
479
|
labelPosition: 'top',
|
|
472
480
|
inline: true,
|
|
@@ -545,6 +553,7 @@ const props = withDefaults(defineProps<{
|
|
|
545
553
|
columnCheckFixedLeftDesc: '固定在左侧',
|
|
546
554
|
columnCheckClearDesc: '清除',
|
|
547
555
|
columnCheckNoFixedDesc: '不固定',
|
|
556
|
+
columnCheckBasicFieldDesc: '基础字段',
|
|
548
557
|
columnCheckGetCheckedLengthDesc: (length) => '已选(' + length + ')',
|
|
549
558
|
columnCheckGetAllCheckDesc: (length) => '全选(' + length + ')'
|
|
550
559
|
})
|
|
@@ -653,6 +662,29 @@ const syncLocalShowColumnToCookies = () => {
|
|
|
653
662
|
CachedManager.syncCachedSet(props.storageKey, columnState)
|
|
654
663
|
}
|
|
655
664
|
}
|
|
665
|
+
const syncShowItemToInitHidden = () => {
|
|
666
|
+
props.formOptions._skip = true
|
|
667
|
+
props.formOptions.forEach(item => {
|
|
668
|
+
if (localShowItems.value?.includes(item.prop!)) {
|
|
669
|
+
item.initHidden = false
|
|
670
|
+
} else {
|
|
671
|
+
item.initHidden = true
|
|
672
|
+
}
|
|
673
|
+
})
|
|
674
|
+
nextTick(() => {
|
|
675
|
+
props.formOptions._skip = false
|
|
676
|
+
})
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
const setLocalShowItems = (list, syncToInitHidden = false) => {
|
|
680
|
+
if (JSON.stringify(list.sort()) !== JSON.stringify(localShowItems.value.sort())) {
|
|
681
|
+
localShowItems.value = list
|
|
682
|
+
if (syncToInitHidden) {
|
|
683
|
+
syncShowItemToInitHidden()
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
656
688
|
|
|
657
689
|
const syncCookiesToLocalShowColumn = async () => {
|
|
658
690
|
if (props.columnEdit) {
|
|
@@ -679,19 +711,7 @@ const syncCookiesToLocalShowColumn = async () => {
|
|
|
679
711
|
}
|
|
680
712
|
}
|
|
681
713
|
|
|
682
|
-
|
|
683
|
-
props.formOptions._skip = true
|
|
684
|
-
props.formOptions.forEach(item => {
|
|
685
|
-
if (localShowItems.value?.includes(item.prop!)) {
|
|
686
|
-
item.initHidden = false
|
|
687
|
-
} else {
|
|
688
|
-
item.initHidden = true
|
|
689
|
-
}
|
|
690
|
-
})
|
|
691
|
-
nextTick(() => {
|
|
692
|
-
props.formOptions._skip = false
|
|
693
|
-
})
|
|
694
|
-
}
|
|
714
|
+
|
|
695
715
|
const initCachedData = async () => {
|
|
696
716
|
if (props.columnEdit) {
|
|
697
717
|
// 同步缓存参数
|
|
@@ -730,6 +750,7 @@ const isShowBtnBoxSlot = computed(() => {
|
|
|
730
750
|
* 转换成最终的表单项渲染数据
|
|
731
751
|
*/
|
|
732
752
|
const renderSearchFormItemOptions = ref<NfSearchFormItemOption[]>([])
|
|
753
|
+
let initSearchForm = true
|
|
733
754
|
const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
|
|
734
755
|
props.formOptions._skip = true
|
|
735
756
|
const columns = props.formOptions!.map((item, index) => {
|
|
@@ -771,6 +792,10 @@ const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
|
|
|
771
792
|
}
|
|
772
793
|
renderSearchFormItemOptions.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
|
|
773
794
|
nextTick(() => {
|
|
795
|
+
if (initSearchForm) {
|
|
796
|
+
initSearchForm = false
|
|
797
|
+
calcColumns()
|
|
798
|
+
}
|
|
774
799
|
props.formOptions._skip = false;
|
|
775
800
|
})
|
|
776
801
|
}
|
|
@@ -806,14 +831,6 @@ watch(() => {
|
|
|
806
831
|
immediate: true
|
|
807
832
|
})
|
|
808
833
|
|
|
809
|
-
const setLocalShowItems = (list, syncToInitHidden = false) => {
|
|
810
|
-
if (JSON.stringify(list.sort()) !== JSON.stringify(localShowItems.value.sort())) {
|
|
811
|
-
localShowItems.value = list
|
|
812
|
-
if (syncToInitHidden) {
|
|
813
|
-
syncShowItemToInitHidden()
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
834
|
|
|
818
835
|
/**
|
|
819
836
|
* 初始化formData表单数据
|
|
@@ -922,8 +939,6 @@ const calcColumns = () => {
|
|
|
922
939
|
|
|
923
940
|
const observer = ref()
|
|
924
941
|
onMounted(async () => {
|
|
925
|
-
await nextTick()
|
|
926
|
-
calcColumns()
|
|
927
942
|
await nextTick()
|
|
928
943
|
observer.value = new ResizeObserver(onResize)
|
|
929
944
|
observer.value.observe(topDom.value, { box: 'border-box' })
|
|
@@ -1015,6 +1030,7 @@ const columnCheckConfirm = async (cb, error) => {
|
|
|
1015
1030
|
refreshNfSearchFormModel()
|
|
1016
1031
|
await nextTick()
|
|
1017
1032
|
refreshLabel()
|
|
1033
|
+
nfSearchFormRef.value?.getFormItems()
|
|
1018
1034
|
cb()
|
|
1019
1035
|
} catch (e) {
|
|
1020
1036
|
error()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-search-form",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.54",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,21 +14,22 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^3.2.
|
|
18
|
-
"@94ai/nf-action": "^3.2.
|
|
19
|
-
"@94ai/nf-
|
|
20
|
-
"@94ai/nf-double-
|
|
21
|
-
"@94ai/nf-double-
|
|
22
|
-
"@94ai/nf-double-
|
|
23
|
-
"@94ai/nf-
|
|
24
|
-
"@94ai/nf-
|
|
25
|
-
"@94ai/nf-form
|
|
26
|
-
"@94ai/nf-
|
|
27
|
-
"@94ai/nf-
|
|
28
|
-
"@94ai/nf-
|
|
29
|
-
"@94ai/nf-
|
|
30
|
-
"@94ai/nf-
|
|
31
|
-
"@94ai/nf-
|
|
17
|
+
"@94ai/common-utils": "^3.2.54",
|
|
18
|
+
"@94ai/nf-action": "^3.2.54",
|
|
19
|
+
"@94ai/nf-button": "^3.2.54",
|
|
20
|
+
"@94ai/nf-double-half-year": "^3.2.54",
|
|
21
|
+
"@94ai/nf-double-quarter": "^3.2.54",
|
|
22
|
+
"@94ai/nf-double-week": "^3.2.54",
|
|
23
|
+
"@94ai/nf-double-year": "^3.2.54",
|
|
24
|
+
"@94ai/nf-drawer": "^3.2.54",
|
|
25
|
+
"@94ai/nf-form": "^3.2.54",
|
|
26
|
+
"@94ai/nf-form-item": "^3.2.54",
|
|
27
|
+
"@94ai/nf-half-year-picker": "^3.2.54",
|
|
28
|
+
"@94ai/nf-message": "^3.2.54",
|
|
29
|
+
"@94ai/nf-quarter-picker": "^3.2.54",
|
|
30
|
+
"@94ai/nf-select-transfer": "^3.2.54",
|
|
31
|
+
"@94ai/nf-theme-chalk": "^3.2.54",
|
|
32
|
+
"@94ai/nf-virtual-select": "^3.2.54",
|
|
32
33
|
"idb-keyval": "^6.2.1",
|
|
33
34
|
"resize-observer-polyfill": "^1.5.1",
|
|
34
35
|
"vue-demi": "^0.14.5",
|
|
@@ -47,5 +48,5 @@
|
|
|
47
48
|
"types": "lib/index.d.ts",
|
|
48
49
|
"main": "lib/nf-search-form.cjs.js",
|
|
49
50
|
"module": "lib/nf-search-form.esm-bundler.js",
|
|
50
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "bfd522f9670244b10ad561f8d76ea7b09ce59917"
|
|
51
52
|
}
|