cnhis-design-vue 3.1.41-release.4 → 3.1.41-release.5

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.
Files changed (106) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  7. package/es/components/form-config/index.d.ts +7 -2
  8. package/es/components/form-config/src/FormConfig.vue.d.ts +7 -2
  9. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
  10. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  11. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -1
  12. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  13. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  14. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  15. package/es/components/form-config/src/types/index.d.ts +1 -0
  16. package/es/components/form-render/index.d.ts +1 -1
  17. package/es/components/form-render/index.js +1 -1
  18. package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
  19. package/es/components/form-render/src/FormRender.vue.js +1 -1
  20. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -1
  21. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  22. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  23. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -6
  24. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  25. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  26. package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
  27. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  28. package/es/components/form-render/src/hooks/useFormField.d.ts +1 -0
  29. package/es/components/form-render/src/hooks/useFormField.js +1 -1
  30. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  31. package/es/components/form-render/src/types/fieldItem.d.ts +4 -0
  32. package/es/components/form-render/src/types/index.d.ts +1 -1
  33. package/es/components/form-render/src/utils/dom.d.ts +2 -1
  34. package/es/components/form-render/src/utils/dom.js +1 -1
  35. package/es/components/iho-table/index.d.ts +3 -3
  36. package/es/components/iho-table/index.js +1 -1
  37. package/es/components/iho-table/src/IhoTable.vue.d.ts +3 -3
  38. package/es/components/iho-table/src/constants/index.d.ts +2 -2
  39. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
  40. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -1
  41. package/es/components/index.css +1 -1
  42. package/es/components/index.js +1 -1
  43. package/es/components/recommend-search/index.d.ts +10 -10
  44. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +10 -10
  45. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
  46. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
  47. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -4
  48. package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -0
  49. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  50. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  51. package/es/components/shortcut-setter/index.d.ts +2 -1
  52. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -1
  53. package/es/components/steps-wheel/index.d.ts +1 -1
  54. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  55. package/es/components/table-filter/index.d.ts +905 -7553
  56. package/es/components/table-filter/index.js +1 -1
  57. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +42 -3313
  58. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
  59. package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +456 -2787
  60. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
  61. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +2 -2
  62. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -42
  63. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  64. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +18 -5
  65. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  66. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  67. package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +456 -0
  68. package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -0
  69. package/es/components/table-filter/src/components/{search-modal/set-classification.vue.d.ts → set-classification/index.vue.d.ts} +21 -813
  70. package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -0
  71. package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -0
  72. package/es/components/table-filter/src/const/dataOptions.d.ts +1 -25
  73. package/es/components/table-filter/src/const/dataOptions.js +1 -1
  74. package/es/components/table-filter/src/hooks/export.js +1 -1
  75. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  76. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  77. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
  78. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  79. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +47 -1137
  80. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
  81. package/es/components/table-filter/src/types/index.d.ts +4 -14
  82. package/es/components/table-filter/style/index.css +1 -1
  83. package/es/env.d.ts +24 -24
  84. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  85. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  86. package/es/shared/utils/tapable/index.d.ts +139 -0
  87. package/package.json +64 -64
  88. package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +0 -90
  89. package/es/components/table-filter/src/classification/search-class-name.vue.js +0 -1
  90. package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +0 -1469
  91. package/es/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
  92. package/es/components/table-filter/src/components/age-com/index.vue.js +0 -1
  93. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
  94. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
  95. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
  96. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
  97. package/es/components/table-filter/src/components/range-age/index.vue.js +0 -1
  98. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +0 -789
  99. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
  100. package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +0 -18
  101. package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +0 -1
  102. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +0 -1244
  103. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
  104. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
  105. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
  106. /package/es/components/table-filter/src/components/table-modal/{TableModal.vue.d.ts → index.vue.d.ts} +0 -0
