cnhis-design-vue 3.1.55-beta.0 → 3.1.55-beta.10

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 (106) hide show
  1. package/es/components/audio-sdk/index.d.ts +2 -0
  2. package/es/components/audio-sdk/index.js +1 -0
  3. package/es/components/{chat-sdk/src/chatSDK.d.ts → audio-sdk/src/audioSDK.d.ts} +8 -4
  4. package/es/components/audio-sdk/src/audioSDK.js +1 -0
  5. package/es/components/{chat-sdk → audio-sdk}/src/components/recordingDialog.vue.d.ts +1 -0
  6. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -0
  7. package/es/components/audio-sdk/style/index.css +1 -0
  8. package/es/components/base-search/src/index.vue2.js +1 -1
  9. package/es/components/{multi-chat → biunique-chat}/index.d.ts +2 -2
  10. package/es/components/biunique-chat/index.js +1 -0
  11. package/es/components/biunique-chat/src/BiuniqueChat.vue.js +1 -0
  12. package/es/components/biunique-chat/src/BiuniqueChat.vue2.js +1 -0
  13. package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
  14. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  15. package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
  16. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  18. package/es/components/form-config/index.d.ts +33 -0
  19. package/es/components/form-config/src/FormConfig.vue.d.ts +33 -0
  20. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -0
  21. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +16 -0
  22. package/es/components/form-render/index.d.ts +13 -0
  23. package/es/components/form-render/index.js +1 -1
  24. package/es/components/form-render/src/FormRender.vue.d.ts +13 -0
  25. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  26. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -0
  27. package/es/components/form-render/src/components/renderer/complex.js +1 -1
  28. package/es/components/form-render/src/components/renderer/date.js +1 -1
  29. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  30. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  31. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  32. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  33. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  34. package/es/components/form-render/src/components/renderer/select.js +1 -1
  35. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  36. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  37. package/es/components/form-render/src/constants/index.d.ts +0 -1
  38. package/es/components/form-render/src/constants/index.js +1 -1
  39. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  40. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  41. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  42. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +3 -3
  43. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  44. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
  45. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  46. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  47. package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
  48. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  49. package/es/components/form-render/src/utils/index.d.ts +3 -16
  50. package/es/components/form-render/src/utils/index.js +1 -1
  51. package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -0
  52. package/es/components/iho-table/src/plugins/colorAndIconPlugin.js +1 -0
  53. package/es/components/iho-table/src/plugins/index.js +1 -1
  54. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
  55. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  56. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  57. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  58. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +1 -1
  59. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  60. package/es/components/iho-table/src/types/index.d.ts +2 -0
  61. package/es/components/iho-table/src/utils/index.d.ts +1 -1
  62. package/es/components/iho-table/src/utils/index.js +1 -1
  63. package/es/components/iho-table/style/index.css +1 -1
  64. package/es/components/index.css +1 -1
  65. package/es/components/index.d.ts +3 -3
  66. package/es/components/index.js +1 -1
  67. package/es/components/info-header/index.d.ts +26 -0
  68. package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
  69. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -0
  70. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -0
  71. package/es/components/shortcut-setter/index.d.ts +14 -0
  72. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +14 -0
  73. package/es/shared/package.json.js +1 -1
  74. package/es/shared/utils/business.d.ts +1 -0
  75. package/es/shared/utils/business.js +1 -1
  76. package/es/shared/utils/index.js +1 -1
  77. package/package.json +2 -2
  78. package/es/components/chat-sdk/index.d.ts +0 -2
  79. package/es/components/chat-sdk/index.js +0 -1
  80. package/es/components/chat-sdk/src/chatSDK.js +0 -1
  81. package/es/components/chat-sdk/src/components/recordingDialog.vue2.js +0 -1
  82. package/es/components/chat-sdk/style/index.css +0 -1
  83. package/es/components/multi-chat/index.js +0 -1
  84. package/es/components/multi-chat/src/MultiChat.vue.js +0 -1
  85. package/es/components/multi-chat/src/MultiChat.vue2.js +0 -1
  86. /package/es/components/{chat-sdk → audio-sdk}/src/components/recordingDialog.vue.js +0 -0
  87. /package/es/components/{chat-sdk → audio-sdk}/src/utils/recordingDialog.d.ts +0 -0
  88. /package/es/components/{chat-sdk → audio-sdk}/src/utils/recordingDialog.js +0 -0
  89. /package/es/components/{multi-chat/src/MultiChat.vue.d.ts → biunique-chat/src/BiuniqueChat.vue.d.ts} +0 -0
  90. /package/es/components/{multi-chat → biunique-chat}/src/api/index.d.ts +0 -0
  91. /package/es/components/{multi-chat → biunique-chat}/src/api/index.js +0 -0
  92. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue.d.ts +0 -0
  93. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue.js +0 -0
  94. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue2.js +0 -0
  95. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue.d.ts +0 -0
  96. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue.js +0 -0
  97. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue2.js +0 -0
  98. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue.d.ts +0 -0
  99. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue.js +0 -0
  100. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue2.js +0 -0
  101. /package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue.d.ts +0 -0
  102. /package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue.js +0 -0
  103. /package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue2.js +0 -0
  104. /package/es/components/{multi-chat → biunique-chat}/src/utils/chatSock.d.ts +0 -0
  105. /package/es/components/{multi-chat → biunique-chat}/src/utils/chatSock.js +0 -0
  106. /package/es/components/{multi-chat → biunique-chat}/style/index.css +0 -0
@@ -0,0 +1,2 @@
1
+ import audioSDK from './src/audioSDK';
2
+ export { audioSDK as CAudioSDK };
@@ -0,0 +1 @@
1
+ export{default as CAudioSDK}from"./src/audioSDK.js";
@@ -2,19 +2,23 @@ import { ComponentInternalInstance } from 'vue';
2
2
  import 'recorder-core/src/engine/mp3';
3
3
  import 'recorder-core/src/engine/mp3-engine';
4
4
  import { AnyObject } from '../../../../es/shared/types';
