cnhis-design-vue 3.2.6-beta.9 → 3.2.6-release.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +6 -2
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/expand-field/index.d.ts +1109 -321
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +1109 -321
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +1109 -321
- package/es/components/expand-field/src/components/form.vue.d.ts +1109 -321
- package/es/components/expand-field/src/index.vue.d.ts +1109 -321
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +12 -4
- package/es/components/form-config/src/FormConfig.vue.d.ts +12 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +6 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +6 -2
- package/es/components/form-render/index.d.ts +6 -2
- package/es/components/form-render/src/FormRender.vue.d.ts +5 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +6 -2
- package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/types/index.d.ts +4 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/info-header/index.d.ts +12 -4
- package/es/components/info-header/src/InfoHeader.vue.d.ts +12 -4
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +6 -2
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +6 -2
- package/es/components/recommend-search/index.d.ts +8 -8
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +8 -8
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +3 -3
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/index.d.ts +1109 -321
- package/es/components/select-person/index.js +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +4 -10
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/SelectPersonType.vue.d.ts +314 -0
- package/es/components/select-person/src/SelectPersonType.vue.js +1 -0
- package/es/components/select-person/src/SelectPersonType.vue2.js +1 -0
- package/es/components/select-person/src/components/SearchMultiple.vue.js +1 -0
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue.js +1 -0
- package/es/components/select-person/src/constants/index.d.ts +2 -0
- package/es/components/select-person/src/constants/index.js +1 -0
- package/es/components/select-person/src/index.vue.d.ts +1385 -0
- package/es/components/select-person/src/index.vue.js +1 -0
- package/es/components/select-person/src/index.vue2.js +1 -0
- package/es/components/shortcut-setter/index.d.ts +6 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -2
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/hooks/useAsyncQueue/index.d.ts +3 -0
- package/es/shared/hooks/useAsyncQueue/index.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/select-person/src/SearchMultiple.vue.js +0 -1
- package/es/components/select-person/src/SearchOrgAndStaff.vue.js +0 -1
- /package/es/components/select-person/src/{SearchMultiple.vue.d.ts → components/SearchMultiple.vue.d.ts} +0 -0
- /package/es/components/select-person/src/{SearchMultiple.vue2.js → components/SearchMultiple.vue2.js} +0 -0
- /package/es/components/select-person/src/{SearchOrgAndStaff.vue.d.ts → components/SearchOrgAndStaff.vue.d.ts} +0 -0
- /package/es/components/select-person/src/{SearchOrgAndStaff.vue2.js → components/SearchOrgAndStaff.vue2.js} +0 -0
@@ -1142,7 +1142,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1142
1142
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
1143
1143
|
key: import("vue").Ref<number>;
|
1144
1144
|
reload: () => Promise<void>;
|
1145
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
1145
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues", "optionInited"];
|
1146
1146
|
exposed: Partial<FormRenderExpose>;
|
1147
1147
|
FormRender: import("vue").DefineComponent<{
|
1148
1148
|
fieldList: {
|
@@ -1551,6 +1551,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1551
1551
|
businessCollector: import("../../../components/form-render").BusinessCollector;
|
1552
1552
|
formItemDepsCollector: import("../../../components/form-render").FormItemDepsCollector;
|
1553
1553
|
changeContextCollector: import("../../../components/form-render").ContextCollector;
|
1554
|
+
asyncQueue: import("../../../shared/hooks").AsyncQueue<import("../../../shared/hooks").FormRequestDefine.AsyncQueueItem, any, {
|
1555
|
+
label: string;
|
1556
|
+
value: unknown;
|
1557
|
+
}[]>;
|
1554
1558
|
formUUID: string;
|
1555
1559
|
anchorBarRef: import("vue").Ref<{
|
1556
1560
|
syncBarPosition: AnyFn;
|
@@ -1876,7 +1880,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1876
1880
|
startIncrementalRender: () => void;
|
1877
1881
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
1878
1882
|
clearSpan: (uuid: string) => void;
|
1879
|
-
exposeEvent: Omit<FormRenderExpose, "getFieldList" | "formModel" | "reload">;
|
1883
|
+
exposeEvent: Omit<FormRenderExpose, "getFieldList" | "optionInited" | "formModel" | "reload">;
|
1880
1884
|
useVersion: typeof useVersion;
|
1881
1885
|
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1882
1886
|
FormProvider: import("vue").DefineComponent<Record<"form", any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<"form", any>>>, {
|
@@ -2237,7 +2241,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2237
2241
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
2238
2242
|
key: import("vue").Ref<number>;
|
2239
2243
|
reload: () => Promise<void>;
|
2240
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
2244
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues", "optionInited"];
|
2241
2245
|
exposed: Partial<FormRenderExpose>;
|
2242
2246
|
FormRender: import("vue").DefineComponent<{
|
2243
2247
|
fieldList: {
|
@@ -2646,6 +2650,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2646
2650
|
businessCollector: import("../../../components/form-render").BusinessCollector;
|
2647
2651
|
formItemDepsCollector: import("../../../components/form-render").FormItemDepsCollector;
|
2648
2652
|
changeContextCollector: import("../../../components/form-render").ContextCollector;
|
2653
|
+
asyncQueue: import("../../../shared/hooks").AsyncQueue<import("../../../shared/hooks").FormRequestDefine.AsyncQueueItem, any, {
|
2654
|
+
label: string;
|
2655
|
+
value: unknown;
|
2656
|
+
}[]>;
|
2649
2657
|
formUUID: string;
|
2650
2658
|
anchorBarRef: import("vue").Ref<{
|
2651
2659
|
syncBarPosition: AnyFn;
|
@@ -2971,7 +2979,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2971
2979
|
startIncrementalRender: () => void;
|
2972
2980
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
2973
2981
|
clearSpan: (uuid: string) => void;
|
2974
|
-
exposeEvent: Omit<FormRenderExpose, "getFieldList" | "formModel" | "reload">;
|
2982
|
+
exposeEvent: Omit<FormRenderExpose, "getFieldList" | "optionInited" | "formModel" | "reload">;
|
2975
2983
|
useVersion: typeof useVersion;
|
2976
2984
|
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
2977
2985
|
FormProvider: import("vue").DefineComponent<Record<"form", any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<"form", any>>>, {
|
@@ -640,7 +640,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
640
640
|
formRenderRef: import("vue").Ref<import("../../../../../components/form-render").FormRenderExpose | undefined>;
|
641
641
|
key: import("vue").Ref<number>;
|
642
642
|
reload: () => Promise<void>;
|
643
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
643
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues", "optionInited"];
|
644
644
|
exposed: Partial<import("../../../../../components/form-render").FormRenderExpose>;
|
645
645
|
FormRender: import("vue").DefineComponent<{
|
646
646
|
fieldList: {
|
@@ -1049,6 +1049,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1049
1049
|
businessCollector: import("../../../../../components/form-render").BusinessCollector;
|
1050
1050
|
formItemDepsCollector: import("../../../../../components/form-render").FormItemDepsCollector;
|
1051
1051
|
changeContextCollector: import("../../../../../components/form-render").ContextCollector;
|
1052
|
+
asyncQueue: import("../../../../../shared/hooks").AsyncQueue<import("../../../../../shared/hooks").FormRequestDefine.AsyncQueueItem, any, {
|
1053
|
+
label: string;
|
1054
|
+
value: unknown;
|
1055
|
+
}[]>;
|
1052
1056
|
formUUID: string;
|
1053
1057
|
anchorBarRef: import("vue").Ref<{
|
1054
1058
|
syncBarPosition: AnyFn;
|
@@ -1374,7 +1378,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1374
1378
|
startIncrementalRender: () => void;
|
1375
1379
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
1376
1380
|
clearSpan: (uuid: string) => void;
|
1377
|
-
exposeEvent: Omit<import("../../../../../components/form-render").FormRenderExpose, "getFieldList" | "formModel" | "reload">;
|
1381
|
+
exposeEvent: Omit<import("../../../../../components/form-render").FormRenderExpose, "getFieldList" | "optionInited" | "formModel" | "reload">;
|
1378
1382
|
useVersion: typeof import("../../../../../shared/hooks").useVersion;
|
1379
1383
|
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1380
1384
|
FormProvider: import("vue").DefineComponent<Record<"form", any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<"form", any>>>, {
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
52
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
53
53
|
key: import("vue").Ref<number>;
|
54
54
|
reload: () => Promise<void>;
|
55
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
55
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues", "optionInited"];
|
56
56
|
exposed: Partial<FormRenderExpose>;
|
57
57
|
FormRender: import("vue").DefineComponent<{
|
58
58
|
fieldList: {
|
@@ -461,6 +461,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
461
461
|
businessCollector: import("../../../../../components/form-render").BusinessCollector;
|
462
462
|
formItemDepsCollector: import("../../../../../components/form-render").FormItemDepsCollector;
|
463
463
|
changeContextCollector: import("../../../../../components/form-render").ContextCollector;
|
464
|
+
asyncQueue: import("../../../../../shared/hooks").AsyncQueue<import("../../../../../shared/hooks").FormRequestDefine.AsyncQueueItem, any, {
|
465
|
+
label: string;
|
466
|
+
value: unknown;
|
467
|
+
}[]>;
|
464
468
|
formUUID: string;
|
465
469
|
anchorBarRef: import("vue").Ref<{
|
466
470
|
syncBarPosition: import("../../../../../shared/types").AnyFn;
|
@@ -786,7 +790,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
786
790
|
startIncrementalRender: () => void;
|
787
791
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
788
792
|
clearSpan: (uuid: string) => void;
|
789
|
-
exposeEvent: Omit<FormRenderExpose, "getFieldList" | "formModel" | "reload">;
|
793
|
+
exposeEvent: Omit<FormRenderExpose, "getFieldList" | "optionInited" | "formModel" | "reload">;
|
790
794
|
useVersion: typeof import("../../../../../shared/hooks").useVersion;
|
791
795
|
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
792
796
|
FormProvider: import("vue").DefineComponent<Record<"form", any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<"form", any>>>, {
|
@@ -99,8 +99,8 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
99
99
|
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
100
100
|
};
|
101
101
|
}>> & {
|
102
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
103
102
|
onSearch?: ((...args: any[]) => any) | undefined;
|
103
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
104
104
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
105
105
|
onDelete?: ((...args: any[]) => any) | undefined;
|
106
106
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -168,8 +168,8 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
168
168
|
default: boolean;
|
169
169
|
};
|
170
170
|
}>> & {
|
171
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
172
171
|
onSearch?: ((...args: any[]) => any) | undefined;
|
172
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
173
173
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
174
174
|
onDelete?: ((...args: any[]) => any) | undefined;
|
175
175
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -327,9 +327,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
327
327
|
default: boolean;
|
328
328
|
};
|
329
329
|
}>> & {
|
330
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
330
331
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
331
332
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
332
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
333
333
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
334
334
|
onClear?: ((...args: any[]) => any) | undefined;
|
335
335
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
@@ -371,8 +371,8 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
371
371
|
default: boolean;
|
372
372
|
};
|
373
373
|
}>> & {
|
374
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
375
374
|
onSearch?: ((...args: any[]) => any) | undefined;
|
375
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
376
376
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
377
377
|
onDelete?: ((...args: any[]) => any) | undefined;
|
378
378
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -452,8 +452,8 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
452
452
|
default: () => never[];
|
453
453
|
};
|
454
454
|
}>> & {
|
455
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
456
455
|
onSearch?: ((...args: any[]) => any) | undefined;
|
456
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
457
457
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
458
458
|
onDelete?: ((...args: any[]) => any) | undefined;
|
459
459
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -559,9 +559,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
559
559
|
default: boolean;
|
560
560
|
};
|
561
561
|
}>> & {
|
562
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
562
563
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
563
564
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
564
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
565
565
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
566
566
|
onClear?: ((...args: any[]) => any) | undefined;
|
567
567
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
@@ -608,8 +608,8 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
608
608
|
default: () => never[];
|
609
609
|
};
|
610
610
|
}>> & {
|
611
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
612
611
|
onSearch?: ((...args: any[]) => any) | undefined;
|
612
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
613
613
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
614
614
|
onDelete?: ((...args: any[]) => any) | undefined;
|
615
615
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -679,8 +679,8 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
679
679
|
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
680
680
|
};
|
681
681
|
}>> & {
|
682
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
683
682
|
onSearch?: ((...args: any[]) => any) | undefined;
|
683
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
684
684
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
685
685
|
onDelete?: ((...args: any[]) => any) | undefined;
|
686
686
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -101,8 +101,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
101
101
|
type: PropType<AnyObject>;
|
102
102
|
};
|
103
103
|
}>> & {
|
104
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
105
104
|
onSearch?: ((...args: any[]) => any) | undefined;
|
105
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
106
106
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
107
107
|
onDelete?: ((...args: any[]) => any) | undefined;
|
108
108
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -170,8 +170,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
170
170
|
default: boolean;
|
171
171
|
};
|
172
172
|
}>> & {
|
173
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
174
173
|
onSearch?: ((...args: any[]) => any) | undefined;
|
174
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
175
175
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
176
176
|
onDelete?: ((...args: any[]) => any) | undefined;
|
177
177
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -329,9 +329,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
329
329
|
default: boolean;
|
330
330
|
};
|
331
331
|
}>> & {
|
332
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
332
333
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
333
334
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
334
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
335
335
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
336
336
|
onClear?: ((...args: any[]) => any) | undefined;
|
337
337
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
@@ -373,8 +373,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
373
373
|
default: boolean;
|
374
374
|
};
|
375
375
|
}>> & {
|
376
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
377
376
|
onSearch?: ((...args: any[]) => any) | undefined;
|
377
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
378
378
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
379
379
|
onDelete?: ((...args: any[]) => any) | undefined;
|
380
380
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -454,8 +454,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
454
454
|
default: () => never[];
|
455
455
|
};
|
456
456
|
}>> & {
|
457
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
458
457
|
onSearch?: ((...args: any[]) => any) | undefined;
|
458
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
459
459
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
460
460
|
onDelete?: ((...args: any[]) => any) | undefined;
|
461
461
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -561,9 +561,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
561
561
|
default: boolean;
|
562
562
|
};
|
563
563
|
}>> & {
|
564
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
564
565
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
565
566
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
566
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
567
567
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
568
568
|
onClear?: ((...args: any[]) => any) | undefined;
|
569
569
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
@@ -610,8 +610,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
610
610
|
default: () => never[];
|
611
611
|
};
|
612
612
|
}>> & {
|
613
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
614
613
|
onSearch?: ((...args: any[]) => any) | undefined;
|
614
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
615
615
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
616
616
|
onDelete?: ((...args: any[]) => any) | undefined;
|
617
617
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -681,8 +681,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
681
681
|
type: PropType<AnyObject>;
|
682
682
|
};
|
683
683
|
}>> & {
|
684
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
685
684
|
onSearch?: ((...args: any[]) => any) | undefined;
|
685
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
686
686
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
687
687
|
onDelete?: ((...args: any[]) => any) | undefined;
|
688
688
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -66,9 +66,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
66
66
|
default: boolean;
|
67
67
|
};
|
68
68
|
}>> & {
|
69
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
69
70
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
70
71
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
71
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
72
72
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
73
73
|
onClear?: ((...args: any[]) => any) | undefined;
|
74
74
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
@@ -60,8 +60,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
60
|
default: boolean;
|
61
61
|
};
|
62
62
|
}>> & {
|
63
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
64
63
|
onSearch?: ((...args: any[]) => any) | undefined;
|
64
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
65
65
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
66
66
|
onDelete?: ((...args: any[]) => any) | undefined;
|
67
67
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -219,9 +219,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
219
219
|
default: boolean;
|
220
220
|
};
|
221
221
|
}>> & {
|
222
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
222
223
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
223
224
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
224
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
225
225
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
226
226
|
onClear?: ((...args: any[]) => any) | undefined;
|
227
227
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
@@ -263,8 +263,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
263
263
|
default: boolean;
|
264
264
|
};
|
265
265
|
}>> & {
|
266
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
267
266
|
onSearch?: ((...args: any[]) => any) | undefined;
|
267
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
268
268
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
269
269
|
onDelete?: ((...args: any[]) => any) | undefined;
|
270
270
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -67,8 +67,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
67
67
|
default: () => never[];
|
68
68
|
};
|
69
69
|
}>> & {
|
70
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
71
70
|
onSearch?: ((...args: any[]) => any) | undefined;
|
71
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
72
72
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
73
73
|
onDelete?: ((...args: any[]) => any) | undefined;
|
74
74
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -174,9 +174,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
174
174
|
default: boolean;
|
175
175
|
};
|
176
176
|
}>> & {
|
177
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
177
178
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
178
179
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
179
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
180
180
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
181
181
|
onClear?: ((...args: any[]) => any) | undefined;
|
182
182
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
@@ -223,8 +223,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
223
223
|
default: () => never[];
|
224
224
|
};
|
225
225
|
}>> & {
|
226
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
227
226
|
onSearch?: ((...args: any[]) => any) | undefined;
|
227
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
228
228
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
229
229
|
onDelete?: ((...args: any[]) => any) | undefined;
|
230
230
|
onClear?: ((...args: any[]) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w,renderSlot as S}from"vue";import b from"./hooks/use-noData.js";import{ScaleViewProps as C}from"./hooks/scaleview-props.js";import{getScaleViewState as D}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as j}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as _}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as x}from"./hooks/scaleview-methods.js";import{handleQueryParams as F,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import L from"../../../shared/utils/vexutilsExpand.js";import N from"./components/NoData.vue.js";import R from"./components/EvaluateCountdown.vue.js";import A from"./components/EvaluatePage.vue.js";import M from"./components/AnswerParse.vue.js";import O from"./components/ScaleScore.js";import T from"./components/DescribeContent.vue.js";import{NForm as I,NFormItem as B,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},H=["onClick"],Q=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),$={key:1,class:"footer"};var z=e({__name:"ScaleView",props:C,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:C,emit:z}){const K=e,{ScaleViewState:U}=D(),X=o(U),Y=t(null),Z=t(null),{noDataState:ee,setNoData:oe,resetNodata:te}=b(),ae=F(),{showEvatip:ne,isFormBoldOpen:se,scaleStyle:ie,handlePageClass:le,isShowItem:re,handleShowQuestionNumber:me,hasScore:ce,isPreviewScale:ue,showEvaluateEntry:de,showEvaluateCoundownPage:pe,showScaleFooter:ve,isCancelBtn:fe,isSaveBtn:ge,showEvaluateLabel:he,showAnswerParse:ke,propsConfig:ye,evaluatePageProps:we,evaluateCountdownProps:Se,isEvaluetaResSituation:be,disableEdit:Ce,desStart:De,desEnd:Ee,desContent:je}=E(K,X,{query:ae}),{initForm:_e}=j(K,X,z,{query:ae}),{submitMethod:xe,onSubmitData:Fe,onSubmitForm:Pe,handleScoreJson:qe}=_(K,X,z,{query:ae,formRef:Z,countdownDom:Y}),{nextLogicEvent:Le,handleDynamicDataRelation:Ne}=q(K,X),{scaleChange:Re,labelChange:Ae,vodFileList:Me,writeGuage:Oe,closeEvaluateCountdown:Te,showEvaTipModal:Ie}=x(K,X,z,{nextLogicEvent:Le,handleDynamicDataRelation:Ne,isPreviewScale:ue,submitMethod:xe,isEvaluetaResSituation:be,handleScoreJson:qe,disableEdit:Ce});(()=>{let{id:e}=ae;e&&(X.shareId=e)})();const Be=e=>{try{te(),_e(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,oe(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Be(e):e.guage_id&&Be(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{_e(o)}))}),{immediate:!0});const Je=L.debounce(Fe,300),Ve=()=>{z("onCloseSetting")};return C({getScaleData:()=>({...X}),onSubmitForm:Pe,cancel:Ve}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(ve)}])},[m(' <template v-if="state.spinning">\
|
1
|
+
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w,renderSlot as S}from"vue";import b from"./hooks/use-noData.js";import{ScaleViewProps as C}from"./hooks/scaleview-props.js";import{getScaleViewState as D}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as j}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as _}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as x}from"./hooks/scaleview-methods.js";import{handleQueryParams as F,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import L from"../../../shared/utils/vexutilsExpand.js";import N from"./components/NoData.vue.js";import R from"./components/EvaluateCountdown.vue.js";import A from"./components/EvaluatePage.vue.js";import M from"./components/AnswerParse.vue.js";import O from"./components/ScaleScore.js";import T from"./components/DescribeContent.vue.js";import{NForm as I,NFormItem as B,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},H=["onClick"],Q=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),$={key:1,class:"footer"};var z=e({__name:"ScaleView",props:C,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:C,emit:z}){const K=e,{ScaleViewState:U}=D(),X=o(U),Y=t(null),Z=t(null),{noDataState:ee,setNoData:oe,resetNodata:te}=b(),ae=F(),{showEvatip:ne,isFormBoldOpen:se,scaleStyle:ie,handlePageClass:le,isShowItem:re,handleShowQuestionNumber:me,hasScore:ce,isPreviewScale:ue,showEvaluateEntry:de,showEvaluateCoundownPage:pe,showScaleFooter:ve,isCancelBtn:fe,isSaveBtn:ge,showEvaluateLabel:he,showAnswerParse:ke,propsConfig:ye,evaluatePageProps:we,evaluateCountdownProps:Se,isEvaluetaResSituation:be,disableEdit:Ce,desStart:De,desEnd:Ee,desContent:je}=E(K,X,{query:ae}),{initForm:_e}=j(K,X,z,{query:ae}),{submitMethod:xe,onSubmitData:Fe,onSubmitForm:Pe,handleScoreJson:qe}=_(K,X,z,{query:ae,formRef:Z,countdownDom:Y}),{nextLogicEvent:Le,handleDynamicDataRelation:Ne}=q(K,X),{scaleChange:Re,labelChange:Ae,vodFileList:Me,writeGuage:Oe,closeEvaluateCountdown:Te,showEvaTipModal:Ie}=x(K,X,z,{nextLogicEvent:Le,handleDynamicDataRelation:Ne,isPreviewScale:ue,submitMethod:xe,isEvaluetaResSituation:be,handleScoreJson:qe,disableEdit:Ce});(()=>{let{id:e}=ae;e&&(X.shareId=e)})();const Be=e=>{try{te(),_e(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,oe(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Be(e):e.guage_id&&Be(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{_e(o)}))}),{immediate:!0});const Je=L.debounce(Fe,300),Ve=()=>{z("onCloseSetting")};return C({getScaleData:()=>({...X}),onSubmitForm:Pe,cancel:Ve}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(ve)}])},[m(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),X.spinning||X.hasFrontAddress?m("v-if",!0):(s(),i(c,{key:0},[r(ee).noData?(s(),u(N,{key:0,noDataImg:r(ee).noDataImg,noDataTip:r(ee).noDataTip},null,8,["noDataImg","noDataTip"])):(s(),i(c,{key:1},[r(de)?(s(),u(A,d({key:0},r(we),{onWriteGuage:r(Oe)}),null,16,["onWriteGuage"])):(s(),i(c,{key:1},[r(pe)?(s(),u(R,d({key:0,ref_key:"countdownDom",ref:Y},r(Se),{onCloseEvaluateCountdown:r(Te)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(le),"scale-container-hasfooter":r(ve)}]),style:v(r(ie))},[r(ce)?(s(),u(r(O),{key:0,config:X.config,maxScore:X.maxScore},null,8,["config","maxScore"])):m("v-if",!0),r(De)?(s(),u(T,{key:1,content:r(je)},null,8,["content"])):m("v-if",!0),f(r(I),{ref_key:"formRef",ref:Z,model:X.form,rules:X.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(s(!0),i(c,null,h(X.formArray,((e,o)=>(s(),i(c,{key:(e.id||e.seq)+o},[r(re)(e)?(s(),u(r(B),{key:0,path:e.val_key,"show-label":!r(P)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(se)(e)}),innerHTML:r(me)(e)},null,10,V),r(se)(e)?(s(),i("span",G,"(必填)")):m("v-if",!0),r(he)(e)?(s(),i("span",W,k(r(he)(e)),1)):m("v-if",!0),r(ne)(e)?(s(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Ie)(e)},[Q,y(" 查看提示 ")],8,H)):m("v-if",!0)])),default:g((()=>[(s(),u(w(e.renderCom),d(r(ye)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(Re),onOnChange:o=>r(Ae)(o,e),onVodFileList:r(Me)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(ke)(e)?(s(),u(M,{key:0,item:e},null,8,["item"])):m("v-if",!0)])),_:2},1032,["path","show-label"])):m("v-if",!0)],64)))),128))])),_:1},8,["model","rules"]),r(Ee)?(s(),u(T,{key:2,content:r(je)},null,8,["content"])):m("v-if",!0)],6),r(ve)?(s(),i("div",$,[m(" 分享的链接 隐藏取消按钮 "),r(fe)?(s(),u(r(J),{key:0,onClick:Ve},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),r(ge)?(s(),u(r(J),{key:1,onClick:r(Je),disabled:X.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"])):m("v-if",!0),S(e.$slots,"extendBtn")])):m("v-if",!0)],64))],64))],64))],2))}});export{z as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let d=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(d.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;d=d.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}d.push(e)}else{const t=d.findIndex((t=>t.labelId==e.labelId));-1!=t&&d.splice(t,1)}_.labelSelectedEdit=[...d],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[d(W)?(n(),s("div",A,O)):o("v-if",!0),r(c("div",K,[c("div",j,[o(" 表单内嵌打开标签组件的样式 "),o(' <div v-if="explicit" class="explicit-continer">\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\n\t\t\t\t\t\t\t\t<span slot="tab">\n\t\t\t\t\t\t\t\t\t{{ i }}\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\n\t\t\t\t\t\t\t\t\t\t<labelClassify\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</n-tab-pane>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</n-tabs>\n\t\t\t\t</div> '),o("\n\t\t\t\t\t普通标签样式\n\t\t\t\t\tv-else\n\t\t\t\t\texplicit\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(d(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(d(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),o(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:d(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!d(W)]])],512))}});export{B as default};
|