cnhis-design-vue 3.1.48-beta.3 → 3.1.48-beta.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +13 -0
  3. package/es/components/base-search/src/index.vue.d.ts +13 -0
  4. package/es/components/base-search/src/index.vue2.js +1 -1
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  7. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  8. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  9. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  10. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +37 -8
  11. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  12. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +19 -0
  13. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +1 -1
  14. package/es/components/card-reader-sdk/src/constants/index.d.ts +60 -168
  15. package/es/components/card-reader-sdk/src/constants/index.js +1 -1
  16. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -6
  17. package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
  18. package/es/components/card-reader-sdk/src/types/index.d.ts +27 -21
  19. package/es/components/card-reader-sdk/src/utils/index.d.ts +1 -1
  20. package/es/components/card-reader-sdk/src/utils/index.js +1 -1
  21. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +6 -1
  22. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +1 -1
  23. package/es/components/classification/index.d.ts +3 -0
  24. package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -0
  25. package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -0
  26. package/es/components/classification/src/index.vue.d.ts +3 -0
  27. package/es/components/fabric-chart/src/constants/index.d.ts +4 -0
  28. package/es/components/fabric-chart/src/constants/index.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  30. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +7 -1
  31. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +7 -1
  33. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +2 -1
  36. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  37. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -2
  38. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  39. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  40. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -1
  41. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
  42. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  43. package/es/components/fabric-chart/src/utils/index.d.ts +6 -0
  44. package/es/components/fabric-chart/src/utils/index.js +1 -1
  45. package/es/components/field-set/index.d.ts +21 -1
  46. package/es/components/field-set/src/FieldSet.vue.d.ts +22 -2
  47. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  48. package/es/components/field-set/src/components/Row.vue2.js +1 -1
  49. package/es/components/field-set/src/types/index.d.ts +8 -0
  50. package/es/components/field-set/src/utils/index.js +1 -1
  51. package/es/components/form-config/index.d.ts +28 -0
  52. package/es/components/form-config/src/FormConfig.vue.d.ts +28 -0
  53. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -0
  54. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +13 -0
  55. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  56. package/es/components/form-render/src/components/renderer/select.d.ts +12 -0
  57. package/es/components/form-render/src/components/renderer/select.js +1 -1
  58. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  59. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  60. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +9 -6
  61. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  62. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  63. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  64. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +6 -0
  65. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  66. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  67. package/es/components/form-render/src/types/fieldItem.d.ts +5 -0
  68. package/es/components/form-render/src/types/index.d.ts +1 -0
  69. package/es/components/form-render/src/utils/index.js +1 -1
  70. package/es/components/form-render/style/index.css +1 -1
  71. package/es/components/iho-table/index.d.ts +8 -3
  72. package/es/components/iho-table/src/IhoTable.vue.d.ts +8 -3
  73. package/es/components/iho-table/src/constants/index.d.ts +6 -6
  74. package/es/components/iho-table/src/constants/index.js +1 -1
  75. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -0
  76. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -1
  77. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
  78. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  79. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -0
  80. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -0
  81. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +4 -1
  82. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  83. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
  84. package/es/components/iho-table/src/plugins/index.js +1 -1
  85. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  86. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -0
  87. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.js +1 -0
  88. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +18 -0
  89. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  90. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -1
  91. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -1
  92. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
  93. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  94. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  95. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -1
  96. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  97. package/es/components/iho-table/src/types/index.d.ts +4 -1
  98. package/es/components/iho-table/src/types/pluginType.d.ts +5 -3
  99. package/es/components/iho-table/src/utils/index.d.ts +2 -2
  100. package/es/components/iho-table/src/utils/index.js +1 -1
  101. package/es/components/iho-table/style/index.css +1 -1
  102. package/es/components/index.css +1 -1
  103. package/es/components/info-header/index.d.ts +13 -0
  104. package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -0
  105. package/es/components/info-header/src/InfoHeader.vue2.js +1 -1
  106. package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -1
  107. package/es/components/info-header/style/index.css +1 -1
  108. package/es/components/quick-search/style/index.css +1 -1
  109. package/es/components/scale-view/index.d.ts +26 -1
  110. package/es/components/scale-view/src/ScaleView.vue.d.ts +26 -1
  111. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  112. package/es/components/scale-view/src/components/DescribeContent.vue.d.ts +21 -0
  113. package/es/components/scale-view/src/components/DescribeContent.vue.js +1 -0
  114. package/es/components/scale-view/src/components/DescribeContent.vue2.js +1 -0
  115. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +2 -0
  116. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -1
  117. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
  118. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +6 -2
  119. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  120. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
  121. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  122. package/es/components/scale-view/src/utils/judge-types.d.ts +9 -1
  123. package/es/components/scale-view/src/utils/judge-types.js +1 -1
  124. package/es/components/scale-view/style/index.css +1 -1
  125. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  126. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  127. package/es/components/shortcut-setter/index.d.ts +4 -0
  128. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -0
  129. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
  130. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -0
  131. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  132. package/es/env.d.ts +25 -25
  133. package/es/shared/assets/img/failure.png.js +1 -1
  134. package/es/shared/assets/img/no-permission.png.js +1 -1
  135. package/es/shared/assets/img/nodata.png.js +1 -1
  136. package/es/shared/assets/img/notfound.png.js +1 -1
  137. package/es/shared/assets/img/qr.png.js +1 -1
  138. package/es/shared/assets/img/success.png.js +1 -1
  139. package/es/shared/assets/img/video.png.js +1 -1
  140. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  141. package/es/shared/assets/img/xb_big.png.js +1 -1
  142. package/es/shared/assets/img/xb_small.png.js +1 -1
  143. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  144. package/es/shared/package.json.js +1 -1
  145. package/es/shared/types/index.d.ts +1 -0
  146. package/es/shared/utils/business.js +1 -1
  147. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  148. package/es/shared/utils/tapable/index.d.ts +139 -0
  149. package/es/shared/utils/tapableLess.d.ts +28 -0
  150. package/es/shared/utils/tapableLess.js +1 -0
  151. package/package.json +2 -2
  152. package/es/components/iho-table/src/plugins/fieldConnectionPlugin/index.d.ts +0 -1
  153. package/es/components/iho-table/src/plugins/fieldConnectionPlugin/index.js +0 -1
@@ -1,5 +1,9 @@
1
1
  import { SFCWithInstall } from '../../../es/shared/types';
2
2
  declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3
+ anime: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
3
7
  compact: {
4
8
  type: BooleanConstructor;
5
9
  required: true;
@@ -155,6 +159,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
155
159
  };