@@ -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 s from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import t 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"./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 d,CRadio as f,CCheckbox as l,CSelect as c,CDatetime as p}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import u from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import x from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import{CBaseSearch as C,CQuickSearch as h,CClassification as j}from"./table-filter/index.js";export{CBaseSearch,CClassification,CQuickSearch}from"./table-filter/index.js";import b 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 k from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import S from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import F 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 P from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import v from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import A from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import B from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import I from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import w from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";export{Insurance}from"./insurance-sdk/src/utils/insurance.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{AsyncQueue,useAsyncQueue}from"./form-render/src/hooks/useAsyncQueue.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,queryDecorator,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";export{useAdvanced}from"./table-filter/src/hooks/useAdvanced.js";const L={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:s,CSelectPerson:t,CSelectLabel:i,CLabelFormContent:a,CScaleView:d,CMap:n,CVodChunkUpload:m,CRadio:f,CCheckbox:l,CSelect:c,CDatetime:p,CInfoHeader:u,CTimeLine:x,CBaseSearch:C,CQuickSearch:h,CClassification:j,CBpmnWorkflow:b,CStepsWheel:g,CEditor:k,CFormRender:S,CFabricChart:F,CShortcutProvider:y,CShortcutSetter:P,CFormConfig:v,CIhoTable:A,CKeyboard:B,CSearchCascader:I,CRecommendSearch:w};var R={install:function(e){Object.values(L).forEach((r=>{r.install(e)}))},...L};export{R as default};
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 s from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import t 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"./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 d,CRadio as f,CCheckbox as l,CSelect as c,CDatetime as p}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import u from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import x from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import{CBaseSearch as C,CQuickSearch as h,CClassification as j}from"./table-filter/index.js";export{CBaseSearch,CClassification,CQuickSearch}from"./table-filter/index.js";import b 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 k from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import S from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import F 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 P from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import A 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 v from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import I from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import w from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";export{Insurance}from"./insurance-sdk/src/utils/insurance.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{AsyncQueue,useAsyncQueue}from"./form-render/src/hooks/useAsyncQueue.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 L={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:s,CSelectPerson:t,CSelectLabel:i,CLabelFormContent:a,CScaleView:d,CMap:n,CVodChunkUpload:m,CRadio:f,CCheckbox:l,CSelect:c,CDatetime:p,CInfoHeader:u,CTimeLine:x,CBaseSearch:C,CQuickSearch:h,CClassification:j,CBpmnWorkflow:b,CStepsWheel:g,CEditor:k,CFormRender:S,CFabricChart:F,CShortcutProvider:y,CShortcutSetter:P,CFormConfig:A,CIhoTable:B,CKeyboard:v,CSearchCascader:I,CRecommendSearch:w};var D={install:function(e){Object.values(L).forEach((r=>{r.install(e)}))},...L};export{D as default};
@@ -100,9 +100,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
100
100
  };
101
101
  }>> & {
102
102
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
103
- onSearch?: ((...args: any[]) => any) | undefined;
104
103
  onDelete?: ((...args: any[]) => any) | undefined;
105
104
  onClear?: ((...args: any[]) => any) | undefined;
105
+ onSearch?: ((...args: any[]) => any) | undefined;
106
106
  onChoose?: ((...args: any[]) => any) | undefined;
107
107
  onOpenMenu?: ((...args: any[]) => any) | undefined;
108
108
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -169,9 +169,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
169
169
  };
170
170
  }>> & {
171
171
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
172
- onSearch?: ((...args: any[]) => any) | undefined;
173
172
  onDelete?: ((...args: any[]) => any) | undefined;
174
173
  onClear?: ((...args: any[]) => any) | undefined;
174
+ onSearch?: ((...args: any[]) => any) | undefined;
175
175
  onChoose?: ((...args: any[]) => any) | undefined;
176
176
  onOpenMenu?: ((...args: any[]) => any) | undefined;
177
177
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -330,9 +330,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
330
330
  default: boolean;
331
331
  };
332
332
  }>> & {
333
- onSearch?: ((...args: any[]) => any) | undefined;
334
333
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
335
334
  onClear?: ((...args: any[]) => any) | undefined;
335
+ onSearch?: ((...args: any[]) => any) | undefined;
336
336
  onOpenMenu?: ((...args: any[]) => any) | undefined;
337
337
  onCloseMenu?: ((...args: any[]) => any) | undefined;
338
338
  }>>;
@@ -388,9 +388,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
388
388
  default: boolean;
389
389
  };
390
390
  }>> & {
391
- onSearch?: ((...args: any[]) => any) | undefined;
392
391
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
393
392
  onClear?: ((...args: any[]) => any) | undefined;
393
+ onSearch?: ((...args: any[]) => any) | undefined;
394
394
  onOpenMenu?: ((...args: any[]) => any) | undefined;
395
395
  onCloseMenu?: ((...args: any[]) => any) | undefined;
396
396
  }, {
@@ -432,9 +432,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
432
432
  };
