cnhis-design-vue 3.1.41-beta.34 → 3.1.41-beta.36

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 (100) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +286 -0
  3. package/es/components/base-search/index.js +1 -0
  4. package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +1 -4
  5. package/es/components/base-search/src/index.vue.js +1 -0
  6. package/es/components/base-search/style/index.css +1 -0
  7. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  8. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  9. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  10. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  11. package/es/components/classification/index.d.ts +1013 -0
  12. package/es/components/classification/index.js +1 -0
  13. package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +9 -9
  14. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  15. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  16. package/es/components/classification/src/const/index.d.ts +2 -0
  17. package/es/components/classification/src/const/index.js +1 -0
  18. package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +6 -9
  19. package/es/components/classification/src/index.vue.js +1 -0
  20. package/es/components/classification/style/iconfont.ttf +0 -0
  21. package/es/components/classification/style/index.css +1 -0
  22. package/es/components/config-provider/src/ConfigProvider.js +1 -1
  23. package/es/components/config-provider/src/interface.d.ts +2 -2
  24. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  25. package/es/components/form-config/index.d.ts +5 -5
  26. package/es/components/form-config/src/FormConfig.vue.d.ts +5 -5
  27. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
  28. package/es/components/index.css +1 -1
  29. package/es/components/index.d.ts +3 -1
  30. package/es/components/index.js +1 -1
  31. package/es/components/info-header/index.d.ts +3480 -117
  32. package/es/components/info-header/src/InfoHeader.vue.d.ts +3480 -117
  33. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  34. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1526 -4
  35. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
  36. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1529 -4
  37. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  38. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  39. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  40. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2262 -5
  41. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  42. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
  43. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  44. package/es/components/info-header/src/types/index.d.ts +6 -1
  45. package/es/components/info-header/style/index.css +1 -1
  46. package/es/components/quick-search/index.d.ts +712 -0
  47. package/es/components/quick-search/index.js +1 -0
  48. package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +21 -8
  49. package/es/components/quick-search/src/index.vue.js +1 -0
  50. package/es/components/quick-search/style/index.css +1 -0
  51. package/es/components/recommend-search/index.d.ts +2 -2
  52. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  53. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  54. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  55. package/es/components/search-cascader/index.d.ts +2 -2
  56. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
  57. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  58. package/es/components/shortcut-setter/index.d.ts +1 -1
  59. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  60. package/es/components/table-filter/index.d.ts +0 -1997
  61. package/es/components/table-filter/index.js +1 -1
  62. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -1
  63. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  64. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
  65. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  66. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  67. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  68. package/es/components/table-filter/src/tool/transformData.js +1 -1
  69. package/es/env.d.ts +24 -24
  70. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  71. package/es/shared/utils/tapable/index.d.ts +139 -0
  72. package/package.json +2 -2
  73. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  74. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  75. package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
  76. package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
  77. package/es/components/table-filter/src/const/index.d.ts +0 -5
  78. package/es/components/table-filter/src/const/index.js +0 -1
  79. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  80. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  81. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  82. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  83. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  84. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  85. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  86. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  87. package/es/components/table-filter/src/tool/utils.js +0 -1
  88. package/es/components/table-filter/style/index.css +0 -1
  89. /package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
  90. /package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
  91. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
  92. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
  93. /package/es/components/{table-filter → base-search}/style/iconfont.ttf +0 -0
  94. /package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +0 -0
  95. /package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -0
  96. /package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.js +0 -0
  97. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  98. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
  99. /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
  100. /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as i}from"../../shared/utils/index.js";import o from"./src/index.vue.js";const s=o;s.install=function(o){i(o,s,r+"QuickSearch")};export{s as default};
@@ -1,11 +1,15 @@
1
1
  import { PropType } from 'vue';
2
+ import { IParentNamesType, ISearchType, ISaveType, IApiServerType, ISearchParamsType } from '../../../../es/components/table-filter/src/types';
2
3
  import 'moment/locale/zh-cn';
