cnhis-design-vue 3.1.40-beta.1 → 3.1.40-beta.10
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 +12 -48
- package/es/components/form-config/index.d.ts +66 -148
- package/es/components/form-config/src/FormConfig.vue.d.ts +66 -148
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +33 -74
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +33 -74
- package/es/components/form-render/index.d.ts +33 -74
- package/es/components/form-render/src/FormRender.vue.d.ts +33 -74
- package/es/components/form-render/src/FormRender.vue.js +36 -20
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +33 -74
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -0
- package/es/components/form-render/src/hooks/useAnchor.d.ts +6 -3
- package/es/components/form-render/src/hooks/useAnchor.js +26 -26
- package/es/components/form-render/src/hooks/useAutoHidden.d.ts +4 -0
- package/es/components/form-render/src/hooks/useAutoHidden.js +43 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +7 -10
- package/es/components/form-render/src/hooks/useBusinessBinding.js +38 -36
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +2 -6
- package/es/components/form-render/src/hooks/useFormContext.d.ts +1 -2
- package/es/components/form-render/src/hooks/useFormContext.js +2 -2
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
- package/es/components/form-render/test/basic-config.spec.d.ts +1 -0
- package/es/components/form-render/test/renderer.spec.d.ts +1 -0
- package/es/components/iho-table/index.d.ts +121 -121
- package/es/components/iho-table/src/IhoTable.vue.d.ts +121 -121
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +59 -59
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +6 -0
- package/es/components/info-header/index.d.ts +18 -3
- package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/InfoHeader.vue.d.ts +18 -3
- package/es/components/info-header/src/InfoHeader.vue.js +33 -19
- package/es/components/keyboard/index.d.ts +20 -2
- package/es/components/keyboard/src/Keyboard.vue.d.ts +20 -2
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +19 -2
- package/es/components/keyboard/src/components/InputNumber.vue.js +15 -5
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +20 -2
- package/es/components/keyboard/src/components/NumberPanel.vue.js +14 -10
- package/es/components/recommend-search/index.d.ts +14 -14
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +14 -14
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -4
- package/es/components/scale-view/index.d.ts +4 -2
- package/es/components/scale-view/src/ScaleView.vue.d.ts +7 -2
- package/es/components/scale-view/src/ScaleView.vue.js +2 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/shortcut-provider/index.d.ts +15 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +15 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +7 -2
- package/es/components/shortcut-setter/index.d.ts +33 -74
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +33 -74
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-filter/index.d.ts +8933 -0
- package/es/components/table-filter/index.js +21 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3841 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +2272 -0
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +3198 -0
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1315 -0
- package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +71 -0
- package/es/components/table-filter/src/classification/search-class-name.vue.js +195 -0
- package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +1119 -0
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +594 -0
- package/es/components/table-filter/src/components/age-com/index.vue.d.ts +119 -0
- package/es/components/table-filter/src/components/age-com/index.vue.js +185 -0
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +199 -0
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +86 -0
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +2 -0
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +30 -0
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +90 -0
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +253 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +112 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +114 -0
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +4 -0
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +14 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +20 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +87 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +59 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +147 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +278 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +304 -0
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +113 -0
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +153 -0
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +266 -0
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +310 -0
- package/es/components/table-filter/src/components/range-age/index.vue.d.ts +248 -0
- package/es/components/table-filter/src/components/range-age/index.vue.js +137 -0
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +104 -0
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +64 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +34 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +45 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -0
- package/es/components/table-filter/src/components/render-widget/components/index.js +2 -0
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +25 -0
- package/es/components/table-filter/src/components/render-widget/enums.js +27 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +70 -0
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +32 -0
- package/es/components/table-filter/src/components/render-widget/index.vue.js +107 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +199 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +152 -0
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +789 -0
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1520 -0
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +18 -0
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +171 -0
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +1217 -0
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +199 -0
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.d.ts +1624 -0
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +241 -0
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.d.ts +292 -0
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +526 -0
- package/es/components/table-filter/src/const/dataOptions.d.ts +36 -0
- package/es/components/table-filter/src/const/dataOptions.js +107 -0
- package/es/components/table-filter/src/const/index.d.ts +5 -0
- package/es/components/table-filter/src/const/index.js +5 -0
- package/es/components/table-filter/src/directive/flexibleResize.d.ts +28 -0
- package/es/components/table-filter/src/directive/flexibleResize.js +157 -0
- package/es/components/table-filter/src/directive/preventReClick.d.ts +4 -0
- package/es/components/table-filter/src/directive/preventReClick.js +14 -0
- package/es/components/table-filter/src/directive/resize.d.ts +4 -0
- package/es/components/table-filter/src/directive/resize.js +12 -0
- package/es/components/table-filter/src/hooks/export.d.ts +1 -0
- package/es/components/table-filter/src/hooks/export.js +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +28 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +64 -0
- package/es/components/table-filter/src/hooks/useMixins.d.ts +60 -0
- package/es/components/table-filter/src/hooks/useMixins.js +532 -0
- package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +15 -0
- package/es/components/table-filter/src/hooks/useRenderWidget.js +94 -0
- package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +8 -0
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +131 -0
- package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +12 -0
- package/es/components/table-filter/src/hooks/useWordBookutils.js +91 -0
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +1942 -0
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +2038 -0
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +14 -0
- package/es/components/table-filter/src/tool/generateDefOptions.js +65 -0
- package/es/components/table-filter/src/tool/getWidgetType.d.ts +1 -0
- package/es/components/table-filter/src/tool/getWidgetType.js +27 -0
- package/es/components/table-filter/src/tool/options.d.ts +18 -0
- package/es/components/table-filter/src/tool/options.js +200 -0
- package/es/components/table-filter/src/tool/resizeSensor.d.ts +16 -0
- package/es/components/table-filter/src/tool/resizeSensor.js +123 -0
- package/es/components/table-filter/src/tool/time-domain.d.ts +39 -0
- package/es/components/table-filter/src/tool/time-domain.js +100 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +92 -0
- package/es/components/table-filter/src/tool/transformData.js +169 -0
- package/es/components/table-filter/src/tool/utils.d.ts +4 -0
- package/es/components/table-filter/src/tool/utils.js +29 -0
- package/es/components/table-filter/src/types/enums.d.ts +65 -0
- package/es/components/table-filter/src/types/enums.js +67 -0
- package/es/components/table-filter/src/types/index.d.ts +483 -0
- package/es/components/table-filter/src/types/index.js +1 -0
- package/es/components/table-filter/src/types/tool.d.ts +7 -0
- package/es/components/table-filter/src/types/tool.js +1 -0
- package/es/components/table-filter/style/index.css +1 -0
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/utils/utilExpand.js +66 -0
- package/package.json +3 -3
|
@@ -0,0 +1,1315 @@
|
|
|
1
|
+
import { defineComponent, ref, useAttrs, provide, computed, onMounted, nextTick, onActivated, onBeforeMount, watch, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, withDirectives, createVNode, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, Fragment, renderList, createBlock, withCtx, isRef, mergeProps, renderSlot } from 'vue';
|
|
2
|
+
import { NIcon, NTooltip, NSelect } from 'naive-ui';
|
|
3
|
+
import { Repeat, SettingsOutline, ChevronDown, ChevronForward, Checkmark, Close, ChevronUp } from '@vicons/ionicons5';
|
|
4
|
+
import searchProfessionalModel from './search-professional-model.vue.js';
|
|
5
|
+
import setClassification from '../components/search-modal/set-classification.vue.js';
|
|
6
|
+
import vFlexibleResize from '../directive/flexibleResize.js';
|
|
7
|
+
import { root_isShowResetButton } from '../const/index.js';
|
|
8
|
+
import useMixins from '../hooks/useMixins.js';
|
|
9
|
+
import script from '../../../../shared/components/SvgIcon/SvgIcon.vue.js';
|
|
10
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
11
|
+
|
|
12
|
+
const _hoisted_1 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "header"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_2 = { class: "tree" };
|
|
17
|
+
const _hoisted_3 = ["onClick"];
|
|
18
|
+
const _hoisted_4 = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "digital-span"
|
|
21
|
+
};
|
|
22
|
+
const _hoisted_5 = ["onClick"];
|
|
23
|
+
const _hoisted_6 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "digital-span"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_7 = ["onClick"];
|
|
28
|
+
const _hoisted_8 = { class: "child-item-name" };
|
|
29
|
+
const _hoisted_9 = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "digital-span"
|
|
32
|
+
};
|
|
33
|
+
const _hoisted_10 = {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "tree-type-footer"
|
|
36
|
+
};
|
|
37
|
+
const _hoisted_11 = { class: "selected-num" };
|
|
38
|
+
const _hoisted_12 = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "tile-type classify-1"
|
|
41
|
+
};
|
|
42
|
+
const _hoisted_13 = {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "header"
|
|
45
|
+
};
|
|
46
|
+
const _hoisted_14 = { class: "right-setting" };
|
|
47
|
+
const _hoisted_15 = ["onClick"];
|
|
48
|
+
const _hoisted_16 = {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: "digital-span"
|
|
51
|
+
};
|
|
52
|
+
const _hoisted_17 = { class: "parent ellips" };
|
|
53
|
+
const _hoisted_18 = { class: "children" };
|
|
54
|
+
const _hoisted_19 = ["onClick"];
|
|
55
|
+
const _hoisted_20 = {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "digital-span"
|
|
58
|
+
};
|
|
59
|
+
const _hoisted_21 = {
|
|
60
|
+
key: 1,
|
|
61
|
+
class: "selected-list"
|
|
62
|
+
};
|
|
63
|
+
const _hoisted_22 = { class: "selected-num" };
|
|
64
|
+
const _hoisted_23 = {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "digital-span"
|
|
67
|
+
};
|
|
68
|
+
const _hoisted_24 = {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "digital-span"
|
|
71
|
+
};
|
|
72
|
+
const _hoisted_25 = {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: "main-wrapper"
|
|
75
|
+
};
|
|
76
|
+
const _hoisted_26 = ["onClick"];
|
|
77
|
+
const _hoisted_27 = {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: "digital-span"
|
|
80
|
+
};
|
|
81
|
+
const _hoisted_28 = { class: "tree-footer" };
|
|
82
|
+
const _hoisted_29 = ["onClick"];
|
|
83
|
+
const _hoisted_30 = ["onClick"];
|
|
84
|
+
const _hoisted_31 = {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "digital-span"
|
|
87
|
+
};
|
|
88
|
+
const _hoisted_32 = {
|
|
89
|
+
key: 0,
|
|
90
|
+
class: "select-type-footer"
|
|
91
|
+
};
|
|
92
|
+
const _hoisted_33 = { class: "selected-num" };
|
|
93
|
+
const _hoisted_34 = {
|
|
94
|
+
key: 0,
|
|
95
|
+
class: "group-type classify-3"
|
|
96
|
+
};
|
|
97
|
+
const _hoisted_35 = {
|
|
98
|
+
key: 0,
|
|
99
|
+
class: "header"
|
|
100
|
+
};
|
|
101
|
+
const _hoisted_36 = { class: "right-setting" };
|
|
102
|
+
const _hoisted_37 = ["onClick"];
|
|
103
|
+
const _hoisted_38 = {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "digital-span"
|
|
106
|
+
};
|
|
107
|
+
const _hoisted_39 = {
|
|
108
|
+
key: 1,
|
|
109
|
+
class: "selected-list"
|
|
110
|
+
};
|
|
111
|
+
const _hoisted_40 = { class: "selected-num" };
|
|
112
|
+
const _hoisted_41 = {
|
|
113
|
+
key: 0,
|
|
114
|
+
class: "digital-span"
|
|
115
|
+
};
|
|
116
|
+
const _hoisted_42 = {
|
|
117
|
+
key: 0,
|
|
118
|
+
class: "digital-span"
|
|
119
|
+
};
|
|
120
|
+
const _hoisted_43 = {
|
|
121
|
+
key: 0,
|
|
122
|
+
class: "group-type classify-3 classify-4"
|
|
123
|
+
};
|
|
124
|
+
const _hoisted_44 = {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: "header"
|
|
127
|
+
};
|
|
128
|
+
const _hoisted_45 = { class: "right-setting" };
|
|
129
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
130
|
+
__name: "Classification-com",
|
|
131
|
+
props: {
|
|
132
|
+
tableId: { type: String },
|
|
133
|
+
conditionSid: {
|
|
134
|
+
type: Array,
|
|
135
|
+
default: () => []
|
|
136
|
+
},
|
|
137
|
+
localObj: {
|
|
138
|
+
type: Object,
|
|
139
|
+
default: () => ({})
|
|
140
|
+
},
|
|
141
|
+
curClassificationIndex: { type: Number },
|
|
142
|
+
curClassificationWidth: { type: Number },
|
|
143
|
+
curConditionList: { type: Array },
|
|
144
|
+
tableName: { type: String },
|
|
145
|
+
showRelatedTreeBtn: { type: Boolean },
|
|
146
|
+
conditionType: { type: String },
|
|
147
|
+
hideConditionChangeBtn: { type: Number },
|
|
148
|
+
hideConditionChangeSetting: { type: Number },
|
|
149
|
+
hideClearConditionChange: { type: Number },
|
|
150
|
+
countCondition: { type: Number },
|
|
151
|
+
countTabCondition: {
|
|
152
|
+
type: Number,
|
|
153
|
+
default: 0
|
|
154
|
+
},
|
|
155
|
+
keyword: { type: String },
|
|
156
|
+
isShowResetButton: { type: Boolean, default: true },
|
|
157
|
+
fieldKeys: {
|
|
158
|
+
type: Array,
|
|
159
|
+
default: () => []
|
|
160
|
+
},
|
|
161
|
+
tabConditionId: { type: String },
|
|
162
|
+
conditionMap: {
|
|
163
|
+
type: Object,
|
|
164
|
+
default: () => {
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
filterApiConfig: {
|
|
168
|
+
type: Object,
|
|
169
|
+
default: () => ({})
|
|
170
|
+
},
|
|
171
|
+
searchFieldList: {
|
|
172
|
+
type: Array,
|
|
173
|
+
default: () => []
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
emits: [
|
|
177
|
+
"changeSearch",
|
|
178
|
+
"setCurTreeData",
|
|
179
|
+
"setClassificationIndex",
|
|
180
|
+
"setTabConditionNumObj",
|
|
181
|
+
"getClassification",
|
|
182
|
+
"reloadList",
|
|
183
|
+
"getQuickSearchListObj",
|
|
184
|
+
"setConditionMap"
|
|
185
|
+
],
|
|
186
|
+
setup(__props, { emit }) {
|
|
187
|
+
const props = __props;
|
|
188
|
+
const { handleGetConfigApi } = useMixins();
|
|
189
|
+
const selectType = ref(null);
|
|
190
|
+
const professional = ref(null);
|
|
191
|
+
let classificationWidth = ref(150);
|
|
192
|
+
let selectShow = ref(false);
|
|
193
|
+
let treeData = ref([]);
|
|
194
|
+
let conditionLists = ref([]);
|
|
195
|
+
let originConditionList = ref([]);
|
|
196
|
+
ref({});
|
|
197
|
+
let classificationIndex = ref(2);
|
|
198
|
+
let curTableId = ref("");
|
|
199
|
+
ref(false);
|
|
200
|
+
let allObj = ref({
|
|
201
|
+
name: "\u5168\u90E8\u6570\u636E",
|
|
202
|
+
sid: "all_data"
|
|
203
|
+
});
|
|
204
|
+
let searchConditionList = ref([]);
|
|
205
|
+
let displayCategoryLists = ref([]);
|
|
206
|
+
let settingId = ref("");
|
|
207
|
+
let searchDefName = ref("");
|
|
208
|
+
let classifyModal = ref(false);
|
|
209
|
+
let showTitleName = ref("\u5168\u90E8\u6570\u636E");
|
|
210
|
+
let isPackUp = ref(false);
|
|
211
|
+
const attrs = useAttrs();
|
|
212
|
+
provide(root_isShowResetButton, ref(props.isShowResetButton));
|
|
213
|
+
let dynamicStyle = computed(() => {
|
|
214
|
+
if (classificationIndex.value === 0) {
|
|
215
|
+
return {
|
|
216
|
+
marginRight: "8px"
|
|
217
|
+
};
|
|
218
|
+
} else if (classificationIndex.value === 2) {
|
|
219
|
+
return {
|
|
220
|
+
display: "inline-block"
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
return {};
|
|
224
|
+
});
|
|
225
|
+
let titleName = computed(() => {
|
|
226
|
+
let condition = conditionLists.value.filter((item) => props.conditionSid.indexOf(item.sid) !== -1);
|
|
227
|
+
if (props.conditionSid.indexOf("all_data") !== -1) {
|
|
228
|
+
return "\u5168\u90E8\u6570\u636E";
|
|
229
|
+
} else {
|
|
230
|
+
let titleArr = [];
|
|
231
|
+
condition.map((item) => {
|
|
232
|
+
titleArr.push(item.name);
|
|
233
|
+
});
|
|
234
|
+
return titleArr.join(",");
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
let tooltipTilte = computed(() => {
|
|
238
|
+
return function(item) {
|
|
239
|
+
let digitalNum = item.digital === 0 ? `(0)` : item.digital ? `(${item.digital})` : "";
|
|
240
|
+
const { name, isPublic } = item;
|
|
241
|
+
return fmtChildName(name, isPublic) + digitalNum;
|
|
242
|
+
};
|
|
243
|
+
});
|
|
244
|
+
computed(() => {
|
|
245
|
+
if (!treeData.value || !treeData.value.length)
|
|
246
|
+
return;
|
|
247
|
+
let item = treeData.value[0];
|
|
248
|
+
if (item.sid !== "all_data")
|
|
249
|
+
return;
|
|
250
|
+
if (!("digital" in item))
|
|
251
|
+
return;
|
|
252
|
+
return item.digital || 0;
|
|
253
|
+
});
|
|
254
|
+
let getCondiTionDigital = computed(() => {
|
|
255
|
+
return props.countCondition === 1 || props.countTabCondition === 1;
|
|
256
|
+
});
|
|
257
|
+
let showIconBtn = computed(() => {
|
|
258
|
+
return props.hideConditionChangeBtn != 1 || props.hideConditionChangeSetting != 1;
|
|
259
|
+
});
|
|
260
|
+
let hasConditionList = computed(() => {
|
|
261
|
+
return originConditionList.value.filter((item) => item.isShow).length > 0;
|
|
262
|
+
});
|
|
263
|
+
onMounted(() => {
|
|
264
|
+
document.addEventListener("click", (e) => {
|
|
265
|
+
nextTick(() => {
|
|
266
|
+
let path = e.composedPath && e.composedPath();
|
|
267
|
+
if (selectType && path.includes(selectType.value)) {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
toggleSelect(false);
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
function filterTreeData(item) {
|
|
275
|
+
let filterList = [{
|
|
276
|
+
labelName: item.name + (props.countCondition == 1 && (item.digital || item.digital === 0) ? " (" + (item.digital || 0) + ")" : ""),
|
|
277
|
+
itemValue: 0
|
|
278
|
+
}];
|
|
279
|
+
if (item.children) {
|
|
280
|
+
const result = item.children.filter((i) => i.isShow).map((child) => {
|
|
281
|
+
return {
|
|
282
|
+
...child,
|
|
283
|
+
labelName: child.name + (props.countCondition == 1 && visibleDigital(child) ? " (" + (child.digital || 0) + ")" : ""),
|
|
284
|
+
itemValue: child.sid
|
|
285
|
+
};
|
|
286
|
+
});
|
|
287
|
+
filterList.push(...result);
|
|
288
|
+
}
|
|
289
|
+
return filterList;
|
|
290
|
+
}
|
|
291
|
+
function groupSelect(index) {
|
|
292
|
+
let treeTemp = treeData.value.slice(1);
|
|
293
|
+
if (treeTemp[index].children) {
|
|
294
|
+
const cIndex = treeTemp[index].children.findIndex((item) => item.selected);
|
|
295
|
+
if (cIndex !== -1) {
|
|
296
|
+
return treeTemp[index].children[cIndex].sid;
|
|
297
|
+
} else {
|
|
298
|
+
return 0;
|
|
299
|
+
}
|
|
300
|
+
} else {
|
|
301
|
+
return 0;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
function handleChange(value, option, pItem, pIndex) {
|
|
305
|
+
if (value) {
|
|
306
|
+
const cIndex = pItem.children.findIndex((item) => item.sid == value);
|
|
307
|
+
handleItemClick(option, cIndex, pItem);
|
|
308
|
+
} else {
|
|
309
|
+
let cIndex = pItem.children.findIndex((item) => props.conditionSid.indexOf(item.sid) !== -1);
|
|
310
|
+
if (cIndex !== -1) {
|
|
311
|
+
handleItemClick(pItem.children[cIndex], cIndex, pItem);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
function handleFold(item) {
|
|
316
|
+
if (item.open) {
|
|
317
|
+
item.open = false;
|
|
318
|
+
} else {
|
|
319
|
+
item.open = true;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function handleItemClick(child, i, p) {
|
|
323
|
+
showTitleName.value = child.name;
|
|
324
|
+
if (!child.digital && props.countCondition === 1) {
|
|
325
|
+
return false;
|
|
326
|
+
}
|
|
327
|
+
let conditionSidTemp = getConditionSid(child.sid, props.conditionSid, p);
|
|
328
|
+
let selectList = initTree(conditionSidTemp);
|
|
329
|
+
toggleSelect(false);
|
|
330
|
+
emit("changeSearch", child.sid === "all_data" ? "all" : "", child, p, selectList);
|
|
331
|
+
}
|
|
332
|
+
function initTree(conditionSidTemp) {
|
|
333
|
+
let selectList = [];
|
|
334
|
+
treeData.value.forEach((item) => {
|
|
335
|
+
if (item.children) {
|
|
336
|
+
item.children.forEach((child) => {
|
|
337
|
+
if (conditionSidTemp.indexOf(child.sid) !== -1) {
|
|
338
|
+
child.selected = true;
|
|
339
|
+
selectList.push(child);
|
|
340
|
+
} else {
|
|
341
|
+
child.selected = false;
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
} else {
|
|
345
|
+
if (conditionSidTemp.indexOf(item.sid) !== -1) {
|
|
346
|
+
item.selected = true;
|
|
347
|
+
selectList.push(item);
|
|
348
|
+
} else {
|
|
349
|
+
item.selected = false;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
return selectList;
|
|
354
|
+
}
|
|
355
|
+
function getConditionSid(sid, conditionSidVal, p) {
|
|
356
|
+
let conditionSidTemp = JSON.parse(JSON.stringify(conditionSidVal));
|
|
357
|
+
if (sid === "all_data") {
|
|
358
|
+
conditionSidTemp = ["all_data"];
|
|
359
|
+
} else {
|
|
360
|
+
if (props.conditionType === "keyword") {
|
|
361
|
+
let aIndex = conditionSidTemp.findIndex((subItem) => subItem === "all_data");
|
|
362
|
+
if (aIndex !== -1)
|
|
363
|
+
conditionSidTemp.splice(aIndex, 1);
|
|
364
|
+
let cIndex = conditionSidTemp.findIndex((subItem) => subItem === sid);
|
|
365
|
+
if (cIndex !== -1) {
|
|
366
|
+
conditionSidTemp.splice(cIndex, 1);
|
|
367
|
+
if (conditionSidTemp.length === 0)
|
|
368
|
+
conditionSidTemp = ["all_data"];
|
|
369
|
+
} else {
|
|
370
|
+
if (p.children && p.children.length > 0) {
|
|
371
|
+
cIndex = conditionSidTemp.findIndex((subItem) => p.children.findIndex((pItem) => pItem.sid === subItem) !== -1);
|
|
372
|
+
}
|
|
373
|
+
if (cIndex !== -1) {
|
|
374
|
+
conditionSidTemp.splice(cIndex, 1);
|
|
375
|
+
}
|
|
376
|
+
conditionSidTemp.push(sid);
|
|
377
|
+
}
|
|
378
|
+
} else {
|
|
379
|
+
if (conditionSidTemp.indexOf(sid) !== -1) {
|
|
380
|
+
conditionSidTemp = ["all_data"];
|
|
381
|
+
} else {
|
|
382
|
+
conditionSidTemp = [sid];
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return conditionSidTemp;
|
|
387
|
+
}
|
|
388
|
+
function handleModeChange() {
|
|
389
|
+
emit("setCurTreeData", treeData.value);
|
|
390
|
+
let res = "";
|
|
391
|
+
if (classificationIndex.value === 4) {
|
|
392
|
+
res = 0;
|
|
393
|
+
} else {
|
|
394
|
+
let index = classificationIndex.value;
|
|
395
|
+
res = ++index;
|
|
396
|
+
}
|
|
397
|
+
classificationWidth.value = 150;
|
|
398
|
+
saveListPersonaSetting(res);
|
|
399
|
+
}
|
|
400
|
+
async function saveListPersonaSetting(classificationIndexVal, classificationWidthVal) {
|
|
401
|
+
let params = {
|
|
402
|
+
tableId: props.tableId,
|
|
403
|
+
setting: JSON.stringify({
|
|
404
|
+
classificationIndex: classificationIndexVal,
|
|
405
|
+
classificationWidth: classificationWidthVal
|
|
406
|
+
})
|
|
407
|
+
};
|
|
408
|
+
try {
|
|
409
|
+
let res = await handleGetConfigApi(params, "requestSaveListPersonaSetting", {}, props.filterApiConfig);
|
|
410
|
+
res && emit("setClassificationIndex", classificationIndexVal);
|
|
411
|
+
} catch (error) {
|
|
412
|
+
console.log(error);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
function handleSettingShow() {
|
|
416
|
+
classifyModal.value = true;
|
|
417
|
+
toggleSelect(false);
|
|
418
|
+
}
|
|
419
|
+
function setClassifyModal(val) {
|
|
420
|
+
classifyModal.value = val;
|
|
421
|
+
}
|
|
422
|
+
function toggleSelect(flag) {
|
|
423
|
+
if (flag !== void 0) {
|
|
424
|
+
selectShow.value = flag;
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
selectShow.value = !selectShow.value;
|
|
428
|
+
}
|
|
429
|
+
function getTableCondiTionList(options) {
|
|
430
|
+
if (options !== void 0 && options.type === "delete" && props.conditionSid.indexOf(options.item.sid) !== -1) {
|
|
431
|
+
emit("changeSearch", "all", {
|
|
432
|
+
name: "\u5168\u90E8\u6570\u636E",
|
|
433
|
+
sid: "all_data"
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
if (!props.tableId)
|
|
437
|
+
return;
|
|
438
|
+
if (Object.keys(props.conditionMap).length > 0) {
|
|
439
|
+
treeData.value = [];
|
|
440
|
+
let { displayCategoryList = [], conditionList = [] } = props.conditionMap;
|
|
441
|
+
originConditionList.value = JSON.parse(JSON.stringify(conditionList));
|
|
442
|
+
displayCategoryLists.value = displayCategoryList || [];
|
|
443
|
+
conditionLists.value = JSON.parse(JSON.stringify(conditionList));
|
|
444
|
+
const all = {
|
|
445
|
+
name: "\u5168\u90E8\u6570\u636E",
|
|
446
|
+
sid: "all_data"
|
|
447
|
+
};
|
|
448
|
+
conditionLists.value.unshift(all);
|
|
449
|
+
let treeDataList = [];
|
|
450
|
+
if (displayCategoryList.length === 0) {
|
|
451
|
+
displayCategoryList = ["\u672A\u5206\u7C7B"];
|
|
452
|
+
}
|
|
453
|
+
displayCategoryList.forEach((item) => {
|
|
454
|
+
let map = { name: item, children: [] };
|
|
455
|
+
conditionList.forEach((condition) => {
|
|
456
|
+
if (condition.displayCategory === item || !condition.displayCategory && item === "\u672A\u5206\u7C7B" && condition.sid !== "all_data") {
|
|
457
|
+
if (props.conditionSid.indexOf(condition.sid) !== -1) {
|
|
458
|
+
condition.selected = true;
|
|
459
|
+
map.open = true;
|
|
460
|
+
}
|
|
461
|
+
if (condition.isShow) {
|
|
462
|
+
map.children.push(condition);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
if (map.children.length > 0) {
|
|
467
|
+
treeDataList.push(map);
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
treeDataList.unshift({
|
|
471
|
+
name: "\u5168\u90E8\u6570\u636E",
|
|
472
|
+
sid: "all_data"
|
|
473
|
+
});
|
|
474
|
+
treeData.value = treeDataList;
|
|
475
|
+
if (classificationIndex.value === 0) {
|
|
476
|
+
setOpenStatus(true);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
function setOpenStatus(value) {
|
|
481
|
+
treeData.value.forEach((item) => {
|
|
482
|
+
if (item.children && item.children.length) {
|
|
483
|
+
item.open = value;
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
async function getTableCondiTionDigital(setConditionId = false, keywordVal = "", fieldKeysVal = [], tabConditionIdVal = "", countTabConditionVal) {
|
|
488
|
+
try {
|
|
489
|
+
if (!props.countCondition && !props.countTabCondition) {
|
|
490
|
+
allObj.value.digital = "";
|
|
491
|
+
return Promise.resolve();
|
|
492
|
+
}
|
|
493
|
+
if (!props.tableId)
|
|
494
|
+
return Promise.resolve();
|
|
495
|
+
let params = { tableId: props.tableId, countCondition: props.countCondition };
|
|
496
|
+
if (keywordVal)
|
|
497
|
+
params.keyword = keywordVal;
|
|
498
|
+
if (tabConditionIdVal)
|
|
499
|
+
params.tabConditionId = tabConditionIdVal;
|
|
500
|
+
if (countTabConditionVal)
|
|
501
|
+
params.countTabCondition = countTabConditionVal;
|
|
502
|
+
if (fieldKeysVal.length > 0)
|
|
503
|
+
params.fieldKeys = JSON.stringify(fieldKeysVal);
|
|
504
|
+
Object.assign(params, handleParams());
|
|
505
|
+
let res = await handleGetConfigApi(params, "requestTableCondiTionDigital", {}, props.filterApiConfig);
|
|
506
|
+
handleConditionDiaital(res);
|
|
507
|
+
return Promise.resolve(res);
|
|
508
|
+
} catch (error) {
|
|
509
|
+
console.log(error, "getTableCondiTionDigital");
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
function handleConditionDiaital(map) {
|
|
513
|
+
if (props.countTabCondition == 1)
|
|
514
|
+
emit("setTabConditionNumObj", map);
|
|
515
|
+
if (!map || Object.keys(map).length === 0)
|
|
516
|
+
return;
|
|
517
|
+
let resList = [];
|
|
518
|
+
handlePlatTree(treeData.value, resList);
|
|
519
|
+
for (let key in map) {
|
|
520
|
+
let useKey = key === "ALL" ? "all_data" : key;
|
|
521
|
+
let matchItem = resList.find((v) => v.sid == useKey);
|
|
522
|
+
if (matchItem) {
|
|
523
|
+
if (matchItem.sid == "all_data" && props.countCondition == 1) {
|
|
524
|
+
allObj.value.digital = map[key] || 0;
|
|
525
|
+
}
|
|
526
|
+
matchItem.digital = map[key] || 0;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
let conditionSidVal = props.conditionSid.indexOf("all_data") !== -1 ? ["ALL"] : props.conditionSid;
|
|
530
|
+
let changeNum = 0;
|
|
531
|
+
if (props.conditionType === "keyword") {
|
|
532
|
+
let num = 0;
|
|
533
|
+
conditionSidVal.map((item) => {
|
|
534
|
+
return num += parseInt(map[item]);
|
|
535
|
+
});
|
|
536
|
+
changeNum = num;
|
|
537
|
+
} else {
|
|
538
|
+
changeNum = map[conditionSidVal[0]];
|
|
539
|
+
}
|
|
540
|
+
return changeNum;
|
|
541
|
+
}
|
|
542
|
+
function handlePlatTree(list, res) {
|
|
543
|
+
if (list.length) {
|
|
544
|
+
list.forEach((item) => {
|
|
545
|
+
var _a;
|
|
546
|
+
if ((_a = item.children) == null ? void 0 : _a.length) {
|
|
547
|
+
item.children.forEach((v) => {
|
|
548
|
+
res.push(v);
|
|
549
|
+
});
|
|
550
|
+
} else {
|
|
551
|
+
res.push(item);
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
async function tableCondiTionPromise(options) {
|
|
557
|
+
try {
|
|
558
|
+
await getTableCondiTionList(options);
|
|
559
|
+
if (props.countCondition === 1 || props.countTabCondition === 1)
|
|
560
|
+
await getTableCondiTionDigital(false, props.keyword, props.fieldKeys, props.tabConditionId, props.countTabCondition);
|
|
561
|
+
} catch (err) {
|
|
562
|
+
console.log(err);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
function handleParams() {
|
|
566
|
+
var _a;
|
|
567
|
+
if (!props.localObj && Object.keys(props.localObj).length === 0)
|
|
568
|
+
return {};
|
|
569
|
+
let obj = {};
|
|
570
|
+
if (Array.isArray(props.localObj.params)) {
|
|
571
|
+
props.localObj.params.map((item) => {
|
|
572
|
+
obj[item.p_name] = item.p_value;
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
if (Object.keys(((_a = props.localObj) == null ? void 0 : _a.extendParams) || {}).length) {
|
|
576
|
+
Object.assign(obj, props.localObj.extendParams);
|
|
577
|
+
obj.extraParams = JSON.stringify(props.localObj.extendParams);
|
|
578
|
+
}
|
|
579
|
+
return obj;
|
|
580
|
+
}
|
|
581
|
+
function changeWidth({ distance }) {
|
|
582
|
+
const w = classificationWidth.value + distance;
|
|
583
|
+
classificationWidth.value = Math.min(Math.max(w, 50), 650);
|
|
584
|
+
}
|
|
585
|
+
function saveWidth() {
|
|
586
|
+
const i = classificationIndex.value;
|
|
587
|
+
const w = classificationWidth.value;
|
|
588
|
+
saveListPersonaSetting(i, w);
|
|
589
|
+
}
|
|
590
|
+
async function updateTableCondiTion() {
|
|
591
|
+
await getTableCondiTionListNew(props.tableId);
|
|
592
|
+
getTableCondiTionListRequest();
|
|
593
|
+
}
|
|
594
|
+
async function saveGetTableCondiTionList(options) {
|
|
595
|
+
await getTableCondiTionListNew(props.tableId);
|
|
596
|
+
handleGetTableCondiTionList();
|
|
597
|
+
emit("getClassification", options);
|
|
598
|
+
}
|
|
599
|
+
function changeSearch(key, item) {
|
|
600
|
+
if (key == "all") {
|
|
601
|
+
searchDefName.value = "\u5168\u90E8\u6570\u636E";
|
|
602
|
+
} else {
|
|
603
|
+
searchDefName.value = item.name;
|
|
604
|
+
}
|
|
605
|
+
emit("changeSearch", key, item);
|
|
606
|
+
}
|
|
607
|
+
function getTableCondiTionListRequest(first) {
|
|
608
|
+
handleGetTableCondiTionList(first).then((checked) => {
|
|
609
|
+
reloadList(checked);
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
function reloadList(item) {
|
|
613
|
+
emit("reloadList", item);
|
|
614
|
+
}
|
|
615
|
+
function handleGetTableCondiTionList(first, conditionMapVal = {}) {
|
|
616
|
+
let tableIdVal = props.tableId;
|
|
617
|
+
if (!tableIdVal)
|
|
618
|
+
return new Promise((resolve) => resolve(false));
|
|
619
|
+
let conditionMapTemp = Object.keys(conditionMapVal).length > 0 ? conditionMapVal : props.conditionMap;
|
|
620
|
+
return new Promise((resolve, reject) => {
|
|
621
|
+
var _a, _b, _c, _d, _e, _f;
|
|
622
|
+
if (Object.keys(conditionMapTemp).length > 0) {
|
|
623
|
+
searchConditionList.value = conditionMapTemp.conditionList || [];
|
|
624
|
+
displayCategoryLists.value = conditionMapTemp.displayCategoryList || [];
|
|
625
|
+
let obj = {
|
|
626
|
+
conditionList: searchConditionList.value,
|
|
627
|
+
displayCategoryList: displayCategoryLists.value
|
|
628
|
+
};
|
|
629
|
+
emit("getQuickSearchListObj", obj);
|
|
630
|
+
settingId.value = conditionMapTemp.settingId;
|
|
631
|
+
const checked = searchConditionList.value.find((item) => item.isDefault) || {
|
|
632
|
+
name: "\u5168\u90E8\u6570\u636E",
|
|
633
|
+
sid: "all_data"
|
|
634
|
+
};
|
|
635
|
+
searchDefName.value = checked.name;
|
|
636
|
+
if (((_b = (_a = attrs.tableOptions) == null ? void 0 : _a.filterCondition) == null ? void 0 : _b.displayCategory) && first) {
|
|
637
|
+
resolve({
|
|
638
|
+
name: (_d = (_c = attrs.tableOptions) == null ? void 0 : _c.filterCondition) == null ? void 0 : _d.name,
|
|
639
|
+
sid: (_f = (_e = attrs.tableOptions) == null ? void 0 : _e.filterCondition) == null ? void 0 : _f.displayCategory
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
resolve(checked);
|
|
643
|
+
} else {
|
|
644
|
+
resolve({});
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
async function getTableCondiTionListNew(tableIdVal) {
|
|
649
|
+
try {
|
|
650
|
+
if (!tableIdVal)
|
|
651
|
+
return new Promise((resolve) => resolve(false));
|
|
652
|
+
let params = { tableId: tableIdVal };
|
|
653
|
+
let res = await handleGetConfigApi(params, "requestTableCondiTionList", {}, props.filterApiConfig);
|
|
654
|
+
emit("setConditionMap", res);
|
|
655
|
+
return Promise.resolve(res);
|
|
656
|
+
} catch (error) {
|
|
657
|
+
return Promise.resolve(false);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
function visibleDigital(item) {
|
|
661
|
+
if (props.countCondition !== 1)
|
|
662
|
+
return false;
|
|
663
|
+
return item.digital || item.digital === 0;
|
|
664
|
+
}
|
|
665
|
+
function changeShowName(name) {
|
|
666
|
+
showTitleName.value = name;
|
|
667
|
+
}
|
|
668
|
+
function fmtChildName(name, isPublic) {
|
|
669
|
+
return name && isPublic === "1" ? name.replace(/\(公共\)$/, "") : name;
|
|
670
|
+
}
|
|
671
|
+
onActivated(() => {
|
|
672
|
+
tableCondiTionPromise({});
|
|
673
|
+
});
|
|
674
|
+
onBeforeMount(() => {
|
|
675
|
+
tableCondiTionPromise({});
|
|
676
|
+
});
|
|
677
|
+
watch(
|
|
678
|
+
() => props.tableId,
|
|
679
|
+
(val) => {
|
|
680
|
+
if (!val)
|
|
681
|
+
return;
|
|
682
|
+
getTableCondiTionListRequest(true);
|
|
683
|
+
if (curTableId.value === val)
|
|
684
|
+
return;
|
|
685
|
+
curTableId.value = val;
|
|
686
|
+
},
|
|
687
|
+
{ immediate: true, deep: true }
|
|
688
|
+
);
|
|
689
|
+
watch(
|
|
690
|
+
() => props.curClassificationIndex,
|
|
691
|
+
(val) => {
|
|
692
|
+
if (val === void 0)
|
|
693
|
+
return;
|
|
694
|
+
classificationIndex.value = val;
|
|
695
|
+
},
|
|
696
|
+
{ immediate: true, deep: true }
|
|
697
|
+
);
|
|
698
|
+
watch(
|
|
699
|
+
() => props.curClassificationWidth,
|
|
700
|
+
(val) => {
|
|
701
|
+
if (val) {
|
|
702
|
+
classificationWidth.value = Number(val) || 150;
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{ immediate: true }
|
|
706
|
+
);
|
|
707
|
+
watch(
|
|
708
|
+
() => props.curConditionList,
|
|
709
|
+
(val) => {
|
|
710
|
+
if (!val || !val.length || treeData.value === val)
|
|
711
|
+
return;
|
|
712
|
+
treeData.value = JSON.parse(JSON.stringify(val));
|
|
713
|
+
},
|
|
714
|
+
{ immediate: true, deep: true }
|
|
715
|
+
);
|
|
716
|
+
return (_ctx, _cache) => {
|
|
717
|
+
return openBlock(), createElementBlock("div", {
|
|
718
|
+
class: normalizeClass(["classification-block", "classificationIndex-" + unref(classificationIndex), unref(isPackUp) ? "upack-up-wrap" : ""]),
|
|
719
|
+
style: normalizeStyle(unref(dynamicStyle))
|
|
720
|
+
}, [
|
|
721
|
+
unref(classificationIndex) === 0 ? withDirectives((openBlock(), createElementBlock("div", {
|
|
722
|
+
key: 0,
|
|
723
|
+
class: "tree-type classify-0",
|
|
724
|
+
style: normalizeStyle({
|
|
725
|
+
width: unref(classificationWidth) + "px",
|
|
726
|
+
paddingBottom: __props.conditionType === "keyword" ? "80px" : 0,
|
|
727
|
+
position: "relative"
|
|
728
|
+
})
|
|
729
|
+
}, [
|
|
730
|
+
__props.hideConditionChangeBtn != 1 || __props.hideConditionChangeSetting != 1 ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
731
|
+
__props.hideConditionChangeBtn != 1 ? (openBlock(), createElementBlock("span", {
|
|
732
|
+
key: 0,
|
|
733
|
+
class: "header-1",
|
|
734
|
+
onClick: handleModeChange
|
|
735
|
+
}, [
|
|
736
|
+
createVNode(unref(NIcon), {
|
|
737
|
+
component: unref(Repeat),
|
|
738
|
+
size: "16"
|
|
739
|
+
}, null, 8, ["component"]),
|
|
740
|
+
createTextVNode(" " + toDisplayString("\u5207\u6362"))
|
|
741
|
+
])) : createCommentVNode("v-if", true),
|
|
742
|
+
__props.hideConditionChangeSetting != 1 ? (openBlock(), createElementBlock("span", {
|
|
743
|
+
key: 1,
|
|
744
|
+
class: "header-1",
|
|
745
|
+
onClick: handleSettingShow
|
|
746
|
+
}, [
|
|
747
|
+
createVNode(unref(NIcon), {
|
|
748
|
+
component: unref(SettingsOutline),
|
|
749
|
+
size: "16"
|
|
750
|
+
}, null, 8, ["component"]),
|
|
751
|
+
createTextVNode(" " + toDisplayString("\u8BBE\u7F6E"))
|
|
752
|
+
])) : createCommentVNode("v-if", true)
|
|
753
|
+
])) : createCommentVNode("v-if", true),
|
|
754
|
+
createElementVNode("ul", _hoisted_2, [
|
|
755
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(treeData), (item, index) => {
|
|
756
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
757
|
+
index === 0 || !item.children || item.children.length === 0 || item.children && item.children.filter((i) => i.isShow).length !== 0 ? (openBlock(), createElementBlock("li", {
|
|
758
|
+
key: index,
|
|
759
|
+
class: normalizeClass(["tree-item", {
|
|
760
|
+
"tree-header": index === 0 || !item.children || item.children.length === 0
|
|
761
|
+
}])
|
|
762
|
+
}, [
|
|
763
|
+
index === 0 || !item.children || item.children.length === 0 ? (openBlock(), createElementBlock("span", {
|
|
764
|
+
key: 0,
|
|
765
|
+
class: normalizeClass(["child-item header-item", { selected: item.selected || __props.conditionSid.indexOf("all_data") !== -1 }]),
|
|
766
|
+
onClick: ($event) => handleItemClick(item)
|
|
767
|
+
}, [
|
|
768
|
+
createTextVNode(toDisplayString(item.name) + " ", 1),
|
|
769
|
+
visibleDigital(item) ? (openBlock(), createElementBlock("span", _hoisted_4, " (" + toDisplayString(item.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true)
|
|
770
|
+
], 10, _hoisted_3)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
771
|
+
createElementVNode("span", {
|
|
772
|
+
class: normalizeClass(["parent", { open: item.open }]),
|
|
773
|
+
onClick: ($event) => handleFold(item)
|
|
774
|
+
}, [
|
|
775
|
+
createElementVNode("span", null, [
|
|
776
|
+
createTextVNode(toDisplayString(item.name) + " ", 1),
|
|
777
|
+
visibleDigital(item) ? (openBlock(), createElementBlock("span", _hoisted_6, " (" + toDisplayString(item.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true)
|
|
778
|
+
]),
|
|
779
|
+
createVNode(unref(NIcon), {
|
|
780
|
+
component: item.open ? unref(ChevronDown) : unref(ChevronForward)
|
|
781
|
+
}, null, 8, ["component"])
|
|
782
|
+
], 10, _hoisted_5),
|
|
783
|
+
item.open ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(item.children.filter((i) => i.isShow), (child, cIndex) => {
|
|
784
|
+
return openBlock(), createElementBlock("div", {
|
|
785
|
+
class: "children",
|
|
786
|
+
key: cIndex
|
|
787
|
+
}, [
|
|
788
|
+
child.isShow ? (openBlock(), createBlock(unref(NTooltip), {
|
|
789
|
+
key: 0,
|
|
790
|
+
trigger: "hover",
|
|
791
|
+
placement: "right"
|
|
792
|
+
}, {
|
|
793
|
+
trigger: withCtx(() => [
|
|
794
|
+
createElementVNode("span", {
|
|
795
|
+
class: normalizeClass(["child-item", {
|
|
796
|
+
selected: child.selected,
|
|
797
|
+
disabled: !child.digital && unref(getCondiTionDigital)
|
|
798
|
+
}]),
|
|
799
|
+
onClick: ($event) => handleItemClick(child, cIndex, item)
|
|
800
|
+
}, [
|
|
801
|
+
createElementVNode("span", _hoisted_8, toDisplayString(child.name || fmtChildName(child.isPublic)), 1),
|
|
802
|
+
visibleDigital(child) ? (openBlock(), createElementBlock("span", _hoisted_9, " (" + toDisplayString(child.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true),
|
|
803
|
+
child.selected ? (openBlock(), createBlock(unref(NIcon), {
|
|
804
|
+
key: 1,
|
|
805
|
+
component: unref(Checkmark),
|
|
806
|
+
size: "20"
|
|
807
|
+
}, null, 8, ["component"])) : createCommentVNode("v-if", true)
|
|
808
|
+
], 10, _hoisted_7)
|
|
809
|
+
]),
|
|
810
|
+
default: withCtx(() => [
|
|
811
|
+
createElementVNode("span", null, toDisplayString(unref(tooltipTilte)(child)), 1)
|
|
812
|
+
]),
|
|
813
|
+
_: 2
|
|
814
|
+
}, 1024)) : createCommentVNode("v-if", true)
|
|
815
|
+
]);
|
|
816
|
+
}), 128)) : createCommentVNode("v-if", true)
|
|
817
|
+
], 64))
|
|
818
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
819
|
+
], 64);
|
|
820
|
+
}), 256))
|
|
821
|
+
]),
|
|
822
|
+
__props.conditionType === "keyword" && __props.hideClearConditionChange != 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
823
|
+
createElementVNode("div", _hoisted_11, "\u5DF2\u9009\u62E9" + toDisplayString(__props.conditionSid.filter((item) => item !== "all_data").length) + "\u9879", 1),
|
|
824
|
+
createElementVNode("div", {
|
|
825
|
+
class: "selected-item-del",
|
|
826
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleItemClick({ sid: "all_data", name: "\u5168\u90E8\u6570\u636E", digital: unref(allObj).digital }))
|
|
827
|
+
}, [
|
|
828
|
+
createVNode(unref(script), {
|
|
829
|
+
"class-name": "svg-icon-btn",
|
|
830
|
+
"icon-class": "xitongtubiaoliebiaocaozuoanniushanchu"
|
|
831
|
+
}),
|
|
832
|
+
createTextVNode(" \u6E05\u7A7A\u7B5B\u9009 ")
|
|
833
|
+
])
|
|
834
|
+
])) : createCommentVNode("v-if", true)
|
|
835
|
+
], 4)), [
|
|
836
|
+
[unref(vFlexibleResize), {
|
|
837
|
+
mode: "VR",
|
|
838
|
+
onMove: changeWidth,
|
|
839
|
+
onEnd: saveWidth
|
|
840
|
+
}]
|
|
841
|
+
]) : createCommentVNode("v-if", true),
|
|
842
|
+
unref(classificationIndex) === 1 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
843
|
+
__props.hideConditionChangeBtn != 1 || __props.hideConditionChangeSetting != 1 || __props.hideConditionChangeSetting != 1 || unref(originConditionList).filter((item) => item.isShow).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
844
|
+
__props.hideConditionChangeBtn != 1 || __props.hideConditionChangeSetting != 1 ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
845
|
+
createElementVNode("span", {
|
|
846
|
+
class: normalizeClass(["all-data", { selected: __props.conditionSid.indexOf("all_data") !== -1 }]),
|
|
847
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleItemClick({ sid: "all_data", name: "\u5168\u90E8\u6570\u636E", digital: unref(allObj).digital }))
|
|
848
|
+
}, [
|
|
849
|
+
createTextVNode(" \u5168\u90E8\u6570\u636E "),
|
|
850
|
+
unref(allObj).digital || unref(allObj).digital === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
851
|
+
createTextVNode(" (" + toDisplayString(unref(allObj).digital || 0) + ") ", 1)
|
|
852
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
853
|
+
], 2),
|
|
854
|
+
createElementVNode("div", _hoisted_14, [
|
|
855
|
+
__props.hideConditionChangeBtn != 1 ? (openBlock(), createElementBlock("span", {
|
|
856
|
+
key: 0,
|
|
857
|
+
class: "setting-1",
|
|
858
|
+
onClick: handleModeChange,
|
|
859
|
+
style: { "margin-right": "30px" }
|
|
860
|
+
}, [
|
|
861
|
+
createVNode(unref(NIcon), {
|
|
862
|
+
component: unref(Repeat),
|
|
863
|
+
size: "16"
|
|
864
|
+
}, null, 8, ["component"]),
|
|
865
|
+
createTextVNode(" " + toDisplayString("\u5207\u6362"))
|
|
866
|
+
])) : createCommentVNode("v-if", true),
|
|
867
|
+
__props.hideConditionChangeSetting != 1 ? (openBlock(), createElementBlock("span", {
|
|
868
|
+
key: 1,
|
|
869
|
+
class: "setting-1",
|
|
870
|
+
onClick: handleSettingShow
|
|
871
|
+
}, [
|
|
872
|
+
createVNode(unref(NIcon), {
|
|
873
|
+
component: unref(SettingsOutline),
|
|
874
|
+
size: "16"
|
|
875
|
+
}, null, 8, ["component"]),
|
|
876
|
+
createTextVNode(" " + toDisplayString("\u8BBE\u7F6E"))
|
|
877
|
+
])) : createCommentVNode("v-if", true)
|
|
878
|
+
])
|
|
879
|
+
])) : createCommentVNode("v-if", true),
|
|
880
|
+
createElementVNode("ul", {
|
|
881
|
+
class: "tile",
|
|
882
|
+
style: normalizeStyle({
|
|
883
|
+
borderBottom: __props.conditionType === "keyword" && __props.hideClearConditionChange != 1 ? "1px solid #d5d5d5" : 0
|
|
884
|
+
})
|
|
885
|
+
}, [
|
|
886
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(treeData).slice(1), (item, index) => {
|
|
887
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
888
|
+
item.children && item.children.length > 0 ? (openBlock(), createElementBlock("li", {
|
|
889
|
+
class: "tile-item",
|
|
890
|
+
key: index
|
|
891
|
+
}, [
|
|
892
|
+
!item.children || item.children.length === 0 ? (openBlock(), createElementBlock("span", {
|
|
893
|
+
key: 0,
|
|
894
|
+
class: normalizeClass(["child-item", { selected: item.selected }]),
|
|
895
|
+
style: { "padding-left": "17px" },
|
|
896
|
+
onClick: ($event) => handleItemClick(item)
|
|
897
|
+
}, [
|
|
898
|
+
createTextVNode(toDisplayString(item.name) + " " + toDisplayString(item.digital) + " ", 1),
|
|
899
|
+
visibleDigital(item) ? (openBlock(), createElementBlock("span", _hoisted_16, " (" + toDisplayString(item.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true)
|
|
900
|
+
], 10, _hoisted_15)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
901
|
+
createElementVNode("span", _hoisted_17, toDisplayString(item.name), 1),
|
|
902
|
+
createElementVNode("div", _hoisted_18, [
|
|
903
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child, cIndex) => {
|
|
904
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
905
|
+
child.isShow ? (openBlock(), createElementBlock("span", {
|
|
906
|
+
key: cIndex,
|
|
907
|
+
class: normalizeClass(["child-item", {
|
|
908
|
+
selected: child.selected,
|
|
909
|
+
disabled: !child.digital && unref(getCondiTionDigital)
|
|
910
|
+
}]),
|
|
911
|
+
onClick: ($event) => handleItemClick(child, cIndex, item)
|
|
912
|
+
}, [
|
|
913
|
+
createTextVNode(toDisplayString(child.name || fmtChildName(child.isPublic)) + " ", 1),
|
|
914
|
+
visibleDigital(child) ? (openBlock(), createElementBlock("span", _hoisted_20, " (" + toDisplayString(child.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true)
|
|
915
|
+
], 10, _hoisted_19)) : createCommentVNode("v-if", true)
|
|
916
|
+
], 64);
|
|
917
|
+
}), 256))
|
|
918
|
+
])
|
|
919
|
+
], 64))
|
|
920
|
+
])) : createCommentVNode("v-if", true)
|
|
921
|
+
], 64);
|
|
922
|
+
}), 256))
|
|
923
|
+
], 4),
|
|
924
|
+
__props.conditionType === "keyword" && __props.hideClearConditionChange != 1 ? (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
925
|
+
createElementVNode("div", _hoisted_22, "\u5DF2\u9009\u62E9" + toDisplayString(__props.conditionSid.filter((item) => item !== "all_data").length) + "\u9879", 1),
|
|
926
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(treeData).slice(1), (item, index) => {
|
|
927
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
928
|
+
!item.children || item.children.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
929
|
+
class: "selected-item",
|
|
930
|
+
key: item.sid
|
|
931
|
+
}, [
|
|
932
|
+
createTextVNode(toDisplayString(item.name) + " ", 1),
|
|
933
|
+
visibleDigital(item) ? (openBlock(), createElementBlock("span", _hoisted_23, " (" + toDisplayString(item.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true),
|
|
934
|
+
createVNode(unref(NIcon), {
|
|
935
|
+
component: unref(Close),
|
|
936
|
+
onClick: ($event) => handleItemClick(item)
|
|
937
|
+
}, null, 8, ["component", "onClick"])
|
|
938
|
+
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.children, (child, cIndex) => {
|
|
939
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
940
|
+
child.selected ? (openBlock(), createElementBlock("div", {
|
|
941
|
+
class: "selected-item",
|
|
942
|
+
key: child.sid
|
|
943
|
+
}, [
|
|
944
|
+
createTextVNode(toDisplayString(child.name) + " ", 1),
|
|
945
|
+
visibleDigital(child) ? (openBlock(), createElementBlock("span", _hoisted_24, " (" + toDisplayString(child.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true),
|
|
946
|
+
createVNode(unref(NIcon), {
|
|
947
|
+
component: unref(Close),
|
|
948
|
+
onClick: ($event) => handleItemClick(child, cIndex, item)
|
|
949
|
+
}, null, 8, ["component", "onClick"])
|
|
950
|
+
])) : createCommentVNode("v-if", true)
|
|
951
|
+
], 64);
|
|
952
|
+
}), 256))
|
|
953
|
+
], 64);
|
|
954
|
+
}), 256)),
|
|
955
|
+
createElementVNode("div", {
|
|
956
|
+
class: "selected-item-del",
|
|
957
|
+
onClick: _cache[2] || (_cache[2] = ($event) => handleItemClick({ sid: "all_data", name: "\u5168\u90E8\u6570\u636E", digital: unref(allObj).digital }))
|
|
958
|
+
}, [
|
|
959
|
+
createVNode(unref(script), {
|
|
960
|
+
"class-name": "svg-icon-btn",
|
|
961
|
+
"icon-class": "xitongtubiaoliebiaocaozuoanniushanchu"
|
|
962
|
+
}),
|
|
963
|
+
createTextVNode(" \u6E05\u7A7A\u7B5B\u9009 ")
|
|
964
|
+
])
|
|
965
|
+
])) : createCommentVNode("v-if", true)
|
|
966
|
+
])) : createCommentVNode("v-if", true)
|
|
967
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
968
|
+
unref(classificationIndex) === 2 ? (openBlock(), createElementBlock("div", {
|
|
969
|
+
key: 2,
|
|
970
|
+
class: "select-type classify-2",
|
|
971
|
+
ref_key: "selectType",
|
|
972
|
+
ref: selectType
|
|
973
|
+
}, [
|
|
974
|
+
createElementVNode("span", {
|
|
975
|
+
class: "title",
|
|
976
|
+
onClick: _cache[3] || (_cache[3] = () => toggleSelect())
|
|
977
|
+
}, [
|
|
978
|
+
createVNode(unref(NTooltip), {
|
|
979
|
+
trigger: "hover",
|
|
980
|
+
placement: "top"
|
|
981
|
+
}, {
|
|
982
|
+
trigger: withCtx(() => [
|
|
983
|
+
createElementVNode("span", null, toDisplayString(unref(titleName)), 1)
|
|
984
|
+
]),
|
|
985
|
+
default: withCtx(() => [
|
|
986
|
+
createElementVNode("span", null, toDisplayString(unref(titleName)), 1)
|
|
987
|
+
]),
|
|
988
|
+
_: 1
|
|
989
|
+
}),
|
|
990
|
+
createVNode(unref(NIcon), {
|
|
991
|
+
component: unref(selectShow) ? unref(ChevronUp) : unref(ChevronDown)
|
|
992
|
+
}, null, 8, ["component"])
|
|
993
|
+
]),
|
|
994
|
+
unref(selectShow) ? (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
995
|
+
createElementVNode("ul", {
|
|
996
|
+
class: "tree",
|
|
997
|
+
style: normalizeStyle({ padding: __props.conditionType === "keyword" ? "40px 0" : "40px 0 0" })
|
|
998
|
+
}, [
|
|
999
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(treeData), (item, index) => {
|
|
1000
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1001
|
+
index === 0 || !item.children || item.children.length === 0 || item.children && item.children.filter((i) => i.isShow).length !== 0 ? (openBlock(), createElementBlock("li", {
|
|
1002
|
+
key: index,
|
|
1003
|
+
class: normalizeClass(["tree-item", {
|
|
1004
|
+
"tree-header": index === 0 || !item.children || item.children.length === 0
|
|
1005
|
+
}])
|
|
1006
|
+
}, [
|
|
1007
|
+
index === 0 || !item.children || item.children.length === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1008
|
+
createElementVNode("span", {
|
|
1009
|
+
class: normalizeClass(["child-item child-header header-item", { selected: item.selected || __props.conditionSid.indexOf("all_data") !== -1 }]),
|
|
1010
|
+
onClick: ($event) => handleItemClick(item)
|
|
1011
|
+
}, [
|
|
1012
|
+
createTextVNode(toDisplayString(item.name) + " ", 1),
|
|
1013
|
+
visibleDigital(item) ? (openBlock(), createElementBlock("span", _hoisted_27, " (" + toDisplayString(item.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true)
|
|
1014
|
+
], 10, _hoisted_26),
|
|
1015
|
+
createElementVNode("div", _hoisted_28, [
|
|
1016
|
+
__props.hideConditionChangeBtn != 1 ? (openBlock(), createElementBlock("span", {
|
|
1017
|
+
key: 0,
|
|
1018
|
+
onClick: handleModeChange
|
|
1019
|
+
}, [
|
|
1020
|
+
createVNode(unref(NIcon), {
|
|
1021
|
+
component: unref(Repeat),
|
|
1022
|
+
size: "16"
|
|
1023
|
+
}, null, 8, ["component"]),
|
|
1024
|
+
createTextVNode(" " + toDisplayString("\u5207\u6362"))
|
|
1025
|
+
])) : createCommentVNode("v-if", true),
|
|
1026
|
+
__props.hideConditionChangeSetting != 1 ? (openBlock(), createElementBlock("span", {
|
|
1027
|
+
key: 1,
|
|
1028
|
+
onClick: handleSettingShow
|
|
1029
|
+
}, [
|
|
1030
|
+
createVNode(unref(NIcon), {
|
|
1031
|
+
component: unref(SettingsOutline),
|
|
1032
|
+
size: "16"
|
|
1033
|
+
}, null, 8, ["component"]),
|
|
1034
|
+
createTextVNode(" " + toDisplayString("\u8BBE\u7F6E"))
|
|
1035
|
+
])) : createCommentVNode("v-if", true)
|
|
1036
|
+
])
|
|
1037
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1038
|
+
item.children.filter((i) => i.isShow).length !== 0 ? (openBlock(), createElementBlock("span", {
|
|
1039
|
+
key: 0,
|
|
1040
|
+
class: normalizeClass(["parent", { open: item.open }]),
|
|
1041
|
+
onClick: ($event) => handleFold(item)
|
|
1042
|
+
}, [
|
|
1043
|
+
createTextVNode(toDisplayString(item.name) + toDisplayString(item.digital || item.digital === 0 ? "(" + item.digital + ")" : "") + " ", 1),
|
|
1044
|
+
createVNode(unref(NIcon), {
|
|
1045
|
+
component: item.open ? unref(ChevronDown) : unref(ChevronForward)
|
|
1046
|
+
}, null, 8, ["component"])
|
|
1047
|
+
], 10, _hoisted_29)) : createCommentVNode("v-if", true),
|
|
1048
|
+
item.open ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.children.filter((i) => i.isShow), (child, cIndex) => {
|
|
1049
|
+
return openBlock(), createElementBlock("div", {
|
|
1050
|
+
class: "children",
|
|
1051
|
+
key: cIndex
|
|
1052
|
+
}, [
|
|
1053
|
+
child.isShow ? (openBlock(), createBlock(unref(NTooltip), {
|
|
1054
|
+
key: 0,
|
|
1055
|
+
placement: "right",
|
|
1056
|
+
trigger: "hover"
|
|
1057
|
+
}, {
|
|
1058
|
+
trigger: withCtx(() => [
|
|
1059
|
+
createElementVNode("span", {
|
|
1060
|
+
class: normalizeClass(["child-item", {
|
|
1061
|
+
selected: child.selected,
|
|
1062
|
+
disabled: !child.digital && unref(getCondiTionDigital)
|
|
1063
|
+
}]),
|
|
1064
|
+
onClick: ($event) => handleItemClick(child, cIndex, item)
|
|
1065
|
+
}, [
|
|
1066
|
+
createElementVNode("span", null, [
|
|
1067
|
+
createTextVNode(toDisplayString(child.name || fmtChildName(child == null ? void 0 : child.isPublic)) + " ", 1),
|
|
1068
|
+
visibleDigital(child) ? (openBlock(), createElementBlock("span", _hoisted_31, " (" + toDisplayString(child.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true)
|
|
1069
|
+
]),
|
|
1070
|
+
child.selected ? (openBlock(), createBlock(unref(NIcon), {
|
|
1071
|
+
key: 0,
|
|
1072
|
+
component: unref(Checkmark),
|
|
1073
|
+
size: "20"
|
|
1074
|
+
}, null, 8, ["component"])) : createCommentVNode("v-if", true)
|
|
1075
|
+
], 10, _hoisted_30)
|
|
1076
|
+
]),
|
|
1077
|
+
default: withCtx(() => [
|
|
1078
|
+
createElementVNode("span", null, toDisplayString(unref(tooltipTilte)(child)), 1)
|
|
1079
|
+
]),
|
|
1080
|
+
_: 2
|
|
1081
|
+
}, 1024)) : createCommentVNode("v-if", true)
|
|
1082
|
+
]);
|
|
1083
|
+
}), 128)) : createCommentVNode("v-if", true)
|
|
1084
|
+
], 64))
|
|
1085
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
1086
|
+
], 64);
|
|
1087
|
+
}), 256))
|
|
1088
|
+
], 4),
|
|
1089
|
+
__props.conditionType === "keyword" && __props.hideClearConditionChange != 1 ? (openBlock(), createElementBlock("div", _hoisted_32, [
|
|
1090
|
+
createElementVNode("div", _hoisted_33, "\u5DF2\u9009\u62E9" + toDisplayString(__props.conditionSid.filter((item) => item !== "all_data").length) + "\u9879", 1),
|
|
1091
|
+
createElementVNode("div", {
|
|
1092
|
+
class: "selected-item-del",
|
|
1093
|
+
onClick: _cache[4] || (_cache[4] = ($event) => handleItemClick({ sid: "all_data", name: "\u5168\u90E8\u6570\u636E", digital: unref(allObj).digital }))
|
|
1094
|
+
}, [
|
|
1095
|
+
createVNode(unref(script), {
|
|
1096
|
+
"class-name": "svg-icon-btn",
|
|
1097
|
+
"icon-class": "xitongtubiaoliebiaocaozuoanniushanchu"
|
|
1098
|
+
}),
|
|
1099
|
+
createTextVNode(" \u6E05\u7A7A\u7B5B\u9009 ")
|
|
1100
|
+
])
|
|
1101
|
+
])) : createCommentVNode("v-if", true)
|
|
1102
|
+
])) : createCommentVNode("v-if", true)
|
|
1103
|
+
], 512)) : createCommentVNode("v-if", true),
|
|
1104
|
+
unref(classificationIndex) === 3 ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
1105
|
+
__props.hideConditionChangeBtn != 1 || __props.hideConditionChangeSetting != 1 || __props.hideConditionChangeSetting != 1 || unref(originConditionList).filter((item) => item.isShow).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_34, [
|
|
1106
|
+
__props.hideConditionChangeBtn != 1 || __props.hideConditionChangeSetting != 1 ? (openBlock(), createElementBlock("div", _hoisted_35, [
|
|
1107
|
+
createElementVNode("span", {
|
|
1108
|
+
class: normalizeClass(["all-data", { selected: __props.conditionSid.indexOf("all_data") !== -1 }]),
|
|
1109
|
+
onClick: _cache[5] || (_cache[5] = ($event) => handleItemClick({ sid: "all_data", name: "\u5168\u90E8\u6570\u636E", digital: unref(allObj).digital }))
|
|
1110
|
+
}, [
|
|
1111
|
+
createTextVNode(" \u5168\u90E8\u6570\u636E "),
|
|
1112
|
+
unref(allObj).digital || unref(allObj).digital === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1113
|
+
createTextVNode(" (" + toDisplayString(unref(allObj).digital || 0) + ") ", 1)
|
|
1114
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
1115
|
+
], 2),
|
|
1116
|
+
createElementVNode("div", _hoisted_36, [
|
|
1117
|
+
__props.hideConditionChangeBtn != 1 ? (openBlock(), createElementBlock("span", {
|
|
1118
|
+
key: 0,
|
|
1119
|
+
onClick: handleModeChange,
|
|
1120
|
+
style: { "margin-right": "30px" }
|
|
1121
|
+
}, [
|
|
1122
|
+
createVNode(unref(NIcon), {
|
|
1123
|
+
component: unref(Repeat),
|
|
1124
|
+
size: "20"
|
|
1125
|
+
}, null, 8, ["component"]),
|
|
1126
|
+
createTextVNode(" " + toDisplayString("\u5207\u6362"))
|
|
1127
|
+
])) : createCommentVNode("v-if", true),
|
|
1128
|
+
__props.hideConditionChangeSetting != 1 ? (openBlock(), createElementBlock("span", {
|
|
1129
|
+
key: 1,
|
|
1130
|
+
onClick: handleSettingShow
|
|
1131
|
+
}, [
|
|
1132
|
+
createVNode(unref(NIcon), {
|
|
1133
|
+
component: unref(SettingsOutline),
|
|
1134
|
+
size: "20"
|
|
1135
|
+
}, null, 8, ["component"]),
|
|
1136
|
+
createTextVNode(" " + toDisplayString("\u8BBE\u7F6E"))
|
|
1137
|
+
])) : createCommentVNode("v-if", true)
|
|
1138
|
+
])
|
|
1139
|
+
])) : createCommentVNode("v-if", true),
|
|
1140
|
+
createElementVNode("div", {
|
|
1141
|
+
class: "group",
|
|
1142
|
+
style: normalizeStyle({
|
|
1143
|
+
borderBottom: __props.conditionType === "keyword" && __props.hideClearConditionChange != 1 ? "1px solid #d5d5d5" : 0
|
|
1144
|
+
})
|
|
1145
|
+
}, [
|
|
1146
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(treeData).slice(1), (item, index) => {
|
|
1147
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1148
|
+
!item.children || item.children.length === 0 ? (openBlock(), createElementBlock("span", {
|
|
1149
|
+
key: item.sid,
|
|
1150
|
+
class: normalizeClass(["child-item", { selected: item.selected }]),
|
|
1151
|
+
style: { "padding-left": "17px" },
|
|
1152
|
+
onClick: ($event) => handleItemClick(item)
|
|
1153
|
+
}, [
|
|
1154
|
+
createTextVNode(toDisplayString(item.name) + " " + toDisplayString(item.digital) + " ", 1),
|
|
1155
|
+
visibleDigital(item) ? (openBlock(), createElementBlock("span", _hoisted_38, " (" + toDisplayString(item.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true)
|
|
1156
|
+
], 10, _hoisted_37)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1157
|
+
createCommentVNode(" \u540E\u9762\u9700\u8981\u8FDB\u4E00\u6B65\u653E\u5F00\u6D4B\u8BD5 "),
|
|
1158
|
+
item.children.filter((i) => i.isShow).length !== 0 ? (openBlock(), createBlock(unref(NSelect), {
|
|
1159
|
+
key: 0,
|
|
1160
|
+
class: "classificationSelect3",
|
|
1161
|
+
to: false,
|
|
1162
|
+
placeholder: item.name + (__props.countCondition == 1 && (item.digital || item.digital === 0) ? " (" + (item.digital || 0) + ")" : ""),
|
|
1163
|
+
value: groupSelect(index),
|
|
1164
|
+
clearable: "",
|
|
1165
|
+
options: filterTreeData(item),
|
|
1166
|
+
"label-field": "labelName",
|
|
1167
|
+
"value-field": "itemValue",
|
|
1168
|
+
"onUpdate:value": (value, option) => handleChange(value, option, item)
|
|
1169
|
+
}, null, 8, ["placeholder", "value", "options", "onUpdate:value"])) : createCommentVNode("v-if", true)
|
|
1170
|
+
], 64))
|
|
1171
|
+
], 64);
|
|
1172
|
+
}), 256))
|
|
1173
|
+
], 4),
|
|
1174
|
+
__props.conditionType === "keyword" && __props.hideClearConditionChange != 1 ? (openBlock(), createElementBlock("div", _hoisted_39, [
|
|
1175
|
+
createElementVNode("div", _hoisted_40, "\u5DF2\u9009\u62E9" + toDisplayString(__props.conditionSid.filter((item) => item !== "all_data").length) + "\u9879", 1),
|
|
1176
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(treeData).slice(1), (item, index) => {
|
|
1177
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1178
|
+
!item.children || item.children.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
1179
|
+
class: "selected-item",
|
|
1180
|
+
key: item.sid
|
|
1181
|
+
}, [
|
|
1182
|
+
createTextVNode(toDisplayString(item.name) + " ", 1),
|
|
1183
|
+
visibleDigital(item) ? (openBlock(), createElementBlock("span", _hoisted_41, " (" + toDisplayString(item.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true),
|
|
1184
|
+
createVNode(unref(NIcon), {
|
|
1185
|
+
component: unref(Close),
|
|
1186
|
+
onClick: ($event) => handleItemClick(item)
|
|
1187
|
+
}, null, 8, ["component", "onClick"])
|
|
1188
|
+
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.children, (child, cIndex) => {
|
|
1189
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1190
|
+
child.selected ? (openBlock(), createElementBlock("div", {
|
|
1191
|
+
class: "selected-item",
|
|
1192
|
+
key: child.sid
|
|
1193
|
+
}, [
|
|
1194
|
+
createTextVNode(toDisplayString(child.name) + " ", 1),
|
|
1195
|
+
visibleDigital(child) ? (openBlock(), createElementBlock("span", _hoisted_42, " (" + toDisplayString(child.digital || 0) + ") ", 1)) : createCommentVNode("v-if", true),
|
|
1196
|
+
createVNode(unref(NIcon), {
|
|
1197
|
+
component: unref(Close),
|
|
1198
|
+
onClick: ($event) => handleItemClick(child, cIndex, item)
|
|
1199
|
+
}, null, 8, ["component", "onClick"])
|
|
1200
|
+
])) : createCommentVNode("v-if", true)
|
|
1201
|
+
], 64);
|
|
1202
|
+
}), 256))
|
|
1203
|
+
], 64);
|
|
1204
|
+
}), 256)),
|
|
1205
|
+
createElementVNode("div", {
|
|
1206
|
+
class: "selected-item-del",
|
|
1207
|
+
onClick: _cache[6] || (_cache[6] = ($event) => handleItemClick({ sid: "all_data", name: "\u5168\u90E8\u6570\u636E", digital: unref(allObj).digital }))
|
|
1208
|
+
}, [
|
|
1209
|
+
createVNode(unref(script), {
|
|
1210
|
+
"class-name": "svg-icon-btn",
|
|
1211
|
+
"icon-class": "xitongtubiaoliebiaocaozuoanniushanchu"
|
|
1212
|
+
}),
|
|
1213
|
+
createTextVNode(" \u6E05\u7A7A\u7B5B\u9009 ")
|
|
1214
|
+
])
|
|
1215
|
+
])) : createCommentVNode("v-if", true)
|
|
1216
|
+
])) : createCommentVNode("v-if", true)
|
|
1217
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1218
|
+
unref(classificationIndex) === 4 ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
1219
|
+
unref(showIconBtn) || unref(hasConditionList) ? (openBlock(), createElementBlock("div", _hoisted_43, [
|
|
1220
|
+
unref(showIconBtn) ? (openBlock(), createElementBlock("div", _hoisted_44, [
|
|
1221
|
+
createCommentVNode(` @click="handleItemClick({ sid: 'all_data', name: '\u5168\u90E8\u6570\u636E', digital: allObj.digital })" `),
|
|
1222
|
+
createElementVNode("span", {
|
|
1223
|
+
class: normalizeClass(["all-data", { selected: __props.conditionSid.indexOf("all_data") !== -1 }])
|
|
1224
|
+
}, [
|
|
1225
|
+
createTextVNode(toDisplayString(unref(showTitleName)) + " ", 1),
|
|
1226
|
+
unref(allObj).digital || unref(allObj).digital === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1227
|
+
createTextVNode(" (" + toDisplayString(unref(allObj).digital || 0) + ") ", 1)
|
|
1228
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
1229
|
+
], 2),
|
|
1230
|
+
createElementVNode("div", _hoisted_45, [
|
|
1231
|
+
createElementVNode("span", {
|
|
1232
|
+
style: { "margin-right": "30px" },
|
|
1233
|
+
class: "upack-up-btn",
|
|
1234
|
+
onClick: _cache[7] || (_cache[7] = ($event) => isRef(isPackUp) ? isPackUp.value = !unref(isPackUp) : isPackUp = !unref(isPackUp))
|
|
1235
|
+
}, [
|
|
1236
|
+
createTextVNode(toDisplayString(unref(isPackUp) ? "\u5C55\u5F00" : "\u6536\u8D77") + " ", 1),
|
|
1237
|
+
createVNode(unref(NIcon), {
|
|
1238
|
+
component: unref(isPackUp) ? unref(ChevronDown) : unref(ChevronUp),
|
|
1239
|
+
style: { "color": "#2d7aff" }
|
|
1240
|
+
}, null, 8, ["component"])
|
|
1241
|
+
]),
|
|
1242
|
+
__props.hideConditionChangeBtn != 1 ? (openBlock(), createElementBlock("span", {
|
|
1243
|
+
key: 0,
|
|
1244
|
+
onClick: handleModeChange,
|
|
1245
|
+
style: { "margin-right": "30px" }
|
|
1246
|
+
}, [
|
|
1247
|
+
createVNode(unref(NIcon), {
|
|
1248
|
+
component: unref(Repeat),
|
|
1249
|
+
size: "20"
|
|
1250
|
+
}, null, 8, ["component"]),
|
|
1251
|
+
createCommentVNode(' {{ $t("1.1.5.2") }} '),
|
|
1252
|
+
createTextVNode(" \u5207\u6362 ")
|
|
1253
|
+
])) : createCommentVNode("v-if", true),
|
|
1254
|
+
__props.hideConditionChangeSetting != 1 ? (openBlock(), createElementBlock("span", {
|
|
1255
|
+
key: 1,
|
|
1256
|
+
onClick: handleSettingShow
|
|
1257
|
+
}, [
|
|
1258
|
+
createVNode(unref(NIcon), {
|
|
1259
|
+
component: unref(SettingsOutline),
|
|
1260
|
+
size: "20"
|
|
1261
|
+
}, null, 8, ["component"]),
|
|
1262
|
+
createCommentVNode(' {{ $t("1.1.5.3") }} '),
|
|
1263
|
+
createTextVNode(" \u8BBE\u7F6E ")
|
|
1264
|
+
])) : createCommentVNode("v-if", true)
|
|
1265
|
+
])
|
|
1266
|
+
])) : createCommentVNode("v-if", true)
|
|
1267
|
+
])) : createCommentVNode("v-if", true),
|
|
1268
|
+
createElementVNode("div", {
|
|
1269
|
+
class: "classify-4-container",
|
|
1270
|
+
style: normalizeStyle({ height: unref(isPackUp) ? 0 : "auto" })
|
|
1271
|
+
}, [
|
|
1272
|
+
createVNode(searchProfessionalModel, mergeProps({
|
|
1273
|
+
ref_key: "professional",
|
|
1274
|
+
ref: professional
|
|
1275
|
+
}, _ctx.$attrs, {
|
|
1276
|
+
originConditionList: unref(originConditionList),
|
|
1277
|
+
displayCategoryList: unref(displayCategoryLists),
|
|
1278
|
+
treeData: unref(treeData),
|
|
1279
|
+
tableId: __props.tableId,
|
|
1280
|
+
searchFieldList: __props.searchFieldList,
|
|
1281
|
+
onHandleItemClick: handleItemClick,
|
|
1282
|
+
onChangeShowName: changeShowName
|
|
1283
|
+
}), null, 16, ["originConditionList", "displayCategoryList", "treeData", "tableId", "searchFieldList"])
|
|
1284
|
+
], 4)
|
|
1285
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1286
|
+
createCommentVNode(" searchFieldList: props "),
|
|
1287
|
+
createCommentVNode(" saveGetTableCondiTionList \u65B0\u589E\uFF0C\u5220\u9664 "),
|
|
1288
|
+
createCommentVNode(" CondiTionListInit \u4FEE\u6539\uFF1F "),
|
|
1289
|
+
createVNode(setClassification, {
|
|
1290
|
+
ref: "search",
|
|
1291
|
+
onChangeSearch: changeSearch,
|
|
1292
|
+
onSaveGetTableCondiTionList: saveGetTableCondiTionList,
|
|
1293
|
+
onCondiTionListInit: updateTableCondiTion,
|
|
1294
|
+
onSetClassifyModal: setClassifyModal,
|
|
1295
|
+
searchFieldList: __props.searchFieldList,
|
|
1296
|
+
conditionList: unref(searchConditionList),
|
|
1297
|
+
displayCategoryList: unref(displayCategoryLists),
|
|
1298
|
+
settingId: unref(settingId),
|
|
1299
|
+
searchDefName: unref(searchDefName),
|
|
1300
|
+
tableId: __props.tableId,
|
|
1301
|
+
classifyModal: unref(classifyModal),
|
|
1302
|
+
filterApiConfig: __props.filterApiConfig
|
|
1303
|
+
}, {
|
|
1304
|
+
searchCondition: withCtx(({ ...attrs2 }) => [
|
|
1305
|
+
renderSlot(_ctx.$slots, "searchCondition", { attrs: attrs2 })
|
|
1306
|
+
]),
|
|
1307
|
+
_: 3
|
|
1308
|
+
}, 8, ["searchFieldList", "conditionList", "displayCategoryList", "settingId", "searchDefName", "tableId", "classifyModal", "filterApiConfig"])
|
|
1309
|
+
], 6);
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
var scriptClassification = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "Classification-com.vue"]]);
|
|
1314
|
+
|
|
1315
|
+
export { scriptClassification as default };
|