433
433
  }>> & {
434
434
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
435
- onSearch?: ((...args: any[]) => any) | undefined;
436
435
  onDelete?: ((...args: any[]) => any) | undefined;
437
436
  onClear?: ((...args: any[]) => any) | undefined;
437
+ onSearch?: ((...args: any[]) => any) | undefined;
438
438
  onChoose?: ((...args: any[]) => any) | undefined;
439
439
  onOpenMenu?: ((...args: any[]) => any) | undefined;
440
440
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -513,9 +513,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
513
513
  };
514
514
  }>> & {
515
515
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
516
- onSearch?: ((...args: any[]) => any) | undefined;
517
516
  onDelete?: ((...args: any[]) => any) | undefined;
518
517
  onClear?: ((...args: any[]) => any) | undefined;
518
+ onSearch?: ((...args: any[]) => any) | undefined;
519
519
  onChoose?: ((...args: any[]) => any) | undefined;
520
520
  onOpenMenu?: ((...args: any[]) => any) | undefined;
521
521
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -620,9 +620,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
620
620
  default: boolean;
621
621
  };
622
622
  }>> & {
623
- onSearch?: ((...args: any[]) => any) | undefined;
624
623
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
625
624
  onClear?: ((...args: any[]) => any) | undefined;
625
+ onSearch?: ((...args: any[]) => any) | undefined;
626
626
  onOpenMenu?: ((...args: any[]) => any) | undefined;
627
627
  onCloseMenu?: ((...args: any[]) => any) | undefined;
628
628
  }>>;
@@ -678,9 +678,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
678
678
  default: boolean;
679
679
  };
680
680
  }>> & {
681
- onSearch?: ((...args: any[]) => any) | undefined;
682
681
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
683
682
  onClear?: ((...args: any[]) => any) | undefined;
683
+ onSearch?: ((...args: any[]) => any) | undefined;
684
684
  onOpenMenu?: ((...args: any[]) => any) | undefined;
685
685
  onCloseMenu?: ((...args: any[]) => any) | undefined;
686
686
  }, {
@@ -727,9 +727,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
727
727
  };
728
728
  }>> & {
729
729
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
730
- onSearch?: ((...args: any[]) => any) | undefined;
731
730
  onDelete?: ((...args: any[]) => any) | undefined;
732
731
  onClear?: ((...args: any[]) => any) | undefined;
732
+ onSearch?: ((...args: any[]) => any) | undefined;
733
733
  onChoose?: ((...args: any[]) => any) | undefined;
734
734
  onOpenMenu?: ((...args: any[]) => any) | undefined;
735
735
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -795,9 +795,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
795
795
  };
796
796
  }>> & {
797
797
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
798
- onSearch?: ((...args: any[]) => any) | undefined;
799
798
  onDelete?: ((...args: any[]) => any) | undefined;
800
799
  onClear?: ((...args: any[]) => any) | undefined;
800
+ onSearch?: ((...args: any[]) => any) | undefined;
801
801
  onChoose?: ((...args: any[]) => any) | undefined;
802
802
  onOpenMenu?: ((...args: any[]) => any) | undefined;
803
803
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -102,9 +102,9 @@ declare const _default: import("vue").DefineComponent<{
102
102
  };
103
103
  }>> & {
104
104
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
105
- onSearch?: ((...args: any[]) => any) | undefined;
106
105
  onDelete?: ((...args: any[]) => any) | undefined;
107
106
  onClear?: ((...args: any[]) => any) | undefined;
107
+ onSearch?: ((...args: any[]) => any) | undefined;
108
108
  onChoose?: ((...args: any[]) => any) | undefined;
109
109
  onOpenMenu?: ((...args: any[]) => any) | undefined;
110
110
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -171,9 +171,9 @@ declare const _default: import("vue").DefineComponent<{
171
171
  };
172
172
  }>> & {
173
173
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
174
- onSearch?: ((...args: any[]) => any) | undefined;
175
174
  onDelete?: ((...args: any[]) => any) | undefined;
176
175
  onClear?: ((...args: any[]) => any) | undefined;
176
+ onSearch?: ((...args: any[]) => any) | undefined;
177
177
  onChoose?: ((...args: any[]) => any) | undefined;
178
178
  onOpenMenu?: ((...args: any[]) => any) | undefined;
179
179
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -332,9 +332,9 @@ declare const _default: import("vue").DefineComponent<{
332
332
  default: boolean;
333
333
  };
334
334
  }>> & {
335
- onSearch?: ((...args: any[]) => any) | undefined;
336
335
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
337
336
  onClear?: ((...args: any[]) => any) | undefined;
337
+ onSearch?: ((...args: any[]) => any) | undefined;
338
338
  onOpenMenu?: ((...args: any[]) => any) | undefined;
339
339
  onCloseMenu?: ((...args: any[]) => any) | undefined;
340
340
  }>>;
