cnhis-design-vue 3.1.42-beta.5 → 3.1.42-beta.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/base-search/index.d.ts +2 -2
- package/es/components/base-search/src/index.vue.d.ts +2 -2
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/big-table/index.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/hooks/useEvent.js +1 -1
- package/es/components/big-table/src/hooks/useFormat.js +1 -1
- package/es/components/big-table/src/hooks/useNestTable.js +1 -1
- package/es/components/big-table/src/hooks/useTableParse.js +1 -1
- package/es/components/big-table/src/utils.d.ts +11 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/bpmn-workflow/index.d.ts +12 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +12 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- 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 +2 -2
- package/es/components/classification/style/index.css +1 -1
- package/es/components/config-provider/src/ConfigProvider.js +1 -1
- package/es/components/config-provider/src/interface.d.ts +4 -4
- package/es/components/date-picker/index.d.ts +4 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +4 -0
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/field-set/index.d.ts +26 -81
- package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +39 -39
- package/es/components/form-config/src/FormConfig.vue.d.ts +39 -39
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +15 -14
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +20 -21
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +12 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -0
- package/es/components/form-render/index.d.ts +15 -14
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +15 -14
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +15 -14
- package/es/components/form-render/src/components/renderer/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +75 -0
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +38 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +32 -5
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +1 -1
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -4
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/iho-table/index.d.ts +24 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +24 -5
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +22 -21
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -237
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -4
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -16
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
- 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/maxCheckSizePlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +25 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/{rendererPlugins/widgets/variableHeightRendererPlugin.d.ts → varialbleHeightPlugin/index.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
- package/es/components/iho-table/src/types/index.d.ts +22 -5
- package/es/components/iho-table/src/types/pluginType.d.ts +10 -25
- package/es/components/iho-table/src/utils/index.d.ts +3 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/iconfont.ttf +0 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +34 -32
- package/es/components/info-header/src/InfoHeader.vue.d.ts +34 -32
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +18 -17
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +15 -14
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/src/constants/index.js +1 -1
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/map/index.d.ts +2 -14
- package/es/components/map/src/Map.vue.d.ts +1 -14
- package/es/components/map/src/types/index.d.ts +19 -0
- package/es/components/map/src/types/index.js +1 -0
- package/es/components/recommend-search/index.d.ts +13 -128
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -130
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +84 -0
- package/es/components/recommend-search/src/components/BaseSearch.js +1 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -63
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -62
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
- package/es/components/recommend-search/src/constant/index.d.ts +3 -0
- package/es/components/recommend-search/src/constant/index.js +1 -1
- package/es/components/scale-view/index.d.ts +29 -94
- package/es/components/scale-view/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +29 -94
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +73 -3
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -1
- package/es/components/scale-view/src/hooks/use-event.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/search-cascader/index.d.ts +12 -1
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +12 -1
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +8 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
- package/es/components/search-cascader/src/constants/index.d.ts +1 -0
- package/es/components/search-cascader/src/constants/index.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +16 -16
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -16
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/src/constants/index.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/components/table-filter/src/types/index.d.ts +11 -2
- package/es/components/time-picker/src/TimePicker.vue.js +1 -1
- package/es/components/vod-chunk-upload/index.d.ts +73 -3
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -3
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
- package/es/env.d.ts +25 -24
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/{mixins → hooks}/index.d.ts +1 -0
- package/es/shared/{mixins → hooks}/index.js +1 -1
- package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
- package/es/shared/hooks/useAsyncQueue.js +1 -0
- package/es/shared/{mixins → hooks}/useDateTime.d.ts +2 -2
- package/es/shared/hooks/useDateTime.js +1 -0
- package/es/shared/utils/index.d.ts +3 -3
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/es/shared/utils/vexutils.d.ts +2 -2
- package/es/shared/utils/vexutils.js +1 -1
- package/es/shared/utils/vexutilsExpand.d.ts +254 -0
- package/es/shared/utils/vexutilsExpand.js +1 -0
- package/package.json +2 -2
- package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/variableHeightRendererPlugin.js +0 -1
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
- package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
- package/es/shared/mixins/useDateTime.js +0 -1
- package/es/shared/utils/colorLog.d.ts +0 -31
- package/es/shared/utils/colorLog.js +0 -1
- /package/es/components/base-search/style/{iconfont.ttf → base-search-iconfont.ttf} +0 -0
- /package/es/components/classification/style/{iconfont.ttf → classification-iconfont.ttf} +0 -0
- /package/es/components/info-header/style/{iconfont.ttf → info-header-font.ttf} +0 -0
- /package/es/components/select-label/style/{iconfont.ttf → select-label-iconfont.ttf} +0 -0
- /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
- /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
2
|
declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
guageData: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
styleSetting: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
3
11
|
ids: {
|
|
4
12
|
type: ObjectConstructor;
|
|
5
13
|
default: () => {
|
|
@@ -11,10 +19,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11
19
|
default: () => {};
|
|
12
20
|
type: ObjectConstructor;
|
|
13
21
|
};
|
|
14
|
-
guageData: {
|
|
15
|
-
type: ObjectConstructor;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
22
|
noBtn: {
|
|
19
23
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
20
24
|
default: boolean;
|
|
@@ -23,10 +27,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
23
27
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
24
28
|
default: boolean;
|
|
25
29
|
};
|
|
26
|
-
source: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
30
|
isLock: {
|
|
31
31
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
32
32
|
default: boolean;
|
|
@@ -35,19 +35,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
35
35
|
type: StringConstructor;
|
|
36
36
|
default: string;
|
|
37
37
|
};
|
|
38
|
-
styleSetting: {
|
|
39
|
-
type: ObjectConstructor;
|
|
40
|
-
default: () => {};
|
|
41
|
-
};
|
|
42
|
-
fontSizeObj: {
|
|
43
|
-
type: ObjectConstructor;
|
|
44
|
-
default: () => {
|
|
45
|
-
large: number;
|
|
46
|
-
medium: number;
|
|
47
|
-
small: number;
|
|
48
|
-
extrasmall: number;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
38
|
openType: {
|
|
52
39
|
type: StringConstructor;
|
|
53
40
|
default: string;
|
|
@@ -102,15 +89,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
102
89
|
};
|
|
103
90
|
getChunkUploadConfig: {
|
|
104
91
|
type: FunctionConstructor;
|
|
105
|
-
default: () => Promise<{
|
|
106
|
-
checkFileMd5Exist: string;
|
|
107
|
-
fileChannel: string;
|
|
108
|
-
md5: string;
|
|
109
|
-
objectName: string;
|
|
110
|
-
partFileMerge: string;
|
|
111
|
-
partFileUpload: string;
|
|
112
|
-
token: string;
|
|
113
|
-
}>;
|
|
92
|
+
default: () => Promise<{}>;
|
|
114
93
|
};
|
|
115
94
|
}, {
|
|
116
95
|
ScaleViewState: {
|
|
@@ -145,6 +124,14 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
145
124
|
evatipMap: {};
|
|
146
125
|
};
|
|
147
126
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
127
|
+
guageData: {
|
|
128
|
+
type: ObjectConstructor;
|
|
129
|
+
default: () => {};
|
|
130
|
+
};
|
|
131
|
+
styleSetting: {
|
|
132
|
+
type: ObjectConstructor;
|
|
133
|
+
default: () => {};
|
|
134
|
+
};
|
|
148
135
|
ids: {
|
|
149
136
|
type: ObjectConstructor;
|
|
150
137
|
default: () => {
|
|
@@ -156,10 +143,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
156
143
|
default: () => {};
|
|
157
144
|
type: ObjectConstructor;
|
|
158
145
|
};
|
|
159
|
-
guageData: {
|
|
160
|
-
type: ObjectConstructor;
|
|
161
|
-
default: () => {};
|
|
162
|
-
};
|
|
163
146
|
noBtn: {
|
|
164
147
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
165
148
|
default: boolean;
|
|
@@ -168,10 +151,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
168
151
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
169
152
|
default: boolean;
|
|
170
153
|
};
|
|
171
|
-
source: {
|
|
172
|
-
type: StringConstructor;
|
|
173
|
-
default: string;
|
|
174
|
-
};
|
|
175
154
|
isLock: {
|
|
176
155
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
177
156
|
default: boolean;
|
|
@@ -180,19 +159,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
180
159
|
type: StringConstructor;
|
|
181
160
|
default: string;
|
|
182
161
|
};
|
|
183
|
-
styleSetting: {
|
|
184
|
-
type: ObjectConstructor;
|
|
185
|
-
default: () => {};
|
|
186
|
-
};
|
|
187
|
-
fontSizeObj: {
|
|
188
|
-
type: ObjectConstructor;
|
|
189
|
-
default: () => {
|
|
190
|
-
large: number;
|
|
191
|
-
medium: number;
|
|
192
|
-
small: number;
|
|
193
|
-
extrasmall: number;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
162
|
openType: {
|
|
197
163
|
type: StringConstructor;
|
|
198
164
|
default: string;
|
|
@@ -247,15 +213,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
247
213
|
};
|
|
248
214
|
getChunkUploadConfig: {
|
|
249
215
|
type: FunctionConstructor;
|
|
250
|
-
default: () => Promise<{
|
|
251
|
-
checkFileMd5Exist: string;
|
|
252
|
-
fileChannel: string;
|
|
253
|
-
md5: string;
|
|
254
|
-
objectName: string;
|
|
255
|
-
partFileMerge: string;
|
|
256
|
-
partFileUpload: string;
|
|
257
|
-
token: string;
|
|
258
|
-
}>;
|
|
216
|
+
default: () => Promise<{}>;
|
|
259
217
|
};
|
|
260
218
|
}>> & {
|
|
261
219
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -286,7 +244,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
286
244
|
width: string;
|
|
287
245
|
height: string;
|
|
288
246
|
transform: string;
|
|
289
|
-
} |
|
|
247
|
+
} | undefined>;
|
|
290
248
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
291
249
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
292
250
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1080,6 +1038,14 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1080
1038
|
readonly ignorePathChange: boolean;
|
|
1081
1039
|
}>;
|
|
1082
1040
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale")[], "onSubmit" | "onCloseSetting" | "submitNoRequest" | "startWriteScale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1041
|
+
guageData: {
|
|
1042
|
+
type: ObjectConstructor;
|
|
1043
|
+
default: () => {};
|
|
1044
|
+
};
|
|
1045
|
+
styleSetting: {
|
|
1046
|
+
type: ObjectConstructor;
|
|
1047
|
+
default: () => {};
|
|
1048
|
+
};
|
|
1083
1049
|
ids: {
|
|
1084
1050
|
type: ObjectConstructor;
|
|
1085
1051
|
default: () => {
|
|
@@ -1091,10 +1057,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1091
1057
|
default: () => {};
|
|
1092
1058
|
type: ObjectConstructor;
|
|
1093
1059
|
};
|
|
1094
|
-
guageData: {
|
|
1095
|
-
type: ObjectConstructor;
|
|
1096
|
-
default: () => {};
|
|
1097
|
-
};
|
|
1098
1060
|
noBtn: {
|
|
1099
1061
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1100
1062
|
default: boolean;
|
|
@@ -1103,10 +1065,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1103
1065
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1104
1066
|
default: boolean;
|
|
1105
1067
|
};
|
|
1106
|
-
source: {
|
|
1107
|
-
type: StringConstructor;
|
|
1108
|
-
default: string;
|
|
1109
|
-
};
|
|
1110
1068
|
isLock: {
|
|
1111
1069
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1112
1070
|
default: boolean;
|
|
@@ -1115,19 +1073,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1115
1073
|
type: StringConstructor;
|
|
1116
1074
|
default: string;
|
|
1117
1075
|
};
|
|
1118
|
-
styleSetting: {
|
|
1119
|
-
type: ObjectConstructor;
|
|
1120
|
-
default: () => {};
|
|
1121
|
-
};
|
|
1122
|
-
fontSizeObj: {
|
|
1123
|
-
type: ObjectConstructor;
|
|
1124
|
-
default: () => {
|
|
1125
|
-
large: number;
|
|
1126
|
-
medium: number;
|
|
1127
|
-
small: number;
|
|
1128
|
-
extrasmall: number;
|
|
1129
|
-
};
|
|
1130
|
-
};
|
|
1131
1076
|
openType: {
|
|
1132
1077
|
type: StringConstructor;
|
|
1133
1078
|
default: string;
|
|
@@ -1182,15 +1127,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1182
1127
|
};
|
|
1183
1128
|
getChunkUploadConfig: {
|
|
1184
1129
|
type: FunctionConstructor;
|
|
1185
|
-
default: () => Promise<{
|
|
1186
|
-
checkFileMd5Exist: string;
|
|
1187
|
-
fileChannel: string;
|
|
1188
|
-
md5: string;
|
|
1189
|
-
objectName: string;
|
|
1190
|
-
partFileMerge: string;
|
|
1191
|
-
partFileUpload: string;
|
|
1192
|
-
token: string;
|
|
1193
|
-
}>;
|
|
1130
|
+
default: () => Promise<{}>;
|
|
1194
1131
|
};
|
|
1195
1132
|
}>> & {
|
|
1196
1133
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -1206,12 +1143,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1206
1143
|
getLabelList: Function;
|
|
1207
1144
|
deleteLabel: Function;
|
|
1208
1145
|
saveLabelItem: Function;
|
|
1209
|
-
ids: Record<string, any>;
|
|
1210
1146
|
guageData: Record<string, any>;
|
|
1147
|
+
ids: Record<string, any>;
|
|
1211
1148
|
noBtn: string | number | boolean;
|
|
1212
1149
|
hideBtn: string | number | boolean;
|
|
1213
|
-
source: string;
|
|
1214
|
-
fontSizeObj: Record<string, any>;
|
|
1215
1150
|
openType: string;
|
|
1216
1151
|
scaleApiConfig: Record<string, any>;
|
|
1217
1152
|
getSelectOptions: Function;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{COMPONENT_NAMESPACE as o}from"../../shared/global/variable.js";import{safeComponentRegister as
|
|
1
|
+
import{COMPONENT_NAMESPACE as o}from"../../shared/global/variable.js";import{safeComponentRegister as r}from"../../shared/utils/index.js";import{loadViewer as t}from"../../shared/utils/loadViewer.js";import i from"./src/ScaleView.vue.js";import e from"./src/components/formitem/r-radio.js";import m from"./src/components/formitem/r-checkbox.js";import s from"./src/components/formitem/r-select.js";import n from"./src/components/formitem/r-datetime.js";const c=i,l=e,a=m,f=s,p=n;c.install=function(i){t(i),r(i,c,o+"ScaleView")},l.install=function(i){t(i),r(i,l,o+"Radio")},a.install=function(i){t(i),r(i,a,o+"Checkbox")},f.install=function(t){r(t,f,o+"Select")},p.install=function(t){r(t,p,o+"Datetime")};export{a as CCheckbox,p as CDatetime,l as CRadio,c as CScaleView,f as CSelect};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
guageData: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
styleSetting: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
2
10
|
ids: {
|
|
3
11
|
type: ObjectConstructor;
|
|
4
12
|
default: () => {
|
|
@@ -10,10 +18,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
18
|
default: () => {};
|
|
11
19
|
type: ObjectConstructor;
|
|
12
20
|
};
|
|
13
|
-
guageData: {
|
|
14
|
-
type: ObjectConstructor;
|
|
15
|
-
default: () => {};
|
|
16
|
-
};
|
|
17
21
|
noBtn: {
|
|
18
22
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
19
23
|
default: boolean;
|
|
@@ -22,10 +26,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
26
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
23
27
|
default: boolean;
|
|
24
28
|
};
|
|
25
|
-
source: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
29
|
isLock: {
|
|
30
30
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
31
31
|
default: boolean;
|
|
@@ -34,19 +34,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
type: StringConstructor;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
-
styleSetting: {
|
|
38
|
-
type: ObjectConstructor;
|
|
39
|
-
default: () => {};
|
|
40
|
-
};
|
|
41
|
-
fontSizeObj: {
|
|
42
|
-
type: ObjectConstructor;
|
|
43
|
-
default: () => {
|
|
44
|
-
large: number;
|
|
45
|
-
medium: number;
|
|
46
|
-
small: number;
|
|
47
|
-
extrasmall: number;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
37
|
openType: {
|
|
51
38
|
type: StringConstructor;
|
|
52
39
|
default: string;
|
|
@@ -101,15 +88,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
88
|
};
|
|
102
89
|
getChunkUploadConfig: {
|
|
103
90
|
type: FunctionConstructor;
|
|
104
|
-
default: () => Promise<{
|
|
105
|
-
checkFileMd5Exist: string;
|
|
106
|
-
fileChannel: string;
|
|
107
|
-
md5: string;
|
|
108
|
-
objectName: string;
|
|
109
|
-
partFileMerge: string;
|
|
110
|
-
partFileUpload: string;
|
|
111
|
-
token: string;
|
|
112
|
-
}>;
|
|
91
|
+
default: () => Promise<{}>;
|
|
113
92
|
};
|
|
114
93
|
}, {
|
|
115
94
|
ScaleViewState: {
|
|
@@ -144,6 +123,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
123
|
evatipMap: {};
|
|
145
124
|
};
|
|
146
125
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
126
|
+
guageData: {
|
|
127
|
+
type: ObjectConstructor;
|
|
128
|
+
default: () => {};
|
|
129
|
+
};
|
|
130
|
+
styleSetting: {
|
|
131
|
+
type: ObjectConstructor;
|
|
132
|
+
default: () => {};
|
|
133
|
+
};
|
|
147
134
|
ids: {
|
|
148
135
|
type: ObjectConstructor;
|
|
149
136
|
default: () => {
|
|
@@ -155,10 +142,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
142
|
default: () => {};
|
|
156
143
|
type: ObjectConstructor;
|
|
157
144
|
};
|
|
158
|
-
guageData: {
|
|
159
|
-
type: ObjectConstructor;
|
|
160
|
-
default: () => {};
|
|
161
|
-
};
|
|
162
145
|
noBtn: {
|
|
163
146
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
164
147
|
default: boolean;
|
|
@@ -167,10 +150,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
150
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
168
151
|
default: boolean;
|
|
169
152
|
};
|
|
170
|
-
source: {
|
|
171
|
-
type: StringConstructor;
|
|
172
|
-
default: string;
|
|
173
|
-
};
|
|
174
153
|
isLock: {
|
|
175
154
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
176
155
|
default: boolean;
|
|
@@ -179,19 +158,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
179
158
|
type: StringConstructor;
|
|
180
159
|
default: string;
|
|
181
160
|
};
|
|
182
|
-
styleSetting: {
|
|
183
|
-
type: ObjectConstructor;
|
|
184
|
-
default: () => {};
|
|
185
|
-
};
|
|
186
|
-
fontSizeObj: {
|
|
187
|
-
type: ObjectConstructor;
|
|
188
|
-
default: () => {
|
|
189
|
-
large: number;
|
|
190
|
-
medium: number;
|
|
191
|
-
small: number;
|
|
192
|
-
extrasmall: number;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
161
|
openType: {
|
|
196
162
|
type: StringConstructor;
|
|
197
163
|
default: string;
|
|
@@ -246,15 +212,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
246
212
|
};
|
|
247
213
|
getChunkUploadConfig: {
|
|
248
214
|
type: FunctionConstructor;
|
|
249
|
-
default: () => Promise<{
|
|
250
|
-
checkFileMd5Exist: string;
|
|
251
|
-
fileChannel: string;
|
|
252
|
-
md5: string;
|
|
253
|
-
objectName: string;
|
|
254
|
-
partFileMerge: string;
|
|
255
|
-
partFileUpload: string;
|
|
256
|
-
token: string;
|
|
257
|
-
}>;
|
|
215
|
+
default: () => Promise<{}>;
|
|
258
216
|
};
|
|
259
217
|
}>> & {
|
|
260
218
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -285,7 +243,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
285
243
|
width: string;
|
|
286
244
|
height: string;
|
|
287
245
|
transform: string;
|
|
288
|
-
} |
|
|
246
|
+
} | undefined>;
|
|
289
247
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
290
248
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
291
249
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1079,6 +1037,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1079
1037
|
readonly ignorePathChange: boolean;
|
|
1080
1038
|
}>;
|
|
1081
1039
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale")[], "onSubmit" | "onCloseSetting" | "submitNoRequest" | "startWriteScale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1040
|
+
guageData: {
|
|
1041
|
+
type: ObjectConstructor;
|
|
1042
|
+
default: () => {};
|
|
1043
|
+
};
|
|
1044
|
+
styleSetting: {
|
|
1045
|
+
type: ObjectConstructor;
|
|
1046
|
+
default: () => {};
|
|
1047
|
+
};
|
|
1082
1048
|
ids: {
|
|
1083
1049
|
type: ObjectConstructor;
|
|
1084
1050
|
default: () => {
|
|
@@ -1090,10 +1056,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1090
1056
|
default: () => {};
|
|
1091
1057
|
type: ObjectConstructor;
|
|
1092
1058
|
};
|
|
1093
|
-
guageData: {
|
|
1094
|
-
type: ObjectConstructor;
|
|
1095
|
-
default: () => {};
|
|
1096
|
-
};
|
|
1097
1059
|
noBtn: {
|
|
1098
1060
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1099
1061
|
default: boolean;
|
|
@@ -1102,10 +1064,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1102
1064
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1103
1065
|
default: boolean;
|
|
1104
1066
|
};
|
|
1105
|
-
source: {
|
|
1106
|
-
type: StringConstructor;
|
|
1107
|
-
default: string;
|
|
1108
|
-
};
|
|
1109
1067
|
isLock: {
|
|
1110
1068
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1111
1069
|
default: boolean;
|
|
@@ -1114,19 +1072,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1114
1072
|
type: StringConstructor;
|
|
1115
1073
|
default: string;
|
|
1116
1074
|
};
|
|
1117
|
-
styleSetting: {
|
|
1118
|
-
type: ObjectConstructor;
|
|
1119
|
-
default: () => {};
|
|
1120
|
-
};
|
|
1121
|
-
fontSizeObj: {
|
|
1122
|
-
type: ObjectConstructor;
|
|
1123
|
-
default: () => {
|
|
1124
|
-
large: number;
|
|
1125
|
-
medium: number;
|
|
1126
|
-
small: number;
|
|
1127
|
-
extrasmall: number;
|
|
1128
|
-
};
|
|
1129
|
-
};
|
|
1130
1075
|
openType: {
|
|
1131
1076
|
type: StringConstructor;
|
|
1132
1077
|
default: string;
|
|
@@ -1181,15 +1126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1181
1126
|
};
|
|
1182
1127
|
getChunkUploadConfig: {
|
|
1183
1128
|
type: FunctionConstructor;
|
|
1184
|
-
default: () => Promise<{
|
|
1185
|
-
checkFileMd5Exist: string;
|
|
1186
|
-
fileChannel: string;
|
|
1187
|
-
md5: string;
|
|
1188
|
-
objectName: string;
|
|
1189
|
-
partFileMerge: string;
|
|
1190
|
-
partFileUpload: string;
|
|
1191
|
-
token: string;
|
|
1192
|
-
}>;
|
|
1129
|
+
default: () => Promise<{}>;
|
|
1193
1130
|
};
|
|
1194
1131
|
}>> & {
|
|
1195
1132
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -1205,12 +1142,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1205
1142
|
getLabelList: Function;
|
|
1206
1143
|
deleteLabel: Function;
|
|
1207
1144
|
saveLabelItem: Function;
|
|
1208
|
-
ids: Record<string, any>;
|
|
1209
1145
|
guageData: Record<string, any>;
|
|
1146
|
+
ids: Record<string, any>;
|
|
1210
1147
|
noBtn: string | number | boolean;
|
|
1211
1148
|
hideBtn: string | number | boolean;
|
|
1212
|
-
source: string;
|
|
1213
|
-
fontSizeObj: Record<string, any>;
|
|
1214
1149
|
openType: string;
|
|
1215
1150
|
scaleApiConfig: Record<string, any>;
|
|
1216
1151
|
getSelectOptions: Function;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as
|
|
1
|
+
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as n,createElementBlock as l,normalizeClass as s,unref as r,createCommentVNode as u,Fragment as c,createBlock as p,mergeProps as d,createElementVNode as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as S,h as C}from"vue";import h from"./hooks/use-noData.js";import{getScaleViewState as w}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as _}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as A}from"./hooks/scaleview-submit.js";import{handleQueryParams as O,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import D from"./components/NoData.vue.js";import P from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import x from"./components/EvaluateCountdown.vue.js";import B from"./components/EvaluatePage.vue.js";import F from"./components/AnswerParse.vue.js";import I from"./components/ScaleScore.js";import{useDialog as N,useMessage as q,NForm as M,NFormItem as R,NButton as K}from"naive-ui";import V from"../../../_virtual/plugin-vue_export-helper.js";const H=["innerHTML"],U={key:0,class:"required-text"},W={key:1,class:"evalute-label"},J=["onClick"],Y={key:1,class:"footer"};var X=V(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:V,emit:X}){const G=e,{ScaleViewState:Q}=w(),Z=t(Q),$=N(),z=q(),ee=a(null),te=a(null),{noDataState:ae,setNoData:oe,resetNodata:ie}=h(),ne=O(),{showEvatip:le,isFormBoldOpen:se,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:pe,hasScore:de,isPreviewScale:me,showEvaluateEntry:ve,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:be,propsConfig:ke,evaluatePageProps:Se,evaluateCountdownProps:Ce,skipCover:he,scaleEdit:we}=E(G,Z,{query:ne}),{initForm:Ee}=_(G,Z,X,{query:ne}),{submitMethod:_e}=A(G,Z,X,{query:ne}),{nextLogicEvent:Ae,handleDynamicDataRelation:Oe}=L(G,Z);(()=>{let{id:e}=ne;e&&(Z.shareId=e)})();const je=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),Z.spinning=!1,Z.hasFrontAddress=!1,oe(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>G.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&je(e):e.guage_id&&je(e)}),{immediate:!0}),o((()=>G.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;Z.form={},Z.formArray=[];const t=JSON.parse(JSON.stringify(e));i((()=>{Ee(t)}))}),{immediate:!0});const Te=e=>{Z.showEvaluateSettingWrap=!1,Z.showEvaluateCountdown=!!e,X("startWriteScale")},Le=()=>{console.log("----closeEvaluateCountdown"),Z.showEvaluateCountdown=!1,me.value||(Z.banSubmit=!0,_e(),$.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{$.warning({title:"提示",content:()=>C("div",{class:"evatip-container"},[C("span","答案解析:"),C("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Pe=(e,t,a)=>{console.log(e,"--val");let{choiceObj:o,isSetObj:i}=a||{};switch(t.type.includes("SELECT")||(Z.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;Z.form[t.val_key]=a,Ae(e,t,Z.formArray),Oe(o,t,Z.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(Z.choiceComObj[t.val_key]=o),Ae(e,t,Z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Ae(e,t,Z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":Z.submitForm[t.val_key]=e}},xe=(e,t)=>{console.log(t),Z.form[t.val_key]=e},Be=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),Z.labelSelectedList=t,{labelStr:a.join(","),labels:o}},Fe=()=>{var e;if(!Z.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=Z.config;if(!t||!Object.keys(t).length&&!ve.value||we.value)return void Ie("确认要结束测评吗?");if("formIframe"==G.openType&&ve.value)return void X("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==Z?void 0:Z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Ie(a)},Ie=e=>{$.warning({title:"温馨提示",content:()=>C("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Ne()},onNegativeClick(){}})},Ne=()=>{var e;null==(e=te.value)||e.validate((e=>{var t;if(e){console.log(e);let a=(null==(t=e[0])?void 0:t[0])||{},o=a.field,i=a.message,n=Z.formArray.find((e=>e.databaseTitle===o));return n&&(o=n.title),z.error(o+i),!1}_e()}))},qe=()=>{X("onCloseSetting")};return V({getScaleData:()=>({...Z}),onSubmit:Fe,cancel:qe}),(e,t)=>(n(),l("div",{class:s(["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(),l(c,{key:0},[r(ae).noData?(n(),p(D,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),l(c,{key:1},[r(ve)&&!r(he)?(n(),p(B,d({key:0},r(Se),{onWriteGuage:Te}),null,16)):(n(),l(c,{key:1},[r(fe)?(n(),p(x,d({key:0,ref_key:"countdownDom",ref:ee},r(Ce),{onCloseEvaluateCountdown:Le}),null,16)):u("v-if",!0),m("div",{class:s(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:v(r(re))},[r(de)?(n(),p(r(I),{key:0,config:Z.config,maxScore:Z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(M),{ref_key:"formRef",ref:te,model:Z.form,rules:Z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),l(c,null,y(Z.formArray,((e,t)=>(n(),l(c,{key:(e.id||e.seq)+t},[r(ce)(e)?(n(),p(r(R),{key:0,path:e.val_key,"show-label":!r(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[m("span",{class:s({"scale-label-required":r(se)(e)}),innerHTML:r(pe)(e)},null,10,H),r(se)(e)?(n(),l("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),l("span",W,b(r(ye)(e)),1)):u("v-if",!0),r(le)(e)?(n(),l("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if(Z.evatipMap[e.id])return void De(Z.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=G.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void z.error(`${a} Is not a function`);let i=await o(e.id);i&&(Z.evatipMap[e.id]||(Z.evatipMap[e.id]=i,De(i)))})(e)},[f(r(P),{"icon-class":"a-xitongtubiaotishi"}),k(" 查看提示 ")],8,J)):u("v-if",!0)])),default:g((()=>[(n(),p(S(e.renderCom),d(r(ke)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Pe,onOnChange:t=>((e,t)=>{Z.form[t.val_key]=Be(e)})(t,e),onVodFileList:xe}),null,16,["onOnChange"])),r(be)(e)?(n(),p(F,{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(),l("div",Y,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==G.sourceType?(n(),p(r(K),{key:0,onClick:qe},{default:g((()=>[k("取消")])),_:1})):u("v-if",!0),G.isLock?u("v-if",!0):(n(),p(r(K),{key:1,onClick:Fe,disabled:Z.banSubmit,type:"primary"},{default:g((()=>[k("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{X as default};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const __esModule: true;
|
|
2
|
+
declare const _default: vue_1.DefineComponent<{
|
|
3
|
+
form: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: () => void;
|
|
6
|
+
};
|
|
7
|
+
item: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => void;
|
|
10
|
+
};
|
|
11
|
+
isLock: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
16
|
+
form: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: () => void;
|
|
19
|
+
};
|
|
20
|
+
item: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
isLock: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
item: Record<string, any>;
|
|
32
|
+
isLock: boolean;
|
|
33
|
+
form: Record<string, any>;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
import vue_1 = require("vue");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as l,computed as a,createVNode as s,resolveComponent as i}from"vue";import{NSelect as t,NInput as r}from"naive-ui";import u from"./address.js";import
|
|
1
|
+
import{defineComponent as e,reactive as l,computed as a,createVNode as s,resolveComponent as i}from"vue";import{NSelect as t,NInput as r}from"naive-ui";import u from"./address.js";import"xe-utils";import"moment";import d from"../../../../../shared/utils/vexutilsExpand.js";var n=e({name:"RAddress",components:{NSelect:t,NInput:r},props:{form:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,t){let r=l({provinceValue:-1,cityValue:-1,areaValue:-1,province:[{value:-1,label:"省/自治区/直辖市"}],city:[{value:-1,label:"市"}],area:[{value:-1,label:"区/县"}],addressValue:"",allValue:{}});const n=e.item.setting||{addressType:"province-city-district-address"},c=a((()=>{let e={addressType:"province-city-district-address"};return e=d.isJSON(n)?JSON.parse(n):n,e.addressType})),o=a((()=>c.value.includes("province"))),p=a((()=>c.value.includes("city"))),v=a((()=>c.value.includes("district"))),y=a((()=>c.value.includes("address"))),m=e=>e?Object.keys(e).map((l=>({value:l,label:e[l]}))):[],V=()=>{r.area=[{value:-1,label:"区/县"}],r.areaValue=-1,r.allValue.area={key:-1,label:"区/县"}},b=(l,a,s)=>{r.provinceValue=l,r.city=[{value:-1,label:"市"}],r.cityValue=-1,r.allValue.city={key:-1,label:"市"},V(),-1!=l&&1===r.city.length&&r.city.push(...m(u[l]));let i=r.allValue;i.province={key:l,label:a.label},i.address=r.addressValue,"no"!=s&&t.emit("scaleChange",i,e.item)},f=(l,a,s)=>{r.cityValue=l,V(),-1!=l&&1===r.area.length&&r.area.push(...m(u[l]));let i=r.allValue;i.city={key:l,label:a.label},i.address=r.addressValue,"no"!=s&&t.emit("scaleChange",i,e.item)},h=(l,a,s)=>{r.areaValue=l,r.allValue.area={key:l,label:a.label},"no"!=s&&t.emit("scaleChange",r.allValue,e.item)},k=(l,a)=>{r.addressValue=l,r.allValue.address=l,"no"!=a&&t.emit("scaleChange",r.allValue,e.item)};return(()=>{var l,a,s;r.province.push(...m(u[86]));let i=e.form[e.item.val_key];if(d.isEmpty(i))return;let t=(null==(l=i.province)?void 0:l.key)||-1,n=(null==(a=i.city)?void 0:a.key)||-1,c=(null==(s=i.area)?void 0:s.key)||-1;r.addressValue=i.address,r.allValue=JSON.parse(JSON.stringify(i)),b(t,i.province,"no"),f(n,i.city,"no"),h(c,i.area,"no")})(),()=>s("div",{class:"c-scale-address"},[s("div",{class:"field-row"},[o.value&&s(i("n-select"),{value:r.provinceValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.province,"onUpdate:value":b},null),p.value&&s(i("n-select"),{value:r.cityValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.city,"onUpdate:value":f},null),v.value&&s(i("n-select"),{value:r.areaValue,filterable:!0,placeholder:"请选择",disabled:e.isLock,options:r.area,"onUpdate:value":h},null)]),y.value&&s(i("n-input"),{value:r.addressValue,placeholder:"请输入",disabled:e.isLock,"onUpdate:value":k},null)])}});export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,watch as t,createVNode as l,resolveComponent as i,isVNode as r}from"vue";import{NCheckboxGroup as
|
|
1
|
+
import{defineComponent as e,reactive as o,watch as t,createVNode as l,resolveComponent as i,isVNode as r}from"vue";import{NCheckboxGroup as s,NCheckbox as u,NInput as a,NIcon as c}from"naive-ui";import{api as n}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:s,NCheckbox:u,NInput:a,NIcon:c},props:{form:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},isLock:{type:Boolean,default:!1},inputLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,u){var a,d;const x=o({curCheckboxValue:[],othersText:"",curOptions:[],optionsPreSuffixObj:{}}),{choiceColor:m,showImgWrap:b,handleDefPreSuffix:v,choiceUseKey:k,isCheckboxItem:C,showPreSuffix:O,handleOptions:y,stopClick:g}=f(e,x),S=(null==(d=null==(a=e.item)?void 0:a.setting)?void 0:d.chooseStyleSetting)||1,V=o=>{let t={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};o&&!x.curCheckboxValue.includes("other")&&x.curCheckboxValue.push("other");let l=JSON.parse(JSON.stringify(x.curCheckboxValue));u.emit("scaleChange",l,e.item,{choiceObj:t,isSetObj:C.value})},j=o=>{var t,l;let i=o.options||[],r=e.form[e.item.val_key],s=null==(t=null==o?void 0:o.setting)?void 0:t.defaultValue;"EVALUATE_CHECKBOX_BLOCK"===e.item.type&&(i=(null==(l=o.scoreConfigs)?void 0:l.scoreRules)||[]);let u=[];u=s&&h.isJSON(s)?JSON.parse(s):r,e.inputLock?((e,o,t)=>{var l;if(x.curOptions=y(t),!t.length||!o||!o.length)return;let i,r=[],s=0,u=o.length;for(;s<u;s++){if(i=o[s],"其他"===i){x.othersText=i,x.curCheckboxValue=["other"],!r.includes("other")&&r.push("other");continue}let e=t.findIndex((e=>e.value===i));if(e<0){x.othersText=i,!r.includes("other")&&r.push("other");continue}let u=null==(l=t[e])?void 0:l.key;r.indexOf(u)<0&&r.push(u)}x.curCheckboxValue=r,V()})(0,o.dbValue||u,i):((e,o,t)=>{var l;if(x.curOptions=y(t),!t.length||!o||!o.length)return;if("EVALUATE_CHECKBOX_BLOCK"===e.type)return x.curCheckboxValue=o,void V();let i,r=[],s=0,u=o.length,a=t.some((e=>e.importability||"other"===e.key));for(;s<u;s++){if(i=o[s],"其他"===i){x.othersText=i,x.curCheckboxValue=["other"],!r.includes("other")&&r.push("other");continue}let e=t.findIndex((e=>e.value===i));if(e>0){let o=null==(l=t[e])?void 0:l.key;!r.includes(o)&&r.push(o)}else t.map((e=>{let o=v(e,s,i,!0,a);o&&!r.includes(o)&&r.push(o)}))}x.curCheckboxValue=r,V()})(o,o.dbValue||u,i)};t((()=>e.item),(e=>{e&&Object.keys(e).length&&j(e)}),{immediate:!0});const L=(e,o)=>l("span",{class:"scale-choice-img-wrap"},[l("img",{class:"show-picture",src:e.imageUrl},null),l("div",{class:"scale-preview-wrap"},[l(c,{size:"24",color:"#fff",component:p,onClick:o=>((e,o)=>{e.preventDefault(),e.stopPropagation();let t=x.curOptions.map((e=>e.imageUrl)).filter(Boolean);if(!t.length)return;let l=t.findIndex((e=>e===o));n({images:t,options:{toolbar:!0,initialViewIndex:l<0?0:l}})})(o,e.imageUrl)},null)])]),T=(o,t)=>l("div",{class:"presuffix-wrap",onClick:g},[o.prefix&&l("span",{class:"prefix-span",style:{color:m.value(o)}},[o.prefix]),l(i("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,t)=>{let l={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};x.curCheckboxValue.includes(o.key)||x.curCheckboxValue.push(o.key);let i=JSON.parse(JSON.stringify(x.curCheckboxValue));u.emit("scaleChange",i,e.item,{choiceObj:l,isSetObj:C.value})})(o)},null),o.suffix&&l("span",{class:"suffix-span",style:{color:m.value(o)}},[o.suffix])]),w=e=>l("span",{style:{color:m.value(e)},class:"other-span"},[e.label]),N=o=>l("div",{class:"choose-other",onClick:g},[l(i("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);let I=k.value;return()=>{let o;return l(s,{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,o)=>l(i("n-checkbox"),{key:e.value,value:e[I]},{default:()=>[b.value(e)&&L(e),P(e)&&T(e),!P(e)&&w(e),e.importability&&N(e)]}))))||"[object Object]"===Object.prototype.toString.call(t)&&!r(t)?o:{default:()=>[o]});var t}}});export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,computed as a,createVNode as l,resolveComponent as r,createTextVNode as u}from"vue";import{NTimePicker as n,NDatePicker as i}from"naive-ui";import s from"
|
|
1
|
+
import{defineComponent as e,reactive as t,computed as a,createVNode as l,resolveComponent as r,createTextVNode as u}from"vue";import{NTimePicker as n,NDatePicker as i}from"naive-ui";import"xe-utils";import s from"moment";import d from"../../../../../shared/utils/vexutilsExpand.js";var o=e({name:"RDatetime",components:{NTimePicker:n,NDatePicker:i},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,n){var i,o,m,g,p;const c=null==(i=e.item)?void 0:i.type,f=null==(m=null==(o=e.item)?void 0:o.setting)?void 0:m.startToStop,b="DATE"===c?"date":null==(p=null==(g=e.item)?void 0:g.setting)?void 0:p.dateType,v="HH:mm:ss",D=t({rangeValue:[null,null],dateValue:null}),V=a((()=>"datetime"==b?"datetimerange":"daterange")),N=e=>{let t=D.rangeValue[1];return!!t&&e>Number(new Date(t).getHours())},w=(e,t)=>{if(null===t)return!1;let a=D.rangeValue[1];if(!a)return!1;let l=Number(new Date(a).getHours()),r=Number(new Date(a).getMinutes());return!(t<l)&&e>r},k=(e,t,a)=>{if(null===a||null===t)return!1;let l=D.rangeValue[1];if(!l)return!1;let r=Number(new Date(l).getHours()),u=Number(new Date(l).getMinutes()),n=Number(new Date(l).getSeconds());return!(a<r)&&(!(t<u)&&e>=n)},y=e=>{let t=D.rangeValue[0];return!!t&&e<Number(new Date(t).getHours())},H=(e,t)=>{if(null===t)return!1;let a=D.rangeValue[0];if(!a)return!1;let l=Number(new Date(a).getHours()),r=Number(new Date(a).getMinutes());return!(t>l)&&e<r},S=(e,t,a)=>{if(null===a||null===t)return!1;let l=D.rangeValue[0];if(!l)return!1;let r=Number(new Date(l).getHours()),u=Number(new Date(l).getMinutes()),n=Number(new Date(l).getSeconds());return!(a>r)&&(!(t>u)&&e<=n)},M=(t,a,l)=>{let r="start"===l?1:0,u=D.rangeValue[r];u&&(u=s(u).format(v)),"start"!==l?n.emit("scaleChange",[u||"",a],e.item):n.emit("scaleChange",[a,u||""],e.item)},O=(t,a)=>{n.emit("scaleChange",a,e.item)};return(e=>{if(console.log(e,"time---val---"),d.isJSON(e)&&(e=JSON.parse(e)),!e||d.isEmpty(e))return;let t=JSON.parse(JSON.stringify(e));if("TIME"!==c&&"time"!=b)D.dateValue=e;else{if(1!=f)return void(D.dateValue=e);if(!Array.isArray(t)||!t.length)return;let a=t[0]?s(t[0],v).valueOf():"",l=t[1]?s(t[1],v).valueOf():"",r=a&&d.isValidDate(new Date(a))?a:null,u=l&&d.isValidDate(new Date(l))?l:null;D.rangeValue=[r,u]}})(e.form[e.item.val_key]),()=>"TIME"===c||"time"==b?1==f?l("div",{class:"c-time-range"},[l(r("n-time-picker"),{value:D.rangeValue[0],"onUpdate:value":[e=>D.rangeValue[0]=e,(e,t)=>M(0,t,"start")],clearable:!0,disabled:e.isLock,isHourDisabled:N,isMinuteDisabled:w,isSecondDisabled:k},null),u(" - "),l(r("n-time-picker"),{value:D.rangeValue[1],"onUpdate:value":[e=>D.rangeValue[1]=e,(e,t)=>M(0,t,"end")],clearable:!0,disabled:e.isLock,isHourDisabled:y,isMinuteDisabled:H,isSecondDisabled:S},null)]):l(r("n-time-picker"),{"formatted-value":D.dateValue,"onUpdate:formatted-value":e=>D.dateValue=e,clearable:!0,disabled:e.isLock,"onUpdate:value":O},null):l(r("n-date-picker"),"date"!==b&&"datetime"!==b||1!=f?{"formatted-value":D.dateValue,"onUpdate:formatted-value":e=>D.dateValue=e,type:b,clearable:!0,disabled:e.isLock,"onUpdate:value":O}:{"formatted-value":D.dateValue,"onUpdate:formatted-value":e=>D.dateValue=e,type:V.value,clearable:!0,disabled:e.isLock,"onUpdate:value":O},null)}});export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as o,reactive as e,createVNode as t,resolveComponent as a}from"vue";import{NModal as i,NInput as n,NIcon as p}from"naive-ui";import
|
|
1
|
+
import{defineComponent as o,reactive as e,createVNode as t,resolveComponent as a}from"vue";import{NModal as i,NInput as n,NIcon as p}from"naive-ui";import"xe-utils";import"moment";import s from"../../../../../shared/utils/vexutilsExpand.js";import{AlertCircleOutline as l}from"@vicons/ionicons5";import m from"../../../../map/index.js";var c=o({name:"RMap",components:{NModal:i,NInput:n,NIcon:p,CMap:m},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1},locationProp:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"}},emits:["scaleChange"],setup(o,i){let n=o.form[o.item.val_key];const p=e({mapVisible:!1,mapLocation:""}),c=o=>{if(s.isJSON(o)){const e=JSON.parse(o);return e.address||e.name}return""};p.mapLocation=c(n);const r=e=>{const{locationProp:t,isInit:a}=e;p.mapLocation=c(t),i.emit("scaleChange",t,o.item),p.mapVisible=!1},d=()=>{o.isLock||(p.mapVisible=!0)};return()=>t("div",{class:{"c-map-container":!o.isLock}},[t(a("n-input"),{value:p.mapLocation,disabled:!0,class:"map-input","on-click":d,placeholder:"请选择"},{prefix:()=>t(a("n-icon"),{size:"18",component:l},null)}),t(a("n-modal"),{class:"c-scale-map-modal",show:p.mapVisible,"onUpdate:show":o=>p.mapVisible=o,preset:"card",style:{width:"800px",height:"80vh"}},{default:()=>[t(m,{locationProp:o.locationProp,ak:o.ak,onSelectLocation:r},null)]})])}});export{c as default};
|