cnhis-design-vue 3.1.41-beta.8 → 3.1.41-beta.9
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/README.md +87 -87
- package/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/iho-table/index.d.ts +2 -2
- package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -2
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/plugins/{filterPlugin → filterRenderPlugin}/filter.vue.d.ts +15 -74
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +6 -6
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -3
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/table-filter/index.d.ts +2 -71
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +2 -20
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +2 -18
- package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -1
- package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +0 -51
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
- package/es/components/table-filter/style/index.css +1 -1
- package/es/env.d.ts +24 -24
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
- package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -1
- package/es/components/table-filter/src/components/age-com/index.vue.d.ts +0 -119
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +0 -199
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +0 -2
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +0 -1
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +0 -90
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +0 -113
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +0 -266
- package/es/components/table-filter/src/components/range-age/index.vue.d.ts +0 -248
- package/es/components/table-filter/src/const/dataOptions.d.ts +0 -12
- package/es/components/table-filter/src/const/dataOptions.js +0 -1
- package/es/components/table-filter/src/directive/preventReClick.d.ts +0 -4
- package/es/components/table-filter/src/directive/preventReClick.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1088,57 +1088,6 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1088
1088
|
NIcon: any;
|
|
1089
1089
|
NInput: any;
|
|
1090
1090
|
NButton: any;
|
|
1091
|
-
NGrid: any;
|
|
1092
|
-
NGridItem: import("vue").DefineComponent<{
|
|
1093
|
-
readonly span: {
|
|
1094
|
-
readonly type: import("vue").PropType<string | number>;
|
|
1095
|
-
readonly default: 1;
|
|
1096
|
-
};
|
|
1097
|
-
readonly offset: {
|
|
1098
|
-
readonly type: import("vue").PropType<string | number>;
|
|
1099
|
-
readonly default: 0;
|
|
1100
|
-
};
|
|
1101
|
-
readonly suffix: BooleanConstructor;
|
|
1102
|
-
readonly privateOffset: NumberConstructor;
|
|
1103
|
-
readonly privateSpan: NumberConstructor;
|
|
1104
|
-
readonly privateColStart: NumberConstructor;
|
|
1105
|
-
readonly privateShow: {
|
|
1106
|
-
readonly type: BooleanConstructor;
|
|
1107
|
-
readonly default: true;
|
|
1108
|
-
};
|
|
1109
|
-
}, {
|
|
1110
|
-
overflow: import("vue").Ref<boolean>;
|
|
1111
|
-
itemStyle: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
1112
|
-
layoutShiftDisabled: import("vue").Ref<boolean>;
|
|
1113
|
-
mergedXGap: import("vue").ComputedRef<string>;
|
|
1114
|
-
deriveStyle: () => {
|
|
1115
|
-
display: string;
|
|
1116
|
-
gridColumn: string;
|
|
1117
|
-
marginLeft: string;
|
|
1118
|
-
};
|
|
1119
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1120
|
-
readonly span: {
|
|
1121
|
-
readonly type: import("vue").PropType<string | number>;
|
|
1122
|
-
readonly default: 1;
|
|
1123
|
-
};
|
|
1124
|
-
readonly offset: {
|
|
1125
|
-
readonly type: import("vue").PropType<string | number>;
|
|
1126
|
-
readonly default: 0;
|
|
1127
|
-
};
|
|
1128
|
-
readonly suffix: BooleanConstructor;
|
|
1129
|
-
readonly privateOffset: NumberConstructor;
|
|
1130
|
-
readonly privateSpan: NumberConstructor;
|
|
1131
|
-
readonly privateColStart: NumberConstructor;
|
|
1132
|
-
readonly privateShow: {
|
|
1133
|
-
readonly type: BooleanConstructor;
|
|
1134
|
-
readonly default: true;
|
|
1135
|
-
};
|
|
1136
|
-
}>>, {
|
|
1137
|
-
readonly offset: string | number;
|
|
1138
|
-
readonly span: string | number;
|
|
1139
|
-
readonly suffix: boolean;
|
|
1140
|
-
readonly privateShow: boolean;
|
|
1141
|
-
}>;
|
|
1142
1091
|
CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1143
1092
|
AddOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1144
1093
|
RenderWidget: import("vue").DefineComponent<{
|
|
@@ -1419,7 +1368,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1419
1368
|
}[]>;
|
|
1420
1369
|
displayCategoryLists: import("vue").Ref<string[]>;
|
|
1421
1370
|
settingId: import("vue").Ref<string>;
|
|
1422
|
-
searchDefName: import("vue").Ref<string>;
|
|
1423
1371
|
classifyModal: import("vue").Ref<boolean>;
|
|
1424
1372
|
showTitleName: import("vue").Ref<string>;
|
|
1425
1373
|
dynamicStyle: import("vue").ComputedRef<{
|
|
@@ -1452,7 +1400,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1452
1400
|
saveWidth: () => void;
|
|
1453
1401
|
updateTableCondiTion: () => Promise<void>;
|
|
1454
1402
|
saveGetTableCondiTionList: (options: any) => Promise<void>;
|
|
1455
|
-
changeSearch: (key: string, item: import("./src/types").ITreeDataType) => void;
|
|
1456
1403
|
getTableCondiTionListRequest: (first?: boolean | undefined) => void;
|
|
1457
1404
|
reloadList: (item: any) => void;
|
|
1458
1405
|
handleGetTableCondiTionList: (first?: boolean | undefined, conditionMapVal?: {}) => Promise<unknown>;
|
|
@@ -1478,10 +1425,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1478
1425
|
default: () => never[];
|
|
1479
1426
|
};
|
|
1480
1427
|
settingId: StringConstructor;
|
|
1481
|
-
searchDefName: {
|
|
1482
|
-
type: StringConstructor;
|
|
1483
|
-
default: string;
|
|
1484
|
-
};
|
|
1485
1428
|
filterApiConfig: {
|
|
1486
1429
|
type: ObjectConstructor;
|
|
1487
1430
|
default: () => {};
|
|
@@ -1501,10 +1444,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1501
1444
|
default: () => never[];
|
|
1502
1445
|
};
|
|
1503
1446
|
settingId: StringConstructor;
|
|
1504
|
-
searchDefName: {
|
|
1505
|
-
type: StringConstructor;
|
|
1506
|
-
default: string;
|
|
1507
|
-
};
|
|
1508
1447
|
filterApiConfig: {
|
|
1509
1448
|
type: ObjectConstructor;
|
|
1510
1449
|
default: () => {};
|
|
@@ -1514,17 +1453,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1514
1453
|
default: boolean;
|
|
1515
1454
|
};
|
|
1516
1455
|
}>> & {
|
|
1517
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
1518
1456
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
1519
1457
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
1520
1458
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
1521
1459
|
}>>;
|
|
1522
|
-
emit: (event: "
|
|
1460
|
+
emit: (event: "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", ...args: any[]) => void;
|
|
1523
1461
|
$message: import("naive-ui").MessageApi;
|
|
1524
1462
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
1525
1463
|
conditionList: import("vue").Ref<unknown[]>;
|
|
1526
1464
|
checkedItem: import("vue").Ref<any>;
|
|
1527
|
-
searchName: any;
|
|
1528
1465
|
addVisible: import("vue").Ref<boolean>;
|
|
1529
1466
|
actionList_prop: import("vue").Ref<{}>;
|
|
1530
1467
|
newSearchFieldList: any;
|
|
@@ -2291,7 +2228,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2291
2228
|
filterApiConfig: Record<string, any>;
|
|
2292
2229
|
conditionList: unknown[];
|
|
2293
2230
|
}>;
|
|
2294
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
2231
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList")[], "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2295
2232
|
searchFieldList: {
|
|
2296
2233
|
type: ArrayConstructor;
|
|
2297
2234
|
default: () => never[];
|
|
@@ -2301,10 +2238,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2301
2238
|
default: () => never[];
|
|
2302
2239
|
};
|
|
2303
2240
|
settingId: StringConstructor;
|
|
2304
|
-
searchDefName: {
|
|
2305
|
-
type: StringConstructor;
|
|
2306
|
-
default: string;
|
|
2307
|
-
};
|
|
2308
2241
|
filterApiConfig: {
|
|
2309
2242
|
type: ObjectConstructor;
|
|
2310
2243
|
default: () => {};
|
|
@@ -2314,7 +2247,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2314
2247
|
default: boolean;
|
|
2315
2248
|
};
|
|
2316
2249
|
}>> & {
|
|
2317
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
2318
2250
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
2319
2251
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
2320
2252
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
@@ -2322,7 +2254,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2322
2254
|
searchFieldList: unknown[];
|
|
2323
2255
|
filterApiConfig: Record<string, any>;
|
|
2324
2256
|
conditionList: unknown[];
|
|
2325
|
-
searchDefName: string;
|
|
2326
2257
|
classifyModal: boolean;
|
|
2327
2258
|
}>;
|
|
2328
2259
|
vFlexibleResize: {
|
|
@@ -215,7 +215,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
215
215
|
}[]>;
|
|
216
216
|
displayCategoryLists: import("vue").Ref<string[]>;
|
|
217
217
|
settingId: import("vue").Ref<string>;
|
|
218
|
-
searchDefName: import("vue").Ref<string>;
|
|
219
218
|
classifyModal: import("vue").Ref<boolean>;
|
|
220
219
|
showTitleName: import("vue").Ref<string>;
|
|
221
220
|
dynamicStyle: import("vue").ComputedRef<{
|
|
@@ -248,7 +247,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
248
247
|
saveWidth: () => void;
|
|
249
248
|
updateTableCondiTion: () => Promise<void>;
|
|
250
249
|
saveGetTableCondiTionList: (options: any) => Promise<void>;
|
|
251
|
-
changeSearch: (key: string, item: ITreeDataType) => void;
|
|
252
250
|
getTableCondiTionListRequest: (first?: boolean) => void;
|
|
253
251
|
reloadList: (item: any) => void;
|
|
254
252
|
handleGetTableCondiTionList: (first?: boolean, conditionMapVal?: {}) => Promise<unknown>;
|
|
@@ -274,10 +272,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
274
272
|
default: () => never[];
|
|
275
273
|
};
|
|
276
274
|
settingId: StringConstructor;
|
|
277
|
-
searchDefName: {
|
|
278
|
-
type: StringConstructor;
|
|
279
|
-
default: string;
|
|
280
|
-
};
|
|
281
275
|
filterApiConfig: {
|
|
282
276
|
type: ObjectConstructor;
|
|
283
277
|
default: () => {};
|
|
@@ -297,10 +291,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
297
291
|
default: () => never[];
|
|
298
292
|
};
|
|
299
293
|
settingId: StringConstructor;
|
|
300
|
-
searchDefName: {
|
|
301
|
-
type: StringConstructor;
|
|
302
|
-
default: string;
|
|
303
|
-
};
|
|
304
294
|
filterApiConfig: {
|
|
305
295
|
type: ObjectConstructor;
|
|
306
296
|
default: () => {};
|
|
@@ -310,17 +300,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
310
300
|
default: boolean;
|
|
311
301
|
};
|
|
312
302
|
}>> & {
|
|
313
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
314
303
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
315
304
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
316
305
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
317
306
|
}>>;
|
|
318
|
-
emit: (event: "
|
|
307
|
+
emit: (event: "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", ...args: any[]) => void;
|
|
319
308
|
$message: import("naive-ui").MessageApi;
|
|
320
309
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
321
310
|
conditionList: import("vue").Ref<unknown[]>;
|
|
322
311
|
checkedItem: import("vue").Ref<any>;
|
|
323
|
-
searchName: any;
|
|
324
312
|
addVisible: import("vue").Ref<boolean>;
|
|
325
313
|
actionList_prop: import("vue").Ref<{}>;
|
|
326
314
|
newSearchFieldList: any;
|
|
@@ -1087,7 +1075,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1087
1075
|
filterApiConfig: Record<string, any>;
|
|
1088
1076
|
conditionList: unknown[];
|
|
1089
1077
|
}>;
|
|
1090
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
1078
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList")[], "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1091
1079
|
searchFieldList: {
|
|
1092
1080
|
type: ArrayConstructor;
|
|
1093
1081
|
default: () => never[];
|
|
@@ -1097,10 +1085,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1097
1085
|
default: () => never[];
|
|
1098
1086
|
};
|
|
1099
1087
|
settingId: StringConstructor;
|
|
1100
|
-
searchDefName: {
|
|
1101
|
-
type: StringConstructor;
|
|
1102
|
-
default: string;
|
|
1103
|
-
};
|
|
1104
1088
|
filterApiConfig: {
|
|
1105
1089
|
type: ObjectConstructor;
|
|
1106
1090
|
default: () => {};
|
|
@@ -1110,7 +1094,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1110
1094
|
default: boolean;
|
|
1111
1095
|
};
|
|
1112
1096
|
}>> & {
|
|
1113
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
1114
1097
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
1115
1098
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
1116
1099
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
@@ -1118,7 +1101,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1118
1101
|
searchFieldList: unknown[];
|
|
1119
1102
|
filterApiConfig: Record<string, any>;
|
|
1120
1103
|
conditionList: unknown[];
|
|
1121
|
-
searchDefName: string;
|
|
1122
1104
|
classifyModal: boolean;
|
|
1123
1105
|
}>;
|
|
1124
1106
|
vFlexibleResize: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as i,ref as n,provide as t,computed as l,onActivated as a,onBeforeMount as s,onMounted as o,nextTick as d,watch as c,openBlock as r,createElementBlock as h,normalizeClass as u,unref as p,normalizeStyle as f,withDirectives as g,createVNode as m,createTextVNode as v,toDisplayString as y,createCommentVNode as C,createElementVNode as k,Fragment as b,renderList as S,createBlock as x,withCtx as _,renderSlot as w}from"vue";import{NIcon as I,NTooltip as O}from"naive-ui";import{Repeat as L,SettingsOutline as T,ChevronDown as N,ChevronForward as M,Checkmark as j,Close as z,ChevronUp as B}from"@vicons/ionicons5";import P from"../components/set-classification/index.vue.js";import A from"../directive/flexibleResize.js";import{root_isShowResetButton as E}from"../const/index.js";import J from"../hooks/useMixins.js";import D from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import R from"../../../../_virtual/plugin-vue_export-helper.js";const F={key:0,class:"header"},W={class:"tree"},$=["onClick"],q={key:0,class:"digital-span"},G=["onClick"],Q={key:0,class:"digital-span"},V=["onClick"],H={class:"child-item-name"},K={key:0,class:"digital-span"},U={key:1,class:"tree-type-footer"},X={class:"selected-num"},Y={key:0,class:"tile-type classify-1"},Z={key:0,class:"header"},ee={class:"right-setting"},ie=["onClick"],ne={key:0,class:"digital-span"},te={class:"parent ellips"},le={class:"children"},ae=["onClick"],se={key:0,class:"digital-span"},oe={key:1,class:"selected-list"},de={class:"selected-num"},ce={key:0,class:"digital-span"},re={key:0,class:"digital-span"},he={key:0,class:"main-wrapper"},ue=["onClick"],pe={key:0,class:"digital-span"},fe={class:"tree-footer"},ge=["onClick"],me=["onClick"],ve={key:0,class:"digital-span"},ye={key:0,class:"select-type-footer"},Ce={class:"selected-num"};var ke=R(e({__name:"Classification-com",props:{tableId:{type:String,default:""},conditionSid:{type:Array,default:()=>[]},curClassificationIndex:{type:Number},curClassificationWidth:{type:Number},conditionType:{type:String,default:""},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:0},countCondition:{type:Number,default:0},countTabCondition:{type:Number,default:0},isShowResetButton:{type:Boolean,default:!0},conditionMap:{type:Object,default:()=>{}},filterApiConfig:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]}},emits:["changeSearch","setCurTreeData","setClassificationIndex","getClassification","reloadList","getQuickSearchListObj","setConditionMap","setClassifyModal"],setup(e,{emit:R}){const ke=e,{handleGetConfigApi:be}=J(),Se=i(),xe=n(null);let _e=n(150),we=n(!1),Ie=n([]),Oe=n([]),Le=n([]),Te=n(2),Ne=n(""),Me=n({name:"全部数据",sid:"all_data"}),je=n([]),ze=n([]),Be=n(""),Pe=n(""),Ae=n(!1),Ee=n("全部数据");t(E,n(ke.isShowResetButton));let Je=l((()=>0===Te.value?{marginRight:"8px"}:2===Te.value?{display:"inline-block"}:{})),De=l((()=>{let e=Oe.value.filter((e=>-1!==ke.conditionSid.indexOf(e.sid)));if(-1!==ke.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Re=l((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:t}=e;return si(n,t)+i})),Fe=l((()=>1===ke.countCondition||1===ke.countTabCondition));function We(e){e.open?e.open=!1:e.open=!0}function $e(e,i,n){if(Ee.value=e.name,!e.digital&&1===ke.countCondition)return!1;let t=function(e,i,n){let t=JSON.parse(JSON.stringify(i));if("all_data"===e)t=["all_data"];else if("keyword"===ke.conditionType){let i=t.findIndex((e=>"all_data"===e));-1!==i&&t.splice(i,1);let l=t.findIndex((i=>i===e));-1!==l?(t.splice(l,1),0===t.length&&(t=["all_data"])):(n.children&&n.children.length>0&&(l=t.findIndex((e=>-1!==n.children.findIndex((i=>i.sid===e))))),-1!==l&&t.splice(l,1),t.push(e))}else t=-1!==t.indexOf(e)?["all_data"]:[e];return t}(e.sid,ke.conditionSid,n),l=function(e){let i=[];return Ie.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(t);He(!1),R("changeSearch","all_data"===e.sid?"all":"",e,n,l)}function qe(){R("setCurTreeData",Ie.value);let e="";if(2===Te.value)e=0;else{let i=Te.value;e=++i}_e.value=150,Ge(e)}async function Ge(e,i){let n={tableId:ke.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await be(n,"requestSaveListPersonaSetting",{},ke.filterApiConfig)&&R("setClassificationIndex",e)}catch(e){console.log(e)}}function Qe(){Ae.value=!0,He(!1)}function Ve(e){R("setClassifyModal",e),Ae.value=e}function He(e){we.value=void 0===e?!we.value:e}function Ke(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==ke.conditionSid.indexOf(e.item.sid)&&R("changeSearch","all",{name:"全部数据",sid:"all_data"}),ke.tableId)&&Object.keys(ke.conditionMap).length>0){Ie.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=ke.conditionMap;Le.value=JSON.parse(JSON.stringify(n)),ze.value=e||[],Oe.value=JSON.parse(JSON.stringify(n));const t={name:"全部数据",sid:"all_data"};Oe.value.unshift(t);let l=[];0===e.length&&(e=["未分类"]),e.forEach((e=>{let i={name:e,children:[]};n.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==ke.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&l.push(i)})),l.unshift({name:"全部数据",sid:"all_data"}),Ie.value=l,0===Te.value&&(i=!0,Ie.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function Ue(e){try{await Ke(e)}catch(e){console.log(e)}}function Xe({distance:e}){const i=_e.value+e;_e.value=Math.min(Math.max(i,50),650)}function Ye(){Ge(Te.value,_e.value)}async function Ze(){await li(ke.tableId),ni()}async function ei(e){await li(ke.tableId),ti(),R("getClassification",e)}function ii(e,i){Pe.value="all"==e?"全部数据":i.name,R("changeSearch",e,i)}function ni(e){ti(e).then((e=>{R("reloadList",e)}))}function ti(e,i={}){if(!ke.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:ke.conditionMap;return new Promise(((i,t)=>{var l,a,s,o,d,c;if(Object.keys(n).length>0){je.value=n.conditionList||[],ze.value=n.displayCategoryList||[];let t={conditionList:je.value,displayCategoryList:ze.value};R("getQuickSearchListObj",t),Be.value=n.settingId;const r=je.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};Pe.value=r.name,(null==(a=null==(l=Se.tableOptions)?void 0:l.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(o=null==(s=Se.tableOptions)?void 0:s.filterCondition)?void 0:o.name,sid:null==(c=null==(d=Se.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function li(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await be(i,"requestTableCondiTionList",{},ke.filterApiConfig);return R("setConditionMap",n),Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function ai(e){return 1===ke.countCondition&&(e.digital||0===e.digital)}function si(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{Ue({})})),s((()=>{Ue({})})),o((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();xe&&i.includes(xe.value)||He(!1)}))}))})),c((()=>ke.tableId),(e=>{e&&(ni(!0),Ne.value!==e&&(Ne.value=e))}),{immediate:!0,deep:!0}),c((()=>ke.curClassificationIndex),(e=>{void 0!==e&&(Te.value=e)}),{immediate:!0,deep:!0}),c((()=>ke.curClassificationWidth),(e=>{e&&(_e.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),h("div",{class:u(["classification-block","classificationIndex-"+p(Te)]),style:f(p(Je))},[0===p(Te)?g((r(),h("div",{key:0,class:"tree-type classify-0",style:f({width:p(_e)+"px",paddingBottom:"keyword"===e.conditionType?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",F,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"header-1",onClick:qe},[m(p(I),{component:p(L),size:"16"},null,8,["component"]),v(" "+y("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"header-1",onClick:Qe},[m(p(I),{component:p(T),size:"16"},null,8,["component"]),v(" "+y("设置"))])):C("v-if",!0)])):C("v-if",!0),k("ul",W,[(r(!0),h(b,null,S(p(Ie),((i,n)=>(r(),h(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(b,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>We(i)},[k("span",null,[v(y(i.name)+" ",1),ai(i)?(r(),h("span",Q," ("+y(i.digital||0)+") ",1)):C("v-if",!0)]),m(p(I),{component:i.open?p(N):p(M)},null,8,["component"])],10,G),i.open?(r(!0),h(b,{key:0},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(p(O),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&p(Fe)}]),onClick:n=>$e(e,0,i)},[k("span",H,y(e.name||si(e.isPublic)),1),ai(e)?(r(),h("span",K," ("+y(e.digital||0)+") ",1)):C("v-if",!0),e.selected?(r(),x(p(I),{key:1,component:p(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,V)])),default:_((()=>[k("span",null,y(p(Re)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),h("span",{key:0,class:u(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>$e(i)},[v(y(i.name)+" ",1),ai(i)?(r(),h("span",q," ("+y(i.digital||0)+") ",1)):C("v-if",!0)],10,$))],2)):C("v-if",!0)],64)))),256))]),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),h("div",U,[k("div",X,"已选择"+y(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>$e({sid:"all_data",name:"全部数据",digital:p(Me).digital}))},[m(p(D),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),v(" 清空筛选 ")])])):C("v-if",!0)],4)),[[p(A),{mode:"VR",onMove:Xe,onEnd:Ye}]]):C("v-if",!0),1===p(Te)?(r(),h(b,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||p(Le).filter((e=>e.isShow)).length>0?(r(),h("div",Y,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",Z,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>$e({sid:"all_data",name:"全部数据",digital:p(Me).digital}))},[v(" 全部数据 "),p(Me).digital||0===p(Me).digital?(r(),h(b,{key:0},[v(" ("+y(p(Me).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",ee,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"setting-1",onClick:qe,style:{"margin-right":"30px"}},[m(p(I),{component:p(L),size:"16"},null,8,["component"]),v(" "+y("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"setting-1",onClick:Qe},[m(p(I),{component:p(T),size:"16"},null,8,["component"]),v(" "+y("设置"))])):C("v-if",!0)])])):C("v-if",!0),k("ul",{class:"tile",style:f({borderBottom:"keyword"===e.conditionType&&1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),h(b,null,S(p(Ie).slice(1),((e,i)=>(r(),h(b,null,[e.children&&e.children.length>0?(r(),h("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),h(b,{key:1},[k("span",te,y(e.name),1),k("div",le,[(r(!0),h(b,null,S(e.children,((i,n)=>(r(),h(b,null,[i.isShow?(r(),h("span",{key:n,class:u(["child-item",{selected:i.selected,disabled:!i.digital&&p(Fe)}]),onClick:n=>$e(i,0,e)},[v(y(i.name||si(i.isPublic))+" ",1),ai(i)?(r(),h("span",se," ("+y(i.digital||0)+") ",1)):C("v-if",!0)],10,ae)):C("v-if",!0)],64)))),256))])],64)):(r(),h("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>$e(e)},[v(y(e.name)+" "+y(e.digital)+" ",1),ai(e)?(r(),h("span",ne," ("+y(e.digital||0)+") ",1)):C("v-if",!0)],10,ie))])):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),h("div",oe,[k("div",de,"已选择"+y(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),h(b,null,S(p(Ie).slice(1),((e,i)=>(r(),h(b,null,[e.children&&0!==e.children.length?(r(!0),h(b,{key:1},S(e.children,((i,n)=>(r(),h(b,null,[i.selected?(r(),h("div",{class:"selected-item",key:i.sid},[v(y(i.name)+" ",1),ai(i)?(r(),h("span",re," ("+y(i.digital||0)+") ",1)):C("v-if",!0),m(p(I),{component:p(z),onClick:n=>$e(i,0,e)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:e.sid},[v(y(e.name)+" ",1),ai(e)?(r(),h("span",ce," ("+y(e.digital||0)+") ",1)):C("v-if",!0),m(p(I),{component:p(z),onClick:i=>$e(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>$e({sid:"all_data",name:"全部数据",digital:p(Me).digital}))},[m(p(D),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),v(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),2===p(Te)?(r(),h("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:xe},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>He())},[m(p(O),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",null,y(p(De)),1)])),default:_((()=>[k("span",null,y(p(De)),1)])),_:1}),m(p(I),{component:p(we)?p(B):p(N)},null,8,["component"])]),p(we)?(r(),h("div",he,[k("ul",{class:"tree",style:f({padding:"keyword"===e.conditionType?"40px 0":"40px 0 0"})},[(r(!0),h(b,null,S(p(Ie),((i,n)=>(r(),h(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(b,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),h("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>We(i)},[v(y(i.name)+y(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),m(p(I),{component:i.open?p(N):p(M)},null,8,["component"])],10,ge)):C("v-if",!0),i.open?(r(!0),h(b,{key:1},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(p(O),{key:0,placement:"right",trigger:"hover"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&p(Fe)}]),onClick:n=>$e(e,0,i)},[k("span",null,[v(y(e.name||si(null==e?void 0:e.isPublic))+" ",1),ai(e)?(r(),h("span",ve," ("+y(e.digital||0)+") ",1)):C("v-if",!0)]),e.selected?(r(),x(p(I),{key:0,component:p(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,me)])),default:_((()=>[k("span",null,y(p(Re)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),h(b,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>$e(i)},[v(y(i.name)+" ",1),ai(i)?(r(),h("span",pe," ("+y(i.digital||0)+") ",1)):C("v-if",!0)],10,ue),k("div",fe,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,onClick:qe},[m(p(I),{component:p(L),size:"16"},null,8,["component"]),v(" "+y("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,onClick:Qe},[m(p(I),{component:p(T),size:"16"},null,8,["component"]),v(" "+y("设置"))])):C("v-if",!0)])],64))],2)):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),h("div",ye,[k("div",Ce,"已选择"+y(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>$e({sid:"all_data",name:"全部数据",digital:p(Me).digital}))},[m(p(D),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),v(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],512)):C("v-if",!0),C(" 弹出弹窗 "),m(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:p(je),displayCategoryList:p(ze),settingId:p(Be),searchDefName:p(Pe),tableId:e.tableId,classifyModal:p(Ae),filterApiConfig:e.filterApiConfig,onChangeSearch:ii,onSaveGetTableCondiTionList:ei,onCondiTionListInit:Ze,onSetClassifyModal:Ve},{searchCondition:_((({...e})=>[w(i.$slots,"searchCondition",{attrs:e})])),_:3},8,["searchFieldList","conditionList","displayCategoryList","settingId","searchDefName","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{ke as default};
|
|
1
|
+
import{defineComponent as e,useAttrs as i,ref as n,provide as t,computed as l,onActivated as a,onBeforeMount as s,onMounted as o,nextTick as d,watch as c,openBlock as r,createElementBlock as p,normalizeClass as u,unref as h,normalizeStyle as f,withDirectives as g,createVNode as m,createTextVNode as y,toDisplayString as v,createCommentVNode as C,createElementVNode as k,Fragment as b,renderList as S,createBlock as x,withCtx as _,renderSlot as w}from"vue";import{NIcon as I,NTooltip as O}from"naive-ui";import{Repeat as L,SettingsOutline as T,ChevronDown as M,ChevronForward as N,Checkmark as j,Close as z,ChevronUp as B}from"@vicons/ionicons5";import P from"../components/set-classification/index.vue.js";import A from"../directive/flexibleResize.js";import{root_isShowResetButton as E}from"../const/index.js";import J from"../hooks/useMixins.js";import R from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"../../../../_virtual/plugin-vue_export-helper.js";const D={key:0,class:"header"},W={class:"tree"},$=["onClick"],q={key:0,class:"digital-span"},G=["onClick"],Q={key:0,class:"digital-span"},V=["onClick"],H={class:"child-item-name"},K={key:0,class:"digital-span"},U={key:1,class:"tree-type-footer"},X={class:"selected-num"},Y={key:0,class:"tile-type classify-1"},Z={key:0,class:"header"},ee={class:"right-setting"},ie=["onClick"],ne={key:0,class:"digital-span"},te={class:"parent ellips"},le={class:"children"},ae=["onClick"],se={key:0,class:"digital-span"},oe={key:1,class:"selected-list"},de={class:"selected-num"},ce={key:0,class:"digital-span"},re={key:0,class:"digital-span"},pe={key:0,class:"main-wrapper"},ue=["onClick"],he={key:0,class:"digital-span"},fe={class:"tree-footer"},ge=["onClick"],me=["onClick"],ye={key:0,class:"digital-span"},ve={key:0,class:"select-type-footer"},Ce={class:"selected-num"};var ke=F(e({__name:"Classification-com",props:{tableId:{type:String,default:""},conditionSid:{type:Array,default:()=>[]},curClassificationIndex:{type:Number},curClassificationWidth:{type:Number},conditionType:{type:String,default:""},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:0},countCondition:{type:Number,default:0},countTabCondition:{type:Number,default:0},isShowResetButton:{type:Boolean,default:!0},conditionMap:{type:Object,default:()=>{}},filterApiConfig:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]}},emits:["changeSearch","setCurTreeData","setClassificationIndex","getClassification","reloadList","getQuickSearchListObj","setConditionMap","setClassifyModal"],setup(e,{emit:F}){const ke=e,{handleGetConfigApi:be}=J(),Se=i(),xe=n(null);let _e=n(150),we=n(!1),Ie=n([]),Oe=n([]),Le=n([]),Te=n(2),Me=n(""),Ne=n({name:"全部数据",sid:"all_data"}),je=n([]),ze=n([]),Be=n(""),Pe=n(!1),Ae=n("全部数据");t(E,n(ke.isShowResetButton));let Ee=l((()=>0===Te.value?{marginRight:"8px"}:2===Te.value?{display:"inline-block"}:{})),Je=l((()=>{let e=Oe.value.filter((e=>-1!==ke.conditionSid.indexOf(e.sid)));if(-1!==ke.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Re=l((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:t}=e;return li(n,t)+i})),Fe=l((()=>1===ke.countCondition||1===ke.countTabCondition));function De(e){e.open?e.open=!1:e.open=!0}function We(e,i,n){if(Ae.value=e.name,!e.digital&&1===ke.countCondition)return!1;let t=function(e,i,n){let t=JSON.parse(JSON.stringify(i));if("all_data"===e)t=["all_data"];else if("keyword"===ke.conditionType){let i=t.findIndex((e=>"all_data"===e));-1!==i&&t.splice(i,1);let l=t.findIndex((i=>i===e));-1!==l?(t.splice(l,1),0===t.length&&(t=["all_data"])):(n.children&&n.children.length>0&&(l=t.findIndex((e=>-1!==n.children.findIndex((i=>i.sid===e))))),-1!==l&&t.splice(l,1),t.push(e))}else t=-1!==t.indexOf(e)?["all_data"]:[e];return t}(e.sid,ke.conditionSid,n),l=function(e){let i=[];return Ie.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(t);Ve(!1),F("changeSearch","all_data"===e.sid?"all":"",e,n,l)}function $e(){F("setCurTreeData",Ie.value);let e="";if(2===Te.value)e=0;else{let i=Te.value;e=++i}_e.value=150,qe(e)}async function qe(e,i){let n={tableId:ke.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await be(n,"requestSaveListPersonaSetting",{},ke.filterApiConfig)&&F("setClassificationIndex",e)}catch(e){console.log(e)}}function Ge(){Pe.value=!0,Ve(!1)}function Qe(e){F("setClassifyModal",e),Pe.value=e}function Ve(e){we.value=void 0===e?!we.value:e}function He(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==ke.conditionSid.indexOf(e.item.sid)&&F("changeSearch","all",{name:"全部数据",sid:"all_data",selected:!0}),ke.tableId)&&Object.keys(ke.conditionMap).length>0){Ie.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=ke.conditionMap;Le.value=JSON.parse(JSON.stringify(n)),ze.value=e||[],Oe.value=JSON.parse(JSON.stringify(n));const t={name:"全部数据",sid:"all_data"};Oe.value.unshift(t);let l=[];0===e.length&&(e=["未分类"]),e.forEach((e=>{let i={name:e,children:[]};n.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==ke.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&l.push(i)})),l.unshift({name:"全部数据",sid:"all_data"}),Ie.value=l,0===Te.value&&(i=!0,Ie.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function Ke(e){try{await He(e)}catch(e){console.log(e)}}function Ue({distance:e}){const i=_e.value+e;_e.value=Math.min(Math.max(i,50),650)}function Xe(){qe(Te.value,_e.value)}async function Ye(){await ni(ke.tableId),ei()}async function Ze(e){await ni(ke.tableId),ii(),F("getClassification",e)}function ei(e){ii(e).then((e=>{F("reloadList",e)}))}function ii(e,i={}){if(!ke.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:ke.conditionMap;return new Promise(((i,t)=>{var l,a,s,o,d,c;if(Object.keys(n).length>0){je.value=n.conditionList||[],ze.value=n.displayCategoryList||[];let t={conditionList:je.value,displayCategoryList:ze.value};F("getQuickSearchListObj",t),Be.value=n.settingId;const r=je.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(l=Se.tableOptions)?void 0:l.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(o=null==(s=Se.tableOptions)?void 0:s.filterCondition)?void 0:o.name,sid:null==(c=null==(d=Se.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function ni(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await be(i,"requestTableCondiTionList",{},ke.filterApiConfig);return F("setConditionMap",n),Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function ti(e){return 1===ke.countCondition&&(e.digital||0===e.digital)}function li(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{Ke({})})),s((()=>{Ke({})})),o((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();xe&&i.includes(xe.value)||Ve(!1)}))}))})),c((()=>ke.tableId),(e=>{e&&(ei(!0),Me.value!==e&&(Me.value=e))}),{immediate:!0,deep:!0}),c((()=>ke.curClassificationIndex),(e=>{void 0!==e&&(Te.value=e)}),{immediate:!0,deep:!0}),c((()=>ke.curClassificationWidth),(e=>{e&&(_e.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),p("div",{class:u(["classification-block","classificationIndex-"+h(Te)]),style:f(h(Ee))},[0===h(Te)?g((r(),p("div",{key:0,class:"tree-type classify-0",style:f({width:h(_e)+"px",paddingBottom:"keyword"===e.conditionType?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),p("div",D,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"header-1",onClick:$e},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"header-1",onClick:Ge},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])):C("v-if",!0),k("ul",W,[(r(!0),p(b,null,S(h(Ie),((i,n)=>(r(),p(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),p("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),p(b,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>De(i)},[k("span",null,[y(v(i.name)+" ",1),ti(i)?(r(),p("span",Q," ("+v(i.digital||0)+") ",1)):C("v-if",!0)]),m(h(I),{component:i.open?h(M):h(N)},null,8,["component"])],10,G),i.open?(r(!0),p(b,{key:0},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),p("div",{class:"children",key:n},[e.isShow?(r(),x(h(O),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&h(Fe)}]),onClick:n=>We(e,0,i)},[k("span",H,v(e.name||li(e.isPublic)),1),ti(e)?(r(),p("span",K," ("+v(e.digital||0)+") ",1)):C("v-if",!0),e.selected?(r(),x(h(I),{key:1,component:h(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,V)])),default:_((()=>[k("span",null,v(h(Re)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),p("span",{key:0,class:u(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>We(i)},[y(v(i.name)+" ",1),ti(i)?(r(),p("span",q," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,$))],2)):C("v-if",!0)],64)))),256))]),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",U,[k("div",X,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>We({sid:"all_data",name:"全部数据",digital:h(Ne).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)],4)),[[h(A),{mode:"VR",onMove:Ue,onEnd:Xe}]]):C("v-if",!0),1===h(Te)?(r(),p(b,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Le).filter((e=>e.isShow)).length>0?(r(),p("div",Y,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),p("div",Z,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>We({sid:"all_data",name:"全部数据",digital:h(Ne).digital}))},[y(" 全部数据 "),h(Ne).digital||0===h(Ne).digital?(r(),p(b,{key:0},[y(" ("+v(h(Ne).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",ee,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"setting-1",onClick:$e,style:{"margin-right":"30px"}},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"setting-1",onClick:Ge},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])])):C("v-if",!0),k("ul",{class:"tile",style:f({borderBottom:"keyword"===e.conditionType&&1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),p(b,null,S(h(Ie).slice(1),((e,i)=>(r(),p(b,null,[e.children&&e.children.length>0?(r(),p("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),p(b,{key:1},[k("span",te,v(e.name),1),k("div",le,[(r(!0),p(b,null,S(e.children,((i,n)=>(r(),p(b,null,[i.isShow?(r(),p("span",{key:n,class:u(["child-item",{selected:i.selected,disabled:!i.digital&&h(Fe)}]),onClick:n=>We(i,0,e)},[y(v(i.name||li(i.isPublic))+" ",1),ti(i)?(r(),p("span",se," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,ae)):C("v-if",!0)],64)))),256))])],64)):(r(),p("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>We(e)},[y(v(e.name)+" "+v(e.digital)+" ",1),ti(e)?(r(),p("span",ne," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,ie))])):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",oe,[k("div",de,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),p(b,null,S(h(Ie).slice(1),((e,i)=>(r(),p(b,null,[e.children&&0!==e.children.length?(r(!0),p(b,{key:1},S(e.children,((i,n)=>(r(),p(b,null,[i.selected?(r(),p("div",{class:"selected-item",key:i.sid},[y(v(i.name)+" ",1),ti(i)?(r(),p("span",re," ("+v(i.digital||0)+") ",1)):C("v-if",!0),m(h(I),{component:h(z),onClick:n=>We(i,0,e)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),p("div",{class:"selected-item",key:e.sid},[y(v(e.name)+" ",1),ti(e)?(r(),p("span",ce," ("+v(e.digital||0)+") ",1)):C("v-if",!0),m(h(I),{component:h(z),onClick:i=>We(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>We({sid:"all_data",name:"全部数据",digital:h(Ne).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),2===h(Te)?(r(),p("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:xe},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>Ve())},[m(h(O),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",null,v(h(Je)),1)])),default:_((()=>[k("span",null,v(h(Je)),1)])),_:1}),m(h(I),{component:h(we)?h(B):h(M)},null,8,["component"])]),h(we)?(r(),p("div",pe,[k("ul",{class:"tree",style:f({padding:"keyword"===e.conditionType?"40px 0":"40px 0 0"})},[(r(!0),p(b,null,S(h(Ie),((i,n)=>(r(),p(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),p("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),p(b,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),p("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>De(i)},[y(v(i.name)+v(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),m(h(I),{component:i.open?h(M):h(N)},null,8,["component"])],10,ge)):C("v-if",!0),i.open?(r(!0),p(b,{key:1},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),p("div",{class:"children",key:n},[e.isShow?(r(),x(h(O),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&h(Fe)}]),onClick:n=>We(e,0,i)},[k("span",null,[y(v(e.name||li(null==e?void 0:e.isPublic))+" ",1),ti(e)?(r(),p("span",ye," ("+v(e.digital||0)+") ",1)):C("v-if",!0)]),e.selected?(r(),x(h(I),{key:0,component:h(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,me)])),default:_((()=>[k("span",null,v(h(Re)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),p(b,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>We(i)},[y(v(i.name)+" ",1),ti(i)?(r(),p("span",he," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,ue),k("div",fe,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,onClick:$e},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,onClick:Ge},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])],64))],2)):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",ve,[k("div",Ce,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>We({sid:"all_data",name:"全部数据",digital:h(Ne).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],512)):C("v-if",!0),C(" 弹出弹窗 "),m(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(je),displayCategoryList:h(ze),settingId:h(Be),tableId:e.tableId,classifyModal:h(Pe),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:Ze,onCondiTionListInit:Ye,onSetClassifyModal:Qe},{searchCondition:_((({...e})=>[w(i.$slots,"searchCondition",{attrs:e})])),_:3},8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{ke as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as a,reactive as i,ref as t,toRef as l,openBlock as o,createElementBlock as n,createVNode as s,unref as d,withCtx as r,createElementVNode as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,reactive as i,ref as t,toRef as l,openBlock as o,createElementBlock as n,createVNode as s,unref as d,withCtx as r,createElementVNode as c,createCommentVNode as p,Fragment as u,renderList as m,normalizeClass as y,toDisplayString as v,createBlock as f,withDirectives as g,createTextVNode as C,vShow as h}from"vue";import{useMessage as k,NSpin as b,NInput as A,NIcon as L,NButton as _,NSelect as w,NTooltip as x}from"naive-ui";import{CloseOutline as U,AddOutline as N,AddCircleSharp as I}from"@vicons/ionicons5";import V from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import D from"./ValueCfg.vue.js";import{DataTypeEnums as S,ConditionEnums as j}from"../../types/enums.js";import{useDisplayCategory as B}from"./hooks/useDisplayCategory.js";import{useFilterConditions as F}from"./hooks/useFilterConditions.js";import{conditionOptions as O}from"./helpers/options.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const P={class:"searchConditionByApi_wrapper"},E={class:"class-filter-content"},R={key:0,class:"item-name"},q=c("span",{class:"label"},"筛选分类名称:",-1),J={key:1,class:"quickSearch-content"},K=c("span",{class:"label"},"父类名称:",-1),M=["onDblclick","onClick"],Q={key:0,class:"s-content"},G={key:2,class:"item-name"},H=c("span",{class:"label"}," 过滤条件: ",-1),T=c("span",null,"添加",-1),W={class:"select-item-list"},X={class:"index-span"};var Y=z(e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:z,emit:Y}){const Z=e,$=k(),ee=a(),ae=i({className:"",displayCategory:"",filterConditions:[]}),ie=t(!1),{State:te,isEnableAddDisplayCategory:le,editDisplayCategory:oe,handleDisplayCategorySelect:ne,handleDisplayCategoryRemove:se,handleDisplayCategoryAdd:de,handlerBlur:re,initDisplayCategories:ce}=B(l(ae,"displayCategory"),{conditionList:Z.conditionList},$),{State:pe,paramOptions:ue,addFilterCondition:me,delFilterCondition:ye,updateKey:ve,updateCondition:fe,getParamCfg:ge,initFilterConditions:Ce,getRawFilterConditions:he}=F(l(ae,"filterConditions"),Z.searchFieldList,S.API);function ke(){ae.className="",ae.displayCategory="",ae.filterConditions=[]}async function be(){var e;try{if(ke(),ie.value=!0,ce(ee.displayCategoryList,Z.actionList_prop.displayCategory||"custom"),Z.actionList_prop){ae.className=Z.actionList_prop.name,await Ce(Z.tableId,null!=(e=Z.actionList_prop.conObj)?e:[]);ae.filterConditions.length<1&&ue.value&&ue.value.length>0&&me()}}finally{ie.value=!1}}return be(),z({handleInitConditions:be,saveAdd:function(){new Promise((e=>{ae.className||!Z.showItemName?0!==ae.filterConditions.length?ae.filterConditions.some((({key:e,condition:a,value:i,presetVal:t})=>!e||!a||a===j.EQUAL&&!i&&!t))?$.warning("请补充完整条件内容"):e(!0):$.warning("请至少添加一个条件"):$.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===Z.actionList_prop.from&&(a=Z.actionList_prop.displayCategory,e=null==Z?void 0:Z.conditionList.find((e=>e.displayCategory===a)));const i={displayCategory:ae.displayCategory,name:ae.className||"",conObj:he()},t={id:e?e.sid:"",tableId:Z.tableId,setting:JSON.stringify(i)};Y("saveAdd",t,!1)}))},cancelSaveAdd:function(){ke(),Y("cancelSaveAdd")},addAction:me,checkActionList:function(){return ae.filterConditions.every((e=>!e.field_key))}}),(a,i)=>(o(),n("div",P,[s(d(b),{show:ie.value},{default:r((()=>[c("div",E,[e.showItemName?(o(),n("div",R,[q,s(d(A),{value:ae.className,"onUpdate:value":i[0]||(i[0]=e=>ae.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):p("v-if",!0),e.showItemName?(o(),n("div",J,[K,(o(!0),n(u,null,m(d(te).displayCategories,((e,a)=>(o(),n("div",{class:y(["edit-tag",{"edit-tag-select":e.value===ae.displayCategory&&e.disabled}]),key:a,onDblclick:a=>d(oe)(a,e),onClick:a=>function(e){ne(e)}(e)},[e.disabled?(o(),n("div",Q,[c("span",null,v(e.value),1)])):(o(),f(d(A),{key:1,style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":a=>e.value=a,maxlength:10},null,8,["disabled","onBlur","value","onUpdate:value"])),s(d(L),{component:d(U),class:"anticon-close",size:"20",onClick:i=>d(se)(a,e)},null,8,["component","onClick"])],42,M)))),128)),d(le)?(o(),n(u,{key:0},[g(s(d(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:d(de)},{default:r((()=>[s(d(L),{component:d(N),size:"20"},null,8,["component"]),C(" "+v("添加父类"))])),_:1},8,["onClick"]),[[h,!d(te).showAdd]]),g(s(d(A),{class:"edit-tag",value:d(te).addDisplayCategory,"onUpdate:value":i[1]||(i[1]=e=>d(te).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:d(re),maxLength:10},null,8,["value","onBlur"]),[[h,d(te).showAdd]])],64)):p("v-if",!0)])):p("v-if",!0),e.hideAddBtn?p("v-if",!0):(o(),n("div",G,[H,c("span",{class:"addAction",onClick:i[2]||(i[2]=(...e)=>d(me)&&d(me)(...e)),style:{cursor:"pointer"}},[s(d(L),{component:d(I),class:"blue",size:"18"},null,8,["component"]),T])])),c("ul",W,[(o(!0),n(u,null,m(ae.filterConditions,((e,a)=>(o(),n("li",{key:a},[c("span",X,v(a+1)+" ",1),p(" 选择 field_key "),s(d(w),{class:"form-item",placeholder:"请选择",value:e.key,filterable:"",options:d(ue),"onUpdate:value":e=>d(ve)(a,e)},null,8,["value","options","onUpdate:value"]),p(" 选择 关系 "),e.key?(o(),f(d(w),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,filterable:"",options:d(O),"onUpdate:value":e=>d(fe)(a,e)},null,8,["value","options","onUpdate:value"])):p("v-if",!0),p(" 自定义 "),e.key&&e.condition&&e.condition!==d(j).NULL?(o(),f(D,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,"param-cfg":d(ge)(e.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","param-cfg"])):p("v-if",!0),s(d(x),{title:"删除",trigger:"hover"},{trigger:r((()=>[s(d(V),{onClick:e=>d(ye)(a),"class-name":"svg-icon-btn is-danger form-action","icon-class":"xitongtubiaoliebiaocaozuoanniushanchushixin"},null,8,["onClick"])])),default:r((()=>[C(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}}),[["__file","index.vue"]]);export{Y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,onBeforeUnmount as i,watch as t,openBlock as l,createBlock as o,unref as n,normalizeClass as u,withCtx as d,createVNode as s,normalizeStyle as
|
|
1
|
+
import{defineComponent as e,ref as a,onBeforeUnmount as i,watch as t,openBlock as l,createBlock as o,unref as n,normalizeClass as u,withCtx as d,createVNode as s,normalizeStyle as c,createElementVNode as r,createTextVNode as v,mergeProps as h}from"vue";import{NModal as p,NCard as f,NButton as m}from"naive-ui";import x from"../classify-filter/index.vue.js";import g from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import b from"../../../../../_virtual/plugin-vue_export-helper.js";const y={class:"svg-wrap"},_={class:"flex_right"};var w=b(e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},filterApiConfig:{type:Object,default:()=>({})}},emits:["cancelSaveAdd"],setup(e,{expose:b,emit:w}){const k=e,A=a(k.visible),C=a(!1),S=a("860px");let L=a({maxHeight:"496px",height:"496px",overflowY:"auto"}),H=a(null),j=null;function F(){T(),j=setTimeout((()=>{H&&H.value.handleInitConditions()}),30)}function T(){j&&clearTimeout(j)}function z(){H&&H.value.saveAdd()}function I(){A.value=!1,w("cancelSaveAdd"),S.value="860px",L.value={height:"496px",maxHeight:"496px",overflowY:"auto"},C.value=!1,H&&H.value.cancelSaveAdd()}function $(){C.value=!C.value;let e=document.body.clientHeight;"860px"===S.value?(S.value="100%",L.value.maxHeight=`${e}px`,L.value.height=`${e}px`):(S.value="860px",L.value.maxHeight="496px",L.value.height="")}return i((()=>{T()})),t((()=>k.visible),(e=>{A.value=e,e&&F()})),b({cancelSaveAdd:I}),(e,a)=>(l(),o(n(p),{class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":C.value}]),show:A.value,"onUpdate:show":a[0]||(a[0]=e=>A.value=e),maskClosable:!1,width:S.value,bodyStyle:n(L),closable:!1,centered:"",onPositiveClick:z,onNegativeClick:I},{default:d((()=>[s(n(f),{style:c({width:S.value,...n(L)}),title:k.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[r("div",y,[s(n(g),{onClick:$,"icon-class":C.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),s(n(g),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:I})])])),footer:d((()=>[r("div",_,[s(n(m),{onClick:I},{default:d((()=>[v("取消")])),_:1}),s(n(m),{type:"info",onClick:z},{default:d((()=>[v("保存")])),_:1})])])),default:d((()=>[s(x,h(e.$attrs,{ref_key:"conditionApiRef",ref:H,searchFieldList:k.searchFieldList,conditionList:k.conditionList}),null,16,["searchFieldList","conditionList"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}}),[["__file","index.vue"]]);export{w as default};
|
|
@@ -9,10 +9,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
default: () => never[];
|
|
10
10
|
};
|
|
11
11
|
settingId: StringConstructor;
|
|
12
|
-
searchDefName: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
12
|
filterApiConfig: {
|
|
17
13
|
type: ObjectConstructor;
|
|
18
14
|
default: () => {};
|
|
@@ -32,10 +28,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
28
|
default: () => never[];
|
|
33
29
|
};
|
|
34
30
|
settingId: StringConstructor;
|
|
35
|
-
searchDefName: {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
default: string;
|
|
38
|
-
};
|
|
39
31
|
filterApiConfig: {
|
|
40
32
|
type: ObjectConstructor;
|
|
41
33
|
default: () => {};
|
|
@@ -45,17 +37,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
37
|
default: boolean;
|
|
46
38
|
};
|
|
47
39
|
}>> & {
|
|
48
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
49
40
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
50
41
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
51
42
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
52
43
|
}>>;
|
|
53
|
-
emit: (event: "
|
|
44
|
+
emit: (event: "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", ...args: any[]) => void;
|
|
54
45
|
$message: import("naive-ui").MessageApi;
|
|
55
46
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
56
47
|
conditionList: import("vue").Ref<unknown[]>;
|
|
57
48
|
checkedItem: import("vue").Ref<any>;
|
|
58
|
-
searchName: any;
|
|
59
49
|
addVisible: import("vue").Ref<boolean>;
|
|
60
50
|
actionList_prop: import("vue").Ref<{}>;
|
|
61
51
|
newSearchFieldList: any;
|
|
@@ -822,7 +812,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
822
812
|
filterApiConfig: Record<string, any>;
|
|
823
813
|
conditionList: unknown[];
|
|
824
814
|
}>;
|
|
825
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
815
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList")[], "setClassifyModal" | "CondiTionListInit" | "saveGetTableCondiTionList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
826
816
|
searchFieldList: {
|
|
827
817
|
type: ArrayConstructor;
|
|
828
818
|
default: () => never[];
|
|
@@ -832,10 +822,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
832
822
|
default: () => never[];
|
|
833
823
|
};
|
|
834
824
|
settingId: StringConstructor;
|
|
835
|
-
searchDefName: {
|
|
836
|
-
type: StringConstructor;
|
|
837
|
-
default: string;
|
|
838
|
-
};
|
|
839
825
|
filterApiConfig: {
|
|
840
826
|
type: ObjectConstructor;
|
|
841
827
|
default: () => {};
|
|
@@ -845,7 +831,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
845
831
|
default: boolean;
|
|
846
832
|
};
|
|
847
833
|
}>> & {
|
|
848
|
-
onChangeSearch?: ((...args: any[]) => any) | undefined;
|
|
849
834
|
onSetClassifyModal?: ((...args: any[]) => any) | undefined;
|
|
850
835
|
onCondiTionListInit?: ((...args: any[]) => any) | undefined;
|
|
851
836
|
onSaveGetTableCondiTionList?: ((...args: any[]) => any) | undefined;
|
|
@@ -853,7 +838,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
853
838
|
searchFieldList: unknown[];
|
|
854
839
|
filterApiConfig: Record<string, any>;
|
|
855
840
|
conditionList: unknown[];
|
|
856
|
-
searchDefName: string;
|
|
857
841
|
classifyModal: boolean;
|
|
858
842
|
}>;
|
|
859
843
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as i,useAttrs as t,computed as
|
|
1
|
+
import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as o,openBlock as a,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f,renderSlot as u}from"vue";import{useMessage as p,NButton as v}from"naive-ui";import C from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import y from"../../hooks/useMixins.js";import h from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=h(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:h}){const b=e,A=p(),{handleGetConfigApi:L}=y();let I=i(b.conditionList),T=i(),S=i(!1),_=i({}),F=i([]),j=i(!1);const O=i(null),x=t();async function k(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await L(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(h("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}function w(){E(!1),I.value.forEach((e=>{e.checked=!1}))}function G(){S.value=!0}function M(e,i){S.value=!0,_.value=Object.assign(e,{from:"edit"})}function q(e,i){S.value=!0,_.value=Object.assign(e,{from:"copy"})}async function H(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(I.value)}),j.value=!0,!await L(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O&&O.value.cancelSaveAdd(),h("saveGetTableCondiTionList"),S.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){S.value=!1,_.value={}}function $(e,i){I.value=e,T.value=i}async function D(e,i){if(e)try{let i={id:e.sid};if(!await L(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;A.success("删除成功"),h("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else A.info("请选择行")}function E(e){h("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await L(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(h("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return o((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),o((()=>b.searchFieldList),(e=>{e&&e.length>0&&(F.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>S),(e=>{e||(_.value={})})),(i,t)=>(a(),l("div",m,[s(C,r({dataSource:c(I),visibleIn:c(N)},i.$attrs,{onHandleOk:k,onClose:w,onChangeData:$,onResetPopconfirm:K,edit:M,copy:q,delItem:D,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(v),{type:"info",onClick:G},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),u(i.$slots,"searchCondition",{attrs:{...i.$attrs,visible:c(S),loading:c(j),conditionList:c(I),actionList_prop:c(_),searchFieldList:e.searchFieldList,isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,saveAdd:H,cancelSaveAdd:R},ref_key:"searchFilter",ref:O},(()=>[s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(S),loading:c(j),conditionList:c(I),actionList_prop:c(_),searchFieldList:c(F),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:H,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))]))}}),[["__file","index.vue"]]);export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as
|
|
1
|
+
import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as a,watch as n,openBlock as o,createBlock as s,unref as r,normalizeClass as u,withCtx as c,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as S,NModal as _,NCard as z,NTooltip as D,NIcon as I,NSwitch as E,NPopconfirm as M,NButton as P}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as j}from"../../const/index.js";import B from"axios";import A from"../../../../../_virtual/plugin-vue_export-helper.js";const H={class:"svg-wrap"},R={class:"flex_between"},$={key:0},J={class:"table-modal-list"},T={class:"list-title"},Y=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),q=v("span",{class:"list-title-item"}," 名称 ",-1),G=v("span",{class:"list-title-item"}," 父类名称 ",-1),K=v("span",{class:"list-title-item"}," 是否显示 ",-1),L=v("span",{class:"list-title-item"}," 设置为默认 ",-1),Q={class:"list-title-item"},W=v("span",{class:"list-title-item"}," 操作 ",-1),X=["onClick"],Z={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},ee=["title"],te=["title"],ie={class:"list-content-item list-content-switch"},le={class:"list-content-item list-content-radio"},ae={class:"list-content-item"},ne={class:"list-content-item"},oe={key:0},se=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),re={key:1},ue=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ce=A(e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>{}},copy:{type:Function,defdault:()=>{}},delItem:{type:Function,defdault:()=>{}},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:A}){const ce=e,de=B.create({}),pe=t(),me=b(),ve=S(),he=i((()=>(null==pe?void 0:pe.isOrgAdmin)||!1)),fe=l(ce.dataSource),ge=l(ce.visibleIn),ye=l(!1),Ce=l("other"==ce.type?"100%":"860px"),we=l("654px"),ke=a(j);function xe(){ce.type&&(_e(),A("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(fe.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return fe.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ce.type)))}function be(){Se()}function Se(){ge.value=!1,_e(),A("close")}function _e(){Ce.value="860px",we.value="654px",ye.value=!1}function ze(){A("changeData",fe.value)}function De(){ye.value=!ye.value;let e=document.body.clientHeight;Ce.value="860px"===Ce.value?"100%":"860px",we.value="654px"===we.value?`${e}px`:"654px"}function Ie(e){A("resetPopconfirm",e)}function Ee(e,t,i){const l=ce[e];l&&l(t,i)}return n((()=>ce.visibleIn),(e=>{ge.value=e})),n((()=>ce.dataSource),(e=>{fe.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(_),{show:ge.value,bodyStyle:{height:we.value,overflowY:"auto"},width:Ce.value,maskClosable:!1,class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":ye.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:xe,onNegativeClick:Se},{default:c((()=>[d(r(z),{style:p({width:Ce.value,height:we.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",H,[d(r(O),{onClick:De,"icon-class":ye.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),d(r(O),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:Se})])])),default:c((()=>[r(he)&&"mananger"==e.type?(o(),h("p",$,[v("span",{onClick:be}," 添加首页 ")])):f("v-if",!0),v("div",J,[v("div",T,[Y,q,G,K,L,g(v("span",Q," 设置公共首页 ",512),[[y,r(he)&&"mananger"==e.type]]),W]),d(r(F),{class:"list-content",tag:"ul",list:fe.value,"item-key":"sid",onEnd:ze,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,fe.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void A("changeData",fe.value,i);var i}},[v("span",Z,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(I),{component:r(U),size:"24"},null,8,["component"])])),default:c((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,ee),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,te),v("span",ie,[d(r(E),{"onUpdate:value":e=>{return i=t,void fe.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",le,[d(r(E),{"onUpdate:value":e=>{var i;(i=t).isShow&&fe.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",ae,[d(r(E),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}ve.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};de({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(me.success(t.data.resultMsg),e.isCommon=!e.isCommon,A("finishSubmit")):me.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>{}})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(he)&&"mananger"==e.type]]),v("span",ne,["mananger"==e.type&&r(he)?(o(),h("span",oe,[d(r(M),{onPositiveClick:e=>Ee("confirm",t)},{trigger:c((()=>[d(r(I),null,{default:c((()=>[se])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(I),{component:r(N),onClick:k((e=>Ee("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(he)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(I),{component:r(V),onClick:k((e=>Ee("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",re,[d(r(M),{onPositiveClick:e=>Ee("delItem",t,"删除")},{trigger:c((()=>[d(r(I),null,{default:c((()=>[ue])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,X),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[v("div",R,[v("div",null,[r(ke)?(o(),s(r(M),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:Ie},{trigger:c((()=>[d(r(P),null,{default:c((()=>[C("恢复默认设置")])),_:1})])),default:c((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),v("div",null,[d(r(P),{onClick:Se},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(P),{type:"info",onClick:xe},{default:c((()=>[C("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","index.vue"]]);export{ce as default};
|
|
@@ -734,57 +734,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
734
734
|
NIcon: any;
|
|
735
735
|
NInput: any;
|
|
736
736
|
NButton: any;
|
|
737
|
-
NGrid: any;
|
|
738
|
-
NGridItem: import("vue").DefineComponent<{
|
|
739
|
-
readonly span: {
|
|
740
|
-
readonly type: PropType<string | number>;
|
|
741
|
-
readonly default: 1;
|
|
742
|
-
};
|
|
743
|
-
readonly offset: {
|
|
744
|
-
readonly type: PropType<string | number>;
|
|
745
|
-
readonly default: 0;
|
|
746
|
-
};
|
|
747
|
-
readonly suffix: BooleanConstructor;
|
|
748
|
-
readonly privateOffset: NumberConstructor;
|
|
749
|
-
readonly privateSpan: NumberConstructor;
|
|
750
|
-
readonly privateColStart: NumberConstructor;
|
|
751
|
-
readonly privateShow: {
|
|
752
|
-
readonly type: BooleanConstructor;
|
|
753
|
-
readonly default: true;
|
|
754
|
-
};
|
|
755
|
-
}, {
|
|
756
|
-
overflow: import("vue").Ref<boolean>;
|
|
757
|
-
itemStyle: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
758
|
-
layoutShiftDisabled: import("vue").Ref<boolean>;
|
|
759
|
-
mergedXGap: import("vue").ComputedRef<string>;
|
|
760
|
-
deriveStyle: () => {
|
|
761
|
-
display: string;
|
|
762
|
-
gridColumn: string;
|
|
763
|
-
marginLeft: string;
|
|
764
|
-
};
|
|
765
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
766
|
-
readonly span: {
|
|
767
|
-
readonly type: PropType<string | number>;
|
|
768
|
-
readonly default: 1;
|
|
769
|
-
};
|
|
770
|
-
readonly offset: {
|
|
771
|
-
readonly type: PropType<string | number>;
|
|
772
|
-
readonly default: 0;
|
|
773
|
-
};
|
|
774
|
-
readonly suffix: BooleanConstructor;
|
|
775
|
-
readonly privateOffset: NumberConstructor;
|
|
776
|
-
readonly privateSpan: NumberConstructor;
|
|
777
|
-
readonly privateColStart: NumberConstructor;
|
|
778
|
-
readonly privateShow: {
|
|
779
|
-
readonly type: BooleanConstructor;
|
|
780
|
-
readonly default: true;
|
|
781
|
-
};
|
|
782
|
-
}>>, {
|
|
783
|
-
readonly offset: string | number;
|
|
784
|
-
readonly span: string | number;
|
|
785
|
-
readonly suffix: boolean;
|
|
786
|
-
readonly privateShow: boolean;
|
|
787
|
-
}>;
|
|
788
737
|
CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
789
738
|
AddOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
790
739
|
RenderWidget: import("vue").DefineComponent<{
|