@@ -390,9 +390,9 @@ declare const _default: import("vue").DefineComponent<{
390
390
  default: boolean;
391
391
  };
392
392
  }>> & {
393
- onSearch?: ((...args: any[]) => any) | undefined;
394
393
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
395
394
  onClear?: ((...args: any[]) => any) | undefined;
395
+ onSearch?: ((...args: any[]) => any) | undefined;
396
396
  onOpenMenu?: ((...args: any[]) => any) | undefined;
397
397
  onCloseMenu?: ((...args: any[]) => any) | undefined;
398
398
  }, {
@@ -434,9 +434,9 @@ declare const _default: import("vue").DefineComponent<{
434
434
  };
435
435
  }>> & {
436
436
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
437
- onSearch?: ((...args: any[]) => any) | undefined;
438
437
  onDelete?: ((...args: any[]) => any) | undefined;
439
438
  onClear?: ((...args: any[]) => any) | undefined;
439
+ onSearch?: ((...args: any[]) => any) | undefined;
440
440
  onChoose?: ((...args: any[]) => any) | undefined;
441
441
  onOpenMenu?: ((...args: any[]) => any) | undefined;
442
442
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -515,9 +515,9 @@ declare const _default: import("vue").DefineComponent<{
515
515
  };
516
516
  }>> & {
517
517
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
518
- onSearch?: ((...args: any[]) => any) | undefined;
519
518
  onDelete?: ((...args: any[]) => any) | undefined;
520
519
  onClear?: ((...args: any[]) => any) | undefined;
520
+ onSearch?: ((...args: any[]) => any) | undefined;
521
521
  onChoose?: ((...args: any[]) => any) | undefined;
522
522
  onOpenMenu?: ((...args: any[]) => any) | undefined;
523
523
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -622,9 +622,9 @@ declare const _default: import("vue").DefineComponent<{
622
622
  default: boolean;
623
623
  };
624
624
  }>> & {
625
- onSearch?: ((...args: any[]) => any) | undefined;
626
625
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
627
626
  onClear?: ((...args: any[]) => any) | undefined;
627
+ onSearch?: ((...args: any[]) => any) | undefined;
628
628
  onOpenMenu?: ((...args: any[]) => any) | undefined;
629
629
  onCloseMenu?: ((...args: any[]) => any) | undefined;
630
630
  }>>;
@@ -680,9 +680,9 @@ declare const _default: import("vue").DefineComponent<{
680
680
  default: boolean;
681
681
  };
682
682
  }>> & {
683
- onSearch?: ((...args: any[]) => any) | undefined;
684
683
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
685
684
  onClear?: ((...args: any[]) => any) | undefined;
685
+ onSearch?: ((...args: any[]) => any) | undefined;
686
686
  onOpenMenu?: ((...args: any[]) => any) | undefined;
687
687
  onCloseMenu?: ((...args: any[]) => any) | undefined;
688
688
  }, {
@@ -729,9 +729,9 @@ declare const _default: import("vue").DefineComponent<{
729
729
  };
730
730
  }>> & {
731
731
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
732
- onSearch?: ((...args: any[]) => any) | undefined;
733
732
  onDelete?: ((...args: any[]) => any) | undefined;
734
733
  onClear?: ((...args: any[]) => any) | undefined;
734
+ onSearch?: ((...args: any[]) => any) | undefined;
735
735
  onChoose?: ((...args: any[]) => any) | undefined;
736
736
  onOpenMenu?: ((...args: any[]) => any) | undefined;
737
737
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -797,9 +797,9 @@ declare const _default: import("vue").DefineComponent<{
797
797
  };
798
798
  }>> & {
799
799
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
800
- onSearch?: ((...args: any[]) => any) | undefined;
801
800
  onDelete?: ((...args: any[]) => any) | undefined;
802
801
  onClear?: ((...args: any[]) => any) | undefined;
802
+ onSearch?: ((...args: any[]) => any) | undefined;
803
803
  onChoose?: ((...args: any[]) => any) | undefined;
804
804
  onOpenMenu?: ((...args: any[]) => any) | undefined;
805
805
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -68,9 +68,9 @@ declare const _default: import("vue").DefineComponent<{
68
68
  default: boolean;
69
69
  };
70
70
  }>> & {
71
- onSearch?: ((...args: any[]) => any) | undefined;
72
71
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
73
72
  onClear?: ((...args: any[]) => any) | undefined;
73
+ onSearch?: ((...args: any[]) => any) | undefined;
74
74
  onOpenMenu?: ((...args: any[]) => any) | undefined;
75
75
  onCloseMenu?: ((...args: any[]) => any) | undefined;
76
76
  }>>;
@@ -126,9 +126,9 @@ declare const _default: import("vue").DefineComponent<{
126
126
  default: boolean;
127
127
  };
128
128
  }>> & {
129
- onSearch?: ((...args: any[]) => any) | undefined;
130
129
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
131
130
  onClear?: ((...args: any[]) => any) | undefined;
131
+ onSearch?: ((...args: any[]) => any) | undefined;
132
132
  onOpenMenu?: ((...args: any[]) => any) | undefined;
133
133
  onCloseMenu?: ((...args: any[]) => any) | undefined;
134
134
  }, {
@@ -61,9 +61,9 @@ declare const _default: import("vue").DefineComponent<{
61
61
  };
62
62
  }>> & {
63
63
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
64
- onSearch?: ((...args: any[]) => any) | undefined;
65
64
  onDelete?: ((...args: any[]) => any) | undefined;
66
65
  onClear?: ((...args: any[]) => any) | undefined;
66
+ onSearch?: ((...args: any[]) => any) | undefined;
67
67
  onChoose?: ((...args: any[]) => any) | undefined;
68
68
  onOpenMenu?: ((...args: any[]) => any) | undefined;
69
69
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -222,9 +222,9 @@ declare const _default: import("vue").DefineComponent<{
222
222
  default: boolean;
223
223
  };
224
224
  }>> & {
225
- onSearch?: ((...args: any[]) => any) | undefined;
226
225
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
227
226
  onClear?: ((...args: any[]) => any) | undefined;
227
+ onSearch?: ((...args: any[]) => any) | undefined;
228
228
  onOpenMenu?: ((...args: any[]) => any) | undefined;
229
229
  onCloseMenu?: ((...args: any[]) => any) | undefined;
230
230
  }>>;
@@ -280,9 +280,9 @@ declare const _default: import("vue").DefineComponent<{
280
280
  default: boolean;
281
281
  };
282
282
  }>> & {
283
- onSearch?: ((...args: any[]) => any) | undefined;
284
283
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
285
284
  onClear?: ((...args: any[]) => any) | undefined;
285
+ onSearch?: ((...args: any[]) => any) | undefined;
286
286
  onOpenMenu?: ((...args: any[]) => any) | undefined;
287
287
  onCloseMenu?: ((...args: any[]) => any) | undefined;
288
288
  }, {
@@ -324,9 +324,9 @@ declare const _default: import("vue").DefineComponent<{
324
324
  };
325
325
  }>> & {
326
326
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
327
- onSearch?: ((...args: any[]) => any) | undefined;
328
327
  onDelete?: ((...args: any[]) => any) | undefined;
329
328
  onClear?: ((...args: any[]) => any) | undefined;
329
+ onSearch?: ((...args: any[]) => any) | undefined;
330
330
  onChoose?: ((...args: any[]) => any) | undefined;
331
331
  onOpenMenu?: ((...args: any[]) => any) | undefined;
332
332
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -68,9 +68,9 @@ declare const _default: import("vue").DefineComponent<{
68
68
  };
69
69
  }>> & {
70
70
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
71
- onSearch?: ((...args: any[]) => any) | undefined;
72
71
  onDelete?: ((...args: any[]) => any) | undefined;
73
72
  onClear?: ((...args: any[]) => any) | undefined;
73
+ onSearch?: ((...args: any[]) => any) | undefined;
74
74
  onChoose?: ((...args: any[]) => any) | undefined;
75
75
  onOpenMenu?: ((...args: any[]) => any) | undefined;
76
76
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -175,9 +175,9 @@ declare const _default: import("vue").DefineComponent<{
175
175
  default: boolean;
176
176
  };
177
177
  }>> & {
178
- onSearch?: ((...args: any[]) => any) | undefined;
179
178
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
180
179
  onClear?: ((...args: any[]) => any) | undefined;
180
+ onSearch?: ((...args: any[]) => any) | undefined;
181
181
  onOpenMenu?: ((...args: any[]) => any) | undefined;
182
182
  onCloseMenu?: ((...args: any[]) => any) | undefined;
183
183
  }>>;
