cnhis-design-vue 3.3.3-release.0 → 3.3.3-release.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/audio-sdk/index.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue2.js +47 -12
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
- package/es/components/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/big-table/src/components/NoData.vue2.js +8 -1
- package/es/components/big-table/src/hooks/useTableParse.js +8 -1
- package/es/components/button-print/index.d.ts +2 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +11 -5
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +4 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +29 -20
- package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
- package/es/components/classification/index.d.ts +56 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
- package/es/components/classification/src/index.vue.d.ts +56 -6
- package/es/components/expand-field/index.d.ts +792 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue2.js +8 -1
- package/es/components/expand-field/src/index.vue.d.ts +792 -1
- package/es/components/field-editor/index.d.ts +13 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +13 -0
- package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
- package/es/components/field-editor/src/fields.d.ts +1 -0
- package/es/components/field-editor/src/fields.js +6 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +6 -4
- package/es/components/field-set/src/FieldFilter.vue.d.ts +6 -4
- package/es/components/field-set/src/FieldSet.vue.d.ts +39 -5
- package/es/components/field-set/src/FieldSet.vue2.js +118 -69
- package/es/components/field-set/src/Index.vue2.js +8 -3
- package/es/components/field-set/src/TableStyle.vue2.js +2 -2
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/src/types/index.d.ts +1 -0
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +39 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +39 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +13 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +8 -1
- package/es/components/form-render/index.d.ts +13 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +13 -0
- package/es/components/form-render/src/FormRender.vue2.js +4 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -0
- package/es/components/form-render/src/components/renderer/formItem.js +8 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
- package/es/components/form-render/src/utils/business.d.ts +3 -1
- package/es/components/form-render/src/utils/business.js +7 -1
- package/es/components/iho-chat/index.d.ts +21 -1
- package/es/components/iho-chat/src/Index.vue.d.ts +21 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +5 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +52 -13
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +3 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +16 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +112 -53
- package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
- package/es/components/iho-chat/src/hooks/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
- package/es/components/iho-chat/src/hooks/useDraggable.js +160 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +26 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -0
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
- package/es/components/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/scale-view/index.d.ts +67 -17
- package/es/components/scale-view/src/ScaleView.vue.d.ts +70 -19
- package/es/components/scale-view/src/ScaleView.vue2.js +84 -10
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +10 -7
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +28 -4
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +10 -7
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +29 -8
- package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
- package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
- package/es/components/scale-view/src/components/ScaleScore.js +47 -4
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +20 -2
- package/es/components/scale-view/src/components/formitem/r-radio.js +2 -0
- package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
- package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
- package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -5
- package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
- package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +8 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +8 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
- package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
- package/es/components/scale-view/src/hooks/use-noData.js +33 -5
- package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
- package/es/components/scale-view/src/utils/judge-types.js +10 -10
- package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
- package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +792 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +434 -341
- package/es/components/select-person/src/SelectPerson.vue2.js +521 -675
- package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
- package/es/components/select-person/src/SelectPersonRole.vue.js +6 -0
- package/es/components/select-person/src/SelectPersonRole.vue2.js +942 -0
- package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
- package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
- package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
- package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
- package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
- package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
- package/es/components/select-person/src/components/TagItem.vue.js +6 -0
- package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
- package/es/components/select-person/src/index.vue.d.ts +793 -1
- package/es/components/select-person/src/index.vue2.js +21 -4
- package/es/components/select-person/src/types/index.d.ts +35 -0
- package/es/components/select-person/src/types/index.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +3 -0
- package/es/components/select-person/src/utils/index.js +29 -8
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +13 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +54 -6
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +55 -6
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
- package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
- package/es/components/table-filter/src/tool/date.d.ts +3 -0
- package/es/components/table-filter/src/tool/date.js +139 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +11 -8
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +2 -1
- package/es/components/table-filter/src/types/index.d.ts +12 -0
- package/es/components/vod-chunk-upload/index.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AnyObject } from '../../../shared/types';
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
2
3
|
guageData: {
|
3
4
|
type: ObjectConstructor;
|
@@ -119,7 +120,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
120
|
type: ObjectConstructor;
|
120
121
|
default: () => {};
|
121
122
|
};
|
123
|
+
closeConfirm: {
|
124
|
+
type: BooleanConstructor;
|
125
|
+
default: boolean;
|
126
|
+
};
|
127
|
+
closeConfirmText: {
|
128
|
+
type: StringConstructor;
|
129
|
+
default: string;
|
130
|
+
};
|
122
131
|
}, {
|
132
|
+
dialog: import("naive-ui").DialogApi;
|
123
133
|
ScaleViewState: {
|
124
134
|
other: string;
|
125
135
|
form: {};
|
@@ -274,6 +284,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
274
284
|
type: ObjectConstructor;
|
275
285
|
default: () => {};
|
276
286
|
};
|
287
|
+
closeConfirm: {
|
288
|
+
type: BooleanConstructor;
|
289
|
+
default: boolean;
|
290
|
+
};
|
291
|
+
closeConfirmText: {
|
292
|
+
type: StringConstructor;
|
293
|
+
default: string;
|
294
|
+
};
|
277
295
|
}>> & {
|
278
296
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
279
297
|
onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
|
@@ -281,6 +299,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
281
299
|
onStartWriteScale?: ((...args: any[]) => any) | undefined;
|
282
300
|
}>>;
|
283
301
|
state: any;
|
302
|
+
formChecker: {
|
303
|
+
setInitialSnapshot: (formData: Record<string, any>) => void;
|
304
|
+
checkFormChange: (newFormData?: Record<string, any> | null) => boolean;
|
305
|
+
getInitialSnapshot: () => Record<string, any> | null;
|
306
|
+
getFormDiff: (newFormData?: Record<string, any> | null) => Record<string, {
|
307
|
+
old: any;
|
308
|
+
new: any;
|
309
|
+
}> | null;
|
310
|
+
};
|
284
311
|
emit: (event: "onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale", ...args: any[]) => void;
|
285
312
|
scaleViewDom: any;
|
286
313
|
countdownDom: any;
|
@@ -341,8 +368,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
341
368
|
desStart: import("vue").ComputedRef<boolean>;
|
342
369
|
desEnd: import("vue").ComputedRef<boolean>;
|
343
370
|
desContent: import("vue").ComputedRef<any>;
|
344
|
-
initForm: (data:
|
345
|
-
batchInjectForm: (data:
|
371
|
+
initForm: (data: AnyObject) => Promise<void> | undefined;
|
372
|
+
batchInjectForm: (data: AnyObject, skipValid?: boolean) => Promise<boolean>;
|
346
373
|
submitMethod: () => {
|
347
374
|
params: any;
|
348
375
|
hasCallbackItem: any;
|
@@ -350,7 +377,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
350
377
|
};
|
351
378
|
onSubmitData: () => void;
|
352
379
|
onSubmitForm: () => Promise<unknown>;
|
353
|
-
handleScoreJson: () =>
|
380
|
+
handleScoreJson: () => AnyObject;
|
354
381
|
nextLogicEvent: (choiceValue: any, formItem: any, formArray?: any[], isInit?: boolean | undefined) => void;
|
355
382
|
handleDynamicDataRelation: (list: any[], formItem: any, formArray: any[]) => void;
|
356
383
|
scaleChange: (val: any, item: any, config?: any) => void;
|
@@ -362,8 +389,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
362
389
|
handleQuery: () => void;
|
363
390
|
init: (configData: any) => Promise<void>;
|
364
391
|
onSubmitDataDebounce: (this: unknown, ...args: any[]) => any;
|
365
|
-
|
392
|
+
getFormChanged: () => boolean;
|
393
|
+
beforeCloseFn: () => Promise<unknown>;
|
394
|
+
cancel: () => Promise<void>;
|
366
395
|
getScaleData: () => any;
|
396
|
+
batchInjectFormNew: (data: AnyObject, skipValid?: boolean) => Promise<void>;
|
367
397
|
isCollection: (e: string) => boolean;
|
368
398
|
NoData: import("vue").DefineComponent<{
|
369
399
|
noDataTip: {
|
@@ -419,8 +449,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
419
449
|
default: () => never[];
|
420
450
|
};
|
421
451
|
evaluateResultConfig: {
|
422
|
-
type:
|
423
|
-
default: () =>
|
452
|
+
type: ArrayConstructor;
|
453
|
+
default: () => never[];
|
424
454
|
};
|
425
455
|
evaluateResultSetting: {
|
426
456
|
type: ObjectConstructor;
|
@@ -456,6 +486,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
456
486
|
vDrag: {
|
457
487
|
beforeMount(el: any, binding: any): void;
|
458
488
|
};
|
489
|
+
str1: string;
|
490
|
+
str2: string;
|
491
|
+
str3: string;
|
459
492
|
state: {
|
460
493
|
source: string;
|
461
494
|
setAnswered: number;
|
@@ -477,8 +510,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
477
510
|
default: () => never[];
|
478
511
|
};
|
479
512
|
evaluateResultConfig: {
|
480
|
-
type:
|
481
|
-
default: () =>
|
513
|
+
type: ArrayConstructor;
|
514
|
+
default: () => never[];
|
482
515
|
};
|
483
516
|
evaluateResultSetting: {
|
484
517
|
type: ObjectConstructor;
|
@@ -552,8 +585,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
552
585
|
default: () => never[];
|
553
586
|
};
|
554
587
|
evaluateResultConfig: {
|
555
|
-
type:
|
556
|
-
default: () =>
|
588
|
+
type: ArrayConstructor;
|
589
|
+
default: () => never[];
|
557
590
|
};
|
558
591
|
evaluateResultSetting: {
|
559
592
|
type: ObjectConstructor;
|
@@ -590,7 +623,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
590
623
|
}, {
|
591
624
|
isEvaluetaResSituation: boolean;
|
592
625
|
formArray: unknown[];
|
593
|
-
evaluateResultConfig:
|
626
|
+
evaluateResultConfig: unknown[];
|
594
627
|
evaluateResultSetting: Record<string, any>;
|
595
628
|
form: Record<string, any>;
|
596
629
|
currentTime: number;
|
@@ -605,8 +638,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
605
638
|
default: () => never[];
|
606
639
|
};
|
607
640
|
evaluateResultConfig: {
|
608
|
-
type:
|
609
|
-
default: () =>
|
641
|
+
type: ArrayConstructor;
|
642
|
+
default: () => never[];
|
610
643
|
};
|
611
644
|
evaluateResultSetting: {
|
612
645
|
type: ObjectConstructor;
|
@@ -621,6 +654,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
621
654
|
default: number;
|
622
655
|
};
|
623
656
|
}, {
|
657
|
+
str1: string;
|
658
|
+
str2: string;
|
659
|
+
str3: string;
|
624
660
|
state: {
|
625
661
|
source: string;
|
626
662
|
timer: null;
|
@@ -634,8 +670,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
634
670
|
default: () => never[];
|
635
671
|
};
|
636
672
|
evaluateResultConfig: {
|
637
|
-
type:
|
638
|
-
default: () =>
|
673
|
+
type: ArrayConstructor;
|
674
|
+
default: () => never[];
|
639
675
|
};
|
640
676
|
evaluateResultSetting: {
|
641
677
|
type: ObjectConstructor;
|
@@ -683,8 +719,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
683
719
|
default: () => never[];
|
684
720
|
};
|
685
721
|
evaluateResultConfig: {
|
686
|
-
type:
|
687
|
-
default: () =>
|
722
|
+
type: ArrayConstructor;
|
723
|
+
default: () => never[];
|
688
724
|
};
|
689
725
|
evaluateResultSetting: {
|
690
726
|
type: ObjectConstructor;
|
@@ -703,7 +739,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
703
739
|
onWriteGuage?: ((...args: any[]) => any) | undefined;
|
704
740
|
}, {
|
705
741
|
formArray: unknown[];
|
706
|
-
evaluateResultConfig:
|
742
|
+
evaluateResultConfig: unknown[];
|
707
743
|
evaluateResultSetting: Record<string, any>;
|
708
744
|
isFinished: boolean;
|
709
745
|
maxScore: number;
|
@@ -714,6 +750,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
714
750
|
default: () => {};
|
715
751
|
};
|
716
752
|
}, {
|
753
|
+
str1: string;
|
754
|
+
str2: string;
|
755
|
+
str3: string;
|
756
|
+
str4: string;
|
717
757
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
718
758
|
item: {
|
719
759
|
type: ObjectConstructor;
|
@@ -727,6 +767,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
727
767
|
scoreText: import("vue").ComputedRef<"" | "部分">;
|
728
768
|
correctAnswer: import("vue").ComputedRef<any>;
|
729
769
|
answerKeyText: import("vue").ComputedRef<any>;
|
770
|
+
answerStr: import("vue").ComputedRef<string>;
|
730
771
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
731
772
|
item: {
|
732
773
|
type: ObjectConstructor;
|
@@ -754,8 +795,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
754
795
|
default: number;
|
755
796
|
};
|
756
797
|
}>> & {}, {
|
757
|
-
maxScore: number;
|
758
798
|
config: Record<string, any>;
|
799
|
+
maxScore: number;
|
759
800
|
}>;
|
760
801
|
DescribeContent: import("vue").DefineComponent<{
|
761
802
|
content: {
|
@@ -901,6 +942,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
901
942
|
type: ObjectConstructor;
|
902
943
|
default: () => {};
|
903
944
|
};
|
945
|
+
closeConfirm: {
|
946
|
+
type: BooleanConstructor;
|
947
|
+
default: boolean;
|
948
|
+
};
|
949
|
+
closeConfirmText: {
|
950
|
+
type: StringConstructor;
|
951
|
+
default: string;
|
952
|
+
};
|
904
953
|
}>> & {
|
905
954
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
906
955
|
onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
|
@@ -934,5 +983,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
934
983
|
isGeneratePrintPdf: boolean;
|
935
984
|
combinationParmas: Record<string, any>;
|
936
985
|
allQuery: Record<string, any>;
|
986
|
+
closeConfirm: boolean;
|
987
|
+
closeConfirmText: string;
|
937
988
|
}>;
|
938
989
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, reactive, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, Fragment, createBlock, mergeProps, createCommentVNode, createElementVNode,
|
1
|
+
import { defineComponent, reactive, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, Fragment, createBlock, mergeProps, createCommentVNode, createElementVNode, createVNode, withCtx, renderList, toDisplayString, createTextVNode, resolveDynamicComponent, renderSlot } from 'vue';
|
2
2
|
import useNoData from './hooks/use-noData.js';
|
3
3
|
import { ScaleViewProps } from './hooks/scaleview-props.js';
|
4
4
|
import { getScaleViewState } from './hooks/scaleview-state.js';
|
@@ -17,7 +17,8 @@ import EvaluatePage from './components/EvaluatePage.vue.js';
|
|
17
17
|
import AnswerParse from './components/AnswerParse.vue.js';
|
18
18
|
import ScaleScore from './components/ScaleScore.js';
|
19
19
|
import DescribeContent from './components/DescribeContent.vue.js';
|
20
|
-
import { NForm, NFormItem, NButton } from 'naive-ui';
|
20
|
+
import { useDialog, NForm, NFormItem, NButton } from 'naive-ui';
|
21
|
+
import { useFormChangeWatcher } from './utils/watch-form-change.js';
|
21
22
|
|
22
23
|
const _hoisted_1 = ["innerHTML"];
|
23
24
|
const _hoisted_2 = {
|
@@ -50,10 +51,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
50
51
|
emit
|
51
52
|
}) {
|
52
53
|
const props = __props;
|
54
|
+
const dialog = useDialog();
|
53
55
|
const {
|
54
56
|
ScaleViewState
|
55
57
|
} = getScaleViewState();
|
56
58
|
const state = reactive(ScaleViewState);
|
59
|
+
const formChecker = useFormChangeWatcher();
|
57
60
|
const scaleViewDom = ref(null);
|
58
61
|
const countdownDom = ref(null);
|
59
62
|
const formRef = ref(null);
|
@@ -134,6 +137,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
137
|
id && (state.shareId = id);
|
135
138
|
};
|
136
139
|
const init = async (configData) => {
|
140
|
+
window._beforeCloseFn = null;
|
137
141
|
handleQuery();
|
138
142
|
try {
|
139
143
|
resetNodata();
|
@@ -144,6 +148,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
144
148
|
state.hasFrontAddress = false;
|
145
149
|
setNoData(true, error == null ? void 0 : error.resultMsg, error == null ? void 0 : error.result);
|
146
150
|
}
|
151
|
+
if (!props.closeConfirm)
|
152
|
+
return;
|
153
|
+
formChecker.setInitialSnapshot(state.form);
|
154
|
+
window._beforeCloseFn = beforeCloseFn;
|
147
155
|
};
|
148
156
|
watch(() => props.ids, (newVal, oldVal) => {
|
149
157
|
if (oldVal) {
|
@@ -172,7 +180,58 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
172
180
|
immediate: true
|
173
181
|
});
|
174
182
|
const onSubmitDataDebounce = vexutilsExpand.debounce(onSubmitData, 300);
|
175
|
-
const
|
183
|
+
const getFormChanged = () => {
|
184
|
+
return formChecker.checkFormChange(state.form);
|
185
|
+
};
|
186
|
+
const beforeCloseFn = () => {
|
187
|
+
const isChange = getFormChanged();
|
188
|
+
if (!isChange)
|
189
|
+
return Promise.resolve(true);
|
190
|
+
const tips = props.closeConfirmText || "\u786E\u8BA4\u8981\u5173\u95ED\u5F53\u524D\u9875\u9762\u5417\uFF1F";
|
191
|
+
return new Promise((resolve) => {
|
192
|
+
dialog.warning({
|
193
|
+
title: function() {
|
194
|
+
var _a, _b, _c;
|
195
|
+
try {
|
196
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.589")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.589")) || "\u63D0\u793A";
|
197
|
+
} catch (e) {
|
198
|
+
return "\u63D0\u793A";
|
199
|
+
}
|
200
|
+
}(),
|
201
|
+
content: tips,
|
202
|
+
positiveText: function() {
|
203
|
+
var _a, _b, _c;
|
204
|
+
try {
|
205
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
|
206
|
+
} catch (e) {
|
207
|
+
return "\u786E\u5B9A";
|
208
|
+
}
|
209
|
+
}(),
|
210
|
+
negativeText: function() {
|
211
|
+
var _a, _b, _c;
|
212
|
+
try {
|
213
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
|
214
|
+
} catch (e) {
|
215
|
+
return "\u53D6\u6D88";
|
216
|
+
}
|
217
|
+
}(),
|
218
|
+
onPositiveClick: () => {
|
219
|
+
resolve(true);
|
220
|
+
},
|
221
|
+
onNegativeClick: () => {
|
222
|
+
resolve(false);
|
223
|
+
}
|
224
|
+
});
|
225
|
+
});
|
226
|
+
};
|
227
|
+
const cancel = async () => {
|
228
|
+
if (!props.closeConfirm) {
|
229
|
+
emit("onCloseSetting");
|
230
|
+
return;
|
231
|
+
}
|
232
|
+
const closeStatus = await beforeCloseFn();
|
233
|
+
if (!closeStatus)
|
234
|
+
return;
|
176
235
|
emit("onCloseSetting");
|
177
236
|
};
|
178
237
|
const getScaleData = () => {
|
@@ -180,11 +239,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
180
239
|
...state
|
181
240
|
};
|
182
241
|
};
|
242
|
+
const batchInjectFormNew = async (data, skipValid = false) => {
|
243
|
+
window._beforeCloseFn = null;
|
244
|
+
await batchInjectForm(data, skipValid);
|
245
|
+
if (!skipValid || !props.closeConfirm)
|
246
|
+
return;
|
247
|
+
formChecker.setInitialSnapshot(state.form);
|
248
|
+
window._beforeCloseFn = beforeCloseFn;
|
249
|
+
};
|
183
250
|
expose({
|
184
251
|
getScaleData,
|
185
252
|
onSubmitForm,
|
186
253
|
cancel,
|
187
|
-
batchInjectForm
|
254
|
+
batchInjectForm: batchInjectFormNew,
|
255
|
+
getFormChanged
|
188
256
|
});
|
189
257
|
return (_ctx, _cache) => {
|
190
258
|
return openBlock(), createElementBlock("div", {
|
@@ -217,8 +285,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
217
285
|
class: normalizeClass(["scale-container", {
|
218
286
|
"scale-container-nopadding": unref(handlePageClass),
|
219
287
|
"scale-container-hasfooter": unref(showScaleFooter)
|
220
|
-
}])
|
221
|
-
style: normalizeStyle(unref(scaleStyle))
|
288
|
+
}])
|
222
289
|
}, [unref(hasScore) ? (openBlock(), createBlock(unref(ScaleScore), {
|
223
290
|
key: 0,
|
224
291
|
config: state.config,
|
@@ -241,7 +308,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
241
308
|
key: 0,
|
242
309
|
path: item.val_key,
|
243
310
|
"show-label": !unref(isCollection)(item.type),
|
244
|
-
class: "c-scle-form-item"
|
311
|
+
class: normalizeClass(["c-scle-form-item", ["c-scale-form-item-" + item.type]])
|
245
312
|
}, {
|
246
313
|
label: withCtx(() => [createElementVNode("span", {
|
247
314
|
class: normalizeClass({
|
@@ -252,7 +319,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
252
319
|
key: 2,
|
253
320
|
class: "evalute-tip",
|
254
321
|
onClick: ($event) => unref(showEvaTipModal)(item)
|
255
|
-
}, [_hoisted_5, createTextVNode(
|
322
|
+
}, [_hoisted_5, createTextVNode(function() {
|
323
|
+
var _a, _b, _c;
|
324
|
+
try {
|
325
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.578")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.578")) || "\u67E5\u770B\u63D0\u793A";
|
326
|
+
} catch (e) {
|
327
|
+
return "\u67E5\u770B\u63D0\u793A";
|
328
|
+
}
|
329
|
+
}())], 8, _hoisted_4)) : createCommentVNode("v-if", true)]),
|
256
330
|
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(item.renderCom), mergeProps(unref(propsConfig)(item, index), {
|
257
331
|
key: (item.id || item.seq) + index + (item.randomKey || 0),
|
258
332
|
onScaleChange: unref(scaleChange),
|
@@ -263,13 +337,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
263
337
|
item
|
264
338
|
}, null, 8, ["item"])) : createCommentVNode("v-if", true)]),
|
265
339
|
_: 2
|
266
|
-
}, 1032, ["path", "show-label"])) : createCommentVNode("v-if", true)], 64);
|
340
|
+
}, 1032, ["path", "show-label", "class"])) : createCommentVNode("v-if", true)], 64);
|
267
341
|
}), 128))]),
|
268
342
|
_: 1
|
269
343
|
}, 8, ["model", "rules"]), unref(desEnd) ? (openBlock(), createBlock(DescribeContent, {
|
270
344
|
key: 2,
|
271
345
|
content: unref(desContent)
|
272
|
-
}, null, 8, ["content"])) : createCommentVNode("v-if", true)],
|
346
|
+
}, null, 8, ["content"])) : createCommentVNode("v-if", true)], 2), unref(showScaleFooter) ? (openBlock(), createElementBlock("div", _hoisted_6, [createCommentVNode(" \u5206\u4EAB\u7684\u94FE\u63A5 \u9690\u85CF\u53D6\u6D88\u6309\u94AE "), unref(isCancelBtn) ? (openBlock(), createBlock(unref(NButton), {
|
273
347
|
key: 0,
|
274
348
|
onClick: cancel
|
275
349
|
}, {
|
@@ -4,6 +4,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
default: () => {};
|
5
5
|
};
|
6
6
|
}, {
|
7
|
+
str1: string;
|
8
|
+
str2: string;
|
9
|
+
str3: string;
|
10
|
+
str4: string;
|
7
11
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
8
12
|
item: {
|
9
13
|
type: ObjectConstructor;
|
@@ -17,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
21
|
scoreText: import("vue").ComputedRef<"" | "部分">;
|
18
22
|
correctAnswer: import("vue").ComputedRef<any>;
|
19
23
|
answerKeyText: import("vue").ComputedRef<any>;
|
24
|
+
answerStr: import("vue").ComputedRef<string>;
|
20
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
21
26
|
item: {
|
22
27
|
type: ObjectConstructor;
|
@@ -13,11 +13,9 @@ const _hoisted_4 = {
|
|
13
13
|
key: 0,
|
14
14
|
class: "correct-answer"
|
15
15
|
};
|
16
|
-
const _hoisted_5 =
|
17
|
-
const _hoisted_6 = {
|
16
|
+
const _hoisted_5 = {
|
18
17
|
class: "answer-key"
|
19
18
|
};
|
20
|
-
const _hoisted_7 = /* @__PURE__ */ createElementVNode("p", null, "\u7B54\u6848\u89E3\u6790\uFF1A", -1);
|
21
19
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
22
20
|
__name: "AnswerParse",
|
23
21
|
props: {
|
@@ -28,6 +26,38 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
26
|
},
|
29
27
|
setup(__props) {
|
30
28
|
const props = __props;
|
29
|
+
const str1 = function() {
|
30
|
+
var _a, _b, _c;
|
31
|
+
try {
|
32
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.615")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.615")) || "\u5F97\u5206\uFF1A";
|
33
|
+
} catch (e) {
|
34
|
+
return "\u5F97\u5206\uFF1A";
|
35
|
+
}
|
36
|
+
}();
|
37
|
+
const str2 = function() {
|
38
|
+
var _a, _b, _c;
|
39
|
+
try {
|
40
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.611")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.611")) || "\u5206";
|
41
|
+
} catch (e) {
|
42
|
+
return "\u5206";
|
43
|
+
}
|
44
|
+
}();
|
45
|
+
const str3 = function() {
|
46
|
+
var _a, _b, _c;
|
47
|
+
try {
|
48
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.614")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.614")) || "\u6B63\u786E\u7B54\u6848\uFF1A";
|
49
|
+
} catch (e) {
|
50
|
+
return "\u6B63\u786E\u7B54\u6848\uFF1A";
|
51
|
+
}
|
52
|
+
}();
|
53
|
+
const str4 = function() {
|
54
|
+
var _a, _b, _c;
|
55
|
+
try {
|
56
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.613")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.613")) || "\u7B54\u6848\u89E3\u6790\uFF1A";
|
57
|
+
} catch (e) {
|
58
|
+
return "\u7B54\u6848\u89E3\u6790\uFF1A";
|
59
|
+
}
|
60
|
+
}();
|
31
61
|
const questionScore = computed(() => {
|
32
62
|
var _a;
|
33
63
|
return ((_a = props.item) == null ? void 0 : _a.questionScore) || 0;
|
@@ -42,14 +72,42 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
72
|
const answerResText = computed(() => {
|
43
73
|
var _a;
|
44
74
|
if ((_a = props.item) == null ? void 0 : _a.questionPartScore) {
|
45
|
-
return
|
75
|
+
return function() {
|
76
|
+
var _a2, _b, _c;
|
77
|
+
try {
|
78
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.610")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.610")) || "\u90E8\u5206\u6B63\u786E";
|
79
|
+
} catch (e) {
|
80
|
+
return "\u90E8\u5206\u6B63\u786E";
|
81
|
+
}
|
82
|
+
}();
|
46
83
|
}
|
47
|
-
return answerSuccess.value ?
|
84
|
+
return answerSuccess.value ? function() {
|
85
|
+
var _a2, _b, _c;
|
86
|
+
try {
|
87
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.609")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.609")) || "\u56DE\u7B54\u6B63\u786E";
|
88
|
+
} catch (e) {
|
89
|
+
return "\u56DE\u7B54\u6B63\u786E";
|
90
|
+
}
|
91
|
+
}() : function() {
|
92
|
+
var _a2, _b, _c;
|
93
|
+
try {
|
94
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.608")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.608")) || "\u56DE\u7B54\u9519\u8BEF";
|
95
|
+
} catch (e) {
|
96
|
+
return "\u56DE\u7B54\u9519\u8BEF";
|
97
|
+
}
|
98
|
+
}();
|
48
99
|
});
|
49
100
|
const scoreText = computed(() => {
|
50
101
|
var _a;
|
51
102
|
if ((_a = props.item) == null ? void 0 : _a.questionPartScore) {
|
52
|
-
return
|
103
|
+
return function() {
|
104
|
+
var _a2, _b, _c;
|
105
|
+
try {
|
106
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.607")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.607")) || "\u90E8\u5206";
|
107
|
+
} catch (e) {
|
108
|
+
return "\u90E8\u5206";
|
109
|
+
}
|
110
|
+
}();
|
53
111
|
}
|
54
112
|
return "";
|
55
113
|
});
|
@@ -65,8 +123,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
65
123
|
let {
|
66
124
|
answerKey
|
67
125
|
} = ((_a = props.item) == null ? void 0 : _a.scoreConfigs) || {};
|
68
|
-
return answerKey ||
|
126
|
+
return answerKey || function() {
|
127
|
+
var _a2, _b, _c;
|
128
|
+
try {
|
129
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.606")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.606")) || "\u65E0";
|
130
|
+
} catch (e) {
|
131
|
+
return "\u65E0";
|
132
|
+
}
|
133
|
+
}();
|
69
134
|
});
|
135
|
+
const answerStr = computed(() => `${scoreText.value}${str1}${questionScore.value}${str2}`);
|
70
136
|
return (_ctx, _cache) => {
|
71
137
|
return openBlock(), createElementBlock("div", {
|
72
138
|
class: normalizeClass(["c-answerParse", {
|
@@ -74,7 +140,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
74
140
|
}])
|
75
141
|
}, [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("i", {
|
76
142
|
class: normalizeClass(["scale-view-iconfont", unref(answerIcon)])
|
77
|
-
}, null, 2), createTextVNode(" " + toDisplayString(unref(answerResText)), 1)]), unref(answerSuccess) ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(
|
143
|
+
}, null, 2), createTextVNode(" " + toDisplayString(unref(answerResText)), 1)]), unref(answerSuccess) ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(answerStr)), 1)) : createCommentVNode("v-if", true)]), unref(correctAnswer) ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("p", null, toDisplayString(str3)), createElementVNode("span", null, toDisplayString(unref(correctAnswer)), 1)])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_5, [createElementVNode("p", null, toDisplayString(str4)), createElementVNode("span", null, toDisplayString(unref(answerKeyText)), 1)])], 2);
|
78
144
|
};
|
79
145
|
}
|
80
146
|
});
|
@@ -4,8 +4,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
default: () => never[];
|
5
5
|
};
|
6
6
|
evaluateResultConfig: {
|
7
|
-
type:
|
8
|
-
default: () =>
|
7
|
+
type: ArrayConstructor;
|
8
|
+
default: () => never[];
|
9
9
|
};
|
10
10
|
evaluateResultSetting: {
|
11
11
|
type: ObjectConstructor;
|
@@ -41,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
vDrag: {
|
42
42
|
beforeMount(el: any, binding: any): void;
|
43
43
|
};
|
44
|
+
str1: string;
|
45
|
+
str2: string;
|
46
|
+
str3: string;
|
44
47
|
state: {
|
45
48
|
source: string;
|
46
49
|
setAnswered: number;
|
@@ -62,8 +65,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
65
|
default: () => never[];
|
63
66
|
};
|
64
67
|
evaluateResultConfig: {
|
65
|
-
type:
|
66
|
-
default: () =>
|
68
|
+
type: ArrayConstructor;
|
69
|
+
default: () => never[];
|
67
70
|
};
|
68
71
|
evaluateResultSetting: {
|
69
72
|
type: ObjectConstructor;
|
@@ -137,8 +140,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
137
140
|
default: () => never[];
|
138
141
|
};
|
139
142
|
evaluateResultConfig: {
|
140
|
-
type:
|
141
|
-
default: () =>
|
143
|
+
type: ArrayConstructor;
|
144
|
+
default: () => never[];
|
142
145
|
};
|
143
146
|
evaluateResultSetting: {
|
144
147
|
type: ObjectConstructor;
|
@@ -175,7 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
175
178
|
}, {
|
176
179
|
isEvaluetaResSituation: boolean;
|
177
180
|
formArray: unknown[];
|
178
|
-
evaluateResultConfig:
|
181
|
+
evaluateResultConfig: unknown[];
|
179
182
|
evaluateResultSetting: Record<string, any>;
|
180
183
|
form: Record<string, any>;
|
181
184
|
currentTime: number;
|
@@ -42,8 +42,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
42
|
default: () => []
|
43
43
|
},
|
44
44
|
evaluateResultConfig: {
|
45
|
-
type:
|
46
|
-
default: () =>
|
45
|
+
type: Array,
|
46
|
+
default: () => []
|
47
47
|
},
|
48
48
|
evaluateResultSetting: {
|
49
49
|
type: Object,
|
@@ -83,6 +83,30 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
83
83
|
}) {
|
84
84
|
const props = __props;
|
85
85
|
const vDrag = drag;
|
86
|
+
const str1 = function() {
|
87
|
+
var _a, _b, _c;
|
88
|
+
try {
|
89
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.618")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.618")) || "\u4F5C\u7B54\u6570\u91CF\uFF1A";
|
90
|
+
} catch (e) {
|
91
|
+
return "\u4F5C\u7B54\u6570\u91CF\uFF1A";
|
92
|
+
}
|
93
|
+
}();
|
94
|
+
const str2 = function() {
|
95
|
+
var _a, _b, _c;
|
96
|
+
try {
|
97
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.617")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.617")) || "\u4F5C\u7B54\u5206\u6570\uFF1A";
|
98
|
+
} catch (e) {
|
99
|
+
return "\u4F5C\u7B54\u5206\u6570\uFF1A";
|
100
|
+
}
|
101
|
+
}();
|
102
|
+
const str3 = function() {
|
103
|
+
var _a, _b, _c;
|
104
|
+
try {
|
105
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.616")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.616")) || "\u4F5C\u7B54\u7ED3\u679C\uFF1A";
|
106
|
+
} catch (e) {
|
107
|
+
return "\u4F5C\u7B54\u7ED3\u679C\uFF1A";
|
108
|
+
}
|
109
|
+
}();
|
86
110
|
const state = reactive({
|
87
111
|
source: "countdown",
|
88
112
|
setAnswered: 0,
|
@@ -281,9 +305,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
281
305
|
class: normalizeClass(["countdown", {
|
282
306
|
"countdown-red": unref(evaluateState).countdownRed
|
283
307
|
}])
|
284
|
-
}, [createElementVNode("span", null, toDisplayString(unref(evaluateState).countdownStr), 1), _hoisted_2], 2)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createTextVNode("
|
308
|
+
}, [createElementVNode("span", null, toDisplayString(unref(evaluateState).countdownStr), 1), _hoisted_2], 2)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createTextVNode(toDisplayString(str1) + " "), createElementVNode("span", _hoisted_5, toDisplayString(state.setAnswered), 1), createTextVNode(" / "), createElementVNode("span", _hoisted_6, toDisplayString(unref(curShowTotalLen)), 1)]), unref(showResSituationDetail) ? (openBlock(), createElementBlock(Fragment, {
|
285
309
|
key: 0
|
286
|
-
}, [createElementVNode("div", null, [createTextVNode("
|
310
|
+
}, [createElementVNode("div", null, [createTextVNode(toDisplayString(str2) + " "), createElementVNode("span", _hoisted_7, toDisplayString(state.answeredScore), 1), createTextVNode(" / "), createElementVNode("span", _hoisted_8, toDisplayString(state.totalScore), 1)]), state.answeredRes ? (openBlock(), createElementBlock("div", _hoisted_9, [createTextVNode(toDisplayString(str3) + " "), createElementVNode("span", {
|
287
311
|
style: normalizeStyle({
|
288
312
|
color: state.answeredColor
|
289
313
|
})
|