cnhis-design-vue 3.1.42-beta.51 → 3.1.42-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/button-print/index.d.ts +28 -3
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +20 -4
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/form-config/index.d.ts +10 -5
- package/es/components/form-config/src/FormConfig.vue.d.ts +10 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +6 -3
- package/es/components/form-render/src/components/renderer/date.d.ts +4 -0
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -4
- package/es/components/iho-table/src/constants/index.d.ts +1 -0
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.d.ts +4 -3
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/scale-view/index.d.ts +9 -130
- package/es/components/scale-view/src/ScaleView.vue.d.ts +8 -130
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +1 -43
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -42
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-sign.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/standard-modal.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +5 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/types/index.d.ts +7 -0
- package/es/components/scale-view/src/types/index.js +1 -0
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/scale-view/style/scale-view-iconfont.ttf +0 -0
- package/es/components/shortcut-setter/index.d.ts +2 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 16px;transition:height .2s linear}@font-face{font-family:info-header-iconfont;src:url(info-header-font.ttf) format("truetype")}.c-info-header .info-header--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:info-header-iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px);transition:height .2s linear}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .info-header--iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s ease-in-out}.c-info-header.is-compact [compact-hidden]{
|
|
1
|
+
.c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;height:calc((var(--row-height)*var(--row-num) + var(--padding-tb)*2)*1px);justify-content:space-between;padding:calc(var(--padding-tb)*1px) 16px;transition:height .2s linear,padding .2s linear}@font-face{font-family:info-header-iconfont;src:url(info-header-font.ttf) format("truetype")}.c-info-header .info-header--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:info-header-iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{align-items:center;display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader,.c-info-header__patientHeaderWrapper{align-items:center;display:flex;gap:6px}.c-info-header__patientHeaderWrapper{border-bottom:1px solid transparent}.c-info-header__patientHeaderWrapper.in-edit{border-bottom:1px solid rgba(0,0,0,.6)}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{border-radius:2px;height:20px}.c-info-header__patientHeader .n-tag .n-tag__content{font-size:12px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num))*1px);max-height:calc((var(--row-height)*var(--row-num))*1px);transition:height .2s linear,max-height .2s linear}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);overflow-y:hidden;padding:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{color:rgba(0,0,0,.6);display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{align-items:center;cursor:pointer;display:inline-flex}.c-info-header__setting .info-header--iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s linear}.c-info-header [compact-hidden]{max-height:160px;transition:max-height .2s ease-in-out,opacity .2s linear}.c-info-header.is-compact [compact-hidden]{max-height:0!important;opacity:0!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}.c-info-header__formRender .n-form-item-blank>.n-input .n-input-wrapper{border-bottom:1px solid var(--n-text-color)}.c-info-header__formRender .n-base-selection,.c-info-header__formRender .n-base-selection-label,.c-info-header__formRender .n-date-picker,.c-info-header__formRender .n-input,.c-info-header__formRender .n-input-wrapper{max-height:18px;min-height:18px;vertical-align:top}.c-info-header__formRender .n-base-selection input,.c-info-header__formRender .n-base-selection-label input,.c-info-header__formRender .n-date-picker input,.c-info-header__formRender .n-input input,.c-info-header__formRender .n-input-wrapper input{max-height:18px;min-height:18px}.c-info-header__formRender .n-select{line-height:1}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
|
+
export * from './src/types';
|
|
2
3
|
declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
4
|
guageData: {
|
|
4
5
|
type: ObjectConstructor;
|
|
@@ -275,7 +276,11 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
275
276
|
skipCover: import("vue").ComputedRef<any>;
|
|
276
277
|
scaleEdit: import("vue").ComputedRef<boolean>;
|
|
277
278
|
initForm: (data: any) => void;
|
|
278
|
-
submitMethod: () =>
|
|
279
|
+
submitMethod: () => {
|
|
280
|
+
params: any;
|
|
281
|
+
hasCallbackItem: any;
|
|
282
|
+
isCallback: boolean;
|
|
283
|
+
};
|
|
279
284
|
nextLogicEvent: (choiceValue: any, formItem: any, formArray?: any[], isInit?: boolean | undefined) => void;
|
|
280
285
|
handleDynamicDataRelation: (list: any[], formItem: any, formArray: any[]) => void;
|
|
281
286
|
handleQuery: () => void;
|
|
@@ -291,9 +296,9 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
291
296
|
labelStr: string;
|
|
292
297
|
labels: any[];
|
|
293
298
|
};
|
|
294
|
-
|
|
299
|
+
onSubmitData: () => void;
|
|
295
300
|
confirmSubmit: (message: any) => void;
|
|
296
|
-
onSubmitForm: () =>
|
|
301
|
+
onSubmitForm: () => Promise<unknown>;
|
|
297
302
|
cancel: () => void;
|
|
298
303
|
getScaleData: () => any;
|
|
299
304
|
isCollection: (e: string) => boolean;
|
|
@@ -345,48 +350,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
345
350
|
noDataImg: string;
|
|
346
351
|
showImg: boolean;
|
|
347
352
|
}>;
|
|
348
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
349
|
-
iconClass: {
|
|
350
|
-
type: StringConstructor;
|
|
351
|
-
required: true;
|
|
352
|
-
default: string;
|
|
353
|
-
};
|
|
354
|
-
title: {
|
|
355
|
-
type: StringConstructor;
|
|
356
|
-
required: false;
|
|
357
|
-
default: string;
|
|
358
|
-
};
|
|
359
|
-
className: {
|
|
360
|
-
type: StringConstructor;
|
|
361
|
-
required: false;
|
|
362
|
-
};
|
|
363
|
-
}, {
|
|
364
|
-
props: {
|
|
365
|
-
iconClass: string;
|
|
366
|
-
title: string;
|
|
367
|
-
className?: string | undefined;
|
|
368
|
-
};
|
|
369
|
-
iconName: import("vue").ComputedRef<string>;
|
|
370
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
371
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
372
|
-
iconClass: {
|
|
373
|
-
type: StringConstructor;
|
|
374
|
-
required: true;
|
|
375
|
-
default: string;
|
|
376
|
-
};
|
|
377
|
-
title: {
|
|
378
|
-
type: StringConstructor;
|
|
379
|
-
required: false;
|
|
380
|
-
default: string;
|
|
381
|
-
};
|
|
382
|
-
className: {
|
|
383
|
-
type: StringConstructor;
|
|
384
|
-
required: false;
|
|
385
|
-
};
|
|
386
|
-
}>>, {
|
|
387
|
-
title: string;
|
|
388
|
-
iconClass: string;
|
|
389
|
-
}>;
|
|
390
353
|
EvaluateCountdown: import("vue").DefineComponent<{
|
|
391
354
|
formArray: {
|
|
392
355
|
type: ArrayConstructor;
|
|
@@ -464,48 +427,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
464
427
|
setAnswered: number;
|
|
465
428
|
totalLen: number;
|
|
466
429
|
};
|
|
467
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
468
|
-
iconClass: {
|
|
469
|
-
type: StringConstructor;
|
|
470
|
-
required: true;
|
|
471
|
-
default: string;
|
|
472
|
-
};
|
|
473
|
-
title: {
|
|
474
|
-
type: StringConstructor;
|
|
475
|
-
required: false;
|
|
476
|
-
default: string;
|
|
477
|
-
};
|
|
478
|
-
className: {
|
|
479
|
-
type: StringConstructor;
|
|
480
|
-
required: false;
|
|
481
|
-
};
|
|
482
|
-
}, {
|
|
483
|
-
props: {
|
|
484
|
-
iconClass: string;
|
|
485
|
-
title: string;
|
|
486
|
-
className?: string | undefined;
|
|
487
|
-
};
|
|
488
|
-
iconName: import("vue").ComputedRef<string>;
|
|
489
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
490
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
491
|
-
iconClass: {
|
|
492
|
-
type: StringConstructor;
|
|
493
|
-
required: true;
|
|
494
|
-
default: string;
|
|
495
|
-
};
|
|
496
|
-
title: {
|
|
497
|
-
type: StringConstructor;
|
|
498
|
-
required: false;
|
|
499
|
-
default: string;
|
|
500
|
-
};
|
|
501
|
-
className: {
|
|
502
|
-
type: StringConstructor;
|
|
503
|
-
required: false;
|
|
504
|
-
};
|
|
505
|
-
}>>, {
|
|
506
|
-
title: string;
|
|
507
|
-
iconClass: string;
|
|
508
|
-
}>;
|
|
509
430
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeEvaluateCountdown"[], "closeEvaluateCountdown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
510
431
|
formArray: {
|
|
511
432
|
type: ArrayConstructor;
|
|
@@ -663,53 +584,11 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
663
584
|
}>> & {}>>;
|
|
664
585
|
questionScore: import("vue").ComputedRef<any>;
|
|
665
586
|
answerSuccess: import("vue").ComputedRef<boolean>;
|
|
666
|
-
answerIcon: import("vue").ComputedRef<"
|
|
587
|
+
answerIcon: import("vue").ComputedRef<"icon-scale-view-dui" | "icon-scale-view-cuo">;
|
|
667
588
|
answerResText: import("vue").ComputedRef<"部分正确" | "回答正确" | "回答错误">;
|
|
668
589
|
scoreText: import("vue").ComputedRef<"部分" | "本题">;
|
|
669
590
|
correctAnswer: import("vue").ComputedRef<any>;
|
|
670
591
|
answerKeyText: import("vue").ComputedRef<any>;
|
|
671
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
672
|
-
iconClass: {
|
|
673
|
-
type: StringConstructor;
|
|
674
|
-
required: true;
|
|
675
|
-
default: string;
|
|
676
|
-
};
|
|
677
|
-
title: {
|
|
678
|
-
type: StringConstructor;
|
|
679
|
-
required: false;
|
|
680
|
-
default: string;
|
|
681
|
-
};
|
|
682
|
-
className: {
|
|
683
|
-
type: StringConstructor;
|
|
684
|
-
required: false;
|
|
685
|
-
};
|
|
686
|
-
}, {
|
|
687
|
-
props: {
|
|
688
|
-
iconClass: string;
|
|
689
|
-
title: string;
|
|
690
|
-
className?: string | undefined;
|
|
691
|
-
};
|
|
692
|
-
iconName: import("vue").ComputedRef<string>;
|
|
693
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
694
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
695
|
-
iconClass: {
|
|
696
|
-
type: StringConstructor;
|
|
697
|
-
required: true;
|
|
698
|
-
default: string;
|
|
699
|
-
};
|
|
700
|
-
title: {
|
|
701
|
-
type: StringConstructor;
|
|
702
|
-
required: false;
|
|
703
|
-
default: string;
|
|
704
|
-
};
|
|
705
|
-
className: {
|
|
706
|
-
type: StringConstructor;
|
|
707
|
-
required: false;
|
|
708
|
-
};
|
|
709
|
-
}>>, {
|
|
710
|
-
title: string;
|
|
711
|
-
iconClass: string;
|
|
712
|
-
}>;
|
|
713
592
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
714
593
|
item: {
|
|
715
594
|
type: ObjectConstructor;
|
|
@@ -274,7 +274,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
274
274
|
skipCover: import("vue").ComputedRef<any>;
|
|
275
275
|
scaleEdit: import("vue").ComputedRef<boolean>;
|
|
276
276
|
initForm: (data: any) => void;
|
|
277
|
-
submitMethod: () =>
|
|
277
|
+
submitMethod: () => {
|
|
278
|
+
params: any;
|
|
279
|
+
hasCallbackItem: any;
|
|
280
|
+
isCallback: boolean;
|
|
281
|
+
};
|
|
278
282
|
nextLogicEvent: (choiceValue: any, formItem: any, formArray?: any[], isInit?: boolean | undefined) => void;
|
|
279
283
|
handleDynamicDataRelation: (list: any[], formItem: any, formArray: any[]) => void;
|
|
280
284
|
handleQuery: () => void;
|
|
@@ -290,9 +294,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
290
294
|
labelStr: string;
|
|
291
295
|
labels: any[];
|
|
292
296
|
};
|
|
293
|
-
|
|
297
|
+
onSubmitData: () => void;
|
|
294
298
|
confirmSubmit: (message: any) => void;
|
|
295
|
-
onSubmitForm: () =>
|
|
299
|
+
onSubmitForm: () => Promise<unknown>;
|
|
296
300
|
cancel: () => void;
|
|
297
301
|
getScaleData: () => any;
|
|
298
302
|
isCollection: (e: string) => boolean;
|
|
@@ -344,48 +348,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
344
348
|
noDataImg: string;
|
|
345
349
|
showImg: boolean;
|
|
346
350
|
}>;
|
|
347
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
348
|
-
iconClass: {
|
|
349
|
-
type: StringConstructor;
|
|
350
|
-
required: true;
|
|
351
|
-
default: string;
|
|
352
|
-
};
|
|
353
|
-
title: {
|
|
354
|
-
type: StringConstructor;
|
|
355
|
-
required: false;
|
|
356
|
-
default: string;
|
|
357
|
-
};
|
|
358
|
-
className: {
|
|
359
|
-
type: StringConstructor;
|
|
360
|
-
required: false;
|
|
361
|
-
};
|
|
362
|
-
}, {
|
|
363
|
-
props: {
|
|
364
|
-
iconClass: string;
|
|
365
|
-
title: string;
|
|
366
|
-
className?: string | undefined;
|
|
367
|
-
};
|
|
368
|
-
iconName: import("vue").ComputedRef<string>;
|
|
369
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
370
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
371
|
-
iconClass: {
|
|
372
|
-
type: StringConstructor;
|
|
373
|
-
required: true;
|
|
374
|
-
default: string;
|
|
375
|
-
};
|
|
376
|
-
title: {
|
|
377
|
-
type: StringConstructor;
|
|
378
|
-
required: false;
|
|
379
|
-
default: string;
|
|
380
|
-
};
|
|
381
|
-
className: {
|
|
382
|
-
type: StringConstructor;
|
|
383
|
-
required: false;
|
|
384
|
-
};
|
|
385
|
-
}>>, {
|
|
386
|
-
title: string;
|
|
387
|
-
iconClass: string;
|
|
388
|
-
}>;
|
|
389
351
|
EvaluateCountdown: import("vue").DefineComponent<{
|
|
390
352
|
formArray: {
|
|
391
353
|
type: ArrayConstructor;
|
|
@@ -463,48 +425,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
463
425
|
setAnswered: number;
|
|
464
426
|
totalLen: number;
|
|
465
427
|
};
|
|
466
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
467
|
-
iconClass: {
|
|
468
|
-
type: StringConstructor;
|
|
469
|
-
required: true;
|
|
470
|
-
default: string;
|
|
471
|
-
};
|
|
472
|
-
title: {
|
|
473
|
-
type: StringConstructor;
|
|
474
|
-
required: false;
|
|
475
|
-
default: string;
|
|
476
|
-
};
|
|
477
|
-
className: {
|
|
478
|
-
type: StringConstructor;
|
|
479
|
-
required: false;
|
|
480
|
-
};
|
|
481
|
-
}, {
|
|
482
|
-
props: {
|
|
483
|
-
iconClass: string;
|
|
484
|
-
title: string;
|
|
485
|
-
className?: string | undefined;
|
|
486
|
-
};
|
|
487
|
-
iconName: import("vue").ComputedRef<string>;
|
|
488
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
489
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
490
|
-
iconClass: {
|
|
491
|
-
type: StringConstructor;
|
|
492
|
-
required: true;
|
|
493
|
-
default: string;
|
|
494
|
-
};
|
|
495
|
-
title: {
|
|
496
|
-
type: StringConstructor;
|
|
497
|
-
required: false;
|
|
498
|
-
default: string;
|
|
499
|
-
};
|
|
500
|
-
className: {
|
|
501
|
-
type: StringConstructor;
|
|
502
|
-
required: false;
|
|
503
|
-
};
|
|
504
|
-
}>>, {
|
|
505
|
-
title: string;
|
|
506
|
-
iconClass: string;
|
|
507
|
-
}>;
|
|
508
428
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeEvaluateCountdown"[], "closeEvaluateCountdown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
509
429
|
formArray: {
|
|
510
430
|
type: ArrayConstructor;
|
|
@@ -662,53 +582,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
662
582
|
}>> & {}>>;
|
|
663
583
|
questionScore: import("vue").ComputedRef<any>;
|
|
664
584
|
answerSuccess: import("vue").ComputedRef<boolean>;
|
|
665
|
-
answerIcon: import("vue").ComputedRef<"
|
|
585
|
+
answerIcon: import("vue").ComputedRef<"icon-scale-view-dui" | "icon-scale-view-cuo">;
|
|
666
586
|
answerResText: import("vue").ComputedRef<"部分正确" | "回答正确" | "回答错误">;
|
|
667
587
|
scoreText: import("vue").ComputedRef<"部分" | "本题">;
|
|
668
588
|
correctAnswer: import("vue").ComputedRef<any>;
|
|
669
589
|
answerKeyText: import("vue").ComputedRef<any>;
|
|
670
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
671
|
-
iconClass: {
|
|
672
|
-
type: StringConstructor;
|
|
673
|
-
required: true;
|
|
674
|
-
default: string;
|
|
675
|
-
};
|
|
676
|
-
title: {
|
|
677
|
-
type: StringConstructor;
|
|
678
|
-
required: false;
|
|
679
|
-
default: string;
|
|
680
|
-
};
|
|
681
|
-
className: {
|
|
682
|
-
type: StringConstructor;
|
|
683
|
-
required: false;
|
|
684
|
-
};
|
|
685
|
-
}, {
|
|
686
|
-
props: {
|
|
687
|
-
iconClass: string;
|
|
688
|
-
title: string;
|
|
689
|
-
className?: string | undefined;
|
|
690
|
-
};
|
|
691
|
-
iconName: import("vue").ComputedRef<string>;
|
|
692
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
693
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
694
|
-
iconClass: {
|
|
695
|
-
type: StringConstructor;
|
|
696
|
-
required: true;
|
|
697
|
-
default: string;
|
|
698
|
-
};
|
|
699
|
-
title: {
|
|
700
|
-
type: StringConstructor;
|
|
701
|
-
required: false;
|
|
702
|
-
default: string;
|
|
703
|
-
};
|
|
704
|
-
className: {
|
|
705
|
-
type: StringConstructor;
|
|
706
|
-
required: false;
|
|
707
|
-
};
|
|
708
|
-
}>>, {
|
|
709
|
-
title: string;
|
|
710
|
-
iconClass: string;
|
|
711
|
-
}>;
|
|
712
590
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
713
591
|
item: {
|
|
714
592
|
type: ObjectConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as l,createElementBlock as n,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as
|
|
1
|
+
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as l,createElementBlock as n,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as C,h as S}from"vue";import 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 P from"./components/NoData.vue.js";import D from"./components/EvaluateCountdown.vue.js";import F from"./components/EvaluatePage.vue.js";import B from"./components/AnswerParse.vue.js";import N from"./components/ScaleScore.js";import{useDialog as x,useMessage as I,NForm as q,NFormItem as M,NButton as R}from"naive-ui";import K from"../../../_virtual/plugin-vue_export-helper.js";const V={class:"c-scale-view-block"},H=["innerHTML"],U={key:0,class:"required-text"},W={key:1,class:"evalute-label"},J=["onClick"],Y=d("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),X={key:1,class:"footer"};var G=K(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:K,emit:G}){const Q=e,{ScaleViewState:Z}=w(),$=t(Z),z=x(),ee=I(),te=a(null),ae=a(null),{noDataState:oe,setNoData:ie,resetNodata:le}=h(),ne=O(),{showEvatip:se,isFormBoldOpen:re,scaleStyle:ue,handlePageClass:ce,isShowItem:pe,handleShowQuestionNumber:de,hasScore:me,isPreviewScale:ve,showEvaluateEntry:fe,showEvaluateCoundownPage:ge,showSaveBtn:ye,showEvaluateLabel:be,showAnswerParse:ke,propsConfig:Ce,evaluatePageProps:Se,evaluateCountdownProps:he,skipCover:we,scaleEdit:Ee}=E(Q,$,{query:ne}),{initForm:_e}=_(Q,$,G,{query:ne}),{submitMethod:Ae}=A(Q,$,G,{query:ne}),{nextLogicEvent:Oe,handleDynamicDataRelation:je}=L(Q,$);(()=>{let{id:e}=ne;e&&($.shareId=e)})();const Te=e=>{try{le(),_e(e)}catch(e){console.log(e,"--error"),$.spinning=!1,$.hasFrontAddress=!1,ie(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>Q.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),o((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;$.form={},$.formArray=[];const t=JSON.parse(JSON.stringify(e));i((()=>{_e(t)}))}),{immediate:!0});const Le=e=>{$.showEvaluateSettingWrap=!1,$.showEvaluateCountdown=!!e,G("startWriteScale")},Pe=()=>{console.log("----closeEvaluateCountdown"),$.showEvaluateCountdown=!1,ve.value||($.banSubmit=!0,Ae(),z.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{z.warning({title:"提示",content:()=>S("div",{class:"evatip-container"},[S("span","答案解析:"),S("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Fe=(e,t,a)=>{console.log(e,"--val");let{choiceObj:o,isSetObj:i}=a||{};switch(t.type.includes("SELECT")||($.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;$.form[t.val_key]=a,Oe(e,t,$.formArray),je(o,t,$.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&($.choiceComObj[t.val_key]=o),Oe(e,t,$.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Oe(e,t,$.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":$.submitForm[t.val_key]=e}},Be=(e,t)=>{console.log(t),$.form[t.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),$.labelSelectedList=t,{labelStr:a.join(","),labels:o}},xe=()=>{var e;if(!$.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=$.config;if(!t||!Object.keys(t).length&&!fe.value||Ee.value)return void Ie("确认要结束测评吗?");if("formIframe"==Q.openType&&fe.value)return void G("submitNoRequest");let a="确定要提前结束测评吗?";if(ge.value&&(null==(e=te.value)?void 0:e.getCountdownObj)){const e=te.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Ie(a)},Ie=e=>{z.warning({title:"温馨提示",content:()=>S("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:async()=>{const e=await qe();G("onSubmit",e)},onNegativeClick(){}})},qe=()=>new Promise(((e,t)=>{var a;null==(a=ae.value)||a.validate((t=>{var a;if(t){console.log(t);let o=(null==(a=t[0])?void 0:a[0])||{},i=o.field,l=o.message,n=$.formArray.find((e=>e.databaseTitle===i));return n&&(i=n.title),ee.error(i+l),e(!1),!1}{const t=Ae();e(t)}}))})),Me=()=>{G("onCloseSetting")};return K({getScaleData:()=>({...$}),onSubmitForm:qe,cancel:Me}),(e,t)=>(l(),n("div",V,[s(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),$.spinning||$.hasFrontAddress?s("v-if",!0):(l(),n(r,{key:0},[u(oe).noData?(l(),c(P,{key:0,noDataImg:u(oe).noDataImg,noDataTip:u(oe).noDataTip},null,8,["noDataImg","noDataTip"])):(l(),n(r,{key:1},[u(fe)&&!u(we)?(l(),c(F,p({key:0},u(Se),{onWriteGuage:Le}),null,16)):(l(),n(r,{key:1},[u(ge)?(l(),c(D,p({key:0,ref_key:"countdownDom",ref:te},u(he),{onCloseEvaluateCountdown:Pe}),null,16)):s("v-if",!0),d("div",{class:m(["scale-container",{"scale-container-nopadding":u(ce),"scale-container-hasfooter":u(ye)}]),style:v(u(ue))},[u(me)?(l(),c(u(N),{key:0,config:$.config,maxScore:$.maxScore},null,8,["config","maxScore"])):s("v-if",!0),f(u(q),{ref_key:"formRef",ref:ae,model:$.form,rules:$.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(l(!0),n(r,null,y($.formArray,((e,t)=>(l(),n(r,{key:(e.id||e.seq)+t},[u(pe)(e)?(l(),c(u(M),{key:0,path:e.val_key,"show-label":!u(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[d("span",{class:m({"scale-label-required":u(re)(e)}),innerHTML:u(de)(e)},null,10,H),u(re)(e)?(l(),n("span",U,"(必填)")):s("v-if",!0),u(be)(e)?(l(),n("span",W,b(u(be)(e)),1)):s("v-if",!0),u(se)(e)?(l(),n("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if($.evatipMap[e.id])return void De($.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=Q.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void ee.error(`${a} Is not a function`);let i=await o(e.id);i&&($.evatipMap[e.id]||($.evatipMap[e.id]=i,De(i)))})(e)},[Y,k(" 查看提示 ")],8,J)):s("v-if",!0)])),default:g((()=>[(l(),c(C(e.renderCom),p(u(Ce)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Fe,onOnChange:t=>((e,t)=>{$.form[t.val_key]=Ne(e)})(t,e),onVodFileList:Be}),null,16,["onOnChange"])),u(ke)(e)?(l(),c(B,{key:0,item:e},null,8,["item"])):s("v-if",!0)])),_:2},1032,["path","show-label"])):s("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),u(ye)?(l(),n("div",X,[s(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(l(),c(u(R),{key:0,onClick:Me},{default:g((()=>[k("取消")])),_:1})):s("v-if",!0),Q.isLock?s("v-if",!0):(l(),c(u(R),{key:1,onClick:xe,disabled:$.banSubmit,type:"primary"},{default:g((()=>[k("保存")])),_:1},8,["disabled"]))])):s("v-if",!0)],64))],64))],64))]))}}),[["__file","ScaleView.vue"]]);export{G as default};
|
|
@@ -12,53 +12,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}>> & {}>>;
|
|
13
13
|
questionScore: import("vue").ComputedRef<any>;
|
|
14
14
|
answerSuccess: import("vue").ComputedRef<boolean>;
|
|
15
|
-
answerIcon: import("vue").ComputedRef<"
|
|
15
|
+
answerIcon: import("vue").ComputedRef<"icon-scale-view-dui" | "icon-scale-view-cuo">;
|
|
16
16
|
answerResText: import("vue").ComputedRef<"部分正确" | "回答正确" | "回答错误">;
|
|
17
17
|
scoreText: import("vue").ComputedRef<"部分" | "本题">;
|
|
18
18
|
correctAnswer: import("vue").ComputedRef<any>;
|
|
19
19
|
answerKeyText: import("vue").ComputedRef<any>;
|
|
20
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
21
|
-
iconClass: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
required: true;
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
title: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
required: false;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
className: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
required: false;
|
|
34
|
-
};
|
|
35
|
-
}, {
|
|
36
|
-
props: {
|
|
37
|
-
iconClass: string;
|
|
38
|
-
title: string;
|
|
39
|
-
className?: string | undefined;
|
|
40
|
-
};
|
|
41
|
-
iconName: import("vue").ComputedRef<string>;
|
|
42
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
43
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
-
iconClass: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
required: true;
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
title: {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
required: false;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
className: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
required: false;
|
|
57
|
-
};
|
|
58
|
-
}>>, {
|
|
59
|
-
title: string;
|
|
60
|
-
iconClass: string;
|
|
61
|
-
}>;
|
|
62
20
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
21
|
item: {
|
|
64
22
|
type: ObjectConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as r,openBlock as s,createElementBlock as n,normalizeClass as i,unref as
|
|
1
|
+
import{defineComponent as e,computed as r,openBlock as s,createElementBlock as n,normalizeClass as i,unref as a,createElementVNode as l,createTextVNode as t,toDisplayString as o,createCommentVNode as u}from"vue";import c from"../../../../_virtual/plugin-vue_export-helper.js";const v={class:"answer-res-wrap"},p={class:"answer-res"},w={key:0},d={key:0,class:"correct-answer"},m=l("p",null,"正确答案:",-1),f={class:"answer-key"},P=l("p",null,"答案解析:",-1);var _=c(e({__name:"AnswerParse",props:{item:{type:Object,default:()=>({})}},setup(e){const c=e,_=r((()=>{var e;return(null==(e=c.item)?void 0:e.questionScore)||0})),y=r((()=>{var e;return(null==(e=c.item)?void 0:e.questionScore)>0})),q=r((()=>y.value?"icon-scale-view-dui":"icon-scale-view-cuo")),S=r((()=>"questionPartScore"in c.item?"部分正确":y.value?"回答正确":"回答错误")),g=r((()=>"questionPartScore"in c.item?"部分":"本题")),k=r((()=>{var e;let{correctAnswer:r}=(null==(e=c.item)?void 0:e.scoreConfigs)||{};return r})),A=r((()=>{var e;let{answerKey:r}=(null==(e=c.item)?void 0:e.scoreConfigs)||{};return r||"无"}));return(e,r)=>(s(),n("div",{class:i(["c-answerParse",{"answerParse-success":a(y)}])},[l("div",v,[l("div",p,[l("i",{class:i(["scale-view-iconfont",a(q)])},null,2),t(" "+o(a(S)),1)]),a(y)?(s(),n("div",w,o(a(g))+"得分:"+o(a(_))+"分",1)):u("v-if",!0)]),a(k)?(s(),n("div",d,[m,l("span",null,o(a(k)),1)])):u("v-if",!0),l("div",f,[P,l("span",null,o(a(A)),1)])],2))}}),[["__file","AnswerParse.vue"]]);export{_ as default};
|
|
@@ -75,48 +75,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
75
|
setAnswered: number;
|
|
76
76
|
totalLen: number;
|
|
77
77
|
};
|
|
78
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
79
|
-
iconClass: {
|
|
80
|
-
type: StringConstructor;
|
|
81
|
-
required: true;
|
|
82
|
-
default: string;
|
|
83
|
-
};
|
|
84
|
-
title: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
required: false;
|
|
87
|
-
default: string;
|
|
88
|
-
};
|
|
89
|
-
className: {
|
|
90
|
-
type: StringConstructor;
|
|
91
|
-
required: false;
|
|
92
|
-
};
|
|
93
|
-
}, {
|
|
94
|
-
props: {
|
|
95
|
-
iconClass: string;
|
|
96
|
-
title: string;
|
|
97
|
-
className?: string | undefined;
|
|
98
|
-
};
|
|
99
|
-
iconName: import("vue").ComputedRef<string>;
|
|
100
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
101
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
102
|
-
iconClass: {
|
|
103
|
-
type: StringConstructor;
|
|
104
|
-
required: true;
|
|
105
|
-
default: string;
|
|
106
|
-
};
|
|
107
|
-
title: {
|
|
108
|
-
type: StringConstructor;
|
|
109
|
-
required: false;
|
|
110
|
-
default: string;
|
|
111
|
-
};
|
|
112
|
-
className: {
|
|
113
|
-
type: StringConstructor;
|
|
114
|
-
required: false;
|
|
115
|
-
};
|
|
116
|
-
}>>, {
|
|
117
|
-
title: string;
|
|
118
|
-
iconClass: string;
|
|
119
|
-
}>;
|
|
120
78
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeEvaluateCountdown"[], "closeEvaluateCountdown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
121
79
|
formArray: {
|
|
122
80
|
type: ArrayConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,onMounted as o,watch as
|
|
1
|
+
import{defineComponent as e,reactive as t,onMounted as o,watch as a,openBlock as n,createElementBlock as l,normalizeClass as u,unref as r,createElementVNode as s,toDisplayString as i,createCommentVNode as d,createTextVNode as c}from"vue";import{useEvaluate as v}from"../hooks/use-evaluate.js";import w from"moment";import m from"../../../../_virtual/plugin-vue_export-helper.js";const f=s("i",{class:"scale-view-iconfont icon-scale-view-shijian"},null,-1),p={class:"answered-wrap"};var g=m(e({__name:"EvaluateCountdown",props:{formArray:{type:Array,default:()=>[]},evaluateResultConfig:{type:Object,default:()=>({})},evaluateResultSetting:{type:Object,default:()=>({})},form:{type:Object,default:()=>({})},currentTime:{default:(new Date).getTime()},showEvaluateCountdown:{type:Boolean,default:!1}},emits:["closeEvaluateCountdown"],setup(e,{expose:m,emit:g}){const j=e,y=t({source:"countdown",setAnswered:0}),{evaluateState:b,evaluateStartTime:h,showCountdown:C,getTotalLen:A,countdown:O,clearTimer:T}=v(j,y,{emit:g});o((()=>{(()=>{A();let{evaluateTime:e}=j.evaluateResultSetting;if(!C.value||!e)return;let t=(h.value?w(h.value):w()).add(e,"minutes");T(),O(t)})()})),a((()=>j.form),(e=>{(e||Object.keys(e).length)&&(console.log(e,"触发修改啦啦啦"),(e=>{var t;let o=null==(t=j.formArray)?void 0:t.filter((e=>!b.filterArr.includes(e.type)));if(!o||!o.length)return;let a={};o.forEach((t=>{const o=t.databaseTitle||t.title;a[o]=e[o]})),console.log(a);let n=0;for(let e in a){let t=a[e],o=(l=t,Object.prototype.toString.call(l));"[object Object]"==o?t&&Object.keys(t).length&&n++:"[object Array]"==o?t&&t.length&&n++:"[object Number]"==o?(t||0===t)&&n++:t&&n++}var l;y.setAnswered=n})(e))}),{immediate:!0,deep:!0});return m({getCountdownObj:()=>({setAnswered:y.setAnswered,totalLen:b.totalLen})}),(e,t)=>(n(),l("div",{class:u(["c-evaluateCountdown",{"evaluateCountdown-hasTime":j.showEvaluateCountdown}])},[j.showEvaluateCountdown?(n(),l("div",{key:0,class:u(["countdown",{"countdown-red":r(b).countdownRed}])},[s("span",null,i(r(b).countdownStr),1),f],2)):d("v-if",!0),s("div",p,[c(" 答题情况: "+i(y.setAnswered)+"/ ",1),s("span",null,i(r(b).totalLen),1)])],2))}}),[["__file","EvaluateCountdown.vue"]]);export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,computed as i,createVNode as
|
|
1
|
+
import{defineComponent as e,ref as l,computed as i,createVNode as t,createTextVNode as a,resolveComponent as n,Fragment as o}from"vue";import{NButton as s,NIcon as c,NSpace as r,useDialog as m}from"naive-ui";import u from"./standard-modal.js";import p from"./sign-com.js";import{EyeOutline as v,TrashOutline as d}from"@vicons/ionicons5";import{api as g}from"v-viewer";var f=e({name:"RSign",components:{NButton:s,NIcon:c,NSpace:r,StandardModal:u,SignCom:p},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,s){const r=l(null),u=l(!1),p=l([]),f=m(),k=i((()=>{var l,i;return(null==(i=null==(l=e.item)?void 0:l.setting)?void 0:i.limitPic)||1})),C=i((()=>p.value.length<k.value&&!e.isLock));(()=>{const l=e.form[e.item.val_key];l&&Array.isArray(l)&&l.length&&(p.value=l)})();const h=()=>{u.value=!1},y=()=>{r.value.reset()},b=()=>{r.value.generate().then((l=>{console.log(l),p.value.push(l),s.emit("scaleChange",p.value,e.item),h()})).catch((e=>{console.log(e)}))},w=()=>{e.isLock||(u.value=!0)},x=()=>t("div",{class:"sigan-content-wrap"},[p.value.map(((l,i)=>t("div",{class:"sign-item"},[t("img",{src:l.url},null),t("div",null,[t(c,{component:v,onClick:()=>(e=>{const l=p.value.map((e=>e.url)).filter(Boolean);l.length&&g({images:l,options:{toolbar:!0,initialViewIndex:e}})})(i)},null),!e.isLock&&t(c,{component:d,onClick:()=>(l=>{e.isLock||f.warning({title:"提示",content:"确认要删除签名吗?",positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{p.value.splice(l,1),s.emit("scaleChange",p.value,e.item)},onNegativeClick(){}})})(i)},null)])]))),C.value&&t("div",{class:"add-sign-wrap",onClick:w},[t("i",{class:"scale-view-iconfont icon-scale-view-qianming"},null),t("span",null,[a("添加签名")])])]),L=()=>t(n("standard-modal"),{class:"r-sign-modal",visible:u.value,title:e.item.title,modalWidth:"652px",modalHeight:"476px",handleOk:b,cancel:h},{default:()=>t(n("sign-com"),{ref:r,isCrop:!0},null),action:()=>t(o,null,[t(n("n-space"),null,{default:()=>[t(n("n-button"),{size:"small",onClick:h},{default:()=>[a("取消")]}),t(n("n-button"),{size:"small",onClick:y,type:"primary"},{default:()=>[a("重签")]}),t(n("n-button"),{size:"small",onClick:b,type:"primary"},{default:()=>[a("确认")]})]})])});return()=>t("div",{class:"c-sign-wrap"},[x(),L()])}});export{f as default};
|
|
@@ -21,11 +21,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
};
|
|
22
22
|
handleOk: {
|
|
23
23
|
type: FunctionConstructor;
|
|
24
|
-
default: () =>
|
|
24
|
+
default: () => {};
|
|
25
25
|
};
|
|
26
26
|
cancel: {
|
|
27
27
|
type: FunctionConstructor;
|
|
28
|
-
default: () =>
|
|
28
|
+
default: () => {};
|
|
29
29
|
};
|
|
30
30
|
visible: {
|
|
31
31
|
type: BooleanConstructor;
|
|
@@ -54,11 +54,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
};
|
|
55
55
|
handleOk: {
|
|
56
56
|
type: FunctionConstructor;
|
|
57
|
-
default: () =>
|
|
57
|
+
default: () => {};
|
|
58
58
|
};
|
|
59
59
|
cancel: {
|
|
60
60
|
type: FunctionConstructor;
|
|
61
|
-
default: () =>
|
|
61
|
+
default: () => {};
|
|
62
62
|
};
|
|
63
63
|
visible: {
|
|
64
64
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as
|
|
1
|
+
import{defineComponent as e,computed as i,reactive as t,ref as l,createVNode as a,resolveComponent as n}from"vue";import{NModal as o,NButton as s,NTooltip as d}from"naive-ui";var c=e({name:"StandardModal",components:{NModal:o,NButton:s,NTooltip:d},props:{title:{type:[Function,String],default:""},changeSize:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},modalWidth:{type:String,default:""},modalHeight:{type:String,default:""},handleOk:{type:Function,default:()=>({})},cancel:{type:Function,default:()=>({})},visible:{type:Boolean,default:!1}},emits:["update:visible","onClose"],setup(e,o){const s=i((()=>e.modalWidth||"50vw")),d=i((()=>e.modalHeight||"50vh")),c=t({modalWidth:s.value,modalHeight:d.value,maxHeight:"620px",isChangeWindow:!1}),u=l(!1),h=()=>{e.handleOk()},v=()=>{e.cancel(),o.emit("update:visible",!1)},g=()=>{const i=null==e?void 0:e.title,t=typeof i;return a("div",{class:"n-dialog__title-content"},["string"===t?a("div",null,[i]):null,"function"===t?a("div",null,[i()]):null,a("div",{class:"svg-wrap"},[e.changeSize?a("i",{onClick:()=>(document.body.clientHeight,void Object.assign(c,{isChangeWindow:!c.isChangeWindow,modalWidth:c.modalWidth===s.value?"100vw":s.value,modalHeight:c.modalHeight===d.value?"100vh":d.value})),class:u.value?"scale-view-iconfont icon-scale-view-menzhenyishengzhanxitongtubiaozuixiaohua2":"scale-view-iconfont icon-scale-view-menzhenyishengzhanxitongtubiaozuidahua"},null):null,e.closable?a("i",{class:"scale-view-iconfont icon-scale-view-menzhenyishengzhanxitongtubiaoguanbi",onClick:()=>v()},null):null])])};return()=>(()=>{const i={...o.slots};return i.header||(i.header=g),a(n("n-modal"),{class:"c-scale-modal-container",show:e.visible,"mask-closable":!1,"show-icon":!1,closable:!1,style:{width:c.modalWidth,height:c.modalHeight},preset:"dialog","positive-text":"确认","negative-text":"取消","on-positive-click":h,"on-negative-click":v,positiveButtonProps:{type:"primary"}},{...i})})()}});export{c as default};
|