@@ -233,9 +233,9 @@ declare const _default: import("vue").DefineComponent<{
233
233
  default: boolean;
234
234
  };
235
235
  }>> & {
236
- onSearch?: ((...args: any[]) => any) | undefined;
237
236
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
238
237
  onClear?: ((...args: any[]) => any) | undefined;
238
+ onSearch?: ((...args: any[]) => any) | undefined;
239
239
  onOpenMenu?: ((...args: any[]) => any) | undefined;
240
240
  onCloseMenu?: ((...args: any[]) => any) | undefined;
241
241
  }, {
@@ -282,9 +282,9 @@ declare const _default: import("vue").DefineComponent<{
282
282
  };
283
283
  }>> & {
284
284
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
285
- onSearch?: ((...args: any[]) => any) | undefined;
286
285
  onDelete?: ((...args: any[]) => any) | undefined;
287
286
  onClear?: ((...args: any[]) => any) | undefined;
287
+ onSearch?: ((...args: any[]) => any) | undefined;
288
288
  onChoose?: ((...args: any[]) => any) | undefined;
289
289
  onOpenMenu?: ((...args: any[]) => any) | undefined;
290
290
  onCloseMenu?: ((...args: any[]) => any) | undefined;
@@ -499,6 +499,9 @@ declare const _default: import("vue").DefineComponent<{
499
499
  getTotalLen: () => void;
500
500
  countdown: (startTime: any) => void;
501
501
  clearTimer: () => void;
502
+ /**
503
+ * wacth
504
+ */
502
505
  init: () => void;
503
506
  checkType: (val: any) => string;
504
507
  diffAnswered: (form: any) => void;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as v,mergeProps as m,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as K,NFormItem as V,NButton as F}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:ve,hasScore:me,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,showEvent:Se,formKey:Ee}=_(Q,z,{query:ne}),{initForm:_e}=A(Q,z,H,{query:ne}),{submitMethod:Ae}=j(Q,z,H,{query:ne}),{nextLogicEvent:je,handleDynamicDataRelation:Te}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const De=e=>{try{ie(),_e(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&De(e):e.guage_id&&De(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{_e(o)}))}),{immediate:!0});const Oe=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Le=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,Ae(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},xe=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Ie=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,je(e,o,z.formArray),Te(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),je(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":je(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Pe=(e,o)=>{console.log(o),z.form[o.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},qe=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void Me("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value)return void Me("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Me(a)},Me=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Be()},onNegativeClick(){}})},Be=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}Ae()}))},Re=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:qe,cancel:Re}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="加载中"></n-spin>\r\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),v(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),v(N,m({key:0},r(Ce),{onWriteGuage:Oe}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),v(P,m({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Le}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(me)?(n(),v(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(K),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),v(r(V),{key:0,path:e.val_key,"show-label":!r(D)(e.type)},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(ve)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void xe(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,xe(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),v(C(e.renderCom),m(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:Ie,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Ne(e)})(o,e),onVodFileList:Pe}),null,16,["onOnChange"])),r(ke)(e)?(n(),v(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),v(r(F),{key:0,onClick:Re},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),v(r(F),{key:1,onClick:qe,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
1
+ import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as v,mergeProps as m,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as K,NFormItem as V,NButton as F}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:ve,hasScore:me,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,showEvent:Se,formKey:Ee}=_(Q,z,{query:ne}),{initForm:_e}=A(Q,z,H,{query:ne}),{submitMethod:Ae}=j(Q,z,H,{query:ne}),{nextLogicEvent:je,handleDynamicDataRelation:Te}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const De=e=>{try{ie(),_e(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&De(e):e.guage_id&&De(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{_e(o)}))}),{immediate:!0});const Oe=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Le=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,Ae(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},xe=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Ie=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,je(e,o,z.formArray),Te(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),je(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":je(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Pe=(e,o)=>{console.log(o),z.form[o.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},qe=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void Me("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value)return void Me("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Me(a)},Me=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Be()},onNegativeClick(){}})},Be=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}Ae()}))},Re=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:qe,cancel:Re}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),v(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),v(N,m({key:0},r(Ce),{onWriteGuage:Oe}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),v(P,m({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Le}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(me)?(n(),v(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(K),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),v(r(V),{key:0,path:e.val_key,"show-label":!r(D)(e.type)},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(ve)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void xe(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,xe(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),v(C(e.renderCom),m(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:Ie,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Ne(e)})(o,e),onVodFileList:Pe}),null,16,["onOnChange"])),r(ke)(e)?(n(),v(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),v(r(F),{key:0,onClick:Re},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),v(r(F),{key:1,onClick:qe,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
@@ -79,8 +79,8 @@ declare const _default: import("vue").DefineComponent<{
79
79
  required: false;
80
80
  };
81
81
  }>>, {
82
- effect: string;
83
82
  placement: string;
83
+ effect: string;
84
84
  tooltipTitle: string | number;
85
85
  isAlias: boolean;
86
86
  }>;