3
- import { IParentNamesType, ISearchType, ISaveType, IApiServerType } from '../../../../../es/components/table-filter/src/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  searchFieldList: {
6
6
  type: PropType<IApiServerType[]>;
7
7
  default: () => never[];
8
8
  };
9
+ quickSearchConfig: {
10
+ type: PropType<ISearchParamsType[]>;
11
+ default: () => never[];
12
+ };
9
13
  tableId: {
10
14
  type: StringConstructor;
11
15
  default: string;
@@ -24,12 +28,9 @@ declare const _default: import("vue").DefineComponent<{
24
28
  $message: import("naive-ui").MessageApi;
25
29
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
26
30
  outQuickSearchFn: {
27
- handleRequestedLabel(v: any): Promise<import("axios").AxiosResponse<any, any>>;
28
31
  handlerInitSearchItem(arr: ISearchType[]): void;
29
- handleSetLabelOptions(labelType: any, el: ISearchType): void;
30
- getConObj(arr: any): any;
31
32
  };
32
- initRenderWidgetCfg: (cfg: ISearchType) => any;
33
+ getDefValByRenderWidget: (cfg: ISearchType) => any;
33
34
  getRenderSearchConObj: (cfg: ISearchType) => {
34
35
  field_key: string;
35
36
  con: string | undefined;
@@ -37,6 +38,7 @@ declare const _default: import("vue").DefineComponent<{
37
38
  unit: null;
38
39
  } | null;
39
40
  resetRenderWidgetValue: (cfg: ISearchType) => any;
41
+ isRender: (cfg: ISearchType) => any;
40
42
  transformData: (advancedFilterData: IApiServerType[]) => {
41
43
  fieldType: string;
42
44
  columnName: string;
@@ -62,11 +64,16 @@ declare const _default: import("vue").DefineComponent<{
62
64
  placeholder: string | undefined;
63
65
  advanceColWidth: string;
64
66
  }[];
67
+ getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
65
68
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
66
69
  searchFieldList: {
67
70
  type: PropType<IApiServerType[]>;
68
71
  default: () => never[];
69
72
  };
73
+ quickSearchConfig: {
74
+ type: PropType<ISearchParamsType[]>;
75
+ default: () => never[];
76
+ };
70
77
  tableId: {
71
78
  type: StringConstructor;
72
79
  default: string;
@@ -328,10 +335,10 @@ declare const _default: import("vue").DefineComponent<{
328
335
  hasFieldList?: any;
329
336
  search_DefaultValue?: any;
330
337
  }[];
331
- getMergeConObj: () => any;
332
- getConObjParams: () => any;
338
+ getMergeConObj: () => ISearchParamsType[];
339
+ getConObjParams: () => ISearchParamsType[];
333
340
  openSaveToCalss: () => void;
334
- getConObj: (arr: ISearchType[]) => any;
341
+ getConObj: (arr: ISearchType[]) => ISearchParamsType[];
335
342
  saveToCalss: () => void;
336
343
  handleParentNamesAdd: (e: Event) => void;
337
344
  hanldeBlur: () => void;
@@ -343,6 +350,7 @@ declare const _default: import("vue").DefineComponent<{
343
350
  cancelSaveToCalss: () => void;
344
351
  clearData: () => void;
345
352
  handlerReset: (arr: ISearchType[]) => void;
353
+ setDefaultCon: (widgetArr: ISearchParamsType[]) => void;
346
354
  NForm: any;
347
355
  NFormItem: import("vue").DefineComponent<{
348
356
  readonly label: StringConstructor;
@@ -683,6 +691,10 @@ declare const _default: import("vue").DefineComponent<{
683
691
  type: PropType<IApiServerType[]>;
684
692
  default: () => never[];
685
693
  };
694
+ quickSearchConfig: {
695
+ type: PropType<ISearchParamsType[]>;
696
+ default: () => never[];
697
+ };
686
698
  tableId: {
687
699
  type: StringConstructor;
688
700
  default: string;
@@ -695,6 +707,7 @@ declare const _default: import("vue").DefineComponent<{
695
707
  onGetFilterParam?: ((...args: any[]) => any) | undefined;
696
708
  onClearQuickSearchConfig?: ((...args: any[]) => any) | undefined;
697
709
  }, {
710
+ quickSearchConfig: ISearchParamsType[];
698
711
  searchFieldList: IApiServerType[];
699
712
  tableId: string;
700
713
  }>;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,computed as a,watch as t,onMounted as i,openBlock as n,createElementBlock as o,createElementVNode as s,Fragment as r,renderList as u,unref as c,normalizeClass as d,createCommentVNode as v,toDisplayString as f,createBlock as m,createVNode as p,withCtx as h,createTextVNode as g,withDirectives as k,vShow as b,isRef as y}from"vue";import{useMessage as C,NModal as S,NCard as _,NIcon as x,NButton as q,NForm as A,NFormItem as w,NInput as F}from"naive-ui";import{CloseOutline as j,AddOutline as I}from"@vicons/ionicons5";import R from"../../table-filter/src/hooks/useMixins.js";import V from"../../table-filter/src/hooks/useRenderWidget.js";import D from"../../table-filter/src/hooks/useAdvanced.js";import E from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as L}from"lodash-es";import U from"../../../_virtual/plugin-vue_export-helper.js";const z={class:"quick-search-block quick-search-table"},B={class:"quick-row"},T={class:"quick-item-title"},N={class:"quick-item-col"},O={class:"svg-wrap"},P={class:"flex_right"},Q={class:"class-filter-content"},W={class:"quickSearch-content"},M=s("span",{class:"label"},"父类名称:",-1),G=["onDblclick","onClick"],J={key:0,class:"s-content"};var H=U(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:U,emit:H}){const K=e,X={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},Y=C(),{handleGetConfigApi:Z,outQuickSearchFn:$}=R(),{getDefValByRenderWidget:ee,getRenderSearchConObj:le,resetRenderWidgetValue:ae,isRender:te}=V(),{transformData:ie,getCacheDef:ne}=D(),oe=l(null),se=l({classname:""});let re=l(!1),ue=l([]),ce=l([]),de=l(!1),ve=l(""),fe=a((()=>!!ce.value.length&&ce.value.some((e=>e.isAdd)))),me=a((()=>(e,l="name")=>e.alias||e[l]));function pe(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=le(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ue.value)||[]}function he(){var e;null==(e=oe.value)||e.validate((e=>{var l;if(e)return;let a=pe();a.length||(a=[]);let t=null==(l=ce.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await Z(e,"requestSaveTableCondiTion",{},K.filterApiConfig))return;re.value=!1,null==(l=oe.value)||l.restoreValidation(),se.value.classname="",ce.value=[],Ce()}catch(e){console.log(e)}}({tableId:K.tableId||"",setting:JSON.stringify({displayCategory:t,name:se.value.classname,conObj:a}),conditionList:"[]"})}))}function ge(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),de.value=!0}function ke(){de.value=!1,ve.value&&(ce.value.forEach((e=>e.selected=!1)),ce.value.push({disabled:!0,value:ve.value,selected:!0,isAdd:!0}),ve.value="")}function be(e,l){!function(e,l){ce.value.splice(e,1)}(e)}function ye(){re.value=!1}function Ce(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{ae(e)})),$.handlerInitSearchItem(ue.value)}(ue.value),H("clearQuickSearchConfig")}return t((()=>K.searchFieldList),(e=>{e&&e.length>0&&function(){let e=L(ie(K.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ue.value=e||[],$.handlerInitSearchItem(ue.value)}()}),{immediate:!0,deep:!0}),t((()=>ue),(()=>{const e=pe()||[];H("getFilterParam",e)}),{deep:!0}),i((()=>{const e=K.quickSearchConfig;var l;e&&e.length>0&&(l=e,ue.value.forEach(((e,a)=>{var t;if(te(e)){const a=l.find((l=>l.field_key===e.columnName));a&&(null==(t=a.value)?void 0:t.length)>0&&(e.value=ne(e,a.value))}})))})),U({openSaveToCalss:function(){let e=pe();e&&(e.length>0?re.value=!0:Y.warning("请设置搜索条件"))},clearData:Ce,onFilterSearch:function(){let e=pe()||[];return H("onFilterSearch",e,!1),ue.value}}),(e,l)=>(n(),o("div",null,[s("div",z,[(n(!0),o(r,null,u(c(ue),(e=>(n(),o("div",{class:d(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[s("div",B,[v(" title "),s("div",T,[s("span",null,f(c(me)(e,"title"))+"  ",1)]),v(" content "),s("div",N,[v(" 直接渲染组件 "),e.isRender?(n(),m(E,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["cfg","modelValue","onUpdate:modelValue"])):v("v-if",!0)])])],2)))),128))]),v(" 保存到分类的弹窗 "),p(c(S),{show:c(re),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:he,onNegativeClick:ye,class:"classification-modal-block"},{default:h((()=>[p(c(_),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":h((()=>[s("div",O,[p(c(x),{component:c(j),size:"24",onClick:ye},null,8,["component"])])])),footer:h((()=>[s("div",P,[p(c(q),{onClick:ye},{default:h((()=>[g("取消")])),_:1}),p(c(q),{type:"info",onClick:he},{default:h((()=>[g("确认")])),_:1})])])),default:h((()=>[s("div",Q,[p(c(A),{ref_key:"formRef",ref:oe,"label-placement":"left",rules:X,model:se.value},{default:h((()=>[p(c(w),{label:"筛选集名称",path:"classname"},{default:h((()=>[p(c(F),{value:se.value.classname,"onUpdate:value":l[0]||(l[0]=e=>se.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),s("div",W,[M,(n(!0),o(r,null,u(c(ce),((e,l)=>(n(),o("div",{class:d(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(ce.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(n(),o("div",J,[s("span",null,f(e.value),1)])):(n(),m(c(F),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),p(c(x),{component:c(j),class:"anticon-close",size:"20",onClick:e=>be(l)},null,8,["component","onClick"])],42,G)))),128)),c(fe)?v("v-if",!0):(n(),o(r,{key:0},[k(p(c(q),{dashed:"",icon:"plus",class:"ant-btn",onClick:ge},{default:h((()=>[p(c(x),{component:c(I),size:"20"},null,8,["component"]),g("添加分类 ")])),_:1},512),[[b,!c(de)]]),k(p(c(F),{style:{width:"100px"},class:"edit-tag",value:c(ve),"onUpdate:value":l[1]||(l[1]=e=>y(ve)?ve.value=e:ve=e),valueModifiers:{trim:!0},onBlur:ke,maxLength:10},null,8,["value"]),[[b,c(de)]])],64))])])])),_:1})])),_:1},8,["show"])]))}}),[["__file","index.vue"]]);export{H as default};
@@ -0,0 +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;flex-wrap:wrap}.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}.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}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px}.quick-search-block .quick-item .quick-row{align-items:center;display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{line-height:32px;min-width:80px;padding-left:12px;text-align:right}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 12px}.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}
@@ -736,9 +736,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
736
736
  }, {
737
737
  options: import("../../../es/shared/types").AnyObject[];
738
738
  placeholder: string;
739
+ valueKey: string;
739
740
  editPlaceholder: string;
740
741
  labelKey: string;
741
- valueKey: string;
742
742
  commonList: import("./src/types").RecommendItem[];
743
743
  recentList: import("./src/types").RecommendItem[];
744
744
  }>;
@@ -804,10 +804,10 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
804
804
  }, {
805
805
  options: import("../../../es/shared/types").AnyObject[];
806
806
  mode: "input" | "select";
807
+ valueKey: string;
807
808
  clearable: boolean;
808
809
  editPlaceholder: string;
809
810
  labelKey: string;
810
- valueKey: string;
811
811
  commonList: import("./src/types").RecommendItem[];
812
812
  recentList: import("./src/types").RecommendItem[];
813
813
  recommendDeletable: boolean;
@@ -738,9 +738,9 @@ declare const _default: import("vue").DefineComponent<{
738
738
  }, {
739
739
  options: AnyObject[];
740
740
  placeholder: string;
741
+ valueKey: string;
741
742
  editPlaceholder: string;
742
743
  labelKey: string;
743
- valueKey: string;
744
744
  commonList: RecommendItem[];
745
745
  recentList: RecommendItem[];
746
746
  }>;
@@ -806,10 +806,10 @@ declare const _default: import("vue").DefineComponent<{
806
806
  }, {
807
807
  options: AnyObject[];
808
808
  mode: "input" | "select";
809
+ valueKey: string;
809
810
  clearable: boolean;
810
811
  editPlaceholder: string;
811
812
  labelKey: string;
812
- valueKey: string;
813
813
  commonList: RecommendItem[];
814
814
  recentList: RecommendItem[];
815
815
  recommendDeletable: boolean;
@@ -291,9 +291,9 @@ declare const _default: import("vue").DefineComponent<{
291
291
  }, {
292
292
  options: AnyObject[];
293
293
  placeholder: string;
294
+ valueKey: string;
294
295
  editPlaceholder: string;
295
296
  labelKey: string;
296
- valueKey: string;
297
297
  commonList: RecommendItem[];
298
298
  recentList: RecommendItem[];
299
299
  }>;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as m,mergeProps as v,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as V,NFormItem as F,NButton as K}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:me,hasScore:ve,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,scaleEdit:Se}=_(Q,z,{query:ne}),{initForm:Ee}=A(Q,z,H,{query:ne}),{submitMethod:_e}=j(Q,z,H,{query:ne}),{nextLogicEvent:Ae,handleDynamicDataRelation:je}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const Te=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{Ee(o)}))}),{immediate:!0});const De=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Oe=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,_e(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},Le=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},xe=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,Ae(e,o,z.formArray),je(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),Ae(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Ae(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Ie=(e,o)=>{console.log(o),z.form[o.val_key]=e},Pe=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},Ne=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void qe("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value||Se.value)return void qe("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}qe(a)},qe=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Me()},onNegativeClick(){}})},Me=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}_e()}))},Be=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:Ne,cancel:Be}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="加载中"></n-spin>\r\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),m(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),m(N,v({key:0},r(Ce),{onWriteGuage:De}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),m(P,v({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Oe}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(ve)?(n(),m(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(V),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),m(r(F),{key:0,path:e.val_key,"show-label":!r(D)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(me)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void Le(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,Le(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),m(C(e.renderCom),v(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:xe,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Pe(e)})(o,e),onVodFileList:Ie}),null,16,["onOnChange"])),r(ke)(e)?(n(),m(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),m(r(K),{key:0,onClick:Be},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),m(r(K),{key:1,onClick:Ne,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
1
+ import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as m,mergeProps as v,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as V,NFormItem as F,NButton as K}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:me,hasScore:ve,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,scaleEdit:Se}=_(Q,z,{query:ne}),{initForm:Ee}=A(Q,z,H,{query:ne}),{submitMethod:_e}=j(Q,z,H,{query:ne}),{nextLogicEvent:Ae,handleDynamicDataRelation:je}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const Te=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{Ee(o)}))}),{immediate:!0});const De=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Oe=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,_e(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},Le=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},xe=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,Ae(e,o,z.formArray),je(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),Ae(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Ae(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Ie=(e,o)=>{console.log(o),z.form[o.val_key]=e},Pe=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},Ne=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void qe("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value||Se.value)return void qe("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}qe(a)},qe=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Me()},onNegativeClick(){}})},Me=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}_e()}))},Be=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:Ne,cancel:Be}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),m(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),m(N,v({key:0},r(Ce),{onWriteGuage:De}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),m(P,v({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Oe}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(ve)?(n(),m(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(V),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),m(r(F),{key:0,path:e.val_key,"show-label":!r(D)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(me)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void Le(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,Le(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),m(C(e.renderCom),v(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:xe,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Pe(e)})(o,e),onVodFileList:Ie}),null,16,["onOnChange"])),r(ke)(e)?(n(),m(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),m(r(K),{key:0,onClick:Be},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),m(r(K),{key:1,onClick:Ne,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
@@ -165,9 +165,9 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
165
165
  onNodeClick?: ((...args: any[]) => any) | undefined;
166
166
  }, {
167
167
  options: import("../../../es/shared/types").AnyObject[];
168
+ valueKey: string;
168
169
  childKey: string;
169
170
  labelKey: string;
170
- valueKey: string;
171
171
  }>;
172
172
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "update:value" | "focus")[], "focus" | "update:show" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
173
173
  value: {
@@ -223,11 +223,11 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
223
223
  show: boolean;
224
224
  options: import("../../../es/shared/types").AnyObject[];
225
225
  placeholder: string;
226
+ valueKey: string;
226
227
  clearable: boolean;
227
228
  childKey: string;
228
229
  editPlaceholder: string;
229
230
  labelKey: string;
230
- valueKey: string;
231
231
  checkAbleLevel: number | "last";
232
232
  }>>;
233
233
  export default SearchCascader;
@@ -167,9 +167,9 @@ declare const _default: import("vue").DefineComponent<{
167
167
  onNodeClick?: ((...args: any[]) => any) | undefined;
168
168
  }, {
169
169
  options: AnyObject[];
170
+ valueKey: string;
170
171
  childKey: string;
171
172
  labelKey: string;
172
- valueKey: string;
173
173
  }>;
174
174
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "update:value" | "focus")[], "focus" | "update:show" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
175
175
  value: {
@@ -225,11 +225,11 @@ declare const _default: import("vue").DefineComponent<{
225
225
  show: boolean;
226
226
  options: AnyObject[];
227
227
  placeholder: string;
228
+ valueKey: string;
228
229
  clearable: boolean;
229
230
  childKey: string;
230
231
  editPlaceholder: string;
231
232
  labelKey: string;
232
- valueKey: string;
233
233
  checkAbleLevel: number | "last";
234
234
  }>;
235
235
  export default _default;
@@ -44,7 +44,7 @@ export declare const SearchMenu: import("vue").DefineComponent<{
44
44
  onNodeClick?: ((...args: any[]) => any) | undefined;
45
45
  }, {
46
46
  options: AnyObject[];
47
+ valueKey: string;
47
48
  childKey: string;
48
49
  labelKey: string;
49
- valueKey: string;
50
50
  }>;
@@ -38,7 +38,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
38
38
  fieldList: import("vue").Ref<{
39
39
  [x: string]: any;
40
40
  val_key: string;
41
- html_type: "LINEBAR" | ({} & string) | "SELECT" | "DATE" | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
41
+ html_type: "LINEBAR" | ({} & string) | "INPUT" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
42
42
  annotation?: boolean | undefined;
43
43
  val_key_unit?: string | undefined;
44
44
  is_edit?: import("..").FormCommonState | undefined;
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  fieldList: import("vue").Ref<{
41
41
  [x: string]: any;
42
42
  val_key: string;
43
- html_type: "LINEBAR" | ({} & string) | "SELECT" | "DATE" | "COMBINATION" | "INPUT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
43
+ html_type: "LINEBAR" | ({} & string) | "INPUT" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
44
44
  annotation?: boolean | undefined;
45
45
  val_key_unit?: string | undefined;
46
46
  is_edit?: import("../../../../es/components/form-render").FormCommonState | undefined;