cnhis-design-vue 3.1.46-beta.3 → 3.1.46-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/button-print/index.d.ts +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +1 -1
- package/es/components/classification/src/index.vue.d.ts +1 -1
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/form-config/index.d.ts +23 -1
- package/es/components/form-config/src/FormConfig.vue.d.ts +23 -1
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +11 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +11 -0
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -1
- package/es/components/form-render/index.d.ts +11 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +12 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +11 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +7 -0
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -0
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/iho-table/index.d.ts +14 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +14 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +3 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +26 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +11 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +11 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/index.d.ts +8 -8
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +16 -16
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/select-person/index.d.ts +123 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +88 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +123 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/types/enums.d.ts +4 -0
- package/es/components/select-person/src/types/enums.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +11 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +11 -0
- package/es/components/table-export-field/index.d.ts +1057 -0
- package/es/components/table-export-field/index.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +270 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +700 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
- package/es/components/table-export-field/src/constants/index.d.ts +3 -0
- package/es/components/table-export-field/src/constants/index.js +1 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
- package/es/components/table-export-field/src/index.vue.d.ts +1058 -0
- package/es/components/table-export-field/src/index.vue.js +1 -0
- package/es/components/table-export-field/src/index.vue2.js +1 -0
- package/es/components/table-export-field/src/tool.d.ts +1 -0
- package/es/components/table-export-field/src/tool.js +1 -0
- package/es/components/table-export-field/src/types/index.d.ts +6 -0
- package/es/components/table-export-field/src/types/index.js +1 -0
- package/es/components/table-export-field/style/index.css +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/shared/hooks/useDateTime.d.ts +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +6 -0
- package/es/shared/types/index.d.ts +1 -0
- package/es/shared/utils/business.d.ts +6 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapableLess.d.ts +28 -0
- package/es/shared/utils/tapableLess.js +1 -0
- package/package.json +2 -2
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
package/es/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import
|
|
1
|
+
import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import t from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import s from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import n from"./iho-select-label/index.js";export{CIhoLabelFormContent,default as CIhoSelectLabel}from"./iho-select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import m from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as f,CRadio as p,CCheckbox as l,CSelect as c,CDatetime as u}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import x from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import C from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import j from"./base-search/index.js";export{default as CBaseSearch}from"./base-search/index.js";import h from"./quick-search/index.js";export{default as CQuickSearch}from"./quick-search/index.js";import b from"./classification/index.js";export{default as CClassification}from"./classification/index.js";import k from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import g from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import S from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import F from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import P from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import y from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import v from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import I from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import B from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import A from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import L from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import T from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";import w from"./date-picker/index.js";export{default as CDatePicker}from"./date-picker/index.js";import D from"./time-picker/index.js";export{default as CTimePicker}from"./time-picker/index.js";import R from"./config-provider/index.js";export{default as CConfigProvider}from"./config-provider/index.js";import V from"./picture-clipper/index.js";export{default as CPictureClipper}from"./picture-clipper/index.js";import E from"./table-export-field/index.js";export{default as CTableExportField}from"./table-export-field/index.js";export{Insurance}from"./insurance-sdk/src/utils/insurance.js";export{useGuide}from"./guide/src/useGuide.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFormRequest}from"./form-render/src/hooks/useFormRequest.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{useFormAsyncQueue}from"./form-render/src/hooks/useFormAsyncQueue.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{searchContentMatcher,useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{businessDateParser,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{combineExtendKey,createInputSlot,createSlot,createUrlConfigParams,formRenderLog,injectOrProvide,isNestedFieldType,isNestedType,keywordMatcher,mergeDeepProperties,parseNumberFromMaybeString,presetRequestHandler,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export*from"@formily/core";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";const H={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:t,CSelectPerson:s,CSelectLabel:i,CLabelFormContent:a,CIhoSelectLabel:n,CScaleView:f,CMap:d,CVodChunkUpload:m,CRadio:p,CCheckbox:l,CSelect:c,CDatetime:u,CInfoHeader:x,CTimeLine:C,CBaseSearch:j,CQuickSearch:h,CClassification:b,CBpmnWorkflow:k,CStepsWheel:g,CEditor:S,CFormRender:F,CFabricChart:P,CShortcutProvider:y,CShortcutSetter:v,CFormConfig:I,CIhoTable:B,CKeyboard:A,CSearchCascader:L,CRecommendSearch:T,CDatePicker:w,CTimePicker:D,CConfigProvider:R,CPictureClipper:V,CTableExportField:E};var M={install:function(e){Object.values(H).forEach((r=>{r.install(e)}))},...H};export{M as default};
|
|
@@ -150,6 +150,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
150
150
|
linebarAutoHidden: boolean;
|
|
151
151
|
bordered: string | boolean;
|
|
152
152
|
uniqueCacheData: boolean;
|
|
153
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
153
154
|
}>>>;
|
|
154
155
|
};
|
|
155
156
|
}, {
|
|
@@ -304,6 +305,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
304
305
|
linebarAutoHidden: boolean;
|
|
305
306
|
bordered: string | boolean;
|
|
306
307
|
uniqueCacheData: boolean;
|
|
308
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
307
309
|
}>>>;
|
|
308
310
|
};
|
|
309
311
|
}>> & {
|
|
@@ -468,6 +470,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
468
470
|
linebarAutoHidden: boolean;
|
|
469
471
|
bordered: string | boolean;
|
|
470
472
|
uniqueCacheData: boolean;
|
|
473
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
471
474
|
}>>;
|
|
472
475
|
};
|
|
473
476
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
@@ -2597,6 +2600,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2597
2600
|
lowCodeReactions: {
|
|
2598
2601
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
2599
2602
|
};
|
|
2603
|
+
operationalForm: {
|
|
2604
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
2605
|
+
};
|
|
2600
2606
|
linebarAutoHidden: {
|
|
2601
2607
|
type: BooleanConstructor;
|
|
2602
2608
|
};
|
|
@@ -2734,6 +2740,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2734
2740
|
lowCodeReactions: {
|
|
2735
2741
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
2736
2742
|
};
|
|
2743
|
+
operationalForm: {
|
|
2744
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
2745
|
+
};
|
|
2737
2746
|
linebarAutoHidden: {
|
|
2738
2747
|
type: BooleanConstructor;
|
|
2739
2748
|
};
|
|
@@ -2791,6 +2800,8 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2791
2800
|
}>;
|
|
2792
2801
|
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
2793
2802
|
triggerAllReactionsHandler: () => void;
|
|
2803
|
+
operationalFormHandler: (field: string) => void;
|
|
2804
|
+
triggerAllOperationalFormHandler: () => void;
|
|
2794
2805
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2795
2806
|
[key: symbol]: any;
|
|
2796
2807
|
[key: `x-${string}`]: any;
|
|
@@ -3197,6 +3208,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3197
3208
|
lowCodeReactions: {
|
|
3198
3209
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
3199
3210
|
};
|
|
3211
|
+
operationalForm: {
|
|
3212
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
3213
|
+
};
|
|
3200
3214
|
linebarAutoHidden: {
|
|
3201
3215
|
type: BooleanConstructor;
|
|
3202
3216
|
};
|
|
@@ -3473,6 +3487,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3473
3487
|
lowCodeReactions: {
|
|
3474
3488
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
3475
3489
|
};
|
|
3490
|
+
operationalForm: {
|
|
3491
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
3492
|
+
};
|
|
3476
3493
|
linebarAutoHidden: {
|
|
3477
3494
|
type: BooleanConstructor;
|
|
3478
3495
|
};
|
|
@@ -3610,6 +3627,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3610
3627
|
lowCodeReactions: {
|
|
3611
3628
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
3612
3629
|
};
|
|
3630
|
+
operationalForm: {
|
|
3631
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
3632
|
+
};
|
|
3613
3633
|
linebarAutoHidden: {
|
|
3614
3634
|
type: BooleanConstructor;
|
|
3615
3635
|
};
|
|
@@ -3667,6 +3687,8 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3667
3687
|
}>;
|
|
3668
3688
|
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
3669
3689
|
triggerAllReactionsHandler: () => void;
|
|
3690
|
+
operationalFormHandler: (field: string) => void;
|
|
3691
|
+
triggerAllOperationalFormHandler: () => void;
|
|
3670
3692
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
3671
3693
|
[key: symbol]: any;
|
|
3672
3694
|
[key: `x-${string}`]: any;
|
|
@@ -4073,6 +4095,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4073
4095
|
lowCodeReactions: {
|
|
4074
4096
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
4075
4097
|
};
|
|
4098
|
+
operationalForm: {
|
|
4099
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
4100
|
+
};
|
|
4076
4101
|
linebarAutoHidden: {
|
|
4077
4102
|
type: BooleanConstructor;
|
|
4078
4103
|
};
|
|
@@ -4267,6 +4292,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4267
4292
|
linebarAutoHidden: boolean;
|
|
4268
4293
|
bordered: string | boolean;
|
|
4269
4294
|
uniqueCacheData: boolean;
|
|
4295
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
4270
4296
|
}>>>;
|
|
4271
4297
|
};
|
|
4272
4298
|
}>> & {
|
|
@@ -150,6 +150,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
150
|
linebarAutoHidden: boolean;
|
|
151
151
|
bordered: string | boolean;
|
|
152
152
|
uniqueCacheData: boolean;
|
|
153
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
153
154
|
}>>>;
|
|
154
155
|
};
|
|
155
156
|
}, {
|
|
@@ -302,6 +303,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
302
303
|
linebarAutoHidden: boolean;
|
|
303
304
|
bordered: string | boolean;
|
|
304
305
|
uniqueCacheData: boolean;
|
|
306
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
305
307
|
}>>>;
|
|
306
308
|
};
|
|
307
309
|
}>> & {
|
|
@@ -462,6 +464,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
462
464
|
linebarAutoHidden: boolean;
|
|
463
465
|
bordered: string | boolean;
|
|
464
466
|
uniqueCacheData: boolean;
|
|
467
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
465
468
|
}>>;
|
|
466
469
|
};
|
|
467
470
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
@@ -2591,6 +2594,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2591
2594
|
lowCodeReactions: {
|
|
2592
2595
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2593
2596
|
};
|
|
2597
|
+
operationalForm: {
|
|
2598
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2599
|
+
};
|
|
2594
2600
|
linebarAutoHidden: {
|
|
2595
2601
|
type: BooleanConstructor;
|
|
2596
2602
|
};
|
|
@@ -2728,6 +2734,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2728
2734
|
lowCodeReactions: {
|
|
2729
2735
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2730
2736
|
};
|
|
2737
|
+
operationalForm: {
|
|
2738
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2739
|
+
};
|
|
2731
2740
|
linebarAutoHidden: {
|
|
2732
2741
|
type: BooleanConstructor;
|
|
2733
2742
|
};
|
|
@@ -2785,6 +2794,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2785
2794
|
}>;
|
|
2786
2795
|
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
2787
2796
|
triggerAllReactionsHandler: () => void;
|
|
2797
|
+
operationalFormHandler: (field: string) => void;
|
|
2798
|
+
triggerAllOperationalFormHandler: () => void;
|
|
2788
2799
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2789
2800
|
[key: symbol]: any;
|
|
2790
2801
|
[key: `x-${string}`]: any;
|
|
@@ -3191,6 +3202,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3191
3202
|
lowCodeReactions: {
|
|
3192
3203
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
3193
3204
|
};
|
|
3205
|
+
operationalForm: {
|
|
3206
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
3207
|
+
};
|
|
3194
3208
|
linebarAutoHidden: {
|
|
3195
3209
|
type: BooleanConstructor;
|
|
3196
3210
|
};
|
|
@@ -3467,6 +3481,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3467
3481
|
lowCodeReactions: {
|
|
3468
3482
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
3469
3483
|
};
|
|
3484
|
+
operationalForm: {
|
|
3485
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
3486
|
+
};
|
|
3470
3487
|
linebarAutoHidden: {
|
|
3471
3488
|
type: BooleanConstructor;
|
|
3472
3489
|
};
|
|
@@ -3604,6 +3621,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3604
3621
|
lowCodeReactions: {
|
|
3605
3622
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
3606
3623
|
};
|
|
3624
|
+
operationalForm: {
|
|
3625
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
3626
|
+
};
|
|
3607
3627
|
linebarAutoHidden: {
|
|
3608
3628
|
type: BooleanConstructor;
|
|
3609
3629
|
};
|
|
@@ -3661,6 +3681,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3661
3681
|
}>;
|
|
3662
3682
|
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
3663
3683
|
triggerAllReactionsHandler: () => void;
|
|
3684
|
+
operationalFormHandler: (field: string) => void;
|
|
3685
|
+
triggerAllOperationalFormHandler: () => void;
|
|
3664
3686
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
3665
3687
|
[key: symbol]: any;
|
|
3666
3688
|
[key: `x-${string}`]: any;
|
|
@@ -4067,6 +4089,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4067
4089
|
lowCodeReactions: {
|
|
4068
4090
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
4069
4091
|
};
|
|
4092
|
+
operationalForm: {
|
|
4093
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
4094
|
+
};
|
|
4070
4095
|
linebarAutoHidden: {
|
|
4071
4096
|
type: BooleanConstructor;
|
|
4072
4097
|
};
|
|
@@ -4259,6 +4284,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4259
4284
|
linebarAutoHidden: boolean;
|
|
4260
4285
|
bordered: string | boolean;
|
|
4261
4286
|
uniqueCacheData: boolean;
|
|
4287
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
4262
4288
|
}>>>;
|
|
4263
4289
|
};
|
|
4264
4290
|
}>> & {
|
|
@@ -2167,6 +2167,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2167
2167
|
lowCodeReactions: {
|
|
2168
2168
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2169
2169
|
};
|
|
2170
|
+
operationalForm: {
|
|
2171
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2172
|
+
};
|
|
2170
2173
|
linebarAutoHidden: {
|
|
2171
2174
|
type: BooleanConstructor;
|
|
2172
2175
|
};
|
|
@@ -2304,6 +2307,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2304
2307
|
lowCodeReactions: {
|
|
2305
2308
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2306
2309
|
};
|
|
2310
|
+
operationalForm: {
|
|
2311
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2312
|
+
};
|
|
2307
2313
|
linebarAutoHidden: {
|
|
2308
2314
|
type: BooleanConstructor;
|
|
2309
2315
|
};
|
|
@@ -2361,6 +2367,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2361
2367
|
}>;
|
|
2362
2368
|
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
2363
2369
|
triggerAllReactionsHandler: () => void;
|
|
2370
|
+
operationalFormHandler: (field: string) => void;
|
|
2371
|
+
triggerAllOperationalFormHandler: () => void;
|
|
2364
2372
|
schemaAdaptor: (fieldList: import("../../../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2365
2373
|
[key: symbol]: any;
|
|
2366
2374
|
[key: `x-${string}`]: any;
|
|
@@ -2767,6 +2775,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2767
2775
|
lowCodeReactions: {
|
|
2768
2776
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2769
2777
|
};
|
|
2778
|
+
operationalForm: {
|
|
2779
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2780
|
+
};
|
|
2770
2781
|
linebarAutoHidden: {
|
|
2771
2782
|
type: BooleanConstructor;
|
|
2772
2783
|
};
|
|
@@ -179,6 +179,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
179
179
|
lowCodeReactions: {
|
|
180
180
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
181
181
|
};
|
|
182
|
+
operationalForm: {
|
|
183
|
+
type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
|
|
184
|
+
};
|
|
182
185
|
linebarAutoHidden: {
|
|
183
186
|
type: BooleanConstructor;
|
|
184
187
|
};
|
|
@@ -316,6 +319,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
316
319
|
lowCodeReactions: {
|
|
317
320
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
318
321
|
};
|
|
322
|
+
operationalForm: {
|
|
323
|
+
type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
|
|
324
|
+
};
|
|
319
325
|
linebarAutoHidden: {
|
|
320
326
|
type: BooleanConstructor;
|
|
321
327
|
};
|
|
@@ -373,6 +379,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
373
379
|
}>;
|
|
374
380
|
lowCodeReactionsHandler: (field: string, value: unknown) => void;
|
|
375
381
|
triggerAllReactionsHandler: () => void;
|
|
382
|
+
operationalFormHandler: (field: string) => void;
|
|
383
|
+
triggerAllOperationalFormHandler: () => void;
|
|
376
384
|
schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
377
385
|
[key: symbol]: any;
|
|
378
386
|
[key: `x-${string}`]: any;
|
|
@@ -779,6 +787,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
779
787
|
lowCodeReactions: {
|
|
780
788
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
781
789
|
};
|
|
790
|
+
operationalForm: {
|
|
791
|
+
type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
|
|
792
|
+
};
|
|
782
793
|
linebarAutoHidden: {
|
|
783
794
|
type: BooleanConstructor;
|
|
784
795
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,provide as t,computed as a,watch as i,onMounted as n,openBlock as o,createElementBlock as s,createElementVNode as r,Fragment as u,renderList as c,unref as d,normalizeClass as f,createCommentVNode as v,createVNode as m,withCtx as p,createTextVNode as h,toDisplayString as g,createBlock as k,withDirectives as b,vShow as y,isRef as C}from"vue";import{useMessage as S,NPopover as x,NModal as _,NCard as A,NIcon as q,NButton as w,NForm as F,NFormItem as j,NInput as U}from"naive-ui";import{CloseOutline as I,AddOutline as E}from"@vicons/ionicons5";import L from"../../table-filter/src/hooks/useMixins.js";import R from"../../table-filter/src/hooks/useRenderWidget.js";import V from"../../table-filter/src/hooks/useAdvanced.js";import z from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as D}from"lodash-es";import{InjectionFilterApiConfig as T,InjectionFilterSearchConfig as B}from"../../table-filter/src/constants/index.js";const N={class:"quick-search-block quick-search-table"},O={class:"quick-row"},P={class:"quick-item-title"},Q={class:"quick-item-col"},M={class:"svg-wrap"},W={class:"flex_right"},G={class:"class-filter-content"},J={class:"quickSearch-content"},H=r("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],X={key:0,class:"s-content"};var Y=e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:Y,emit:Z}){const $=e,ee={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},le=S(),{handleGetConfigApi:te,outQuickSearchFn:ae}=L(),{getRenderSearchConObj:ie,resetRenderWidgetValue:ne,isRender:oe}=R(),{transformData:se,getCacheDef:re,transformParams:ue}=V(),ce=l(null),de=l({classname:""});let fe=l(!1),ve=l([]),me=l([]),pe=l(!1),he=l("");t(T,$.filterApiConfig),t(B,ve);let ge=a((()=>!!me.value.length&&me.value.some((e=>e.isAdd)))),ke=a((()=>(e,l="name")=>e.alias||e[l]));function be(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let t=0;t<e.length;t++){let a=e[t];const i=ie(a);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ve.value)||[]}function ye(){var e;null==(e=ce.value)||e.validate((e=>{var l;if(e)return;let t=be();t.length||(t=[]);let a=null==(l=me.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await te(e,"requestSaveTableCondiTion",{},$.filterApiConfig))return;fe.value=!1,null==(l=ce.value)||l.restoreValidation(),de.value.classname="",me.value=[],Ae()}catch(e){console.log(e)}}({tableId:$.tableId||"",setting:JSON.stringify({displayCategory:a,name:de.value.classname,conObj:t}),conditionList:"[]"})}))}function Ce(e){var l;const t=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{t&&t.focus()})),pe.value=!0}function Se(){pe.value=!1,he.value&&(me.value.forEach((e=>e.selected=!1)),me.value.push({disabled:!0,value:he.value,selected:!0,isAdd:!0}),he.value="")}function xe(e){!function(e){me.value.splice(e,1)}(e)}function _e(){fe.value=!1}function Ae(){qe(ve.value),Z("clearQuickSearchConfig")}function qe(e){Array.isArray(e)&&(e.forEach((e=>{ne(e)})),ae.handlerInitSearchItem(ve.value))}return i((()=>$.searchFieldList),(e=>{e&&e.length>0&&function(){let e=D(se($.searchFieldList,{_filterApiConfig:$.filterApiConfig})).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ve.value=e||[],ae.handlerInitSearchItem(ve.value)}()}),{immediate:!0,deep:!0}),i((()=>ve),(()=>{const e=be()||[],l=ue(e);Z("getFilterParam",e,l)}),{deep:!0}),n((()=>{const e=$.quickSearchConfig;if(e&&e.length>0)return l=e,void ve.value.forEach((e=>{var t;if(oe(e)){const
|
|
1
|
+
import{defineComponent as e,ref as l,provide as t,computed as a,watch as i,onMounted as n,openBlock as o,createElementBlock as s,createElementVNode as r,Fragment as u,renderList as c,unref as d,normalizeClass as f,createCommentVNode as v,createVNode as m,withCtx as p,createTextVNode as h,toDisplayString as g,createBlock as k,withDirectives as b,vShow as y,isRef as C}from"vue";import{useMessage as S,NPopover as x,NModal as _,NCard as A,NIcon as q,NButton as w,NForm as F,NFormItem as j,NInput as U}from"naive-ui";import{CloseOutline as I,AddOutline as E}from"@vicons/ionicons5";import L from"../../table-filter/src/hooks/useMixins.js";import R from"../../table-filter/src/hooks/useRenderWidget.js";import V from"../../table-filter/src/hooks/useAdvanced.js";import z from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as D}from"lodash-es";import{InjectionFilterApiConfig as T,InjectionFilterSearchConfig as B}from"../../table-filter/src/constants/index.js";const N={class:"quick-search-block quick-search-table"},O={class:"quick-row"},P={class:"quick-item-title"},Q={class:"quick-item-col"},M={class:"svg-wrap"},W={class:"flex_right"},G={class:"class-filter-content"},J={class:"quickSearch-content"},H=r("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],X={key:0,class:"s-content"};var Y=e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:Y,emit:Z}){const $=e,ee={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},le=S(),{handleGetConfigApi:te,outQuickSearchFn:ae}=L(),{getRenderSearchConObj:ie,resetRenderWidgetValue:ne,isRender:oe}=R(),{transformData:se,getCacheDef:re,transformParams:ue}=V(),ce=l(null),de=l({classname:""});let fe=l(!1),ve=l([]),me=l([]),pe=l(!1),he=l("");t(T,$.filterApiConfig),t(B,ve);let ge=a((()=>!!me.value.length&&me.value.some((e=>e.isAdd)))),ke=a((()=>(e,l="name")=>e.alias||e[l]));function be(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let t=0;t<e.length;t++){let a=e[t];const i=ie(a);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ve.value)||[]}function ye(){var e;null==(e=ce.value)||e.validate((e=>{var l;if(e)return;let t=be();t.length||(t=[]);let a=null==(l=me.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await te(e,"requestSaveTableCondiTion",{},$.filterApiConfig))return;fe.value=!1,null==(l=ce.value)||l.restoreValidation(),de.value.classname="",me.value=[],Ae()}catch(e){console.log(e)}}({tableId:$.tableId||"",setting:JSON.stringify({displayCategory:a,name:de.value.classname,conObj:t}),conditionList:"[]"})}))}function Ce(e){var l;const t=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{t&&t.focus()})),pe.value=!0}function Se(){pe.value=!1,he.value&&(me.value.forEach((e=>e.selected=!1)),me.value.push({disabled:!0,value:he.value,selected:!0,isAdd:!0}),he.value="")}function xe(e){!function(e){me.value.splice(e,1)}(e)}function _e(){fe.value=!1}function Ae(){qe(ve.value),Z("clearQuickSearchConfig")}function qe(e){Array.isArray(e)&&(e.forEach((e=>{ne(e)})),ae.handlerInitSearchItem(ve.value))}return i((()=>$.searchFieldList),(e=>{e&&e.length>0&&function(){let e=D(se($.searchFieldList,{_filterApiConfig:$.filterApiConfig})).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ve.value=e||[],ae.handlerInitSearchItem(ve.value)}()}),{immediate:!0,deep:!0}),i((()=>ve),(()=>{const e=be()||[],l=ue(e);Z("getFilterParam",e,l)}),{deep:!0}),n((()=>{const e=$.quickSearchConfig;if(e&&e.length>0)return l=e,void ve.value.forEach((e=>{var t,a;if(oe(e)){const i=l.find((l=>l.field_key===e.columnName));i&&(null==(t=i.value)?void 0:t.length)>0&&(e.value=re(e,i.value),e.unit=null!=(a=i.unit)?a:"")}}));var l;qe(ve.value)})),Y({openSaveToCalss:function(){let e=be();e&&(e.length>0?fe.value=!0:le.warning("请设置搜索条件"))},clearData:Ae,onFilterSearch:function(){let e=be()||[];const l=ue(e);return Z("onFilterSearch",e,l,!1),ve.value}}),(e,l)=>(o(),s("div",null,[r("div",N,[(o(!0),s(u,null,c(d(ve),(e=>(o(),s("div",{class:f(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[r("div",O,[v(" title "),r("div",P,[m(d(x),{trigger:"hover"},{trigger:p((()=>[h(g(d(ke)(e,"title")),1)])),default:p((()=>[r("span",null,g(d(ke)(e,"title")),1)])),_:2},1024)]),v(" content "),r("div",Q,[v(" 直接渲染组件 "),e.isRender?(o(),k(z,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,unit:e.unit,"onUpdate:unit":l=>e.unit=l},null,8,["cfg","modelValue","onUpdate:modelValue","unit","onUpdate:unit"])):v("v-if",!0)])])],2)))),128))]),v(" 保存到分类的弹窗 "),m(d(_),{show:d(fe),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:ye,onNegativeClick:_e,class:"classification-modal-block"},{default:p((()=>[m(d(A),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[r("div",M,[m(d(q),{component:d(I),size:"24",onClick:_e},null,8,["component"])])])),footer:p((()=>[r("div",W,[m(d(w),{onClick:_e},{default:p((()=>[h("取消")])),_:1}),m(d(w),{type:"info",onClick:ye},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[r("div",G,[m(d(F),{ref_key:"formRef",ref:ce,"label-placement":"left",rules:ee,model:de.value},{default:p((()=>[m(d(j),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(d(U),{value:de.value.classname,"onUpdate:value":l[0]||(l[0]=e=>de.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),r("div",J,[H,(o(!0),s(u,null,c(d(me),((e,l)=>(o(),s("div",{class:f(["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&&(me.value.forEach(((e,t)=>{t!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(o(),s("div",X,[r("span",null,g(e.value),1)])):(o(),k(d(U),{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"])),m(d(q),{component:d(I),class:"anticon-close",size:"20",onClick:e=>xe(l)},null,8,["component","onClick"])],42,K)))),128)),d(ge)?v("v-if",!0):(o(),s(u,{key:0},[b(m(d(w),{dashed:"",icon:"plus",class:"ant-btn",onClick:Ce},{default:p((()=>[m(d(q),{component:d(E),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[y,!d(pe)]]),b(m(d(U),{style:{width:"100px"},class:"edit-tag",value:d(he),"onUpdate:value":l[1]||(l[1]=e=>C(he)?he.value=e:he=e),valueModifiers:{trim:!0},onBlur:Se,maxLength:10},null,8,["value"]),[[y,d(pe)]])],64))])])])),_:1})])),_:1},8,["show"])]))}});export{Y as default};
|
|
@@ -1039,11 +1039,11 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1039
1039
|
declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
|
|
1040
1040
|
form: {
|
|
1041
1041
|
type: ObjectConstructor;
|
|
1042
|
-
default: () =>
|
|
1042
|
+
default: () => {};
|
|
1043
1043
|
};
|
|
1044
1044
|
item: {
|
|
1045
1045
|
type: ObjectConstructor;
|
|
1046
|
-
default: () =>
|
|
1046
|
+
default: () => {};
|
|
1047
1047
|
};
|
|
1048
1048
|
isLock: {
|
|
1049
1049
|
type: BooleanConstructor;
|
|
@@ -1056,11 +1056,11 @@ declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1056
1056
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1057
1057
|
form: {
|
|
1058
1058
|
type: ObjectConstructor;
|
|
1059
|
-
default: () =>
|
|
1059
|
+
default: () => {};
|
|
1060
1060
|
};
|
|
1061
1061
|
item: {
|
|
1062
1062
|
type: ObjectConstructor;
|
|
1063
|
-
default: () =>
|
|
1063
|
+
default: () => {};
|
|
1064
1064
|
};
|
|
1065
1065
|
isLock: {
|
|
1066
1066
|
type: BooleanConstructor;
|
|
@@ -1081,11 +1081,11 @@ declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1081
1081
|
declare const CCheckbox: SFCWithInstall<import("vue").DefineComponent<{
|
|
1082
1082
|
form: {
|
|
1083
1083
|
type: ObjectConstructor;
|
|
1084
|
-
default: () =>
|
|
1084
|
+
default: () => {};
|
|
1085
1085
|
};
|
|
1086
1086
|
item: {
|
|
1087
1087
|
type: ObjectConstructor;
|
|
1088
|
-
default: () =>
|
|
1088
|
+
default: () => {};
|
|
1089
1089
|
};
|
|
1090
1090
|
isLock: {
|
|
1091
1091
|
type: BooleanConstructor;
|
|
@@ -1098,11 +1098,11 @@ declare const CCheckbox: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1098
1098
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1099
1099
|
form: {
|
|
1100
1100
|
type: ObjectConstructor;
|
|
1101
|
-
default: () =>
|
|
1101
|
+
default: () => {};
|
|
1102
1102
|
};
|
|
1103
1103
|
item: {
|
|
1104
1104
|
type: ObjectConstructor;
|
|
1105
|
-
default: () =>
|
|
1105
|
+
default: () => {};
|
|
1106
1106
|
};
|
|
1107
1107
|
isLock: {
|
|
1108
1108
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as n,openBlock as i,createElementBlock as l,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as C,h as S}from"vue";import w from"./hooks/use-noData.js";import{getScaleViewState as h}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as O}from"./hooks/scaleview-submit.js";import{handleQueryParams as _,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import P from"./components/NoData.vue.js";import D from"./components/EvaluateCountdown.vue.js";import F from"./components/EvaluatePage.vue.js";import B from"./components/AnswerParse.vue.js";import N from"./components/ScaleScore.js";import{useDialog as x,useMessage as I,NForm as q,NFormItem as M,NButton as R}from"naive-ui";const K={class:"c-scale-view-block"},V=["innerHTML"],H={key:0,class:"required-text"},U={key:1,class:"evalute-label"},W=["onClick"],J=d("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Y={key:1,class:"footer"};var X=e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:X,emit:G}){const Q=e,{ScaleViewState:Z}=h(),$=t(Z),z=x(),ee=I(),te=a(null),ae=a(null),{noDataState:oe,setNoData:ne,resetNodata:ie}=w(),le=_(),{showEvatip:se,isFormBoldOpen:re,scaleStyle:ue,handlePageClass:ce,isShowItem:pe,handleShowQuestionNumber:de,hasScore:me,isPreviewScale:ve,showEvaluateEntry:fe,showEvaluateCoundownPage:ge,showSaveBtn:ye,showEvaluateLabel:be,showAnswerParse:ke,propsConfig:Ce,evaluatePageProps:Se,evaluateCountdownProps:we,skipCover:he,scaleEdit:Ee}=E(Q,$,{query:le}),{initForm:Ae}=A(Q,$,G,{query:le}),{submitMethod:Oe}=O(Q,$,G,{query:le}),{nextLogicEvent:_e,handleDynamicDataRelation:je}=L(Q,$);(()=>{let{id:e}=le;e&&($.shareId=e)})();const Te=e=>{try{ie(),Ae(e)}catch(e){console.log(e,"--error"),$.spinning=!1,$.hasFrontAddress=!1,ne(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>Q.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),o((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;$.form={},$.formArray=[];const t=JSON.parse(JSON.stringify(e));n((()=>{Ae(t)}))}),{immediate:!0});const Le=e=>{$.showEvaluateSettingWrap=!1,$.showEvaluateCountdown=!!e,G("startWriteScale")},Pe=()=>{console.log("----closeEvaluateCountdown"),$.showEvaluateCountdown=!1,ve.value||($.banSubmit=!0,Oe(),z.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{z.warning({title:"提示",content:()=>S("div",{class:"evatip-container"},[S("span","答案解析:"),S("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Fe=(e,t,a)=>{
|
|
1
|
+
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as n,openBlock as i,createElementBlock as l,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as C,h as S}from"vue";import w from"./hooks/use-noData.js";import{getScaleViewState as h}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as O}from"./hooks/scaleview-submit.js";import{handleQueryParams as _,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import P from"./components/NoData.vue.js";import D from"./components/EvaluateCountdown.vue.js";import F from"./components/EvaluatePage.vue.js";import B from"./components/AnswerParse.vue.js";import N from"./components/ScaleScore.js";import{useDialog as x,useMessage as I,NForm as q,NFormItem as M,NButton as R}from"naive-ui";const K={class:"c-scale-view-block"},V=["innerHTML"],H={key:0,class:"required-text"},U={key:1,class:"evalute-label"},W=["onClick"],J=d("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Y={key:1,class:"footer"};var X=e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:X,emit:G}){const Q=e,{ScaleViewState:Z}=h(),$=t(Z),z=x(),ee=I(),te=a(null),ae=a(null),{noDataState:oe,setNoData:ne,resetNodata:ie}=w(),le=_(),{showEvatip:se,isFormBoldOpen:re,scaleStyle:ue,handlePageClass:ce,isShowItem:pe,handleShowQuestionNumber:de,hasScore:me,isPreviewScale:ve,showEvaluateEntry:fe,showEvaluateCoundownPage:ge,showSaveBtn:ye,showEvaluateLabel:be,showAnswerParse:ke,propsConfig:Ce,evaluatePageProps:Se,evaluateCountdownProps:we,skipCover:he,scaleEdit:Ee}=E(Q,$,{query:le}),{initForm:Ae}=A(Q,$,G,{query:le}),{submitMethod:Oe}=O(Q,$,G,{query:le}),{nextLogicEvent:_e,handleDynamicDataRelation:je}=L(Q,$);(()=>{let{id:e}=le;e&&($.shareId=e)})();const Te=e=>{try{ie(),Ae(e)}catch(e){console.log(e,"--error"),$.spinning=!1,$.hasFrontAddress=!1,ne(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>Q.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),o((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;$.form={},$.formArray=[];const t=JSON.parse(JSON.stringify(e));n((()=>{Ae(t)}))}),{immediate:!0});const Le=e=>{$.showEvaluateSettingWrap=!1,$.showEvaluateCountdown=!!e,G("startWriteScale")},Pe=()=>{console.log("----closeEvaluateCountdown"),$.showEvaluateCountdown=!1,ve.value||($.banSubmit=!0,Oe(),z.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{z.warning({title:"提示",content:()=>S("div",{class:"evatip-container"},[S("span","答案解析:"),S("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Fe=(e,t,a)=>{let{choiceObj:o,isSetObj:n}=a||{};switch(t.type.includes("SELECT")||($.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;$.form[t.val_key]=a,_e(e,t,$.formArray),je(o,t,$.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":n&&($.choiceComObj[t.val_key]=o),_e(e,t,$.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":_e(e,t,$.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":$.submitForm[t.val_key]=e}},Be=(e,t)=>{console.log(t),$.form[t.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),$.labelSelectedList=t,{labelStr:a.join(","),labels:o}},xe=()=>{var e;if(!$.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=$.config;if(!t||!Object.keys(t).length&&!fe.value||Ee.value)return void Ie("确认要结束测评吗?");if("formIframe"==Q.openType&&fe.value)return void G("submitNoRequest");let a="确定要提前结束测评吗?";if(ge.value&&(null==(e=te.value)?void 0:e.getCountdownObj)){const e=te.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?")}he.value&&!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?"),Ie(a)},Ie=e=>{z.warning({title:"温馨提示",content:()=>S("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:async()=>{const e=await qe();G("onSubmit",e)},onNegativeClick(){}})},qe=()=>new Promise(((e,t)=>{var a;null==(a=ae.value)||a.validate((t=>{var a;if(t){console.log(t);let o=(null==(a=t[0])?void 0:a[0])||{},n=o.field,i=o.message,l=$.formArray.find((e=>e.databaseTitle===n));return l&&(n=l.title),ee.error(n+i),e(!1),!1}{const t=Oe();e(t)}}))})),Me=()=>{G("onCloseSetting")};return X({getScaleData:()=>({...$}),onSubmitForm:qe,cancel:Me}),(e,t)=>(i(),l("div",K,[s(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),$.spinning||$.hasFrontAddress?s("v-if",!0):(i(),l(r,{key:0},[u(oe).noData?(i(),c(P,{key:0,noDataImg:u(oe).noDataImg,noDataTip:u(oe).noDataTip},null,8,["noDataImg","noDataTip"])):(i(),l(r,{key:1},[u(fe)&&!u(he)?(i(),c(F,p({key:0},u(Se),{onWriteGuage:Le}),null,16)):(i(),l(r,{key:1},[u(ge)?(i(),c(D,p({key:0,ref_key:"countdownDom",ref:te},u(we),{onCloseEvaluateCountdown:Pe}),null,16)):s("v-if",!0),d("div",{class:m(["scale-container",{"scale-container-nopadding":u(ce),"scale-container-hasfooter":u(ye)}]),style:v(u(ue))},[u(me)?(i(),c(u(N),{key:0,config:$.config,maxScore:$.maxScore},null,8,["config","maxScore"])):s("v-if",!0),f(u(q),{ref_key:"formRef",ref:ae,model:$.form,rules:$.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(i(!0),l(r,null,y($.formArray,((e,t)=>(i(),l(r,{key:(e.id||e.seq)+t},[u(pe)(e)?(i(),c(u(M),{key:0,path:e.val_key,"show-label":!u(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[d("span",{class:m({"scale-label-required":u(re)(e)}),innerHTML:u(de)(e)},null,10,V),u(re)(e)?(i(),l("span",H,"(必填)")):s("v-if",!0),u(be)(e)?(i(),l("span",U,b(u(be)(e)),1)):s("v-if",!0),u(se)(e)?(i(),l("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if($.evatipMap[e.id])return void De($.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=Q.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void ee.error(`${a} Is not a function`);let n=await o(e.id);n&&($.evatipMap[e.id]||($.evatipMap[e.id]=n,De(n)))})(e)},[J,k(" 查看提示 ")],8,W)):s("v-if",!0)])),default:g((()=>[(i(),c(C(e.renderCom),p(u(Ce)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Fe,onOnChange:t=>((e,t)=>{$.form[t.val_key]=Ne(e)})(t,e),onVodFileList:Be}),null,16,["onOnChange"])),u(ke)(e)?(i(),c(B,{key:0,item:e},null,8,["item"])):s("v-if",!0)])),_:2},1032,["path","show-label"])):s("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),u(ye)?(i(),l("div",Y,[s(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(i(),c(u(R),{key:0,onClick:Me},{default:g((()=>[k("取消")])),_:1})):s("v-if",!0),Q.isLock?s("v-if",!0):(i(),c(u(R),{key:1,onClick:xe,disabled:$.banSubmit,type:"primary"},{default:g((()=>[k(" 保存 ")])),_:1},8,["disabled"]))])):s("v-if",!0)],64))],64))],64))]))}});export{X as default};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
form: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
|
-
default: () =>
|
|
4
|
+
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
item: {
|
|
7
7
|
type: ObjectConstructor;
|
|
8
|
-
default: () =>
|
|
8
|
+
default: () => {};
|
|
9
9
|
};
|
|
10
10
|
isLock: {
|
|
11
11
|
type: BooleanConstructor;
|
|
@@ -18,11 +18,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
19
|
form: {
|
|
20
20
|
type: ObjectConstructor;
|
|
21
|
-
default: () =>
|
|
21
|
+
default: () => {};
|
|
22
22
|
};
|
|
23
23
|
item: {
|
|
24
24
|
type: ObjectConstructor;
|
|
25
|
-
default: () =>
|
|
25
|
+
default: () => {};
|
|
26
26
|
};
|
|
27
27
|
isLock: {
|
|
28
28
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,watch as t,createVNode as
|
|
1
|
+
import{defineComponent as e,reactive as o,watch as t,createVNode as i,resolveComponent as l,isVNode as s}from"vue";import{NCheckboxGroup as c,NCheckbox as n,NInput as r,NIcon as u}from"naive-ui";import{api as a}from"v-viewer";import{SearchOutline as p}from"@vicons/ionicons5";import"xe-utils";import"moment";import h from"../../../../../shared/utils/vexutilsExpand.js";import f from"../composables/choose-common.js";var d=e({name:"RCheckbox",components:{NCheckboxGroup:c,NCheckbox:n,NInput:r,NIcon:u},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1},inputLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,n){var r,d;const x=o({curCheckboxValue:[],othersText:"",curOptions:[],optionsPreSuffixObj:{}}),{choiceColor:m,showImgWrap:v,handleDefPreSuffix:b,choiceUseKey:k,isCheckboxItem:C,showPreSuffix:O,handleOptions:y,stopClick:g}=f(e,x),S=(null==(d=null==(r=e.item)?void 0:r.setting)?void 0:d.chooseStyleSetting)||1,V=o=>{const t={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};o&&!x.curCheckboxValue.includes("other")&&x.curCheckboxValue.push("other");const i=JSON.parse(JSON.stringify(x.curCheckboxValue));n.emit("scaleChange",i,e.item,{choiceObj:t,isSetObj:C.value})},j=o=>{var t,i;let l=o.options||[];const s=e.form[e.item.val_key],c=null==(t=null==o?void 0:o.setting)?void 0:t.defaultValue;"EVALUATE_CHECKBOX_BLOCK"===e.item.type&&(l=(null==(i=o.scoreConfigs)?void 0:i.scoreRules)||[]);let n=[];n=c&&h.isJSON(c)?JSON.parse(c):s,e.inputLock?((e,o,t)=>{var i;if(x.curOptions=y(t),!t.length||!o||!o.length)return;const l=[];let s,c=0;const n=o.length;for(;c<n;c++){if(s=o[c],"其他"===s){x.othersText=s,x.curCheckboxValue=["other"],!l.includes("other")&&l.push("other");continue}const e=t.findIndex((e=>e.value===s));if(e<0){x.othersText=s,!l.includes("other")&&l.push("other");continue}const n=null==(i=t[e])?void 0:i.key;l.indexOf(n)<0&&l.push(n)}x.curCheckboxValue=l,V()})(0,o.dbValue||n,l):((e,o,t)=>{var i;if(x.curOptions=y(t),!t.length||!o||!o.length)return;if("EVALUATE_CHECKBOX_BLOCK"===e.type)return x.curCheckboxValue=o,void V();const l=[],s=o.length;let c,n=0;const r=t.some((e=>e.importability||"other"===e.key));for(;n<s;n++){if(c=o[n],"其他"===c){x.othersText=c,x.curCheckboxValue=["other"],!l.includes("other")&&l.push("other");continue}const e=t.findIndex((e=>e.value===c));if(e>0){const o=null==(i=t[e])?void 0:i.key;!l.includes(o)&&l.push(o)}else t.map((e=>{const o=b(e,n,c,!0,r);o&&!l.includes(o)&&l.push(o)}))}x.curCheckboxValue=l,V()})(o,o.dbValue||n,l)};t((()=>e.item),(e=>{e&&Object.keys(e).length&&j(e)}),{immediate:!0});const L=e=>i("span",{class:"scale-choice-img-wrap"},[i("img",{class:"show-picture",src:e.imageUrl},null),i("div",{class:"scale-preview-wrap"},[i(u,{size:"24",color:"#fff",component:p,onClick:o=>((e,o)=>{e.preventDefault(),e.stopPropagation();const t=x.curOptions.map((e=>e.imageUrl)).filter(Boolean);if(!t.length)return;const i=t.findIndex((e=>e===o));a({images:t,options:{toolbar:!0,initialViewIndex:i<0?0:i}})})(o,e.imageUrl)},null)])]),T=o=>i("div",{class:"presuffix-wrap"},[o.prefix&&i("span",{class:"prefix-span",style:{color:m.value(o)}},[o.prefix]),i(l("n-input"),{value:x.optionsPreSuffixObj[o.key],"onUpdate:value":e=>x.optionsPreSuffixObj[o.key]=e,disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1,onInput:()=>(o=>{const t={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};x.curCheckboxValue.includes(o.key)||x.curCheckboxValue.push(o.key);const i=JSON.parse(JSON.stringify(x.curCheckboxValue));n.emit("scaleChange",i,e.item,{choiceObj:t,isSetObj:C.value})})(o),onClick:g},null),o.suffix&&i("span",{class:"suffix-span",style:{color:m.value(o)}},[o.suffix])]),w=e=>i("span",{style:{color:m.value(e)},class:"other-span"},[e.label]),N=o=>i("div",{class:"choose-other",onClick:g},[i(l("n-input"),{value:x.othersText,"onUpdate:value":[e=>x.othersText=e,()=>V(!0)],disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1},null)]),P=e=>C.value&&O.value(e),I=k.value;return()=>{let o;return i(c,{value:x.curCheckboxValue,"onUpdate:value":[e=>x.curCheckboxValue=e,()=>V(!1)],class:["c-choice-wrap","choice-wrap-"+S],disabled:e.isLock},"function"==typeof(t=o=x.curOptions.map((e=>i("div",{class:"c-choice-radio-div"},[i(l("n-checkbox"),{key:e.value,value:e[I]},{default:()=>[v.value(e)&&L(e),P(e)&&T(e),!P(e)&&w(e),e.importability&&N(e)]})]))))||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?o:{default:()=>[o]});var t}}});export{d as default};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
form: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
|
-
default: () =>
|
|
4
|
+
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
item: {
|
|
7
7
|
type: ObjectConstructor;
|
|
8
|
-
default: () =>
|
|
8
|
+
default: () => {};
|
|
9
9
|
};
|
|
10
10
|
isLock: {
|
|
11
11
|
type: BooleanConstructor;
|
|
@@ -18,11 +18,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
19
|
form: {
|
|
20
20
|
type: ObjectConstructor;
|
|
21
|
-
default: () =>
|
|
21
|
+
default: () => {};
|
|
22
22
|
};
|
|
23
23
|
item: {
|
|
24
24
|
type: ObjectConstructor;
|
|
25
|
-
default: () =>
|
|
25
|
+
default: () => {};
|
|
26
26
|
};
|
|
27
27
|
isLock: {
|
|
28
28
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,watch as t,createVNode as i,resolveComponent as l,isVNode as
|
|
1
|
+
import{defineComponent as e,reactive as o,watch as t,createVNode as i,resolveComponent as l,isVNode as s}from"vue";import{NRadioGroup as a,NRadio as r,NInput as n,NIcon as u}from"naive-ui";import{api as c}from"v-viewer";import{SearchOutline as p}from"@vicons/ionicons5";import f from"../composables/choose-common.js";var v=e({name:"RRadio",components:{NRadioGroup:a,NRadio:r,NInput:n,NIcon:u},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1},inputLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,r){var n,v;const d=o({curvalue:"",othersText:"",curOptions:[],optionsPreSuffixObj:{}}),{choiceColor:m,showImgWrap:h,handleDefPreSuffix:b,choiceUseKey:x,isRadioItem:O,showPreSuffix:j,handleOptions:y,stopClick:g}=f(e,d),k=(null==(v=null==(n=e.item)?void 0:n.setting)?void 0:v.chooseStyleSetting)||1,S=o=>{var t;let i=o.options||[];const l=e.form[e.item.val_key];"EVALUATE_RADIO_BLOCK"===e.item.type&&(i=(null==(t=o.scoreConfigs)?void 0:t.scoreRules)||[]);((e,o,t)=>{if(d.curOptions=y(t),!t.length||!o)return;if("EVALUATE_RADIO_BLOCK"===e.type)return d.curvalue=o,void P();const i=t.find((e=>e.value===o));if(i)return d.curvalue=i.key,void P();t.find(((e,t)=>{const i=b(e,t,o);return i&&(d.curvalue=i),!!i||!1}))||(d.othersText=o,d.curvalue="other"),P()})(o,o.dbValue||o.setting.defaultValue||l,i)},P=()=>{const o={othersText:d.othersText,optionsPreSuffixObj:d.optionsPreSuffixObj};r.emit("scaleChange",d.curvalue,e.item,{choiceObj:o,isSetObj:O.value})};t((()=>e.item),(e=>{e&&Object.keys(e).length&&S(e)}),{immediate:!0});const C=()=>{const o={othersText:d.othersText,optionsPreSuffixObj:d.optionsPreSuffixObj};d.curvalue="other",r.emit("scaleChange","other",e.item,{choiceObj:o,isSetObj:O.value})},T=e=>i("span",{class:"scale-choice-img-wrap"},[i("img",{class:"show-picture",src:e.imageUrl},null),i("div",{class:"scale-preview-wrap"},[i(u,{size:"24",color:"#fff",component:p,onClick:o=>((e,o)=>{e.preventDefault(),e.stopPropagation();const t=d.curOptions.map((e=>e.imageUrl)).filter(Boolean);if(!t.length)return;const i=t.findIndex((e=>e===o));c({images:t,options:{toolbar:!0,initialViewIndex:i<0?0:i}})})(o,e.imageUrl)},null)])]),w=o=>i("div",{class:"presuffix-wrap"},[o.prefix&&i("span",{class:"prefix-span",style:{color:m.value(o)}},[o.prefix]),i(l("n-input"),{value:d.optionsPreSuffixObj[o.key],"onUpdate:value":e=>d.optionsPreSuffixObj[o.key]=e,disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1,"on-update:value":t=>((o,t)=>{d.optionsPreSuffixObj[t.key]=o,d.curvalue=t.key;const i={othersText:d.othersText,optionsPreSuffixObj:d.optionsPreSuffixObj};console.log(d.optionsPreSuffixObj),r.emit("scaleChange",d.curvalue,e.item,{choiceObj:i,isSetObj:O.value})})(t,o),onClick:g},null),o.suffix&&i("span",{class:"suffix-span",style:{color:m.value(o)}},[o.suffix])]),L=e=>i("span",{style:{color:m.value(e)},class:"other-span"},[e.label]),U=o=>i("div",{class:"choose-other",onClick:g},[i(l("n-input"),{value:d.othersText,"onUpdate:value":[e=>d.othersText=e,C],disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1},null)]),I=e=>O.value&&j.value(e),R=x.value;return()=>{let o;return i(a,{value:d.curvalue,"onUpdate:value":[e=>d.curvalue=e,P],class:["c-choice-wrap","choice-wrap-"+k],disabled:e.isLock},"function"==typeof(t=o=d.curOptions.map((e=>i("div",{class:"c-choice-radio-div"},[i(l("n-radio"),{key:e.value,value:e[R]},{default:()=>[h.value(e)&&T(e),I(e)&&w(e),!I(e)&&L(e),e.importability&&U(e)]})]))))||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?o:{default:()=>[o]});var t}}});export{v as default};
|