156
160
  }, {
157
161
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
162
+ anime: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
158
166
  compact: {
159
167
  type: BooleanConstructor;
160
168
  required: true;
@@ -4144,6 +4152,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
4144
4152
  patientInfo: any;
4145
4153
  }>;
4146
4154
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "openPatientInfo" | "fieldSet" | "update:compact")[], "formChange" | "openPatientInfo" | "fieldSet" | "update:compact", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
4155
+ anime: {
4156
+ type: BooleanConstructor;
4157
+ default: boolean;
4158
+ };
4147
4159
  compact: {
4148
4160
  type: BooleanConstructor;
4149
4161
  required: true;
@@ -4303,6 +4315,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
4303
4315
  onFieldSet?: ((...args: any[]) => any) | undefined;
4304
4316
  "onUpdate:compact"?: ((...args: any[]) => any) | undefined;
4305
4317
  }, {
4318
+ anime: boolean;
4306
4319
  patientInfo: Partial<{
4307
4320
  avatar: string;
4308
4321
  avatarPreview: string;
@@ -2,6 +2,10 @@ import { AnyObject, Func } from '../../../../es/shared/types';
2
2
  import { PropType, VNode } from 'vue';
3
3
  import { FormRenderExpose } from '../../../../es/components/form-render';
4
4
  declare const _default: import("vue").DefineComponent<{
5
+ anime: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
5
9
  compact: {
6
10
  type: BooleanConstructor;
7
11
  required: true;
@@ -155,6 +159,10 @@ declare const _default: import("vue").DefineComponent<{
155
159
  };
156
160
  }, {
157
161
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
162
+ anime: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
158
166
  compact: {
159
167
  type: BooleanConstructor;
160
168
  required: true;
@@ -4138,6 +4146,10 @@ declare const _default: import("vue").DefineComponent<{
4138
4146
  patientInfo: any;
4139
4147
  }>;
4140
4148
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "openPatientInfo" | "fieldSet" | "update:compact")[], "formChange" | "openPatientInfo" | "fieldSet" | "update:compact", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
4149
+ anime: {
4150
+ type: BooleanConstructor;
4151
+ default: boolean;
4152
+ };
4141
4153
  compact: {
4142
4154
  type: BooleanConstructor;
4143
4155
  required: true;
@@ -4295,6 +4307,7 @@ declare const _default: import("vue").DefineComponent<{
4295
4307
  onFieldSet?: ((...args: any[]) => any) | undefined;
4296
4308
  "onUpdate:compact"?: ((...args: any[]) => any) | undefined;
4297
4309
  }, {
4310
+ anime: boolean;
4298
4311
  patientInfo: Partial<{
4299
4312
  avatar: string;
4300
4313
  avatarPreview: string;
@@ -1 +1 @@
1
- import{defineComponent as e,provide as t,ref as n,computed as o,openBlock as a,createElementBlock as i,createCommentVNode as s,renderSlot as r,createElementVNode as c,normalizeClass as f,normalizeStyle as p,unref as l,createVNode as d,withCtx as u,mergeProps as m,Fragment as h,renderList as g,createBlock as v,resolveDynamicComponent as y,h as b,nextTick as _}from"vue";import{isString as I}from"lodash-es";import $ from"./components/infoDescription/index.vue.js";import x from"./components/patientInfo/index.vue.js";import{InjectionInfoHeaderEmit as S,InjectionInfoHeaderFormRef as j}from"./constants/index.js";const z={class:"c-info-header"},w={class:"c-info-header__operation"},k={key:0,class:"c-info-header__divider"},C={class:"c-info-header__setting"},H=["onClick"];var P=e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},patientInfo:{type:Object,default:()=>({})},patientEditable:{type:Boolean},separator:{type:String,default:":"},infoList:{type:Array,default:()=>[]},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:38},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]},formProps:{type:Object}},emits:["openPatientInfo","fieldSet","update:compact","formChange"],setup(e,{expose:P,emit:A}){const B=e;t(S,A);const D=n();function E(){var e;return null==(e=D.value)?void 0:e.updateColumn()}const F=o((()=>({"--row-height":B.rowHeight,"--row-num":B.compact?1:2,"--padding-tb":B.compact?9:4}))),N={patientInfo:{event:function(){A("openPatientInfo")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){A("fieldSet")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){A("update:compact",!B.compact),await _(),await E()},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},O=o((()=>B.settingIcons.map((e=>(I(e)?N[e]:e)||{})))),R=n();return t(j,R),P({update:E,$formRender:R}),(t,n)=>(a(),i("header",z,[s(" 顶部插槽 "),r(t.$slots,"header"),c("div",{class:f(["c-info-header__content",{"is-compact":e.compact}]),style:p(l(F))},[c("section",w,[s(" 操作区插槽 "),r(t.$slots,"operation")]),t.$slots.operation?(a(),i("div",k)):s("v-if",!0),s(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),r(t.$slots,"patientModule",{},(()=>[d(l(x),{"patient-info":e.patientInfo,"patient-editable":e.patientEditable},{avatarInfo:u((()=>[s(" 头像区补充内容插槽 (会插入头像下方) "),r(t.$slots,"avatarInfo")])),avatar:u((()=>[s(" 头像插槽 "),r(t.$slots,"avatar")])),tags:u((()=>[s(" 标签插槽 "),r(t.$slots,"tags")])),_:3},8,["patient-info","patient-editable"])])),d(l($),m({ref_key:"infoDescriptionRef",ref:D,"root-slot":t.$slots},t.$props),{info:u((()=>[s(" 信息描述区插槽 "),r(t.$slots,"info")])),_:3},16,["root-slot"]),c("section",C,[s(" 设置区插槽 "),r(t.$slots,"setting",{},(()=>[(a(!0),i(h,null,g(l(O),(e=>(a(),i("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(a(),v(y(e.render)))],8,H)))),128))]))])],6),s(" 底部插槽 "),r(t.$slots,"footer")]))}});export{P as default};
1
+ import{defineComponent as e,provide as t,ref as n,computed as o,openBlock as a,createElementBlock as i,normalizeClass as s,createCommentVNode as r,renderSlot as c,createElementVNode as l,normalizeStyle as f,unref as p,createVNode as d,withCtx as m,mergeProps as u,Fragment as h,renderList as g,createBlock as v,resolveDynamicComponent as y,h as b,nextTick as _}from"vue";import{isString as I}from"lodash-es";import $ from"./components/infoDescription/index.vue.js";import x from"./components/patientInfo/index.vue.js";import{InjectionInfoHeaderEmit as S,InjectionInfoHeaderFormRef as j}from"./constants/index.js";const z={class:"c-info-header__operation"},w={key:0,class:"c-info-header__divider"},k={class:"c-info-header__setting"},C=["onClick"];var B=e({__name:"InfoHeader",props:{anime:{type:Boolean,default:!0},compact:{type:Boolean,required:!0},patientInfo:{type:Object,default:()=>({})},patientEditable:{type:Boolean},separator:{type:String,default:":"},infoList:{type:Array,default:()=>[]},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:24},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]},formProps:{type:Object}},emits:["openPatientInfo","fieldSet","update:compact","formChange"],setup(e,{expose:B,emit:H}){const P=e;t(S,H);const A=n();function D(){var e;return null==(e=A.value)?void 0:e.updateColumn()}const E=o((()=>({"--row-height":P.rowHeight,"--row-num":P.compact?1:2,"--padding-tb":P.compact?6:4}))),F={patientInfo:{event:function(){H("openPatientInfo")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){H("fieldSet")},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){H("update:compact",!P.compact),await _(),await D()},render:()=>[b("i",{class:"info-header--iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},N=o((()=>P.settingIcons.map((e=>(I(e)?F[e]:e)||{})))),O=n();return t(j,O),B({update:D,$formRender:O}),(t,n)=>(a(),i("header",{class:s(["c-info-header",{"anime--disabled":!e.anime}])},[r(" 顶部插槽 "),c(t.$slots,"header"),l("div",{class:s(["c-info-header__content",{"is-compact":e.compact}]),style:f(p(E))},[l("section",z,[r(" 操作区插槽 "),c(t.$slots,"operation")]),t.$slots.operation?(a(),i("div",w)):r("v-if",!0),r(" 患者信息区插槽,需要自己实现整个患者信息区时使用 "),c(t.$slots,"patientModule",{},(()=>[d(p(x),{"patient-info":e.patientInfo,"patient-editable":e.patientEditable},{avatarInfo:m((()=>[r(" 头像区补充内容插槽 (会插入头像下方) "),c(t.$slots,"avatarInfo")])),avatar:m((()=>[r(" 头像插槽 "),c(t.$slots,"avatar")])),tags:m((()=>[r(" 标签插槽 "),c(t.$slots,"tags")])),_:3},8,["patient-info","patient-editable"])])),d(p($),u({ref_key:"infoDescriptionRef",ref:A,"root-slot":t.$slots},t.$props),{info:m((()=>[r(" 信息描述区插槽 "),c(t.$slots,"info")])),_:3},16,["root-slot"]),l("section",k,[r(" 设置区插槽 "),c(t.$slots,"setting",{},(()=>[(a(!0),i(h,null,g(p(N),(e=>(a(),i("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(a(),v(y(e.render)))],8,C)))),128))]))])],6),r(" 底部插槽 "),c(t.$slots,"footer")],2))}});export{B as default};
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,ref as a,watch as n,nextTick as i,openBlock as l,createElementBlock as o,renderSlot as r,createVNode as s,unref as p,withCtx as f,mergeProps as d,createElementVNode as u,normalizeClass as c,createBlock as v,resolveDynamicComponent as m,createCommentVNode as _,createTextVNode as g,Fragment as x,renderList as y,toDisplayString as I,h}from"vue";import{isArray as w,isString as b,isNumber as k,isFunction as P,isObject as E,pick as U}from"lodash-es";import{NPopover as C,NImage as L,NDivider as H,NSpace as z,NButton as T,NTag as j,NEllipsis as F}from"naive-ui";import N from"../../../../form-render/index.js";const R={class:"c-info-header__patient"},$={class:"c-info-header__patientHeader"},B={key:0,class:"c-info-header__patientHeader--name"},S={key:1,class:"c-info-header__patientHeader--sex"},V={key:2,class:"c-info-header__patientHeader--age"};var D=e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const D=e,M=t((()=>D.patientInfo&&w(D.patientInfo.tagList)?D.patientInfo.tagList.filter((e=>e.render||b(e.content)&&e.content)):[])),O={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},W={warning:"#fff",info:"#2563F4"};function q({type:e="warning"}){return{color:O[e],textColor:W[e]}}function A(e){return()=>b(e)||k(e)?e:P(e)?e():E(e)?h(e):null}const G=a(!1),J=t((()=>D.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:"姓名",html_type:"INPUT",...D.patientInfo.nameProps},{val_key:"sex",alias:"性别",html_type:"SELECT",is_null:"0",option:[{text:"未知",value:"未知"},{text:"男",value:"男"},{text:"女",value:"女"}],...D.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...D.patientInfo.ageProps,suffixConfig:{alias:"年龄单位",is_null:"0",val_key:"ageUnit",html_type:"SELECT",decoratorProps:{style:{flex:1}},option:[{value:"天",text:"天"},{value:"月",text:"月"},{value:"岁",text:"岁"},{value:"小时",text:"小时"},{value:"分",text:"分"},{value:"周",text:"周"}],...D.patientInfo.ageUnitProps}}]:[])),K=a();async function Q(){K.value&&(await K.value.validate(),Object.assign(D.patientInfo,U(K.value.getFormValues(),["name","sex","age","ageUnit"])),G.value=!1)}return n(G,(async e=>{await i(),e&&K.value&&K.value.setFormValues(D.patientInfo||{})})),(t,a)=>(l(),o("section",R,[r(t.$slots,"avatar",{},(()=>[s(p(C),null,{trigger:f((()=>[s(p(L),d({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:f((()=>[s(p(L),d({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),u("section",null,[u("header",$,[s(p(C),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:G.value},{trigger:f((()=>{var t;return[u("section",{class:c(["c-info-header__patientHeaderWrapper",{"in-edit":G.value}]),onDblclick:a[0]||(a[0]=t=>e.patientEditable&&(G.value=!0))},[e.patientInfo.name?(l(),o("div",B,[(l(),v(m(A(e.patientInfo.name))))])):_("v-if",!0),e.patientInfo.sex?(l(),o("div",S,[g(" / "),(l(),v(m(A(e.patientInfo.sex))))])):_("v-if",!0),null!=e.patientInfo.age?(l(),o("div",V,[g(" / "),(l(),v(m(A(e.patientInfo.age)))),(l(),v(m(A(null!=(t=e.patientInfo.ageUnit)?t:"岁"))))])):_("v-if",!0)],34)]})),default:f((()=>[s(p(N),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":p(J),ref_key:"formRenderRef",ref:K},null,8,["field-list"]),s(p(H),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),s(p(z),{justify:"end"},{default:f((()=>[s(p(T),{size:"small",onClick:a[1]||(a[1]=e=>G.value=!1)},{default:f((()=>[g("取消")])),_:1}),s(p(T),{size:"small",type:"info",onClick:Q},{default:f((()=>[g("确认")])),_:1})])),_:1})])),_:1},8,["disabled","show"]),r(t.$slots,"tags",{tagList:p(M)},(()=>[(l(!0),o(x,null,y(e.patientInfo.tagList||[],(e=>(l(),v(p(j),d({key:e.content,size:"medium",bordered:!1,color:q(e)},e),{default:f((()=>[e.render?(l(),v(m(e.render),{key:0})):(l(),v(p(F),{key:1,style:{"max-width":"96px"}},{default:f((()=>[g(I(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),r(t.$slots,"avatarInfo")])]))}});export{D as default};
1
+ import{defineComponent as e,computed as t,ref as a,watch as n,nextTick as i,openBlock as l,createElementBlock as o,renderSlot as r,createVNode as s,unref as p,withCtx as f,mergeProps as d,createElementVNode as u,normalizeClass as c,createBlock as v,resolveDynamicComponent as m,createCommentVNode as _,createTextVNode as g,Fragment as x,renderList as y,toDisplayString as I,h}from"vue";import{isArray as w,isString as b,isNumber as k,isFunction as P,isObject as E,pick as U}from"lodash-es";import{NPopover as C,NImage as L,NDivider as H,NSpace as z,NButton as T,NTag as j,NEllipsis as F}from"naive-ui";import N from"../../../../form-render/index.js";const R={class:"c-info-header__patient"},$={class:"c-info-header__patientHeader"},B={key:0,class:"c-info-header__patientHeader--name"},S={key:1,class:"c-info-header__patientHeader--sex"},V={key:2,class:"c-info-header__patientHeader--age"};var D=e({__name:"index",props:{patientInfo:{default:()=>({})},patientEditable:{type:Boolean}},setup(e){const D=e,M=t((()=>D.patientInfo&&w(D.patientInfo.tagList)?D.patientInfo.tagList.filter((e=>e.render||b(e.content)&&e.content)):[])),O={warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"},W={warning:"#fff",info:"#2563F4"};function q({type:e="warning"}){return{color:O[e],textColor:W[e]}}function A(e){return()=>b(e)||k(e)?e:P(e)?e():E(e)?h(e):null}const G=a(!1),J=t((()=>D.patientEditable?[{val_key:"name",is_null:"0",is_empty:"0",alias:"姓名",html_type:"INPUT",...D.patientInfo.nameProps},{val_key:"sex",alias:"性别",html_type:"SELECT",is_null:"0",option:[{text:"未知",value:"未知"},{text:"男",value:"男"},{text:"女",value:"女"}],...D.patientInfo.sexProps},{val_key:"age",alias:"年龄",html_type:"INPUT_NUMBER",is_null:"0",is_empty:"0",decoratorProps:{style:{flex:2}},...D.patientInfo.ageProps,suffixConfig:{alias:"年龄单位",is_null:"0",val_key:"ageUnit",html_type:"SELECT",decoratorProps:{style:{flex:1}},option:[{value:"天",text:"天"},{value:"月",text:"月"},{value:"岁",text:"岁"},{value:"小时",text:"小时"},{value:"分",text:"分"},{value:"周",text:"周"}],...D.patientInfo.ageUnitProps}}]:[])),K=a();async function Q(){K.value&&(await K.value.validate(),Object.assign(D.patientInfo,U(K.value.getFormValues(),["name","sex","age","ageUnit"])),G.value=!1)}return n(G,(async e=>{await i(),e&&K.value&&K.value.setFormValues(D.patientInfo||{})})),(t,a)=>(l(),o("section",R,[r(t.$slots,"avatar",{},(()=>[s(p(C),null,{trigger:f((()=>[s(p(L),d({style:{"border-radius":"50%"},width:36,height:36,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:f((()=>[s(p(L),d({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),u("section",null,[u("header",$,[s(p(C),{disabled:!e.patientEditable,trigger:"manual",placement:"bottom",show:G.value},{trigger:f((()=>{var t;return[u("section",{class:c(["c-info-header__patientHeaderWrapper",{"in-edit":G.value}]),onDblclick:a[0]||(a[0]=t=>e.patientEditable&&(G.value=!0))},[e.patientInfo.name?(l(),o("div",B,[(l(),v(m(A(e.patientInfo.name))))])):_("v-if",!0),e.patientInfo.sex?(l(),o("div",S,[g(" / "),(l(),v(m(A(e.patientInfo.sex))))])):_("v-if",!0),null!=e.patientInfo.age?(l(),o("div",V,[g(" / "),(l(),v(m(A(e.patientInfo.age)))),(l(),v(m(A(null!=(t=e.patientInfo.ageUnit)?t:"岁"))))])):_("v-if",!0)],34)]})),default:f((()=>[s(p(N),{column:"6",size:"small","label-placement":"left",style:{width:"200px",margin:"4px 0 -8px 0"},"field-list":p(J),ref_key:"formRenderRef",ref:K},null,8,["field-list"]),s(p(H),{style:{margin:"8px -14px",width:"calc(100% + 28px)"}}),s(p(z),{justify:"end"},{default:f((()=>[s(p(T),{size:"small",onClick:a[1]||(a[1]=e=>G.value=!1)},{default:f((()=>[g("取消")])),_:1}),s(p(T),{size:"small",type:"info",onClick:Q},{default:f((()=>[g("确认")])),_:1})])),_:1})])),_:1},8,["disabled","show"]),r(t.$slots,"tags",{tagList:p(M)},(()=>[(l(!0),o(x,null,y(e.patientInfo.tagList||[],(e=>(l(),v(p(j),d({key:e.content,size:"medium",bordered:!1,color:q(e)},e),{default:f((()=>[e.render?(l(),v(m(e.render),{key:0})):(l(),v(p(F),{key:1,style:{"max-width":"96px"}},{default:f((()=>[g(I(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),r(t.$slots,"avatarInfo")])]))}});export{D as default};
@@ -1 +1 @@
1
- .c-info-header{background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);padding:0 16px}@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__content{align-items:center;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) 0;transition:height .2s linear,padding .2s linear}.c-info-header__content [compact-hidden]{max-height:160px;transition:max-height .2s ease-in-out,opacity .2s linear}.c-info-header__content.is-compact [compact-hidden]{max-height:0!important;opacity:0!important}.c-info-header__content.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.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 .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
+ .c-info-header{background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:block!important;padding:0 16px!important}@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.anime--disabled{transition:none!important}.c-info-header__content{align-items:center;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) 0;transition:height .2s linear,padding .2s linear}.c-info-header__content [compact-hidden]{max-height:160px;transition:max-height .2s ease-in-out,opacity .2s linear}.c-info-header__content.is-compact [compact-hidden]{max-height:0!important;opacity:0!important;visibility:hidden}.c-info-header__content.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.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 .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}.anime--disabled .c-info-header,.anime--disabled .c-info-header__content,.anime--disabled .c-info-header__content [compact-hidden],.anime--disabled .c-info-header__infoWrapper{transition:none!important}
@@ -1 +1 @@
1
- .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
1
+ .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.classify-fieldkey-popover{width:200px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
@@ -270,7 +270,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
270
270
  isPreviewScale: import("vue").ComputedRef<any>;
271
271
  showEvaluateEntry: import("vue").ComputedRef<any>;
272
272
  showEvaluateCoundownPage: import("vue").ComputedRef<any>;
273
- showSaveBtn: import("vue").ComputedRef<boolean>;
273
+ showSaveBtn: import("vue").ComputedRef<any>;
274
274
  showEvaluateLabel: import("vue").ComputedRef<(item: any) => any>;
275
275
  showAnswerParse: import("vue").ComputedRef<(item: any) => any>;
276
276
  propsConfig: import("vue").ComputedRef<(item: any, index: number) => any>;
@@ -295,6 +295,9 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
295
295
  }>;
296
296
  isEvaluetaResSituation: import("vue").ComputedRef<any>;
297
297
  disableEdit: import("vue").ComputedRef<any>;
298
+ desStart: import("vue").ComputedRef<boolean>;
299
+ desEnd: import("vue").ComputedRef<boolean>;
300
+ desContent: import("vue").ComputedRef<any>;
298
301
  initForm: (data: any) => void;
299
302
  submitMethod: () => {
300
303
  params: any;
@@ -451,6 +454,8 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
451
454
  }>> & {
452
455
  onCloseEvaluateCountdown?: ((...args: any[]) => any) | undefined;
453
456
  }>>;
457
+ useFormArray: import("vue").ComputedRef<unknown[]>;
458
+ curShowTotalLen: import("vue").ComputedRef<number>;
454
459
  calcShowEvaluateCountdown: import("vue").ComputedRef<boolean>;
455
460
  toggleIcon: import("vue").ComputedRef<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
456
461
  hasEva: import("vue").ComputedRef<unknown>;
@@ -688,6 +693,26 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
688
693
  maxScore: number;
689
694
  config: Record<string, any>;
690
695
  }>;
696
+ DescribeContent: import("vue").DefineComponent<{
697
+ content: {
698
+ type: StringConstructor;
699
+ default: string;
700
+ };
701
+ }, {
702
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
703
+ content: {
704
+ type: StringConstructor;
705
+ default: string;
706
+ };
707
+ }>> & {}>>;
708
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
709
+ content: {
710
+ type: StringConstructor;
711
+ default: string;
712
+ };
713
+ }>>, {
714
+ content: string;
715
+ }>;
691
716
  NButton: any;
692
717
  NForm: any;
693
718
  NFormItem: import("vue").DefineComponent<{
@@ -268,7 +268,7 @@ declare const _default: import("vue").DefineComponent<{
268
268
  isPreviewScale: import("vue").ComputedRef<any>;
269
269
  showEvaluateEntry: import("vue").ComputedRef<any>;
270
270
  showEvaluateCoundownPage: import("vue").ComputedRef<any>;
271
- showSaveBtn: import("vue").ComputedRef<boolean>;
271
+ showSaveBtn: import("vue").ComputedRef<any>;
272
272
  showEvaluateLabel: import("vue").ComputedRef<(item: any) => any>;
273
273
  showAnswerParse: import("vue").ComputedRef<(item: any) => any>;
274
274
  propsConfig: import("vue").ComputedRef<(item: any, index: number) => any>;
@@ -293,6 +293,9 @@ declare const _default: import("vue").DefineComponent<{
293
293
  }>;
294
294
  isEvaluetaResSituation: import("vue").ComputedRef<any>;
295
295
  disableEdit: import("vue").ComputedRef<any>;
296
+ desStart: import("vue").ComputedRef<boolean>;
297
+ desEnd: import("vue").ComputedRef<boolean>;
298
+ desContent: import("vue").ComputedRef<any>;
296
299
  initForm: (data: any) => void;
297
300
  submitMethod: () => {
298
301
  params: any;
@@ -449,6 +452,8 @@ declare const _default: import("vue").DefineComponent<{
449
452
  }>> & {
450
453
  onCloseEvaluateCountdown?: ((...args: any[]) => any) | undefined;
451
454
  }>>;
455
+ useFormArray: import("vue").ComputedRef<unknown[]>;
456
+ curShowTotalLen: import("vue").ComputedRef<number>;
452
457
  calcShowEvaluateCountdown: import("vue").ComputedRef<boolean>;
453
458
  toggleIcon: import("vue").ComputedRef<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
454
459
  hasEva: import("vue").ComputedRef<unknown>;
@@ -686,6 +691,26 @@ declare const _default: import("vue").DefineComponent<{
686
691
  maxScore: number;
687
692
  config: Record<string, any>;
688
693
  }>;
694
+ DescribeContent: import("vue").DefineComponent<{
695
+ content: {
696
+ type: StringConstructor;
697
+ default: string;
698
+ };
699
+ }, {
700
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
701
+ content: {
702
+ type: StringConstructor;
703
+ default: string;
704
+ };
705
+ }>> & {}>>;
706
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
707
+ content: {
708
+ type: StringConstructor;
709
+ default: string;
710
+ };
711
+ }>>, {
712
+ content: string;
713
+ }>;
689
714
  NButton: any;
690
715
  NForm: any;
691
716
  NFormItem: import("vue").DefineComponent<{
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as s,openBlock as n,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as u,createBlock as c,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}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import{NForm as M,NFormItem as O,NButton as I}from"naive-ui";const J=["innerHTML"],V={key:0,class:"required-text"},G={key:1,class:"evalute-label"},W=["onClick"],B=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),H={key:1,class:"footer"};var Q=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:Q}){const z=e,{ScaleViewState:K}=C(),U=o(K),X=a(null),Y=a(null),{noDataState:Z,setNoData:$,resetNodata:ee}=S(),oe=x(),{showEvatip:ae,isFormBoldOpen:te,scaleStyle:se,handlePageClass:ne,isShowItem:ie,handleShowQuestionNumber:le,hasScore:re,isPreviewScale:me,showEvaluateEntry:ue,showEvaluateCoundownPage:ce,showSaveBtn:de,showEvaluateLabel:pe,showAnswerParse:ve,propsConfig:fe,evaluatePageProps:ge,evaluateCountdownProps:he,isEvaluetaResSituation:ke,disableEdit:ye}=D(z,U,{query:oe}),{initForm:we}=E(z,U,Q,{query:oe}),{submitMethod:Se,onSubmitData:be,onSubmitForm:Ce,handleScoreJson:De}=j(z,U,Q,{query:oe,formRef:Y,countdownDom:X}),{nextLogicEvent:Ee,handleDynamicDataRelation:je}=q(z,U),{scaleChange:_e,labelChange:xe,vodFileList:Pe,writeGuage:qe,closeEvaluateCountdown:Fe,showEvaTipModal:Le}=_(z,U,Q,{nextLogicEvent:Ee,handleDynamicDataRelation:je,isPreviewScale:me,submitMethod:Se,isEvaluetaResSituation:ke,handleScoreJson:De,disableEdit:ye});(()=>{let{id:e}=oe;e&&(U.shareId=e)})();const Ne=e=>{try{ee(),we(e)}catch(e){console.log(e,"--error"),U.spinning=!1,U.hasFrontAddress=!1,$(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>z.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Ne(e):e.guage_id&&Ne(e)}),{immediate:!0}),t((()=>z.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;U.form={},U.formArray=[];const o=JSON.parse(JSON.stringify(e));s((()=>{we(o)}))}),{immediate:!0});const Re=F.debounce(be,300),Te=()=>{Q("onCloseSetting")};return b({getScaleData:()=>({...U}),onSubmitForm:Ce,cancel:Te}),(e,o)=>(n(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(de)}])},[m(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="加载中"></n-spin>\r\n </template> '),U.spinning||U.hasFrontAddress?m("v-if",!0):(n(),i(u,{key:0},[r(Z).noData?(n(),c(L,{key:0,noDataImg:r(Z).noDataImg,noDataTip:r(Z).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),i(u,{key:1},[r(ue)?(n(),c(R,d({key:0},r(ge),{onWriteGuage:r(qe)}),null,16,["onWriteGuage"])):(n(),i(u,{key:1},[r(ce)?(n(),c(N,d({key:0,ref_key:"countdownDom",ref:X},r(he),{onCloseEvaluateCountdown:r(Fe)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ne),"scale-container-hasfooter":r(de)}]),style:v(r(se))},[r(re)?(n(),c(r(A),{key:0,config:U.config,maxScore:U.maxScore},null,8,["config","maxScore"])):m("v-if",!0),f(r(M),{ref_key:"formRef",ref:Y,model:U.form,rules:U.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),i(u,null,h(U.formArray,((e,o)=>(n(),i(u,{key:(e.id||e.seq)+o},[r(ie)(e)?(n(),c(r(O),{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(te)(e)}),innerHTML:r(le)(e)},null,10,J),r(te)(e)?(n(),i("span",V,"(必填)")):m("v-if",!0),r(pe)(e)?(n(),i("span",G,k(r(pe)(e)),1)):m("v-if",!0),r(ae)(e)?(n(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Le)(e)},[B,y(" 查看提示 ")],8,W)):m("v-if",!0)])),default:g((()=>[(n(),c(w(e.renderCom),d(r(fe)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(_e),onOnChange:o=>r(xe)(o,e),onVodFileList:r(Pe)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(ve)(e)?(n(),c(T,{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"])],6),r(de)?(n(),i("div",H,[m(" 分享的链接 隐藏取消按钮 "),"guage"!==z.sourceType?(n(),c(r(I),{key:0,onClick:Te},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),z.isLock?m("v-if",!0):(n(),c(r(I),{key:1,onClick:r(Re),disabled:U.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"]))])):m("v-if",!0)],64))],64))],64))],2))}});export{Q as default};
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}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!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&&Me(e):e.guage_id&&Me(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((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[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($).noData?(s(),u(L,{key:0,noDataImg:r($).noDataImg,noDataTip:r($).noDataTip},null,8,["noDataImg","noDataTip"])):(s(),i(c,{key:1},[r(ue)?(s(),u(R,d({key:0},r(he),{onWriteGuage:r(Re)}),null,16,["onWriteGuage"])):(s(),i(c,{key:1},[r(de)?(s(),u(N,d({key:0,ref_key:"countdownDom",ref:Y},r(ke),{onCloseEvaluateCountdown:r(Te)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ie),"scale-container-hasfooter":r(pe)}]),style:v(r(se))},[r(me)?(s(),u(r(A),{key:0,config:X.config,maxScore:X.maxScore},null,8,["config","maxScore"])):m("v-if",!0),r(Se)?(s(),u(M,{key:1,content:r(Ce)},null,8,["content"])):m("v-if",!0),f(r(O),{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(le)(e)?(s(),u(r(I),{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(ne)(e)}),innerHTML:r(re)(e)},null,10,V),r(ne)(e)?(s(),i("span",G,"(必填)")):m("v-if",!0),r(ve)(e)?(s(),i("span",W,k(r(ve)(e)),1)):m("v-if",!0),r(ae)(e)?(s(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Ae)(e)},[H,y(" 查看提示 ")],8,B)):m("v-if",!0)])),default:g((()=>[(s(),u(w(e.renderCom),d(r(ge)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(Fe),onOnChange:o=>r(Le)(o,e),onVodFileList:r(Ne)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(fe)(e)?(s(),u(T,{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(be)?(s(),u(M,{key:2,content:r(Ce)},null,8,["content"])):m("v-if",!0)],6),r(pe)?(s(),i("div",Q,[m(" 分享的链接 隐藏取消按钮 "),"guage"!==K.sourceType?(s(),u(r(J),{key:0,onClick:Ie},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),K.isLock?m("v-if",!0):(s(),u(r(J),{key:1,onClick:r(Oe),disabled:X.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"]))])):m("v-if",!0)],64))],64))],64))],2))}});export{z as default};
@@ -0,0 +1,21 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ content: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ }, {
7
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
8
+ content: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ }>> & {}>>;
13
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ content: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ }>>, {
19
+ content: string;
20
+ }>;
21
+ export default _default;
@@ -0,0 +1 @@
1
+ import e from"./DescribeContent.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","DescribeContent.vue"]]);export{t as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as n,openBlock as t,createElementBlock as e,createElementVNode as r}from"vue";const s={class:"des-content-wrap"},o={class:"des-content-div"},c=["innerHTML"];var i=n({__name:"DescribeContent",props:{content:{type:String,default:""}},setup(n){const i=n;return(n,a)=>(t(),e("div",s,[r("div",o,[r("div",{innerHTML:i.content},null,8,c)])]))}});export{i as default};
@@ -83,6 +83,8 @@ declare const _default: import("vue").DefineComponent<{
83
83
  }>> & {
84
84
  onCloseEvaluateCountdown?: ((...args: any[]) => any) | undefined;
85
85
  }>>;
86
+ useFormArray: import("vue").ComputedRef<unknown[]>;
87
+ curShowTotalLen: import("vue").ComputedRef<number>;
86
88
  calcShowEvaluateCountdown: import("vue").ComputedRef<boolean>;
87
89
  toggleIcon: import("vue").ComputedRef<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
88
90
  hasEva: import("vue").ComputedRef<unknown>;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as t,computed as a,onMounted as o,watch as n,openBlock as l,createElementBlock as s,normalizeClass as r,unref as u,createBlock as i,createCommentVNode as d,createElementVNode as c,toDisplayString as v,createTextVNode as f,Fragment as w,normalizeStyle as m}from"vue";import{NIcon as p}from"naive-ui";import{ChevronUpSharp as y,ChevronDownSharp as b}from"@vicons/ionicons5";import"xe-utils";import S from"moment";import C from"../../../../shared/utils/vexutilsExpand.js";import{useEvaluate as R}from"../hooks/use-evaluate.js";const g=c("i",{class:"scale-view-iconfont icon-scale-view-shijian"},null,-1),j={class:"answered-wrap"},E={class:"answered-num"},h={class:"answered-blod"},A={class:"answered-blue"},O={class:"answered-blod"},k={class:"answered-blue"},T={key:0};var x=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},isEvaluetaResSituation:{type:Boolean,default:!1},evaResultObj:{type:Object,default:()=>({})},skipCover:{type:Boolean,default:!1}},emits:["closeEvaluateCountdown"],setup(e,{expose:x,emit:L}){const _=e,B=t({source:"countdown",setAnswered:0,unfold:!0,answeredScore:0,totalScore:0,answeredRes:"",answeredColor:"#212121"}),U=a((()=>_.showEvaluateCountdown&&!_.skipCover)),V=a((()=>B.unfold?y:b)),D=a((()=>_.formArray.find((e=>e.type.includes("EVALUATE_"))))),N=a((()=>!!D.value&&(_.isEvaluetaResSituation&&B.unfold))),{evaluateState:W,evaluateStartTime:q,showCountdown:z,getTotalLen:F,countdown:G,clearTimer:H}=R(_,B,{emit:L}),I=e=>{if(!D.value||!_.isEvaluetaResSituation)return;let{evaluateResultColor:t,evaluateResult:a,totalScore:o}=e;if(B.answeredScore=o||0,!a)return B.answeredRes="",void(B.answeredColor="#212121");t&&"string"==typeof t&&t.startsWith("#")||(t="#212121"),B.answeredRes=a,B.answeredColor=t},J=()=>{D.value&&(()=>{let e=0,t=_.formArray.filter((e=>e.type.includes("EVALUATE_")));if(!t.length)return B.totalScore=e,e;t.forEach((t=>{var a;const o=t.scoreConfigs?+(null==(a=t.scoreConfigs)?void 0:a.maxScore):0;e=C.add(e,o)})),B.totalScore=e})(),F();let{evaluateTime:e}=_.evaluateResultSetting;if(!z.value||!e||!U.value)return;let t=(q.value?S(q.value):S()).add(e,"minutes");H(),G(t)},K=()=>{B.unfold=!B.unfold};o((()=>{J()})),n((()=>_.form),(e=>{(e||Object.keys(e).length)&&(e=>{var t;let a=null==(t=_.formArray)?void 0:t.filter((e=>!W.filterArr.includes(e.type)));if(!a||!a.length)return;let o={};a.forEach((t=>{const a=t.databaseTitle||t.title;o[a]=e[a]}));let n=0;for(let e in o){let t=o[e],a=(l=t,Object.prototype.toString.call(l));"[object Object]"==a?t&&Object.keys(t).length&&n++:"[object Array]"==a?t&&t.length&&n++:"[object Number]"==a?(t||0===t)&&n++:t&&n++}var l;B.setAnswered=n})(e)}),{immediate:!0,deep:!0}),n((()=>_.evaResultObj),(e=>{(e||Object.keys(e).length)&&I(e)}),{immediate:!0,deep:!0});return x({getCountdownObj:()=>({setAnswered:B.setAnswered,totalLen:W.totalLen})}),(e,t)=>(l(),s("div",{class:r(["c-evaluateCountdown",{"evaluateCountdown-hasTime":u(U),"evaluateCountdown-EvaluetaResSituation":_.isEvaluetaResSituation}])},[_.isEvaluetaResSituation?(l(),i(u(p),{key:0,class:"evaluate-toggle-icon",component:u(V),onClick:K},null,8,["component"])):d("v-if",!0),u(U)?(l(),s("div",{key:1,class:r(["countdown",{"countdown-red":u(W).countdownRed}])},[c("span",null,v(u(W).countdownStr),1),g],2)):d("v-if",!0),c("div",j,[c("div",E,[f(" 作答数量:"),c("span",h,v(B.setAnswered),1),f("/"),c("span",A,v(u(W).totalLen),1)]),u(N)?(l(),s(w,{key:0},[c("div",null,[f("作答分数:"),c("span",O,v(B.answeredScore),1),f("/"),c("span",k,v(B.totalScore),1)]),B.answeredRes?(l(),s("div",T,[f("作答结果:"),c("span",{style:m({color:B.answeredColor})},v(B.answeredRes),5)])):d("v-if",!0)],64)):d("v-if",!0)])],2))}});export{x as default};
1
+ import{defineComponent as e,reactive as t,computed as a,onMounted as o,watch as l,openBlock as n,createElementBlock as s,normalizeClass as r,unref as u,createBlock as i,createCommentVNode as d,createElementVNode as c,toDisplayString as v,createTextVNode as f,Fragment as w,normalizeStyle as m}from"vue";import{NIcon as p}from"naive-ui";import{ChevronUpSharp as y,ChevronDownSharp as S}from"@vicons/ionicons5";import"xe-utils";import b from"moment";import C from"../../../../shared/utils/vexutilsExpand.js";import{useEvaluate as g}from"../hooks/use-evaluate.js";const h=c("i",{class:"scale-view-iconfont icon-scale-view-shijian"},null,-1),R={class:"answered-wrap"},j={class:"answered-num"},E={class:"answered-blod"},A={class:"answered-blue"},O={class:"answered-blod"},k={class:"answered-blue"},T={key:0};var x=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},isEvaluetaResSituation:{type:Boolean,default:!1},evaResultObj:{type:Object,default:()=>({})},skipCover:{type:Boolean,default:!1}},emits:["closeEvaluateCountdown"],setup(e,{expose:x,emit:L}){const _=e,B=t({source:"countdown",setAnswered:0,unfold:!0,answeredScore:0,totalScore:0,answeredRes:"",answeredColor:"#212121"}),U=a((()=>_.formArray.filter((e=>!z.filterArr.includes(e.type)&&!e.hide&&e.isShow)))),V=a((()=>{var e;return null==(e=U.value)?void 0:e.length})),D=a((()=>_.showEvaluateCountdown&&!_.skipCover)),N=a((()=>B.unfold?y:S)),W=a((()=>_.formArray.find((e=>e.type.includes("EVALUATE_"))))),q=a((()=>!!W.value&&(_.isEvaluetaResSituation&&B.unfold))),{evaluateState:z,evaluateStartTime:F,showCountdown:G,getTotalLen:H,countdown:I,clearTimer:J}=g(_,B,{emit:L}),K=e=>{if(!W.value||!_.isEvaluetaResSituation)return;let{evaluateResultColor:t,evaluateResult:a,totalScore:o}=e;if(B.answeredScore=o||0,!a)return B.answeredRes="",void(B.answeredColor="#212121");t&&"string"==typeof t&&t.startsWith("#")||(t="#212121"),B.answeredRes=a,B.answeredColor=t},M=()=>{W.value&&(()=>{let e=0,t=_.formArray.filter((e=>e.type.includes("EVALUATE_")));if(!t.length)return B.totalScore=e,e;t.forEach((t=>{var a;const o=t.scoreConfigs?+(null==(a=t.scoreConfigs)?void 0:a.maxScore):0;e=C.add(e,o)})),B.totalScore=e})(),H();let{evaluateTime:e}=_.evaluateResultSetting;if(!G.value||!e||!D.value)return;let t=(F.value?b(F.value):b()).add(e,"minutes");J(),I(t)},P=()=>{B.unfold=!B.unfold};o((()=>{M()})),l((()=>_.form),(e=>{(e||Object.keys(e).length)&&(e=>{if(!U.value||!U.value.length)return;let t={};U.value.forEach((a=>{const o=a.databaseTitle||a.title;t[o]=e[o]}));let a=0;for(let e in t){let l=t[e],n=(o=l,Object.prototype.toString.call(o));"[object Object]"==n?l&&Object.keys(l).length&&a++:"[object Array]"==n?l&&l.length&&a++:"[object Number]"==n?(l||0===l)&&a++:l&&a++}var o;B.setAnswered=a})(e)}),{immediate:!0,deep:!0}),l((()=>_.evaResultObj),(e=>{(e||Object.keys(e).length)&&K(e)}),{immediate:!0,deep:!0});return x({getCountdownObj:()=>({setAnswered:B.setAnswered,totalLen:V.value})}),(e,t)=>(n(),s("div",{class:r(["c-evaluateCountdown",{"evaluateCountdown-hasTime":u(D),"evaluateCountdown-EvaluetaResSituation":_.isEvaluetaResSituation}])},[_.isEvaluetaResSituation?(n(),i(u(p),{key:0,class:"evaluate-toggle-icon",component:u(N),onClick:P},null,8,["component"])):d("v-if",!0),u(D)?(n(),s("div",{key:1,class:r(["countdown",{"countdown-red":u(z).countdownRed}])},[c("span",null,v(u(z).countdownStr),1),h],2)):d("v-if",!0),c("div",R,[c("div",j,[f(" 作答数量:"),c("span",E,v(B.setAnswered),1),f("/"),c("span",A,v(u(V)),1)]),u(q)?(n(),s(w,{key:0},[c("div",null,[f("作答分数:"),c("span",O,v(B.answeredScore),1),f("/"),c("span",k,v(B.totalScore),1)]),B.answeredRes?(n(),s("div",T,[f("作答结果:"),c("span",{style:m({color:B.answeredColor})},v(B.answeredRes),5)])):d("v-if",!0)],64)):d("v-if",!0)])],2))}});export{x as default};
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,reactive as a,createVNode as r,resolveComponent as u,createTextVNode as l}from"vue";import{NTimePicker as n,NDatePicker as i}from"naive-ui";import"xe-utils";import o from"moment";import s from"../../../../../shared/utils/vexutilsExpand.js";import{formatMap as d}from"../../utils/judge-types.js";var m=e({name:"RDatetime",components:{NTimePicker:n,NDatePicker:i},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,n){var i,m,c,p,f;const v=null==(i=e.item)?void 0:i.type,g=null==(c=null==(m=e.item)?void 0:m.setting)?void 0:c.startToStop,b="DATE"===v?"date":null==(f=null==(p=e.item)?void 0:p.setting)?void 0:f.dateType,D=t((()=>d[b])),V=t((()=>"datehour"===b?"datetime":b)),N=t((()=>"datehour"===b?"HH:mm":"HH:mm:ss")),k=a({rangeValue:[null,null],dateValue:null}),w=t((()=>"datetime"==b||"datehour"==b?"datetimerange":"daterange")),y=e=>["time","hour"].includes(e),H=e=>{const t=k.rangeValue[1];if(!t)return!1;return e>Number(new Date(t).getHours())},h=(e,t)=>{if(null===t)return!1;const a=k.rangeValue[1];if(!a)return!1;const r=Number(new Date(a).getHours()),u=Number(new Date(a).getMinutes());return!(t<r)&&e>u},S=(e,t,a)=>{if(null===a||null===t)return!1;const r=k.rangeValue[1];if(!r)return!1;const u=Number(new Date(r).getHours()),l=Number(new Date(r).getMinutes()),n=Number(new Date(r).getSeconds());return!(a<u)&&(!(t<l)&&e>=n)},M=e=>{const t=k.rangeValue[0];if(!t)return!1;return e<Number(new Date(t).getHours())},O=(e,t)=>{if(null===t)return!1;const a=k.rangeValue[0];if(!a)return!1;const r=Number(new Date(a).getHours()),u=Number(new Date(a).getMinutes());return!(t>r)&&e<u},U=(e,t,a)=>{if(null===a||null===t)return!1;const r=k.rangeValue[0];if(!r)return!1;const u=Number(new Date(r).getHours()),l=Number(new Date(r).getMinutes()),n=Number(new Date(r).getSeconds());return!(a>u)&&(!(t>l)&&e<=n)},L=(t,a,r)=>{const u="start"===r?1:0;let l=k.rangeValue[u];l&&(l=o(l).format(D.value)),"start"!==r?n.emit("scaleChange",[l||"",a],e.item):n.emit("scaleChange",[a,l||""],e.item)},T=(t,a)=>{n.emit("scaleChange",a,e.item)};return(e=>{if(s.isJSON(e)&&(e=JSON.parse(e)),!e||s.isEmpty(e))return;const t=JSON.parse(JSON.stringify(e));if("TIME"===v||y(b)){if(1!=g)return void(k.dateValue=e);if(!Array.isArray(t)||!t.length)return;const a=t[0]?o(t[0],D.value).valueOf():"",r=t[1]?o(t[1],D.value).valueOf():"",u=a&&s.isValidDate(new Date(a))?a:null,l=r&&s.isValidDate(new Date(r))?r:null;k.rangeValue=[u,l]}else k.dateValue=e})(e.form[e.item.val_key]),()=>"TIME"===v||y(b)?1==g?r("div",{class:"c-time-range"},[r(u("n-time-picker"),{value:k.rangeValue[0],"onUpdate:value":[e=>k.rangeValue[0]=e,(e,t)=>L(0,t,"start")],clearable:!0,disabled:e.isLock,format:D.value,isHourDisabled:H,isMinuteDisabled:h,isSecondDisabled:S},null),l("  -  "),r(u("n-time-picker"),{value:k.rangeValue[1],"onUpdate:value":[e=>k.rangeValue[1]=e,(e,t)=>L(0,t,"end")],clearable:!0,disabled:e.isLock,format:D.value,isHourDisabled:M,isMinuteDisabled:O,isSecondDisabled:U},null)]):r(u("n-time-picker"),{"formatted-value":k.dateValue,"onUpdate:formatted-value":e=>k.dateValue=e,clearable:!0,disabled:e.isLock,"onUpdate:value":T,format:D.value},null):["date","datetime","datehour"].includes(b)&&1==g?r(u("n-date-picker"),{"formatted-value":k.dateValue,"onUpdate:formatted-value":e=>k.dateValue=e,type:w.value,clearable:!0,disabled:e.isLock,format:D.value,"time-picker-props":{format:N.value},"onUpdate:value":T},null):r(u("n-date-picker"),{"formatted-value":k.dateValue,"onUpdate:formatted-value":e=>k.dateValue=e,type:V.value,clearable:!0,disabled:e.isLock,format:D.value,"time-picker-props":{format:N.value},"onUpdate:value":T},null)}});export{m as default};
1
+ import{defineComponent as e,reactive as t,computed as a,createVNode as r,resolveComponent as l,createTextVNode as u}from"vue";import{NTimePicker as n,NDatePicker as i}from"naive-ui";import"xe-utils";import o from"moment";import s from"../../../../../shared/utils/vexutilsExpand.js";import{formatMap as d,valueReg as m,transDbvalueFormat as c}from"../../utils/judge-types.js";var v=e({name:"RDatetime",components:{NTimePicker:n,NDatePicker:i},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,n){var i,v,f,p,g;const y=null==(i=e.item)?void 0:i.type,D=null==(f=null==(v=e.item)?void 0:v.setting)?void 0:f.startToStop,b="DATE"===y?"date":null==(g=null==(p=e.item)?void 0:p.setting)?void 0:g.dateType,V=t({rangeValue:[null,null],dateValue:null,calcDateType:""}),k=a((()=>V.calcDateType||b)),N=a((()=>d[k.value]||"yyyy-MM-dd")),h=a((()=>"datehour"===k.value?"datetime":k.value)),w=a((()=>"datehour"===k.value?"HH:mm":"HH:mm:ss")),H=a((()=>"datetime"==k.value||"datehour"==k.value?"datetimerange":"daterange")),M=e=>["time","hour"].includes(e),T=(e,t)=>{const a=o(e,t).valueOf();let r=e;1==D&&["time","hour"].includes(k.value)&&(r=a);return s.isValidDate(new Date(a))?r:null},S=t=>{var a,r;const l=m[k.value];if(V.calcDateType="",!t||"object"==typeof t)return null;const u=null==(a=N.value)?void 0:a.replace(/yyyy/,"YYYY").replace(/dd/,"DD");if(t&&l.test(t))return T(t,u);const n=(e=>{let t="";for(const a in m)if(m[a].test(e)){t=a;break}return t})(t);if(e.isLock&&n){V.calcDateType=n;const e=null==(r=N.value)?void 0:r.replace(/yyyy/,"YYYY").replace(/dd/,"DD");return T(t,e)}const i=c.get(n);if(!(null==i?void 0:i.length)||!i.includes(k.value))return null;if("time"===k.value&&"hour"==n){t=`${o().format("yyyy-MM-DD")} ${t}`}const s=o(t).format(u);return T(s,u)},U=e=>{const t=V.rangeValue[1];if(!t)return!1;return e>Number(new Date(t).getHours())},Y=(e,t)=>{if(null===t)return!1;const a=V.rangeValue[1];if(!a)return!1;const r=Number(new Date(a).getHours()),l=Number(new Date(a).getMinutes());return!(t<r)&&e>l},A=(e,t,a)=>{if(null===a||null===t)return!1;const r=V.rangeValue[1];if(!r)return!1;const l=Number(new Date(r).getHours()),u=Number(new Date(r).getMinutes()),n=Number(new Date(r).getSeconds());return!(a<l)&&(!(t<u)&&e>=n)},L=e=>{const t=V.rangeValue[0];if(!t)return!1;return e<Number(new Date(t).getHours())},O=(e,t)=>{if(null===t)return!1;const a=V.rangeValue[0];if(!a)return!1;const r=Number(new Date(a).getHours()),l=Number(new Date(a).getMinutes());return!(t>r)&&e<l},j=(e,t,a)=>{if(null===a||null===t)return!1;const r=V.rangeValue[0];if(!r)return!1;const l=Number(new Date(r).getHours()),u=Number(new Date(r).getMinutes()),n=Number(new Date(r).getSeconds());return!(a>l)&&(!(t>u)&&e<=n)},C=(t,a,r)=>{const l="start"===r?1:0;let u=V.rangeValue[l];u&&(u=o(u).format(N.value)),"start"!==r?n.emit("scaleChange",[u||"",a],e.item):n.emit("scaleChange",[a,u||""],e.item)},E=(t,a)=>{n.emit("scaleChange",a,e.item)};return(t=>{if(s.isJSON(t)&&(t=JSON.parse(t)),!t||s.isEmpty(t))return;const a=JSON.parse(JSON.stringify(t)),r=(e=>{if(1==D&&!Array.isArray(e))return null;if(1!=D&&"string"!=typeof e)return null;if(e&&Array.isArray(e))return e.length&&2==e.length?[S(e[0]),S(e[1])]:null;return S(e)})(t);if(n.emit("scaleChange",r,e.item),"TIME"===y||M(k.value)){if(1!=D)return void(V.dateValue=r);if(!Array.isArray(a)||!a.length)return;V.rangeValue=r}else V.dateValue=r})(e.form[e.item.val_key]),()=>{return"TIME"===y||M(k.value)?1==D?r("div",{class:"c-time-range"},[r(l("n-time-picker"),{value:V.rangeValue[0],"onUpdate:value":[e=>V.rangeValue[0]=e,(e,t)=>C(0,t,"start")],clearable:!0,disabled:e.isLock,format:N.value,isHourDisabled:U,isMinuteDisabled:Y,isSecondDisabled:A},null),u("  -  "),r(l("n-time-picker"),{value:V.rangeValue[1],"onUpdate:value":[e=>V.rangeValue[1]=e,(e,t)=>C(0,t,"end")],clearable:!0,disabled:e.isLock,format:N.value,isHourDisabled:L,isMinuteDisabled:O,isSecondDisabled:j},null)]):r(l("n-time-picker"),{"formatted-value":V.dateValue,"onUpdate:formatted-value":e=>V.dateValue=e,clearable:!0,disabled:e.isLock,"onUpdate:value":E,format:N.value},null):(t=k.value,["date","datetime","datehour"].includes(t)&&1==D?r(l("n-date-picker"),{"formatted-value":V.dateValue,"onUpdate:formatted-value":e=>V.dateValue=e,type:H.value,clearable:!0,disabled:e.isLock,format:N.value,"time-picker-props":{format:w.value},"onUpdate:value":E,"default-time":["00:00:00","23:59:59"]},null):r(l("n-date-picker"),{"formatted-value":V.dateValue,"onUpdate:formatted-value":e=>V.dateValue=e,type:h.value,clearable:!0,disabled:e.isLock,format:N.value,"time-picker-props":{format:w.value},"onUpdate:value":E},null));var t}}});export{v as default};
@@ -16,7 +16,7 @@ export declare const ScaleViewComputed: (props: any, state: any, config: any) =>
16
16
  hasEvaluateResultSetting: import("vue").ComputedRef<number>;
17
17
  hasparamsEvaluate: import("vue").ComputedRef<any>;
18
18
  hasDefault: import("vue").ComputedRef<any>;
19
- showSaveBtn: import("vue").ComputedRef<boolean>;
19
+ showSaveBtn: import("vue").ComputedRef<any>;
20
20
  componentDisable: import("vue").ComputedRef<any>;
21
21
  showEvaluateLabel: import("vue").ComputedRef<(item: any) => any>;
22
22
  showAnswerParse: import("vue").ComputedRef<(item: any) => any>;
@@ -44,7 +44,11 @@ export declare const ScaleViewComputed: (props: any, state: any, config: any) =>
44
44
  evaResultObj: any;
45
45
  }>;
46
46
  skipCover: import("vue").ComputedRef<any>;
47
- scaleEdit: import("vue").ComputedRef<boolean>;
47
+ scaleEdit: import("vue").ComputedRef<any>;
48
48
  isEvaluetaResSituation: import("vue").ComputedRef<any>;
49
49
  disableEdit: import("vue").ComputedRef<any>;
50
+ isImportScale: import("vue").ComputedRef<any>;
51
+ desStart: import("vue").ComputedRef<boolean>;
52
+ desEnd: import("vue").ComputedRef<boolean>;
53
+ desContent: import("vue").ComputedRef<any>;
50
54
  };
@@ -1 +1 @@
1
- import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import"xe-utils";import a from"moment";import i from"../../../../shared/utils/vexutilsExpand.js";import{componentMapStr as n}from"./use-component.js";const o=(o,l,s)=>{const{query:r}=s,u=(new Date).getTime(),v=e((()=>1==(null==r?void 0:r.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==r?void 0:r.evatip)||1==(null==(a=o.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!i.isValidDate(e)&&e})),g=e((()=>{const{evaluetaResSituation:e}=d.value||{};return e})),h=e((()=>{const{evaluateZeroTip:e}=d.value||{};return e})),C=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=a(p.value).add(m.value,"minutes").valueOf();return u>=e})),S=e((()=>{const e=f.value;if(!e)return!1;const t=a(e).valueOf();return u<t})),E=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&v.value})),w=e((()=>{let e=l.fontSize;if(!e||"S"===e)return;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==o?void 0:o.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),O=e((()=>!("customList"==o.type&&!o.noBtn)&&!(!o.noBtn&&!o.hideBtn))),y=e((()=>e=>Q(e))),L=e((()=>e=>{var a;const{type:i}=e||{},n=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(i))return n;const o=Z(e);return o||h.value?`${n}&nbsp;<span style="color:#2d7aff;" class="score-i">${o}</span>`:n})),b=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),R=e((()=>{var e;return(null==(e=o.ids)?void 0:e.guage_id)&&o.noBtn})),A=e((()=>{const e=o.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!S.value&&!C.value})),k=e((()=>R.value||l.isFinished||o.noBtn||o.hideBtn)),B=e((()=>l.showEvaluatePage&&l.showEvaluateSettingWrap&&!k.value&&!A.value)),T=e((()=>!b.value&&!B.value&&l.showEvaluateCountdownWrap&&!k.value)),_=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),U=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),j=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),F=e((()=>{var e;return 1==r.isEdit||1==(null==(e=o.params)?void 0:e.isEdit)})),P=e((()=>1==l.isFinished&&F.value)),D=e((()=>_.value||j.value?!o.noBtn&&!o.hideBtn&&(!l.isFinished||F.value):!o.noBtn&&!o.hideBtn)),x=e((()=>_.value||j.value?!!o.hideBtn||!!o.isLock||l.isFinished&&!F.value:!!o.hideBtn||!!o.isLock)),V=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选",EVALUATE_CHECKBOX_BLOCK:"多选"}[e.type]))),N=e((()=>e=>{var t;if(P.value)return!1;const{evaluateAnswer:n,checkAnswerMode:o,evaluateStartTime:s,evaluateTime:r}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,v=n&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!s||!r||o&&1==o)return v;if(!i.isValidDate(new Date(s)))return v;const c=a(s).add(r,"minutes").diff(a(),"seconds",!0);return v&&c<=0})),$=e((()=>"customList"===o.type?"保存":"提交")),K=e((()=>({getSelectOptions:o.getSelectOptions,getSearchOptions:o.getSearchOptions,openType:o.openType}))),I=e((()=>({getCascadeOptions:o.getCascadeOptions}))),M=e((()=>({uploadPictureUrl:o.uploadPictureUrl,uploadFileUrl:o.uploadFileUrl}))),q=e((()=>({ak:o.ak}))),J=e((()=>({source:"guage",getChunkUploadConfig:o.getChunkUploadConfig}))),z=e((()=>({selectedList:l.labelSelectedList,getLabelList:o.getLabelList,deleteLabel:o.deleteLabel,saveLabelItem:o.saveLabelItem,sourceType:o.sourceType}))),X={RSelectCom:K.value,RCascaderCom:I.value,RUploadCom:M.value,RMapCom:q.value,RVodChunkUploadCom:J.value,CSelectLabelCom:z.value},H=e((()=>(e,t)=>{var a;const i=n[e.type],o=X[i]||{},s={form:l.form,item:e,index:t,isLock:x.value,...o};return"RVodChunkUploadCom"===i&&Object.assign(s,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===i&&Object.assign(s,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===i&&(delete s.form,delete s.index),s})),Q=(e,t)=>{if(e.hide)return!1;const{form:a={},formArray:n=[]}=l;let o={};if(t){let t=e.setting;if(e.setting&&i.isJSON(e.setting)&&(t=JSON.parse(e.setting)),o=i.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!o||!o.condition||!o.condition.length)return!0}else o=i.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!o||!Object.keys(o).length)return!0;const{relation_logic_is:s,condition:r,relation_logic:u}=o;if(s){const t=r.map((e=>{const t=n.filter((t=>t.seq==e.subject_seq))[0],o=W(t);return i.isArray(a[o])?a[o].some((t=>e.value.includes(t))):e.value.includes(a[o])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},W=e=>e.databaseTitle||e.title,Z=e=>{const{maxScore:t=0}=e.scoreConfigs||{};if(t||h.value)return`(${t}分)`},G=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,isFinished:l.isFinished,maxScore:l.maxScore,skipCover:A.value}})),Y=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,form:l.form,isFinished:l.isFinished,currentTime:l.currentTime,showEvaluateCountdown:l.showEvaluateCountdown,isEvaluetaResSituation:g.value,evaResultObj:l.evaResultObj}}));return{showEvatip:c,isFormBoldOpen:E,scaleStyle:w,handlePageClass:O,isShowItem:y,handleShowQuestionNumber:L,hasScore:b,isPreviewScale:R,showEvaluateEntry:B,showEvaluateCoundownPage:T,hasEvaluateResultSetting:_,hasparamsEvaluate:U,hasDefault:j,showSaveBtn:D,componentDisable:x,showEvaluateLabel:V,showAnswerParse:N,tipMsg:$,propsConfig:H,showEvent:Q,formKey:W,evaluatePageProps:G,evaluateCountdownProps:Y,skipCover:A,scaleEdit:P,isEvaluetaResSituation:g,disableEdit:k}};export{o as ScaleViewComputed};
1
+ import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import"xe-utils";import a from"moment";import n from"../../../../shared/utils/vexutilsExpand.js";import{componentMapStr as i}from"./use-component.js";const o=(o,l,r)=>{const{query:s}=r,u=(new Date).getTime(),v=e((()=>{var e,t;return null==(t=null==(e=l.originConfig)?void 0:e.otherSetting)?void 0:t.desLocation})),d=e((()=>{var e,t;return null==(t=null==(e=l.originConfig)?void 0:e.otherSetting)?void 0:t.desContent})),c=e((()=>"start"===v.value&&!!d.value)),m=e((()=>"end"===v.value&&!!d.value)),p=e((()=>{var e;return s.importId||(null==(e=o.params)?void 0:e.importId)})),g=e((()=>1==(null==s?void 0:s.formBoldOpen))),f=e((()=>e=>{var a;return!p.value&&(!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=o.params)?void 0:a.evatip)))})),h=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),C=e((()=>{const{evaluateTime:e}=h.value;return+e})),S=e((()=>{var e;return null==(e=h.value)?void 0:e.evaluateStartTime})),E=e((()=>{const e=new Date(S.value);return!!n.isValidDate(e)&&e})),w=e((()=>{const{evaluetaResSituation:e}=h.value||{};return e})),L=e((()=>{const{evaluateZeroTip:e}=h.value||{};return e})),O=e((()=>{if(!S.value||!C.value)return!1;if(!E.value)return!1;const e=a(S.value).add(C.value,"minutes").valueOf();return u>=e})),y=e((()=>{const e=E.value;if(!e)return!1;const t=a(e).valueOf();return u<t})),b=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&g.value})),R=e((()=>{let e=l.fontSize;if(!e||"S"===e)return;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==o?void 0:o.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),A=e((()=>!("customList"==o.type&&!o.noBtn)&&!(!o.noBtn&&!o.hideBtn))),k=e((()=>e=>ee(e))),B=e((()=>e=>{var a;const{type:n}=e||{},i=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(n))return i;const o=ae(e);return o||L.value?`${i}&nbsp;<span style="color:#2d7aff;" class="score-i">${o}</span>`:i})),T=e((()=>{const{config:e}=l;return!p.value&&(!(!e||!Object.keys(e).length)&&"totalScore"in e)})),_=e((()=>{var e;return(null==(e=o.ids)?void 0:e.guage_id)&&o.noBtn})),U=e((()=>{const e=o.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!y.value&&!O.value})),j=e((()=>p.value||_.value||l.isFinished||o.noBtn||o.hideBtn)),F=e((()=>l.showEvaluatePage&&l.showEvaluateSettingWrap&&!j.value&&!U.value)),P=e((()=>!T.value&&!F.value&&l.showEvaluateCountdownWrap&&!j.value)),D=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),x=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),V=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),I=e((()=>{var e;return 1==s.isEdit||1==(null==(e=o.params)?void 0:e.isEdit)||p.value})),N=e((()=>1==l.isFinished&&I.value)),$=e((()=>D.value||V.value?!o.noBtn&&!o.hideBtn&&(!l.isFinished||I.value):!o.noBtn&&!o.hideBtn)),K=e((()=>D.value||V.value?!!o.hideBtn||!!o.isLock||l.isFinished&&!I.value:!!o.hideBtn||!!o.isLock)),M=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选",EVALUATE_CHECKBOX_BLOCK:"多选"}[e.type]))),q=e((()=>e=>{var t;if(N.value)return!1;const{evaluateAnswer:i,checkAnswerMode:o,evaluateStartTime:r,evaluateTime:s}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,v=i&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!r||!s||o&&1==o)return v;if(!n.isValidDate(new Date(r)))return v;const d=a(r).add(s,"minutes").diff(a(),"seconds",!0);return v&&d<=0})),J=e((()=>"customList"===o.type?"保存":"提交")),z=e((()=>({getSelectOptions:o.getSelectOptions,getSearchOptions:o.getSearchOptions,openType:o.openType}))),X=e((()=>({getCascadeOptions:o.getCascadeOptions}))),H=e((()=>({uploadPictureUrl:o.uploadPictureUrl,uploadFileUrl:o.uploadFileUrl}))),Q=e((()=>({ak:o.ak}))),W=e((()=>({source:"guage",getChunkUploadConfig:o.getChunkUploadConfig}))),Z=e((()=>({selectedList:l.labelSelectedList,getLabelList:o.getLabelList,deleteLabel:o.deleteLabel,saveLabelItem:o.saveLabelItem,sourceType:o.sourceType}))),G={RSelectCom:z.value,RCascaderCom:X.value,RUploadCom:H.value,RMapCom:Q.value,RVodChunkUploadCom:W.value,CSelectLabelCom:Z.value},Y=e((()=>(e,t)=>{var a;const n=i[e.type],o=G[n]||{},r={form:l.form,item:e,index:t,isLock:K.value,...o};return"RVodChunkUploadCom"===n&&Object.assign(r,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===n&&Object.assign(r,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===n&&(delete r.form,delete r.index),r})),ee=(e,t)=>{if(e.hide)return!1;const{form:a={},formArray:i=[]}=l;let o={};if(t){let t=e.setting;if(e.setting&&n.isJSON(e.setting)&&(t=JSON.parse(e.setting)),o=n.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!o||!o.condition||!o.condition.length)return!0}else o=n.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!o||!Object.keys(o).length)return!0;const{relation_logic_is:r,condition:s,relation_logic:u}=o;if(r){const t=s.map((e=>{const t=i.filter((t=>t.seq==e.subject_seq))[0],o=te(t);return n.isArray(a[o])?a[o].some((t=>e.value.includes(t))):e.value.includes(a[o])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},te=e=>e.databaseTitle||e.title,ae=e=>{const{maxScore:t=0}=e.scoreConfigs||{};if(t||L.value)return`(${t}分)`},ne=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:h.value,isFinished:l.isFinished,maxScore:l.maxScore,skipCover:U.value}})),ie=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:h.value,form:l.form,isFinished:l.isFinished,currentTime:l.currentTime,showEvaluateCountdown:l.showEvaluateCountdown,isEvaluetaResSituation:w.value,evaResultObj:l.evaResultObj}}));return{showEvatip:f,isFormBoldOpen:b,scaleStyle:R,handlePageClass:A,isShowItem:k,handleShowQuestionNumber:B,hasScore:T,isPreviewScale:_,showEvaluateEntry:F,showEvaluateCoundownPage:P,hasEvaluateResultSetting:D,hasparamsEvaluate:x,hasDefault:V,showSaveBtn:$,componentDisable:K,showEvaluateLabel:M,showAnswerParse:q,tipMsg:J,propsConfig:Y,showEvent:ee,formKey:te,evaluatePageProps:ne,evaluateCountdownProps:ie,skipCover:U,scaleEdit:N,isEvaluetaResSituation:w,disableEdit:j,isImportScale:p,desStart:c,desEnd:m,desContent:d}};export{o as ScaleViewComputed};
@@ -1 +1 @@
1
- import{handleQueryParams as e,getQueryVariable as t,formatMap as a}from"../utils/judge-types.js";import i from"./use-noData.js";import"xe-utils";import n from"moment";import s from"../../../../shared/utils/vexutilsExpand.js";import{componentMap as l}from"./use-component.js";import{useEvent as r}from"./use-event.js";import{ScaleViewComputed as o}from"./scaleview-computed.js";import{ScaleViewValidate as u}from"./scaleview-validate.js";import{useDialog as v}from"naive-ui";const c=(c,f,d,p)=>{const m=n(),g=v(),{setNoData:S}=i(),{hasEvaluateResultSetting:E,hasparamsEvaluate:y,hasDefault:C,formKey:O}=o(c,f,p),{formatRules:A}=u(c,f,p),{nextLogicEvent:R}=r(c,f),h=e=>{const t=null==e?void 0:e.evaluateStartTime;t&&!s.isValidDate(new Date(t))&&s.isValidDate(new Date(Number(t)))&&(e.evaluateStartTime=Number(t))},L=()=>{var t;if(!E.value)return!!C.value&&("evaluateResultSetting"in f.config||(f.config.evaluateResultSetting={}),(t=>{let a=e();if(y.value&&(a=f.paramsEvaluate),a.evaname&&(t.evaluateName=a.evaname),a.evadesc&&(t.evaluateExplain=a.evadesc),a.evast&&(t.evaluateStartTime=a.evast),a.evadur&&(t.evaluateTime=a.evadur),a.evaan){const e="true"===a.evaan||1==a.evaan;t.evaluateAnswer=e}if(a.evasit&&(t.evaluetaResSituation=!!a.evasit),a.evaztip){const e=1==a.evaan;t.evaluateZeroTip=e}h(t)})(f.config.evaluateResultSetting),f.showEvaluatePage=!0,void(f.showEvaluateCountdownWrap=!0));const{evaluateResultSetting:a={}}=f.config;if(!a||!Object.keys(a).length)return;f.showEvaluateCountdownWrap=!0;const{evaluateStartTime:i}=a,{evaluateName:n}=(null==(t=f.originConfig)?void 0:t.evaluateResultSetting)||{};if(i)return!(!s.isValidDate(new Date(i))&&!n)&&void(f.showEvaluatePage=!0);f.showEvaluatePage=!0},T=(e,t)=>{const a=e.find((e=>t===e.value));return a?a.key:t},N=(e,t)=>{if(["RADIO_BLOCK","CHECKBOX_BLOCK"].includes(t)&&e&&(e&&s.isJSON(e)&&(e=JSON.parse(e)),e.length))return!0},b=t=>{var a,i;if(!t||!t.length)return;const n=e();if((null==c?void 0:c.noBtn)||(null==n?void 0:n.noBtn))return;const l=t.find((e=>"FRONT_ADDRESS"===e.type));if(!l||!Object.keys(l).length)return;let r;if(l.setting&&s.isJSON(l.setting)&&(r=JSON.parse(l.setting)),!r||!Object.keys(r).length)return;if(1==(null==n?void 0:n.redirect)||1==(null==(a=c.params)?void 0:a.redirect)||3==n.isEdit||3==(null==(i=c.params)?void 0:i.isEdit))return;const{frontAddress:o}=r;if(o){const e=window.location.href;let t="?";o.includes("?")&&(t="&");return`${o}${t}redirect_url=${encodeURIComponent(e)}`}},D=e=>{const t=["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"],a={};for(const i in e){const n=e[i];t.includes(i)&&n&&(a[i]=n)}return a},w=t=>{if(!t||!Object.keys(t).length)return;let a=e()||{};y.value&&(a=f.paramsEvaluate);const i={evaluateName:"evaname",evaluateExplain:"evadesc",evaluateStartTime:"evast",evaluateTime:"evadur",evaluateAnswer:"evaan",evaluetaResSituation:"evasit",evaluateZeroTip:"evaztip"},n=["evaluateAnswer","evaluetaResSituation","evaluateZeroTip"];for(const e in t){const s=t[e];if(s&&"evaluateAnswer"!=e&&"string"==typeof s&&s.includes("${")&&"string"==typeof s){const i=s.replace(/\$\{([^}]+)\}/g,((e,t)=>{let i;return t.startsWith("form.")&&(i=a[t.split(".")[1]]),i||""}));t[e]=i}else{let s=a[i[e]];n.includes(e)&&(s="true"===s||1==s),a[i[e]]&&(t[e]=s)}}if(C.value){const e={evaname:"evaluateName",evadesc:"evaluateExplain",evast:"evaluateStartTime",evadur:"evaluateTime",evaan:"evaluateAnswer",evasit:"evaluetaResSituation",evaztip:"evaluateZeroTip"},i=["evaan","evasit","evaztip"];["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"].forEach((n=>{const s=e[n];if(!t[s]){let e=a[n];i.includes(n)&&(e="true"===e||1==e),a[n]&&(t[s]=e)}}))}h(t)},k=e=>{let t=1;return e.map((a=>{const i=O(a);(i||"").replace(/\n/g,""),a.showTitle=a.title,a.val_key=i,a.renderCom=l[a.type],a.isShow=!0,Object.keys(a).forEach((e=>{s.isJSON(a[e])&&"LOCATION"!=a.type&&(a[e]=JSON.parse(a[e]))}));var n;return["LINEBAR","TITLE","PROMPT","IMGCARD","RICH_TEXT"].indexOf(a.type)<0&&!a.hide&&(a.softcode=t++),("SELECT"==(n=a.type)||"RADIO_BLOCK"==n||"CHECKBOX_BLOCK"==n||"SEARCH_CASCADE"==n||"EVALUATE_RADIO_BLOCK"==n||"EVALUATE_CHECKBOX_BLOCK"==n||"EVALUATE_SELECT"==n)&&(((e,t)=>{N(e,t)&&e.forEach(((e,t)=>{"other"!==e.key&&(e.key=t+1),(e.prefix||e.suffix)&&(e.value=e.prefix||e.suffix)}))})(a.options,a.type),"SEARCH_CASCADE"!=a.type&&(a.dbValue?R(a.dbValue,a,e):a.setting.defaultValue&&R(a.setting.defaultValue,a,e))),a})).map((t=>(((e,t)=>{const a=s.isString(t.relationLogic)?JSON.parse(t.relationLogic):t.relationLogic,{condition:i}=a||{};i&&i.length&&(i.forEach((t=>{const a=e.find((e=>e.seq==t.subject_seq));if(!a)return;if(!N(a.options,a.type))return;let i=t.value;Array.isArray(i)?(i=i.map((e=>T(a.options,e))),t.value=i):t.value=T(a.options,i)})),t.relationLogic=a)})(e,t),(e=>{const{nextLogic:t,options:a,type:i}=e||{};if(!t||!N(a,i))return;const{condition:n}=t||{};n&&n.length&&n.forEach((e=>{let t=e.value;Array.isArray(t)?(t=t.map((e=>T(a,e))),e.value=t):e.value=T(a,t)}))})(t),"CHECKBOX_BLOCK"===t.type&&t.dbValue&&!Array.isArray(t.dbValue)&&"customList"===c.type&&(t.dbValue=t.dbValue.split(",").filter((e=>!!e))),t)))},_=e=>{const i={};let n;return e.forEach((e=>{var l,r,o,u;const v=e.val_key,{type:d}=e;let p;if(e.dbValue)p=e.dbValue;else{const{defValType:i,dateType:n}=e.setting||{};if(3==i){const a=null==(r=null==(l=e.setting)?void 0:l.outDefaultValue)?void 0:r.urlKey;if(a){const i=a.split(",");if(i.length>1){const e=i.map((e=>{const a=t(e,f,c.params);return a?decodeURIComponent(a):null})).filter(Boolean);e.length&&(p=e)}else{let a=t(i[0],f,c.params);a&&(a=decodeURIComponent(a),p="CHECKBOX_BLOCK"==e.type?a.split():a)}}}if("DATETIME"===d&&4==i){const e=(null==(o=a[n])?void 0:o.replace("-dd","-DD"))||"yyyy-MM-DD HH:mm:ss";p=m.format(e)}}switch(d){case"LOCATION":i[v]=p||"";break;case"SEARCH_CASCADE":case"UPFILE":case"UPPICTURE":i[v]=p||[];break;case"ADDRESS":i[v]=p||"",f.defaultAddress=p||{};break;case"LABEL":i[v]=p||{},s.isObject(p)?f.labelSelectedList=(null==p?void 0:p.labels)||[]:Array.isArray(p)?f.labelSelectedList=p:f.labelSelectedList=[];break;case"TITLE":i[v]=e.title;break;case"IMGCARD":i[v]=(null==(u=e.setting)?void 0:u.imgUrl)||"";break;case"CHECKBOX_BLOCK":p&&!Array.isArray(p)&&"customList"===c.type?i[v]=p.split(",").filter((e=>!!e)):(n=p||e.setting.defaultValue,s.isJSON(n)&&(n=JSON.parse(n)),i[v]=n);break;default:n=p||e.setting.defaultValue,s.isJSON(n)&&(n=JSON.parse(n)),i[v]=n}})),i};return{initForm:e=>{var t;let{list:a=[],map:i={},isFinished:n=!1}=e;const l=b(a);if(l)return void(window.location.href=l);if(i.maxScore&&(f.maxScore=i.maxScore),f.isFinished=n,e.isNotFilled)return f.spinning=!1,f.hasFrontAddress=!1,void S(!0,"未查询到量表填写记录");if(e.isLackCustomer&&g.info({title:"已设置填写次数限制",content:"请在包含用户信息的环境中打开此量表",maskClosable:!1,onPositiveClick(){d("onCloseSetting")}}),f.config=i,"evaluateResultConfig"in i&&s.isJSON(i.evaluateResultConfig)&&(f.config.evaluateResultConfig=JSON.parse(i.evaluateResultConfig)),"evaluateResultSetting"in i&&s.isJSON(i.evaluateResultSetting)&&(f.config.evaluateResultSetting=JSON.parse(i.evaluateResultSetting),(null==(t=f.config)?void 0:t.randomId)&&f.config.evaluateResultSetting&&(f.config.evaluateResultSetting.evaluateName=f.config.name,f.config.evaluateResultSetting.evaluateExplain=f.config.remark)),f.originConfig=JSON.parse(JSON.stringify(f.config)),c.params&&Object.keys(c.params).length){const e=D(c.params);e&&Object.keys(e).length&&(f.paramsEvaluate=e)}w(f.config.evaluateResultSetting),L(),f.defaultFormArray=JSON.parse(JSON.stringify(a));const r=f.filterArr;a=a.filter((e=>!r.includes(e.type))),f.formArray=k(a||[]),f.form=_(f.formArray),f.rules=A(f.formArray),f.fontSize=e.fontSize,f.spinning=!1,f.hasFrontAddress=!1}}};export{c as ScaleViewInit};
1
+ import{handleQueryParams as e,getQueryVariable as t,formatMap as a}from"../utils/judge-types.js";import i from"./use-noData.js";import"xe-utils";import n from"moment";import s from"../../../../shared/utils/vexutilsExpand.js";import{componentMap as l}from"./use-component.js";import{useEvent as r}from"./use-event.js";import{ScaleViewComputed as o}from"./scaleview-computed.js";import{ScaleViewValidate as u}from"./scaleview-validate.js";import{useDialog as v}from"naive-ui";const c=(c,f,d,p)=>{const m=n(),g=v(),{setNoData:S}=i(),{hasEvaluateResultSetting:E,hasparamsEvaluate:y,hasDefault:O,formKey:C,isImportScale:A}=o(c,f,p),{formatRules:h}=u(c,f,p),{nextLogicEvent:R}=r(c,f),T=e=>{const t=null==e?void 0:e.evaluateStartTime;t&&!s.isValidDate(new Date(t))&&s.isValidDate(new Date(Number(t)))&&(e.evaluateStartTime=Number(t))},L=()=>{var t;if(!E.value)return!!O.value&&("evaluateResultSetting"in f.config||(f.config.evaluateResultSetting={}),(t=>{let a=e();if(y.value&&(a=f.paramsEvaluate),a.evaname&&(t.evaluateName=a.evaname),a.evadesc&&(t.evaluateExplain=a.evadesc),a.evast&&(t.evaluateStartTime=a.evast),a.evadur&&(t.evaluateTime=a.evadur),a.evaan){const e="true"===a.evaan||1==a.evaan;t.evaluateAnswer=e}if(a.evasit&&(t.evaluetaResSituation=!!a.evasit),a.evaztip){const e=1==a.evaan;t.evaluateZeroTip=e}T(t)})(f.config.evaluateResultSetting),f.showEvaluatePage=!0,void(f.showEvaluateCountdownWrap=!0));const{evaluateResultSetting:a={}}=f.config;if(!a||!Object.keys(a).length)return;f.showEvaluateCountdownWrap=!0;const{evaluateStartTime:i}=a,{evaluateName:n}=(null==(t=f.originConfig)?void 0:t.evaluateResultSetting)||{};if(i)return!(!s.isValidDate(new Date(i))&&!n)&&void(f.showEvaluatePage=!0);f.showEvaluatePage=!0},N=(e,t)=>{const a=e.find((e=>t===e.value));return a?a.key:t},b=(e,t)=>{if(["RADIO_BLOCK","CHECKBOX_BLOCK"].includes(t)&&e&&(e&&s.isJSON(e)&&(e=JSON.parse(e)),e.length))return!0},D=t=>{var a,i;if(!t||!t.length)return;const n=e();if((null==c?void 0:c.noBtn)||(null==n?void 0:n.noBtn))return;const l=t.find((e=>"FRONT_ADDRESS"===e.type));if(!l||!Object.keys(l).length)return;let r;if(l.setting&&s.isJSON(l.setting)&&(r=JSON.parse(l.setting)),!r||!Object.keys(r).length)return;if(1==(null==n?void 0:n.redirect)||1==(null==(a=c.params)?void 0:a.redirect)||3==n.isEdit||3==(null==(i=c.params)?void 0:i.isEdit))return;const{frontAddress:o}=r;if(o){const e=window.location.href;let t="?";o.includes("?")&&(t="&");return`${o}${t}redirect_url=${encodeURIComponent(e)}`}},w=e=>{const t=["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"],a={};for(const i in e){const n=e[i];t.includes(i)&&n&&(a[i]=n)}return a},k=t=>{if(!t||!Object.keys(t).length)return;let a=e()||{};y.value&&(a=f.paramsEvaluate);const i={evaluateName:"evaname",evaluateExplain:"evadesc",evaluateStartTime:"evast",evaluateTime:"evadur",evaluateAnswer:"evaan",evaluetaResSituation:"evasit",evaluateZeroTip:"evaztip"},n=["evaluateAnswer","evaluetaResSituation","evaluateZeroTip"];for(const e in t){const s=t[e];if(s&&"evaluateAnswer"!=e&&"string"==typeof s&&s.includes("${")&&"string"==typeof s){const i=s.replace(/\$\{([^}]+)\}/g,((e,t)=>{let i;return t.startsWith("form.")&&(i=a[t.split(".")[1]]),i||""}));t[e]=i}else{let s=a[i[e]];n.includes(e)&&(s="true"===s||1==s),a[i[e]]&&(t[e]=s)}}if(O.value){const e={evaname:"evaluateName",evadesc:"evaluateExplain",evast:"evaluateStartTime",evadur:"evaluateTime",evaan:"evaluateAnswer",evasit:"evaluetaResSituation",evaztip:"evaluateZeroTip"},i=["evaan","evasit","evaztip"];["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"].forEach((n=>{const s=e[n];if(!t[s]){let e=a[n];i.includes(n)&&(e="true"===e||1==e),a[n]&&(t[s]=e)}}))}T(t)},J=e=>{let t=1;return e.map((a=>{const i=C(a);(i||"").replace(/\n/g,""),a.showTitle=a.title,a.val_key=i,a.renderCom=l[a.type],a.isShow=!0,Object.keys(a).forEach((e=>{s.isJSON(a[e])&&"LOCATION"!=a.type&&(a[e]=JSON.parse(a[e]))}));var n;return["LINEBAR","TITLE","PROMPT","IMGCARD","RICH_TEXT"].indexOf(a.type)<0&&!a.hide&&(a.softcode=t++),("SELECT"==(n=a.type)||"RADIO_BLOCK"==n||"CHECKBOX_BLOCK"==n||"SEARCH_CASCADE"==n||"EVALUATE_RADIO_BLOCK"==n||"EVALUATE_CHECKBOX_BLOCK"==n||"EVALUATE_SELECT"==n)&&(((e,t)=>{b(e,t)&&e.forEach(((e,t)=>{"other"!==e.key&&(e.key=t+1),(e.prefix||e.suffix)&&(e.value=e.prefix||e.suffix)}))})(a.options,a.type),"SEARCH_CASCADE"!=a.type&&(a.dbValue?R(a.dbValue,a,e):a.setting.defaultValue&&R(a.setting.defaultValue,a,e))),a})).map((t=>(((e,t)=>{const a=s.isString(t.relationLogic)?JSON.parse(t.relationLogic):t.relationLogic,{condition:i}=a||{};i&&i.length&&(i.forEach((t=>{const a=e.find((e=>e.seq==t.subject_seq));if(!a)return;if(!b(a.options,a.type))return;let i=t.value;Array.isArray(i)?(i=i.map((e=>N(a.options,e))),t.value=i):t.value=N(a.options,i)})),t.relationLogic=a)})(e,t),(e=>{const{nextLogic:t,options:a,type:i}=e||{};if(!t||!b(a,i))return;const{condition:n}=t||{};n&&n.length&&n.forEach((e=>{let t=e.value;Array.isArray(t)?(t=t.map((e=>N(a,e))),e.value=t):e.value=N(a,t)}))})(t),"CHECKBOX_BLOCK"===t.type&&t.dbValue&&!Array.isArray(t.dbValue)&&"customList"===c.type&&(t.dbValue=t.dbValue.split(",").filter((e=>!!e))),t)))},_=e=>{const i={};let l;return e.forEach((e=>{var r;const o=e.val_key,{type:u}=e;let v;switch(v=e.dbValue?e.dbValue:((e,i)=>{var s,l,r,o;if(A.value)return;let u;const{defValType:v,dateType:d}=e.setting||{};if(3==v){const a=null==(l=null==(s=e.setting)?void 0:s.outDefaultValue)?void 0:l.urlKey;if(a){const i=a.split(",");if(i.length>1){const e=i.map((e=>{const a=t(e,f,c.params);return a?decodeURIComponent(a):null})).filter(Boolean);e.length&&(u=e)}else{let a=t(i[0],f,c.params);a&&(a=decodeURIComponent(a),u="CHECKBOX_BLOCK"==e.type?a.split():a)}}}if("DATETIME"===i&&4==v){const t=(null==(r=a[d])?void 0:r.replace("-dd","-DD"))||"yyyy-MM-DD HH:mm:ss",i=m.format(t);u=1==(null==(o=e.setting)?void 0:o.startToStop)?[i,n().endOf("day").format(t)]:i}return u})(e,u),u){case"LOCATION":i[o]=v||"";break;case"SEARCH_CASCADE":case"UPFILE":case"UPPICTURE":i[o]=v||[];break;case"ADDRESS":i[o]=v||"",f.defaultAddress=v||{};break;case"LABEL":i[o]=v||{},s.isObject(v)?f.labelSelectedList=(null==v?void 0:v.labels)||[]:Array.isArray(v)?f.labelSelectedList=v:f.labelSelectedList=[];break;case"TITLE":i[o]=e.title;break;case"IMGCARD":i[o]=(null==(r=e.setting)?void 0:r.imgUrl)||"";break;case"CHECKBOX_BLOCK":v&&!Array.isArray(v)&&"customList"===c.type?i[o]=v.split(",").filter((e=>!!e)):(l=v||e.setting.defaultValue,s.isJSON(l)&&(l=JSON.parse(l)),i[o]=l);break;default:l=v||e.setting.defaultValue,s.isJSON(l)&&(l=JSON.parse(l)),i[o]=l}})),i};return{initForm:e=>{var t;let{list:a=[],map:i={},isFinished:n=!1}=e;const l=D(a);if(l)return void(window.location.href=l);if(i.maxScore&&(f.maxScore=i.maxScore),f.isFinished=n,e.isNotFilled)return f.spinning=!1,f.hasFrontAddress=!1,void S(!0,"未查询到量表填写记录");if(e.isLackCustomer&&g.info({title:"已设置填写次数限制",content:"请在包含用户信息的环境中打开此量表",maskClosable:!1,onPositiveClick(){d("onCloseSetting")}}),f.config=i,"evaluateResultConfig"in i&&s.isJSON(i.evaluateResultConfig)&&(f.config.evaluateResultConfig=JSON.parse(i.evaluateResultConfig)),"evaluateResultSetting"in i&&s.isJSON(i.evaluateResultSetting)&&(f.config.evaluateResultSetting=JSON.parse(i.evaluateResultSetting),(null==(t=f.config)?void 0:t.randomId)&&f.config.evaluateResultSetting&&(f.config.evaluateResultSetting.evaluateName=f.config.name,f.config.evaluateResultSetting.evaluateExplain=f.config.remark)),"otherSetting"in i&&s.isJSON(i.otherSetting)&&(f.config.otherSetting=JSON.parse(i.otherSetting)),f.originConfig=JSON.parse(JSON.stringify(f.config)),c.params&&Object.keys(c.params).length){const e=w(c.params);e&&Object.keys(e).length&&(f.paramsEvaluate=e)}k(f.config.evaluateResultSetting),L(),f.defaultFormArray=JSON.parse(JSON.stringify(a));const r=f.filterArr;a=a.filter((e=>!r.includes(e.type))),f.formArray=J(a||[]),f.form=_(f.formArray),f.rules=h(f.formArray),f.fontSize=e.fontSize,f.spinning=!1,f.hasFrontAddress=!1}}};export{c as ScaleViewInit};