@@ -139,6 +139,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
139
139
  extendKey?: string | undefined;
140
140
  is_not_fold?: string | undefined;
141
141
  remark?: string | undefined;
142
+ free_entry?: import("..").FormCommonState | undefined;
142
143
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
143
144
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
144
145
  lazyRequest?: boolean | undefined;
@@ -2131,7 +2132,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2131
2132
  clearSpan: (uuid: string) => void;
2132
2133
  exposeEvent: {
2133
2134
  validate(path?: string): Promise<void>;
2134
- getFormValues(needCombineExtendKey?: boolean, needCombineOptionKey?: boolean): any;
2135
+ getFormValues(needCombineExtendKey?: boolean): any;
2135
2136
  setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean): void;
2136
2137
  setFieldState(path: string, handler: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
2137
2138
  match: (pattern: import("@formily/path").Pattern) => boolean;
@@ -141,6 +141,7 @@ declare const _default: import("vue").DefineComponent<{
141
141
  extendKey?: string | undefined;
142
142
  is_not_fold?: string | undefined;
143
143
  remark?: string | undefined;
144
+ free_entry?: import("../../../../es/components/form-render").FormCommonState | undefined;
144
145
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
145
146
  content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
146
147
  lazyRequest?: boolean | undefined;
@@ -2133,7 +2134,7 @@ declare const _default: import("vue").DefineComponent<{
2133
2134
  clearSpan: (uuid: string) => void;
2134
2135
  exposeEvent: {
2135
2136
  validate(path?: string): Promise<void>;
2136
- getFormValues(needCombineExtendKey?: boolean, needCombineOptionKey?: boolean): any;
2137
+ getFormValues(needCombineExtendKey?: boolean): any;
2137
2138
  setFormValues(values: import("../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean): void;
2138
2139
  setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../es/components/form-render").NonFunctionPropertyNames<{
2139
2140
  match: (pattern: import("@formily/path").Pattern) => boolean;
@@ -106,10 +106,10 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
106
106
  };
107
107
  }>>, {
108
108
  noDataMsg: string;
109
- placement: string;
110
109
  stepInfo: Record<string, any>;
111
110
  currentStep: number;
112
111
  toolTipShow: boolean;
113
112
  lastNodeRender: boolean;
113
+ placement: string;
114
114
  }>>;
115
115
  export default StepsWheel;
@@ -105,10 +105,10 @@ declare const _default: import("vue").DefineComponent<{
105
105
  };
106
106
  }>>, {
107
107
  noDataMsg: string;
108
- placement: string;
109
108
  stepInfo: Record<string, any>;
110
109
  currentStep: number;
111
110
  toolTipShow: boolean;
112
111
  lastNodeRender: boolean;
112
+ placement: string;
113
113
  }>;
114
114
  export default _default;