cnhis-design-vue 3.1.40-beta.11 → 3.1.40-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/_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.d.ts +1 -1
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/src/FormConfig.vue.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +2 -1
- 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 +4 -21
- package/es/components/keyboard/index.js +1 -10
- package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -21
- package/es/components/keyboard/src/Keyboard.vue.js +1 -164
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +2 -19
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -94
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -21
- 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.d.ts +0 -3
- 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.d.ts +1 -1
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- 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.d.ts +3 -0
- 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.d.ts +4 -3
- 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/env.d.ts +24 -24
- 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
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,2038 +1 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, createCommentVNode, Fragment, renderList, toDisplayString, createBlock, withCtx, createVNode, createTextVNode, renderSlot, withDirectives, normalizeStyle, withModifiers, withKeys, vModelText, vShow, isRef } from 'vue';
|
|
2
|
-
import { TEAMS, DAYUNITS, EVALUATEList1, AGEOPTIONS, DATETEAM0, DATETEAM2, DATETEAM3 } from '../const/dataOptions.js';
|
|
3
|
-
import { useMessage, NTooltip, NTag, NIcon, NInput, NInputNumber, NRadioGroup, NRadioButton, NDatePicker, NSelect, NCheckboxGroup, NCheckbox, NRadio, NModal, NCard, NButton, NForm, NFormItem, NGrid, NGridItem } from 'naive-ui';
|
|
4
|
-
import { ChevronUp, ChevronDown, CloseOutline, AddOutline } from '@vicons/ionicons5';
|
|
5
|
-
import useMixins from '../hooks/useMixins.js';
|
|
6
|
-
import useTableSearchCon from '../hooks/useTableSearchCon.js';
|
|
7
|
-
import useWordBookutils from '../hooks/useWordBookutils.js';
|
|
8
|
-
import useRenderWidget from '../hooks/useRenderWidget.js';
|
|
9
|
-
import axios from 'axios';
|
|
10
|
-
import moment from 'moment';
|
|
11
|
-
import 'moment/locale/zh-cn';
|
|
12
|
-
import { cloneDeep } from 'lodash-es';
|
|
13
|
-
import script from '../../../../shared/components/SvgIcon/SvgIcon.vue.js';
|
|
14
|
-
import rangeAge from '../components/range-age/index.vue.js';
|
|
15
|
-
import multiSelect from '../components/multi-select/multi-select.vue.js';
|
|
16
|
-
import cTreeSelect from '../components/c-tree-select/tree-select.vue.js';
|
|
17
|
-
import RenderWidget from '../components/render-widget/index.vue.js';
|
|
18
|
-
import Resize from '../directive/resize.js';
|
|
19
|
-
import { handleLabelColor } from '../../../../shared/utils/vexutils.js';
|
|
20
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
21
|
-
import XEUtils from 'xe-utils';
|
|
22
|
-
|
|
23
|
-
const _hoisted_1 = {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "module-title"
|
|
26
|
-
};
|
|
27
|
-
const _hoisted_2 = { class: "quick-row" };
|
|
28
|
-
const _hoisted_3 = { class: "age-container" };
|
|
29
|
-
const _hoisted_4 = { class: "label-attr-container" };
|
|
30
|
-
const _hoisted_5 = { class: "edit-label" };
|
|
31
|
-
const _hoisted_6 = { class: "label-content" };
|
|
32
|
-
const _hoisted_7 = {
|
|
33
|
-
key: 0,
|
|
34
|
-
class: "label-unfold-btn"
|
|
35
|
-
};
|
|
36
|
-
const _hoisted_8 = ["onClick"];
|
|
37
|
-
const _hoisted_9 = /* @__PURE__ */ createElementVNode("span", null, "\u6536\u8D77", -1);
|
|
38
|
-
const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null, "\u5C55\u5F00", -1);
|
|
39
|
-
const _hoisted_11 = { class: "tag-evaluate" };
|
|
40
|
-
const _hoisted_12 = {
|
|
41
|
-
class: "ant-calendar-picker",
|
|
42
|
-
style: { "width": "300px" }
|
|
43
|
-
};
|
|
44
|
-
const _hoisted_13 = ["onUpdate:modelValue", "onKeyup", "title", "placeholder"];
|
|
45
|
-
const _hoisted_14 = /* @__PURE__ */ createElementVNode("span", { class: "ant-calendar-range-picker-separator" }, " ~ \xA0", -1);
|
|
46
|
-
const _hoisted_15 = ["onUpdate:modelValue", "title", "onKeyup", "placeholder"];
|
|
47
|
-
const _hoisted_16 = ["onClick"];
|
|
48
|
-
const _hoisted_17 = /* @__PURE__ */ createElementVNode("i", {
|
|
49
|
-
"aria-label": "\u56FE\u6807: close-circle",
|
|
50
|
-
tabindex: "-1",
|
|
51
|
-
class: "anticon anticon-close-circle ant-input-clear-icon"
|
|
52
|
-
}, [
|
|
53
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
54
|
-
viewBox: "64 64 896 896",
|
|
55
|
-
"data-icon": "close-circle",
|
|
56
|
-
width: "1em",
|
|
57
|
-
height: "1em",
|
|
58
|
-
fill: "currentColor",
|
|
59
|
-
"aria-hidden": "true",
|
|
60
|
-
focusable: "false",
|
|
61
|
-
class: ""
|
|
62
|
-
}, [
|
|
63
|
-
/* @__PURE__ */ createElementVNode("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" })
|
|
64
|
-
])
|
|
65
|
-
], -1);
|
|
66
|
-
const _hoisted_18 = [
|
|
67
|
-
_hoisted_17
|
|
68
|
-
];
|
|
69
|
-
const _hoisted_19 = { key: 3 };
|
|
70
|
-
const _hoisted_20 = ["onClick"];
|
|
71
|
-
const _hoisted_21 = { class: "check-date" };
|
|
72
|
-
const _hoisted_22 = { class: "age-wrap" };
|
|
73
|
-
const _hoisted_23 = /* @__PURE__ */ createElementVNode("p", null, "\u5E74\u9F84", -1);
|
|
74
|
-
const _hoisted_24 = ["onClick"];
|
|
75
|
-
const _hoisted_25 = { class: "module-title" };
|
|
76
|
-
const _hoisted_26 = { class: "quick-row" };
|
|
77
|
-
const _hoisted_27 = { key: 0 };
|
|
78
|
-
const _hoisted_28 = { class: "edit-label" };
|
|
79
|
-
const _hoisted_29 = { class: "edit-content" };
|
|
80
|
-
const _hoisted_30 = { class: "label-content" };
|
|
81
|
-
const _hoisted_31 = { class: "tag-evaluate" };
|
|
82
|
-
const _hoisted_32 = {
|
|
83
|
-
class: "ant-calendar-picker",
|
|
84
|
-
style: { "width": "300px" }
|
|
85
|
-
};
|
|
86
|
-
const _hoisted_33 = ["onUpdate:modelValue", "onKeyup", "title", "placeholder"];
|
|
87
|
-
const _hoisted_34 = /* @__PURE__ */ createElementVNode("span", { class: "ant-calendar-range-picker-separator" }, " ~ \xA0", -1);
|
|
88
|
-
const _hoisted_35 = ["onUpdate:modelValue", "title", "onKeyup", "placeholder"];
|
|
89
|
-
const _hoisted_36 = ["onClick"];
|
|
90
|
-
const _hoisted_37 = /* @__PURE__ */ createElementVNode("i", {
|
|
91
|
-
"aria-label": "\u56FE\u6807: close-circle",
|
|
92
|
-
tabindex: "-1",
|
|
93
|
-
class: "anticon anticon-close-circle ant-input-clear-icon"
|
|
94
|
-
}, [
|
|
95
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
96
|
-
viewBox: "64 64 896 896",
|
|
97
|
-
"data-icon": "close-circle",
|
|
98
|
-
width: "1em",
|
|
99
|
-
height: "1em",
|
|
100
|
-
fill: "currentColor",
|
|
101
|
-
"aria-hidden": "true",
|
|
102
|
-
focusable: "false",
|
|
103
|
-
class: ""
|
|
104
|
-
}, [
|
|
105
|
-
/* @__PURE__ */ createElementVNode("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" })
|
|
106
|
-
])
|
|
107
|
-
], -1);
|
|
108
|
-
const _hoisted_38 = [
|
|
109
|
-
_hoisted_37
|
|
110
|
-
];
|
|
111
|
-
const _hoisted_39 = /* @__PURE__ */ createElementVNode("span", { class: "ant-calendar-picker-icon" }, null, -1);
|
|
112
|
-
const _hoisted_40 = { key: 3 };
|
|
113
|
-
const _hoisted_41 = ["onClick"];
|
|
114
|
-
const _hoisted_42 = { class: "check-date" };
|
|
115
|
-
const _hoisted_43 = { class: "svg-wrap" };
|
|
116
|
-
const _hoisted_44 = ["onDblclick", "onClick"];
|
|
117
|
-
const _hoisted_45 = {
|
|
118
|
-
key: 0,
|
|
119
|
-
class: "s-content"
|
|
120
|
-
};
|
|
121
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
122
|
-
__name: "QuickSearch",
|
|
123
|
-
props: {
|
|
124
|
-
visible: { type: Boolean },
|
|
125
|
-
searchFieldList: {
|
|
126
|
-
type: Array,
|
|
127
|
-
default: () => []
|
|
128
|
-
},
|
|
129
|
-
searchFieldLimit: {
|
|
130
|
-
type: Object,
|
|
131
|
-
default: () => ({})
|
|
132
|
-
},
|
|
133
|
-
quickSearchConfig: {
|
|
134
|
-
type: Array,
|
|
135
|
-
default: () => []
|
|
136
|
-
},
|
|
137
|
-
source: {
|
|
138
|
-
type: String,
|
|
139
|
-
default: "editTable"
|
|
140
|
-
},
|
|
141
|
-
quickSearchListObj: {
|
|
142
|
-
type: Object,
|
|
143
|
-
default: () => ({})
|
|
144
|
-
},
|
|
145
|
-
originConditionList: {
|
|
146
|
-
type: Array,
|
|
147
|
-
default: () => []
|
|
148
|
-
},
|
|
149
|
-
isOrgAdmin: {
|
|
150
|
-
type: Boolean,
|
|
151
|
-
default: false
|
|
152
|
-
},
|
|
153
|
-
lastQuickSearchData: {
|
|
154
|
-
type: Array,
|
|
155
|
-
default: () => []
|
|
156
|
-
},
|
|
157
|
-
show: { type: Boolean },
|
|
158
|
-
getFilterData: { type: Function },
|
|
159
|
-
filterApiConfig: { type: Object }
|
|
160
|
-
},
|
|
161
|
-
emits: [
|
|
162
|
-
"filterCountChange",
|
|
163
|
-
"onSave",
|
|
164
|
-
"closeModal",
|
|
165
|
-
"updateTableCondiTion",
|
|
166
|
-
"clearQuickSearchConfig"
|
|
167
|
-
],
|
|
168
|
-
setup(__props, { expose, emit }) {
|
|
169
|
-
const props = __props;
|
|
170
|
-
const rules = {
|
|
171
|
-
classname: {
|
|
172
|
-
required: true,
|
|
173
|
-
message: "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",
|
|
174
|
-
trigger: ["input", "blur"]
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
axios.create({});
|
|
178
|
-
const attrs = useAttrs();
|
|
179
|
-
const $message = useMessage();
|
|
180
|
-
const { handleGetConfigApi } = useMixins();
|
|
181
|
-
const { validConObj, getSearchDefValueByLimit, formatSearchLimit } = useTableSearchCon();
|
|
182
|
-
const { wordBookutils } = useWordBookutils();
|
|
183
|
-
const { isRender, getDefValByRenderWidget, initRenderWidgetCfg, getRenderSearchConObj, getDefValByRenderConObj, isExistDefValByRenderWidget, resetRenderWidgetValue } = useRenderWidget();
|
|
184
|
-
const ageAttrDomList = ref(/* @__PURE__ */ new Map());
|
|
185
|
-
const formRef = ref(null);
|
|
186
|
-
const formValue = ref({ classname: "" });
|
|
187
|
-
let modalVisible = ref(props.visible);
|
|
188
|
-
let showInner = ref(false);
|
|
189
|
-
let quickSearch = ref([]);
|
|
190
|
-
let relationTableList = ref([]);
|
|
191
|
-
let relationQuickSearch = ref([]);
|
|
192
|
-
let searchItem = ref({});
|
|
193
|
-
let curWordbookData = ref();
|
|
194
|
-
let curAutograph = ref("");
|
|
195
|
-
let dateTeam = ref(TEAMS);
|
|
196
|
-
let birthdayTeam = ref([]);
|
|
197
|
-
let limit_date = ref("");
|
|
198
|
-
let birthdayUnits = ref(DAYUNITS);
|
|
199
|
-
let isChangeWindow = ref(false);
|
|
200
|
-
let modalWidth = ref("700px");
|
|
201
|
-
let modalHeight = ref("60vh");
|
|
202
|
-
let EVALUATEList = ref(EVALUATEList1);
|
|
203
|
-
ref(AGEOPTIONS);
|
|
204
|
-
ref(8);
|
|
205
|
-
let parentNames = ref([]);
|
|
206
|
-
let showAdd = ref(false);
|
|
207
|
-
let addVal = ref("");
|
|
208
|
-
let fetchingWordbook = ref(false);
|
|
209
|
-
let dateTeam0 = ref(DATETEAM0);
|
|
210
|
-
let dateTeam2 = ref(DATETEAM2);
|
|
211
|
-
let dateTeam3 = ref(DATETEAM3);
|
|
212
|
-
let showPercent = computed(() => {
|
|
213
|
-
return function(item) {
|
|
214
|
-
var _a;
|
|
215
|
-
return ((_a = item.settingObj) == null ? void 0 : _a.attr) === "PERCENTAGE" || false;
|
|
216
|
-
};
|
|
217
|
-
});
|
|
218
|
-
let getEleWidth = computed(() => {
|
|
219
|
-
return function(item) {
|
|
220
|
-
return `${item.advanceColWidth || 200}px`;
|
|
221
|
-
};
|
|
222
|
-
});
|
|
223
|
-
let hasRelationQuickSearch = computed(() => {
|
|
224
|
-
return relationQuickSearch.value.findIndex((item) => item.fieldList && item.fieldList.length) != -1;
|
|
225
|
-
});
|
|
226
|
-
let parentNamesHasAdd = computed(() => {
|
|
227
|
-
if (!parentNames.value.length)
|
|
228
|
-
return false;
|
|
229
|
-
return parentNames.value.some((v) => v.isAdd);
|
|
230
|
-
});
|
|
231
|
-
let handleName = computed(() => {
|
|
232
|
-
return (item, key = "name") => {
|
|
233
|
-
return item.alias || item[key];
|
|
234
|
-
};
|
|
235
|
-
});
|
|
236
|
-
function filterOption(...arg) {
|
|
237
|
-
return XEUtils.filterOption(...arg);
|
|
238
|
-
}
|
|
239
|
-
function handleLabelColorFn(...arg) {
|
|
240
|
-
return handleLabelColor(...arg);
|
|
241
|
-
}
|
|
242
|
-
function init() {
|
|
243
|
-
quickSearch.value = [];
|
|
244
|
-
relationQuickSearch.value = [];
|
|
245
|
-
birthdayTeam.value = dateTeam.value.filter((item) => item.con != "THIS_YEAR" && item.con != "NEXT_YEAR" && item.con != "LAST_YEAR");
|
|
246
|
-
let copyList = cloneDeep(props.searchFieldList);
|
|
247
|
-
let mySearchFieldList = copyList.filter((item) => item.isShowSearch == 1 && item.filterExplicit != 1) || [];
|
|
248
|
-
let relationTableListVal = cloneDeep(relationTableList.value);
|
|
249
|
-
relationQuickSearch.value = relationTableListVal.map((item) => {
|
|
250
|
-
return {
|
|
251
|
-
fieldList: item.fieldList.fieldList.filter((field) => field.isShowSearch == 1 && field.filterExplicit != 1),
|
|
252
|
-
tableName: item.tableName,
|
|
253
|
-
primaryField: item.primaryField,
|
|
254
|
-
parameterConversionId: item.parameterConversionId,
|
|
255
|
-
tableId: item.tableId,
|
|
256
|
-
relationField: item.relationField,
|
|
257
|
-
converFun: item.converFun,
|
|
258
|
-
relationOrgId: item.relationOrgId,
|
|
259
|
-
preConObj: item.preConObj,
|
|
260
|
-
preSqlExpression: item.preSqlExpression
|
|
261
|
-
};
|
|
262
|
-
});
|
|
263
|
-
quickSearch.value = mySearchFieldList || [];
|
|
264
|
-
handlerInitSearchItem(quickSearch.value);
|
|
265
|
-
relationQuickSearch.value.forEach((item) => {
|
|
266
|
-
handlerInitSearchItem(item.fieldList);
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
function handleParentName() {
|
|
270
|
-
let parentNamesResult = [];
|
|
271
|
-
let { displayCategoryList = [] } = props.quickSearchListObj;
|
|
272
|
-
if (!displayCategoryList || !displayCategoryList.length) {
|
|
273
|
-
parentNames.value = [];
|
|
274
|
-
return;
|
|
275
|
-
}
|
|
276
|
-
displayCategoryList.forEach((item) => {
|
|
277
|
-
if (item !== "\u672A\u5206\u7C7B") {
|
|
278
|
-
parentNamesResult.push({
|
|
279
|
-
disabled: true,
|
|
280
|
-
selected: false,
|
|
281
|
-
value: item
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
parentNames.value = parentNamesResult;
|
|
286
|
-
}
|
|
287
|
-
function setDefaultCon(val) {
|
|
288
|
-
if (!val.length) {
|
|
289
|
-
quickSearch.value.forEach((item, index) => {
|
|
290
|
-
if (isRender(item)) {
|
|
291
|
-
quickSearch.value[index].value = getDefValByRenderWidget(item);
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
let advanceOptionSetting = item == null ? void 0 : item.advanceOptionSetting;
|
|
295
|
-
let optionSetting0 = String(advanceOptionSetting) == "0";
|
|
296
|
-
if (optionSetting0) {
|
|
297
|
-
quickSearch.value[index].value = void 0;
|
|
298
|
-
} else {
|
|
299
|
-
if (item.CONVERT && Array.isArray(item.CONVERT)) {
|
|
300
|
-
quickSearch.value[index].CONVERT = [];
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
return false;
|
|
305
|
-
}
|
|
306
|
-
quickSearch.value.forEach((item, index) => {
|
|
307
|
-
var _a;
|
|
308
|
-
let advanceOptionSetting = item == null ? void 0 : item.advanceOptionSetting;
|
|
309
|
-
let optionSetting0 = String(advanceOptionSetting) == "0";
|
|
310
|
-
let find = val.find((valItem) => valItem.field_key === item.columnName);
|
|
311
|
-
if (find) {
|
|
312
|
-
if (isRender(item)) {
|
|
313
|
-
quickSearch.value[index].value = getDefValByRenderConObj(find, item);
|
|
314
|
-
return;
|
|
315
|
-
}
|
|
316
|
-
let findValue = find == null ? void 0 : find.value;
|
|
317
|
-
if (Array.isArray(findValue) && item.CONVERT && Array.isArray(item.CONVERT)) {
|
|
318
|
-
let value = ((_a = findValue.map) == null ? void 0 : _a.call(findValue, (itemFind) => JSON.stringify(itemFind))) || find.value;
|
|
319
|
-
value = value.filter(Boolean);
|
|
320
|
-
quickSearch.value[index].CONVERT = value;
|
|
321
|
-
if (optionSetting0 && item.labelList) {
|
|
322
|
-
let i = value[0] ? item.labelList.findIndex((v) => v.value == value[0]) : "";
|
|
323
|
-
quickSearch.value[index].value = i;
|
|
324
|
-
}
|
|
325
|
-
} else {
|
|
326
|
-
quickSearch.value[index].value = findValue;
|
|
327
|
-
}
|
|
328
|
-
} else {
|
|
329
|
-
quickSearch.value[index].CONVERT = optionSetting0 ? "" : [];
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
function handlerInitSearchItem(arr) {
|
|
334
|
-
if (!Array.isArray(arr))
|
|
335
|
-
return;
|
|
336
|
-
arr.forEach((el) => {
|
|
337
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
338
|
-
if (initRenderWidgetCfg(el))
|
|
339
|
-
return;
|
|
340
|
-
const isPreciseSearch = ((_a = el == null ? void 0 : el.settingObj) == null ? void 0 : _a.isPreciseSearch) || "";
|
|
341
|
-
if (el.setting) {
|
|
342
|
-
el.setting = typeof el.setting == "string" ? JSON.parse(el.setting) : el.setting;
|
|
343
|
-
let advanceOptionSetting = el == null ? void 0 : el.advanceOptionSetting;
|
|
344
|
-
let optionSetting0 = String(advanceOptionSetting) == "0";
|
|
345
|
-
let wordbookId = (_c = (_b = el == null ? void 0 : el.setting) == null ? void 0 : _b.wordbook) == null ? void 0 : _c.id;
|
|
346
|
-
if (XEUtils.anyNotEmpty((_d = el.setting) == null ? void 0 : _d.wordbook) && wordbookId) {
|
|
347
|
-
let isTree = "tree" === ((_f = (_e = el == null ? void 0 : el.setting) == null ? void 0 : _e.wordbook) == null ? void 0 : _f.showType);
|
|
348
|
-
let comType = isTree ? "treeSelect" : "SelectMuiWordBook";
|
|
349
|
-
let defVal = [];
|
|
350
|
-
if (optionSetting0) {
|
|
351
|
-
defVal = void 0;
|
|
352
|
-
}
|
|
353
|
-
el.con = "QUOTE";
|
|
354
|
-
el.dataSource = [];
|
|
355
|
-
el.QUOTE = [];
|
|
356
|
-
el.value = defVal;
|
|
357
|
-
el.com = "SelectMui";
|
|
358
|
-
el.comType = comType;
|
|
359
|
-
el.searchPageConfig = {
|
|
360
|
-
keyword: void 0,
|
|
361
|
-
isRequest: false,
|
|
362
|
-
page: 1,
|
|
363
|
-
total: 1,
|
|
364
|
-
hasNextPage: false
|
|
365
|
-
};
|
|
366
|
-
return;
|
|
367
|
-
} else if (((_g = el == null ? void 0 : el.setting) == null ? void 0 : _g.showSetting) && (el == null ? void 0 : el.setting.showSetting.length) > 0) {
|
|
368
|
-
el.con = "CONVERT";
|
|
369
|
-
let showSetting = el.setting.showSetting;
|
|
370
|
-
let dictionItem = handleDictionDef(el);
|
|
371
|
-
if (dictionItem) {
|
|
372
|
-
showSetting.unshift(dictionItem);
|
|
373
|
-
}
|
|
374
|
-
showSetting.forEach((set) => {
|
|
375
|
-
set.label = set.change_text;
|
|
376
|
-
set.value = JSON.stringify(set.filter);
|
|
377
|
-
});
|
|
378
|
-
if (optionSetting0) {
|
|
379
|
-
el.com = "SelectMui";
|
|
380
|
-
el.comType = "SelectMui";
|
|
381
|
-
const labelList = el.setting.showSetting.map((i) => {
|
|
382
|
-
i.labelName = i.change_text;
|
|
383
|
-
return i;
|
|
384
|
-
});
|
|
385
|
-
el.labelList = labelList;
|
|
386
|
-
}
|
|
387
|
-
el.setting["showSetting"] = showSetting;
|
|
388
|
-
el.CONVERT = optionSetting0 ? "" : [];
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
if (((_h = el.setting) == null ? void 0 : _h.attr) === "LABEL") {
|
|
393
|
-
el.con = "CL";
|
|
394
|
-
el.LABELAttr = true;
|
|
395
|
-
el.labelSelectList = [];
|
|
396
|
-
el.inputVal = "";
|
|
397
|
-
handleSetLabelOptions(el.setting.labelType, el);
|
|
398
|
-
} else if (((_i = el.setting) == null ? void 0 : _i.attr) === "EVALUATE") {
|
|
399
|
-
el.con = "CL";
|
|
400
|
-
el.selecteds = [];
|
|
401
|
-
el.EVALUATEAttr = true;
|
|
402
|
-
} else if (((_j = el.setting) == null ? void 0 : _j.attr) === "AGE" && el.fieldType != "NUMBER") {
|
|
403
|
-
let format = el.setting.format || "YYYY-MM-DD";
|
|
404
|
-
format = format.toUpperCase();
|
|
405
|
-
el.con = "IN";
|
|
406
|
-
el.ageObj = {};
|
|
407
|
-
el.format = format;
|
|
408
|
-
el.AGEAttr = true;
|
|
409
|
-
} else if (((_k = el.setting) == null ? void 0 : _k.attr) === "PASSWORD") {
|
|
410
|
-
el.comAttr = "PASSWORD";
|
|
411
|
-
el.PASSWORDTYPE = true;
|
|
412
|
-
} else if (el.fieldType == "NUMBER") {
|
|
413
|
-
el.con = "EQ";
|
|
414
|
-
el.EQ = "";
|
|
415
|
-
el.NUMBERFiled = true;
|
|
416
|
-
el.lessValue = "";
|
|
417
|
-
el.bigValue = "";
|
|
418
|
-
if (((_l = el.setting) == null ? void 0 : _l.attr) == "PERCENTAGE") {
|
|
419
|
-
el.inputUnit = "%";
|
|
420
|
-
}
|
|
421
|
-
} else if ((_m = el == null ? void 0 : el.fieldType) == null ? void 0 : _m.includes("DATE")) {
|
|
422
|
-
if (el.settingObj && el.settingObj.attr == "BIRTHDAY") {
|
|
423
|
-
el.con = "BIRTHDAY";
|
|
424
|
-
el.showDate = false;
|
|
425
|
-
el.marginx = "ml";
|
|
426
|
-
el.BIRTHDAY = initBirthdayParams();
|
|
427
|
-
} else {
|
|
428
|
-
const value = getSearchDefValueByLimit(el, props.searchFieldLimit);
|
|
429
|
-
let hasValue = Array.isArray(value);
|
|
430
|
-
let advanceOptionSetting = el == null ? void 0 : el.advanceOptionSetting;
|
|
431
|
-
let optionSetting1 = String(advanceOptionSetting) == "1";
|
|
432
|
-
el.con = "DATE";
|
|
433
|
-
el.showDate = optionSetting1 || hasValue;
|
|
434
|
-
el.marginx = optionSetting1 || hasValue ? "mr" : "ml";
|
|
435
|
-
el.DATE = {
|
|
436
|
-
con: hasValue ? "IN" : null,
|
|
437
|
-
start_val: hasValue ? value[0] : null,
|
|
438
|
-
end_val: hasValue ? value[1] : null
|
|
439
|
-
};
|
|
440
|
-
let dateTeamVal = [];
|
|
441
|
-
switch (advanceOptionSetting) {
|
|
442
|
-
case "0":
|
|
443
|
-
dateTeamVal = [];
|
|
444
|
-
break;
|
|
445
|
-
case "2":
|
|
446
|
-
dateTeamVal = (dateTeam2 == null ? void 0 : dateTeam2.value) || dateTeam0.value;
|
|
447
|
-
break;
|
|
448
|
-
case "3":
|
|
449
|
-
dateTeamVal = (dateTeam3 == null ? void 0 : dateTeam3.value) || dateTeam0.value;
|
|
450
|
-
break;
|
|
451
|
-
}
|
|
452
|
-
el.dateTeam = dateTeamVal;
|
|
453
|
-
}
|
|
454
|
-
} else if (el.fieldType == "TEXT") {
|
|
455
|
-
let con = isPreciseSearch == 1 ? "EQ" : "CL";
|
|
456
|
-
el.con = con;
|
|
457
|
-
el.isPreciseSearch = isPreciseSearch == 1;
|
|
458
|
-
} else if (el.fieldType == "JSONB") {
|
|
459
|
-
el.con = "EQ";
|
|
460
|
-
el.EQ = "";
|
|
461
|
-
}
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
function handleDictionDef(el) {
|
|
465
|
-
let { defaultValue, defaultValueTitle } = (el == null ? void 0 : el.dictionarieObj) || {};
|
|
466
|
-
let dictionItem = null;
|
|
467
|
-
if (defaultValue && defaultValueTitle) {
|
|
468
|
-
dictionItem = {
|
|
469
|
-
change_text: defaultValueTitle,
|
|
470
|
-
filter: [
|
|
471
|
-
{
|
|
472
|
-
con: "EQ",
|
|
473
|
-
field_key: el.columnName,
|
|
474
|
-
value: defaultValue
|
|
475
|
-
}
|
|
476
|
-
]
|
|
477
|
-
};
|
|
478
|
-
}
|
|
479
|
-
return dictionItem;
|
|
480
|
-
}
|
|
481
|
-
function checkDate(item) {
|
|
482
|
-
item.showDate = !item.showDate;
|
|
483
|
-
item.showDate ? item.marginx = "mr" : item.marginx = "ml";
|
|
484
|
-
}
|
|
485
|
-
function checkBirthDay(item) {
|
|
486
|
-
item.showDate = !item.showDate;
|
|
487
|
-
}
|
|
488
|
-
function getWordbookData(o, obj) {
|
|
489
|
-
let { id, filterKeys, wordbookType } = o;
|
|
490
|
-
fetchingWordbook.value = true;
|
|
491
|
-
let resFieldKeys = Array.isArray(filterKeys) ? JSON.stringify(filterKeys) : filterKeys;
|
|
492
|
-
let params = {
|
|
493
|
-
wordbookId: id,
|
|
494
|
-
fieldKeys: resFieldKeys,
|
|
495
|
-
wordbookType: wordbookType || "WORDBOOK",
|
|
496
|
-
asyncCount: 1,
|
|
497
|
-
...obj
|
|
498
|
-
};
|
|
499
|
-
return handleGetConfigApi(params, "requestGetWordbookData", { fields: o }, props.filterApiConfig).then((res) => {
|
|
500
|
-
fetchingWordbook.value = false;
|
|
501
|
-
if (typeof res.data === "object") {
|
|
502
|
-
res.data.reqParams = params;
|
|
503
|
-
}
|
|
504
|
-
return res;
|
|
505
|
-
}).catch(() => {
|
|
506
|
-
fetchingWordbook.value = false;
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
function handleWordbookData(item, data, params) {
|
|
510
|
-
item.hasFieldList = false;
|
|
511
|
-
const { rows, hasFieldList, searchPageConfig } = wordBookutils.handleWordbookData(item, data, params);
|
|
512
|
-
item.hasFieldList = hasFieldList;
|
|
513
|
-
item.dataSource = rows;
|
|
514
|
-
item.searchPageConfig = Object.assign(item.searchPageConfig, searchPageConfig);
|
|
515
|
-
}
|
|
516
|
-
function filterChange() {
|
|
517
|
-
}
|
|
518
|
-
function maxTagPlaceholder(item) {
|
|
519
|
-
if (Array.isArray(item.value)) {
|
|
520
|
-
return item.value.length;
|
|
521
|
-
} else {
|
|
522
|
-
return 1;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
function dropdownVisibleChange(open, item) {
|
|
526
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
527
|
-
if (item.comType == "SelectMui" && String(item.advanceOptionSetting) === "0")
|
|
528
|
-
return;
|
|
529
|
-
if (open) {
|
|
530
|
-
let obj = {};
|
|
531
|
-
if ((_b = (_a = item.setting) == null ? void 0 : _a.wordbook) == null ? void 0 : _b.params) {
|
|
532
|
-
(_e = (_d = (_c = item.setting) == null ? void 0 : _c.wordbook) == null ? void 0 : _d.params) == null ? void 0 : _e.forEach((item1) => {
|
|
533
|
-
obj[item1.p_name] = item1.p_value;
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
if (item.settingObj.wordbook) {
|
|
537
|
-
obj.autograph = item.settingObj.wordbook.autograph;
|
|
538
|
-
}
|
|
539
|
-
curWordbookData.value = (_f = item.setting) == null ? void 0 : _f.wordbook;
|
|
540
|
-
curAutograph.value = item.settingObj.wordbook && item.settingObj.wordbook.autograph;
|
|
541
|
-
searchItem.value = item;
|
|
542
|
-
getWordbookData((_g = item.setting) == null ? void 0 : _g.wordbook, obj).then(({ data }) => {
|
|
543
|
-
handleWordbookData(item, data, obj);
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
function handleSearch(value, item, config = {}) {
|
|
548
|
-
var _a, _b, _c, _d, _e;
|
|
549
|
-
if (item.comType == "SelectMui" && String(item.advanceOptionSetting) === "0")
|
|
550
|
-
return;
|
|
551
|
-
let params = {
|
|
552
|
-
keyword: value,
|
|
553
|
-
autograph: curAutograph.value
|
|
554
|
-
};
|
|
555
|
-
let obj = {};
|
|
556
|
-
let p = ((_b = (_a = item == null ? void 0 : item.setting) == null ? void 0 : _a.wordbook) == null ? void 0 : _b.params) || void 0;
|
|
557
|
-
if (p) {
|
|
558
|
-
(_e = (_d = (_c = item.setting) == null ? void 0 : _c.wordbook) == null ? void 0 : _d.params) == null ? void 0 : _e.forEach((item1) => {
|
|
559
|
-
obj[item1.p_name] = item1.p_value;
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
let rp = { ...params, ...obj, ...config };
|
|
563
|
-
getWordbookData(curWordbookData.value, rp).then(({ data }) => {
|
|
564
|
-
handleWordbookData(searchItem.value, data, rp);
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
function onSave() {
|
|
568
|
-
let mergeConObj = getMergeConObj();
|
|
569
|
-
resetChangeWindow();
|
|
570
|
-
if (!validConObj(mergeConObj, props.searchFieldList, props.searchFieldLimit))
|
|
571
|
-
return false;
|
|
572
|
-
emit("onSave", mergeConObj);
|
|
573
|
-
return quickSearch.value;
|
|
574
|
-
}
|
|
575
|
-
function getMergeConObj() {
|
|
576
|
-
let conObj = getConObjParams() || [];
|
|
577
|
-
let mergeConObj = [...conObj];
|
|
578
|
-
props.quickSearchConfig.forEach((i) => {
|
|
579
|
-
let find = mergeConObj.find((j) => {
|
|
580
|
-
return i.field_key === j.field_key;
|
|
581
|
-
});
|
|
582
|
-
if (!find && !quickSearch.value.find((item) => {
|
|
583
|
-
return item.columnName === i.field_key;
|
|
584
|
-
})) {
|
|
585
|
-
mergeConObj.push(i);
|
|
586
|
-
}
|
|
587
|
-
});
|
|
588
|
-
return mergeConObj || [];
|
|
589
|
-
}
|
|
590
|
-
function getConObjParams() {
|
|
591
|
-
let conObj = getConObj(quickSearch.value) || [];
|
|
592
|
-
let realation = [];
|
|
593
|
-
relationQuickSearch.value.forEach((item) => {
|
|
594
|
-
let curQuote = getConObj(item.fieldList);
|
|
595
|
-
if (curQuote && curQuote.length) {
|
|
596
|
-
realation.push({
|
|
597
|
-
field_key: item.primaryField,
|
|
598
|
-
valueField: item.relationField,
|
|
599
|
-
con: "QUOTE_IN",
|
|
600
|
-
tableId: item.tableId,
|
|
601
|
-
parameterConversionId: item.parameterConversionId,
|
|
602
|
-
converFun: item.converFun,
|
|
603
|
-
preConObj: item.preConObj,
|
|
604
|
-
relationOrgId: item.relationOrgId,
|
|
605
|
-
preSqlExpression: item.preSqlExpression,
|
|
606
|
-
quote_con: {
|
|
607
|
-
conObj: getConObj(item.fieldList),
|
|
608
|
-
sqlExpression: ""
|
|
609
|
-
}
|
|
610
|
-
});
|
|
611
|
-
}
|
|
612
|
-
});
|
|
613
|
-
conObj.push(...realation);
|
|
614
|
-
return conObj || [];
|
|
615
|
-
}
|
|
616
|
-
function closeModal() {
|
|
617
|
-
resetChangeWindow();
|
|
618
|
-
emit("closeModal");
|
|
619
|
-
}
|
|
620
|
-
function resetChangeWindow() {
|
|
621
|
-
modalWidth.value = "700px";
|
|
622
|
-
modalHeight.value = "60vh";
|
|
623
|
-
isChangeWindow.value = false;
|
|
624
|
-
}
|
|
625
|
-
function openSaveToCalss() {
|
|
626
|
-
let conObj = getConObjParams();
|
|
627
|
-
console.log("conObj>>>>>", conObj);
|
|
628
|
-
if (!conObj)
|
|
629
|
-
return;
|
|
630
|
-
if (conObj.length > 0) {
|
|
631
|
-
if (!validConObj(conObj, props.searchFieldList, props.searchFieldLimit))
|
|
632
|
-
return;
|
|
633
|
-
showInner.value = true;
|
|
634
|
-
} else {
|
|
635
|
-
$message.warning("\u8BF7\u8BBE\u7F6E\u641C\u7D22\u6761\u4EF6");
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
function getConObj(arr) {
|
|
639
|
-
var _a, _b, _c, _d, _e, _f;
|
|
640
|
-
if (!Array.isArray(arr)) {
|
|
641
|
-
return [];
|
|
642
|
-
}
|
|
643
|
-
let conObj = [];
|
|
644
|
-
for (let i = 0; i < arr.length; i++) {
|
|
645
|
-
let item = arr[i];
|
|
646
|
-
const renderConObj = getRenderSearchConObj(item);
|
|
647
|
-
if (renderConObj) {
|
|
648
|
-
conObj.push(renderConObj);
|
|
649
|
-
continue;
|
|
650
|
-
}
|
|
651
|
-
let value = "";
|
|
652
|
-
let limit_date_result = "";
|
|
653
|
-
let advanceOptionSetting = item == null ? void 0 : item.advanceOptionSetting;
|
|
654
|
-
let optionSetting0 = String(advanceOptionSetting) === "0";
|
|
655
|
-
if (item.EQ || item.CL) {
|
|
656
|
-
value = item.EQ || item.CL;
|
|
657
|
-
if (((_a = item.settingObj) == null ? void 0 : _a.attr) === "PERCENTAGE") {
|
|
658
|
-
value = Number(value) / 100;
|
|
659
|
-
}
|
|
660
|
-
if (item.EVALUATEAttr) {
|
|
661
|
-
value = item.selecteds.join("|#|");
|
|
662
|
-
}
|
|
663
|
-
} else if (item.comType == "SelectMui" && optionSetting0 && item.labelList) {
|
|
664
|
-
let i2 = item.value;
|
|
665
|
-
let c = item == null ? void 0 : item.labelList[i2];
|
|
666
|
-
if (item.con == "CONVERT") {
|
|
667
|
-
value = (c == null ? void 0 : c.filter) ? [c == null ? void 0 : c.filter] : void 0;
|
|
668
|
-
} else {
|
|
669
|
-
value = (c == null ? void 0 : c.labelName) ? [c == null ? void 0 : c.labelName] : void 0;
|
|
670
|
-
}
|
|
671
|
-
} else if (item.con == "QUOTE" && XEUtils.anyNotEmpty(item.value)) {
|
|
672
|
-
if (item.comType == "treeSelect") {
|
|
673
|
-
let cval = item.value;
|
|
674
|
-
if (typeof cval === "string") {
|
|
675
|
-
[cval] = cval.split("<&=&>");
|
|
676
|
-
value = cval;
|
|
677
|
-
} else if (Array.isArray(cval)) {
|
|
678
|
-
cval = cval.map((v) => {
|
|
679
|
-
let [k] = typeof v === "string" ? v.split("<&=&>") : [];
|
|
680
|
-
return k;
|
|
681
|
-
});
|
|
682
|
-
value = cval.join("|#|");
|
|
683
|
-
}
|
|
684
|
-
} else {
|
|
685
|
-
value = optionSetting0 ? item.value : item.value.join("|#|");
|
|
686
|
-
}
|
|
687
|
-
} else if (XEUtils.anyNotEmpty(item.CONVERT) && Array.isArray(item.CONVERT)) {
|
|
688
|
-
value = item.CONVERT.map((c_item) => {
|
|
689
|
-
if (c_item && XEUtils.isJSON(c_item)) {
|
|
690
|
-
return JSON.parse(c_item);
|
|
691
|
-
}
|
|
692
|
-
return c_item;
|
|
693
|
-
});
|
|
694
|
-
} else if (item.DATE && !item.AGEAttr) {
|
|
695
|
-
if (item.DATE.start_val || item.DATE.end_val) {
|
|
696
|
-
item.DATE.con = "IN";
|
|
697
|
-
}
|
|
698
|
-
item.tempCon = item.DATE.con;
|
|
699
|
-
item.start_val = item.DATE.start_val || null;
|
|
700
|
-
item.end_val = item.DATE.end_val || null;
|
|
701
|
-
} else if (item.BIRTHDAY) {
|
|
702
|
-
let isChange = false;
|
|
703
|
-
if (((_c = (_b = item.BIRTHDAY) == null ? void 0 : _b.limit_date) == null ? void 0 : _c.length) > 0 || item.BIRTHDAY.start_val || item.BIRTHDAY.end_val) {
|
|
704
|
-
item.BIRTHDAY.con = "IN";
|
|
705
|
-
}
|
|
706
|
-
item.tempCon = item.BIRTHDAY.con;
|
|
707
|
-
if (item.BIRTHDAY.start_val || item.BIRTHDAY.end_val) {
|
|
708
|
-
isChange = true;
|
|
709
|
-
} else {
|
|
710
|
-
isChange = false;
|
|
711
|
-
}
|
|
712
|
-
if (item.BIRTHDAY.start_val) {
|
|
713
|
-
let res2 = XEUtils.validateBirthday(
|
|
714
|
-
item.BIRTHDAY.start_val,
|
|
715
|
-
item.title,
|
|
716
|
-
item.BIRTHDAY.unit
|
|
717
|
-
);
|
|
718
|
-
if (!res2)
|
|
719
|
-
return;
|
|
720
|
-
}
|
|
721
|
-
if (item.BIRTHDAY.end_val) {
|
|
722
|
-
let res2 = XEUtils.validateBirthday(
|
|
723
|
-
item.BIRTHDAY.end_val,
|
|
724
|
-
item.title,
|
|
725
|
-
item.BIRTHDAY.unit
|
|
726
|
-
);
|
|
727
|
-
if (!res2)
|
|
728
|
-
return;
|
|
729
|
-
}
|
|
730
|
-
if (+item.BIRTHDAY.start_val > +item.BIRTHDAY.end_val) {
|
|
731
|
-
$message.warning(`${item.title}\u8BF7\u8F93\u5165\u6709\u6548\u8303\u56F4`);
|
|
732
|
-
return;
|
|
733
|
-
}
|
|
734
|
-
limit_date_result = limit_date.value || "";
|
|
735
|
-
item.unit = isChange ? item.BIRTHDAY.unit || "" : "";
|
|
736
|
-
item.start_val = item.BIRTHDAY.start_val || null;
|
|
737
|
-
item.end_val = item.BIRTHDAY.end_val || null;
|
|
738
|
-
}
|
|
739
|
-
if (item.LABELAttr) {
|
|
740
|
-
if (Object.keys(item.labelObj || {}).length > 0 && Array.isArray(item.labelSelectList)) {
|
|
741
|
-
let valList = [];
|
|
742
|
-
item.labelSelectList.forEach((v) => {
|
|
743
|
-
valList.push(v.labelName);
|
|
744
|
-
});
|
|
745
|
-
value = valList.join("|#|");
|
|
746
|
-
} else {
|
|
747
|
-
value = item.inputVal;
|
|
748
|
-
}
|
|
749
|
-
} else if (item.EVALUATEAttr) {
|
|
750
|
-
value = item.selecteds.join("|#|");
|
|
751
|
-
} else if (item.AGEAttr) {
|
|
752
|
-
value = "";
|
|
753
|
-
} else if (item.NUMBERFiled && (item.lessValue || item.bigValue)) {
|
|
754
|
-
let lessValue = (_d = item.lessValue) != null ? _d : "";
|
|
755
|
-
let bigValue = (_e = item.bigValue) != null ? _e : "";
|
|
756
|
-
if (((_f = item.setting) == null ? void 0 : _f.attr) === "PERCENTAGE") {
|
|
757
|
-
lessValue = (lessValue || lessValue === 0) && Number(lessValue) / 100 || "";
|
|
758
|
-
bigValue = (bigValue || bigValue === 0) && Number(bigValue) / 100 || "";
|
|
759
|
-
}
|
|
760
|
-
value = `${lessValue}~${bigValue}`;
|
|
761
|
-
}
|
|
762
|
-
if (value && XEUtils.isString(value)) {
|
|
763
|
-
value = value.trim();
|
|
764
|
-
}
|
|
765
|
-
let temp = {
|
|
766
|
-
field_key: item.columnName,
|
|
767
|
-
con: item.DATE || item.BIRTHDAY ? item.tempCon : item.con,
|
|
768
|
-
value,
|
|
769
|
-
limit_date: limit_date_result || "",
|
|
770
|
-
start_val: item.start_val || null,
|
|
771
|
-
end_val: item.end_val || null,
|
|
772
|
-
unit: item.unit || "",
|
|
773
|
-
id: item.id
|
|
774
|
-
};
|
|
775
|
-
conObj.push(temp);
|
|
776
|
-
}
|
|
777
|
-
let dateCons = dateTeam.value.map((item) => item.con);
|
|
778
|
-
let res = conObj.filter(
|
|
779
|
-
(item) => item.value || item.limit_date || item.start_val || item.end_val || dateCons.includes(item.con)
|
|
780
|
-
);
|
|
781
|
-
return res;
|
|
782
|
-
}
|
|
783
|
-
function disabledDate(current) {
|
|
784
|
-
return current && current < moment().startOf("year") || current > moment().endOf("year");
|
|
785
|
-
}
|
|
786
|
-
function changeRange(date, dateString) {
|
|
787
|
-
if (dateString[0]) {
|
|
788
|
-
limit_date.value = dateString.join("~");
|
|
789
|
-
} else {
|
|
790
|
-
limit_date.value = "";
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
function saveToCalss() {
|
|
794
|
-
var _a;
|
|
795
|
-
(_a = formRef.value) == null ? void 0 : _a.validate((err) => {
|
|
796
|
-
var _a2;
|
|
797
|
-
if (err)
|
|
798
|
-
return;
|
|
799
|
-
let conObj = getConObjParams();
|
|
800
|
-
if (!conObj.length) {
|
|
801
|
-
conObj = [];
|
|
802
|
-
}
|
|
803
|
-
let displayCategory = (_a2 = parentNames.value.filter((item) => item.selected)[0]) == null ? void 0 : _a2.value;
|
|
804
|
-
let params = {
|
|
805
|
-
tableId: attrs.tableId || "",
|
|
806
|
-
setting: JSON.stringify({
|
|
807
|
-
displayCategory,
|
|
808
|
-
name: formValue.value.classname,
|
|
809
|
-
conObj
|
|
810
|
-
}),
|
|
811
|
-
conditionList: JSON.stringify(props.originConditionList)
|
|
812
|
-
};
|
|
813
|
-
saveTableCondiTion(params);
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
function handleParentNamesAdd(e) {
|
|
817
|
-
var _a;
|
|
818
|
-
const nextInput = (_a = e == null ? void 0 : e.target) == null ? void 0 : _a.nextElementSibling;
|
|
819
|
-
setTimeout(() => {
|
|
820
|
-
nextInput && nextInput.focus();
|
|
821
|
-
});
|
|
822
|
-
showAdd.value = true;
|
|
823
|
-
}
|
|
824
|
-
function hanldeBlur() {
|
|
825
|
-
showAdd.value = false;
|
|
826
|
-
if (!addVal.value)
|
|
827
|
-
return;
|
|
828
|
-
parentNames.value.forEach((v) => v.selected = false);
|
|
829
|
-
parentNames.value.push({
|
|
830
|
-
disabled: true,
|
|
831
|
-
value: addVal.value,
|
|
832
|
-
selected: true,
|
|
833
|
-
isAdd: true
|
|
834
|
-
});
|
|
835
|
-
addVal.value = "";
|
|
836
|
-
}
|
|
837
|
-
function editParentName(e, item) {
|
|
838
|
-
item.disabled = false;
|
|
839
|
-
setTimeout(() => {
|
|
840
|
-
var _a;
|
|
841
|
-
(_a = e.target) == null ? void 0 : _a.focus();
|
|
842
|
-
}, 0);
|
|
843
|
-
}
|
|
844
|
-
function handleParentNameSelect(item, index) {
|
|
845
|
-
if (!item.disabled)
|
|
846
|
-
return;
|
|
847
|
-
parentNames.value.forEach((pItem, pIndex) => {
|
|
848
|
-
if (pIndex !== index) {
|
|
849
|
-
pItem.selected = false;
|
|
850
|
-
}
|
|
851
|
-
});
|
|
852
|
-
item.selected = !item.selected;
|
|
853
|
-
}
|
|
854
|
-
function handleParentNamesRemove(index, item) {
|
|
855
|
-
handleParent(index, item);
|
|
856
|
-
}
|
|
857
|
-
function handleParent(index, item) {
|
|
858
|
-
let { conditionList = [] } = props.quickSearchListObj || {};
|
|
859
|
-
if (!conditionList || conditionList && (conditionList == null ? void 0 : conditionList.length) === 0) {
|
|
860
|
-
parentNames.value.splice(index, 1);
|
|
861
|
-
return;
|
|
862
|
-
}
|
|
863
|
-
let hasItem = conditionList.filter((v) => v.displayCategory === item.value);
|
|
864
|
-
if (!hasItem || !hasItem.length) {
|
|
865
|
-
parentNames.value.splice(index, 1);
|
|
866
|
-
return;
|
|
867
|
-
}
|
|
868
|
-
$message.error("\u8BE5\u5206\u7C7B\u4E0B\u6709\u5DF2\u6709\u6570\u636E\uFF0C\u8BF7\u5220\u9664\u8BE5\u5206\u7C7B\u4E0B\u7684\u7B5B\u9009\u96C6\u540E\u91CD\u8BD5\uFF01");
|
|
869
|
-
}
|
|
870
|
-
async function saveTableCondiTion(params) {
|
|
871
|
-
var _a;
|
|
872
|
-
try {
|
|
873
|
-
let res = await handleGetConfigApi(params, "requestSaveTableCondiTion", {}, props.filterApiConfig);
|
|
874
|
-
if (!res)
|
|
875
|
-
return;
|
|
876
|
-
showInner.value = false;
|
|
877
|
-
(_a = formRef.value) == null ? void 0 : _a.restoreValidation();
|
|
878
|
-
formValue.value.classname = "";
|
|
879
|
-
parentNames.value = [];
|
|
880
|
-
emit("updateTableCondiTion");
|
|
881
|
-
clearData();
|
|
882
|
-
closeModal();
|
|
883
|
-
} catch (error) {
|
|
884
|
-
console.log(error);
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
function cancelSaveToCalss() {
|
|
888
|
-
showInner.value = false;
|
|
889
|
-
}
|
|
890
|
-
function clearData() {
|
|
891
|
-
handlerReset(quickSearch.value);
|
|
892
|
-
relationQuickSearch.value.forEach((item) => {
|
|
893
|
-
handlerReset(item.fieldList);
|
|
894
|
-
});
|
|
895
|
-
if (props.source === "editTable") {
|
|
896
|
-
emit("clearQuickSearchConfig");
|
|
897
|
-
return;
|
|
898
|
-
}
|
|
899
|
-
attrs == null ? void 0 : attrs.clearQuickSearchConfig();
|
|
900
|
-
}
|
|
901
|
-
function handlerReset(arr) {
|
|
902
|
-
if (!Array.isArray(arr)) {
|
|
903
|
-
return;
|
|
904
|
-
}
|
|
905
|
-
arr.forEach((item) => {
|
|
906
|
-
if (resetRenderWidgetValue(item))
|
|
907
|
-
return;
|
|
908
|
-
let advanceOptionSetting = item == null ? void 0 : item.advanceOptionSetting;
|
|
909
|
-
let optionSetting0 = String(advanceOptionSetting) === "0";
|
|
910
|
-
if (item.EQ || item.CL) {
|
|
911
|
-
item.EQ = "";
|
|
912
|
-
item.CL = "";
|
|
913
|
-
} else if (item.con == "QUOTE" && XEUtils.anyNotEmpty(item.value)) {
|
|
914
|
-
item.QUOTE = [];
|
|
915
|
-
item.value = [];
|
|
916
|
-
} else if (item.com == "SelectMui" && item.con == "CONVERT" && optionSetting0) {
|
|
917
|
-
item.CONVERT = [];
|
|
918
|
-
item.value = void 0;
|
|
919
|
-
} else if (XEUtils.anyNotEmpty(item.CONVERT)) {
|
|
920
|
-
item.CONVERT = [];
|
|
921
|
-
} else if (item.DATE) {
|
|
922
|
-
item.showDate = String(advanceOptionSetting) == "1" ? true : false;
|
|
923
|
-
item.marginx = "ml";
|
|
924
|
-
item.DATE = {
|
|
925
|
-
con: null,
|
|
926
|
-
start_val: null,
|
|
927
|
-
end_val: null
|
|
928
|
-
};
|
|
929
|
-
} else if (item.BIRTHDAY) {
|
|
930
|
-
item.showDate = false;
|
|
931
|
-
item.marginx = "ml";
|
|
932
|
-
item.BIRTHDAY = initBirthdayParams();
|
|
933
|
-
} else if (item.LABELAttr) {
|
|
934
|
-
handleClearLabel(item);
|
|
935
|
-
} else if (item.EVALUATEAttr) {
|
|
936
|
-
item.selecteds = [];
|
|
937
|
-
} else if (item.AGEAttr) {
|
|
938
|
-
handleResetAge(item);
|
|
939
|
-
} else if (item.NUMBERFiled) {
|
|
940
|
-
clearFilterNumber(item);
|
|
941
|
-
}
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
function initBirthdayParams() {
|
|
945
|
-
limit_date.value = "";
|
|
946
|
-
return {
|
|
947
|
-
con: null,
|
|
948
|
-
limit_date: [],
|
|
949
|
-
start_val: null,
|
|
950
|
-
end_val: null,
|
|
951
|
-
unit: "YEAR",
|
|
952
|
-
units: birthdayUnits.value.filter((i) => i.units === 1)
|
|
953
|
-
};
|
|
954
|
-
}
|
|
955
|
-
function clickRadioGroup(item, con) {
|
|
956
|
-
if (item) {
|
|
957
|
-
if (item.con == con) {
|
|
958
|
-
item.con = null;
|
|
959
|
-
} else {
|
|
960
|
-
if (item.con === "IN") {
|
|
961
|
-
item.start_val = null;
|
|
962
|
-
item.end_val = null;
|
|
963
|
-
}
|
|
964
|
-
item.con = con;
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
function clickBirthdayRadioGroup(item, con) {
|
|
969
|
-
if (item) {
|
|
970
|
-
limit_date.value = "";
|
|
971
|
-
Object.assign(item, initBirthdayParams());
|
|
972
|
-
clickRadioGroup(item, con);
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
async function handleSetLabelOptions(labelType, el) {
|
|
976
|
-
let labelObj = {};
|
|
977
|
-
let labelList = await handleGetConfigApi(labelType, "requestedLabel", {}, props.filterApiConfig);
|
|
978
|
-
labelList.forEach((n) => {
|
|
979
|
-
n.isSelect = false;
|
|
980
|
-
if (labelObj[n.typeName]) {
|
|
981
|
-
labelObj[n.typeName].itemList.push({ ...n });
|
|
982
|
-
} else {
|
|
983
|
-
labelObj[n.typeName] = {
|
|
984
|
-
itemList: [{ ...n }],
|
|
985
|
-
showAdd: false,
|
|
986
|
-
addVal: "",
|
|
987
|
-
typeName: n.typeName,
|
|
988
|
-
typeId: n.typeId,
|
|
989
|
-
isUnfold: false,
|
|
990
|
-
isShowBtn: false
|
|
991
|
-
};
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
el.labelObj = labelObj;
|
|
995
|
-
el.labelList = labelList;
|
|
996
|
-
}
|
|
997
|
-
function handleLabelColorClass(item) {
|
|
998
|
-
var _a;
|
|
999
|
-
return ((_a = item == null ? void 0 : item.color) == null ? void 0 : _a.split("-")[1]) || "yellow";
|
|
1000
|
-
}
|
|
1001
|
-
function handleLabelChange(flag, item, options) {
|
|
1002
|
-
let selectedList = options.labelSelectList || [];
|
|
1003
|
-
if (flag) {
|
|
1004
|
-
if (selectedList.some((n) => n.labelId == item.labelId)) {
|
|
1005
|
-
return;
|
|
1006
|
-
}
|
|
1007
|
-
selectedList.push(item);
|
|
1008
|
-
} else {
|
|
1009
|
-
let fdIndex = selectedList.findIndex((n) => n.labelId == item.labelId);
|
|
1010
|
-
if (fdIndex != -1) {
|
|
1011
|
-
selectedList.splice(fdIndex, 1);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
item.isSelect = flag;
|
|
1015
|
-
options.labelSelectList = selectedList;
|
|
1016
|
-
}
|
|
1017
|
-
function handleClearLabel(v) {
|
|
1018
|
-
if (v.labelSelectList) {
|
|
1019
|
-
v.labelSelectList.length = 0;
|
|
1020
|
-
v.inputVal = "";
|
|
1021
|
-
Object.entries(v.labelObj || {}).forEach((h) => {
|
|
1022
|
-
let [, item] = h;
|
|
1023
|
-
item.itemList.forEach((l) => {
|
|
1024
|
-
l.isSelect = false;
|
|
1025
|
-
});
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
function handleLabelUpfold(v) {
|
|
1030
|
-
v.isUnfold = !v.isUnfold;
|
|
1031
|
-
}
|
|
1032
|
-
function handleEvaluateOnChange(checked, tag, item) {
|
|
1033
|
-
if (checked) {
|
|
1034
|
-
item.selecteds.push(tag.value);
|
|
1035
|
-
} else {
|
|
1036
|
-
let i = item.selecteds.findIndex((v) => v === tag.value);
|
|
1037
|
-
item.selecteds.splice(i, 1);
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
function ageRangeOnChange(obj, item) {
|
|
1041
|
-
let s = obj.star_val;
|
|
1042
|
-
let e = obj.end_val;
|
|
1043
|
-
item.start_val = isNaN(s) ? null : s;
|
|
1044
|
-
item.end_val = isNaN(e) ? null : e;
|
|
1045
|
-
}
|
|
1046
|
-
function getAgeAttrDom(el) {
|
|
1047
|
-
if (el) {
|
|
1048
|
-
ageAttrDomList.value.set(el.dataName, el);
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
function handleResetAge(item) {
|
|
1052
|
-
item.start_val = null;
|
|
1053
|
-
item.end_val = null;
|
|
1054
|
-
let curRef = ageAttrDomList.value.get(`${item.columnName}_AGEAttr`);
|
|
1055
|
-
if (curRef) {
|
|
1056
|
-
if (Array.isArray(curRef)) {
|
|
1057
|
-
curRef = curRef[0] || false;
|
|
1058
|
-
}
|
|
1059
|
-
curRef == null ? void 0 : curRef.reset();
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
function onResize(el, v) {
|
|
1063
|
-
let height = el.offsetHeight || 0;
|
|
1064
|
-
if (!height) {
|
|
1065
|
-
return;
|
|
1066
|
-
}
|
|
1067
|
-
if (height > 80) {
|
|
1068
|
-
v.isShowBtn = true;
|
|
1069
|
-
} else {
|
|
1070
|
-
v.isShowBtn = false;
|
|
1071
|
-
v.isUnfold = false;
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
function changeFilterNumber(item) {
|
|
1075
|
-
if (item.lessValue && item.bigValue) {
|
|
1076
|
-
const lessValue = item.lessValue;
|
|
1077
|
-
const bigValue = item.bigValue;
|
|
1078
|
-
if (bigValue < lessValue) {
|
|
1079
|
-
item.lessValue = bigValue;
|
|
1080
|
-
item.bigValue = lessValue;
|
|
1081
|
-
}
|
|
1082
|
-
return;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
function clearFilterNumber(item) {
|
|
1086
|
-
item.lessValue = "";
|
|
1087
|
-
item.bigValue = "";
|
|
1088
|
-
}
|
|
1089
|
-
function disabledDatePicker(current, item, t) {
|
|
1090
|
-
var _a, _b;
|
|
1091
|
-
let f = false;
|
|
1092
|
-
if (t === "start") {
|
|
1093
|
-
const end_val = (_a = item == null ? void 0 : item.DATE) == null ? void 0 : _a.end_val;
|
|
1094
|
-
f = end_val && current > moment(end_val).valueOf();
|
|
1095
|
-
} else if (t === "end") {
|
|
1096
|
-
const start_val = (_b = item == null ? void 0 : item.DATE) == null ? void 0 : _b.start_val;
|
|
1097
|
-
f = start_val && current <= moment(start_val).valueOf();
|
|
1098
|
-
}
|
|
1099
|
-
let type = String(item == null ? void 0 : item.advanceOptionSetting);
|
|
1100
|
-
if (!["2", "3"].includes(type))
|
|
1101
|
-
return f;
|
|
1102
|
-
if (type === "2") {
|
|
1103
|
-
return current >= moment().endOf("day") || f;
|
|
1104
|
-
} else if (type === "3") {
|
|
1105
|
-
return current && current < moment().startOf("day") || f;
|
|
1106
|
-
}
|
|
1107
|
-
return f;
|
|
1108
|
-
}
|
|
1109
|
-
watch(
|
|
1110
|
-
() => props.visible,
|
|
1111
|
-
(value) => {
|
|
1112
|
-
modalVisible.value = value;
|
|
1113
|
-
setDefaultCon(props.quickSearchConfig);
|
|
1114
|
-
}
|
|
1115
|
-
);
|
|
1116
|
-
watch(
|
|
1117
|
-
() => props.searchFieldList,
|
|
1118
|
-
(val) => {
|
|
1119
|
-
if (val && val.length > 0) {
|
|
1120
|
-
relationTableList.value = attrs.relationTableList ? attrs.relationTableList : [];
|
|
1121
|
-
init();
|
|
1122
|
-
}
|
|
1123
|
-
},
|
|
1124
|
-
{ immediate: true, deep: true }
|
|
1125
|
-
);
|
|
1126
|
-
watch(
|
|
1127
|
-
() => props.quickSearchConfig,
|
|
1128
|
-
(val) => {
|
|
1129
|
-
setDefaultCon(val);
|
|
1130
|
-
},
|
|
1131
|
-
{ deep: true }
|
|
1132
|
-
);
|
|
1133
|
-
watch(
|
|
1134
|
-
() => props.quickSearchListObj,
|
|
1135
|
-
(val) => {
|
|
1136
|
-
if (!val || !Object.keys(val).length) {
|
|
1137
|
-
parentNames.value = [];
|
|
1138
|
-
return;
|
|
1139
|
-
}
|
|
1140
|
-
handleParentName();
|
|
1141
|
-
},
|
|
1142
|
-
{ immediate: true, deep: true }
|
|
1143
|
-
);
|
|
1144
|
-
watch(
|
|
1145
|
-
() => quickSearch,
|
|
1146
|
-
() => {
|
|
1147
|
-
const conObj = getConObjParams() || [];
|
|
1148
|
-
emit("filterCountChange", conObj.length);
|
|
1149
|
-
},
|
|
1150
|
-
{ deep: true }
|
|
1151
|
-
);
|
|
1152
|
-
watch(
|
|
1153
|
-
() => props.show,
|
|
1154
|
-
(newVal) => {
|
|
1155
|
-
if (newVal && props.lastQuickSearchData.length > 0) {
|
|
1156
|
-
quickSearch.value = cloneDeep(props.lastQuickSearchData);
|
|
1157
|
-
}
|
|
1158
|
-
},
|
|
1159
|
-
{ deep: true }
|
|
1160
|
-
);
|
|
1161
|
-
expose({
|
|
1162
|
-
openSaveToCalss,
|
|
1163
|
-
clearData,
|
|
1164
|
-
onSave
|
|
1165
|
-
});
|
|
1166
|
-
return (_ctx, _cache) => {
|
|
1167
|
-
return openBlock(), createElementBlock("div", null, [
|
|
1168
|
-
createElementVNode("div", {
|
|
1169
|
-
class: normalizeClass(["quick-search-block", { "quick-search-table": __props.source === "editTable" }])
|
|
1170
|
-
}, [
|
|
1171
|
-
__props.source === "editTable" && unref(hasRelationQuickSearch) ? (openBlock(), createElementBlock("p", _hoisted_1, "\u9AD8\u7EA7\u7B5B\u9009")) : createCommentVNode("v-if", true),
|
|
1172
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(quickSearch), (item) => {
|
|
1173
|
-
return openBlock(), createElementBlock("div", {
|
|
1174
|
-
class: normalizeClass(["quick-item", {
|
|
1175
|
-
"quick-block": item.con == "DATE" || item.con == "BIRTHDAY" || item.con == "CONVERT" || item.LABELAttr || item._isBlock
|
|
1176
|
-
}]),
|
|
1177
|
-
key: item.sid
|
|
1178
|
-
}, [
|
|
1179
|
-
createElementVNode("div", _hoisted_2, [
|
|
1180
|
-
createCommentVNode(" title "),
|
|
1181
|
-
createElementVNode("div", {
|
|
1182
|
-
class: normalizeClass(["quick-item-title", { "quick-item-title-default": __props.source !== "editTable" }])
|
|
1183
|
-
}, [
|
|
1184
|
-
createElementVNode("span", null, toDisplayString(unref(handleName)(item, "title")) + "\xA0\xA0", 1),
|
|
1185
|
-
__props.searchFieldLimit[item.columnName] && __props.searchFieldLimit[item.columnName].tips ? (openBlock(), createBlock(unref(NTooltip), { key: 0 }, {
|
|
1186
|
-
trigger: withCtx(() => [
|
|
1187
|
-
createVNode(unref(script), { "icon-class": "xitongtubiaodaohangtubiaowenti" })
|
|
1188
|
-
]),
|
|
1189
|
-
default: withCtx(() => [
|
|
1190
|
-
createTextVNode(" " + toDisplayString(__props.searchFieldLimit[item.columnName].tips), 1)
|
|
1191
|
-
]),
|
|
1192
|
-
_: 2
|
|
1193
|
-
}, 1024)) : createCommentVNode("v-if", true)
|
|
1194
|
-
], 2),
|
|
1195
|
-
createElementVNode("div", {
|
|
1196
|
-
class: normalizeClass(["quick-item-col", { "quick-item-col-default": __props.source !== "editTable" }])
|
|
1197
|
-
}, [
|
|
1198
|
-
createCommentVNode(" \u76F4\u63A5\u6E32\u67D3\u7EC4\u4EF6 "),
|
|
1199
|
-
item.isRender ? (openBlock(), createBlock(RenderWidget, {
|
|
1200
|
-
key: 0,
|
|
1201
|
-
cfg: item,
|
|
1202
|
-
modelValue: item.value,
|
|
1203
|
-
"onUpdate:modelValue": (newValue) => item.value = newValue
|
|
1204
|
-
}, null, 8, ["cfg", "modelValue", "onUpdate:modelValue"])) : item.AGEAttr ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1205
|
-
createCommentVNode(" age "),
|
|
1206
|
-
createCommentVNode(" TODO: \u6E05\u9664\uFF0C\u8DE8\u8868 "),
|
|
1207
|
-
createElementVNode("div", _hoisted_3, [
|
|
1208
|
-
createVNode(rangeAge, {
|
|
1209
|
-
ref_for: true,
|
|
1210
|
-
ref: getAgeAttrDom,
|
|
1211
|
-
dataName: `${item.columnName}_AGEAttr`,
|
|
1212
|
-
format: item.format,
|
|
1213
|
-
onChange: ($event) => ageRangeOnChange($event, item)
|
|
1214
|
-
}, null, 8, ["dataName", "format", "onChange"])
|
|
1215
|
-
])
|
|
1216
|
-
], 2112)) : item.LABELAttr ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
1217
|
-
createCommentVNode(" age "),
|
|
1218
|
-
createCommentVNode(" label "),
|
|
1219
|
-
createElementVNode("div", _hoisted_4, [
|
|
1220
|
-
item.labelObj && Object.keys(item.labelObj || {}).length > 0 ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
1221
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.labelObj, (v, k) => {
|
|
1222
|
-
return openBlock(), createElementBlock("div", {
|
|
1223
|
-
key: k,
|
|
1224
|
-
class: "edit-label-content"
|
|
1225
|
-
}, [
|
|
1226
|
-
createElementVNode("div", _hoisted_5, toDisplayString(k) + "\uFF1A", 1),
|
|
1227
|
-
createElementVNode("div", {
|
|
1228
|
-
class: normalizeClass(["edit-content quickSearch_label-container", {
|
|
1229
|
-
"label-container-height": !v.isUnfold && v.itemList && v.isShowBtn
|
|
1230
|
-
}])
|
|
1231
|
-
}, [
|
|
1232
|
-
createCommentVNode(' <div class="label-content" v-resize="el => onResize(el, v)"> '),
|
|
1233
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_6, [
|
|
1234
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(v.itemList, (child, i) => {
|
|
1235
|
-
return openBlock(), createBlock(unref(NTag), {
|
|
1236
|
-
type: "success",
|
|
1237
|
-
checked: child.isSelect,
|
|
1238
|
-
checkable: "",
|
|
1239
|
-
key: i,
|
|
1240
|
-
style: normalizeStyle(handleLabelColorFn(child)),
|
|
1241
|
-
"onUpdate:checked": ($event) => handleLabelChange($event, child, item)
|
|
1242
|
-
}, {
|
|
1243
|
-
default: withCtx(() => [
|
|
1244
|
-
createVNode(unref(NTooltip), { placement: "topLeft" }, {
|
|
1245
|
-
trigger: withCtx(() => [
|
|
1246
|
-
createElementVNode("span", null, toDisplayString(child.labelName), 1)
|
|
1247
|
-
]),
|
|
1248
|
-
default: withCtx(() => [
|
|
1249
|
-
createTextVNode(" " + toDisplayString(child.labelName), 1)
|
|
1250
|
-
]),
|
|
1251
|
-
_: 2
|
|
1252
|
-
}, 1024)
|
|
1253
|
-
]),
|
|
1254
|
-
_: 2
|
|
1255
|
-
}, 1032, ["checked", "style", "onUpdate:checked"]);
|
|
1256
|
-
}), 128))
|
|
1257
|
-
])), [
|
|
1258
|
-
[unref(Resize), (el) => onResize(el, v)]
|
|
1259
|
-
])
|
|
1260
|
-
], 2),
|
|
1261
|
-
v.itemList && v.isShowBtn ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
1262
|
-
createCommentVNode(" {{ v.isUnfold }} "),
|
|
1263
|
-
createElementVNode("span", {
|
|
1264
|
-
onClick: withModifiers(($event) => handleLabelUpfold(v), ["stop"])
|
|
1265
|
-
}, [
|
|
1266
|
-
v.isUnfold ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1267
|
-
_hoisted_9,
|
|
1268
|
-
createVNode(unref(NIcon), {
|
|
1269
|
-
component: unref(ChevronUp),
|
|
1270
|
-
size: "16"
|
|
1271
|
-
}, null, 8, ["component"])
|
|
1272
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1273
|
-
_hoisted_10,
|
|
1274
|
-
createVNode(unref(NIcon), {
|
|
1275
|
-
component: unref(ChevronDown),
|
|
1276
|
-
size: "16"
|
|
1277
|
-
}, null, 8, ["component"])
|
|
1278
|
-
], 64))
|
|
1279
|
-
], 8, _hoisted_8)
|
|
1280
|
-
])) : createCommentVNode("v-if", true)
|
|
1281
|
-
]);
|
|
1282
|
-
}), 128))
|
|
1283
|
-
]) : (openBlock(), createBlock(unref(NInput), {
|
|
1284
|
-
key: 1,
|
|
1285
|
-
style: { "width": "200px" },
|
|
1286
|
-
value: item.inputVal,
|
|
1287
|
-
"onUpdate:value": ($event) => item.inputVal = $event,
|
|
1288
|
-
clearable: ""
|
|
1289
|
-
}, null, 8, ["value", "onUpdate:value"]))
|
|
1290
|
-
])
|
|
1291
|
-
], 2112)) : item.EVALUATEAttr ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
1292
|
-
createCommentVNode(" label "),
|
|
1293
|
-
createCommentVNode(" EVALUATE "),
|
|
1294
|
-
createElementVNode("div", _hoisted_11, [
|
|
1295
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(EVALUATEList), (tag) => {
|
|
1296
|
-
return openBlock(), createBlock(unref(NTag), {
|
|
1297
|
-
key: tag.value,
|
|
1298
|
-
class: normalizeClass({ "ant-tag-checkable-checked": item.selecteds.indexOf(tag.value) > -1 }),
|
|
1299
|
-
checkable: "",
|
|
1300
|
-
checked: item.selecteds.indexOf(tag.value) > -1,
|
|
1301
|
-
"onUpdate:checked": ($event) => handleEvaluateOnChange($event, tag, item)
|
|
1302
|
-
}, {
|
|
1303
|
-
default: withCtx(() => [
|
|
1304
|
-
createTextVNode(toDisplayString(tag.label), 1)
|
|
1305
|
-
]),
|
|
1306
|
-
_: 2
|
|
1307
|
-
}, 1032, ["class", "checked", "onUpdate:checked"]);
|
|
1308
|
-
}), 128))
|
|
1309
|
-
])
|
|
1310
|
-
], 2112)) : item.NUMBERFiled ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
1311
|
-
createCommentVNode(" EVALUATE "),
|
|
1312
|
-
createCommentVNode(" NUMBERFiled "),
|
|
1313
|
-
createElementVNode("div", _hoisted_12, [
|
|
1314
|
-
createElementVNode("span", {
|
|
1315
|
-
class: normalizeClass(["ant-calendar-picker-input ant-input num-picker", { "num-picker-unit": item.inputUnit }])
|
|
1316
|
-
}, [
|
|
1317
|
-
withDirectives(createElementVNode("input", {
|
|
1318
|
-
"onUpdate:modelValue": ($event) => item.lessValue = $event,
|
|
1319
|
-
onKeyup: withKeys(() => changeFilterNumber(item), ["enter"]),
|
|
1320
|
-
title: `\u8D77\u59CB${item.alias || item.title}`,
|
|
1321
|
-
placeholder: `\u8D77\u59CB${item.alias || item.title}`,
|
|
1322
|
-
class: "ant-calendar-range-picker-input"
|
|
1323
|
-
}, null, 40, _hoisted_13), [
|
|
1324
|
-
[vModelText, item.lessValue]
|
|
1325
|
-
]),
|
|
1326
|
-
_hoisted_14,
|
|
1327
|
-
withDirectives(createElementVNode("input", {
|
|
1328
|
-
"onUpdate:modelValue": ($event) => item.bigValue = $event,
|
|
1329
|
-
title: `\u622A\u6B62${item.alias || item.title}`,
|
|
1330
|
-
onKeyup: withKeys(() => changeFilterNumber(item), ["enter"]),
|
|
1331
|
-
placeholder: `\u622A\u6B62${item.alias || item.title}`,
|
|
1332
|
-
class: "ant-calendar-range-picker-input"
|
|
1333
|
-
}, null, 40, _hoisted_15), [
|
|
1334
|
-
[vModelText, item.bigValue]
|
|
1335
|
-
]),
|
|
1336
|
-
item.inputUnit ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1337
|
-
createTextVNode("\xA0" + toDisplayString(item.inputUnit), 1)
|
|
1338
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
1339
|
-
item.lessValue || item.bigValue ? (openBlock(), createElementBlock("span", {
|
|
1340
|
-
key: 1,
|
|
1341
|
-
class: "ant-input-suffix clear-number-icon",
|
|
1342
|
-
onClick: ($event) => clearFilterNumber(item)
|
|
1343
|
-
}, _hoisted_18, 8, _hoisted_16)) : createCommentVNode("v-if", true)
|
|
1344
|
-
], 2)
|
|
1345
|
-
])
|
|
1346
|
-
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
1347
|
-
createCommentVNode(" NUMBERFiled "),
|
|
1348
|
-
createCommentVNode(" other "),
|
|
1349
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1350
|
-
item.con == "CL" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1351
|
-
unref(showPercent)(item) ? (openBlock(), createBlock(unref(NInputNumber), {
|
|
1352
|
-
key: 0,
|
|
1353
|
-
class: "CL-input",
|
|
1354
|
-
style: { "`width": "${getEleWidth(item)}`" },
|
|
1355
|
-
value: item.CL,
|
|
1356
|
-
"onUpdate:value": ($event) => item.CL = $event,
|
|
1357
|
-
min: 0,
|
|
1358
|
-
max: 100,
|
|
1359
|
-
clearable: "",
|
|
1360
|
-
placeholder: item.placeholder
|
|
1361
|
-
}, null, 8, ["value", "onUpdate:value", "placeholder"])) : (openBlock(), createBlock(unref(NInput), {
|
|
1362
|
-
key: 1,
|
|
1363
|
-
class: normalizeClass(["CL-input", { "psw-icon": item.comAttr == "PASSWORD" }]),
|
|
1364
|
-
style: normalizeStyle({
|
|
1365
|
-
width: `${unref(getEleWidth)(item)}`,
|
|
1366
|
-
"font-family": item.PASSWORDTYPE ? "text-security-disc" : "inherit"
|
|
1367
|
-
}),
|
|
1368
|
-
value: item.CL,
|
|
1369
|
-
"onUpdate:value": ($event) => item.CL = $event,
|
|
1370
|
-
clearable: "",
|
|
1371
|
-
placeholder: item.placeholder
|
|
1372
|
-
}, {
|
|
1373
|
-
default: withCtx(() => [
|
|
1374
|
-
item.comAttr == "PASSWORD" ? (openBlock(), createBlock(unref(script), {
|
|
1375
|
-
key: 0,
|
|
1376
|
-
class: "psw-icon",
|
|
1377
|
-
onClick: ($event) => item.PASSWORDTYPE = !item.PASSWORDTYPE,
|
|
1378
|
-
"icon-class": item.PASSWORDTYPE ? "anniuyincang" : "chakan",
|
|
1379
|
-
style: { "font-size": "1em" }
|
|
1380
|
-
}, null, 8, ["onClick", "icon-class"])) : createCommentVNode("v-if", true)
|
|
1381
|
-
]),
|
|
1382
|
-
_: 2
|
|
1383
|
-
}, 1032, ["class", "style", "value", "onUpdate:value", "placeholder"]))
|
|
1384
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
1385
|
-
item.con == "EQ" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1386
|
-
unref(showPercent)(item) ? (openBlock(), createBlock(unref(NInputNumber), {
|
|
1387
|
-
key: 0,
|
|
1388
|
-
class: "EQ-input",
|
|
1389
|
-
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1390
|
-
value: item.EQ,
|
|
1391
|
-
"onUpdate:value": ($event) => item.EQ = $event,
|
|
1392
|
-
min: 0,
|
|
1393
|
-
max: 100,
|
|
1394
|
-
clearable: "",
|
|
1395
|
-
placeholder: item.placeholder
|
|
1396
|
-
}, null, 8, ["style", "value", "onUpdate:value", "placeholder"])) : (openBlock(), createBlock(unref(NInput), {
|
|
1397
|
-
key: 1,
|
|
1398
|
-
class: normalizeClass(["EQ-input", { "psw-icon": item.comAttr == "PASSWORD" }]),
|
|
1399
|
-
style: normalizeStyle({
|
|
1400
|
-
width: `${unref(getEleWidth)(item)}`,
|
|
1401
|
-
"font-family": item.PASSWORDTYPE ? "text-security-disc" : "inherit"
|
|
1402
|
-
}),
|
|
1403
|
-
value: item.EQ,
|
|
1404
|
-
"onUpdate:value": ($event) => item.EQ = $event,
|
|
1405
|
-
placeholder: item.placeholder || item.isPreciseSearch || item.fieldType == "JSONB" ? "" : "\u533A\u95F4\u641C\u7D20\u7528~\u5206\u5272",
|
|
1406
|
-
clearable: ""
|
|
1407
|
-
}, {
|
|
1408
|
-
default: withCtx(() => [
|
|
1409
|
-
item.comAttr == "PASSWORD" ? (openBlock(), createBlock(unref(script), {
|
|
1410
|
-
key: 0,
|
|
1411
|
-
class: "psw-icon",
|
|
1412
|
-
onClick: ($event) => item.PASSWORDTYPE = !item.PASSWORDTYPE,
|
|
1413
|
-
"icon-class": item.PASSWORDTYPE ? "anniuyincang" : "chakan",
|
|
1414
|
-
style: { "font-size": "1em" }
|
|
1415
|
-
}, null, 8, ["onClick", "icon-class"])) : createCommentVNode("v-if", true)
|
|
1416
|
-
]),
|
|
1417
|
-
_: 2
|
|
1418
|
-
}, 1032, ["class", "style", "value", "onUpdate:value", "placeholder"]))
|
|
1419
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
1420
|
-
unref(showPercent)(item) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
1421
|
-
createTextVNode("\xA0%")
|
|
1422
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
1423
|
-
createCommentVNode(" date "),
|
|
1424
|
-
item.con == "DATE" && item.DATE ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
1425
|
-
createVNode(unref(NRadioGroup), {
|
|
1426
|
-
value: item.DATE.con,
|
|
1427
|
-
"onUpdate:value": ($event) => item.DATE.con = $event,
|
|
1428
|
-
buttonStyle: "solid"
|
|
1429
|
-
}, {
|
|
1430
|
-
default: withCtx(() => [
|
|
1431
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.dateTeam, (date) => {
|
|
1432
|
-
return withDirectives((openBlock(), createBlock(unref(NRadioButton), {
|
|
1433
|
-
hideSplitor: item.showDate,
|
|
1434
|
-
onClick: withModifiers(($event) => clickRadioGroup(item.DATE, date.con), ["prevent"]),
|
|
1435
|
-
key: date.con,
|
|
1436
|
-
value: date.con,
|
|
1437
|
-
label: date.name
|
|
1438
|
-
}, null, 8, ["hideSplitor", "onClick", "value", "label"])), [
|
|
1439
|
-
[vShow, !item.showDate]
|
|
1440
|
-
]);
|
|
1441
|
-
}), 128))
|
|
1442
|
-
]),
|
|
1443
|
-
_: 2
|
|
1444
|
-
}, 1032, ["value", "onUpdate:value"]),
|
|
1445
|
-
withDirectives(createElementVNode("span", {
|
|
1446
|
-
class: normalizeClass(["check-date-btn", item.marginx]),
|
|
1447
|
-
onClick: ($event) => checkDate(item)
|
|
1448
|
-
}, "\u9009\u62E9\u65F6\u95F4", 10, _hoisted_20), [
|
|
1449
|
-
[vShow, item.advanceOptionSetting != "1"]
|
|
1450
|
-
]),
|
|
1451
|
-
withDirectives(createElementVNode("div", _hoisted_21, [
|
|
1452
|
-
createVNode(unref(NDatePicker), {
|
|
1453
|
-
type: "datetime",
|
|
1454
|
-
style: { "min-width": "195px", "width": "120px" },
|
|
1455
|
-
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
1456
|
-
"formatted-value": item.DATE.start_val,
|
|
1457
|
-
"onUpdate:formatted-value": ($event) => item.DATE.start_val = $event,
|
|
1458
|
-
placeholder: "\u5F00\u59CB\u65F6\u95F4",
|
|
1459
|
-
"is-date-disabled": (current) => disabledDatePicker(current, item, "start"),
|
|
1460
|
-
clearable: ""
|
|
1461
|
-
}, null, 8, ["formatted-value", "onUpdate:formatted-value", "is-date-disabled"]),
|
|
1462
|
-
createTextVNode(" \xA0 "),
|
|
1463
|
-
createVNode(unref(NDatePicker), {
|
|
1464
|
-
type: "datetime",
|
|
1465
|
-
style: { "min-width": "195px", "width": "120px" },
|
|
1466
|
-
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
1467
|
-
"formatted-value": item.DATE.end_val,
|
|
1468
|
-
"onUpdate:formatted-value": ($event) => item.DATE.end_val = $event,
|
|
1469
|
-
placeholder: "\u7ED3\u675F\u65F6\u95F4",
|
|
1470
|
-
"is-date-disabled": (current) => disabledDatePicker(current, item, "end"),
|
|
1471
|
-
clearable: ""
|
|
1472
|
-
}, null, 8, ["formatted-value", "onUpdate:formatted-value", "is-date-disabled"])
|
|
1473
|
-
], 512), [
|
|
1474
|
-
[vShow, item.showDate]
|
|
1475
|
-
])
|
|
1476
|
-
])) : createCommentVNode("v-if", true),
|
|
1477
|
-
createCommentVNode(" BIRTHDAY "),
|
|
1478
|
-
item.con == "BIRTHDAY" && item.BIRTHDAY ? (openBlock(), createElementBlock("div", {
|
|
1479
|
-
key: 4,
|
|
1480
|
-
class: normalizeClass({ "birthday-item": item.showDate })
|
|
1481
|
-
}, [
|
|
1482
|
-
!item.showDate ? (openBlock(), createBlock(unref(NRadioGroup), {
|
|
1483
|
-
key: 0,
|
|
1484
|
-
value: item.BIRTHDAY.con,
|
|
1485
|
-
"onUpdate:value": ($event) => item.BIRTHDAY.con = $event,
|
|
1486
|
-
buttonStyle: "solid"
|
|
1487
|
-
}, {
|
|
1488
|
-
default: withCtx(() => [
|
|
1489
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(birthdayTeam), (date) => {
|
|
1490
|
-
return openBlock(), createBlock(unref(NRadioButton), {
|
|
1491
|
-
onClick: withModifiers(($event) => clickBirthdayRadioGroup(item.BIRTHDAY, date.con), ["prevent"]),
|
|
1492
|
-
key: date.con,
|
|
1493
|
-
value: date.con,
|
|
1494
|
-
label: date.name
|
|
1495
|
-
}, null, 8, ["onClick", "value", "label"]);
|
|
1496
|
-
}), 128))
|
|
1497
|
-
]),
|
|
1498
|
-
_: 2
|
|
1499
|
-
}, 1032, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1500
|
-
createElementVNode("div", null, [
|
|
1501
|
-
createVNode(unref(NDatePicker), {
|
|
1502
|
-
value: item.BIRTHDAY.limit_date,
|
|
1503
|
-
"onUpdate:value": [($event) => item.BIRTHDAY.limit_date = $event, changeRange],
|
|
1504
|
-
type: "daterange",
|
|
1505
|
-
disabled: disabledDate,
|
|
1506
|
-
format: "MM-dd"
|
|
1507
|
-
}, null, 8, ["value", "onUpdate:value"])
|
|
1508
|
-
]),
|
|
1509
|
-
createElementVNode("div", _hoisted_22, [
|
|
1510
|
-
_hoisted_23,
|
|
1511
|
-
createVNode(unref(NInput), {
|
|
1512
|
-
style: { "width": "60px", "margin-right": "10px" },
|
|
1513
|
-
value: item.BIRTHDAY.start_val,
|
|
1514
|
-
"onUpdate:value": ($event) => item.BIRTHDAY.start_val = $event,
|
|
1515
|
-
clearable: ""
|
|
1516
|
-
}, null, 8, ["value", "onUpdate:value"]),
|
|
1517
|
-
createVNode(unref(NInput), {
|
|
1518
|
-
style: { "width": "60px", "margin-right": "10px" },
|
|
1519
|
-
value: item.BIRTHDAY.end_val,
|
|
1520
|
-
"onUpdate:value": ($event) => item.BIRTHDAY.end_val = $event,
|
|
1521
|
-
clearable: ""
|
|
1522
|
-
}, null, 8, ["value", "onUpdate:value"]),
|
|
1523
|
-
createVNode(unref(NSelect), {
|
|
1524
|
-
value: item.BIRTHDAY.unit,
|
|
1525
|
-
"onUpdate:value": ($event) => item.BIRTHDAY.unit = $event,
|
|
1526
|
-
"default-value": "YEAR",
|
|
1527
|
-
filterable: "",
|
|
1528
|
-
filter: filterOption,
|
|
1529
|
-
clearable: "",
|
|
1530
|
-
options: item.BIRTHDAY.units,
|
|
1531
|
-
"label-field": "name",
|
|
1532
|
-
"value-field": "con"
|
|
1533
|
-
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
1534
|
-
])
|
|
1535
|
-
], 64)),
|
|
1536
|
-
createElementVNode("span", {
|
|
1537
|
-
class: normalizeClass(["check-date-btn", item.marginx]),
|
|
1538
|
-
onClick: ($event) => checkBirthDay(item)
|
|
1539
|
-
}, "\u5207\u6362", 10, _hoisted_24)
|
|
1540
|
-
], 2)) : createCommentVNode("v-if", true),
|
|
1541
|
-
item.con == "QUOTE" || item.com == "SelectMui" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
1542
|
-
item.comType === "treeSelect" ? (openBlock(), createBlock(cTreeSelect, {
|
|
1543
|
-
key: 0,
|
|
1544
|
-
options: item,
|
|
1545
|
-
handleGetConfigApi: unref(handleGetConfigApi),
|
|
1546
|
-
filterApiConfig: __props.filterApiConfig,
|
|
1547
|
-
style: { "margin": "0 8px 8px 0" }
|
|
1548
|
-
}, null, 8, ["options", "handleGetConfigApi", "filterApiConfig"])) : (openBlock(), createBlock(multiSelect, {
|
|
1549
|
-
key: 1,
|
|
1550
|
-
item,
|
|
1551
|
-
source: "quickSearch",
|
|
1552
|
-
maxTagPlaceholder,
|
|
1553
|
-
outFilterChange: filterChange,
|
|
1554
|
-
handleWordBookSearch: handleSearch,
|
|
1555
|
-
dropdownVisibleChange,
|
|
1556
|
-
fetchingWordbook: unref(fetchingWordbook)
|
|
1557
|
-
}, null, 8, ["item", "fetchingWordbook"]))
|
|
1558
|
-
], 64)) : item.con == "CONVERT" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
1559
|
-
createCommentVNode(" \u591A\u9009\u9009\u9879\u7EC4 "),
|
|
1560
|
-
(item == null ? void 0 : item.advanceOptionSetting) != "0" ? (openBlock(), createBlock(unref(NCheckboxGroup), {
|
|
1561
|
-
key: 0,
|
|
1562
|
-
class: "check-box",
|
|
1563
|
-
value: item.CONVERT,
|
|
1564
|
-
"onUpdate:value": ($event) => item.CONVERT = $event
|
|
1565
|
-
}, {
|
|
1566
|
-
default: withCtx(() => [
|
|
1567
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.setting.showSetting, (check, index) => {
|
|
1568
|
-
return openBlock(), createBlock(unref(NCheckbox), {
|
|
1569
|
-
key: index,
|
|
1570
|
-
value: check.value,
|
|
1571
|
-
label: check.label
|
|
1572
|
-
}, null, 8, ["value", "label"]);
|
|
1573
|
-
}), 128))
|
|
1574
|
-
]),
|
|
1575
|
-
_: 2
|
|
1576
|
-
}, 1032, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1577
|
-
createCommentVNode(" \u5355\u9009\u9009\u9879\u7EC4 "),
|
|
1578
|
-
createVNode(unref(NRadioGroup), {
|
|
1579
|
-
class: "check-box",
|
|
1580
|
-
value: item.CONVERT,
|
|
1581
|
-
"onUpdate:value": ($event) => item.CONVERT = $event
|
|
1582
|
-
}, {
|
|
1583
|
-
default: withCtx(() => [
|
|
1584
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.setting.showSetting, (check, index) => {
|
|
1585
|
-
return openBlock(), createBlock(unref(NRadio), {
|
|
1586
|
-
key: index,
|
|
1587
|
-
value: check.value,
|
|
1588
|
-
label: check.label
|
|
1589
|
-
}, null, 8, ["value", "label"]);
|
|
1590
|
-
}), 128))
|
|
1591
|
-
]),
|
|
1592
|
-
_: 2
|
|
1593
|
-
}, 1032, ["value", "onUpdate:value"])
|
|
1594
|
-
], 2112))
|
|
1595
|
-
], 64)) : createCommentVNode("v-if", true)
|
|
1596
|
-
])
|
|
1597
|
-
], 2112))
|
|
1598
|
-
], 2)
|
|
1599
|
-
])
|
|
1600
|
-
], 2);
|
|
1601
|
-
}), 128)),
|
|
1602
|
-
createCommentVNode(" \u8DE8\u8868 "),
|
|
1603
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relationQuickSearch), (relationItem, i) => {
|
|
1604
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
1605
|
-
relationItem.fieldList && relationItem.fieldList.length ? (openBlock(), createElementBlock("div", { key: i }, [
|
|
1606
|
-
createElementVNode("p", _hoisted_25, toDisplayString(relationItem == null ? void 0 : relationItem.tableName), 1),
|
|
1607
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(relationItem.fieldList, (item) => {
|
|
1608
|
-
return openBlock(), createElementBlock("div", {
|
|
1609
|
-
class: normalizeClass(["quick-item", {
|
|
1610
|
-
"quick-block": item.con == "DATE" || item.con == "BIRTHDAY" || item.con == "CONVERT" || item.LABELAttr
|
|
1611
|
-
}]),
|
|
1612
|
-
key: item.sid
|
|
1613
|
-
}, [
|
|
1614
|
-
createElementVNode("div", _hoisted_26, [
|
|
1615
|
-
createCommentVNode(" title "),
|
|
1616
|
-
createElementVNode("div", {
|
|
1617
|
-
class: normalizeClass(["quick-item-title", { "quick-item-title-default": __props.source !== "editTable" }])
|
|
1618
|
-
}, [
|
|
1619
|
-
createElementVNode("span", null, toDisplayString(unref(handleName)(item, "title")) + "\xA0\xA0", 1)
|
|
1620
|
-
], 2),
|
|
1621
|
-
createElementVNode("div", {
|
|
1622
|
-
class: normalizeClass(["quick-item-col", { "quick-item-col-default": __props.source !== "editTable" }])
|
|
1623
|
-
}, [
|
|
1624
|
-
item.LABELAttr ? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
1625
|
-
item.labelObj && Object.keys(item.labelObj || {}).length > 0 ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
1626
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.labelObj, (v, k) => {
|
|
1627
|
-
return openBlock(), createElementBlock("div", {
|
|
1628
|
-
key: k,
|
|
1629
|
-
class: "edit-label-content"
|
|
1630
|
-
}, [
|
|
1631
|
-
createElementVNode("div", _hoisted_28, toDisplayString(k) + "\uFF1A", 1),
|
|
1632
|
-
createElementVNode("div", _hoisted_29, [
|
|
1633
|
-
createElementVNode("div", _hoisted_30, [
|
|
1634
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(v.itemList, (child, i2) => {
|
|
1635
|
-
return openBlock(), createBlock(unref(NTag), {
|
|
1636
|
-
checked: child.isSelect,
|
|
1637
|
-
checkable: "",
|
|
1638
|
-
key: i2,
|
|
1639
|
-
class: normalizeClass(["label-tag-" + handleLabelColorClass(child)]),
|
|
1640
|
-
"onUpdate:checked": ($event) => handleLabelChange($event, child, item)
|
|
1641
|
-
}, {
|
|
1642
|
-
default: withCtx(() => [
|
|
1643
|
-
createVNode(unref(NTooltip), { placement: "top-start" }, {
|
|
1644
|
-
trigger: withCtx(() => [
|
|
1645
|
-
createElementVNode("span", null, toDisplayString(child.labelName), 1)
|
|
1646
|
-
]),
|
|
1647
|
-
default: withCtx(() => [
|
|
1648
|
-
createTextVNode(" " + toDisplayString(child.labelName), 1)
|
|
1649
|
-
]),
|
|
1650
|
-
_: 2
|
|
1651
|
-
}, 1024)
|
|
1652
|
-
]),
|
|
1653
|
-
_: 2
|
|
1654
|
-
}, 1032, ["checked", "class", "onUpdate:checked"]);
|
|
1655
|
-
}), 128)),
|
|
1656
|
-
createCommentVNode(" </a-checkable-tag> ")
|
|
1657
|
-
])
|
|
1658
|
-
])
|
|
1659
|
-
]);
|
|
1660
|
-
}), 128))
|
|
1661
|
-
]) : (openBlock(), createBlock(unref(NInput), {
|
|
1662
|
-
key: 1,
|
|
1663
|
-
style: { "width": "200px" },
|
|
1664
|
-
value: item.inputVal,
|
|
1665
|
-
"onUpdate:value": ($event) => item.inputVal = $event
|
|
1666
|
-
}, null, 8, ["value", "onUpdate:value"]))
|
|
1667
|
-
])) : item.EVALUATEAttr ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1668
|
-
createCommentVNode(" EVALUATE "),
|
|
1669
|
-
createElementVNode("div", _hoisted_31, [
|
|
1670
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(EVALUATEList), (tag) => {
|
|
1671
|
-
return openBlock(), createBlock(unref(NTag), {
|
|
1672
|
-
key: tag.value,
|
|
1673
|
-
class: normalizeClass({ "ant-tag-checkable-checked": item.selecteds.indexOf(tag.value) > -1 }),
|
|
1674
|
-
checkable: "",
|
|
1675
|
-
checked: item.selecteds.indexOf(tag.value) > -1,
|
|
1676
|
-
"onUpdate:checked": ($event) => handleEvaluateOnChange($event, tag, item)
|
|
1677
|
-
}, {
|
|
1678
|
-
default: withCtx(() => [
|
|
1679
|
-
createTextVNode(toDisplayString(tag.label), 1)
|
|
1680
|
-
]),
|
|
1681
|
-
_: 2
|
|
1682
|
-
}, 1032, ["class", "checked", "onUpdate:checked"]);
|
|
1683
|
-
}), 128))
|
|
1684
|
-
])
|
|
1685
|
-
], 2112)) : item.NUMBERFiled ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
1686
|
-
createCommentVNode(" EVALUATE "),
|
|
1687
|
-
createCommentVNode(" NUMBERFiled "),
|
|
1688
|
-
createElementVNode("div", _hoisted_32, [
|
|
1689
|
-
createElementVNode("span", {
|
|
1690
|
-
class: normalizeClass(["ant-calendar-picker-input ant-input num-picker", { "num-picker-unit": item.inputUnit }])
|
|
1691
|
-
}, [
|
|
1692
|
-
withDirectives(createElementVNode("input", {
|
|
1693
|
-
"onUpdate:modelValue": ($event) => item.lessValue = $event,
|
|
1694
|
-
onKeyup: withKeys(() => changeFilterNumber(item), ["enter"]),
|
|
1695
|
-
title: `\u8D77\u59CB${item.alias || item.title}`,
|
|
1696
|
-
placeholder: `\u8D77\u59CB${item.alias || item.title}`,
|
|
1697
|
-
class: "ant-calendar-range-picker-input"
|
|
1698
|
-
}, null, 40, _hoisted_33), [
|
|
1699
|
-
[vModelText, item.lessValue]
|
|
1700
|
-
]),
|
|
1701
|
-
_hoisted_34,
|
|
1702
|
-
withDirectives(createElementVNode("input", {
|
|
1703
|
-
"onUpdate:modelValue": ($event) => item.bigValue = $event,
|
|
1704
|
-
title: `\u622A\u6B62${item.alias || item.title}`,
|
|
1705
|
-
onKeyup: withKeys(() => changeFilterNumber(item), ["enter"]),
|
|
1706
|
-
placeholder: `\u622A\u6B62${item.alias || item.title}`,
|
|
1707
|
-
class: "ant-calendar-range-picker-input"
|
|
1708
|
-
}, null, 40, _hoisted_35), [
|
|
1709
|
-
[vModelText, item.bigValue]
|
|
1710
|
-
]),
|
|
1711
|
-
item.inputUnit ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1712
|
-
createTextVNode("\xA0" + toDisplayString(item.inputUnit), 1)
|
|
1713
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
1714
|
-
item.lessValue || item.bigValue ? (openBlock(), createElementBlock("span", {
|
|
1715
|
-
key: 1,
|
|
1716
|
-
class: "ant-input-suffix clear-number-icon",
|
|
1717
|
-
onClick: ($event) => clearFilterNumber(item)
|
|
1718
|
-
}, _hoisted_38, 8, _hoisted_36)) : createCommentVNode("v-if", true),
|
|
1719
|
-
_hoisted_39
|
|
1720
|
-
], 2)
|
|
1721
|
-
])
|
|
1722
|
-
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
1723
|
-
createCommentVNode(" NUMBERFiled "),
|
|
1724
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1725
|
-
item.con == "CL" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1726
|
-
unref(showPercent)(item) ? (openBlock(), createBlock(unref(NInputNumber), {
|
|
1727
|
-
key: 0,
|
|
1728
|
-
class: "CL-input",
|
|
1729
|
-
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1730
|
-
value: item.CL,
|
|
1731
|
-
"onUpdate:value": ($event) => item.CL = $event,
|
|
1732
|
-
min: 0,
|
|
1733
|
-
max: 100,
|
|
1734
|
-
clearable: ""
|
|
1735
|
-
}, null, 8, ["style", "value", "onUpdate:value"])) : (openBlock(), createBlock(unref(NInput), {
|
|
1736
|
-
key: 1,
|
|
1737
|
-
class: "CL-input",
|
|
1738
|
-
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1739
|
-
value: item.CL,
|
|
1740
|
-
"onUpdate:value": ($event) => item.CL = $event,
|
|
1741
|
-
clearable: ""
|
|
1742
|
-
}, null, 8, ["style", "value", "onUpdate:value"]))
|
|
1743
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
1744
|
-
item.con == "EQ" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1745
|
-
unref(showPercent)(item) ? (openBlock(), createBlock(unref(NInputNumber), {
|
|
1746
|
-
key: 0,
|
|
1747
|
-
class: "EQ-input",
|
|
1748
|
-
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1749
|
-
value: item.EQ,
|
|
1750
|
-
"onUpdate:value": ($event) => item.EQ = $event,
|
|
1751
|
-
min: 0,
|
|
1752
|
-
max: 100,
|
|
1753
|
-
clearable: ""
|
|
1754
|
-
}, null, 8, ["style", "value", "onUpdate:value"])) : (openBlock(), createBlock(unref(NInput), {
|
|
1755
|
-
key: 1,
|
|
1756
|
-
class: "EQ-input",
|
|
1757
|
-
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1758
|
-
value: item.EQ,
|
|
1759
|
-
"onUpdate:value": ($event) => item.EQ = $event,
|
|
1760
|
-
placeholder: item.placeholder || item.isPreciseSearch || item.fieldType == "JSONB" ? "" : "\u533A\u95F4\u641C\u7D20\u7528~\u5206\u5272",
|
|
1761
|
-
clearable: ""
|
|
1762
|
-
}, null, 8, ["style", "value", "onUpdate:value", "placeholder"]))
|
|
1763
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
1764
|
-
unref(showPercent)(item) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
1765
|
-
createTextVNode("\xA0%")
|
|
1766
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
1767
|
-
createCommentVNode(" date "),
|
|
1768
|
-
item.con == "DATE" ? (openBlock(), createElementBlock("div", _hoisted_40, [
|
|
1769
|
-
createVNode(unref(NRadioGroup), {
|
|
1770
|
-
modelValue: item.DATE.con,
|
|
1771
|
-
"onUpdate:modelValue": ($event) => item.DATE.con = $event,
|
|
1772
|
-
buttonStyle: "solid"
|
|
1773
|
-
}, {
|
|
1774
|
-
default: withCtx(() => [
|
|
1775
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(dateTeam), (date) => {
|
|
1776
|
-
return withDirectives((openBlock(), createBlock(unref(NRadioButton), {
|
|
1777
|
-
onClick: withModifiers(($event) => clickRadioGroup(item.DATE, date.con), ["prevent"]),
|
|
1778
|
-
key: date.con,
|
|
1779
|
-
value: date.con,
|
|
1780
|
-
label: date.name
|
|
1781
|
-
}, null, 8, ["onClick", "value", "label"])), [
|
|
1782
|
-
[vShow, !item.showDate]
|
|
1783
|
-
]);
|
|
1784
|
-
}), 128))
|
|
1785
|
-
]),
|
|
1786
|
-
_: 2
|
|
1787
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
1788
|
-
createElementVNode("span", {
|
|
1789
|
-
class: normalizeClass(["check-date-btn", item.marginx]),
|
|
1790
|
-
onClick: ($event) => checkDate(item)
|
|
1791
|
-
}, "\u5F00\u59CB\u65F6\u95F4", 10, _hoisted_41),
|
|
1792
|
-
withDirectives(createElementVNode("div", _hoisted_42, [
|
|
1793
|
-
createVNode(unref(NDatePicker), {
|
|
1794
|
-
type: "datetime",
|
|
1795
|
-
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
1796
|
-
"formatted-value": item.DATE.start_val,
|
|
1797
|
-
"onUpdate:formatted-value": ($event) => item.DATE.start_val = $event,
|
|
1798
|
-
placeholder: "\u8D77\u59CB\u65E5\u671F",
|
|
1799
|
-
style: { "width": "120px", "min-width": "195px" },
|
|
1800
|
-
clearable: ""
|
|
1801
|
-
}, null, 8, ["formatted-value", "onUpdate:formatted-value"]),
|
|
1802
|
-
createTextVNode(" \xA0 "),
|
|
1803
|
-
createVNode(unref(NDatePicker), {
|
|
1804
|
-
type: "datetime",
|
|
1805
|
-
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
1806
|
-
"formatted-value": item.DATE.end_val,
|
|
1807
|
-
"onUpdate:formatted-value": ($event) => item.DATE.end_val = $event,
|
|
1808
|
-
placeholder: "\u622A\u6B62\u65E5\u671F",
|
|
1809
|
-
style: { "width": "120px" },
|
|
1810
|
-
clearable: ""
|
|
1811
|
-
}, null, 8, ["formatted-value", "onUpdate:formatted-value"])
|
|
1812
|
-
], 512), [
|
|
1813
|
-
[vShow, item.showDate]
|
|
1814
|
-
])
|
|
1815
|
-
])) : createCommentVNode("v-if", true),
|
|
1816
|
-
item.con == "QUOTE" || item.com == "SelectMui" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
1817
|
-
item.comType === "treeSelect" ? (openBlock(), createBlock(cTreeSelect, {
|
|
1818
|
-
key: 0,
|
|
1819
|
-
options: item,
|
|
1820
|
-
handleGetConfigApi: unref(handleGetConfigApi),
|
|
1821
|
-
filterApiConfig: __props.filterApiConfig,
|
|
1822
|
-
style: { "margin": "0 8px 8px 0" }
|
|
1823
|
-
}, null, 8, ["options", "handleGetConfigApi", "filterApiConfig"])) : (openBlock(), createBlock(multiSelect, {
|
|
1824
|
-
key: 1,
|
|
1825
|
-
item,
|
|
1826
|
-
source: "quickSearch",
|
|
1827
|
-
maxTagPlaceholder,
|
|
1828
|
-
outFilterChange: filterChange,
|
|
1829
|
-
handleWordBookSearch: handleSearch,
|
|
1830
|
-
dropdownVisibleChange,
|
|
1831
|
-
fetchingWordbook: unref(fetchingWordbook)
|
|
1832
|
-
}, null, 8, ["item", "fetchingWordbook"]))
|
|
1833
|
-
], 64)) : item.con == "CONVERT" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
1834
|
-
createCommentVNode(" \u591A\u9009\u9009\u9879\u7EC4 "),
|
|
1835
|
-
(item == null ? void 0 : item.advanceOptionSetting) != "0" ? (openBlock(), createBlock(unref(NCheckboxGroup), {
|
|
1836
|
-
key: 0,
|
|
1837
|
-
class: "check-box",
|
|
1838
|
-
value: item.CONVERT,
|
|
1839
|
-
"onUpdate:value": ($event) => item.CONVERT = $event
|
|
1840
|
-
}, {
|
|
1841
|
-
default: withCtx(() => [
|
|
1842
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.setting.showSetting, (check, index) => {
|
|
1843
|
-
return openBlock(), createBlock(unref(NCheckbox), {
|
|
1844
|
-
key: index,
|
|
1845
|
-
value: check.value,
|
|
1846
|
-
label: check.label
|
|
1847
|
-
}, null, 8, ["value", "label"]);
|
|
1848
|
-
}), 128))
|
|
1849
|
-
]),
|
|
1850
|
-
_: 2
|
|
1851
|
-
}, 1032, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1852
|
-
createCommentVNode(" \u5355\u9009\u9009\u9879\u7EC4 "),
|
|
1853
|
-
createVNode(unref(NRadioGroup), {
|
|
1854
|
-
class: "check-box",
|
|
1855
|
-
value: item.CONVERT,
|
|
1856
|
-
"onUpdate:value": ($event) => item.CONVERT = $event
|
|
1857
|
-
}, {
|
|
1858
|
-
default: withCtx(() => [
|
|
1859
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.setting.showSetting, (check, index) => {
|
|
1860
|
-
return openBlock(), createBlock(unref(NRadio), {
|
|
1861
|
-
key: index,
|
|
1862
|
-
value: check.value,
|
|
1863
|
-
label: check.label
|
|
1864
|
-
}, null, 8, ["value", "label"]);
|
|
1865
|
-
}), 128))
|
|
1866
|
-
]),
|
|
1867
|
-
_: 2
|
|
1868
|
-
}, 1032, ["value", "onUpdate:value"])
|
|
1869
|
-
], 2112))
|
|
1870
|
-
], 64)) : createCommentVNode("v-if", true)
|
|
1871
|
-
])
|
|
1872
|
-
], 2112))
|
|
1873
|
-
], 2)
|
|
1874
|
-
])
|
|
1875
|
-
], 2);
|
|
1876
|
-
}), 128))
|
|
1877
|
-
])) : createCommentVNode("v-if", true)
|
|
1878
|
-
], 64);
|
|
1879
|
-
}), 256))
|
|
1880
|
-
], 2),
|
|
1881
|
-
createVNode(unref(NModal), {
|
|
1882
|
-
show: unref(showInner),
|
|
1883
|
-
maskClosable: false,
|
|
1884
|
-
"positive-text": "\u786E\u8BA4",
|
|
1885
|
-
"negative-text": "\u53D6\u6D88",
|
|
1886
|
-
onPositiveClick: saveToCalss,
|
|
1887
|
-
onNegativeClick: cancelSaveToCalss,
|
|
1888
|
-
class: "quickSearch-saveToClass-modal"
|
|
1889
|
-
}, {
|
|
1890
|
-
default: withCtx(() => [
|
|
1891
|
-
createVNode(unref(NCard), {
|
|
1892
|
-
title: "\u8BBE\u7F6E\u7B5B\u9009\u5206\u7C7B",
|
|
1893
|
-
style: { "width": "520px" },
|
|
1894
|
-
bordered: false,
|
|
1895
|
-
size: "huge",
|
|
1896
|
-
role: "dialog",
|
|
1897
|
-
"aria-modal": "true"
|
|
1898
|
-
}, {
|
|
1899
|
-
"header-extra": withCtx(() => [
|
|
1900
|
-
createElementVNode("div", _hoisted_43, [
|
|
1901
|
-
createVNode(unref(NIcon), {
|
|
1902
|
-
component: unref(CloseOutline),
|
|
1903
|
-
size: "24",
|
|
1904
|
-
onClick: cancelSaveToCalss
|
|
1905
|
-
}, null, 8, ["component"])
|
|
1906
|
-
])
|
|
1907
|
-
]),
|
|
1908
|
-
footer: withCtx(() => [
|
|
1909
|
-
createVNode(unref(NButton), { onClick: cancelSaveToCalss }, {
|
|
1910
|
-
default: withCtx(() => [
|
|
1911
|
-
createTextVNode("\u53D6\u6D88")
|
|
1912
|
-
]),
|
|
1913
|
-
_: 1
|
|
1914
|
-
}),
|
|
1915
|
-
createVNode(unref(NButton), {
|
|
1916
|
-
type: "info",
|
|
1917
|
-
onClick: saveToCalss
|
|
1918
|
-
}, {
|
|
1919
|
-
default: withCtx(() => [
|
|
1920
|
-
createTextVNode("\u786E\u8BA4")
|
|
1921
|
-
]),
|
|
1922
|
-
_: 1
|
|
1923
|
-
})
|
|
1924
|
-
]),
|
|
1925
|
-
default: withCtx(() => [
|
|
1926
|
-
createVNode(unref(NForm), {
|
|
1927
|
-
ref_key: "formRef",
|
|
1928
|
-
ref: formRef,
|
|
1929
|
-
"label-placement": "left",
|
|
1930
|
-
rules,
|
|
1931
|
-
model: formValue.value
|
|
1932
|
-
}, {
|
|
1933
|
-
default: withCtx(() => [
|
|
1934
|
-
createVNode(unref(NFormItem), {
|
|
1935
|
-
label: "\u7B5B\u9009\u96C6\u540D\u79F0",
|
|
1936
|
-
path: "classname"
|
|
1937
|
-
}, {
|
|
1938
|
-
default: withCtx(() => [
|
|
1939
|
-
createVNode(unref(NInput), {
|
|
1940
|
-
value: formValue.value.classname,
|
|
1941
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formValue.value.classname = $event),
|
|
1942
|
-
placeholder: "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",
|
|
1943
|
-
clearable: ""
|
|
1944
|
-
}, null, 8, ["value"])
|
|
1945
|
-
]),
|
|
1946
|
-
_: 1
|
|
1947
|
-
})
|
|
1948
|
-
]),
|
|
1949
|
-
_: 1
|
|
1950
|
-
}, 8, ["model"]),
|
|
1951
|
-
createVNode(unref(NGrid), { cols: 24 }, {
|
|
1952
|
-
default: withCtx(() => [
|
|
1953
|
-
createVNode(unref(NGridItem), {
|
|
1954
|
-
span: 5,
|
|
1955
|
-
style: { "text-align": "right", "color": "rgba(0, 0, 0, 0.85)" }
|
|
1956
|
-
}, {
|
|
1957
|
-
default: withCtx(() => [
|
|
1958
|
-
createTextVNode("\u7236\u7C7B\u540D\u79F0\uFF1A")
|
|
1959
|
-
]),
|
|
1960
|
-
_: 1
|
|
1961
|
-
}),
|
|
1962
|
-
createVNode(unref(NGridItem), { span: 18 }, {
|
|
1963
|
-
default: withCtx(() => [
|
|
1964
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(parentNames), (item, index) => {
|
|
1965
|
-
return openBlock(), createElementBlock("div", {
|
|
1966
|
-
class: normalizeClass(["edit-tag", { "edit-tag-select": item.selected && item.disabled }]),
|
|
1967
|
-
key: index,
|
|
1968
|
-
onDblclick: (e) => editParentName(e, item),
|
|
1969
|
-
onClick: ($event) => handleParentNameSelect(item, index)
|
|
1970
|
-
}, [
|
|
1971
|
-
item.disabled ? (openBlock(), createElementBlock("div", _hoisted_45, [
|
|
1972
|
-
createElementVNode("span", null, toDisplayString(item.value), 1)
|
|
1973
|
-
])) : (openBlock(), createBlock(unref(NInput), {
|
|
1974
|
-
key: 1,
|
|
1975
|
-
style: { "width": "100px" },
|
|
1976
|
-
value: item.value,
|
|
1977
|
-
"onUpdate:value": ($event) => item.value = $event,
|
|
1978
|
-
disabled: item.disabled,
|
|
1979
|
-
onBlur: () => item.disabled = true,
|
|
1980
|
-
maxLength: 10
|
|
1981
|
-
}, null, 8, ["value", "onUpdate:value", "disabled", "onBlur"])),
|
|
1982
|
-
createVNode(unref(NIcon), {
|
|
1983
|
-
component: unref(CloseOutline),
|
|
1984
|
-
class: "anticon-close",
|
|
1985
|
-
size: "20",
|
|
1986
|
-
onClick: ($event) => handleParentNamesRemove(index, item)
|
|
1987
|
-
}, null, 8, ["component", "onClick"])
|
|
1988
|
-
], 42, _hoisted_44);
|
|
1989
|
-
}), 128)),
|
|
1990
|
-
!unref(parentNamesHasAdd) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1991
|
-
withDirectives(createVNode(unref(NButton), {
|
|
1992
|
-
dashed: "",
|
|
1993
|
-
icon: "plus",
|
|
1994
|
-
class: "ant-btn",
|
|
1995
|
-
onClick: handleParentNamesAdd
|
|
1996
|
-
}, {
|
|
1997
|
-
default: withCtx(() => [
|
|
1998
|
-
createVNode(unref(NIcon), {
|
|
1999
|
-
component: unref(AddOutline),
|
|
2000
|
-
size: "20"
|
|
2001
|
-
}, null, 8, ["component"]),
|
|
2002
|
-
createTextVNode("\u6DFB\u52A0\u5206\u7C7B")
|
|
2003
|
-
]),
|
|
2004
|
-
_: 1
|
|
2005
|
-
}, 512), [
|
|
2006
|
-
[vShow, !unref(showAdd)]
|
|
2007
|
-
]),
|
|
2008
|
-
withDirectives(createVNode(unref(NInput), {
|
|
2009
|
-
style: { "width": "100px" },
|
|
2010
|
-
class: "edit-tag",
|
|
2011
|
-
value: unref(addVal),
|
|
2012
|
-
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(addVal) ? addVal.value = $event : addVal = $event),
|
|
2013
|
-
valueModifiers: { trim: true },
|
|
2014
|
-
onBlur: hanldeBlur,
|
|
2015
|
-
maxLength: 10
|
|
2016
|
-
}, null, 8, ["value"]), [
|
|
2017
|
-
[vShow, unref(showAdd)]
|
|
2018
|
-
])
|
|
2019
|
-
], 64)) : createCommentVNode("v-if", true)
|
|
2020
|
-
]),
|
|
2021
|
-
_: 1
|
|
2022
|
-
})
|
|
2023
|
-
]),
|
|
2024
|
-
_: 1
|
|
2025
|
-
})
|
|
2026
|
-
]),
|
|
2027
|
-
_: 1
|
|
2028
|
-
})
|
|
2029
|
-
]),
|
|
2030
|
-
_: 1
|
|
2031
|
-
}, 8, ["show"])
|
|
2032
|
-
]);
|
|
2033
|
-
};
|
|
2034
|
-
}
|
|
2035
|
-
});
|
|
2036
|
-
var scriptQuickSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "QuickSearch.vue"]]);
|
|
2037
|
-
|
|
2038
|
-
export { scriptQuickSearch as default };
|
|
1
|
+
import{defineComponent as e,useAttrs as l,ref as t,computed as a,watch as i,openBlock as n,createElementBlock as o,createElementVNode as s,normalizeClass as u,unref as c,createCommentVNode as r,Fragment as d,renderList as v,toDisplayString as p,createBlock as f,withCtx as m,createVNode as h,createTextVNode as y,renderSlot as g,withDirectives as b,normalizeStyle as k,withModifiers as A,withKeys as E,vModelText as T,vShow as S,isRef as C}from"vue";import{TEAMS as O,DAYUNITS as D,EVALUATEList1 as L,AGEOPTIONS as R,DATETEAM0 as U,DATETEAM2 as _,DATETEAM3 as w}from"../const/dataOptions.js";import{useMessage as N,NTooltip as V,NTag as B,NIcon as x,NInput as I,NInputNumber as j,NRadioGroup as Y,NRadioButton as H,NDatePicker as P,NSelect as q,NCheckboxGroup as M,NCheckbox as Q,NRadio as F,NModal as W,NCard as $,NButton as G,NForm as z,NFormItem as J,NGrid as K,NGridItem as X}from"naive-ui";import{ChevronUp as Z,ChevronDown as ee,CloseOutline as le,AddOutline as te}from"@vicons/ionicons5";import ae from"../hooks/useMixins.js";import ie from"../hooks/useTableSearchCon.js";import ne from"../hooks/useWordBookutils.js";import oe from"../hooks/useRenderWidget.js";import se from"axios";import ue from"moment";import"moment/locale/zh-cn";import{cloneDeep as ce}from"lodash-es";import re from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import de from"../components/range-age/index.vue.js";import ve from"../components/multi-select/multi-select.vue.js";import pe from"../components/c-tree-select/tree-select.vue.js";import fe from"../components/render-widget/index.vue.js";import me from"../directive/resize.js";import{handleLabelColor as he}from"../../../../shared/utils/vexutils.js";import ye from"../../../../_virtual/plugin-vue_export-helper.js";import ge from"xe-utils";const be={key:0,class:"module-title"},ke={class:"quick-row"},Ae={class:"age-container"},Ee={class:"label-attr-container"},Te={class:"edit-label"},Se={class:"label-content"},Ce={key:0,class:"label-unfold-btn"},Oe=["onClick"],De=s("span",null,"收起",-1),Le=s("span",null,"展开",-1),Re={class:"tag-evaluate"},Ue={class:"ant-calendar-picker",style:{width:"300px"}},_e=["onUpdate:modelValue","onKeyup","title","placeholder"],we=s("span",{class:"ant-calendar-range-picker-separator"}," ~ ",-1),Ne=["onUpdate:modelValue","title","onKeyup","placeholder"],Ve=["onClick"],Be=[s("i",{"aria-label":"图标: close-circle",tabindex:"-1",class:"anticon anticon-close-circle ant-input-clear-icon"},[s("svg",{viewBox:"64 64 896 896","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",class:""},[s("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"})])],-1)],xe={key:3},Ie=["onClick"],je={class:"check-date"},Ye={class:"age-wrap"},He=s("p",null,"年龄",-1),Pe=["onClick"],qe={class:"module-title"},Me={class:"quick-row"},Qe={key:0},Fe={class:"edit-label"},We={class:"edit-content"},$e={class:"label-content"},Ge={class:"tag-evaluate"},ze={class:"ant-calendar-picker",style:{width:"300px"}},Je=["onUpdate:modelValue","onKeyup","title","placeholder"],Ke=s("span",{class:"ant-calendar-range-picker-separator"}," ~ ",-1),Xe=["onUpdate:modelValue","title","onKeyup","placeholder"],Ze=["onClick"],el=[s("i",{"aria-label":"图标: close-circle",tabindex:"-1",class:"anticon anticon-close-circle ant-input-clear-icon"},[s("svg",{viewBox:"64 64 896 896","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",class:""},[s("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"})])],-1)],ll=s("span",{class:"ant-calendar-picker-icon"},null,-1),tl={key:3},al=["onClick"],il={class:"check-date"},nl={class:"svg-wrap"},ol=["onDblclick","onClick"],sl={key:0,class:"s-content"};var ul=ye(e({__name:"QuickSearch",props:{visible:{type:Boolean},searchFieldList:{type:Array,default:()=>[]},searchFieldLimit:{type:Object,default:()=>({})},quickSearchConfig:{type:Array,default:()=>[]},source:{type:String,default:"editTable"},quickSearchListObj:{type:Object,default:()=>({})},originConditionList:{type:Array,default:()=>[]},isOrgAdmin:{type:Boolean,default:!1},lastQuickSearchData:{type:Array,default:()=>[]},show:{type:Boolean},getFilterData:{type:Function},filterApiConfig:{type:Object}},emits:["filterCountChange","onSave","closeModal","updateTableCondiTion","clearQuickSearchConfig"],setup(e,{expose:ye,emit:ul}){const cl=e,rl={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}};se.create({});const dl=l(),vl=N(),{handleGetConfigApi:pl}=ae(),{validConObj:fl,getSearchDefValueByLimit:ml,formatSearchLimit:hl}=ie(),{wordBookutils:yl}=ne(),{isRender:gl,getDefValByRenderWidget:bl,initRenderWidgetCfg:kl,getRenderSearchConObj:Al,getDefValByRenderConObj:El,isExistDefValByRenderWidget:Tl,resetRenderWidgetValue:Sl}=oe(),Cl=t(new Map),Ol=t(null),Dl=t({classname:""});let Ll=t(cl.visible),Rl=t(!1),Ul=t([]),_l=t([]),wl=t([]),Nl=t({}),Vl=t(),Bl=t(""),xl=t(O),Il=t([]),jl=t(""),Yl=t(D),Hl=t(!1),Pl=t("700px"),ql=t("60vh"),Ml=t(L);t(R),t(8);let Ql=t([]),Fl=t(!1),Wl=t(""),$l=t(!1),Gl=t(U),zl=t(_),Jl=t(w),Kl=a((()=>function(e){var l;return"PERCENTAGE"===(null==(l=e.settingObj)?void 0:l.attr)||!1})),Xl=a((()=>function(e){return`${e.advanceColWidth||200}px`})),Zl=a((()=>-1!=wl.value.findIndex((e=>e.fieldList&&e.fieldList.length)))),et=a((()=>!!Ql.value.length&&Ql.value.some((e=>e.isAdd)))),lt=a((()=>(e,l="name")=>e.alias||e[l]));function tt(...e){return ge.filterOption(...e)}function at(...e){return he(...e)}function it(e){if(!e.length)return Ul.value.forEach(((e,l)=>{if(gl(e))return void(Ul.value[l].value=bl(e));let t=null==e?void 0:e.advanceOptionSetting;"0"==String(t)?Ul.value[l].value=void 0:e.CONVERT&&Array.isArray(e.CONVERT)&&(Ul.value[l].CONVERT=[])})),!1;Ul.value.forEach(((l,t)=>{var a;let i=null==l?void 0:l.advanceOptionSetting,n="0"==String(i),o=e.find((e=>e.field_key===l.columnName));if(o){if(gl(l))return void(Ul.value[t].value=El(o,l));let e=null==o?void 0:o.value;if(Array.isArray(e)&&l.CONVERT&&Array.isArray(l.CONVERT)){let i=(null==(a=e.map)?void 0:a.call(e,(e=>JSON.stringify(e))))||o.value;if(i=i.filter(Boolean),Ul.value[t].CONVERT=i,n&&l.labelList){let e=i[0]?l.labelList.findIndex((e=>e.value==i[0])):"";Ul.value[t].value=e}}else Ul.value[t].value=e}else Ul.value[t].CONVERT=n?"":[]}))}function nt(e){Array.isArray(e)&&e.forEach((e=>{var l,t,a,i,n,o,s,u,c,r,d,v,p;if(kl(e))return;const f=(null==(l=null==e?void 0:e.settingObj)?void 0:l.isPreciseSearch)||"";if(e.setting){e.setting="string"==typeof e.setting?JSON.parse(e.setting):e.setting;let l=null==e?void 0:e.advanceOptionSetting,u="0"==String(l),c=null==(a=null==(t=null==e?void 0:e.setting)?void 0:t.wordbook)?void 0:a.id;if(ge.anyNotEmpty(null==(i=e.setting)?void 0:i.wordbook)&&c){let l="tree"===(null==(o=null==(n=null==e?void 0:e.setting)?void 0:n.wordbook)?void 0:o.showType)?"treeSelect":"SelectMuiWordBook",t=[];return u&&(t=void 0),e.con="QUOTE",e.dataSource=[],e.QUOTE=[],e.value=t,e.com="SelectMui",e.comType=l,void(e.searchPageConfig={keyword:void 0,isRequest:!1,page:1,total:1,hasNextPage:!1})}if((null==(s=null==e?void 0:e.setting)?void 0:s.showSetting)&&(null==e?void 0:e.setting.showSetting.length)>0){e.con="CONVERT";let l=e.setting.showSetting,t=function(e){let{defaultValue:l,defaultValueTitle:t}=(null==e?void 0:e.dictionarieObj)||{},a=null;l&&t&&(a={change_text:t,filter:[{con:"EQ",field_key:e.columnName,value:l}]});return a}(e);if(t&&l.unshift(t),l.forEach((e=>{e.label=e.change_text,e.value=JSON.stringify(e.filter)})),u){e.com="SelectMui",e.comType="SelectMui";const l=e.setting.showSetting.map((e=>(e.labelName=e.change_text,e)));e.labelList=l}return e.setting.showSetting=l,void(e.CONVERT=u?"":[])}}if("LABEL"===(null==(u=e.setting)?void 0:u.attr))e.con="CL",e.LABELAttr=!0,e.labelSelectList=[],e.inputVal="",async function(e,l){let t={},a=await pl(e,"requestedLabel",{},cl.filterApiConfig);a.forEach((e=>{e.isSelect=!1,t[e.typeName]?t[e.typeName].itemList.push({...e}):t[e.typeName]={itemList:[{...e}],showAdd:!1,addVal:"",typeName:e.typeName,typeId:e.typeId,isUnfold:!1,isShowBtn:!1}})),l.labelObj=t,l.labelList=a}(e.setting.labelType,e);else if("EVALUATE"===(null==(c=e.setting)?void 0:c.attr))e.con="CL",e.selecteds=[],e.EVALUATEAttr=!0;else if("AGE"===(null==(r=e.setting)?void 0:r.attr)&&"NUMBER"!=e.fieldType){let l=e.setting.format||"YYYY-MM-DD";l=l.toUpperCase(),e.con="IN",e.ageObj={},e.format=l,e.AGEAttr=!0}else if("PASSWORD"===(null==(d=e.setting)?void 0:d.attr))e.comAttr="PASSWORD",e.PASSWORDTYPE=!0;else if("NUMBER"==e.fieldType)e.con="EQ",e.EQ="",e.NUMBERFiled=!0,e.lessValue="",e.bigValue="","PERCENTAGE"==(null==(v=e.setting)?void 0:v.attr)&&(e.inputUnit="%");else if(null==(p=null==e?void 0:e.fieldType)?void 0:p.includes("DATE"))if(e.settingObj&&"BIRTHDAY"==e.settingObj.attr)e.con="BIRTHDAY",e.showDate=!1,e.marginx="ml",e.BIRTHDAY=Ct();else{const l=ml(e,cl.searchFieldLimit);let t=Array.isArray(l),a=null==e?void 0:e.advanceOptionSetting,i="1"==String(a);e.con="DATE",e.showDate=i||t,e.marginx=i||t?"mr":"ml",e.DATE={con:t?"IN":null,start_val:t?l[0]:null,end_val:t?l[1]:null};let n=[];switch(a){case"0":n=[];break;case"2":n=(null==zl?void 0:zl.value)||Gl.value;break;case"3":n=(null==Jl?void 0:Jl.value)||Gl.value}e.dateTeam=n}else if("TEXT"==e.fieldType){let l=1==f?"EQ":"CL";e.con=l,e.isPreciseSearch=1==f}else"JSONB"==e.fieldType&&(e.con="EQ",e.EQ="")}))}function ot(e){e.showDate=!e.showDate,e.showDate?e.marginx="mr":e.marginx="ml"}function st(e,l){let{id:t,filterKeys:a,wordbookType:i}=e;$l.value=!0;let n={wordbookId:t,fieldKeys:Array.isArray(a)?JSON.stringify(a):a,wordbookType:i||"WORDBOOK",asyncCount:1,...l};return pl(n,"requestGetWordbookData",{fields:e},cl.filterApiConfig).then((e=>($l.value=!1,"object"==typeof e.data&&(e.data.reqParams=n),e))).catch((()=>{$l.value=!1}))}function ut(e,l,t){e.hasFieldList=!1;const{rows:a,hasFieldList:i,searchPageConfig:n}=yl.handleWordbookData(e,l,t);e.hasFieldList=i,e.dataSource=a,e.searchPageConfig=Object.assign(e.searchPageConfig,n)}function ct(){}function rt(e){return Array.isArray(e.value)?e.value.length:1}function dt(e,l){var t,a,i,n,o,s,u;if(("SelectMui"!=l.comType||"0"!==String(l.advanceOptionSetting))&&e){let e={};(null==(a=null==(t=l.setting)?void 0:t.wordbook)?void 0:a.params)&&(null==(o=null==(n=null==(i=l.setting)?void 0:i.wordbook)?void 0:n.params)||o.forEach((l=>{e[l.p_name]=l.p_value}))),l.settingObj.wordbook&&(e.autograph=l.settingObj.wordbook.autograph),Vl.value=null==(s=l.setting)?void 0:s.wordbook,Bl.value=l.settingObj.wordbook&&l.settingObj.wordbook.autograph,Nl.value=l,st(null==(u=l.setting)?void 0:u.wordbook,e).then((({data:t})=>{ut(l,t,e)}))}}function vt(e,l,t={}){var a,i,n,o,s;if("SelectMui"==l.comType&&"0"===String(l.advanceOptionSetting))return;let u={keyword:e,autograph:Bl.value},c={};((null==(i=null==(a=null==l?void 0:l.setting)?void 0:a.wordbook)?void 0:i.params)||void 0)&&(null==(s=null==(o=null==(n=l.setting)?void 0:n.wordbook)?void 0:o.params)||s.forEach((e=>{c[e.p_name]=e.p_value})));let r={...u,...c,...t};st(Vl.value,r).then((({data:e})=>{ut(Nl.value,e,r)}))}function pt(){let e=mt(Ul.value)||[],l=[];return wl.value.forEach((e=>{let t=mt(e.fieldList);t&&t.length&&l.push({field_key:e.primaryField,valueField:e.relationField,con:"QUOTE_IN",tableId:e.tableId,parameterConversionId:e.parameterConversionId,converFun:e.converFun,preConObj:e.preConObj,relationOrgId:e.relationOrgId,preSqlExpression:e.preSqlExpression,quote_con:{conObj:mt(e.fieldList),sqlExpression:""}})})),e.push(...l),e||[]}function ft(){Pl.value="700px",ql.value="60vh",Hl.value=!1}function mt(e){var l,t,a,i,n,o;if(!Array.isArray(e))return[];let s=[];for(let u=0;u<e.length;u++){let c=e[u];const r=Al(c);if(r){s.push(r);continue}let d="",v="",p=null==c?void 0:c.advanceOptionSetting,f="0"===String(p);if(c.EQ||c.CL)d=c.EQ||c.CL,"PERCENTAGE"===(null==(l=c.settingObj)?void 0:l.attr)&&(d=Number(d)/100),c.EVALUATEAttr&&(d=c.selecteds.join("|#|"));else if("SelectMui"==c.comType&&f&&c.labelList){let e=c.value,l=null==c?void 0:c.labelList[e];d="CONVERT"==c.con?(null==l?void 0:l.filter)?[null==l?void 0:l.filter]:void 0:(null==l?void 0:l.labelName)?[null==l?void 0:l.labelName]:void 0}else if("QUOTE"==c.con&&ge.anyNotEmpty(c.value))if("treeSelect"==c.comType){let e=c.value;"string"==typeof e?([e]=e.split("<&=&>"),d=e):Array.isArray(e)&&(e=e.map((e=>{let[l]="string"==typeof e?e.split("<&=&>"):[];return l})),d=e.join("|#|"))}else d=f?c.value:c.value.join("|#|");else if(ge.anyNotEmpty(c.CONVERT)&&Array.isArray(c.CONVERT))d=c.CONVERT.map((e=>e&&ge.isJSON(e)?JSON.parse(e):e));else if(c.DATE&&!c.AGEAttr)(c.DATE.start_val||c.DATE.end_val)&&(c.DATE.con="IN"),c.tempCon=c.DATE.con,c.start_val=c.DATE.start_val||null,c.end_val=c.DATE.end_val||null;else if(c.BIRTHDAY){let e=!1;if(((null==(a=null==(t=c.BIRTHDAY)?void 0:t.limit_date)?void 0:a.length)>0||c.BIRTHDAY.start_val||c.BIRTHDAY.end_val)&&(c.BIRTHDAY.con="IN"),c.tempCon=c.BIRTHDAY.con,e=!(!c.BIRTHDAY.start_val&&!c.BIRTHDAY.end_val),c.BIRTHDAY.start_val){if(!ge.validateBirthday(c.BIRTHDAY.start_val,c.title,c.BIRTHDAY.unit))return}if(c.BIRTHDAY.end_val){if(!ge.validateBirthday(c.BIRTHDAY.end_val,c.title,c.BIRTHDAY.unit))return}if(+c.BIRTHDAY.start_val>+c.BIRTHDAY.end_val)return void vl.warning(`${c.title}请输入有效范围`);v=jl.value||"",c.unit=e&&c.BIRTHDAY.unit||"",c.start_val=c.BIRTHDAY.start_val||null,c.end_val=c.BIRTHDAY.end_val||null}if(c.LABELAttr)if(Object.keys(c.labelObj||{}).length>0&&Array.isArray(c.labelSelectList)){let e=[];c.labelSelectList.forEach((l=>{e.push(l.labelName)})),d=e.join("|#|")}else d=c.inputVal;else if(c.EVALUATEAttr)d=c.selecteds.join("|#|");else if(c.AGEAttr)d="";else if(c.NUMBERFiled&&(c.lessValue||c.bigValue)){let e=null!=(i=c.lessValue)?i:"",l=null!=(n=c.bigValue)?n:"";"PERCENTAGE"===(null==(o=c.setting)?void 0:o.attr)&&(e=(e||0===e)&&Number(e)/100||"",l=(l||0===l)&&Number(l)/100||""),d=`${e}~${l}`}d&&ge.isString(d)&&(d=d.trim());let m={field_key:c.columnName,con:c.DATE||c.BIRTHDAY?c.tempCon:c.con,value:d,limit_date:v||"",start_val:c.start_val||null,end_val:c.end_val||null,unit:c.unit||"",id:c.id};s.push(m)}let u=xl.value.map((e=>e.con));return s.filter((e=>e.value||e.limit_date||e.start_val||e.end_val||u.includes(e.con)))}function ht(e){return e&&e<ue().startOf("year")||e>ue().endOf("year")}function yt(e,l){l[0]?jl.value=l.join("~"):jl.value=""}function gt(){var e;null==(e=Ol.value)||e.validate((e=>{var l;if(e)return;let t=pt();t.length||(t=[]);let a=null==(l=Ql.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await pl(e,"requestSaveTableCondiTion",{},cl.filterApiConfig))return;Rl.value=!1,null==(l=Ol.value)||l.restoreValidation(),Dl.value.classname="",Ql.value=[],ul("updateTableCondiTion"),Tt(),ft(),ul("closeModal")}catch(e){console.log(e)}}({tableId:dl.tableId||"",setting:JSON.stringify({displayCategory:a,name:Dl.value.classname,conObj:t}),conditionList:JSON.stringify(cl.originConditionList)})}))}function bt(e){var l;const t=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{t&&t.focus()})),Fl.value=!0}function kt(){Fl.value=!1,Wl.value&&(Ql.value.forEach((e=>e.selected=!1)),Ql.value.push({disabled:!0,value:Wl.value,selected:!0,isAdd:!0}),Wl.value="")}function At(e,l){!function(e,l){let{conditionList:t=[]}=cl.quickSearchListObj||{};if(!t||t&&0===(null==t?void 0:t.length))return void Ql.value.splice(e,1);let a=t.filter((e=>e.displayCategory===l.value));if(!a||!a.length)return void Ql.value.splice(e,1);vl.error("该分类下有已有数据,请删除该分类下的筛选集后重试!")}(e,l)}function Et(){Rl.value=!1}function Tt(){St(Ul.value),wl.value.forEach((e=>{St(e.fieldList)})),"editTable"!==cl.source?null==dl||dl.clearQuickSearchConfig():ul("clearQuickSearchConfig")}function St(e){Array.isArray(e)&&e.forEach((e=>{if(Sl(e))return;let l=null==e?void 0:e.advanceOptionSetting,t="0"===String(l);var a;e.EQ||e.CL?(e.EQ="",e.CL=""):"QUOTE"==e.con&&ge.anyNotEmpty(e.value)?(e.QUOTE=[],e.value=[]):"SelectMui"==e.com&&"CONVERT"==e.con&&t?(e.CONVERT=[],e.value=void 0):ge.anyNotEmpty(e.CONVERT)?e.CONVERT=[]:e.DATE?(e.showDate="1"==String(l),e.marginx="ml",e.DATE={con:null,start_val:null,end_val:null}):e.BIRTHDAY?(e.showDate=!1,e.marginx="ml",e.BIRTHDAY=Ct()):e.LABELAttr?(a=e).labelSelectList&&(a.labelSelectList.length=0,a.inputVal="",Object.entries(a.labelObj||{}).forEach((e=>{let[,l]=e;l.itemList.forEach((e=>{e.isSelect=!1}))}))):e.EVALUATEAttr?e.selecteds=[]:e.AGEAttr?function(e){e.start_val=null,e.end_val=null;let l=Cl.value.get(`${e.columnName}_AGEAttr`);l&&(Array.isArray(l)&&(l=l[0]||!1),null==l||l.reset())}(e):e.NUMBERFiled&&wt(e)}))}function Ct(){return jl.value="",{con:null,limit_date:[],start_val:null,end_val:null,unit:"YEAR",units:Yl.value.filter((e=>1===e.units))}}function Ot(e,l){e&&(e.con==l?e.con=null:("IN"===e.con&&(e.start_val=null,e.end_val=null),e.con=l))}function Dt(e){var l;return(null==(l=null==e?void 0:e.color)?void 0:l.split("-")[1])||"yellow"}function Lt(e,l,t){let a=t.labelSelectList||[];if(e){if(a.some((e=>e.labelId==l.labelId)))return;a.push(l)}else{let e=a.findIndex((e=>e.labelId==l.labelId));-1!=e&&a.splice(e,1)}l.isSelect=e,t.labelSelectList=a}function Rt(e,l,t){if(e)t.selecteds.push(l.value);else{let e=t.selecteds.findIndex((e=>e===l.value));t.selecteds.splice(e,1)}}function Ut(e){e&&Cl.value.set(e.dataName,e)}function _t(e){if(e.lessValue&&e.bigValue){const l=e.lessValue,t=e.bigValue;t<l&&(e.lessValue=t,e.bigValue=l)}else;}function wt(e){e.lessValue="",e.bigValue=""}function Nt(e,l,t){var a,i;let n=!1;if("start"===t){const t=null==(a=null==l?void 0:l.DATE)?void 0:a.end_val;n=t&&e>ue(t).valueOf()}else if("end"===t){const t=null==(i=null==l?void 0:l.DATE)?void 0:i.start_val;n=t&&e<=ue(t).valueOf()}let o=String(null==l?void 0:l.advanceOptionSetting);return["2","3"].includes(o)?"2"===o?e>=ue().endOf("day")||n:"3"===o&&e&&e<ue().startOf("day")||n:n}return i((()=>cl.visible),(e=>{Ll.value=e,it(cl.quickSearchConfig)})),i((()=>cl.searchFieldList),(e=>{e&&e.length>0&&(_l.value=dl.relationTableList?dl.relationTableList:[],function(){Ul.value=[],wl.value=[],Il.value=xl.value.filter((e=>"THIS_YEAR"!=e.con&&"NEXT_YEAR"!=e.con&&"LAST_YEAR"!=e.con));let e=ce(cl.searchFieldList).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[],l=ce(_l.value);wl.value=l.map((e=>({fieldList:e.fieldList.fieldList.filter((e=>1==e.isShowSearch&&1!=e.filterExplicit)),tableName:e.tableName,primaryField:e.primaryField,parameterConversionId:e.parameterConversionId,tableId:e.tableId,relationField:e.relationField,converFun:e.converFun,relationOrgId:e.relationOrgId,preConObj:e.preConObj,preSqlExpression:e.preSqlExpression}))),Ul.value=e||[],nt(Ul.value),wl.value.forEach((e=>{nt(e.fieldList)}))}())}),{immediate:!0,deep:!0}),i((()=>cl.quickSearchConfig),(e=>{it(e)}),{deep:!0}),i((()=>cl.quickSearchListObj),(e=>{e&&Object.keys(e).length?function(){let e=[],{displayCategoryList:l=[]}=cl.quickSearchListObj;l&&l.length?(l.forEach((l=>{"未分类"!==l&&e.push({disabled:!0,selected:!1,value:l})})),Ql.value=e):Ql.value=[]}():Ql.value=[]}),{immediate:!0,deep:!0}),i((()=>Ul),(()=>{const e=pt()||[];ul("filterCountChange",e.length)}),{deep:!0}),i((()=>cl.show),(e=>{e&&cl.lastQuickSearchData.length>0&&(Ul.value=ce(cl.lastQuickSearchData))}),{deep:!0}),ye({openSaveToCalss:function(){let e=pt();if(console.log("conObj>>>>>",e),e)if(e.length>0){if(!fl(e,cl.searchFieldList,cl.searchFieldLimit))return;Rl.value=!0}else vl.warning("请设置搜索条件")},clearData:Tt,onSave:function(){let e=function(){let e=[...pt()||[]];return cl.quickSearchConfig.forEach((l=>{e.find((e=>l.field_key===e.field_key))||Ul.value.find((e=>e.columnName===l.field_key))||e.push(l)})),e||[]}();return ft(),!!fl(e,cl.searchFieldList,cl.searchFieldLimit)&&(ul("onSave",e),Ul.value)}}),(l,t)=>(n(),o("div",null,[s("div",{class:u(["quick-search-block",{"quick-search-table":"editTable"===e.source}])},["editTable"===e.source&&c(Zl)?(n(),o("p",be,"高级筛选")):r("v-if",!0),(n(!0),o(d,null,v(c(Ul),(t=>(n(),o("div",{class:u(["quick-item",{"quick-block":"DATE"==t.con||"BIRTHDAY"==t.con||"CONVERT"==t.con||t.LABELAttr||t._isBlock}]),key:t.sid},[s("div",ke,[r(" title "),s("div",{class:u(["quick-item-title",{"quick-item-title-default":"editTable"!==e.source}])},[s("span",null,p(c(lt)(t,"title"))+" ",1),e.searchFieldLimit[t.columnName]&&e.searchFieldLimit[t.columnName].tips?(n(),f(c(V),{key:0},{trigger:m((()=>[h(c(re),{"icon-class":"xitongtubiaodaohangtubiaowenti"})])),default:m((()=>[y(" "+p(e.searchFieldLimit[t.columnName].tips),1)])),_:2},1024)):r("v-if",!0)],2),s("div",{class:u(["quick-item-col",{"quick-item-col-default":"editTable"!==e.source}])},[r(" 直接渲染组件 "),t.isRender?(n(),f(fe,{key:0,cfg:t,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e},null,8,["cfg","modelValue","onUpdate:modelValue"])):t.AGEAttr?(n(),o(d,{key:1},[r(" age "),r(" TODO: 清除,跨表 "),s("div",Ae,[h(de,{ref_for:!0,ref:Ut,dataName:`${t.columnName}_AGEAttr`,format:t.format,onChange:e=>function(e,l){let t=e.star_val,a=e.end_val;l.start_val=isNaN(t)?null:t,l.end_val=isNaN(a)?null:a}(e,t)},null,8,["dataName","format","onChange"])])],2112)):t.LABELAttr?(n(),o(d,{key:2},[r(" age "),r(" label "),s("div",Ee,[t.labelObj&&Object.keys(t.labelObj||{}).length>0?g(l.$slots,"default",{key:0},(()=>[(n(!0),o(d,null,v(t.labelObj,((e,l)=>(n(),o("div",{key:l,class:"edit-label-content"},[s("div",Te,p(l)+":",1),s("div",{class:u(["edit-content quickSearch_label-container",{"label-container-height":!e.isUnfold&&e.itemList&&e.isShowBtn}])},[r(' <div class="label-content" v-resize="el => onResize(el, v)"> '),b((n(),o("div",Se,[(n(!0),o(d,null,v(e.itemList,((e,l)=>(n(),f(c(B),{type:"success",checked:e.isSelect,checkable:"",key:l,style:k(at(e)),"onUpdate:checked":l=>Lt(l,e,t)},{default:m((()=>[h(c(V),{placement:"topLeft"},{trigger:m((()=>[s("span",null,p(e.labelName),1)])),default:m((()=>[y(" "+p(e.labelName),1)])),_:2},1024)])),_:2},1032,["checked","style","onUpdate:checked"])))),128))])),[[c(me),l=>function(e,l){let t=e.offsetHeight||0;t&&(t>80?l.isShowBtn=!0:(l.isShowBtn=!1,l.isUnfold=!1))}(l,e)]])],2),e.itemList&&e.isShowBtn?(n(),o("div",Ce,[r(" {{ v.isUnfold }} "),s("span",{onClick:A((l=>function(e){e.isUnfold=!e.isUnfold}(e)),["stop"])},[e.isUnfold?(n(),o(d,{key:0},[De,h(c(x),{component:c(Z),size:"16"},null,8,["component"])],64)):(n(),o(d,{key:1},[Le,h(c(x),{component:c(ee),size:"16"},null,8,["component"])],64))],8,Oe)])):r("v-if",!0)])))),128))])):(n(),f(c(I),{key:1,style:{width:"200px"},value:t.inputVal,"onUpdate:value":e=>t.inputVal=e,clearable:""},null,8,["value","onUpdate:value"]))])],2112)):t.EVALUATEAttr?(n(),o(d,{key:3},[r(" label "),r(" EVALUATE "),s("div",Re,[(n(!0),o(d,null,v(c(Ml),(e=>(n(),f(c(B),{key:e.value,class:u({"ant-tag-checkable-checked":t.selecteds.indexOf(e.value)>-1}),checkable:"",checked:t.selecteds.indexOf(e.value)>-1,"onUpdate:checked":l=>Rt(l,e,t)},{default:m((()=>[y(p(e.label),1)])),_:2},1032,["class","checked","onUpdate:checked"])))),128))])],2112)):t.NUMBERFiled?(n(),o(d,{key:4},[r(" EVALUATE "),r(" NUMBERFiled "),s("div",Ue,[s("span",{class:u(["ant-calendar-picker-input ant-input num-picker",{"num-picker-unit":t.inputUnit}])},[b(s("input",{"onUpdate:modelValue":e=>t.lessValue=e,onKeyup:E((()=>_t(t)),["enter"]),title:`起始${t.alias||t.title}`,placeholder:`起始${t.alias||t.title}`,class:"ant-calendar-range-picker-input"},null,40,_e),[[T,t.lessValue]]),we,b(s("input",{"onUpdate:modelValue":e=>t.bigValue=e,title:`截止${t.alias||t.title}`,onKeyup:E((()=>_t(t)),["enter"]),placeholder:`截止${t.alias||t.title}`,class:"ant-calendar-range-picker-input"},null,40,Ne),[[T,t.bigValue]]),t.inputUnit?(n(),o(d,{key:0},[y(" "+p(t.inputUnit),1)],64)):r("v-if",!0),t.lessValue||t.bigValue?(n(),o("span",{key:1,class:"ant-input-suffix clear-number-icon",onClick:e=>wt(t)},Be,8,Ve)):r("v-if",!0)],2)])],2112)):(n(),o(d,{key:5},[r(" NUMBERFiled "),r(" other "),g(l.$slots,"default",{},(()=>["CL"==t.con?(n(),o(d,{key:0},[c(Kl)(t)?(n(),f(c(j),{key:0,class:"CL-input",style:{"`width":"${getEleWidth(item)}`"},value:t.CL,"onUpdate:value":e=>t.CL=e,min:0,max:100,clearable:"",placeholder:t.placeholder},null,8,["value","onUpdate:value","placeholder"])):(n(),f(c(I),{key:1,class:u(["CL-input",{"psw-icon":"PASSWORD"==t.comAttr}]),style:k({width:`${c(Xl)(t)}`,"font-family":t.PASSWORDTYPE?"text-security-disc":"inherit"}),value:t.CL,"onUpdate:value":e=>t.CL=e,clearable:"",placeholder:t.placeholder},{default:m((()=>["PASSWORD"==t.comAttr?(n(),f(c(re),{key:0,class:"psw-icon",onClick:e=>t.PASSWORDTYPE=!t.PASSWORDTYPE,"icon-class":t.PASSWORDTYPE?"anniuyincang":"chakan",style:{"font-size":"1em"}},null,8,["onClick","icon-class"])):r("v-if",!0)])),_:2},1032,["class","style","value","onUpdate:value","placeholder"]))],64)):r("v-if",!0),"EQ"==t.con?(n(),o(d,{key:1},[c(Kl)(t)?(n(),f(c(j),{key:0,class:"EQ-input",style:k(`width: ${c(Xl)(t)}`),value:t.EQ,"onUpdate:value":e=>t.EQ=e,min:0,max:100,clearable:"",placeholder:t.placeholder},null,8,["style","value","onUpdate:value","placeholder"])):(n(),f(c(I),{key:1,class:u(["EQ-input",{"psw-icon":"PASSWORD"==t.comAttr}]),style:k({width:`${c(Xl)(t)}`,"font-family":t.PASSWORDTYPE?"text-security-disc":"inherit"}),value:t.EQ,"onUpdate:value":e=>t.EQ=e,placeholder:t.placeholder||t.isPreciseSearch||"JSONB"==t.fieldType?"":"区间搜素用~分割",clearable:""},{default:m((()=>["PASSWORD"==t.comAttr?(n(),f(c(re),{key:0,class:"psw-icon",onClick:e=>t.PASSWORDTYPE=!t.PASSWORDTYPE,"icon-class":t.PASSWORDTYPE?"anniuyincang":"chakan",style:{"font-size":"1em"}},null,8,["onClick","icon-class"])):r("v-if",!0)])),_:2},1032,["class","style","value","onUpdate:value","placeholder"]))],64)):r("v-if",!0),c(Kl)(t)?(n(),o(d,{key:2},[y(" %")],64)):r("v-if",!0),r(" date "),"DATE"==t.con&&t.DATE?(n(),o("div",xe,[h(c(Y),{value:t.DATE.con,"onUpdate:value":e=>t.DATE.con=e,buttonStyle:"solid"},{default:m((()=>[(n(!0),o(d,null,v(t.dateTeam,(e=>b((n(),f(c(H),{hideSplitor:t.showDate,onClick:A((l=>Ot(t.DATE,e.con)),["prevent"]),key:e.con,value:e.con,label:e.name},null,8,["hideSplitor","onClick","value","label"])),[[S,!t.showDate]]))),128))])),_:2},1032,["value","onUpdate:value"]),b(s("span",{class:u(["check-date-btn",t.marginx]),onClick:e=>ot(t)},"选择时间",10,Ie),[[S,"1"!=t.advanceOptionSetting]]),b(s("div",je,[h(c(P),{type:"datetime",style:{"min-width":"195px",width:"120px"},"value-format":"yyyy-MM-dd HH:mm:ss","formatted-value":t.DATE.start_val,"onUpdate:formatted-value":e=>t.DATE.start_val=e,placeholder:"开始时间","is-date-disabled":e=>Nt(e,t,"start"),clearable:""},null,8,["formatted-value","onUpdate:formatted-value","is-date-disabled"]),y(" "),h(c(P),{type:"datetime",style:{"min-width":"195px",width:"120px"},"value-format":"yyyy-MM-dd HH:mm:ss","formatted-value":t.DATE.end_val,"onUpdate:formatted-value":e=>t.DATE.end_val=e,placeholder:"结束时间","is-date-disabled":e=>Nt(e,t,"end"),clearable:""},null,8,["formatted-value","onUpdate:formatted-value","is-date-disabled"])],512),[[S,t.showDate]])])):r("v-if",!0),r(" BIRTHDAY "),"BIRTHDAY"==t.con&&t.BIRTHDAY?(n(),o("div",{key:4,class:u({"birthday-item":t.showDate})},[t.showDate?(n(),o(d,{key:1},[s("div",null,[h(c(P),{value:t.BIRTHDAY.limit_date,"onUpdate:value":[e=>t.BIRTHDAY.limit_date=e,yt],type:"daterange",disabled:ht,format:"MM-dd"},null,8,["value","onUpdate:value"])]),s("div",Ye,[He,h(c(I),{style:{width:"60px","margin-right":"10px"},value:t.BIRTHDAY.start_val,"onUpdate:value":e=>t.BIRTHDAY.start_val=e,clearable:""},null,8,["value","onUpdate:value"]),h(c(I),{style:{width:"60px","margin-right":"10px"},value:t.BIRTHDAY.end_val,"onUpdate:value":e=>t.BIRTHDAY.end_val=e,clearable:""},null,8,["value","onUpdate:value"]),h(c(q),{value:t.BIRTHDAY.unit,"onUpdate:value":e=>t.BIRTHDAY.unit=e,"default-value":"YEAR",filterable:"",filter:tt,clearable:"",options:t.BIRTHDAY.units,"label-field":"name","value-field":"con"},null,8,["value","onUpdate:value","options"])])],64)):(n(),f(c(Y),{key:0,value:t.BIRTHDAY.con,"onUpdate:value":e=>t.BIRTHDAY.con=e,buttonStyle:"solid"},{default:m((()=>[(n(!0),o(d,null,v(c(Il),(e=>(n(),f(c(H),{onClick:A((l=>function(e,l){e&&(jl.value="",Object.assign(e,Ct()),Ot(e,l))}(t.BIRTHDAY,e.con)),["prevent"]),key:e.con,value:e.con,label:e.name},null,8,["onClick","value","label"])))),128))])),_:2},1032,["value","onUpdate:value"])),s("span",{class:u(["check-date-btn",t.marginx]),onClick:e=>function(e){e.showDate=!e.showDate}(t)},"切换",10,Pe)],2)):r("v-if",!0),"QUOTE"==t.con||"SelectMui"==t.com?(n(),o(d,{key:5},["treeSelect"===t.comType?(n(),f(pe,{key:0,options:t,handleGetConfigApi:c(pl),filterApiConfig:e.filterApiConfig,style:{margin:"0 8px 8px 0"}},null,8,["options","handleGetConfigApi","filterApiConfig"])):(n(),f(ve,{key:1,item:t,source:"quickSearch",maxTagPlaceholder:rt,outFilterChange:ct,handleWordBookSearch:vt,dropdownVisibleChange:dt,fetchingWordbook:c($l)},null,8,["item","fetchingWordbook"]))],64)):"CONVERT"==t.con?(n(),o(d,{key:6},[r(" 多选选项组 "),"0"!=(null==t?void 0:t.advanceOptionSetting)?(n(),f(c(M),{key:0,class:"check-box",value:t.CONVERT,"onUpdate:value":e=>t.CONVERT=e},{default:m((()=>[(n(!0),o(d,null,v(t.setting.showSetting,((e,l)=>(n(),f(c(Q),{key:l,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:2},1032,["value","onUpdate:value"])):(n(),o(d,{key:1},[r(" 单选选项组 "),h(c(Y),{class:"check-box",value:t.CONVERT,"onUpdate:value":e=>t.CONVERT=e},{default:m((()=>[(n(!0),o(d,null,v(t.setting.showSetting,((e,l)=>(n(),f(c(F),{key:l,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:2},1032,["value","onUpdate:value"])],2112))],64)):r("v-if",!0)]))],2112))],2)])],2)))),128)),r(" 跨表 "),(n(!0),o(d,null,v(c(wl),((t,a)=>(n(),o(d,null,[t.fieldList&&t.fieldList.length?(n(),o("div",{key:a},[s("p",qe,p(null==t?void 0:t.tableName),1),(n(!0),o(d,null,v(t.fieldList,(t=>(n(),o("div",{class:u(["quick-item",{"quick-block":"DATE"==t.con||"BIRTHDAY"==t.con||"CONVERT"==t.con||t.LABELAttr}]),key:t.sid},[s("div",Me,[r(" title "),s("div",{class:u(["quick-item-title",{"quick-item-title-default":"editTable"!==e.source}])},[s("span",null,p(c(lt)(t,"title"))+" ",1)],2),s("div",{class:u(["quick-item-col",{"quick-item-col-default":"editTable"!==e.source}])},[t.LABELAttr?(n(),o("div",Qe,[t.labelObj&&Object.keys(t.labelObj||{}).length>0?g(l.$slots,"default",{key:0},(()=>[(n(!0),o(d,null,v(t.labelObj,((e,l)=>(n(),o("div",{key:l,class:"edit-label-content"},[s("div",Fe,p(l)+":",1),s("div",We,[s("div",$e,[(n(!0),o(d,null,v(e.itemList,((e,l)=>(n(),f(c(B),{checked:e.isSelect,checkable:"",key:l,class:u(["label-tag-"+Dt(e)]),"onUpdate:checked":l=>Lt(l,e,t)},{default:m((()=>[h(c(V),{placement:"top-start"},{trigger:m((()=>[s("span",null,p(e.labelName),1)])),default:m((()=>[y(" "+p(e.labelName),1)])),_:2},1024)])),_:2},1032,["checked","class","onUpdate:checked"])))),128)),r(" </a-checkable-tag> ")])])])))),128))])):(n(),f(c(I),{key:1,style:{width:"200px"},value:t.inputVal,"onUpdate:value":e=>t.inputVal=e},null,8,["value","onUpdate:value"]))])):t.EVALUATEAttr?(n(),o(d,{key:1},[r(" EVALUATE "),s("div",Ge,[(n(!0),o(d,null,v(c(Ml),(e=>(n(),f(c(B),{key:e.value,class:u({"ant-tag-checkable-checked":t.selecteds.indexOf(e.value)>-1}),checkable:"",checked:t.selecteds.indexOf(e.value)>-1,"onUpdate:checked":l=>Rt(l,e,t)},{default:m((()=>[y(p(e.label),1)])),_:2},1032,["class","checked","onUpdate:checked"])))),128))])],2112)):t.NUMBERFiled?(n(),o(d,{key:2},[r(" EVALUATE "),r(" NUMBERFiled "),s("div",ze,[s("span",{class:u(["ant-calendar-picker-input ant-input num-picker",{"num-picker-unit":t.inputUnit}])},[b(s("input",{"onUpdate:modelValue":e=>t.lessValue=e,onKeyup:E((()=>_t(t)),["enter"]),title:`起始${t.alias||t.title}`,placeholder:`起始${t.alias||t.title}`,class:"ant-calendar-range-picker-input"},null,40,Je),[[T,t.lessValue]]),Ke,b(s("input",{"onUpdate:modelValue":e=>t.bigValue=e,title:`截止${t.alias||t.title}`,onKeyup:E((()=>_t(t)),["enter"]),placeholder:`截止${t.alias||t.title}`,class:"ant-calendar-range-picker-input"},null,40,Xe),[[T,t.bigValue]]),t.inputUnit?(n(),o(d,{key:0},[y(" "+p(t.inputUnit),1)],64)):r("v-if",!0),t.lessValue||t.bigValue?(n(),o("span",{key:1,class:"ant-input-suffix clear-number-icon",onClick:e=>wt(t)},el,8,Ze)):r("v-if",!0),ll],2)])],2112)):(n(),o(d,{key:3},[r(" NUMBERFiled "),g(l.$slots,"default",{},(()=>["CL"==t.con?(n(),o(d,{key:0},[c(Kl)(t)?(n(),f(c(j),{key:0,class:"CL-input",style:k(`width: ${c(Xl)(t)}`),value:t.CL,"onUpdate:value":e=>t.CL=e,min:0,max:100,clearable:""},null,8,["style","value","onUpdate:value"])):(n(),f(c(I),{key:1,class:"CL-input",style:k(`width: ${c(Xl)(t)}`),value:t.CL,"onUpdate:value":e=>t.CL=e,clearable:""},null,8,["style","value","onUpdate:value"]))],64)):r("v-if",!0),"EQ"==t.con?(n(),o(d,{key:1},[c(Kl)(t)?(n(),f(c(j),{key:0,class:"EQ-input",style:k(`width: ${c(Xl)(t)}`),value:t.EQ,"onUpdate:value":e=>t.EQ=e,min:0,max:100,clearable:""},null,8,["style","value","onUpdate:value"])):(n(),f(c(I),{key:1,class:"EQ-input",style:k(`width: ${c(Xl)(t)}`),value:t.EQ,"onUpdate:value":e=>t.EQ=e,placeholder:t.placeholder||t.isPreciseSearch||"JSONB"==t.fieldType?"":"区间搜素用~分割",clearable:""},null,8,["style","value","onUpdate:value","placeholder"]))],64)):r("v-if",!0),c(Kl)(t)?(n(),o(d,{key:2},[y(" %")],64)):r("v-if",!0),r(" date "),"DATE"==t.con?(n(),o("div",tl,[h(c(Y),{modelValue:t.DATE.con,"onUpdate:modelValue":e=>t.DATE.con=e,buttonStyle:"solid"},{default:m((()=>[(n(!0),o(d,null,v(c(xl),(e=>b((n(),f(c(H),{onClick:A((l=>Ot(t.DATE,e.con)),["prevent"]),key:e.con,value:e.con,label:e.name},null,8,["onClick","value","label"])),[[S,!t.showDate]]))),128))])),_:2},1032,["modelValue","onUpdate:modelValue"]),s("span",{class:u(["check-date-btn",t.marginx]),onClick:e=>ot(t)},"开始时间",10,al),b(s("div",il,[h(c(P),{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss","formatted-value":t.DATE.start_val,"onUpdate:formatted-value":e=>t.DATE.start_val=e,placeholder:"起始日期",style:{width:"120px","min-width":"195px"},clearable:""},null,8,["formatted-value","onUpdate:formatted-value"]),y(" "),h(c(P),{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss","formatted-value":t.DATE.end_val,"onUpdate:formatted-value":e=>t.DATE.end_val=e,placeholder:"截止日期",style:{width:"120px"},clearable:""},null,8,["formatted-value","onUpdate:formatted-value"])],512),[[S,t.showDate]])])):r("v-if",!0),"QUOTE"==t.con||"SelectMui"==t.com?(n(),o(d,{key:4},["treeSelect"===t.comType?(n(),f(pe,{key:0,options:t,handleGetConfigApi:c(pl),filterApiConfig:e.filterApiConfig,style:{margin:"0 8px 8px 0"}},null,8,["options","handleGetConfigApi","filterApiConfig"])):(n(),f(ve,{key:1,item:t,source:"quickSearch",maxTagPlaceholder:rt,outFilterChange:ct,handleWordBookSearch:vt,dropdownVisibleChange:dt,fetchingWordbook:c($l)},null,8,["item","fetchingWordbook"]))],64)):"CONVERT"==t.con?(n(),o(d,{key:5},[r(" 多选选项组 "),"0"!=(null==t?void 0:t.advanceOptionSetting)?(n(),f(c(M),{key:0,class:"check-box",value:t.CONVERT,"onUpdate:value":e=>t.CONVERT=e},{default:m((()=>[(n(!0),o(d,null,v(t.setting.showSetting,((e,l)=>(n(),f(c(Q),{key:l,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:2},1032,["value","onUpdate:value"])):(n(),o(d,{key:1},[r(" 单选选项组 "),h(c(Y),{class:"check-box",value:t.CONVERT,"onUpdate:value":e=>t.CONVERT=e},{default:m((()=>[(n(!0),o(d,null,v(t.setting.showSetting,((e,l)=>(n(),f(c(F),{key:l,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:2},1032,["value","onUpdate:value"])],2112))],64)):r("v-if",!0)]))],2112))],2)])],2)))),128))])):r("v-if",!0)],64)))),256))],2),h(c(W),{show:c(Rl),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:gt,onNegativeClick:Et,class:"quickSearch-saveToClass-modal"},{default:m((()=>[h(c($),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":m((()=>[s("div",nl,[h(c(x),{component:c(le),size:"24",onClick:Et},null,8,["component"])])])),footer:m((()=>[h(c(G),{onClick:Et},{default:m((()=>[y("取消")])),_:1}),h(c(G),{type:"info",onClick:gt},{default:m((()=>[y("确认")])),_:1})])),default:m((()=>[h(c(z),{ref_key:"formRef",ref:Ol,"label-placement":"left",rules:rl,model:Dl.value},{default:m((()=>[h(c(J),{label:"筛选集名称",path:"classname"},{default:m((()=>[h(c(I),{value:Dl.value.classname,"onUpdate:value":t[0]||(t[0]=e=>Dl.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),h(c(K),{cols:24},{default:m((()=>[h(c(X),{span:5,style:{"text-align":"right",color:"rgba(0, 0, 0, 0.85)"}},{default:m((()=>[y("父类名称:")])),_:1}),h(c(X),{span:18},{default:m((()=>[(n(!0),o(d,null,v(c(Ql),((e,l)=>(n(),o("div",{class:u(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:t=>function(e,l){e.disabled&&(Ql.value.forEach(((e,t)=>{t!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(n(),o("div",sl,[s("span",null,p(e.value),1)])):(n(),f(c(I),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),h(c(x),{component:c(le),class:"anticon-close",size:"20",onClick:t=>At(l,e)},null,8,["component","onClick"])],42,ol)))),128)),c(et)?r("v-if",!0):(n(),o(d,{key:0},[b(h(c(G),{dashed:"",icon:"plus",class:"ant-btn",onClick:bt},{default:m((()=>[h(c(x),{component:c(te),size:"20"},null,8,["component"]),y("添加分类")])),_:1},512),[[S,!c(Fl)]]),b(h(c(I),{style:{width:"100px"},class:"edit-tag",value:c(Wl),"onUpdate:value":t[1]||(t[1]=e=>C(Wl)?Wl.value=e:Wl=e),valueModifiers:{trim:!0},onBlur:kt,maxLength:10},null,8,["value"]),[[S,c(Fl)]])],64))])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])]))}}),[["__file","QuickSearch.vue"]]);export{ul as default};
|