cnhis-design-vue 3.1.40-beta.12 → 3.1.40-beta.16
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/es/_virtual/plugin-vue_export-helper.js +1 -9
- package/es/components/annotation-edit/index.js +1 -10
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
- package/es/components/big-table/index.js +1 -15
- package/es/components/big-table/src/BigTable.vue.js +1 -6
- package/es/components/big-table/src/BigTable.vue2.js +1 -2498
- package/es/components/big-table/src/bigTableEmits.js +1 -53
- package/es/components/big-table/src/bigTableProps.js +1 -120
- package/es/components/big-table/src/bigTableState.js +1 -62
- package/es/components/big-table/src/components/NoData.vue.js +1 -74
- package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
- package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
- package/es/components/big-table/src/components/input-button.vue.js +1 -39
- package/es/components/big-table/src/components/separate.vue.js +1 -30
- package/es/components/big-table/src/constants/index.js +1 -3
- package/es/components/big-table/src/hooks/index.js +1 -9
- package/es/components/big-table/src/hooks/useAnchor.js +1 -49
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
- package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
- package/es/components/big-table/src/hooks/useEdit.js +1 -133
- package/es/components/big-table/src/hooks/useEvent.js +1 -95
- package/es/components/big-table/src/hooks/useFormat.js +1 -507
- package/es/components/big-table/src/hooks/useNestTable.js +1 -86
- package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
- package/es/components/big-table/src/hooks/useTableParse.js +1 -142
- package/es/components/big-table/src/utils.js +1 -618
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
- package/es/components/button-print/index.js +1 -12
- package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
- package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
- package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
- package/es/components/button-print/src/components/Preview.vue.js +1 -6
- package/es/components/button-print/src/components/Preview.vue2.js +1 -67
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -43
- package/es/components/button-print/src/utils/dialog.js +1 -121
- package/es/components/button-print/src/utils/index.js +1 -2
- package/es/components/button-print/src/utils/print.d.ts +5 -1
- package/es/components/button-print/src/utils/print.js +1 -432
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/src/Editor.js +1 -77
- package/es/components/fabric-chart/index.js +1 -10
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
- package/es/components/fabric-chart/src/components/useStyle.js +1 -36
- package/es/components/fabric-chart/src/hooks/constant.js +1 -78
- package/es/components/fabric-chart/src/hooks/index.js +1 -11
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
- package/es/components/fabric-chart/src/utils/index.js +1 -15624
- package/es/components/fabric-chart/src/utils/utils.js +1 -32
- package/es/components/field-set/index.js +1 -10
- package/es/components/field-set/src/FieldSet.vue.js +1 -470
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/src/FormConfig.vue.js +1 -124
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
- package/es/components/form-config/src/components/index.js +1 -6
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
- package/es/components/form-config/src/components/renderer/index.js +1 -3
- package/es/components/form-config/src/constants/index.js +1 -61
- package/es/components/form-config/src/hooks/index.js +1 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
- package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
- package/es/components/form-config/src/utils/index.js +1 -26
- package/es/components/form-render/index.js +1 -30
- package/es/components/form-render/src/FormRender.vue.js +1 -239
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
- package/es/components/form-render/src/components/renderer/combination.js +1 -114
- package/es/components/form-render/src/components/renderer/complex.js +1 -37
- package/es/components/form-render/src/components/renderer/date.js +1 -171
- package/es/components/form-render/src/components/renderer/formItem.js +1 -128
- package/es/components/form-render/src/components/renderer/index.js +1 -43
- package/es/components/form-render/src/components/renderer/input.js +1 -50
- package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
- package/es/components/form-render/src/components/renderer/select.js +1 -176
- package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
- package/es/components/form-render/src/components/renderer/slider.js +1 -38
- package/es/components/form-render/src/components/renderer/switch.js +1 -48
- package/es/components/form-render/src/components/renderer/textarea.js +1 -36
- package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
- package/es/components/form-render/src/constants/index.js +1 -59
- package/es/components/form-render/src/hooks/index.js +1 -15
- package/es/components/form-render/src/hooks/useAnchor.js +1 -99
- package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
- package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
- package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
- package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
- package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
- package/es/components/form-render/src/hooks/useFormContext.js +1 -70
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
- package/es/components/form-render/src/hooks/useFormField.js +1 -13
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
- package/es/components/form-render/src/types/fieldItem.js +1 -1
- package/es/components/form-render/src/types/index.js +1 -1
- package/es/components/form-render/src/utils/business.js +1 -114
- package/es/components/form-render/src/utils/dom.js +1 -38
- package/es/components/form-render/src/utils/index.js +1 -241
- package/es/components/form-render/src/utils/schema.js +1 -105
- package/es/components/grid/index.js +1 -11
- package/es/components/grid/src/Grid.js +1 -28
- package/es/components/grid/src/hooks.js +1 -168
- package/es/components/iho-table/index.js +1 -36
- package/es/components/iho-table/src/IhoTable.vue.js +1 -157
- package/es/components/iho-table/src/constants/index.js +1 -157
- package/es/components/iho-table/src/hooks/export.js +1 -2
- package/es/components/iho-table/src/hooks/index.js +1 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
- package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
- package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
- package/es/components/iho-table/src/plugins/index.js +1 -47
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.js +1 -16
- package/es/components/iho-table/src/utils/index.js +1 -169
- package/es/components/index.js +1 -119
- package/es/components/info-header/index.js +1 -10
- package/es/components/info-header/src/HiddenContent.vue.js +1 -70
- package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
- package/es/components/info-header/src/InfoHeader.vue.js +1 -313
- package/es/components/insurance-sdk/index.js +1 -1
- package/es/components/insurance-sdk/src/constants/index.js +1 -160
- package/es/components/insurance-sdk/src/utils/index.js +1 -1
- package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/index.js +1 -10
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -164
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -86
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +1 -1
- package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
- package/es/components/keyboard/src/utils/index.js +1 -5
- package/es/components/map/index.js +1 -10
- package/es/components/map/src/Map.vue.js +1 -336
- package/es/components/recommend-search/index.js +1 -10
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
- package/es/components/recommend-search/src/constant/index.js +1 -7
- package/es/components/scale-view/index.js +1 -35
- package/es/components/scale-view/src/ScaleView.vue.js +1 -429
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
- package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
- package/es/components/scale-view/src/components/NoData.vue.js +1 -74
- package/es/components/scale-view/src/components/ScaleScore.js +1 -63
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
- package/es/components/scale-view/src/components/formitem/address.js +1 -3993
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
- package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
- package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
- package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
- package/es/components/scale-view/src/hooks/use-component.js +1 -86
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
- package/es/components/scale-view/src/hooks/use-event.js +1 -129
- package/es/components/scale-view/src/hooks/use-noData.js +1 -41
- package/es/components/scale-view/src/utils/judge-types.js +1 -36
- package/es/components/search-cascader/index.js +1 -10
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
- package/es/components/search-cascader/src/components/index.js +1 -1
- package/es/components/search-cascader/src/constants/index.js +1 -11
- package/es/components/search-cascader/src/hooks/index.js +1 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
- package/es/components/search-cascader/src/utils/index.js +1 -11
- package/es/components/select-label/index.js +1 -15
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
- package/es/components/select-label/src/SelectLabel.vue.js +1 -6
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
- package/es/components/select-label/src/components/label-classify.vue.js +1 -132
- package/es/components/select-person/index.js +1 -10
- package/es/components/select-person/src/SelectPerson.vue.js +1 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
- package/es/components/select-person/src/utils/index.js +1 -58
- package/es/components/shortcut-provider/index.js +1 -12
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
- package/es/components/shortcut-provider/src/constants/index.js +1 -8
- package/es/components/shortcut-provider/src/hooks/index.js +1 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
- package/es/components/shortcut-provider/src/utils/index.js +1 -92
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
- package/es/components/steps-wheel/index.js +1 -10
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
- package/es/components/table-filter/index.js +1 -21
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
- package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
- package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
- package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
- package/es/components/table-filter/src/const/dataOptions.js +1 -107
- package/es/components/table-filter/src/const/index.js +1 -5
- package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
- package/es/components/table-filter/src/directive/preventReClick.js +1 -14
- package/es/components/table-filter/src/directive/resize.js +1 -12
- package/es/components/table-filter/src/hooks/export.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
- package/es/components/table-filter/src/hooks/useMixins.js +1 -532
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
- package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
- package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
- package/es/components/table-filter/src/tool/options.js +1 -200
- package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
- package/es/components/table-filter/src/tool/time-domain.js +1 -100
- package/es/components/table-filter/src/tool/transformData.js +1 -169
- package/es/components/table-filter/src/tool/utils.js +1 -29
- package/es/components/table-filter/src/types/enums.js +1 -67
- package/es/components/time-line/index.js +1 -10
- package/es/components/time-line/src/TimeLine.vue.js +1 -70
- package/es/components/vod-chunk-upload/index.js +1 -14
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
- package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
- package/es/shared/assets/img/failure.png.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +1 -3
- package/es/shared/assets/img/nodata.png.js +1 -3
- package/es/shared/assets/img/notfound.png.js +1 -3
- package/es/shared/assets/img/qr.png.js +1 -3
- package/es/shared/assets/img/success.png.js +1 -3
- package/es/shared/assets/img/video.png.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +1 -3
- package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
- package/es/shared/components/SelectPage/index.js +1 -2
- package/es/shared/components/SlotRender/SlotRender.js +1 -35
- package/es/shared/components/SlotRender/index.js +1 -2
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
- package/es/shared/components/SvgIcon/index.js +1 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
- package/es/shared/components/TextOverTooltip/index.js +1 -2
- package/es/shared/components/VueDraggable/index.js +1 -2
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
- package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
- package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
- package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
- package/es/shared/components/VueDraggable/src/util/console.js +1 -9
- package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
- package/es/shared/components/VueDraggable/src/util/string.js +1 -11
- package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
- package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
- package/es/shared/components/no-data/NoData.vue.js +1 -74
- package/es/shared/components/no-data/index.js +1 -2
- package/es/shared/components/player-vod/player.js +1 -121
- package/es/shared/components/player-vod/video-modal.js +1 -91
- package/es/shared/global/variable.js +1 -3
- package/es/shared/utils/anime.js +1 -129
- package/es/shared/utils/colorLog.js +1 -53
- package/es/shared/utils/index.js +1 -167
- package/es/shared/utils/loadViewer.js +1 -11
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
- package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
- package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
- package/es/shared/utils/tapable/Hook.js +1 -140
- package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
- package/es/shared/utils/tapable/SyncBailHook.js +1 -19
- package/es/shared/utils/tapable/SyncHook.js +1 -34
- package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
- package/es/shared/utils/utilExpand.js +1 -781
- package/es/shared/utils/vexutils.js +1 -59
- package/package.json +2 -2
|
@@ -1,1315 +1 @@
|
|
|
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 };
|
|
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};
|