cnhis-design-vue 3.1.41-beta.0 → 3.1.41-beta.1
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/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/callback/src/components/form.d.ts +0 -0
- package/es/components/callback/src/components/page.d.ts +0 -0
- package/es/components/callback/src/components/table.d.ts +0 -0
- package/es/components/callback/src/types/index.d.ts +0 -0
- package/es/components/callback/src/types/index.js +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-config/index.d.ts +1 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -0
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/components/table-filter/index.d.ts +383 -249
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +46 -260
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +350 -2
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +318 -1
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +27 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +28 -1
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.d.ts +28 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +2 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +3 -4
- package/es/components/table-filter/style/index.css +1 -1
- package/es/env.d.ts +24 -24
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
|
@@ -320,6 +320,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
320
320
|
ChevronForward: 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<{}>>, {}>;
|
|
321
321
|
Close: 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<{}>>, {}>;
|
|
322
322
|
searchProfessionalModel: import("vue").DefineComponent<{
|
|
323
|
+
tableDataType: {
|
|
324
|
+
type: StringConstructor;
|
|
325
|
+
default: string;
|
|
326
|
+
};
|
|
323
327
|
originConditionList: {
|
|
324
328
|
type: PropType<IClassifyListType[]>;
|
|
325
329
|
default: () => never[];
|
|
@@ -339,6 +343,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
339
343
|
}, {
|
|
340
344
|
validConObj: (conObj: any, fieldList: ISearchType[], fieldSearchLimit: any) => any;
|
|
341
345
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
346
|
+
tableDataType: {
|
|
347
|
+
type: StringConstructor;
|
|
348
|
+
default: string;
|
|
349
|
+
};
|
|
342
350
|
originConditionList: {
|
|
343
351
|
type: PropType<IClassifyListType[]>;
|
|
344
352
|
default: () => never[];
|
|
@@ -366,7 +374,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
366
374
|
instance: import("axios").AxiosInstance;
|
|
367
375
|
$message: import("naive-ui").MessageApi;
|
|
368
376
|
comWrap: any;
|
|
369
|
-
|
|
377
|
+
conditionApiRef: any;
|
|
378
|
+
conditionSqlRef: any;
|
|
370
379
|
className: any;
|
|
371
380
|
actionList_prop: import("vue").Ref<IClassifyListType | undefined>;
|
|
372
381
|
conOjbConfig: import("vue").Ref<IClassifyListType | undefined>;
|
|
@@ -383,6 +392,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
383
392
|
conObjLen: import("vue").ComputedRef<any>;
|
|
384
393
|
showConditionList: import("vue").ComputedRef<IClassifyListType[]>;
|
|
385
394
|
saveBtnName: import("vue").ComputedRef<"保存模板" | "另存为模板">;
|
|
395
|
+
isApiFilter: import("vue").ComputedRef<boolean>;
|
|
386
396
|
init: () => void;
|
|
387
397
|
handleAddCondition: () => void;
|
|
388
398
|
handleSearch: () => void;
|
|
@@ -1252,6 +1262,308 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1252
1262
|
showCompareField: boolean;
|
|
1253
1263
|
hideAddBtn: boolean;
|
|
1254
1264
|
}>;
|
|
1265
|
+
SearchConditionByApi: import("vue").DefineComponent<{
|
|
1266
|
+
actionList_prop: {
|
|
1267
|
+
type: PropType<IClassifyListType>;
|
|
1268
|
+
default: () => {};
|
|
1269
|
+
};
|
|
1270
|
+
conditionList: {
|
|
1271
|
+
type: ArrayConstructor;
|
|
1272
|
+
default: () => never[];
|
|
1273
|
+
};
|
|
1274
|
+
tableId: {
|
|
1275
|
+
type: StringConstructor;
|
|
1276
|
+
default: string;
|
|
1277
|
+
};
|
|
1278
|
+
showItemName: {
|
|
1279
|
+
type: BooleanConstructor;
|
|
1280
|
+
default: boolean;
|
|
1281
|
+
};
|
|
1282
|
+
hideAddBtn: {
|
|
1283
|
+
type: BooleanConstructor;
|
|
1284
|
+
default: boolean;
|
|
1285
|
+
};
|
|
1286
|
+
}, {
|
|
1287
|
+
$message: import("naive-ui").MessageApi;
|
|
1288
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1289
|
+
actionList_prop: {
|
|
1290
|
+
type: PropType<IClassifyListType>;
|
|
1291
|
+
default: () => {};
|
|
1292
|
+
};
|
|
1293
|
+
conditionList: {
|
|
1294
|
+
type: ArrayConstructor;
|
|
1295
|
+
default: () => never[];
|
|
1296
|
+
};
|
|
1297
|
+
tableId: {
|
|
1298
|
+
type: StringConstructor;
|
|
1299
|
+
default: string;
|
|
1300
|
+
};
|
|
1301
|
+
showItemName: {
|
|
1302
|
+
type: BooleanConstructor;
|
|
1303
|
+
default: boolean;
|
|
1304
|
+
};
|
|
1305
|
+
hideAddBtn: {
|
|
1306
|
+
type: BooleanConstructor;
|
|
1307
|
+
default: boolean;
|
|
1308
|
+
};
|
|
1309
|
+
}>> & {
|
|
1310
|
+
onSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
1311
|
+
onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
1312
|
+
}>>;
|
|
1313
|
+
emit: (event: "saveAdd" | "cancelSaveAdd", ...args: any[]) => void;
|
|
1314
|
+
$attrs: {
|
|
1315
|
+
[x: string]: unknown;
|
|
1316
|
+
};
|
|
1317
|
+
FormState: {
|
|
1318
|
+
className: string;
|
|
1319
|
+
displayCategory: string;
|
|
1320
|
+
filterConditions: {
|
|
1321
|
+
value: string;
|
|
1322
|
+
key: string;
|
|
1323
|
+
condition: string;
|
|
1324
|
+
presetVal: string;
|
|
1325
|
+
}[];
|
|
1326
|
+
};
|
|
1327
|
+
loading: import("vue").Ref<boolean>;
|
|
1328
|
+
DisplayCategoryState: {
|
|
1329
|
+
addDisplayCategory: string;
|
|
1330
|
+
displayCategories: {
|
|
1331
|
+
disabled: boolean;
|
|
1332
|
+
value: string;
|
|
1333
|
+
}[];
|
|
1334
|
+
displayCategoryOriginLen: number;
|
|
1335
|
+
showAdd: boolean;
|
|
1336
|
+
};
|
|
1337
|
+
isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
|
|
1338
|
+
editDisplayCategory: (e: any, item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
1339
|
+
handleDisplayCategorySelect: (item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
1340
|
+
handleDisplayCategoryRemove: (index: number, item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
1341
|
+
handleDisplayCategoryAdd: (e: any) => void;
|
|
1342
|
+
handlerBlur: () => void;
|
|
1343
|
+
initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
|
|
1344
|
+
FilterConditionsState: any;
|
|
1345
|
+
paramOptions: import("vue").ComputedRef<any>;
|
|
1346
|
+
addFilterCondition: () => void;
|
|
1347
|
+
delFilterCondition: (index: number) => void;
|
|
1348
|
+
updateKey: (index: number, val: any) => void;
|
|
1349
|
+
updateCondition: (index: number, val: any) => void;
|
|
1350
|
+
getParamCfg: (key: string) => any;
|
|
1351
|
+
initFilterConditions: (tableId: string, rawConditions: import("../../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
|
|
1352
|
+
getRawFilterConditions: () => {
|
|
1353
|
+
field_key: any;
|
|
1354
|
+
con: any;
|
|
1355
|
+
value: any;
|
|
1356
|
+
unit: any;
|
|
1357
|
+
}[];
|
|
1358
|
+
findConditionByDisplayCategory: (displayCategory: string) => unknown;
|
|
1359
|
+
handleDisplayCategorySelectProxy: (item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
|
|
1360
|
+
clearFormData: () => void;
|
|
1361
|
+
handleInitConditions: () => Promise<void>;
|
|
1362
|
+
validate: () => Promise<unknown>;
|
|
1363
|
+
saveAdd: () => void;
|
|
1364
|
+
cancelSaveAdd: () => void;
|
|
1365
|
+
checkActionList: () => boolean;
|
|
1366
|
+
NSpin: any;
|
|
1367
|
+
NIcon: any;
|
|
1368
|
+
NInput: any;
|
|
1369
|
+
NButton: any;
|
|
1370
|
+
NTooltip: any;
|
|
1371
|
+
NSelect: any;
|
|
1372
|
+
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<{}>>, {}>;
|
|
1373
|
+
AddCircleSharp: 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<{}>>, {}>;
|
|
1374
|
+
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<{}>>, {}>;
|
|
1375
|
+
SvgIcon: import("vue").DefineComponent<{
|
|
1376
|
+
iconClass: {
|
|
1377
|
+
type: StringConstructor;
|
|
1378
|
+
required: true;
|
|
1379
|
+
default: string;
|
|
1380
|
+
};
|
|
1381
|
+
title: {
|
|
1382
|
+
type: StringConstructor;
|
|
1383
|
+
required: false;
|
|
1384
|
+
default: string;
|
|
1385
|
+
};
|
|
1386
|
+
className: {
|
|
1387
|
+
type: StringConstructor;
|
|
1388
|
+
required: false;
|
|
1389
|
+
};
|
|
1390
|
+
}, {
|
|
1391
|
+
props: {
|
|
1392
|
+
iconClass: string;
|
|
1393
|
+
title: string;
|
|
1394
|
+
className?: string | undefined;
|
|
1395
|
+
};
|
|
1396
|
+
iconName: import("vue").ComputedRef<string>;
|
|
1397
|
+
svgClass: import("vue").ComputedRef<string>;
|
|
1398
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1399
|
+
iconClass: {
|
|
1400
|
+
type: StringConstructor;
|
|
1401
|
+
required: true;
|
|
1402
|
+
default: string;
|
|
1403
|
+
};
|
|
1404
|
+
title: {
|
|
1405
|
+
type: StringConstructor;
|
|
1406
|
+
required: false;
|
|
1407
|
+
default: string;
|
|
1408
|
+
};
|
|
1409
|
+
className: {
|
|
1410
|
+
type: StringConstructor;
|
|
1411
|
+
required: false;
|
|
1412
|
+
};
|
|
1413
|
+
}>>, {
|
|
1414
|
+
title: string;
|
|
1415
|
+
iconClass: string;
|
|
1416
|
+
}>;
|
|
1417
|
+
ValueCfg: import("vue").DefineComponent<{
|
|
1418
|
+
paramCfg: {
|
|
1419
|
+
type: ObjectConstructor;
|
|
1420
|
+
default: null;
|
|
1421
|
+
};
|
|
1422
|
+
modelValue: {
|
|
1423
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1424
|
+
default: null;
|
|
1425
|
+
};
|
|
1426
|
+
presetVal: {
|
|
1427
|
+
type: StringConstructor;
|
|
1428
|
+
default: null;
|
|
1429
|
+
};
|
|
1430
|
+
}, {
|
|
1431
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1432
|
+
paramCfg: {
|
|
1433
|
+
type: ObjectConstructor;
|
|
1434
|
+
default: null;
|
|
1435
|
+
};
|
|
1436
|
+
modelValue: {
|
|
1437
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1438
|
+
default: null;
|
|
1439
|
+
};
|
|
1440
|
+
presetVal: {
|
|
1441
|
+
type: StringConstructor;
|
|
1442
|
+
default: null;
|
|
1443
|
+
};
|
|
1444
|
+
}>> & {
|
|
1445
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1446
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
1447
|
+
}>>;
|
|
1448
|
+
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
1449
|
+
valueCp: import("vue").WritableComputedRef<unknown>;
|
|
1450
|
+
presetValCp: import("vue").WritableComputedRef<unknown>;
|
|
1451
|
+
widgetType: import("vue").ComputedRef<any>;
|
|
1452
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
1453
|
+
mappingConfig: import("vue").ComputedRef<any>;
|
|
1454
|
+
widgetOptions: import("vue").ComputedRef<{
|
|
1455
|
+
label: string;
|
|
1456
|
+
value: string;
|
|
1457
|
+
}[]>;
|
|
1458
|
+
NInputNumber: any;
|
|
1459
|
+
NInput: any;
|
|
1460
|
+
NSelect: any;
|
|
1461
|
+
NDatePicker: any;
|
|
1462
|
+
WidgetTypeEnums: {
|
|
1463
|
+
INPUT_NUMBER: string;
|
|
1464
|
+
INPUT: string;
|
|
1465
|
+
SELECT: string;
|
|
1466
|
+
DATE: string;
|
|
1467
|
+
DATE_TIME: string;
|
|
1468
|
+
};
|
|
1469
|
+
WidgetValEnums: {
|
|
1470
|
+
CUSTOM: string;
|
|
1471
|
+
FIRST_VAL: string;
|
|
1472
|
+
NOW: string;
|
|
1473
|
+
TODAY: string;
|
|
1474
|
+
TODAY_START: string;
|
|
1475
|
+
TODAY_END: string;
|
|
1476
|
+
TOMORROW: string;
|
|
1477
|
+
TOMORROW_START: string;
|
|
1478
|
+
TOMORROW_END: string;
|
|
1479
|
+
YESTERDAY: string;
|
|
1480
|
+
YESTERDAY_START: string;
|
|
1481
|
+
YESTERDAY_END: string;
|
|
1482
|
+
THIS_WEEK: string;
|
|
1483
|
+
WEEK_START: string;
|
|
1484
|
+
WEEK_END: string;
|
|
1485
|
+
NEXT_WEEK: string;
|
|
1486
|
+
LAST_WEEK: string;
|
|
1487
|
+
THIS_MONTH: string;
|
|
1488
|
+
MONTH_START: string;
|
|
1489
|
+
MONTH_END: string;
|
|
1490
|
+
NEXT_MONTH: string;
|
|
1491
|
+
LAST_MONTH: string;
|
|
1492
|
+
THIS_QUARTER: string;
|
|
1493
|
+
NEXT_QUARTER: string;
|
|
1494
|
+
LAST_QUARTER: string;
|
|
1495
|
+
THIS_YEAR: string;
|
|
1496
|
+
NEXT_YEAR: string;
|
|
1497
|
+
LAST_YEAR: string;
|
|
1498
|
+
};
|
|
1499
|
+
WidgetOptionEnums: {
|
|
1500
|
+
RADIO: string;
|
|
1501
|
+
MULTIPLE: string;
|
|
1502
|
+
ALL: string;
|
|
1503
|
+
SELECT_TIME: string;
|
|
1504
|
+
PAST_TIME: string;
|
|
1505
|
+
FUTURE_TIME: string;
|
|
1506
|
+
};
|
|
1507
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1508
|
+
paramCfg: {
|
|
1509
|
+
type: ObjectConstructor;
|
|
1510
|
+
default: null;
|
|
1511
|
+
};
|
|
1512
|
+
modelValue: {
|
|
1513
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1514
|
+
default: null;
|
|
1515
|
+
};
|
|
1516
|
+
presetVal: {
|
|
1517
|
+
type: StringConstructor;
|
|
1518
|
+
default: null;
|
|
1519
|
+
};
|
|
1520
|
+
}>> & {
|
|
1521
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1522
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
1523
|
+
}, {
|
|
1524
|
+
modelValue: string | number | unknown[];
|
|
1525
|
+
presetVal: string;
|
|
1526
|
+
paramCfg: Record<string, any>;
|
|
1527
|
+
}>;
|
|
1528
|
+
ConditionEnums: {
|
|
1529
|
+
NULL: string;
|
|
1530
|
+
EQUAL: string;
|
|
1531
|
+
};
|
|
1532
|
+
conditionOptions: {
|
|
1533
|
+
label: string;
|
|
1534
|
+
value: string;
|
|
1535
|
+
}[];
|
|
1536
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("saveAdd" | "cancelSaveAdd")[], "saveAdd" | "cancelSaveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1537
|
+
actionList_prop: {
|
|
1538
|
+
type: PropType<IClassifyListType>;
|
|
1539
|
+
default: () => {};
|
|
1540
|
+
};
|
|
1541
|
+
conditionList: {
|
|
1542
|
+
type: ArrayConstructor;
|
|
1543
|
+
default: () => never[];
|
|
1544
|
+
};
|
|
1545
|
+
tableId: {
|
|
1546
|
+
type: StringConstructor;
|
|
1547
|
+
default: string;
|
|
1548
|
+
};
|
|
1549
|
+
showItemName: {
|
|
1550
|
+
type: BooleanConstructor;
|
|
1551
|
+
default: boolean;
|
|
1552
|
+
};
|
|
1553
|
+
hideAddBtn: {
|
|
1554
|
+
type: BooleanConstructor;
|
|
1555
|
+
default: boolean;
|
|
1556
|
+
};
|
|
1557
|
+
}>> & {
|
|
1558
|
+
onSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
1559
|
+
onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
1560
|
+
}, {
|
|
1561
|
+
tableId: string;
|
|
1562
|
+
actionList_prop: IClassifyListType;
|
|
1563
|
+
showItemName: boolean;
|
|
1564
|
+
conditionList: unknown[];
|
|
1565
|
+
hideAddBtn: boolean;
|
|
1566
|
+
}>;
|
|
1255
1567
|
TextOverTooltip: import("vue").DefineComponent<{
|
|
1256
1568
|
content: {
|
|
1257
1569
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -1408,6 +1720,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1408
1720
|
showItemName: boolean;
|
|
1409
1721
|
}>;
|
|
1410
1722
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeSearch" | "changeShowName" | "handleItemClick" | "reloadClassification")[], "changeSearch" | "changeShowName" | "handleItemClick" | "reloadClassification", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1723
|
+
tableDataType: {
|
|
1724
|
+
type: StringConstructor;
|
|
1725
|
+
default: string;
|
|
1726
|
+
};
|
|
1411
1727
|
originConditionList: {
|
|
1412
1728
|
type: PropType<IClassifyListType[]>;
|
|
1413
1729
|
default: () => never[];
|
|
@@ -1433,6 +1749,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1433
1749
|
searchFieldList: ISearchType[];
|
|
1434
1750
|
searchFieldLimit: Record<string, any>;
|
|
1435
1751
|
originConditionList: IClassifyListType[];
|
|
1752
|
+
tableDataType: string;
|
|
1436
1753
|
treeData: ITreeDataType[];
|
|
1437
1754
|
}>;
|
|
1438
1755
|
setClassification: import("vue").DefineComponent<{
|
|
@@ -2680,6 +2997,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2680
2997
|
type: StringConstructor;
|
|
2681
2998
|
default: string;
|
|
2682
2999
|
};
|
|
3000
|
+
showItemName: {
|
|
3001
|
+
type: BooleanConstructor;
|
|
3002
|
+
default: boolean;
|
|
3003
|
+
};
|
|
3004
|
+
hideAddBtn: {
|
|
3005
|
+
type: BooleanConstructor;
|
|
3006
|
+
default: boolean;
|
|
3007
|
+
};
|
|
2683
3008
|
}, {
|
|
2684
3009
|
$message: import("naive-ui").MessageApi;
|
|
2685
3010
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -2695,6 +3020,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2695
3020
|
type: StringConstructor;
|
|
2696
3021
|
default: string;
|
|
2697
3022
|
};
|
|
3023
|
+
showItemName: {
|
|
3024
|
+
type: BooleanConstructor;
|
|
3025
|
+
default: boolean;
|
|
3026
|
+
};
|
|
3027
|
+
hideAddBtn: {
|
|
3028
|
+
type: BooleanConstructor;
|
|
3029
|
+
default: boolean;
|
|
3030
|
+
};
|
|
2698
3031
|
}>> & {
|
|
2699
3032
|
onSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
2700
3033
|
onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
@@ -2751,6 +3084,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2751
3084
|
validate: () => Promise<unknown>;
|
|
2752
3085
|
saveAdd: () => void;
|
|
2753
3086
|
cancelSaveAdd: () => void;
|
|
3087
|
+
checkActionList: () => boolean;
|
|
2754
3088
|
NSpin: any;
|
|
2755
3089
|
NIcon: any;
|
|
2756
3090
|
NInput: any;
|
|
@@ -2934,13 +3268,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2934
3268
|
type: StringConstructor;
|
|
2935
3269
|
default: string;
|
|
2936
3270
|
};
|
|
3271
|
+
showItemName: {
|
|
3272
|
+
type: BooleanConstructor;
|
|
3273
|
+
default: boolean;
|
|
3274
|
+
};
|
|
3275
|
+
hideAddBtn: {
|
|
3276
|
+
type: BooleanConstructor;
|
|
3277
|
+
default: boolean;
|
|
3278
|
+
};
|
|
2937
3279
|
}>> & {
|
|
2938
3280
|
onSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
2939
3281
|
onCancelSaveAdd?: ((...args: any[]) => any) | undefined;
|
|
2940
3282
|
}, {
|
|
2941
3283
|
tableId: string;
|
|
2942
3284
|
actionList_prop: IClassifyListType;
|
|
3285
|
+
showItemName: boolean;
|
|
2943
3286
|
conditionList: unknown[];
|
|
3287
|
+
hideAddBtn: boolean;
|
|
2944
3288
|
}>;
|
|
2945
3289
|
SvgIcon: import("vue").DefineComponent<{
|
|
2946
3290
|
iconClass: {
|
|
@@ -3016,8 +3360,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3016
3360
|
modalTitle: string;
|
|
3017
3361
|
searchFieldList: unknown[];
|
|
3018
3362
|
filterApiConfig: Record<string, any>;
|
|
3019
|
-
conditionList: unknown[];
|
|
3020
3363
|
tableDataType: string;
|
|
3364
|
+
conditionList: unknown[];
|
|
3021
3365
|
}>;
|
|
3022
3366
|
DataTypeEnums: {
|
|
3023
3367
|
SQL: string;
|
|
@@ -3061,6 +3405,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3061
3405
|
mounted(el: any, { value }: any): void;
|
|
3062
3406
|
beforeUnmount(el: any): void;
|
|
3063
3407
|
};
|
|
3408
|
+
DataTypeEnums: {
|
|
3409
|
+
SQL: string;
|
|
3410
|
+
API: string;
|
|
3411
|
+
};
|
|
3064
3412
|
SvgIcon: import("vue").DefineComponent<{
|
|
3065
3413
|
iconClass: {
|
|
3066
3414
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as i,ref as e,useAttrs as n,provide as t,computed as l,onMounted as a,nextTick as o,onActivated as d,onBeforeMount as s,watch as c,openBlock as r,createElementBlock as h,normalizeClass as u,unref as p,normalizeStyle as g,withDirectives as f,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 O,isRef as _,mergeProps as w,renderSlot as I}from"vue";import{NIcon as L,NTooltip as T,NSelect as j}from"naive-ui";import{Repeat as N,SettingsOutline as B,ChevronDown as P,ChevronForward as z,Checkmark as A,Close as M,ChevronUp as J}from"@vicons/ionicons5";import D from"./search-professional-model.vue.js";import E from"../components/search-modal/set-classification.vue.js";import F from"../directive/flexibleResize.js";import{root_isShowResetButton as R}from"../const/index.js";import $ from"../hooks/useMixins.js";import V from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import q from"../../../../_virtual/plugin-vue_export-helper.js";const G={key:0,class:"header"},K={class:"tree"},W=["onClick"],Q={key:0,class:"digital-span"},U=["onClick"],H={key:0,class:"digital-span"},X=["onClick"],Y={class:"child-item-name"},Z={key:0,class:"digital-span"},ii={key:1,class:"tree-type-footer"},ei={class:"selected-num"},ni={key:0,class:"tile-type classify-1"},ti={key:0,class:"header"},li={class:"right-setting"},ai=["onClick"],oi={key:0,class:"digital-span"},di={class:"parent ellips"},si={class:"children"},ci=["onClick"],ri={key:0,class:"digital-span"},hi={key:1,class:"selected-list"},ui={class:"selected-num"},pi={key:0,class:"digital-span"},gi={key:0,class:"digital-span"},fi={key:0,class:"main-wrapper"},mi=["onClick"],yi={key:0,class:"digital-span"},vi={class:"tree-footer"},Ci=["onClick"],ki=["onClick"],bi={key:0,class:"digital-span"},Si={key:0,class:"select-type-footer"},xi={class:"selected-num"},Oi={key:0,class:"group-type classify-3"},_i={key:0,class:"header"},wi={class:"right-setting"},Ii=["onClick"],Li={key:0,class:"digital-span"},Ti={key:1,class:"selected-list"},ji={class:"selected-num"},Ni={key:0,class:"digital-span"},Bi={key:0,class:"digital-span"},Pi={key:0,class:"group-type classify-3 classify-4"},zi={key:0,class:"header"},Ai={class:"right-setting"};var Mi=q(i({__name:"Classification-com",props:{tableId:{type:String},conditionSid:{type:Array,default:()=>[]},localObj:{type:Object,default:()=>({})},curClassificationIndex:{type:Number},curClassificationWidth:{type:Number},curConditionList:{type:Array},tableName:{type:String},showRelatedTreeBtn:{type:Boolean},conditionType:{type:String},hideConditionChangeBtn:{type:Number},hideConditionChangeSetting:{type:Number},hideClearConditionChange:{type:Number},countCondition:{type:Number},countTabCondition:{type:Number,default:0},keyword:{type:String},isShowResetButton:{type:Boolean,default:!0},fieldKeys:{type:Array,default:()=>[]},tabConditionId:{type:String},conditionMap:{type:Object,default:()=>{}},filterApiConfig:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]}},emits:["changeSearch","setCurTreeData","setClassificationIndex","setTabConditionNumObj","getClassification","reloadList","getQuickSearchListObj","setConditionMap"],setup(i,{emit:q}){const Mi=i,{handleGetConfigApi:Ji}=$(),Di=e(null),Ei=e(null);let Fi=e(150),Ri=e(!1),$i=e([]),Vi=e([]),qi=e([]);e({});let Gi=e(2),Ki=e("");e(!1);let Wi=e({name:"全部数据",sid:"all_data"}),Qi=e([]),Ui=e([]),Hi=e(""),Xi=e(""),Yi=e(!1),Zi=e("全部数据"),ie=e(!1);const ee=n();t(R,e(Mi.isShowResetButton));let ne=l((()=>0===Gi.value?{marginRight:"8px"}:2===Gi.value?{display:"inline-block"}:{})),te=l((()=>{let i=Vi.value.filter((i=>-1!==Mi.conditionSid.indexOf(i.sid)));if(-1!==Mi.conditionSid.indexOf("all_data"))return"全部数据";{let e=[];return i.map((i=>{e.push(i.name)})),e.join(",")}})),le=l((()=>function(i){let e=0===i.digital?"(0)":i.digital?`(${i.digital})`:"";const{name:n,isPublic:t}=i;return je(n,t)+e}));l((()=>{if(!$i.value||!$i.value.length)return;let i=$i.value[0];return"all_data"===i.sid&&"digital"in i?i.digital||0:void 0}));let ae=l((()=>1===Mi.countCondition||1===Mi.countTabCondition)),oe=l((()=>1!=Mi.hideConditionChangeBtn||1!=Mi.hideConditionChangeSetting)),de=l((()=>qi.value.filter((i=>i.isShow)).length>0));function se(i){let e=[{labelName:i.name+(1!=Mi.countCondition||!i.digital&&0!==i.digital?"":" ("+(i.digital||0)+")"),itemValue:0}];if(i.children){const n=i.children.filter((i=>i.isShow)).map((i=>({...i,labelName:i.name+(1==Mi.countCondition&&Le(i)?" ("+(i.digital||0)+")":""),itemValue:i.sid})));e.push(...n)}return e}function ce(i){let e=$i.value.slice(1);if(e[i].children){const n=e[i].children.findIndex((i=>i.selected));return-1!==n?e[i].children[n].sid:0}return 0}function re(i){i.open?i.open=!1:i.open=!0}function he(i,e,n){if(Zi.value=i.name,!i.digital&&1===Mi.countCondition)return!1;let t=function(i,e,n){let t=JSON.parse(JSON.stringify(e));if("all_data"===i)t=["all_data"];else if("keyword"===Mi.conditionType){let e=t.findIndex((i=>"all_data"===i));-1!==e&&t.splice(e,1);let l=t.findIndex((e=>e===i));-1!==l?(t.splice(l,1),0===t.length&&(t=["all_data"])):(n.children&&n.children.length>0&&(l=t.findIndex((i=>-1!==n.children.findIndex((e=>e.sid===i))))),-1!==l&&t.splice(l,1),t.push(i))}else t=-1!==t.indexOf(i)?["all_data"]:[i];return t}(i.sid,Mi.conditionSid,n),l=function(i){let e=[];return $i.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==i.indexOf(n.sid)?(n.selected=!0,e.push(n)):n.selected=!1})):-1!==i.indexOf(n.sid)?(n.selected=!0,e.push(n)):n.selected=!1})),e}(t);me(!1),q("changeSearch","all_data"===i.sid?"all":"",i,n,l)}function ue(){q("setCurTreeData",$i.value);let i="";if(4===Gi.value)i=0;else{let e=Gi.value;i=++e}Fi.value=150,pe(i)}async function pe(i,e){let n={tableId:Mi.tableId,setting:JSON.stringify({classificationIndex:i,classificationWidth:e})};try{await Ji(n,"requestSaveListPersonaSetting",{},Mi.filterApiConfig)&&q("setClassificationIndex",i)}catch(i){console.log(i)}}function ge(){Yi.value=!0,me(!1)}function fe(i){Yi.value=i}function me(i){Ri.value=void 0===i?!Ri.value:i}function ye(i){var e;if((void 0!==i&&"delete"===i.type&&-1!==Mi.conditionSid.indexOf(i.item.sid)&&q("changeSearch","all",{name:"全部数据",sid:"all_data"}),Mi.tableId)&&Object.keys(Mi.conditionMap).length>0){$i.value=[];let{displayCategoryList:i=[],conditionList:n=[]}=Mi.conditionMap;qi.value=JSON.parse(JSON.stringify(n)),Ui.value=i||[],Vi.value=JSON.parse(JSON.stringify(n));const t={name:"全部数据",sid:"all_data"};Vi.value.unshift(t);let l=[];0===i.length&&(i=["未分类"]),i.forEach((i=>{let e={name:i,children:[]};n.forEach((n=>{(n.displayCategory===i||!n.displayCategory&&"未分类"===i&&"all_data"!==n.sid)&&(-1!==Mi.conditionSid.indexOf(n.sid)&&(n.selected=!0,e.open=!0),n.isShow&&e.children.push(n))})),e.children.length>0&&l.push(e)})),l.unshift({name:"全部数据",sid:"all_data"}),$i.value=l,0===Gi.value&&(e=!0,$i.value.forEach((i=>{i.children&&i.children.length&&(i.open=e)})))}}async function ve(i=!1,e="",n=[],t="",l){try{if(!Mi.countCondition&&!Mi.countTabCondition)return Wi.value.digital="",Promise.resolve();if(!Mi.tableId)return Promise.resolve();let i={tableId:Mi.tableId,countCondition:Mi.countCondition};e&&(i.keyword=e),t&&(i.tabConditionId=t),l&&(i.countTabCondition=l),n.length>0&&(i.fieldKeys=JSON.stringify(n)),Object.assign(i,function(){var i;if(!Mi.localObj&&0===Object.keys(Mi.localObj).length)return{};let e={};Array.isArray(Mi.localObj.params)&&Mi.localObj.params.map((i=>{e[i.p_name]=i.p_value}));Object.keys((null==(i=Mi.localObj)?void 0:i.extendParams)||{}).length&&(Object.assign(e,Mi.localObj.extendParams),e.extraParams=JSON.stringify(Mi.localObj.extendParams));return e}());let a=await Ji(i,"requestTableCondiTionDigital",{},Mi.filterApiConfig);return function(i){1==Mi.countTabCondition&&q("setTabConditionNumObj",i);if(!i||0===Object.keys(i).length)return;let e=[];!function(i,e){i.length&&i.forEach((i=>{var n;(null==(n=i.children)?void 0:n.length)?i.children.forEach((i=>{e.push(i)})):e.push(i)}))}($i.value,e);for(let n in i){let t="ALL"===n?"all_data":n,l=e.find((i=>i.sid==t));l&&("all_data"==l.sid&&1==Mi.countCondition&&(Wi.value.digital=i[n]||0),l.digital=i[n]||0)}let n=-1!==Mi.conditionSid.indexOf("all_data")?["ALL"]:Mi.conditionSid,t=0;if("keyword"===Mi.conditionType){let e=0;n.map((n=>e+=parseInt(i[n]))),t=e}else t=i[n[0]]}(a),Promise.resolve(a)}catch(i){console.log(i,"getTableCondiTionDigital")}}async function Ce(i){try{await ye(i),1!==Mi.countCondition&&1!==Mi.countTabCondition||await ve(!1,Mi.keyword,Mi.fieldKeys,Mi.tabConditionId,Mi.countTabCondition)}catch(i){console.log(i)}}function ke({distance:i}){const e=Fi.value+i;Fi.value=Math.min(Math.max(e,50),650)}function be(){pe(Gi.value,Fi.value)}async function Se(){await Ie(Mi.tableId),_e()}async function xe(i){await Ie(Mi.tableId),we(),q("getClassification",i)}function Oe(i,e){Xi.value="all"==i?"全部数据":e.name,q("changeSearch",i,e)}function _e(i){we(i).then((i=>{q("reloadList",i)}))}function we(i,e={}){if(!Mi.tableId)return new Promise((i=>i(!1)));let n=Object.keys(e).length>0?e:Mi.conditionMap;return new Promise(((e,t)=>{var l,a,o,d,s,c;if(Object.keys(n).length>0){Qi.value=n.conditionList||[],Ui.value=n.displayCategoryList||[];let t={conditionList:Qi.value,displayCategoryList:Ui.value};q("getQuickSearchListObj",t),Hi.value=n.settingId;const r=Qi.value.find((i=>i.isDefault))||{name:"全部数据",sid:"all_data"};Xi.value=r.name,(null==(a=null==(l=ee.tableOptions)?void 0:l.filterCondition)?void 0:a.displayCategory)&&i&&e({name:null==(d=null==(o=ee.tableOptions)?void 0:o.filterCondition)?void 0:d.name,sid:null==(c=null==(s=ee.tableOptions)?void 0:s.filterCondition)?void 0:c.displayCategory}),e(r)}else e({})}))}async function Ie(i){try{if(!i)return new Promise((i=>i(!1)));let e={tableId:i},n=await Ji(e,"requestTableCondiTionList",{},Mi.filterApiConfig);return q("setConditionMap",n),Promise.resolve(n)}catch(i){return Promise.resolve(!1)}}function Le(i){return 1===Mi.countCondition&&(i.digital||0===i.digital)}function Te(i){Zi.value=i}function je(i,e){return i&&"1"===e?i.replace(/\(公共\)$/,""):i}return a((()=>{document.addEventListener("click",(i=>{o((()=>{let e=i.composedPath&&i.composedPath();Di&&e.includes(Di.value)||me(!1)}))}))})),d((()=>{Ce({})})),s((()=>{Ce({})})),c((()=>Mi.tableId),(i=>{i&&(_e(!0),Ki.value!==i&&(Ki.value=i))}),{immediate:!0,deep:!0}),c((()=>Mi.curClassificationIndex),(i=>{void 0!==i&&(Gi.value=i)}),{immediate:!0,deep:!0}),c((()=>Mi.curClassificationWidth),(i=>{i&&(Fi.value=Number(i)||150)}),{immediate:!0}),c((()=>Mi.curConditionList),(i=>{i&&i.length&&$i.value!==i&&($i.value=JSON.parse(JSON.stringify(i)))}),{immediate:!0,deep:!0}),(e,n)=>(r(),h("div",{class:u(["classification-block","classificationIndex-"+p(Gi),p(ie)?"upack-up-wrap":""]),style:g(p(ne))},[0===p(Gi)?f((r(),h("div",{key:0,class:"tree-type classify-0",style:g({width:p(Fi)+"px",paddingBottom:"keyword"===i.conditionType?"80px":0,position:"relative"})},[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting?(r(),h("div",G,[1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,class:"header-1",onClick:ue},[m(p(L),{component:p(N),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,class:"header-1",onClick:ge},[m(p(L),{component:p(B),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])):C("v-if",!0),k("ul",K,[(r(!0),h(b,null,S(p($i),((e,n)=>(r(),h(b,null,[0===n||!e.children||0===e.children.length||e.children&&0!==e.children.filter((i=>i.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!e.children||0===e.children.length}])},[0!==n&&e.children&&0!==e.children.length?(r(),h(b,{key:1},[k("span",{class:u(["parent",{open:e.open}]),onClick:i=>re(e)},[k("span",null,[y(v(e.name)+" ",1),Le(e)?(r(),h("span",H," ("+v(e.digital||0)+") ",1)):C("v-if",!0)]),m(p(L),{component:e.open?p(P):p(z)},null,8,["component"])],10,U),e.open?(r(!0),h(b,{key:0},S(e.children.filter((i=>i.isShow)),((i,n)=>(r(),h("div",{class:"children",key:n},[i.isShow?(r(),x(p(T),{key:0,trigger:"hover",placement:"right"},{trigger:O((()=>[k("span",{class:u(["child-item",{selected:i.selected,disabled:!i.digital&&p(ae)}]),onClick:n=>he(i,0,e)},[k("span",Y,v(i.name||je(i.isPublic)),1),Le(i)?(r(),h("span",Z," ("+v(i.digital||0)+") ",1)):C("v-if",!0),i.selected?(r(),x(p(L),{key:1,component:p(A),size:"20"},null,8,["component"])):C("v-if",!0)],10,X)])),default:O((()=>[k("span",null,v(p(le)(i)),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:e.selected||-1!==i.conditionSid.indexOf("all_data")}]),onClick:i=>he(e)},[y(v(e.name)+" ",1),Le(e)?(r(),h("span",Q," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,W))],2)):C("v-if",!0)],64)))),256))]),"keyword"===i.conditionType&&1!=i.hideClearConditionChange?(r(),h("div",ii,[k("div",ei,"已选择"+v(i.conditionSid.filter((i=>"all_data"!==i)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=i=>he({sid:"all_data",name:"全部数据",digital:p(Wi).digital}))},[m(p(V),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)],4)),[[p(F),{mode:"VR",onMove:ke,onEnd:be}]]):C("v-if",!0),1===p(Gi)?(r(),h(b,{key:1},[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting||1!=i.hideConditionChangeSetting||p(qi).filter((i=>i.isShow)).length>0?(r(),h("div",ni,[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting?(r(),h("div",ti,[k("span",{class:u(["all-data",{selected:-1!==i.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=i=>he({sid:"all_data",name:"全部数据",digital:p(Wi).digital}))},[y(" 全部数据 "),p(Wi).digital||0===p(Wi).digital?(r(),h(b,{key:0},[y(" ("+v(p(Wi).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",li,[1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,class:"setting-1",onClick:ue,style:{"margin-right":"30px"}},[m(p(L),{component:p(N),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,class:"setting-1",onClick:ge},[m(p(L),{component:p(B),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])])):C("v-if",!0),k("ul",{class:"tile",style:g({borderBottom:"keyword"===i.conditionType&&1!=i.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),h(b,null,S(p($i).slice(1),((i,e)=>(r(),h(b,null,[i.children&&i.children.length>0?(r(),h("li",{class:"tile-item",key:e},[i.children&&0!==i.children.length?(r(),h(b,{key:1},[k("span",di,v(i.name),1),k("div",si,[(r(!0),h(b,null,S(i.children,((e,n)=>(r(),h(b,null,[e.isShow?(r(),h("span",{key:n,class:u(["child-item",{selected:e.selected,disabled:!e.digital&&p(ae)}]),onClick:n=>he(e,0,i)},[y(v(e.name||je(e.isPublic))+" ",1),Le(e)?(r(),h("span",ri," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,ci)):C("v-if",!0)],64)))),256))])],64)):(r(),h("span",{key:0,class:u(["child-item",{selected:i.selected}]),style:{"padding-left":"17px"},onClick:e=>he(i)},[y(v(i.name)+" "+v(i.digital)+" ",1),Le(i)?(r(),h("span",oi," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,ai))])):C("v-if",!0)],64)))),256))],4),"keyword"===i.conditionType&&1!=i.hideClearConditionChange?(r(),h("div",hi,[k("div",ui,"已选择"+v(i.conditionSid.filter((i=>"all_data"!==i)).length)+"项",1),(r(!0),h(b,null,S(p($i).slice(1),((i,e)=>(r(),h(b,null,[i.children&&0!==i.children.length?(r(!0),h(b,{key:1},S(i.children,((e,n)=>(r(),h(b,null,[e.selected?(r(),h("div",{class:"selected-item",key:e.sid},[y(v(e.name)+" ",1),Le(e)?(r(),h("span",gi," ("+v(e.digital||0)+") ",1)):C("v-if",!0),m(p(L),{component:p(M),onClick:n=>he(e,0,i)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:i.sid},[y(v(i.name)+" ",1),Le(i)?(r(),h("span",pi," ("+v(i.digital||0)+") ",1)):C("v-if",!0),m(p(L),{component:p(M),onClick:e=>he(i)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=i=>he({sid:"all_data",name:"全部数据",digital:p(Wi).digital}))},[m(p(V),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),2===p(Gi)?(r(),h("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:Di},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>me())},[m(p(T),{trigger:"hover",placement:"top"},{trigger:O((()=>[k("span",null,v(p(te)),1)])),default:O((()=>[k("span",null,v(p(te)),1)])),_:1}),m(p(L),{component:p(Ri)?p(J):p(P)},null,8,["component"])]),p(Ri)?(r(),h("div",fi,[k("ul",{class:"tree",style:g({padding:"keyword"===i.conditionType?"40px 0":"40px 0 0"})},[(r(!0),h(b,null,S(p($i),((e,n)=>(r(),h(b,null,[0===n||!e.children||0===e.children.length||e.children&&0!==e.children.filter((i=>i.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!e.children||0===e.children.length}])},[0!==n&&e.children&&0!==e.children.length?(r(),h(b,{key:1},[0!==e.children.filter((i=>i.isShow)).length?(r(),h("span",{key:0,class:u(["parent",{open:e.open}]),onClick:i=>re(e)},[y(v(e.name)+v(e.digital||0===e.digital?"("+e.digital+")":"")+" ",1),m(p(L),{component:e.open?p(P):p(z)},null,8,["component"])],10,Ci)):C("v-if",!0),e.open?(r(!0),h(b,{key:1},S(e.children.filter((i=>i.isShow)),((i,n)=>(r(),h("div",{class:"children",key:n},[i.isShow?(r(),x(p(T),{key:0,placement:"right",trigger:"hover"},{trigger:O((()=>[k("span",{class:u(["child-item",{selected:i.selected,disabled:!i.digital&&p(ae)}]),onClick:n=>he(i,0,e)},[k("span",null,[y(v(i.name||je(null==i?void 0:i.isPublic))+" ",1),Le(i)?(r(),h("span",bi," ("+v(i.digital||0)+") ",1)):C("v-if",!0)]),i.selected?(r(),x(p(L),{key:0,component:p(A),size:"20"},null,8,["component"])):C("v-if",!0)],10,ki)])),default:O((()=>[k("span",null,v(p(le)(i)),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:e.selected||-1!==i.conditionSid.indexOf("all_data")}]),onClick:i=>he(e)},[y(v(e.name)+" ",1),Le(e)?(r(),h("span",yi," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,mi),k("div",vi,[1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,onClick:ue},[m(p(L),{component:p(N),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,onClick:ge},[m(p(L),{component:p(B),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])],64))],2)):C("v-if",!0)],64)))),256))],4),"keyword"===i.conditionType&&1!=i.hideClearConditionChange?(r(),h("div",Si,[k("div",xi,"已选择"+v(i.conditionSid.filter((i=>"all_data"!==i)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=i=>he({sid:"all_data",name:"全部数据",digital:p(Wi).digital}))},[m(p(V),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],512)):C("v-if",!0),3===p(Gi)?(r(),h(b,{key:3},[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting||1!=i.hideConditionChangeSetting||p(qi).filter((i=>i.isShow)).length>0?(r(),h("div",Oi,[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting?(r(),h("div",_i,[k("span",{class:u(["all-data",{selected:-1!==i.conditionSid.indexOf("all_data")}]),onClick:n[5]||(n[5]=i=>he({sid:"all_data",name:"全部数据",digital:p(Wi).digital}))},[y(" 全部数据 "),p(Wi).digital||0===p(Wi).digital?(r(),h(b,{key:0},[y(" ("+v(p(Wi).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",wi,[1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,onClick:ue,style:{"margin-right":"30px"}},[m(p(L),{component:p(N),size:"20"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,onClick:ge},[m(p(L),{component:p(B),size:"20"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])])):C("v-if",!0),k("div",{class:"group",style:g({borderBottom:"keyword"===i.conditionType&&1!=i.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),h(b,null,S(p($i).slice(1),((e,n)=>(r(),h(b,null,[e.children&&0!==e.children.length?(r(),h(b,{key:1},[C(" 后面需要进一步放开测试 "),0!==e.children.filter((i=>i.isShow)).length?(r(),x(p(j),{key:0,class:"classificationSelect3",to:!1,placeholder:e.name+(1!=i.countCondition||!e.digital&&0!==e.digital?"":" ("+(e.digital||0)+")"),value:ce(n),clearable:"",options:se(e),"label-field":"labelName","value-field":"itemValue","onUpdate:value":(i,n)=>function(i,e,n,t){if(i)he(e,n.children.findIndex((e=>e.sid==i)),n);else{let i=n.children.findIndex((i=>-1!==Mi.conditionSid.indexOf(i.sid)));-1!==i&&he(n.children[i],0,n)}}(i,n,e)},null,8,["placeholder","value","options","onUpdate:value"])):C("v-if",!0)],64)):(r(),h("span",{key:e.sid,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>he(e)},[y(v(e.name)+" "+v(e.digital)+" ",1),Le(e)?(r(),h("span",Li," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,Ii))],64)))),256))],4),"keyword"===i.conditionType&&1!=i.hideClearConditionChange?(r(),h("div",Ti,[k("div",ji,"已选择"+v(i.conditionSid.filter((i=>"all_data"!==i)).length)+"项",1),(r(!0),h(b,null,S(p($i).slice(1),((i,e)=>(r(),h(b,null,[i.children&&0!==i.children.length?(r(!0),h(b,{key:1},S(i.children,((e,n)=>(r(),h(b,null,[e.selected?(r(),h("div",{class:"selected-item",key:e.sid},[y(v(e.name)+" ",1),Le(e)?(r(),h("span",Bi," ("+v(e.digital||0)+") ",1)):C("v-if",!0),m(p(L),{component:p(M),onClick:n=>he(e,0,i)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:i.sid},[y(v(i.name)+" ",1),Le(i)?(r(),h("span",Ni," ("+v(i.digital||0)+") ",1)):C("v-if",!0),m(p(L),{component:p(M),onClick:e=>he(i)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[6]||(n[6]=i=>he({sid:"all_data",name:"全部数据",digital:p(Wi).digital}))},[m(p(V),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),4===p(Gi)?(r(),h(b,{key:4},[p(oe)||p(de)?(r(),h("div",Pi,[p(oe)?(r(),h("div",zi,[C(" @click=\"handleItemClick({ sid: 'all_data', name: '全部数据', digital: allObj.digital })\" "),k("span",{class:u(["all-data",{selected:-1!==i.conditionSid.indexOf("all_data")}])},[y(v(p(Zi))+" ",1),p(Wi).digital||0===p(Wi).digital?(r(),h(b,{key:0},[y(" ("+v(p(Wi).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",Ai,[k("span",{style:{"margin-right":"30px"},class:"upack-up-btn",onClick:n[7]||(n[7]=i=>_(ie)?ie.value=!p(ie):ie=!p(ie))},[y(v(p(ie)?"展开":"收起")+" ",1),m(p(L),{component:p(ie)?p(P):p(J),style:{color:"#2d7aff"}},null,8,["component"])]),1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,onClick:ue,style:{"margin-right":"30px"}},[m(p(L),{component:p(N),size:"20"},null,8,["component"]),C(' {{ $t("1.1.5.2") }} '),y(" 切换 ")])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,onClick:ge},[m(p(L),{component:p(B),size:"20"},null,8,["component"]),C(' {{ $t("1.1.5.3") }} '),y(" 设置 ")])):C("v-if",!0)])])):C("v-if",!0)])):C("v-if",!0),k("div",{class:"classify-4-container",style:g({height:p(ie)?0:"auto"})},[m(D,w({ref_key:"professional",ref:Ei},e.$attrs,{originConditionList:p(qi),displayCategoryList:p(Ui),treeData:p($i),tableId:i.tableId,searchFieldList:i.searchFieldList,onHandleItemClick:he,onChangeShowName:Te}),null,16,["originConditionList","displayCategoryList","treeData","tableId","searchFieldList"])],4)],64)):C("v-if",!0),C(" searchFieldList: props "),C(" saveGetTableCondiTionList 新增,删除 "),C(" CondiTionListInit 修改? "),m(E,{ref:"search",onChangeSearch:Oe,onSaveGetTableCondiTionList:xe,onCondiTionListInit:Se,onSetClassifyModal:fe,searchFieldList:i.searchFieldList,conditionList:p(Qi),displayCategoryList:p(Ui),settingId:p(Hi),searchDefName:p(Xi),tableId:i.tableId,classifyModal:p(Yi),filterApiConfig:i.filterApiConfig},{searchCondition:O((({...i})=>[I(e.$slots,"searchCondition",{attrs:i})])),_:3},8,["searchFieldList","conditionList","displayCategoryList","settingId","searchDefName","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{Mi as default};
|
|
1
|
+
import{defineComponent as i,ref as e,useAttrs as n,provide as t,computed as l,onMounted as a,nextTick as o,onActivated as d,onBeforeMount as s,watch as c,openBlock as r,createElementBlock as h,normalizeClass as u,unref as p,normalizeStyle as g,withDirectives as f,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 O,isRef as _,mergeProps as I,renderSlot as w}from"vue";import{NIcon as L,NTooltip as T,NSelect as j}from"naive-ui";import{Repeat as N,SettingsOutline as B,ChevronDown as P,ChevronForward as z,Checkmark as A,Close as M,ChevronUp as D}from"@vicons/ionicons5";import J from"./search-professional-model.vue.js";import E from"../components/search-modal/set-classification.vue.js";import F from"../directive/flexibleResize.js";import{root_isShowResetButton as R}from"../const/index.js";import{DataTypeEnums as $}from"../types/enums.js";import V from"../hooks/useMixins.js";import q from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import G from"../../../../_virtual/plugin-vue_export-helper.js";const K={key:0,class:"header"},W={class:"tree"},Q=["onClick"],U={key:0,class:"digital-span"},H=["onClick"],X={key:0,class:"digital-span"},Y=["onClick"],Z={class:"child-item-name"},ii={key:0,class:"digital-span"},ei={key:1,class:"tree-type-footer"},ni={class:"selected-num"},ti={key:0,class:"tile-type classify-1"},li={key:0,class:"header"},ai={class:"right-setting"},oi=["onClick"],di={key:0,class:"digital-span"},si={class:"parent ellips"},ci={class:"children"},ri=["onClick"],hi={key:0,class:"digital-span"},ui={key:1,class:"selected-list"},pi={class:"selected-num"},gi={key:0,class:"digital-span"},fi={key:0,class:"digital-span"},mi={key:0,class:"main-wrapper"},yi=["onClick"],vi={key:0,class:"digital-span"},Ci={class:"tree-footer"},ki=["onClick"],bi=["onClick"],Si={key:0,class:"digital-span"},xi={key:0,class:"select-type-footer"},Oi={class:"selected-num"},_i={key:0,class:"group-type classify-3"},Ii={key:0,class:"header"},wi={class:"right-setting"},Li=["onClick"],Ti={key:0,class:"digital-span"},ji={key:1,class:"selected-list"},Ni={class:"selected-num"},Bi={key:0,class:"digital-span"},Pi={key:0,class:"digital-span"},zi={key:0,class:"group-type classify-3 classify-4"},Ai={key:0,class:"header"},Mi={class:"right-setting"};var Di=G(i({__name:"Classification-com",props:{tableId:{type:String},conditionSid:{type:Array,default:()=>[]},localObj:{type:Object,default:()=>({})},curClassificationIndex:{type:Number},curClassificationWidth:{type:Number},curConditionList:{type:Array},tableName:{type:String},showRelatedTreeBtn:{type:Boolean},conditionType:{type:String},hideConditionChangeBtn:{type:Number},hideConditionChangeSetting:{type:Number},hideClearConditionChange:{type:Number},countCondition:{type:Number},countTabCondition:{type:Number,default:0},keyword:{type:String},isShowResetButton:{type:Boolean,default:!0},fieldKeys:{type:Array,default:()=>[]},tabConditionId:{type:String},conditionMap:{type:Object,default:()=>{}},filterApiConfig:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]}},emits:["changeSearch","setCurTreeData","setClassificationIndex","setTabConditionNumObj","getClassification","reloadList","getQuickSearchListObj","setConditionMap"],setup(i,{emit:G}){const Di=i,{handleGetConfigApi:Ji}=V(),Ei=e(null),Fi=e(null);let Ri=e(150),$i=e(!1),Vi=e([]),qi=e([]),Gi=e([]);e({});let Ki=e(2),Wi=e("");e(!1);let Qi=e({name:"全部数据",sid:"all_data"}),Ui=e([]),Hi=e([]),Xi=e(""),Yi=e(""),Zi=e(!1),ie=e("全部数据"),ee=e(!1);const ne=n();t(R,e(Di.isShowResetButton));let te=l((()=>0===Ki.value?{marginRight:"8px"}:2===Ki.value?{display:"inline-block"}:{})),le=l((()=>{let i=qi.value.filter((i=>-1!==Di.conditionSid.indexOf(i.sid)));if(-1!==Di.conditionSid.indexOf("all_data"))return"全部数据";{let e=[];return i.map((i=>{e.push(i.name)})),e.join(",")}})),ae=l((()=>function(i){let e=0===i.digital?"(0)":i.digital?`(${i.digital})`:"";const{name:n,isPublic:t}=i;return Ne(n,t)+e}));l((()=>{if(!Vi.value||!Vi.value.length)return;let i=Vi.value[0];return"all_data"===i.sid&&"digital"in i?i.digital||0:void 0}));let oe=l((()=>1===Di.countCondition||1===Di.countTabCondition)),de=l((()=>1!=Di.hideConditionChangeBtn||1!=Di.hideConditionChangeSetting)),se=l((()=>Gi.value.filter((i=>i.isShow)).length>0));function ce(i){let e=[{labelName:i.name+(1!=Di.countCondition||!i.digital&&0!==i.digital?"":" ("+(i.digital||0)+")"),itemValue:0}];if(i.children){const n=i.children.filter((i=>i.isShow)).map((i=>({...i,labelName:i.name+(1==Di.countCondition&&Te(i)?" ("+(i.digital||0)+")":""),itemValue:i.sid})));e.push(...n)}return e}function re(i){let e=Vi.value.slice(1);if(e[i].children){const n=e[i].children.findIndex((i=>i.selected));return-1!==n?e[i].children[n].sid:0}return 0}function he(i){i.open?i.open=!1:i.open=!0}function ue(i,e,n){if(ie.value=i.name,!i.digital&&1===Di.countCondition)return!1;let t=function(i,e,n){let t=JSON.parse(JSON.stringify(e));if("all_data"===i)t=["all_data"];else if("keyword"===Di.conditionType){let e=t.findIndex((i=>"all_data"===i));-1!==e&&t.splice(e,1);let l=t.findIndex((e=>e===i));-1!==l?(t.splice(l,1),0===t.length&&(t=["all_data"])):(n.children&&n.children.length>0&&(l=t.findIndex((i=>-1!==n.children.findIndex((e=>e.sid===i))))),-1!==l&&t.splice(l,1),t.push(i))}else t=-1!==t.indexOf(i)?["all_data"]:[i];return t}(i.sid,Di.conditionSid,n),l=function(i){let e=[];return Vi.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==i.indexOf(n.sid)?(n.selected=!0,e.push(n)):n.selected=!1})):-1!==i.indexOf(n.sid)?(n.selected=!0,e.push(n)):n.selected=!1})),e}(t);ye(!1),G("changeSearch","all_data"===i.sid?"all":"",i,n,l)}function pe(){G("setCurTreeData",Vi.value);let i="";if(4===Ki.value)i=0;else{let e=Ki.value;i=++e}Ri.value=150,ge(i)}async function ge(i,e){let n={tableId:Di.tableId,setting:JSON.stringify({classificationIndex:i,classificationWidth:e})};try{await Ji(n,"requestSaveListPersonaSetting",{},Di.filterApiConfig)&&G("setClassificationIndex",i)}catch(i){console.log(i)}}function fe(){Zi.value=!0,ye(!1)}function me(i){Zi.value=i}function ye(i){$i.value=void 0===i?!$i.value:i}function ve(i){var e;if((void 0!==i&&"delete"===i.type&&-1!==Di.conditionSid.indexOf(i.item.sid)&&G("changeSearch","all",{name:"全部数据",sid:"all_data"}),Di.tableId)&&Object.keys(Di.conditionMap).length>0){Vi.value=[];let{displayCategoryList:i=[],conditionList:n=[]}=Di.conditionMap;Gi.value=JSON.parse(JSON.stringify(n)),Hi.value=i||[],qi.value=JSON.parse(JSON.stringify(n));const t={name:"全部数据",sid:"all_data"};qi.value.unshift(t);let l=[];0===i.length&&(i=["未分类"]),i.forEach((i=>{let e={name:i,children:[]};n.forEach((n=>{(n.displayCategory===i||!n.displayCategory&&"未分类"===i&&"all_data"!==n.sid)&&(-1!==Di.conditionSid.indexOf(n.sid)&&(n.selected=!0,e.open=!0),n.isShow&&e.children.push(n))})),e.children.length>0&&l.push(e)})),l.unshift({name:"全部数据",sid:"all_data"}),Vi.value=l,0===Ki.value&&(e=!0,Vi.value.forEach((i=>{i.children&&i.children.length&&(i.open=e)})))}}async function Ce(i=!1,e="",n=[],t="",l){try{if(!Di.countCondition&&!Di.countTabCondition)return Qi.value.digital="",Promise.resolve();if(!Di.tableId)return Promise.resolve();let i={tableId:Di.tableId,countCondition:Di.countCondition};e&&(i.keyword=e),t&&(i.tabConditionId=t),l&&(i.countTabCondition=l),n.length>0&&(i.fieldKeys=JSON.stringify(n)),Object.assign(i,function(){var i;if(!Di.localObj&&0===Object.keys(Di.localObj).length)return{};let e={};Array.isArray(Di.localObj.params)&&Di.localObj.params.map((i=>{e[i.p_name]=i.p_value}));Object.keys((null==(i=Di.localObj)?void 0:i.extendParams)||{}).length&&(Object.assign(e,Di.localObj.extendParams),e.extraParams=JSON.stringify(Di.localObj.extendParams));return e}());let a=await Ji(i,"requestTableCondiTionDigital",{},Di.filterApiConfig);return function(i){1==Di.countTabCondition&&G("setTabConditionNumObj",i);if(!i||0===Object.keys(i).length)return;let e=[];!function(i,e){i.length&&i.forEach((i=>{var n;(null==(n=i.children)?void 0:n.length)?i.children.forEach((i=>{e.push(i)})):e.push(i)}))}(Vi.value,e);for(let n in i){let t="ALL"===n?"all_data":n,l=e.find((i=>i.sid==t));l&&("all_data"==l.sid&&1==Di.countCondition&&(Qi.value.digital=i[n]||0),l.digital=i[n]||0)}let n=-1!==Di.conditionSid.indexOf("all_data")?["ALL"]:Di.conditionSid,t=0;if("keyword"===Di.conditionType){let e=0;n.map((n=>e+=parseInt(i[n]))),t=e}else t=i[n[0]]}(a),Promise.resolve(a)}catch(i){console.log(i,"getTableCondiTionDigital")}}async function ke(i){try{await ve(i),1!==Di.countCondition&&1!==Di.countTabCondition||await Ce(!1,Di.keyword,Di.fieldKeys,Di.tabConditionId,Di.countTabCondition)}catch(i){console.log(i)}}function be({distance:i}){const e=Ri.value+i;Ri.value=Math.min(Math.max(e,50),650)}function Se(){ge(Ki.value,Ri.value)}async function xe(){await Le(Di.tableId),Ie()}async function Oe(i){await Le(Di.tableId),we(),G("getClassification",i)}function _e(i,e){Yi.value="all"==i?"全部数据":e.name,G("changeSearch",i,e)}function Ie(i){we(i).then((i=>{G("reloadList",i)}))}function we(i,e={}){if(!Di.tableId)return new Promise((i=>i(!1)));let n=Object.keys(e).length>0?e:Di.conditionMap;return new Promise(((e,t)=>{var l,a,o,d,s,c;if(Object.keys(n).length>0){Ui.value=n.conditionList||[],Hi.value=n.displayCategoryList||[];let t={conditionList:Ui.value,displayCategoryList:Hi.value};G("getQuickSearchListObj",t),Xi.value=n.settingId;const r=Ui.value.find((i=>i.isDefault))||{name:"全部数据",sid:"all_data"};Yi.value=r.name,(null==(a=null==(l=ne.tableOptions)?void 0:l.filterCondition)?void 0:a.displayCategory)&&i&&e({name:null==(d=null==(o=ne.tableOptions)?void 0:o.filterCondition)?void 0:d.name,sid:null==(c=null==(s=ne.tableOptions)?void 0:s.filterCondition)?void 0:c.displayCategory}),e(r)}else e({})}))}async function Le(i){try{if(!i)return new Promise((i=>i(!1)));let e={tableId:i},n=await Ji(e,"requestTableCondiTionList",{},Di.filterApiConfig);return G("setConditionMap",n),Promise.resolve(n)}catch(i){return Promise.resolve(!1)}}function Te(i){return 1===Di.countCondition&&(i.digital||0===i.digital)}function je(i){ie.value=i}function Ne(i,e){return i&&"1"===e?i.replace(/\(公共\)$/,""):i}return a((()=>{document.addEventListener("click",(i=>{o((()=>{let e=i.composedPath&&i.composedPath();Ei&&e.includes(Ei.value)||ye(!1)}))}))})),d((()=>{ke({})})),s((()=>{ke({})})),c((()=>Di.tableId),(i=>{i&&(Ie(!0),Wi.value!==i&&(Wi.value=i))}),{immediate:!0,deep:!0}),c((()=>Di.curClassificationIndex),(i=>{void 0!==i&&(Ki.value=i)}),{immediate:!0,deep:!0}),c((()=>Di.curClassificationWidth),(i=>{i&&(Ri.value=Number(i)||150)}),{immediate:!0}),c((()=>Di.curConditionList),(i=>{i&&i.length&&Vi.value!==i&&(Vi.value=JSON.parse(JSON.stringify(i)))}),{immediate:!0,deep:!0}),(e,n)=>(r(),h("div",{class:u(["classification-block","classificationIndex-"+p(Ki),p(ee)?"upack-up-wrap":""]),style:g(p(te))},[0===p(Ki)?f((r(),h("div",{key:0,class:"tree-type classify-0",style:g({width:p(Ri)+"px",paddingBottom:"keyword"===i.conditionType?"80px":0,position:"relative"})},[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting?(r(),h("div",K,[1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,class:"header-1",onClick:pe},[m(p(L),{component:p(N),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,class:"header-1",onClick:fe},[m(p(L),{component:p(B),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])):C("v-if",!0),k("ul",W,[(r(!0),h(b,null,S(p(Vi),((e,n)=>(r(),h(b,null,[0===n||!e.children||0===e.children.length||e.children&&0!==e.children.filter((i=>i.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!e.children||0===e.children.length}])},[0!==n&&e.children&&0!==e.children.length?(r(),h(b,{key:1},[k("span",{class:u(["parent",{open:e.open}]),onClick:i=>he(e)},[k("span",null,[y(v(e.name)+" ",1),Te(e)?(r(),h("span",X," ("+v(e.digital||0)+") ",1)):C("v-if",!0)]),m(p(L),{component:e.open?p(P):p(z)},null,8,["component"])],10,H),e.open?(r(!0),h(b,{key:0},S(e.children.filter((i=>i.isShow)),((i,n)=>(r(),h("div",{class:"children",key:n},[i.isShow?(r(),x(p(T),{key:0,trigger:"hover",placement:"right"},{trigger:O((()=>[k("span",{class:u(["child-item",{selected:i.selected,disabled:!i.digital&&p(oe)}]),onClick:n=>ue(i,0,e)},[k("span",Z,v(i.name||Ne(i.isPublic)),1),Te(i)?(r(),h("span",ii," ("+v(i.digital||0)+") ",1)):C("v-if",!0),i.selected?(r(),x(p(L),{key:1,component:p(A),size:"20"},null,8,["component"])):C("v-if",!0)],10,Y)])),default:O((()=>[k("span",null,v(p(ae)(i)),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:e.selected||-1!==i.conditionSid.indexOf("all_data")}]),onClick:i=>ue(e)},[y(v(e.name)+" ",1),Te(e)?(r(),h("span",U," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,Q))],2)):C("v-if",!0)],64)))),256))]),"keyword"===i.conditionType&&1!=i.hideClearConditionChange?(r(),h("div",ei,[k("div",ni,"已选择"+v(i.conditionSid.filter((i=>"all_data"!==i)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=i=>ue({sid:"all_data",name:"全部数据",digital:p(Qi).digital}))},[m(p(q),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)],4)),[[p(F),{mode:"VR",onMove:be,onEnd:Se}]]):C("v-if",!0),1===p(Ki)?(r(),h(b,{key:1},[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting||1!=i.hideConditionChangeSetting||p(Gi).filter((i=>i.isShow)).length>0?(r(),h("div",ti,[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting?(r(),h("div",li,[k("span",{class:u(["all-data",{selected:-1!==i.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=i=>ue({sid:"all_data",name:"全部数据",digital:p(Qi).digital}))},[y(" 全部数据 "),p(Qi).digital||0===p(Qi).digital?(r(),h(b,{key:0},[y(" ("+v(p(Qi).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",ai,[1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,class:"setting-1",onClick:pe,style:{"margin-right":"30px"}},[m(p(L),{component:p(N),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,class:"setting-1",onClick:fe},[m(p(L),{component:p(B),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])])):C("v-if",!0),k("ul",{class:"tile",style:g({borderBottom:"keyword"===i.conditionType&&1!=i.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),h(b,null,S(p(Vi).slice(1),((i,e)=>(r(),h(b,null,[i.children&&i.children.length>0?(r(),h("li",{class:"tile-item",key:e},[i.children&&0!==i.children.length?(r(),h(b,{key:1},[k("span",si,v(i.name),1),k("div",ci,[(r(!0),h(b,null,S(i.children,((e,n)=>(r(),h(b,null,[e.isShow?(r(),h("span",{key:n,class:u(["child-item",{selected:e.selected,disabled:!e.digital&&p(oe)}]),onClick:n=>ue(e,0,i)},[y(v(e.name||Ne(e.isPublic))+" ",1),Te(e)?(r(),h("span",hi," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,ri)):C("v-if",!0)],64)))),256))])],64)):(r(),h("span",{key:0,class:u(["child-item",{selected:i.selected}]),style:{"padding-left":"17px"},onClick:e=>ue(i)},[y(v(i.name)+" "+v(i.digital)+" ",1),Te(i)?(r(),h("span",di," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,oi))])):C("v-if",!0)],64)))),256))],4),"keyword"===i.conditionType&&1!=i.hideClearConditionChange?(r(),h("div",ui,[k("div",pi,"已选择"+v(i.conditionSid.filter((i=>"all_data"!==i)).length)+"项",1),(r(!0),h(b,null,S(p(Vi).slice(1),((i,e)=>(r(),h(b,null,[i.children&&0!==i.children.length?(r(!0),h(b,{key:1},S(i.children,((e,n)=>(r(),h(b,null,[e.selected?(r(),h("div",{class:"selected-item",key:e.sid},[y(v(e.name)+" ",1),Te(e)?(r(),h("span",fi," ("+v(e.digital||0)+") ",1)):C("v-if",!0),m(p(L),{component:p(M),onClick:n=>ue(e,0,i)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:i.sid},[y(v(i.name)+" ",1),Te(i)?(r(),h("span",gi," ("+v(i.digital||0)+") ",1)):C("v-if",!0),m(p(L),{component:p(M),onClick:e=>ue(i)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=i=>ue({sid:"all_data",name:"全部数据",digital:p(Qi).digital}))},[m(p(q),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),2===p(Ki)?(r(),h("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:Ei},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>ye())},[m(p(T),{trigger:"hover",placement:"top"},{trigger:O((()=>[k("span",null,v(p(le)),1)])),default:O((()=>[k("span",null,v(p(le)),1)])),_:1}),m(p(L),{component:p($i)?p(D):p(P)},null,8,["component"])]),p($i)?(r(),h("div",mi,[k("ul",{class:"tree",style:g({padding:"keyword"===i.conditionType?"40px 0":"40px 0 0"})},[(r(!0),h(b,null,S(p(Vi),((e,n)=>(r(),h(b,null,[0===n||!e.children||0===e.children.length||e.children&&0!==e.children.filter((i=>i.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!e.children||0===e.children.length}])},[0!==n&&e.children&&0!==e.children.length?(r(),h(b,{key:1},[0!==e.children.filter((i=>i.isShow)).length?(r(),h("span",{key:0,class:u(["parent",{open:e.open}]),onClick:i=>he(e)},[y(v(e.name)+v(e.digital||0===e.digital?"("+e.digital+")":"")+" ",1),m(p(L),{component:e.open?p(P):p(z)},null,8,["component"])],10,ki)):C("v-if",!0),e.open?(r(!0),h(b,{key:1},S(e.children.filter((i=>i.isShow)),((i,n)=>(r(),h("div",{class:"children",key:n},[i.isShow?(r(),x(p(T),{key:0,placement:"right",trigger:"hover"},{trigger:O((()=>[k("span",{class:u(["child-item",{selected:i.selected,disabled:!i.digital&&p(oe)}]),onClick:n=>ue(i,0,e)},[k("span",null,[y(v(i.name||Ne(null==i?void 0:i.isPublic))+" ",1),Te(i)?(r(),h("span",Si," ("+v(i.digital||0)+") ",1)):C("v-if",!0)]),i.selected?(r(),x(p(L),{key:0,component:p(A),size:"20"},null,8,["component"])):C("v-if",!0)],10,bi)])),default:O((()=>[k("span",null,v(p(ae)(i)),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:e.selected||-1!==i.conditionSid.indexOf("all_data")}]),onClick:i=>ue(e)},[y(v(e.name)+" ",1),Te(e)?(r(),h("span",vi," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,yi),k("div",Ci,[1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,onClick:pe},[m(p(L),{component:p(N),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,onClick:fe},[m(p(L),{component:p(B),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])],64))],2)):C("v-if",!0)],64)))),256))],4),"keyword"===i.conditionType&&1!=i.hideClearConditionChange?(r(),h("div",xi,[k("div",Oi,"已选择"+v(i.conditionSid.filter((i=>"all_data"!==i)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=i=>ue({sid:"all_data",name:"全部数据",digital:p(Qi).digital}))},[m(p(q),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],512)):C("v-if",!0),3===p(Ki)?(r(),h(b,{key:3},[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting||1!=i.hideConditionChangeSetting||p(Gi).filter((i=>i.isShow)).length>0?(r(),h("div",_i,[1!=i.hideConditionChangeBtn||1!=i.hideConditionChangeSetting?(r(),h("div",Ii,[k("span",{class:u(["all-data",{selected:-1!==i.conditionSid.indexOf("all_data")}]),onClick:n[5]||(n[5]=i=>ue({sid:"all_data",name:"全部数据",digital:p(Qi).digital}))},[y(" 全部数据 "),p(Qi).digital||0===p(Qi).digital?(r(),h(b,{key:0},[y(" ("+v(p(Qi).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",wi,[1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,onClick:pe,style:{"margin-right":"30px"}},[m(p(L),{component:p(N),size:"20"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,onClick:fe},[m(p(L),{component:p(B),size:"20"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])])):C("v-if",!0),k("div",{class:"group",style:g({borderBottom:"keyword"===i.conditionType&&1!=i.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),h(b,null,S(p(Vi).slice(1),((e,n)=>(r(),h(b,null,[e.children&&0!==e.children.length?(r(),h(b,{key:1},[C(" 后面需要进一步放开测试 "),0!==e.children.filter((i=>i.isShow)).length?(r(),x(p(j),{key:0,class:"classificationSelect3",to:!1,placeholder:e.name+(1!=i.countCondition||!e.digital&&0!==e.digital?"":" ("+(e.digital||0)+")"),value:re(n),clearable:"",options:ce(e),"label-field":"labelName","value-field":"itemValue","onUpdate:value":(i,n)=>function(i,e,n,t){if(i)ue(e,n.children.findIndex((e=>e.sid==i)),n);else{let i=n.children.findIndex((i=>-1!==Di.conditionSid.indexOf(i.sid)));-1!==i&&ue(n.children[i],0,n)}}(i,n,e)},null,8,["placeholder","value","options","onUpdate:value"])):C("v-if",!0)],64)):(r(),h("span",{key:e.sid,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>ue(e)},[y(v(e.name)+" "+v(e.digital)+" ",1),Te(e)?(r(),h("span",Ti," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,Li))],64)))),256))],4),"keyword"===i.conditionType&&1!=i.hideClearConditionChange?(r(),h("div",ji,[k("div",Ni,"已选择"+v(i.conditionSid.filter((i=>"all_data"!==i)).length)+"项",1),(r(!0),h(b,null,S(p(Vi).slice(1),((i,e)=>(r(),h(b,null,[i.children&&0!==i.children.length?(r(!0),h(b,{key:1},S(i.children,((e,n)=>(r(),h(b,null,[e.selected?(r(),h("div",{class:"selected-item",key:e.sid},[y(v(e.name)+" ",1),Te(e)?(r(),h("span",Pi," ("+v(e.digital||0)+") ",1)):C("v-if",!0),m(p(L),{component:p(M),onClick:n=>ue(e,0,i)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:i.sid},[y(v(i.name)+" ",1),Te(i)?(r(),h("span",Bi," ("+v(i.digital||0)+") ",1)):C("v-if",!0),m(p(L),{component:p(M),onClick:e=>ue(i)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[6]||(n[6]=i=>ue({sid:"all_data",name:"全部数据",digital:p(Qi).digital}))},[m(p(q),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),4===p(Ki)?(r(),h(b,{key:4},[p(de)||p(se)?(r(),h("div",zi,[p(de)?(r(),h("div",Ai,[C(" @click=\"handleItemClick({ sid: 'all_data', name: '全部数据', digital: allObj.digital })\" "),k("span",{class:u(["all-data",{selected:-1!==i.conditionSid.indexOf("all_data")}])},[y(v(p(ie))+" ",1),p(Qi).digital||0===p(Qi).digital?(r(),h(b,{key:0},[y(" ("+v(p(Qi).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",Mi,[k("span",{style:{"margin-right":"30px"},class:"upack-up-btn",onClick:n[7]||(n[7]=i=>_(ee)?ee.value=!p(ee):ee=!p(ee))},[y(v(p(ee)?"展开":"收起")+" ",1),m(p(L),{component:p(ee)?p(P):p(D),style:{color:"#2d7aff"}},null,8,["component"])]),1!=i.hideConditionChangeBtn?(r(),h("span",{key:0,onClick:pe,style:{"margin-right":"30px"}},[m(p(L),{component:p(N),size:"20"},null,8,["component"]),C(' {{ $t("1.1.5.2") }} '),y(" 切换 ")])):C("v-if",!0),1!=i.hideConditionChangeSetting?(r(),h("span",{key:1,onClick:fe},[m(p(L),{component:p(B),size:"20"},null,8,["component"]),C(' {{ $t("1.1.5.3") }} '),y(" 设置 ")])):C("v-if",!0)])])):C("v-if",!0)])):C("v-if",!0),k("div",{class:"classify-4-container",style:g({height:p(ee)?0:"auto"})},[m(J,I({ref_key:"professional",ref:Fi},e.$attrs,{tableDataType:p($).API,originConditionList:p(Gi),displayCategoryList:p(Hi),treeData:p(Vi),tableId:i.tableId,searchFieldList:i.searchFieldList,onHandleItemClick:ue,onChangeShowName:je}),null,16,["tableDataType","originConditionList","displayCategoryList","treeData","tableId","searchFieldList"])],4)],64)):C("v-if",!0),C(" searchFieldList: props "),C(" saveGetTableCondiTionList 新增,删除 "),C(" CondiTionListInit 修改? "),m(E,{ref:"search",onChangeSearch:_e,onSaveGetTableCondiTionList:Oe,onCondiTionListInit:xe,onSetClassifyModal:me,searchFieldList:i.searchFieldList,conditionList:p(Ui),displayCategoryList:p(Hi),settingId:p(Xi),searchDefName:p(Yi),tableId:i.tableId,classifyModal:p(Zi),filterApiConfig:i.filterApiConfig},{searchCondition:O((({...i})=>[w(e.$slots,"searchCondition",{attrs:i})])),_:3},8,["searchFieldList","conditionList","displayCategoryList","settingId","searchDefName","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{Di as default};
|