5
- export default class ChatSDK {
5
+ export default class AudioSDK {
6
6
  private recorder;
7
7
  private recordingDialog;
8
8
  private onProcess;
9
- static instance: ChatSDK | null;
9
+ static instance: AudioSDK | null;
10
+ static serverUrl: string;
10
11
  constructor();
11
- static create(): ChatSDK;
12
+ static create(option?: AnyObject): AudioSDK;
12
13
  private initRecorder;
13
14
  private recorderOpen;
14
15
  recorderStart(instance: ComponentInternalInstance, afterLeave: Function): Promise<{
15
16
  result: string;
16
17
  }>;
17
- recorderStop(isRecognition?: boolean): Promise<AnyObject>;
18
+ recorderStop({ isRecognition, allowPunctuationMark }: {
19
+ isRecognition?: boolean | undefined;
20
+ allowPunctuationMark?: boolean | undefined;
21
+ }): Promise<AnyObject>;
18
22
  destroy(): void;
19
23
  static audioRecognition(params: FormData): Promise<import("axios").AxiosResponse<any, any>>;
20
24
  static audioRevise(params: {
@@ -0,0 +1 @@
1
+ import r from"axios";import e from"recorder-core";import"recorder-core/src/engine/mp3";import"recorder-core/src/engine/mp3-engine";import{uuidGenerator as t}from"../../../shared/utils/index.js";import{useThrottleFn as s}from"@vueuse/core";import{RecordingDialog as i}from"./utils/recordingDialog.js";const o=class{constructor(){if(this.recorder=null,this.recordingDialog=new i,this.onProcess=s(((r,e)=>{if(!this.recordingDialog.target)return;const t=this.recordingDialog.target.querySelector(".animation");if(t){const r="translateX(-50%) translateY(-50%)";if(e>.5){const s=1+.01*e;t.style.transform=r+" scale("+s+")"}else t.style.transform=r+" scale(1)"}}),200),o.instance)return o.instance;this.initRecorder(),o.instance=this}static create(r){return(null==r?void 0:r.serverUrl)&&(this.serverUrl=r.serverUrl),new o}initRecorder(){this.recorder=e({type:"mp3",sampleRate:16e3,bitRate:16,onProcess:this.onProcess})}async recorderOpen(){return this.recorder||this.initRecorder(),new Promise(((r,e)=>{this.recorder.open((()=>{r({})}),((r,t)=>{e({result:"fail",msg:r,isUserNotAllow:t})}))}))}async recorderStart(r,e){try{return await this.recorderOpen(),this.recorder.start(),await this.recordingDialog.show(r,e),Promise.resolve({result:"success"})}catch(r){return Promise.reject(r)}}recorderStop({isRecognition:r=!0,allowPunctuationMark:e=!0}){return this.recorder?(this.recordingDialog.hide(),new Promise(((s,i)=>{this.recorder.stop((async(a,n)=>{var c;const l=new File([a],`${t()}.mp3`,{type:a.type});try{let t;if(r){const r=new FormData;r.append("audio",l);const{data:s}=await o.audioRecognition(r);t=s,!e&&"success"===t.msg&&(null==(c=t.data)?void 0:c.text)&&(t.data.text=t.data.text.replace(/[??,。,.\s]/g,""))}s({result:"success",file:l,duration:n,...t?{data:t}:{}})}catch(r){i({result:"fail",msg:r})}}),(r=>{i({result:"fail",msg:r})}))}))):Promise.reject({result:"fail",msg:"请先打开麦克风录音"})}destroy(){var r;null==(r=this.recorder)||r.close(),this.recorder=null}static async audioRecognition(e){return await r.post(`${this.serverUrl}/audio/recognition`,e,{headers:{"Content-Type":"multipart/form-data"}})}static async audioRevise(e){return await r.post(`${this.serverUrl}/audio/revise`,e)}};let a=o;a.serverUrl="";export{a as default};
@@ -4,6 +4,7 @@ declare const _default: import("vue").DefineComponent<{
4
4
  default: boolean;
5
5
  };
6
6
  }, {
7
+ cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
7
8
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
8
9
  visible: {
9
10
  type: BooleanConstructor;
@@ -0,0 +1 @@
1
+ import{defineComponent as o,ref as e,watch as s,openBlock as i,createBlock as r,unref as t,withCtx as a,createElementVNode as n,normalizeStyle as l,createVNode as u}from"vue";import{NModal as p,NIcon as m}from"naive-ui";import{Mic as c}from"@vicons/ionicons5";import{useTheme as d}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";const v=n("div",{class:"animation"},null,-1);var h=o({__name:"recordingDialog",props:{visible:{type:Boolean,default:!1}},setup(o){const h=o,f=d(),k=e(!0);function w(){k.value=!1}return s((()=>h.visible),(o=>{k.value=o})),(o,e)=>(i(),r(t(p),{show:k.value,"onUpdate:show":e[0]||(e[0]=o=>k.value=o)},{default:a((()=>[n("div",{class:"c-recording-wrapper",style:l(t(f))},[v,n("div",{class:"icon-box",onClick:w},[u(t(m),{size:"60",color:"#fff",component:t(c)},null,8,["component"])])],4)])),_:1},8,["show"]))}});export{h as default};
@@ -0,0 +1 @@
1
+ .c-recording-wrapper{align-items:center;background-color:#fff;border-radius:10px;bottom:100px;display:flex;height:350px;justify-content:center;left:calc(50% - 250px);position:fixed;width:500px}.c-recording-wrapper .animation{background-color:var(--c-primary-color-opacity2);left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scale(1);z-index:-1}.c-recording-wrapper .animation,.c-recording-wrapper .icon-box{align-items:center;border-radius:50%;display:flex;height:90px;justify-content:center;width:90px}.c-recording-wrapper .icon-box{background-color:var(--c-primary-color);cursor:pointer}
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,provide as a,computed as i,watch as l,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as c,unref as u,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import g from"../../table-filter/src/components/render-widget/index.vue.js";import b from"../../table-filter/src/hooks/useMixins.js";import y from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as j}from"naive-ui";import{Search as A}from"@vicons/ionicons5";import{isObject as S,cloneDeep as O}from"lodash-es";import{InjectionFilterApiConfig as x,InjectionFilterSearchConfig as F}from"../../table-filter/src/constants/index.js";const q={class:"base-search-block"},R={class:"base-container"},V={class:"bease-left"},Q={class:"base-ul"},N={key:0,class:"baseli showQuickBtn"},_=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),w={key:0,class:"qqConObjCount"},E={key:1,class:"baseli"},I={key:2,class:"baseli"},P=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var B=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object},appendValueConfig:{type:Object,default:()=>({})}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:B,emit:L}){const U=e,{outQuickSearchFn:D}=b(),{isRender:W,getRenderSearchConObj:$,isExistDefValByRenderWidget:z,resetRenderWidgetValue:M}=C(),{transformData:T,transformParams:G}=y(),H=t([]),J=t(!1),K=t([]),X=t([]);a(x,U.filterApiConfig),a(F,K);const Y=i((()=>ee("hideQuickSearch"))),Z=i((()=>ee("hideResetBtn")));function ee(e){return 0==U.showSettings[e]}function te(){L("foldQuickSearch",!0)}function ae(e={}){const t=ie()||[];!function(e,t,a=!1,i={}){let l=[];K.value.length>0&&(l=O(K.value));L("onFilterSearch",e,t,a,l,i)}(t,G(t),!0,e)}function ie(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let a=0;a<e.length;a++){let i=e[a];const l=$(i);l&&t.push(l)}return t.filter((e=>e.value||Object.keys(e).includes("isAccurateSearch")))}(K.value)}function le(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{M(e)})),D.handlerInitSearchItem(e)}(K.value),L("handleReset",{targetType:"outQuickSearchReset"})}return l((()=>U.searchFieldList),(e=>{e&&e.length>0&&function(){K.value=[];let e=O(T(U.searchFieldList,{_filterApiConfig:U.filterApiConfig})).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));K.value=e,D.handlerInitSearchItem(K.value),K.value.some((e=>W(e)?z(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),l((()=>U.qqConObjCount),(e=>{const t=H.value.length||0;J.value=t+Number(e)>0&&Z.value}),{immediate:!0}),l((()=>K),(()=>{H.value=ie()||[];const e=G(H.value);J.value=H.value.length+Number(U.qqConObjCount)>0&&Z.value,L("getFilterParam",H.value,e),X.value.forEach((t=>t(e)))}),{immediate:!0,deep:!0}),l((()=>U.appendValueConfig),(e=>{if(S(e)&&Object.keys(e).length>0){const t=Object.keys(e);K.value.forEach((a=>{t.includes(a.columnName)&&(a.value=e[a.columnName])}))}}),{immediate:!0,deep:!0}),B({handleReset:le,getFilterParams:function(){const e=ie()||[];return G(e)},setFilterParams:function(e){const t=e?Object.keys(e):[];t.length>0&&K.value.forEach((a=>{var i;if(W(a)&&t.includes(a.columnName)){const t=e[a.columnName];a.value=Array.isArray(t)&&!1===(null==(i=a.widgetCfg)?void 0:i.multiple)?t[0]:t}}))},getOriginalConfig:function(){return U.searchFieldList},onFilterChange:function(e){X.value.push(e)}}),(t,a)=>(n(),r("div",q,[s("div",R,[s("div",V,[s("ul",Q,[o(" 筛选分类插槽 "),c(t.$slots,"classification"),u(Y)?(n(),r("li",N,[f(u(k),{class:"search-default",type:"default",onClick:te},{default:d((()=>[_,m(" 筛选"),e.qqConObjCount?(n(),r("span",w,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(p,null,v(K.value,(e=>(n(),r(p,null,[e.isRender?(n(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(g,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,isAccurate:e.isAccurateSearchVal,"onUpdate:isAccurate":t=>e.isAccurateSearchVal=t,onOutFilterChange:ae},null,8,["cfg","modelValue","onUpdate:modelValue","isAccurate","onUpdate:isAccurate"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),K.value&&K.value.length>0?(n(),r("li",E,[f(u(k),{type:"primary",onClick:ae},{default:d((()=>[f(u(j),{component:u(A),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),J.value?(n(),r("li",I,[f(u(k),{onClick:le},{default:d((()=>[P,m(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),c(t.$slots,"buttons")])])])]))}});export{B as default};
1
+ import{defineComponent as e,ref as t,provide as a,computed as i,watch as l,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as c,unref as u,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import g from"../../table-filter/src/components/render-widget/index.vue.js";import b from"../../table-filter/src/hooks/useMixins.js";import y from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as j}from"naive-ui";import{Search as A}from"@vicons/ionicons5";import{isObject as S,cloneDeep as O}from"lodash-es";import{InjectionFilterApiConfig as x,InjectionFilterSearchConfig as F}from"../../table-filter/src/constants/index.js";const q={class:"base-search-block"},R={class:"base-container"},V={class:"bease-left"},Q={class:"base-ul"},N={key:0,class:"baseli showQuickBtn"},_=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),w={key:0,class:"qqConObjCount"},E={class:"baseli"},I={key:1,class:"baseli"},P={key:2,class:"baseli"},B=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var L=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object},appendValueConfig:{type:Object,default:()=>({})}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:L,emit:U}){const D=e,{outQuickSearchFn:W}=b(),{isRender:$,getRenderSearchConObj:z,isExistDefValByRenderWidget:M,resetRenderWidgetValue:T}=C(),{transformData:G,transformParams:H}=y(),J=t([]),K=t(!1),X=t([]),Y=t([]);a(x,D.filterApiConfig),a(F,X);const Z=i((()=>te("hideQuickSearch"))),ee=i((()=>te("hideResetBtn")));function te(e){return 0==D.showSettings[e]}function ae(){U("foldQuickSearch",!0)}function ie(e={}){const t=le()||[];!function(e,t,a=!1,i={}){let l=[];X.value.length>0&&(l=O(X.value));U("onFilterSearch",e,t,a,l,i)}(t,H(t),!0,e)}function le(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let a=0;a<e.length;a++){let i=e[a];const l=z(i);l&&t.push(l)}return t.filter((e=>e.value||Object.keys(e).includes("isAccurateSearch")))}(X.value)}function ne(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{T(e)})),W.handlerInitSearchItem(e)}(X.value),U("handleReset",{targetType:"outQuickSearchReset"})}return l((()=>D.searchFieldList),(e=>{e&&e.length>0&&function(){X.value=[];let e=O(G(D.searchFieldList,{_filterApiConfig:D.filterApiConfig})).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));X.value=e,W.handlerInitSearchItem(X.value),X.value.some((e=>$(e)?M(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),l((()=>D.qqConObjCount),(e=>{const t=J.value.length||0;K.value=t+Number(e)>0&&ee.value}),{immediate:!0}),l((()=>X),(()=>{J.value=le()||[];const e=H(J.value);K.value=J.value.length+Number(D.qqConObjCount)>0&&ee.value,U("getFilterParam",J.value,e),Y.value.forEach((t=>t(e)))}),{immediate:!0,deep:!0}),l((()=>D.appendValueConfig),(e=>{if(S(e)&&Object.keys(e).length>0){const t=Object.keys(e);X.value.forEach((a=>{t.includes(a.columnName)&&(a.value=e[a.columnName])}))}}),{immediate:!0,deep:!0}),L({handleReset:ne,getFilterParams:function(){const e=le()||[];return H(e)},setFilterParams:function(e){const t=e?Object.keys(e):[];t.length>0&&X.value.forEach((a=>{var i;if($(a)&&t.includes(a.columnName)){const t=e[a.columnName];a.value=Array.isArray(t)&&!1===(null==(i=a.widgetCfg)?void 0:i.multiple)?t[0]:t}}))},getOriginalConfig:function(){return D.searchFieldList},onFilterChange:function(e){Y.value.push(e)}}),(t,a)=>(n(),r("div",q,[s("div",R,[s("div",V,[s("ul",Q,[o(" 筛选分类插槽 "),c(t.$slots,"classification"),u(Z)?(n(),r("li",N,[f(u(k),{class:"search-default",type:"default",onClick:ae},{default:d((()=>[_,m(" 筛选"),e.qqConObjCount?(n(),r("span",w,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(p,null,v(X.value,(e=>(n(),r(p,null,[e.isRender?(n(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(g,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,isAccurate:e.isAccurateSearchVal,"onUpdate:isAccurate":t=>e.isAccurateSearchVal=t,onOutFilterChange:ie},null,8,["cfg","modelValue","onUpdate:modelValue","isAccurate","onUpdate:isAccurate"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),s("div",E,[o(" 业务组件插槽 "),c(t.$slots,"modules")]),o(" 查询按钮 "),X.value&&X.value.length>0?(n(),r("li",I,[f(u(k),{type:"primary",onClick:ie},{default:d((()=>[f(u(j),{component:u(A),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),K.value?(n(),r("li",P,[f(u(k),{onClick:ne},{default:d((()=>[B,m(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),c(t.$slots,"buttons")])])])]))}});export{L as default};
@@ -1,5 +1,5 @@
1
1
  import { SFCWithInstall } from '../../../es/shared/types';
2
- declare const MultiChat: SFCWithInstall<import("vue").DefineComponent<{
2
+ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
3
3
  data: {
4
4
  type: import("vue").PropType<{
5
5
  chatType: string | number;
@@ -1020,4 +1020,4 @@ declare const MultiChat: SFCWithInstall<import("vue").DefineComponent<{
1020
1020
  source: string | number;
1021
1021
  };
1022
1022
  }>>;
1023
- export default MultiChat;
1023
+ export default BiuniqueChat;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as i}from"../../shared/global/variable.js";import{safeComponentRegister as r}from"../../shared/utils/index.js";import t from"./src/BiuniqueChat.vue.js";const a=t;a.install=function(t){r(t,a,i+"BiuniqueChat")};export{a as default};
@@ -0,0 +1 @@
1
+ import e from"./BiuniqueChat.vue2.js";import u from"../../../_virtual/_plugin-vue_export-helper.js";var i=u(e,[["__file","BiuniqueChat.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as s,reactive as t,provide as n,openBlock as o,createBlock as r,unref as i,withCtx as a,createVNode as c}from"vue";import{NSpin as u,NLayout as d,NLayoutSider as m,NLayoutContent as l}from"naive-ui";import f from"./components/SiderList.vue.js";import p from"./components/ChatHeader.vue.js";import g from"./components/ChatMain.vue.js";import S from"./components/ChatFooter.vue.js";import{promiseTimeout as I}from"@vueuse/shared";import{ChatSock as h}from"./utils/chatSock.js";import{accessApi as b,readMessageApi as y}from"./api/index.js";import{format as v}from"date-fns";var C=e({__name:"BiuniqueChat",props:{data:{type:Object,default:()=>({})},baseURL:{type:String,defalut:"/"}},setup(e){const C=e,_=s(!1),w=s(!1);let M;const L=t({reConnention:0,currentSessionItem:{},currentSessionId:"",userInfo:{},msgList:[],currentMsg:{},isAppendMsg:!1,sessionList:[],isChangeSession:!1,updateSessionItem:{},isUpdateSession:!1});function j(){const e={heartbeatFn:()=>{try{null==M||M.send("test")}catch(e){null==M||M.disconnect(),j()}},connectCb:()=>{console.log("连接成功"),L.reConnention>0&&(L.reConnention=0),M.subscribe(`/user/${L.userInfo.username}/message`,(e=>{try{const s=JSON.parse(e.body),{body:t,from:n,id:o,fromName:r,readStatus:i,createdTime:a,sessionId:c}=s;if(c!==L.currentSessionId)return;N({createdTime:a,readStatus:i,content:t,fromId:n,id:o,fromName:r,senderFlag:1}),O(!0),async function(){await y({sessionId:L.currentSessionId,from:L.userInfo.username,id:L.currentMsg.id})}()}catch(e){console.log(e)}})),M.subscribe(`/user/${L.userInfo.username}/sessionList`,(e=>{var s;try{const t=JSON.parse(e.body),n={__time:v(new Date(t.sendTime),"MM/dd HH:mm"),__lastContent:(null==(s=t.lastContent)?void 0:s.content)||"",id:t.sessionId};if(0==t.opt){const e=t.name||t.fromName||t.toName;U([{...t,name:e,__name:e.slice(-2),...n},...L.sessionList])}else 1==t.opt&&(L.updateSessionItem={...t,...n},k(!0))}catch(e){console.log(e)}})),M.subscribe(`/user/${L.userInfo.username}/msgReadStatus`,(e=>{try{if(!L.currentSessionId)return;const s=JSON.parse(e.body);if(s.sessionId!==L.currentSessionId)return;const t=(null==s?void 0:s.readStatus)||{};if(Object.keys(t).length<1)return}catch(e){console.log(e)}}))},errorCb:(e,s)=>{L.reConnention=s,console.log("断线了,正在重连...")}};M=new h(`${C.baseURL}/stomp`,e)}function N(e){L.currentMsg=e}function O(e){L.isAppendMsg=e}function U(e){L.sessionList=e}function k(e){L.isUpdateSession=e}async function H(e){e||await I(300),_.value=e}return n("state",L),n("setCurrentSessionItem",(function(e){if(Object.assign(L.currentSessionItem,e),L.currentSessionId===L.currentSessionItem.id)return;L.currentSessionId=L.currentSessionItem.id,L.msgList=[]})),n("setMsgList",(function(e=[]){L.msgList=e.map((e=>{var s;return{...e,__time:v(new Date(e.createdTime),"MM/dd HH:mm"),__content:null==(s=e.content)?void 0:s.content,__left:1==e.senderFlag}}))})),n("setCurrentMsg",N),n("setIsAppendMsg",O),n("setSessionList",U),n("setIsChangeSession",(function(e){L.isChangeSession=e})),n("setIsUpdateSession",k),async function(){await async function(){if(Object.values(C.data).some((e=>!String(e))))return console.log("缺少参数");try{w.value=!0;const e=await b(C.data);L.userInfo=e}catch(e){console.log(e)}finally{w.value=!1}}(),j()}(),(e,s)=>w.value?(o(),r(i(u),{key:0,stroke:"#5585f5"})):(o(),r(i(d),{key:1,class:"c-multi-chat","has-sider":""},{default:a((()=>[c(i(m),{"collapse-mode":"width","collapsed-width":100,width:300,"show-trigger":"arrow-circle","content-style":"padding: 20px;",bordered:"","onUpdate:collapsed":H},{default:a((()=>[c(f,{collapsed:_.value},null,8,["collapsed"])])),_:1}),c(i(l),{class:"chat-wrapper"},{default:a((()=>[c(p),c(g),c(S)])),_:1})])),_:1}))}});export{C as default};
@@ -1 +1 @@
1
- import{ref as e}from"vue";import{fabric as t}from"../../../../shared/utils/fabricjs/index.js";function o(o,n,r,{props:s,emits:l}){const u=e({});return function(){if(o){const e=[];Object.keys(n).forEach((o=>{!function(e,o){const n=new t.Path(o,{fill:"",stroke:"#333",strokeWidth:2,hoverCursor:"default",evented:!0,selectable:!1,name:e});n.isSelectMode=!1,u.value[e]=n}(o,n[o]),e.push(u.value[o])}));const c=new t.Group(e,{originX:"left",originY:"top",left:0,scaleX:r,scaleY:r,evented:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0});return c.forEachObject((e=>{e.on("mouseover",(function(){e.set("fill",s.fillColor),o.requestRenderAll()})),e.on("mouseout",(function(){e.isSelectMode||(e.set("fill",""),o.requestRenderAll())})),e.on("mousedown",(function(){const t=!e.isSelectMode;l("select",e.name,t)}))})),o.add(c),o.centerObject(c),{canvas:o,data:u.value}}return null}()}export{o as default};
1
+ import{ref as e}from"vue";import{fabric as t}from"../../../../shared/utils/fabricjs/index.js";function o(o,l,n,{props:r,emits:s}){const i=e({}),c={};return function(){if(o){const e=[];Object.keys(l).forEach((o=>{!function(e,o){const l=new t.Path(o,{fill:"",stroke:"#333",strokeWidth:2,hoverCursor:"pointer",evented:!0,selectable:!1,name:e});l.isSelectMode=!1,i.value[e]=l}(o,l[o]),e.push(i.value[o])}));const u=new t.Group(e,{originX:"left",originY:"top",left:0,scaleX:n,scaleY:n,evented:!0,selectable:!1,hoverCursor:"pointer",subTargetCheck:!0});return u.forEachObject((e=>{e.on("mouseover",(function(){e.set("fill",r.fillColor),c[e.name]=e,setTimeout((()=>{var t,l;t=c,l=e.name,Object.keys(t).filter((e=>!t[e].isSelectMode&&t[e].name!==l)).forEach((e=>{t[e].set("fill",""),delete t[e]})),o.requestRenderAll()}),10)})),e.on("mouseout",(function(){e.fill&&(e.isSelectMode||(e.set("fill",""),delete c[e.name],o.requestRenderAll()))})),e.on("mousedown",(function(){const t=!e.isSelectMode;s("select",e.name,t)}))})),u.on("mouseout",(function(){Object.keys(c).filter((e=>!c[e].isSelectMode)).forEach((e=>{c[e].fill&&(c[e].set("fill",""),delete c[e])})),o.requestRenderAll()})),o.add(u),o.centerObject(u),{canvas:o,data:i.value}}return null}()}export{o as default};
@@ -1 +1 @@
1
- import{defineComponent as t,reactive as e,computed as n,onMounted as i,watch as r,openBlock as a,createElementBlock as s,Fragment as o,createVNode as l,unref as p,withCtx as d,renderSlot as m,withModifiers as u,createTextVNode as c,toDisplayString as f,mergeProps as g}from"vue";import{isObject as v}from"@vue/shared";import{useMessage as y,NDropdown as b,NButton as I,NIcon as P}from"naive-ui";import{ChevronDown as h}from"@vicons/ionicons5";import{Print as w}from"./utils/print.js";import{isIReport as F}from"./utils/browserPrint.js";import k from"./components/IdentityVerification.vue.js";import{format as T}from"date-fns";import{savePrivateFormatApi as x,getPrivateFormatApi as S}from"./api.js";var L=t({__name:"ButtonPrint",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:"打印",type:String},printText:{default:"直接打印",type:String},previewText:{default:"打印预览",type:String},pdfLoadText:{default:"下载pdf",type:String},formatEditText:{default:"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0}},emits:["success","error","clickoutside"],setup(t,{expose:L,emit:D}){var O;const j=t,E=y();let M;const N={},V=e({spinning:!1,visible:!1,formatList:[],templateParams:{},printParams:[],currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null}),C=e([{label:j.printText,key:"printText"},{label:j.previewText,key:"previewText"},{label:j.pdfLoadText,key:"downloadPdf"},{label:j.formatEditText,key:"formatEditText"},...(null==(O=j.externalOptionConfig)?void 0:O.options)||[]]),Y=n((()=>{if(!V.currentFormatId)return{};let t=V.currentFormatId;return V.formatList.find((e=>e.id===t))})),B=n((()=>{var t;return(null==(t=Y.value)?void 0:t.name)||"格式选择"})),J=n((()=>{let t=V.formatList.find((t=>t.id===V.currentFormatId));return null==t?void 0:t.templateId})),U=async t=>{if(j.directPrint){if(V.spinning)return;return"button"===t?void await rt():et()}return et()},A=t=>l("span",{class:{active:t.key===V.currentFormatId}},[t.label]),q=(t,e)=>{V.spinning=!1;let n={type:e,formatId:V.currentFormatId,templateId:J.value};D("success",t,n)},R=t=>{V.spinning=!1,D("error",t),v(t)&&"notInstalledApp"===t.type&&E.error(t.message)},_=t=>{D("error",{message:"前置条件执行错误",type:t,preExecution:!0})},z=(t=0)=>{var e;const n=(null==(e=j.printParams)?void 0:e.length)?j.printParams[t]:V.printParams[t];return JSON.stringify({...n||{},...j.token?{token:j.token}:{}})},H=()=>{var t,e;let n={},i={};if(null==(t=V.templateParams.customizeDataset)?void 0:t.length){const t=(null==(e=Object.keys(V.printParams[0].datasetData||{}))?void 0:e[0])||"",n=JSON.stringify(V.printParams.map((e=>JSON.parse(e.datasetData[t]))));i={datasetData:{}},i.datasetData[t]=n}else Object.keys(V.printParams[0]).forEach((t=>{i[t]=[],V.printParams.forEach((e=>{i[t].push(e[t])})),i[t]=i[t].join(",")}));return n=Object.assign({},JSON.parse(z(0)),i),JSON.stringify(n)},$=()=>{let t=V.printParams.length;const e=async e=>{try{--t<=0&&q(e,"print")}catch(t){console.log("error",t)}};j.showLoading&&V.spinning||(V.spinning=!0,j.prevFn("print").then((()=>{const t={formatId:V.currentFormatId,templateId:J.value,printdlgshow:j.printdlgshow,signature:j.signature};if("MULTI"===j.strategy)for(let n=0;n<V.printParams.length;n++)n>0&&(t.printdlgshow="0"),M.printDirect({...t,params:z(n)},e,R);else M.printDirect({...t,params:H()},(t=>{q(t,"print")}),R)})).catch((()=>{_("print"),V.spinning=!1})).finally((()=>{V.visible=!1})))},G=async(t,e)=>{var n,i;switch(t){case"printText":$();break;case"previewText":(async()=>{j.showLoading&&V.spinning||(V.spinning=!0,j.prevFn("preview").then((()=>{const t="MULTI"===j.strategy?z():H(),e={formatId:V.currentFormatId,templateId:J.value,params:t,btnprint:j.btnprint,signature:j.signature};M.preview(e,(t=>{q(t,"preview")}),R)})).catch((()=>{_("preview"),V.spinning=!1})).finally((()=>{V.visible=!1})))})();break;case"formatEditText":j.showLoading&&V.spinning||(V.spinning=!0,j.prevFn("edit").then((()=>{V.identityVerification.visible=!0})).catch((()=>{_("edit")})).finally((()=>{V.visible=!1,V.spinning=!1})));break;case"downloadPdf":(async()=>{j.showLoading&&V.spinning||(V.spinning=!0,j.prevFn("download").then((()=>{const t="MULTI"===j.strategy?z():H(),e={formatId:V.currentFormatId,templateId:J.value,print:{print:"1",type:"1"},params:t,signature:j.signature};M.downloadPDF(e,(t=>q(t,"preview")),R)})).catch((()=>{_("download"),V.spinning=!1})).finally((()=>{V.visible=!1})))})();break;default:{V.visible=!1;const r=V.formatList.find((e=>e.id===t))||{};if(Object.keys(r).length>0){V.currentFormatId=t;const[e]=C;e.label=(null==r?void 0:r.name)||e.label,await x({formatForms:[{...r}],name:N.name||r.templateName,number:N.number||r.number,templateId:N.templateId||r.templateId,...N.id?{id:N.id}:{}},{token:j.token})}else null==(i=null==(n=j.externalOptionConfig)?void 0:n.onSelect)||i.call(n,t,e);break}}},K=()=>{V.visible=!1,D("clickoutside")},Q=()=>(V.isInited=!1,V.spinning=!1,setTimeout((()=>{V.visible=!1}),0),!1),W=(t,e,n)=>{const i={};return e.forEach((e=>{let r=((t,e)=>{const n={DATE:"YYYY-MM-DD",DATETIME:"YYYY-MM-DD HH:mm:ss"};let i=e;return Object.keys(n).includes(t.type)&&e&&(i=T(e,n[t.type])),(null==t?void 0:t.defaultValue)||i})(e,t[e[n]]);t[e[n]]&&r&&(i[e[n]]=r)})),i},X=({customizeDataset:t=[],param:e=[]},n=[])=>n.map((n=>{let i={};return t.forEach((t=>{const e=t.dataSetting[0].selectFieldList;i.datasetData={[t.name]:JSON.stringify(W(n,e,"fieldName"))}})),i=Object.assign({},i,W(n,e,"key")),i})),Z=async t=>{var e;if(V.formatList=t?(t=>{let e=[];return t&&t.forEach((t=>{if(!t.format)return!1;e.push(...t.format.map((e=>Object.assign({},e,{templateName:t.name}))))})),e})(t.obj):[],V.currentFormatId=await(async(t,e)=>{var n;if(!(null==t?void 0:t.length))return"";const{data:i}=await S({templateId:t[0].templateId},{token:j.token});if("SUCCESS"===i.result){const{formatForms:e=[]}=i.map||{};Object.assign(N,i.map||{});const r=null==(n=null==e?void 0:e[0])?void 0:n.id;if(r&&t.map((t=>t.id)).includes(r))return r}const r=t.find((t=>1==t[e]));return(null==r?void 0:r.id)||t[0].id})(V.formatList,"defaultFlag"),!V.currentFormatId)return E.error("获取打印格式失败,请联系管理员!"),Q();(()=>{const t=V.formatList.map((t=>({label:t.name,key:t.id})));C.unshift({label:B.value,key:"format",children:t})})();let n=null==(e=await j.queryTemplateParams())?void 0:e.obj;if(!n||!J.value)return E.error("获取打印模板失败,请联系管理员!"),Q();V.templateParams=n,V.printParams=X(V.templateParams,j.params)},tt=async()=>{if(V.isInited)return!0;V.isInited=!0,V.spinning=!0,(()=>{if(M)return!1;M=new w})();const t=await j.queryPrintFormatByNumber();return await Z(t),V.spinning=!1,!0},et=async(t=!0)=>{var e,n;if(await j.clickPrevFn())if((null==(e=j.params)?void 0:e.length)&&(null==(n=j.printParams)?void 0:n.length)){if(!V.visible){if(!await tt())return!1}t&&(V.visible=!V.visible)}else E.warning(j.noDataMsg)},nt=()=>{V.watchPrintParamsReformatFn&&V.watchPrintParamsReformatFn(),V.isInited?V.printParams=X(V.templateParams,j.params):V.watchPrintParamsReformatFn=()=>r((()=>V.isInited),(t=>{if(!t)return!1;nt()}))},it=t=>{if(V.identityVerification.visible=!1,F(V.currentFormatId))return q(null,"edit");const e={formatId:V.currentFormatId,templateId:J.value,params:z(),token:t};M.editPrintFormat(e,(t=>{q(t,"edit")}),R)};async function rt(){await et(!1),$()}return i((()=>{V.isInited=!1})),r((()=>j.params),(t=>{if(!(null==t?void 0:t.length))return!1;nt()}),{deep:!0}),L({directPrint:rt}),(e,n)=>(a(),s(o,null,[l(p(b),{class:"c-dropdown",placement:"bottom-start",trigger:"click",show:V.visible,onClickoutside:K,options:C,onSelect:G,"render-label":A},{default:d((()=>[m(e.$slots,"button",{handleClickPrintBtn:et,printSpinning:V.spinning,printbtnText:t.btnText,printVisible:V.visible},(()=>[l(p(I),{class:"dropdown-button",loading:t.showLoading&&V.spinning,onClick:n[1]||(n[1]=u((()=>U("button")),["stop"]))},{default:d((()=>[c(f(t.btnText)+" ",1),l(p(P),{component:p(h),style:{"margin-left":"5px"},onClick:n[0]||(n[0]=u((()=>U("icon")),["stop"]))},null,8,["component"])])),_:1},8,["loading"])]))])),_:3},8,["show","options"]),l(k,g(e.$attrs,{modelValue:V.identityVerification.visible,"onUpdate:modelValue":n[2]||(n[2]=t=>V.identityVerification.visible=t),formatId:V.currentFormatId,templateId:p(J),onSuccess:it}),null,16,["modelValue","formatId","templateId"])],64))}});export{L as default};
1
+ import{defineComponent as t,reactive as e,computed as n,onMounted as i,watch as r,openBlock as a,createElementBlock as s,Fragment as o,createVNode as l,unref as p,withCtx as d,renderSlot as m,withModifiers as u,createTextVNode as c,toDisplayString as f,mergeProps as g}from"vue";import{isObject as y}from"@vue/shared";import{useMessage as v,NDropdown as b,NButton as I,NIcon as P}from"naive-ui";import{ChevronDown as h}from"@vicons/ionicons5";import{Print as w}from"./utils/print.js";import{isIReport as F}from"./utils/browserPrint.js";import k from"./components/IdentityVerification.vue.js";import{format as T}from"date-fns";import{savePrivateFormatApi as x,getPrivateFormatApi as S}from"./api.js";var L=t({__name:"ButtonPrint",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:"打印",type:String},printText:{default:"直接打印",type:String},previewText:{default:"打印预览",type:String},pdfLoadText:{default:"下载pdf",type:String},formatEditText:{default:"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0}},emits:["success","error","clickoutside"],setup(t,{expose:L,emit:O}){var j;const D=t,E=v();let M;const N={},V=e({spinning:!1,visible:!1,formatList:[],templateParams:{},printParams:[],currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null}),C=e([{label:D.printText,key:"printText"},{label:D.previewText,key:"previewText"},{label:D.pdfLoadText,key:"downloadPdf"},{label:D.formatEditText,key:"formatEditText"},...(null==(j=D.externalOptionConfig)?void 0:j.options)||[]]),B=n((()=>{if(!V.currentFormatId)return{};let t=V.currentFormatId;return V.formatList.find((e=>e.id===t))})),J=n((()=>{var t;return(null==(t=B.value)?void 0:t.name)||"格式选择"})),U=n((()=>{let t=V.formatList.find((t=>t.id===V.currentFormatId));return null==t?void 0:t.templateId})),A=async t=>{if(D.directPrint){if(V.spinning)return;return"button"===t?void await rt():et()}return et()},q=t=>l("span",{class:{active:t.key===V.currentFormatId}},[t.label]),R=(t,e)=>{V.spinning=!1;let n={type:e,formatId:V.currentFormatId,templateId:U.value};O("success",t,n)},_=t=>{V.spinning=!1,O("error",t),y(t)&&"notInstalledApp"===t.type&&E.error(t.message)},z=t=>{O("error",{message:"前置条件执行错误",type:t,preExecution:!0})},H=(t=0)=>{var e;const n=(null==(e=D.printParams)?void 0:e.length)?D.printParams[t]:V.printParams[t];return JSON.stringify({...n||{},...D.token?{token:D.token}:{}})},$=()=>{var t,e;let n={},i={};if(null==(t=V.templateParams.customizeDataset)?void 0:t.length){const t=(null==(e=Object.keys(V.printParams[0].datasetData||{}))?void 0:e[0])||"",n=JSON.stringify(V.printParams.map((e=>JSON.parse(e.datasetData[t]))));i={datasetData:{}},i.datasetData[t]=n}else Object.keys(V.printParams[0]).forEach((t=>{i[t]=[],V.printParams.forEach((e=>{i[t].push(e[t])})),i[t]=i[t].join(",")}));return n=Object.assign({},JSON.parse(H(0)),i),JSON.stringify(n)},G=()=>{let t=V.printParams.length;const e=async e=>{try{--t<=0&&R(e,"print")}catch(t){console.log("error",t)}};D.showLoading&&V.spinning||(V.spinning=!0,D.prevFn("print").then((()=>{const t={formatId:V.currentFormatId,templateId:U.value,printdlgshow:D.printdlgshow,signature:D.signature};if("MULTI"===D.strategy)for(let n=0;n<V.printParams.length;n++)n>0&&(t.printdlgshow="0"),M.printDirect({...t,params:H(n)},e,_);else M.printDirect({...t,params:$()},(t=>{R(t,"print")}),_)})).catch((()=>{z("print"),V.spinning=!1})).finally((()=>{V.visible=!1})))},K=async(t,e)=>{var n,i;switch(t){case"printText":G();break;case"previewText":(async()=>{D.showLoading&&V.spinning||(V.spinning=!0,D.prevFn("preview").then((()=>{const t="MULTI"===D.strategy?H():$(),e={formatId:V.currentFormatId,templateId:U.value,params:t,btnprint:D.btnprint,signature:D.signature};M.preview(e,(t=>{R(t,"preview")}),_)})).catch((()=>{z("preview"),V.spinning=!1})).finally((()=>{V.visible=!1})))})();break;case"formatEditText":D.showLoading&&V.spinning||(V.spinning=!0,D.prevFn("edit").then((()=>{V.identityVerification.visible=!0})).catch((()=>{z("edit")})).finally((()=>{V.visible=!1,V.spinning=!1})));break;case"downloadPdf":(async()=>{D.showLoading&&V.spinning||(V.spinning=!0,D.prevFn("download").then((()=>{const t="MULTI"===D.strategy?H():$(),e={formatId:V.currentFormatId,templateId:U.value,print:{print:"1",type:"1"},params:t,signature:D.signature};M.downloadPDF(e,(t=>R(t,"preview")),_)})).catch((()=>{z("download"),V.spinning=!1})).finally((()=>{V.visible=!1})))})();break;default:{V.visible=!1;const r=V.formatList.find((e=>e.id===t))||{};if(Object.keys(r).length>0){V.currentFormatId=t;const[e]=C;e.label=(null==r?void 0:r.name)||e.label,await x({formatForms:[{...r}],name:N.name||r.templateName,number:N.number||r.number,templateId:N.templateId||r.templateId,...N.id?{id:N.id}:{}},{token:D.token})}else null==(i=null==(n=D.externalOptionConfig)?void 0:n.onSelect)||i.call(n,t,e);break}}},Q=()=>{V.visible=!1,O("clickoutside")},W=()=>(V.isInited=!1,V.spinning=!1,setTimeout((()=>{V.visible=!1}),0),!1),X=(t,e,n)=>{const i={};return e.forEach((e=>{let r=((t,e)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let i=e;return Object.keys(n).includes(t.type)&&e&&e instanceof Date&&(i=T(e,n[t.type])),(null==t?void 0:t.defaultValue)||i})(e,t[e[n]]);t[e[n]]&&r&&(i[e[n]]=r)})),i},Y=({customizeDataset:t=[],param:e=[]},n=[])=>n.map((n=>{let i={};return t.forEach((t=>{const e=t.dataSetting[0].selectFieldList;i.datasetData={[t.name]:JSON.stringify(X(n,e,"fieldName"))}})),i=Object.assign({},i,X(n,e,"key")),i})),Z=async t=>{var e;if(V.formatList=t?(t=>{let e=[];return t&&t.forEach((t=>{if(!t.format)return!1;e.push(...t.format.map((e=>Object.assign({},e,{templateName:t.name}))))})),e})(t.obj):[],V.currentFormatId=await(async(t,e)=>{var n;if(!(null==t?void 0:t.length))return"";const{data:i}=await S({templateId:t[0].templateId},{token:D.token});if("SUCCESS"===i.result){const{formatForms:e=[]}=i.map||{};Object.assign(N,i.map||{});const r=null==(n=null==e?void 0:e[0])?void 0:n.id;if(r&&t.map((t=>t.id)).includes(r))return r}const r=t.find((t=>1==t[e]));return(null==r?void 0:r.id)||t[0].id})(V.formatList,"defaultFlag"),!V.currentFormatId)return E.error("获取打印格式失败,请联系管理员!"),W();(()=>{const t=V.formatList.map((t=>({label:t.name,key:t.id})));C.unshift({label:J.value,key:"format",children:t})})();let n=null==(e=await D.queryTemplateParams())?void 0:e.obj;if(!n||!U.value)return E.error("获取打印模板失败,请联系管理员!"),W();V.templateParams=n,V.printParams=Y(V.templateParams,D.params)},tt=async()=>{if(V.isInited)return!0;V.isInited=!0,V.spinning=!0,(()=>{if(M)return!1;M=new w})();const t=await D.queryPrintFormatByNumber();return await Z(t),V.spinning=!1,!0},et=async(t=!0)=>{var e,n;if(await D.clickPrevFn())if((null==(e=D.params)?void 0:e.length)&&(null==(n=D.printParams)?void 0:n.length)){if(!V.visible){if(!await tt())return!1}t&&(V.visible=!V.visible)}else E.warning(D.noDataMsg)},nt=()=>{V.watchPrintParamsReformatFn&&V.watchPrintParamsReformatFn(),V.isInited?V.printParams=Y(V.templateParams,D.params):V.watchPrintParamsReformatFn=()=>r((()=>V.isInited),(t=>{if(!t)return!1;nt()}))},it=t=>{if(V.identityVerification.visible=!1,F(V.currentFormatId))return R(null,"edit");const e={formatId:V.currentFormatId,templateId:U.value,params:H(),token:t};M.editPrintFormat(e,(t=>{R(t,"edit")}),_)};async function rt(){await et(!1),G()}return i((()=>{V.isInited=!1})),r((()=>D.params),(t=>{if(!(null==t?void 0:t.length))return!1;nt()}),{deep:!0}),L({directPrint:rt}),(e,n)=>(a(),s(o,null,[l(p(b),{class:"c-dropdown",placement:"bottom-start",trigger:"click",show:V.visible,onClickoutside:Q,options:C,onSelect:K,"render-label":q},{default:d((()=>[m(e.$slots,"button",{handleClickPrintBtn:et,printSpinning:V.spinning,printbtnText:t.btnText,printVisible:V.visible},(()=>[l(p(I),{class:"dropdown-button",loading:t.showLoading&&V.spinning,onClick:n[1]||(n[1]=u((()=>A("button")),["stop"]))},{default:d((()=>[c(f(t.btnText)+" ",1),l(p(P),{component:p(h),style:{"margin-left":"5px"},onClick:n[0]||(n[0]=u((()=>A("icon")),["stop"]))},null,8,["component"])])),_:1},8,["loading"])]))])),_:3},8,["show","options"]),l(k,g(e.$attrs,{modelValue:V.identityVerification.visible,"onUpdate:modelValue":n[2]||(n[2]=t=>V.identityVerification.visible=t),formatId:V.currentFormatId,templateId:p(U),onSuccess:it}),null,16,["modelValue","formatId","templateId"])],64))}});export{L as default};
@@ -140,6 +140,10 @@ export declare const CallbackMaps: Map<string, {
140
140
  dateOperationalForm: {
141
141
  type: import("vue").PropType<import("../../../..").LowCodeTypes.dateOperationalConfig[]>;
142
142
  };
143
+ operationalFormInit: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
143
147
  linebarAutoHidden: {
144
148
  type: BooleanConstructor;
145
149
  };
@@ -292,6 +296,10 @@ export declare const CallbackMaps: Map<string, {
292
296
  dateOperationalForm: {
293
297
  type: import("vue").PropType<import("../../../..").LowCodeTypes.dateOperationalConfig[]>;
294
298
  };
299
+ operationalFormInit: {
300
+ type: BooleanConstructor;
301
+ default: boolean;
302
+ };
295
303
  linebarAutoHidden: {
296
304
  type: BooleanConstructor;
297
305
  };
@@ -894,6 +902,10 @@ export declare const CallbackMaps: Map<string, {
894
902
  dateOperationalForm: {
895
903
  type: import("vue").PropType<import("../../../..").LowCodeTypes.dateOperationalConfig[]>;
896
904
  };
905
+ operationalFormInit: {
906
+ type: BooleanConstructor;
907
+ default: boolean;
908
+ };
897
909
  linebarAutoHidden: {
898
910
  type: BooleanConstructor;
899
911
  };
@@ -929,6 +941,7 @@ export declare const CallbackMaps: Map<string, {
929
941
  bordered: string | boolean;
930
942
  uniqueCacheData: boolean;
931
943
  outBordered: boolean;
944
+ operationalFormInit: boolean;
932
945
  }>;
933
946
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
934
947
  props: {
@@ -1 +1 @@
1
- import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useThrottleFn as t}from"@vueuse/core";import{range as r}from"lodash-es";import{useDetailEvent as o}from"./hooks/useDetailEvent.js";import{defaultTextStyle as n,drawLine as i}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useElectrocardiogramCumputedPoint as a}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import"date-fns";import"../temperature/useShadow.js";import{SMALLCELLNUMBER as l}from"../../constants/index.js";import"naive-ui";function d(d,u,c){const{computedX:m,computedY:h}=a(u),{borderStyle:f,originX:p,originY:g,xCellWidth:v,yCellHeight:x,canvasWidth:b,canvasHeight:j,dataList:w,columnNumber:C,gridYNumber:k,gridXNumber:y}=u,S=new Set,E=new Set;function N(t=0){w.forEach(((r,o)=>{if(o===w.length-1&&arguments.length)return;const{x:i,y:s}=r.origin,a=~~(r.data.length/C),l=r.data.reduce(((e,r,n)=>{const i=o<12&&n>=t&&n<=t+a||12===o?[{x:m(e.length+1),y:h(-+r)}]:[];return e.concat(i)}),[]),d=new e.Polyline(l,{fill:"transparent",stroke:"red",strokeWidth:1,left:i,top:s,hasControls:!1,hasBorders:!1,hoverCursor:"default",lockMovementX:!0,lockMovementY:!0,objectCaching:!0});if(X(d,{...u.config,...u,lineStartIndex:t,points:r.data,scale:4,showScaleText:!0,showNumberText:!0,detailRadius:370,beforeEvent:()=>c.value&&Promise.reject()}),d.startIdx=t,o<w.length-1?S.add(d):E.add(d),arguments.length)return;const f=new e.Text(String(r.title),{...n,left:i+v,top:s});E.add(f)}));const r=arguments.length?[...S]:[...S,...E];d.value.add(...r)}function X(e,t){o(e,t)}s(d,{...u,gridXNumber:y*l,gridYNumber:k*l,xCellWidth:v/l,yCellHeight:x/l,grid:{...u.grid,subXCell:l,subYCell:l}}),function(){const{strokeWidth:t}=f,r=new e.Rect({...f,width:b-t,height:j-t,left:p,top:g,fill:"transparent"});d.value.add(r)}(),function(){const e=b/C,t=[];r(C).forEach((r=>{if(r+1>=C)return;const o=(r+1)*e,n=i([o,0,o,j],{stroke:"#000"});t.push(n)})),d.value.add(...t)}(),N();return{updatePolyline:t((t=>{if(1===C)return;const r=w[w.length-1].data.length,o=~~(r/C),n=t/100*r-o/2,i=n+o>r?r-o:Math.max(0,n);e.util.requestAnimFrame((()=>{if(S.size){const[e]=[...S];if(e.startIdx===i)return;[...S].forEach((e=>d.value.remove(e))),S.clear()}N(i)}))}),150)}}export{d as useElectrocardiogram};
1
+ import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{useThrottleFn as e}from"@vueuse/core";import{range as r}from"lodash-es";import{useDetailEvent as o}from"./hooks/useDetailEvent.js";import{defaultTextStyle as i,drawLine as n}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useElectrocardiogramCumputedPoint as a}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import"date-fns";import"../temperature/useShadow.js";import{SMALLCELLNUMBER as l}from"../../constants/index.js";import"naive-ui";function d(d,u,c){const{computedX:m,computedY:h}=a(u),{borderStyle:f,originX:g,originY:p,xCellWidth:v,yCellHeight:x,canvasWidth:b,canvasHeight:w,dataList:j,columnNumber:C,gridYNumber:k,gridXNumber:N,rowNumber:S}=u,X=new Set,Y=new Set;function y(e=0){let r=x;j.forEach(((o,n)=>{if(n===j.length-1&&arguments.length)return;const{x:s,rowIdx:a}=o.origin,l=~~(o.data.length/C),d=o.data.reduce(((t,r,o)=>{const i=n<12&&o>=e&&o<=e+l||12===n?[{x:m(t.length+1),y:h(-+r)}]:[];return t.concat(i)}),[]);0===a&&(r=x);const f=new t.Polyline(d,{fill:"transparent",stroke:"red",strokeWidth:1,left:s,top:r,hasControls:!1,hasBorders:!1,hoverCursor:"default",lockMovementX:!0,lockMovementY:!0,objectCaching:!0}),g=S<12?x:0;if(r+=f.height+g,E(f,{...u.config,...u,lineStartIndex:e,points:o.data,scale:4,showScaleText:!0,showNumberText:!0,detailRadius:370,beforeEvent:()=>c.value&&Promise.reject()}),f.startIdx=e,n<j.length-1?X.add(f):Y.add(f),arguments.length)return;const p=new t.Text(String(o.title),{...i,left:s+v,top:r-f.height-g,originX:"left",originY:"top"});Y.add(p)}));const o=arguments.length?[...X]:[...X,...Y];d.value.add(...o)}function E(t,e){o(t,e)}s(d,{...u,gridXNumber:N*l,gridYNumber:k*l,xCellWidth:v/l,yCellHeight:x/l,grid:{...u.grid,subXCell:l,subYCell:l}}),function(){const{strokeWidth:e}=f,r=new t.Rect({...f,width:b-e,height:w-e,left:g,top:p,fill:"transparent"});d.value.add(r)}(),function(){const t=b/C,e=[];r(C).forEach((r=>{if(r+1>=C)return;const o=(r+1)*t,i=n([o,0,o,w],{stroke:"#000"});e.push(i)})),d.value.add(...e)}(),y();return{updatePolyline:e((e=>{if(1===C)return;const r=j[j.length-1].data.length,o=~~(r/C),i=e/100*r-o/2,n=i+o>r?r-o:Math.max(0,i);t.util.requestAnimFrame((()=>{if(X.size){const[t]=[...X];if(t.startIdx===n)return;[...X].forEach((t=>d.value.remove(t))),X.clear()}y(n)}))}),150)}}export{d as useElectrocardiogram};
@@ -1 +1 @@
1
- import{ref as e,computed as a,reactive as t,unref as l,watch as u}from"vue";import{defaultBorderStyle as r}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import"lodash-es";import"../useEvent.js";import"../temperature/useShadow.js";import{SMALLCELLNUMBER as i}from"../../constants/index.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as n}from"./useElectrocardiogram.js";import{useMeasureInstrument as o}from"./useMeasureInstrument.js";function s(s,d,m,v,c,g){const h=e(),p=e(),f=e(),b=e(),C=a((()=>d.data.width)),N=a((()=>d.data.height)),j=a((()=>(C.value-0)/w.value)),M=a((()=>(N.value-0)/x.value)),w=a((()=>{const{dataList:e,config:a}=d.data,t=e[e.length-1].data.length/a.hz;return Math.ceil(t/a.mainXCellValue)})),x=a((()=>{const{config:e}=d.data;return Math.ceil((13*y.value+2*e.mainYCellValue)/e.mainYCellValue)})),y=a((()=>{const{dataList:e,config:a}=d.data,t=e[e.length-1].data,l=Math.max(...t)-Math.min(...t);return"uv"===a.valueUnit?.001*l:"v"===a.valueUnit?1e3*l:l})),Y=a((()=>{var e;return(null==(e=d.data.grid)?void 0:e.event)||{selectable:!0,evented:!0}})),L=a((()=>{const{mode:e="2-6"}=d.data,[a,t]=e.split("-").map((e=>+e));return{columnNumber:a,rowNumber:t}})),R=a((()=>{const{dataList:e,width:a,config:t}=d.data,{columnNumber:l,rowNumber:u}=L.value,r=a/l,i=y.value/t.mainYCellValue*M.value+M.value,n=M.value;return e.map(((a,t)=>{const l=t===e.length-1?u:t%u;return{...a,origin:{x:(t===e.length-1?0:Math.floor(t/u))*r,y:l*i+n}}}))})),V=t({canvasWidth:d.data.width,canvasHeight:d.data.height,borderStyle:{...r,...d.data.borderStyle||{}},grid:d.data.grid,originX:0,endX:C.value,originY:0,endY:N.value,xCellWidth:j.value,yCellHeight:M.value,gridXNumber:w.value,gridYNumber:x.value,event:Y.value,dataList:R.value,columnNumber:l(L).columnNumber,config:d.data.config});return u((()=>s.value),(e=>{e&&function(){const{useMeasureRuler:e,flag:a,useCaliper:t,useCaliperRuler:l}=o(s,V),{updatePolyline:u}=n(s,V,a);p.value=e,f.value=t,b.value=l,h.value=u}()}),{immediate:!0}),{propItems:V,updatePolyline:h,useMeasureRuler:p,useCaliper:f,useCaliperRuler:b,getGridInfo:function(){return{cellWidth:j.value,cellHeight:M.value,smallCellNumber:i}}}}export{s as useElectrocardiogramChart};
1
+ import{ref as e,computed as a,reactive as t,unref as r,watch as u}from"vue";import{defaultBorderStyle as l}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import"lodash-es";import"../useEvent.js";import"../temperature/useShadow.js";import{SMALLCELLNUMBER as i}from"../../constants/index.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as n}from"./useElectrocardiogram.js";import{useMeasureInstrument as o}from"./useMeasureInstrument.js";function d(d,s,m,v,c,g){const h=e(),p=e(),f=e(),b=e(),N=a((()=>s.data.width)),w=a((()=>s.data.height)),C=a((()=>(N.value-0)/M.value)),j=a((()=>(w.value-0)/x.value)),M=a((()=>{const{dataList:e,config:a}=s.data,t=e[e.length-1].data.length/a.hz;return Math.ceil(t/a.mainXCellValue)})),x=a((()=>{const{config:e}=s.data;return Math.ceil((13*y.value+2*e.mainYCellValue)/e.mainYCellValue)})),y=a((()=>{const{dataList:e,config:a}=s.data,t=e[e.length-1].data,r=Math.max(...t)-Math.min(...t);return"uv"===a.valueUnit?.001*r:"v"===a.valueUnit?1e3*r:r})),Y=a((()=>{var e;return(null==(e=s.data.grid)?void 0:e.event)||{selectable:!0,evented:!0}})),I=a((()=>{const{mode:e="2-6"}=s.data,[a,t]=e.split("-").map((e=>+e));return{columnNumber:a,rowNumber:t}})),L=a((()=>{const{dataList:e,width:a,config:t}=s.data,{columnNumber:r,rowNumber:u}=I.value,l=a/r;return e.map(((a,t)=>{const r=t===e.length-1?u:t%u;return{...a,origin:{x:(t===e.length-1?0:Math.floor(t/u))*l,rowIdx:r}}}))})),R=t({canvasWidth:s.data.width,canvasHeight:s.data.height,borderStyle:{...l,...s.data.borderStyle||{}},grid:s.data.grid,originX:0,endX:N.value,originY:0,endY:w.value,xCellWidth:C.value,yCellHeight:j.value,gridXNumber:M.value,gridYNumber:x.value,event:Y.value,dataList:L.value,columnNumber:r(I).columnNumber,rowNumber:r(I).rowNumber,config:s.data.config});return u((()=>d.value),(e=>{e&&function(){const{useMeasureRuler:e,flag:a,useCaliper:t,useCaliperRuler:r}=o(d,R),{updatePolyline:u}=n(d,R,a);p.value=e,f.value=t,b.value=r,h.value=u}()}),{immediate:!0}),{propItems:R,updatePolyline:h,useMeasureRuler:p,useCaliper:f,useCaliperRuler:b,getGridInfo:function(){return{cellWidth:C.value,cellHeight:j.value,smallCellNumber:i}}}}export{d as useElectrocardiogramChart};
@@ -357,6 +357,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
357
357
  nameKey?: string | undefined;
358
358
  valueKey?: string | undefined;
359
359
  showKey?: string | undefined;
360
+ searchKey?: string[] | undefined;
360
361
  params?: import("../../../es/shared/types").AnyObject | undefined;
361
362
  dependKey?: string | Record<string, string> | (string | {
362
363
  paramName: string;
@@ -2105,6 +2106,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
2105
2106
  nameKey?: string | undefined;
2106
2107
  valueKey?: string | undefined;
2107
2108
  showKey?: string | undefined;
2109
+ searchKey?: string[] | undefined;
2108
2110
  params?: import("../../../es/shared/types").AnyObject | undefined;
2109
2111
  dependKey?: string | Record<string, string> | (string | {
2110
2112
  paramName: string;
@@ -3890,6 +3892,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3890
3892
  nameKey?: string | undefined;
3891
3893
  valueKey?: string | undefined;
3892
3894
  showKey?: string | undefined;
3895
+ searchKey?: string[] | undefined;
3893
3896
  params?: import("../../../es/shared/types").AnyObject | undefined;
3894
3897
  dependKey?: string | Record<string, string> | (string | {
3895
3898
  paramName: string;
@@ -5638,6 +5641,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
5638
5641
  nameKey?: string | undefined;
5639
5642
  valueKey?: string | undefined;
5640
5643
  showKey?: string | undefined;
5644
+ searchKey?: string[] | undefined;
5641
5645
  params?: import("../../../es/shared/types").AnyObject | undefined;
5642
5646
  dependKey?: string | Record<string, string> | (string | {
5643
5647
  paramName: string;
@@ -7499,6 +7503,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7499
7503
  dateOperationalForm: {
7500
7504
  type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
7501
7505
  };
7506
+ operationalFormInit: {
7507
+ type: BooleanConstructor;
7508
+ default: boolean;
7509
+ };
7502
7510
  linebarAutoHidden: {
7503
7511
  type: BooleanConstructor;
7504
7512
  };
@@ -7651,6 +7659,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7651
7659
  dateOperationalForm: {
7652
7660
  type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
7653
7661
  };
7662
+ operationalFormInit: {
7663
+ type: BooleanConstructor;
7664
+ default: boolean;
7665
+ };
7654
7666
  linebarAutoHidden: {
7655
7667
  type: BooleanConstructor;
7656
7668
  };
@@ -8253,6 +8265,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8253
8265
  dateOperationalForm: {
8254
8266
  type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
8255
8267
  };
8268
+ operationalFormInit: {
8269
+ type: BooleanConstructor;
8270
+ default: boolean;
8271
+ };
8256
8272
  linebarAutoHidden: {
8257
8273
  type: BooleanConstructor;
8258
8274
  };
@@ -8288,6 +8304,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8288
8304
  bordered: string | boolean;
8289
8305
  uniqueCacheData: boolean;
8290
8306
  outBordered: boolean;
8307
+ operationalFormInit: boolean;
8291
8308
  }>;
8292
8309
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
8293
8310
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -8708,6 +8725,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8708
8725
  nameKey?: string | undefined;
8709
8726
  valueKey?: string | undefined;
8710
8727
  showKey?: string | undefined;
8728
+ searchKey?: string[] | undefined;
8711
8729
  params?: import("../../../es/shared/types").AnyObject | undefined;
8712
8730
  dependKey?: string | Record<string, string> | (string | {
8713
8731
  paramName: string;
@@ -10467,6 +10485,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
10467
10485
  nameKey?: string | undefined;
10468
10486
  valueKey?: string | undefined;
10469
10487
  showKey?: string | undefined;
10488
+ searchKey?: string[] | undefined;
10470
10489
  params?: import("../../../es/shared/types").AnyObject | undefined;
10471
10490
  dependKey?: string | Record<string, string> | (string | {
10472
10491
  paramName: string;
@@ -12199,6 +12218,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
12199
12218
  nameKey?: string | undefined;
12200
12219
  valueKey?: string | undefined;
12201
12220
  showKey?: string | undefined;
12221
+ searchKey?: string[] | undefined;
12202
12222
  params?: import("../../../es/shared/types").AnyObject | undefined;
12203
12223
  dependKey?: string | Record<string, string> | (string | {
12204
12224
  paramName: string;
@@ -13977,6 +13997,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
13977
13997
  dateOperationalForm: {
13978
13998
  type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
13979
13999
  };
14000
+ operationalFormInit: {
14001
+ type: BooleanConstructor;
14002
+ default: boolean;
14003
+ };
13980
14004
  linebarAutoHidden: {
13981
14005
  type: BooleanConstructor;
13982
14006
  };
@@ -14129,6 +14153,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14129
14153
  dateOperationalForm: {
14130
14154
  type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
14131
14155
  };
14156
+ operationalFormInit: {
14157
+ type: BooleanConstructor;
14158
+ default: boolean;
14159
+ };
14132
14160
  linebarAutoHidden: {
14133
14161
  type: BooleanConstructor;
14134
14162
  };
@@ -14731,6 +14759,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14731
14759
  dateOperationalForm: {
14732
14760
  type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
14733
14761
  };
14762
+ operationalFormInit: {
14763
+ type: BooleanConstructor;
14764
+ default: boolean;
14765
+ };
14734
14766
  linebarAutoHidden: {
14735
14767
  type: BooleanConstructor;
14736
14768
  };
@@ -14766,6 +14798,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14766
14798
  bordered: string | boolean;
14767
14799
  uniqueCacheData: boolean;
14768
14800
  outBordered: boolean;
14801
+ operationalFormInit: boolean;
14769
14802
  }>;
14770
14803
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
14771
14804
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -360,6 +360,7 @@ declare const _default: import("vue").DefineComponent<{
360
360
  nameKey?: string | undefined;
361
361
  valueKey?: string | undefined;
362
362
  showKey?: string | undefined;
363
+ searchKey?: string[] | undefined;
363
364
  params?: import("../../../../es/shared/types").AnyObject | undefined;
364
365
  dependKey?: string | Record<string, string> | (string | {
365
366
  paramName: string;
@@ -2108,6 +2109,7 @@ declare const _default: import("vue").DefineComponent<{
2108
2109
  nameKey?: string | undefined;
2109
2110
  valueKey?: string | undefined;
2110
2111
  showKey?: string | undefined;
2112
+ searchKey?: string[] | undefined;
2111
2113
  params?: import("../../../../es/shared/types").AnyObject | undefined;
2112
2114
  dependKey?: string | Record<string, string> | (string | {
2113
2115
  paramName: string;
@@ -3893,6 +3895,7 @@ declare const _default: import("vue").DefineComponent<{
3893
3895
  nameKey?: string | undefined;
3894
3896
  valueKey?: string | undefined;
3895
3897
  showKey?: string | undefined;
3898
+ searchKey?: string[] | undefined;
3896
3899
  params?: import("../../../../es/shared/types").AnyObject | undefined;
3897
3900
  dependKey?: string | Record<string, string> | (string | {
3898
3901
  paramName: string;
@@ -5641,6 +5644,7 @@ declare const _default: import("vue").DefineComponent<{
5641
5644
  nameKey?: string | undefined;
5642
5645
  valueKey?: string | undefined;
5643
5646
  showKey?: string | undefined;
5647
+ searchKey?: string[] | undefined;
5644
5648
  params?: import("../../../../es/shared/types").AnyObject | undefined;
5645
5649
  dependKey?: string | Record<string, string> | (string | {
5646
5650
  paramName: string;
@@ -7502,6 +7506,10 @@ declare const _default: import("vue").DefineComponent<{
7502
7506
  dateOperationalForm: {
7503
7507
  type: PropType<LowCodeTypes.dateOperationalConfig[]>;
7504
7508
  };
7509
+ operationalFormInit: {
7510
+ type: BooleanConstructor;
7511
+ default: boolean;
7512
+ };
7505
7513
  linebarAutoHidden: {
7506
7514
  type: BooleanConstructor;
7507
7515
  };
@@ -7654,6 +7662,10 @@ declare const _default: import("vue").DefineComponent<{
7654
7662
  dateOperationalForm: {
7655
7663
  type: PropType<LowCodeTypes.dateOperationalConfig[]>;
7656
7664
  };
7665
+ operationalFormInit: {
7666
+ type: BooleanConstructor;
7667
+ default: boolean;
7668
+ };
7657
7669
  linebarAutoHidden: {
7658
7670
  type: BooleanConstructor;
7659
7671
  };
@@ -8256,6 +8268,10 @@ declare const _default: import("vue").DefineComponent<{
8256
8268
  dateOperationalForm: {
8257
8269
  type: PropType<LowCodeTypes.dateOperationalConfig[]>;
8258
8270
  };
8271
+ operationalFormInit: {
8272
+ type: BooleanConstructor;
8273
+ default: boolean;
8274
+ };
8259
8275
  linebarAutoHidden: {
8260
8276
  type: BooleanConstructor;
8261
8277
  };
@@ -8291,6 +8307,7 @@ declare const _default: import("vue").DefineComponent<{
8291
8307
  bordered: string | boolean;
8292
8308
  uniqueCacheData: boolean;
8293
8309
  outBordered: boolean;
8310
+ operationalFormInit: boolean;
8294
8311
  }>;
8295
8312
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
8296
8313
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -8711,6 +8728,7 @@ declare const _default: import("vue").DefineComponent<{
8711
8728
  nameKey?: string | undefined;
8712
8729
  valueKey?: string | undefined;
8713
8730
  showKey?: string | undefined;
8731
+ searchKey?: string[] | undefined;
8714
8732
  params?: import("../../../../es/shared/types").AnyObject | undefined;
8715
8733
  dependKey?: string | Record<string, string> | (string | {
8716
8734
  paramName: string;
@@ -10470,6 +10488,7 @@ declare const _default: import("vue").DefineComponent<{
10470
10488
  nameKey?: string | undefined;
10471
10489
  valueKey?: string | undefined;
10472
10490
  showKey?: string | undefined;
10491
+ searchKey?: string[] | undefined;
10473
10492
  params?: import("../../../../es/shared/types").AnyObject | undefined;
10474
10493
  dependKey?: string | Record<string, string> | (string | {
10475
10494
  paramName: string;
@@ -12202,6 +12221,7 @@ declare const _default: import("vue").DefineComponent<{
12202
12221
  nameKey?: string | undefined;
12203
12222
  valueKey?: string | undefined;
12204
12223
  showKey?: string | undefined;
12224
+ searchKey?: string[] | undefined;
12205
12225
  params?: import("../../../../es/shared/types").AnyObject | undefined;
12206
12226
  dependKey?: string | Record<string, string> | (string | {
12207
12227
  paramName: string;
@@ -13980,6 +14000,10 @@ declare const _default: import("vue").DefineComponent<{
13980
14000
  dateOperationalForm: {
13981
14001
  type: PropType<LowCodeTypes.dateOperationalConfig[]>;
13982
14002
  };
14003
+ operationalFormInit: {
14004
+ type: BooleanConstructor;
14005
+ default: boolean;
14006
+ };
13983
14007
  linebarAutoHidden: {
13984
14008
  type: BooleanConstructor;
13985
14009
  };
@@ -14132,6 +14156,10 @@ declare const _default: import("vue").DefineComponent<{
14132
14156
  dateOperationalForm: {
14133
14157
  type: PropType<LowCodeTypes.dateOperationalConfig[]>;
14134
14158
  };
14159
+ operationalFormInit: {
14160
+ type: BooleanConstructor;
14161
+ default: boolean;
14162
+ };
14135
14163
  linebarAutoHidden: {
14136
14164
  type: BooleanConstructor;
14137
14165
  };
@@ -14734,6 +14762,10 @@ declare const _default: import("vue").DefineComponent<{
14734
14762
  dateOperationalForm: {
14735
14763
  type: PropType<LowCodeTypes.dateOperationalConfig[]>;
14736
14764
  };
14765
+ operationalFormInit: {
14766
+ type: BooleanConstructor;
14767
+ default: boolean;
14768
+ };
14737
14769
  linebarAutoHidden: {
14738
14770
  type: BooleanConstructor;
14739
14771
  };
@@ -14769,6 +14801,7 @@ declare const _default: import("vue").DefineComponent<{
14769
14801
  bordered: string | boolean;
14770
14802
  uniqueCacheData: boolean;
14771
14803
  outBordered: boolean;
14804
+ operationalFormInit: boolean;
14772
14805
  }>;
14773
14806
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
14774
14807
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -156,6 +156,10 @@ declare const _default: import("vue").DefineComponent<{}, {
156
156
  dateOperationalForm: {
157
157
  type: import("vue").PropType<import("../../..").LowCodeTypes.dateOperationalConfig[]>;
158
158
  };
159
+ operationalFormInit: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
159
163
  linebarAutoHidden: {
160
164
  type: BooleanConstructor;
161
165
  };
@@ -308,6 +312,10 @@ declare const _default: import("vue").DefineComponent<{}, {
308
312
  dateOperationalForm: {
309
313
  type: import("vue").PropType<import("../../..").LowCodeTypes.dateOperationalConfig[]>;
310
314
  };
315
+ operationalFormInit: {
316
+ type: BooleanConstructor;
317
+ default: boolean;
318
+ };
311
319
  linebarAutoHidden: {
312
320
  type: BooleanConstructor;
313
321
  };
@@ -910,6 +918,10 @@ declare const _default: import("vue").DefineComponent<{}, {
910
918
  dateOperationalForm: {
911
919
  type: import("vue").PropType<import("../../..").LowCodeTypes.dateOperationalConfig[]>;
912
920
  };
921
+ operationalFormInit: {
922
+ type: BooleanConstructor;
923
+ default: boolean;
924
+ };
913
925
  linebarAutoHidden: {
914
926
  type: BooleanConstructor;
915
927
  };
@@ -945,6 +957,7 @@ declare const _default: import("vue").DefineComponent<{}, {
945
957
  bordered: string | boolean;
946
958
  uniqueCacheData: boolean;
947
959
  outBordered: boolean;
960
+ operationalFormInit: boolean;
948
961
  }>;
949
962
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
950
963
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {