cnhis-design-vue 3.1.43-beta.1 → 3.1.43-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.
- package/README.md +87 -87
- package/es/components/base-search/index.d.ts +46 -114
- package/es/components/base-search/src/index.vue.d.ts +46 -114
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +7 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +6 -5
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +2 -2
- package/es/components/classification/src/index.vue.d.ts +7 -6
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +2 -1
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -4
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +3 -2
- package/es/components/form-config/index.d.ts +72 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +72 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +43 -0
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/hooks/useLowCodeEvent.d.ts +6 -0
- package/es/components/form-render/src/hooks/useLowCodeEvent.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -127
- package/es/components/form-render/src/types/index.d.ts +1 -2
- package/es/components/iho-table/index.d.ts +15 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +15 -5
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +4 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -11
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +6 -3
- package/es/components/iho-table/src/types/pluginType.d.ts +18 -21
- package/es/components/iho-table/style/iconfont.ttf +0 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +2 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
- package/es/components/quick-search/index.d.ts +54 -224
- package/es/components/quick-search/src/index.vue.d.ts +54 -224
- package/es/components/quick-search/src/index.vue.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/shortcut-setter/index.d.ts +15 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +109 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +67 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +27 -7
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -2
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +13 -3
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +134 -15
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +26 -87
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +3 -2
- package/es/shared/utils/business.d.ts +3 -3
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as
|
|
1
|
+
import{defineComponent as e,ref as t,computed as i,watch as l,openBlock as a,createElementBlock as r,createElementVNode as n,createCommentVNode as o,renderSlot as s,unref as u,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as h,Fragment as m,renderList as p}from"vue";import v from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import b from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as y,NIcon as k}from"naive-ui";import{Search as S}from"@vicons/ionicons5";import{cloneDeep as j}from"lodash-es";import x from"../../../_virtual/plugin-vue_export-helper.js";const q={class:"base-search-block"},_={class:"base-container"},A={class:"bease-left"},O={class:"base-ul"},F={key:0,class:"baseli showQuickBtn"},R=n("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),I={key:0,class:"qqConObjCount"},Q={key:1,class:"baseli"},V={key:2,class:"baseli"},w=n("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var E=x(e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{emit:x}){const E=e,{outQuickSearchFn:D}=g(),{isRender:L,getRenderSearchConObj:N,isExistDefValByRenderWidget:P,resetRenderWidgetValue:W}=C(),{transformData:B,transformParams:U}=b(),$=t([]),z=t(!1),M=t([]),T=i((()=>{var e;return e="hideQuickSearch",0==E.showSettings[e]}));function G(){x("foldQuickSearch",!0)}function H(e={}){const t=K()||[];!function(e,t,i=!1,l={}){let a=[];M.value.length>0&&(a=j(M.value));x("onFilterSearch",e,t,i,a,l)}(t,U(t),!0,e)}function J(e,t){M.value.forEach((i=>{i._frontId===e&&(i.widgetCfg.isInit=t)}))}function K(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let l=e[i];const a=N(l);a&&t.push(a)}return t.filter((e=>e.value))}(M.value)}function X(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{W(e)})),D.handlerInitSearchItem(e)}(M.value),x("handleReset",{targetType:"outQuickSearchReset"})}return l((()=>E.searchFieldList),(e=>{e&&e.length>0&&function(){M.value=[];let e=j(B(E.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));M.value=e,D.handlerInitSearchItem(M.value),M.value.some((e=>L(e)?P(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),l((()=>E.qqConObjCount),(e=>{const t=$.value.length||0;z.value=t+Number(e)>0}),{immediate:!0}),l((()=>M),(()=>{$.value=K()||[];const e=U($.value);z.value=$.value.length+Number(E.qqConObjCount)>0,x("getFilterParam",$.value,e)}),{immediate:!0,deep:!0}),(t,i)=>(a(),r("div",q,[n("div",_,[n("div",A,[n("ul",O,[o(" 筛选分类插槽 "),s(t.$slots,"classification"),u(T)?(a(),r("li",F,[c(u(y),{class:"search-default",type:"default",onClick:G},{default:f((()=>[R,d(" 筛选"),e.qqConObjCount?(a(),r("span",I,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(a(!0),r(m,null,p(M.value,(t=>(a(),r(m,null,[t.isRender?(a(),r("li",{class:"baseli outQuickSearch-li",key:t._frontId},[c(v,{cfg:t,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,filterApiConfig:e.filterApiConfig,onOutFilterChange:H,onChangeInit:J},null,8,["cfg","modelValue","onUpdate:modelValue","filterApiConfig"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),M.value&&M.value.length>0?(a(),r("li",Q,[c(u(y),{type:"primary",onClick:H},{default:f((()=>[c(u(k),{component:u(S),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),z.value?(a(),r("li",V,[c(u(y),{onClick:X},{default:f((()=>[w,d(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),s(t.$slots,"buttons")])])])]))}}),[["__file","index.vue"]]);export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:base-search-iconfont;src:url(base-search-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:base-search-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
|
|
1
|
+
@font-face{font-family:base-search-iconfont;src:url(base-search-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:base-search-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .n-input-number{width:136px}.render-widget-input-number-group .divider{text-align:center;width:26px}.n-base-select-option__content{width:100%}.n-base-select-option__content .select-widget-dynamic-option{display:flex;flex-wrap:nowrap;width:100%}.n-base-select-option__content .select-widget-dynamic-option .select-widget-dynamic-item{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../shared/assets/img/xb_small.png.js";import"xe-utils";import"moment";import t from"../../../shared/utils/vexutilsExpand.js";import{nextTick as i}from"vue";import{groupTraverser as n,createRowGroupList as r}from"../../iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js";const l=e=>{if("string"==typeof e)try{const t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(e){return!1}return!1},s=(e,t)=>{const i=e[t.columnName];if(l(i)){const e=JSON.parse(i);return e.star?`${e.star}星`:""}return i},o=(e,t)=>{const i=e[t.columnName];if(l(i)){return JSON.parse(i).address||""}return i},a=(e,t)=>{const i=e[t.columnName];if(l(i)){const e=JSON.parse(i),t=e.days||0;if(!(t>0))return"";if(t<91)return`${t} 天`;if(90<t&&t<365)return`${Math.floor(t/30)} 个月`;if(365<t&&t<1095)return`${e.year} 岁 ${e.month} 月`;if(1095<t)return`${e.year}岁`}return i||""},d=()=>{const e=document.querySelectorAll(".big-table-filter-wrap"),t=e[e.length-1].querySelector(".js-checkbox-wrap"),n=t.scrollTop;i((()=>{t.scrollTop=n}))},c=(e,t,i,n,r)=>{var l,s,o,a,d,c;if(n.isInlineOperating)return!1;const u=i.target,h=document.body,{left:f,right:g,top:p,width:m}=u.getBoundingClientRect();e.left="initial",e.right="initial",e.top="initial";if(f+400>h.clientWidth){const t=(null==h?void 0:h.getBoundingClientRect().right)||0;e.right=t-g-m/2+"px"}else e.left=f+"px";e.top=p+20+(n.filterTopOffset||0)+"px",e.visible=!e.visible;const v=null==(l=r.filterFields[t])?void 0:l.CONVERT.length;e.checkAll=v===(null==(o=null==(s=r.filterFields[t])?void 0:s.filterItems)?void 0:o.length),e.indeterminate=!!v&&v!==((null==(d=null==(a=e.setting)?void 0:a.showSetting)?void 0:d.length)||(null==(c=e.options)?void 0:c.length)),e.searchFilterText=""},u=(e,t)=>{const{rowGroupSetting:i}=t;return n(r(i,e,(e=>e.columnName||e.type)),((t,i)=>i?{field:t,title:t,align:"center"}:function(e,t){return t.find((t=>(t.columnName||t.type)===e))}(t,e)))},h=e=>{var t;return 1!=(e.notParticipatingSearch||"")&&["search","select","radio","checkbox"].includes(e.formType)&&(null==(t=e.options)?void 0:t.length)},f=(e,i)=>{Array.isArray(e)&&e.forEach((e=>{var n;if(i)e.CONVERT=[];else{if(e.setting){if(e.setting="string"==typeof e.setting?JSON.parse(e.setting):e.setting,!t.isEmpty(e.setting.wordbook))return e.con="QUOTE",e.dataSource=[],void(e.QUOTE=[]);if(e.setting.showSetting&&e.setting.showSetting.length>0)return e.con="CONVERT",e.setting.showSetting.forEach((e=>{e.label=e.change_text,e.value=JSON.stringify(e.filter)})),void(e.CONVERT=[])}(null==(n=e.fieldType)?void 0:n.includes("DATE"))?e.settingObj&&"BIRTHDAY"==e.settingObj.attr?(e.con="BIRTHDAY",e.showDate=!1,e.marginx="ml"):(e.con="DATE",e.showDate=!1,e.marginx="ml",e.DATE={con:null,start_val:null,end_val:null}):"TEXT"==e.fieldType?(e.con="CL",e.CL=""):("NUMBER"==e.fieldType||"JSONB"==e.fieldType)&&(e.con="EQ",e.EQ=""),"LABEL"===e.setting.attr&&(e.con="EQ",e.LABELAttr=!0,e.labelSelectList=[]),"EVALUATE"===e.setting.attr&&(e.con="CL",e.selecteds=[],e.EVALUATEAttr=!0)}}))},g=e=>{if("operatorColumn"!==e.columnName)return{name:"EditInput",enabled:1==e.isEdit}},p=(e,i,n)=>{const{groupCountMap:r}=n,l=[];return n.groupCountFields.forEach((e=>{const s=e.tips,o=e.color||"#000",a=e.unit||"";let d=e.defaultValue||0;if("all"==e.range)d=r[e.key];else if("page"==e.range){const{sum:r=0,count:l=0}=((e,i,n=[],r)=>{let l=0,s=0;const{fieldList:o=[]}=r.columnConfig;return e.forEach((e=>{m(e,(e=>{var a,d;if(!e.childrenList||!e.childrenList.length){let c=!0;if(n.length){const i={table:e,form:{},sys:(null==(d=null==(a=null==r?void 0:r.userInfo)?void 0:a.map)?void 0:d.sysParams)||{}};c=t.parseCondition(n,i,o)}if(c){const t=e[i]||0;l+=Number(t),++s}}}))})),{sum:l,count:s}})(i,e.field,e.conObj,n);d=l,"avg"==e.method?d=r/l||0:"sum"==e.method&&(d=r)}d=t.round(d,4),l.push(`<span style="color: ${o}">${s}:${d}${a}</span>`)})),l.join("、")},m=(e,t)=>{if(!e)return;const i=[e];for(;i.length>0;){const e=i.shift();e&&t(e),e.childrenList&&e.childrenList.reverse().forEach((e=>{i.unshift(e)}))}},v=({row:e})=>!e.forbiddenBatchSelect,y=({row:e})=>!e.$__SEPARATE,T=e=>{const t=[],i=(e,n)=>{e.length>0&&e.forEach((e=>{e.qianduan_id||(e.qianduan_id=e.theUniqueKey||window.crypto.getRandomValues(new Uint32Array(1))[0]),e.qianduan_parent_id=n||null,e.childrenList&&i(e.childrenList,e.qianduan_id),t.push(e)}))};return i(e),t},E=(e,t,i,n)=>{t.push(e),i.push(e[n]),e.childrenList&&e.childrenList.length&&e.childrenList.forEach((e=>{e.childrenList&&e.childrenList.length?E(e,t,i,n):(i.push(e[n]),t.push(e))}))},A=(e,t,i)=>{const n=[];if(!e.length)return 1;if(e.forEach((e=>n.push(e[i]))),!n.length)return 1;if(n.length!==t.length)return 1;return n.filter((e=>{t.includes(e)})).length},b=e=>{1!=e.checkedRows.length||v({row:e.checkedRows[0]})||e.checkedRows.pop()},_=(e,t)=>{if(!e.filterFields||!Object.keys(e.filterFields).length)return;const i=t.quickSearchConfig;if(!i||!i.length){return Object.keys(e.filterFields).forEach((t=>{e.filterFields[t].CONVERT=[]})),!1}for(const t in e.filterFields){const i=e.filterFields[t];i&&(i.CONVERT=[])}i.forEach((t=>{if(t.field_key in e.filterFields){if(!e.filterFields[t.field_key])return e.filterFields[t.field_key].CONVERT=[],!1;const i=t.value;e.filterFields[t.field_key].CONVERT=i}}))},O=({row:e})=>{if(e.rowColor){const i=t.hexToRGBA(e.rowColor,.2);return`background-color:${`rgba(${i.r}, ${i.g}, ${i.b}, ${i.a})`}`}return null},R=(e,t)=>{var i,n;if(!t.isNestTable)return t.height;const r=(null==(i=t.styleSetting)?void 0:i.tableHeight)||"table-simple",l=(null==(n=t.data)?void 0:n.length)||1;return`${e.checkWidth[r]*l+90}px`},N=(e,t="name")=>e.alias||e[t],D=(t,i,n)=>("HEADPORTRAIT"===i&&(t||(t=e)),n(t)),w=(e,t,i)=>{if(!t||!t.length)return e;const n=t.find((e=>e.type===i));if(!n)return e;if(n.suffix)return e+n.suffix;let r=n.h;const l=n.w;"adaptive"===n.h&&"adaptive"!=n.w&&(r=n.w),"adaptive"===n.w&&"adaptive"!=n.h&&(r=n.h);return e+`_${r}x${l}`},L=(e,i,n)=>{if(!e||!e.length)return{display:"inline-block",maxWidth:"100%",maxheight:n};const r=e.find((e=>e.type===i));if(!r)return{display:"inline-block",height:n};return t.handleImageSize(r,n)},C=(e,i)=>{var n;const r=e[i.columnName];if(t.isJSON(r)){const e=r.includes("user_name"),t=JSON.parse(r);if(Array.isArray(t)){const i=t.length;if(i>1)return`已选${i}人`;if(1===i)return e&&(null==(n=t[0])?void 0:n.user_name)||`已选${i}人`}}},B=(e,t)=>{var i,n;const{settingObj:r={},fieldSetting:l={}}=t,{mergedFeildExpression:s}=l;let o=e[t.field];if(s){const t=/#{(.+?)\}/g;o=s.replace(t,((t,i)=>e[i]||""))}const a={content:o};return{btnName:null==(i=null==r?void 0:r.qrCode)?void 0:i.name,trigger_id:null==(n=null==r?void 0:r.qrCode)?void 0:n.id,params:a}},S=(e,t)=>{var i;return(null==(i=e[t])?void 0:i.length)?e[t].filter((e=>"EDIT_ROW"===e.settingObj[0].trigger_type)):[]},k=(e,t)=>t[e.columnName]&&e.fieldSetting&&1==e.fieldSetting.fontContentCopy,I=(e,t,i)=>{if(!e||0===e.length)return document.body.style.setProperty("--table-image-height",i),void document.body.style.setProperty("--table-image-width","auto");const n=e.find((e=>e.type===t));if(!n)return document.body.style.setProperty("--table-image-height",i),void document.body.style.setProperty("--table-image-width","auto");let r=i,l="auto";n.h&&(r="adaptive"===n.h?"auto":n.h+"px"),n.w&&(l="adaptive"===n.w?"auto":n.w+"px"),document.body.style.setProperty("--table-image-height",r),document.body.style.setProperty("--table-image-width",l)},Y=(e,t,i={})=>{const n=i[e];return{[t.name]:(r=n,r&&"string"==typeof r&&r.startsWith("###")&&(r=r.slice(3),r=(r=JSON.parse(r)).tooltip||r.value),r)};var r},H=(e,t)=>{Object.values(e.filterFields).forEach((e=>{e.visible=!1})),_(e,t)},j=(e,i)=>{const n=Object.values(e.filterFields),r=Object.keys(e.filterFields),l=((e,i)=>{var n;if(!Array.isArray(e))return[];const r=[];for(let l=0;l<e.length;l++){const s=e[l];let o=0,a="";if(s.EQ||s.CL)o=s.EQ||s.CL,"PERCENTAGE"===(null==(n=s.settingObj)?void 0:n.attr)&&(o=Number(o)/100),s.EVALUATEAttr&&(o=s.selecteds.join("|#|"));else if(t.isEmpty(s.QUOTE))if(t.isEmpty(s.CONVERT))if(s.DATE)(s.DATE.start_val||s.DATE.end_val)&&(s.DATE.con="IN"),s.tempCon=s.DATE.con,s.start_val=s.DATE.start_val?s.DATE.start_val.format("YYYY-MM-DD HH:mm:ss"):"",s.end_val=s.DATE.end_val?s.DATE.end_val.format("YYYY-MM-DD HH:mm:ss"):"";else if(s.BIRTHDAY){let e=!1;if((s.BIRTHDAY.limit_date.length>0||s.BIRTHDAY.start_val||s.BIRTHDAY.end_val)&&(s.BIRTHDAY.con="IN"),s.tempCon=s.BIRTHDAY.con,e=!(!s.BIRTHDAY.start_val&&!s.BIRTHDAY.end_val),s.BIRTHDAY.start_val&&!t.validateBirthday(s.BIRTHDAY.start_val,s.title,s.BIRTHDAY.unit))return;if(s.BIRTHDAY.end_val&&!t.validateBirthday(s.BIRTHDAY.end_val,s.title,s.BIRTHDAY.unit))return;if(+s.BIRTHDAY.start_val>+s.BIRTHDAY.end_val)return void window.$message.warning(`${s.title}请输入有效范围`,2);a=i.limit_date||"",s.unit=e&&s.BIRTHDAY.unit||"",s.start_val=s.BIRTHDAY.start_val||"",s.end_val=s.BIRTHDAY.end_val||""}else if(s.LABELAttr){const e=[];s.labelSelectList.forEach((t=>{e.push(t.labelName)})),o=e.join("|#|")}else s.EVALUATEAttr&&(o=s.selecteds.join("|#|"));else o=s.CONVERT.map((e=>["string","number"].includes(typeof e)?e:JSON.parse(e)));else o=s.QUOTE.join("|#|");const d={field_key:s.columnName,con:s.DATE||s.BIRTHDAY?s.tempCon:s.con,value:o,limit_date:a||"",start_val:s.start_val||"",end_val:s.end_val||"",unit:s.unit||""};r.push(d)}return r.filter((e=>e.value||e.limit_date||e.start_val||e.end_val))})(n,e),s=[...l];return(i.tableParams.qqConObj?JSON.parse(i.tableParams.qqConObj):[]).forEach((e=>{r.includes(e.field_key)||s.push(e)})),s},x=(e,t,i)=>{var n;return t.clickFieldKey==t.columnName||"field"==e.relatedItems.triggerMethodPc&&t.columnName==e.relatedItems.triggerMethodField||t.isbtnLink&&i.btnLinks&&(null==(n=i.btnLinks)?void 0:n.includes(t.columnName))},$=(e,t)=>{t.showButtonTop=e.showButtonTop,t.isTree=e.isTree,t.openOnly=e.openOnly,t.isExpand=e.spreadAllBtn,t.levelLazyLoadSetting=Object.assign({},e.levelLazyLoadSetting),t.checkWidth=Object.assign({},t.checkWidth,e.checkWidth)},F=(e,i,n)=>{e.forEach((e=>{t.has(e,"childrenList")&&F(e.childrenList,i,n),t.has(e,n)&&(e[i]=e[n])}))},V=(e,t,i)=>{if(t.isNestTable)return;if(1==e.isTree)return e.visibleCheckAllWrap=!1,!1;e.visibleCheckAllWrap=i.length>1;const n=i.length>=e.curAbleCheckedLen,r=t.pageVO.pageSize===t.pageVO.total,l=i.length>e.currentPageSelectedLength;e.visibleCheckAllWrapMore=l||n&&!r};export{v as checkMethod,E as flattenRow,g as generateEditRender,C as getCandidateComponents,s as getEvaluate,p as getFooterGroup,S as getInlineEditBtn,o as getMapVal,O as getRowStyle,a as getageShowType,u as handleGroupColums,D as handleImgArr,w as handleImgSrc,N as handleName,B as handleQrCodeContent,R as handleTableHeight,I as handleTableImageSize,f as handlerInitSearchItem,H as hideFilterWrap,A as intersectRow,k as isCopy,h as isFilterItem,x as isLink,j as mergeConObjFn,L as modalDetailImage,d as reScrollFilterWrap,b as removeCheckedDisabledRows,Y as setDefaultFormData,_ as setFilterStatus,$ as setTableConfig,F as setTreeGroupTitle,V as setVisibleCheckAllWrap,c as showFilter,T as treeToList,y as visibleMethod};
|
|
1
|
+
import e from"../../../shared/assets/img/xb_small.png.js";import"xe-utils";import"moment";import t from"../../../shared/utils/vexutilsExpand.js";import{nextTick as i}from"vue";import{groupTraverser as n,createRowGroupList as r}from"../../iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js";const l=e=>{if("string"==typeof e)try{const t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(e){return!1}return!1},s=(e,t)=>{const i=e[t.columnName];if(l(i)){const e=JSON.parse(i);return e.star?`${e.star}星`:""}return i},o=(e,t)=>{const i=e[t.columnName];if(l(i)){return JSON.parse(i).address||""}return i},a=(e,t)=>{const i=e[t.columnName];if(l(i)){const e=JSON.parse(i),t=e.days||0;if(!(t>0))return"";if(t<91)return`${t} 天`;if(90<t&&t<365)return`${Math.floor(t/30)} 个月`;if(365<t&&t<1095)return`${e.year} 岁 ${e.month} 月`;if(1095<t)return`${e.year}岁`}return i||""},d=()=>{const e=document.querySelectorAll(".big-table-filter-wrap"),t=e[e.length-1].querySelector(".js-checkbox-wrap"),n=t.scrollTop;i((()=>{t.scrollTop=n}))},c=(e,t,i,n,r)=>{var l,s,o,a,d,c;if(n.isInlineOperating)return!1;const u=i.target,h=document.body,{left:f,right:g,top:p,width:m}=u.getBoundingClientRect();e.left="initial",e.right="initial",e.top="initial";if(f+400>h.clientWidth){const t=(null==h?void 0:h.getBoundingClientRect().right)||0;e.right=t-g-m/2+"px"}else e.left=f+"px";e.top=p+20+(n.filterTopOffset||0)+"px",e.visible=!e.visible;const v=null==(l=r.filterFields[t])?void 0:l.CONVERT.length;e.checkAll=v===(null==(o=null==(s=r.filterFields[t])?void 0:s.filterItems)?void 0:o.length),e.indeterminate=!!v&&v!==((null==(d=null==(a=e.setting)?void 0:a.showSetting)?void 0:d.length)||(null==(c=e.options)?void 0:c.length)),e.searchFilterText=""},u=(e,t)=>{const{rowGroupSetting:i}=t;return n(r(i,e,(e=>e.columnName||e.type)),((t,i)=>i?{field:t,title:t,align:"center"}:function(e,t){return t.find((t=>(t.columnName||t.type)===e))}(t,e)))},h=e=>{var t;return 1!=(e.notParticipatingSearch||"")&&["search","select","radio","checkbox"].includes(e.formType)&&(null==(t=e.options)?void 0:t.length)},f=(e,i)=>{Array.isArray(e)&&e.forEach((e=>{var n;if(i)e.CONVERT=[];else{if(e.setting){if(e.setting="string"==typeof e.setting?JSON.parse(e.setting):e.setting,!t.isEmpty(e.setting.wordbook))return e.con="QUOTE",e.dataSource=[],void(e.QUOTE=[]);if(e.setting.showSetting&&e.setting.showSetting.length>0)return e.con="CONVERT",e.setting.showSetting.forEach((e=>{e.label=e.change_text,e.value=JSON.stringify(e.filter)})),void(e.CONVERT=[])}(null==(n=e.fieldType)?void 0:n.includes("DATE"))?e.settingObj&&"BIRTHDAY"==e.settingObj.attr?(e.con="BIRTHDAY",e.showDate=!1,e.marginx="ml"):(e.con="DATE",e.showDate=!1,e.marginx="ml",e.DATE={con:null,start_val:null,end_val:null}):"TEXT"==e.fieldType?(e.con="CL",e.CL=""):("NUMBER"==e.fieldType||"JSONB"==e.fieldType)&&(e.con="EQ",e.EQ=""),"LABEL"===e.setting.attr&&(e.con="EQ",e.LABELAttr=!0,e.labelSelectList=[]),"EVALUATE"===e.setting.attr&&(e.con="CL",e.selecteds=[],e.EVALUATEAttr=!0)}}))},g=e=>{if("operatorColumn"!==e.columnName)return{name:"EditInput",enabled:1==e.isEdit}},p=(e,i,n)=>{const{groupCountMap:r}=n,l=[];return n.groupCountFields.forEach((e=>{const s=e.tips,o=e.color||"#000",a=e.unit||"";let d=e.defaultValue||0;if("all"==e.range)d=r[e.key];else if("page"==e.range){const{sum:r=0,count:l=0}=((e,i,n=[],r)=>{let l=0,s=0;const{fieldList:o=[]}=r.columnConfig;return e.forEach((e=>{m(e,(e=>{var a,d;if(!e.childrenList||!e.childrenList.length){let c=!0;if(n.length){const i={table:e,form:{},sys:(null==(d=null==(a=null==r?void 0:r.userInfo)?void 0:a.map)?void 0:d.sysParams)||{}};c=t.parseCondition(n,i,o)}if(c){const t=e[i]||0;l+=Number(t),++s}}}))})),{sum:l,count:s}})(i,e.field,e.conObj,n);d=l,"avg"==e.method?d=r/l||0:"sum"==e.method&&(d=r)}d=t.round(d,4),l.push(`<span style="color: ${o}">${s}:${d}${a}</span>`)})),l.join("、")},m=(e,t)=>{if(!e)return;const i=[e];for(;i.length>0;){const e=i.shift();e&&t(e),e.childrenList&&e.childrenList.reverse().forEach((e=>{i.unshift(e)}))}},v=({row:e})=>!e.forbiddenBatchSelect,y=({row:e})=>!e.$__SEPARATE,T=e=>{const t=[],i=(e,n)=>{e.length>0&&e.forEach((e=>{e.qianduan_id||(e.qianduan_id=e.theUniqueKey||window.crypto.getRandomValues(new Uint32Array(1))[0]),e.qianduan_parent_id=n||null,e.childrenList&&i(e.childrenList,e.qianduan_id),t.push(e)}))};return i(e),t},E=(e,t,i,n)=>{t.push(e),i.push(e[n]),e.childrenList&&e.childrenList.length&&e.childrenList.forEach((e=>{e.childrenList&&e.childrenList.length?E(e,t,i,n):(i.push(e[n]),t.push(e))}))},A=(e,t,i)=>{const n=[];if(!e.length)return 1;if(e.forEach((e=>n.push(e[i]))),!n.length)return 1;if(n.length!==t.length)return 1;return n.filter((e=>{t.includes(e)})).length},b=e=>{1!=e.checkedRows.length||v({row:e.checkedRows[0]})||e.checkedRows.pop()},_=(e,t)=>{if(!e.filterFields||!Object.keys(e.filterFields).length)return;const i=t.quickSearchConfig;if(!i||!i.length){return Object.keys(e.filterFields).forEach((t=>{e.filterFields[t].CONVERT=[]})),!1}for(const t in e.filterFields){const i=e.filterFields[t];i&&(i.CONVERT=[])}i.forEach((t=>{if(t.field_key in e.filterFields){if(!e.filterFields[t.field_key])return e.filterFields[t.field_key].CONVERT=[],!1;const i=t.value;e.filterFields[t.field_key].CONVERT=i}}))},O=({row:e})=>{if(e.rowColor){const i=t.hexToRGBA(e.rowColor,.2)||{};return`background-color:${`rgba(${i.r}, ${i.g}, ${i.b}, ${i.a})`}`}return null},R=(e,t)=>{var i,n;if(!t.isNestTable)return t.height;const r=(null==(i=t.styleSetting)?void 0:i.tableHeight)||"table-simple",l=(null==(n=t.data)?void 0:n.length)||1;return`${e.checkWidth[r]*l+90}px`},N=(e,t="name")=>e.alias||e[t],D=(t,i,n)=>("HEADPORTRAIT"===i&&(t||(t=e)),n(t)),w=(e,t,i)=>{if(!t||!t.length)return e;const n=t.find((e=>e.type===i));if(!n)return e;if(n.suffix)return e+n.suffix;let r=n.h;const l=n.w;"adaptive"===n.h&&"adaptive"!=n.w&&(r=n.w),"adaptive"===n.w&&"adaptive"!=n.h&&(r=n.h);return e+`_${r}x${l}`},L=(e,i,n)=>{if(!e||!e.length)return{display:"inline-block",maxWidth:"100%",maxheight:n};const r=e.find((e=>e.type===i));if(!r)return{display:"inline-block",height:n};return t.handleImageSize(r,n)},C=(e,i)=>{var n;const r=e[i.columnName];if(t.isJSON(r)){const e=r.includes("user_name"),t=JSON.parse(r);if(Array.isArray(t)){const i=t.length;if(i>1)return`已选${i}人`;if(1===i)return e&&(null==(n=t[0])?void 0:n.user_name)||`已选${i}人`}}},B=(e,t)=>{var i,n;const{settingObj:r={},fieldSetting:l={}}=t,{mergedFeildExpression:s}=l;let o=e[t.field];if(s){const t=/#{(.+?)\}/g;o=s.replace(t,((t,i)=>e[i]||""))}const a={content:o};return{btnName:null==(i=null==r?void 0:r.qrCode)?void 0:i.name,trigger_id:null==(n=null==r?void 0:r.qrCode)?void 0:n.id,params:a}},S=(e,t)=>{var i;return(null==(i=e[t])?void 0:i.length)?e[t].filter((e=>"EDIT_ROW"===e.settingObj[0].trigger_type)):[]},k=(e,t)=>t[e.columnName]&&e.fieldSetting&&1==e.fieldSetting.fontContentCopy,I=(e,t,i)=>{if(!e||0===e.length)return document.body.style.setProperty("--table-image-height",i),void document.body.style.setProperty("--table-image-width","auto");const n=e.find((e=>e.type===t));if(!n)return document.body.style.setProperty("--table-image-height",i),void document.body.style.setProperty("--table-image-width","auto");let r=i,l="auto";n.h&&(r="adaptive"===n.h?"auto":n.h+"px"),n.w&&(l="adaptive"===n.w?"auto":n.w+"px"),document.body.style.setProperty("--table-image-height",r),document.body.style.setProperty("--table-image-width",l)},Y=(e,t,i={})=>{const n=i[e];return{[t.name]:(r=n,r&&"string"==typeof r&&r.startsWith("###")&&(r=r.slice(3),r=(r=JSON.parse(r)).tooltip||r.value),r)};var r},H=(e,t)=>{Object.values(e.filterFields).forEach((e=>{e.visible=!1})),_(e,t)},j=(e,i)=>{const n=Object.values(e.filterFields),r=Object.keys(e.filterFields),l=((e,i)=>{var n;if(!Array.isArray(e))return[];const r=[];for(let l=0;l<e.length;l++){const s=e[l];let o=0,a="";if(s.EQ||s.CL)o=s.EQ||s.CL,"PERCENTAGE"===(null==(n=s.settingObj)?void 0:n.attr)&&(o=Number(o)/100),s.EVALUATEAttr&&(o=s.selecteds.join("|#|"));else if(t.isEmpty(s.QUOTE))if(t.isEmpty(s.CONVERT))if(s.DATE)(s.DATE.start_val||s.DATE.end_val)&&(s.DATE.con="IN"),s.tempCon=s.DATE.con,s.start_val=s.DATE.start_val?s.DATE.start_val.format("YYYY-MM-DD HH:mm:ss"):"",s.end_val=s.DATE.end_val?s.DATE.end_val.format("YYYY-MM-DD HH:mm:ss"):"";else if(s.BIRTHDAY){let e=!1;if((s.BIRTHDAY.limit_date.length>0||s.BIRTHDAY.start_val||s.BIRTHDAY.end_val)&&(s.BIRTHDAY.con="IN"),s.tempCon=s.BIRTHDAY.con,e=!(!s.BIRTHDAY.start_val&&!s.BIRTHDAY.end_val),s.BIRTHDAY.start_val&&!t.validateBirthday(s.BIRTHDAY.start_val,s.title,s.BIRTHDAY.unit))return;if(s.BIRTHDAY.end_val&&!t.validateBirthday(s.BIRTHDAY.end_val,s.title,s.BIRTHDAY.unit))return;if(+s.BIRTHDAY.start_val>+s.BIRTHDAY.end_val)return void window.$message.warning(`${s.title}请输入有效范围`,2);a=i.limit_date||"",s.unit=e&&s.BIRTHDAY.unit||"",s.start_val=s.BIRTHDAY.start_val||"",s.end_val=s.BIRTHDAY.end_val||""}else if(s.LABELAttr){const e=[];s.labelSelectList.forEach((t=>{e.push(t.labelName)})),o=e.join("|#|")}else s.EVALUATEAttr&&(o=s.selecteds.join("|#|"));else o=s.CONVERT.map((e=>["string","number"].includes(typeof e)?e:JSON.parse(e)));else o=s.QUOTE.join("|#|");const d={field_key:s.columnName,con:s.DATE||s.BIRTHDAY?s.tempCon:s.con,value:o,limit_date:a||"",start_val:s.start_val||"",end_val:s.end_val||"",unit:s.unit||""};r.push(d)}return r.filter((e=>e.value||e.limit_date||e.start_val||e.end_val))})(n,e),s=[...l];return(i.tableParams.qqConObj?JSON.parse(i.tableParams.qqConObj):[]).forEach((e=>{r.includes(e.field_key)||s.push(e)})),s},x=(e,t,i)=>{var n;return t.clickFieldKey==t.columnName||"field"==e.relatedItems.triggerMethodPc&&t.columnName==e.relatedItems.triggerMethodField||t.isbtnLink&&i.btnLinks&&(null==(n=i.btnLinks)?void 0:n.includes(t.columnName))},$=(e,t)=>{t.showButtonTop=e.showButtonTop,t.isTree=e.isTree,t.openOnly=e.openOnly,t.isExpand=e.spreadAllBtn,t.levelLazyLoadSetting=Object.assign({},e.levelLazyLoadSetting),t.checkWidth=Object.assign({},t.checkWidth,e.checkWidth)},F=(e,i,n)=>{e.forEach((e=>{t.has(e,"childrenList")&&F(e.childrenList,i,n),t.has(e,n)&&(e[i]=e[n])}))},V=(e,t,i)=>{if(t.isNestTable)return;if(1==e.isTree)return e.visibleCheckAllWrap=!1,!1;e.visibleCheckAllWrap=i.length>1;const n=i.length>=e.curAbleCheckedLen,r=t.pageVO.pageSize===t.pageVO.total,l=i.length>e.currentPageSelectedLength;e.visibleCheckAllWrapMore=l||n&&!r};export{v as checkMethod,E as flattenRow,g as generateEditRender,C as getCandidateComponents,s as getEvaluate,p as getFooterGroup,S as getInlineEditBtn,o as getMapVal,O as getRowStyle,a as getageShowType,u as handleGroupColums,D as handleImgArr,w as handleImgSrc,N as handleName,B as handleQrCodeContent,R as handleTableHeight,I as handleTableImageSize,f as handlerInitSearchItem,H as hideFilterWrap,A as intersectRow,k as isCopy,h as isFilterItem,x as isLink,j as mergeConObjFn,L as modalDetailImage,d as reScrollFilterWrap,b as removeCheckedDisabledRows,Y as setDefaultFormData,_ as setFilterStatus,$ as setTableConfig,F as setTreeGroupTitle,V as setVisibleCheckAllWrap,c as showFilter,T as treeToList,y as visibleMethod};
|
|
@@ -9,6 +9,7 @@ export declare class Print {
|
|
|
9
9
|
private downloadPath;
|
|
10
10
|
private printOrigin;
|
|
11
11
|
private isRemote;
|
|
12
|
+
private CMonitor;
|
|
12
13
|
constructor();
|
|
13
14
|
private readonly messageHandlerQueue;
|
|
14
15
|
private messageHandler;
|
|
@@ -22,6 +23,7 @@ export declare class Print {
|
|
|
22
23
|
_testConnection(): Promise<unknown>;
|
|
23
24
|
_queryServicesPrint(params: AnyObject): Promise<any>;
|
|
24
25
|
_callPrintWithFile(queryParams: AnyObject): Promise<any>;
|
|
26
|
+
_handleMonitorNotify(message: string): void;
|
|
25
27
|
_handleResult(data: AnyObject, errorCallbackFn?: Func): false | AnyObject;
|
|
26
28
|
_handleResultTest(result: unknown, errorCallbackFn?: Func): boolean;
|
|
27
29
|
_handleEventQueryPrintData(templateId: string, formatId: string, params: AnyObject, errorCallbackFn?: Func): Promise<false | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.messageHandlerQueue=[],m)return m;m=this;const e=window;if(this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.postMessage({exec:"config",data:""})}catch(t){console.log("非封装浏览器或者当前版本不支持获取配置接口")}}}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{console.log(t);const i=JSON.parse(t.data||"{}");"config"===i.exec&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||""),n(i.res||"")}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleResult(t,e){if(!t)return null==e||e({type:"printError",message:"打印命令未返回信息",result:!1,errinfo:"打印命令未返回信息"}),!1;if("success"!==t.result){const i={type:"printError",message:
|
|
1
|
+
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.messageHandlerQueue=[],m)return m;m=this;const e=window;if(this.CMonitor=e.$CMonitor,this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.postMessage({exec:"config",data:""})}catch(t){this._handleMonitorNotify("当前浏览器版本不支持获取配置接口"),console.log("非封装浏览器或者当前版本不支持获取配置接口")}}}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{console.log(t);const i=JSON.parse(t.data||"{}");"config"===i.exec&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||""),n(i.res||"")}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"打印sdk错误收集",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t)return this._handleMonitorNotify("打印命令未返回信息"),null==e||e({type:"printError",message:"打印命令未返回信息",result:!1,errinfo:"打印命令未返回信息"}),!1;if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const n={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(n),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="1",nobillnode:a="1",btnprint:o="1"}){const d={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}d.print=s}else if(this.isRemote){const t=l(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-2],o=n[n.length-1],l=await s(`${u}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;const h=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n}),c=this._handleResult(h,l);if(!c)return!1;if(this.isRemote){const t=await this._browserPrint(c,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}s&&s(c)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o,isDownloadFile:l=!0},d,h,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==d||d({file:t}))):null==h?void 0:h("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,h))return!1;const u=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o}),m=this._handleResult(u,h);if(!m)return!1;l&&["downloadPDF"].includes(c)&&await this._browserPrint(m,c),null==d||d(m)}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o,s)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
|
|
@@ -270,12 +270,12 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
270
270
|
oneSave: (value: any) => Promise<void>;
|
|
271
271
|
oneCancel: () => void;
|
|
272
272
|
hanleAdd: () => void;
|
|
273
|
-
edit: (item: import("..").IClassifyListType
|
|
274
|
-
copy: (item: import("..").IClassifyListType
|
|
273
|
+
edit: (item: import("..").IClassifyListType) => void;
|
|
274
|
+
copy: (item: import("..").IClassifyListType) => void;
|
|
275
275
|
saveAdd: (params: any) => Promise<void>;
|
|
276
276
|
cancelSaveAdd: () => void;
|
|
277
277
|
changeData: (data: any, checkedItemVal: any) => void;
|
|
278
|
-
delItem: (checkedItemVal: any
|
|
278
|
+
delItem: (checkedItemVal: any) => Promise<void>;
|
|
279
279
|
setOneVisible: (flag: boolean) => void;
|
|
280
280
|
resetPopconfirm: () => Promise<void>;
|
|
281
281
|
oneVisible: import("vue").ComputedRef<boolean>;
|
|
@@ -380,8 +380,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
380
380
|
resetChangeWindow: () => void;
|
|
381
381
|
dragEnd: () => void;
|
|
382
382
|
clickli: (item: import("..").IClassifyListType) => void;
|
|
383
|
-
clickChecked: (item: import("..").IClassifyListType
|
|
384
|
-
changeSwitch: (item: import("..").IClassifyListType
|
|
383
|
+
clickChecked: (item: import("..").IClassifyListType) => void;
|
|
384
|
+
changeSwitch: (item: import("..").IClassifyListType) => void;
|
|
385
385
|
changecommonSwitch: (item: import("..").IClassifyListType) => void;
|
|
386
386
|
formatParams: (type: string) => {
|
|
387
387
|
id: string;
|
|
@@ -766,6 +766,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
766
766
|
DATE: string;
|
|
767
767
|
DATE_TIME: string;
|
|
768
768
|
CHECKBOX_GROUP: string;
|
|
769
|
+
INPUTNUMBER_GROUP: string;
|
|
769
770
|
};
|
|
770
771
|
WidgetValEnums: {
|
|
771
772
|
CUSTOM: string;
|
|
@@ -982,8 +983,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
982
983
|
onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
|
|
983
984
|
}, {
|
|
984
985
|
searchFieldList: any[];
|
|
985
|
-
tableId: string;
|
|
986
986
|
filterApiConfig: Record<string, any>;
|
|
987
|
+
tableId: string;
|
|
987
988
|
conditionMap: import("..").IConditionMapType;
|
|
988
989
|
conditionSid: string[];
|
|
989
990
|
curClassificationIndex: number;
|
|
@@ -57,12 +57,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
oneSave: (value: any) => Promise<void>;
|
|
58
58
|
oneCancel: () => void;
|
|
59
59
|
hanleAdd: () => void;
|
|
60
|
-
edit: (item: IClassifyListType
|
|
61
|
-
copy: (item: IClassifyListType
|
|
60
|
+
edit: (item: IClassifyListType) => void;
|
|
61
|
+
copy: (item: IClassifyListType) => void;
|
|
62
62
|
saveAdd: (params: any) => Promise<void>;
|
|
63
63
|
cancelSaveAdd: () => void;
|
|
64
64
|
changeData: (data: any, checkedItemVal: any) => void;
|
|
65
|
-
delItem: (checkedItemVal: any
|
|
65
|
+
delItem: (checkedItemVal: any) => Promise<void>;
|
|
66
66
|
setOneVisible: (flag: boolean) => void;
|
|
67
67
|
resetPopconfirm: () => Promise<void>;
|
|
68
68
|
oneVisible: import("vue").ComputedRef<boolean>;
|
|
@@ -167,8 +167,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
167
|
resetChangeWindow: () => void;
|
|
168
168
|
dragEnd: () => void;
|
|
169
169
|
clickli: (item: IClassifyListType) => void;
|
|
170
|
-
clickChecked: (item: IClassifyListType
|
|
171
|
-
changeSwitch: (item: IClassifyListType
|
|
170
|
+
clickChecked: (item: IClassifyListType) => void;
|
|
171
|
+
changeSwitch: (item: IClassifyListType) => void;
|
|
172
172
|
changecommonSwitch: (item: IClassifyListType) => void;
|
|
173
173
|
formatParams: (type: string) => {
|
|
174
174
|
id: string;
|
|
@@ -553,6 +553,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
553
553
|
DATE: string;
|
|
554
554
|
DATE_TIME: string;
|
|
555
555
|
CHECKBOX_GROUP: string;
|
|
556
|
+
INPUTNUMBER_GROUP: string;
|
|
556
557
|
};
|
|
557
558
|
WidgetValEnums: {
|
|
558
559
|
CUSTOM: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as a,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e
|
|
1
|
+
import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as a,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O.value&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return a((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),a((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),a((()=>b.conditionList),(e=>{L.value=e}),{immediate:!0,deep:!0}),a((()=>T),(e=>{e||(S.value={})})),(i,t)=>(o(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
|
|
@@ -99,8 +99,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
resetChangeWindow: () => void;
|
|
100
100
|
dragEnd: () => void;
|
|
101
101
|
clickli: (item: IClassifyListType) => void;
|
|
102
|
-
clickChecked: (item: IClassifyListType
|
|
103
|
-
changeSwitch: (item: IClassifyListType
|
|
102
|
+
clickChecked: (item: IClassifyListType) => void;
|
|
103
|
+
changeSwitch: (item: IClassifyListType) => void;
|
|
104
104
|
changecommonSwitch: (item: IClassifyListType) => void;
|
|
105
105
|
formatParams: (type: string) => {
|
|
106
106
|
id: string;
|
|
@@ -271,12 +271,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
271
271
|
oneSave: (value: any) => Promise<void>;
|
|
272
272
|
oneCancel: () => void;
|
|
273
273
|
hanleAdd: () => void;
|
|
274
|
-
edit: (item: IClassifyListType
|
|
275
|
-
copy: (item: IClassifyListType
|
|
274
|
+
edit: (item: IClassifyListType) => void;
|
|
275
|
+
copy: (item: IClassifyListType) => void;
|
|
276
276
|
saveAdd: (params: any) => Promise<void>;
|
|
277
277
|
cancelSaveAdd: () => void;
|
|
278
278
|
changeData: (data: any, checkedItemVal: any) => void;
|
|
279
|
-
delItem: (checkedItemVal: any
|
|
279
|
+
delItem: (checkedItemVal: any) => Promise<void>;
|
|
280
280
|
setOneVisible: (flag: boolean) => void;
|
|
281
281
|
resetPopconfirm: () => Promise<void>;
|
|
282
282
|
oneVisible: import("vue").ComputedRef<boolean>;
|
|
@@ -381,8 +381,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
381
381
|
resetChangeWindow: () => void;
|
|
382
382
|
dragEnd: () => void;
|
|
383
383
|
clickli: (item: IClassifyListType) => void;
|
|
384
|
-
clickChecked: (item: IClassifyListType
|
|
385
|
-
changeSwitch: (item: IClassifyListType
|
|
384
|
+
clickChecked: (item: IClassifyListType) => void;
|
|
385
|
+
changeSwitch: (item: IClassifyListType) => void;
|
|
386
386
|
changecommonSwitch: (item: IClassifyListType) => void;
|
|
387
387
|
formatParams: (type: string) => {
|
|
388
388
|
id: string;
|
|
@@ -767,6 +767,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
767
767
|
DATE: string;
|
|
768
768
|
DATE_TIME: string;
|
|
769
769
|
CHECKBOX_GROUP: string;
|
|
770
|
+
INPUTNUMBER_GROUP: string;
|
|
770
771
|
};
|
|
771
772
|
WidgetValEnums: {
|
|
772
773
|
CUSTOM: string;
|
|
@@ -983,8 +984,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
983
984
|
onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
|
|
984
985
|
}, {
|
|
985
986
|
searchFieldList: any[];
|
|
986
|
-
tableId: string;
|
|
987
987
|
filterApiConfig: Record<string, any>;
|
|
988
|
+
tableId: string;
|
|
988
989
|
conditionMap: IConditionMapType;
|
|
989
990
|
conditionSid: string[];
|
|
990
991
|
curClassificationIndex: number;
|
|
@@ -26,7 +26,7 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
26
26
|
focus: () => any;
|
|
27
27
|
blur: () => any;
|
|
28
28
|
onUpdateShow: (show: boolean) => void;
|
|
29
|
-
onConfirm: () => void;
|
|
29
|
+
onConfirm: (...args: any[]) => void;
|
|
30
30
|
NDatePicker: any;
|
|
31
31
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
32
|
updateUnchangedValue: {
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
focus: () => any;
|
|
27
27
|
blur: () => any;
|
|
28
28
|
onUpdateShow: (show: boolean) => void;
|
|
29
|
-
onConfirm: () => void;
|
|
29
|
+
onConfirm: (...args: any[]) => void;
|
|
30
30
|
NDatePicker: any;
|
|
31
31
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
32
|
updateUnchangedValue: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as t,ref as n,computed as l,openBlock as u,createBlock as a,unref as o,mergeProps as r,createSlots as i,renderList as s,withCtx as p,renderSlot as v,nextTick as d}from"vue";import{NDatePicker as f}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";import{format as m}from"date-fns";import y from"../../../_virtual/plugin-vue_export-helper.js";var h=y(e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function}},setup(e,{expose:y}){const h=e,g=t(),_=n(null),k=n(null),M=l((()=>{const e=Reflect.get(g,"type")||"";return["datetime","datetimerange"].includes(e)})),R=l((()=>{if(Reflect.get(g,"format"))return g.format;const e=g.type||"";return M.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),$=l((()=>M.value?R.value.split(" "):"")),{focus:w,blur:x}=c(_,R,g);function D(e){e&&M.value&&d((()=>{var e;k.value=null==(e=_.value)?void 0:e.panelInstRef,c(k,$,g)}))}function E(){var
|
|
1
|
+
import{defineComponent as e,useAttrs as t,ref as n,computed as l,openBlock as u,createBlock as a,unref as o,mergeProps as r,createSlots as i,renderList as s,withCtx as p,renderSlot as v,nextTick as d}from"vue";import{NDatePicker as f}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";import{format as m}from"date-fns";import y from"../../../_virtual/plugin-vue_export-helper.js";var h=y(e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function}},setup(e,{expose:y}){const h=e,g=t(),_=n(null),k=n(null),M=l((()=>{const e=Reflect.get(g,"type")||"";return["datetime","datetimerange"].includes(e)})),R=l((()=>{if(Reflect.get(g,"format"))return g.format;const e=g.type||"";return M.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),$=l((()=>M.value?R.value.split(" "):"")),{focus:w,blur:x}=c(_,R,g);function D(e){e&&M.value&&d((()=>{var e;k.value=null==(e=_.value)?void 0:e.panelInstRef,c(k,$,g)}))}function E(...e){var t,n,l,u,a;null==(t=h.onConfirm)||t.call(h,...e);const o=Reflect.get(g,"type")||"",r=null==(a=null==(u=null==(l=null==(n=_.value)?void 0:n.inputInstRef)?void 0:l.$el)?void 0:u.querySelector)?void 0:a.call(u,"input");if(!(null==r?void 0:r.value)||!h.updateUnchangedValue||o.includes("range"))return;const i=r.value;r.value=m(new Date,R.value),r.dispatchEvent(new InputEvent("input")),r.value=i,r.dispatchEvent(new InputEvent("input"))}return y({$datePicker:_,focus:w,blur:x}),(e,t)=>(u(),a(o(f),r({ref_key:"datePickerRef",ref:_},e.$attrs,{"onUpdate:show":D,onConfirm:E}),i({_:2},[s(e.$slots,((t,n)=>({name:n,fn:p((()=>[v(e.$slots,n)]))})))]),1040))}}),[["__file","DatePicker.vue"]]);export{h as default};
|
|
@@ -32,7 +32,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
32
32
|
}>>;
|
|
33
33
|
emits: (event: "select" | "add" | "change" | "remove", ...args: any[]) => void;
|
|
34
34
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
35
|
-
canvasRef:
|
|
35
|
+
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
|
36
36
|
canvas: import("vue").Ref<any>;
|
|
37
37
|
propItems: any;
|
|
38
38
|
redrawPoints: import("vue").Ref<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
2
|
import { IType } from './interface';
|
|
3
3
|
import { AnyObject } from '../../../../es/shared/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
}>>;
|
|
35
35
|
emits: (event: "select" | "add" | "change" | "remove", ...args: any[]) => void;
|
|
36
36
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
37
|
-
canvasRef:
|
|
37
|
+
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
|
38
38
|
canvas: import("vue").Ref<any>;
|
|
39
39
|
propItems: any;
|
|
40
40
|
redrawPoints: import("vue").Ref<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
4
|
-
export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits:
|
|
4
|
+
export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: AnyObject, pointMenuProps: AnyObject, commonFunc: AnyObject): {
|
|
5
5
|
clickMenu: ({ item, target }: {
|
|
6
6
|
item: any;
|
|
7
7
|
target: any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
|
-
|
|
3
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
4
|
+
export default function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
|
|
4
5
|
propItems: any;
|
|
5
6
|
redrawPoints: Ref<any>;
|
|
6
7
|
select: Ref<any>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
4
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
5
|
-
export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits:
|
|
6
|
-
pointTipProps:
|
|
7
|
-
pointMenuProps:
|
|
5
|
+
export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: AnyObject, pointMenuProps: AnyObject, commonFunc: AnyObject): {
|
|
6
|
+
pointTipProps: AnyObject;
|
|
7
|
+
pointMenuProps: AnyObject;
|
|
8
8
|
clickMenu: ({ item, target }: {
|
|
9
9
|
item: any;
|
|
10
10
|
target: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{format as n}from"date-fns";function
|
|
1
|
+
import{format as n}from"date-fns";function t(t){const{xScaleList:e,originX:i,endY:l,xCellWidth:r,left:u,vitalSignsOriginY:o,painOriginY:a,canvasWidth:c}=t;return{cumputedX:function(n,t=!1){const i=new Date(n).getTime(),[l]=e,r=e.at(-1);if(i<l.start)return 0;if(i>r.end)return c;const u=e.findIndex((n=>n.end>=i));if(u>-1){return e[u].center}},cumputedY:function(n,e,i){const l=t[`${n}YCell`],r=+i-Math.min(...e);return("pain"===n?a.endY:o.endY)-l*r},getXValue:function(t){const i=e.findIndex((n=>n.left+r>=t));if(i>-1){const l=e[i],r=t-l.left,u=l.scaleCell*r,o=l.start+u;return n(new Date(o),"yyyy-MM-dd HH:mm")}},getYValue:function(n,e){var i;const l=t[`${n}YCell`],r=(null==(i=u.yScaleValue.find((t=>t.type===n)))?void 0:i.list)||[],c=r.length?Math.min(...r):0,d=(("pain"===n?a.endY:o.endY)-e)/l+c,f=Math.floor(100*d)/100,s=f.toString().split(".");return!(null==s?void 0:s[1])||+s[1]<99?f:+s[0]+1}}}function e(t){const{xAxis:e,originX:i,originY:l,xCellWidth:r,endY:u,timeXCell:o,startTime:a,scaleValues:c}=t;return{cumputedX:function(n){return(new Date(n).getTime()-a)/o+i},cumputedY:function(n,e,i){const[l]=e;return u-(+i-l)/t[`${n}YCell`]},getXValue:function(t){return n(new Date((t-i)*o+a),"yyyy-MM-dd HH:mm")},getYValue:function(n,e){const i=c.find((t=>n===t.key)),[l]=(null==i?void 0:i.range)||[0],r=(u-e)*t[`${n}YCell`]+l;return Math.floor(100*r)/100}}}export{e as useBirthProcessCumputedPoint,t as useCumputedPoint};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
|
-
export declare function useEvent(element: HTMLCanvasElement |
|
|
4
|
+
export declare function useEvent(element: HTMLCanvasElement | null): void;
|
|
5
5
|
export declare function useCanvasEvent(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any): {
|
|
6
6
|
select: (key: string) => void;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useEventListener as e}from"@vueuse/core";import{fabric as t}from"../utils/index.js";function n(t){e(t.nextSibling,"contextmenu",(e=>(e.preventDefault(),!1)))}function o(e,n,o){const{originY:l,originX:i,endX:s,endY:r,iconsWidth:u,selectionStyle:d,topList:h}=n;function c(n,o){const{left:l,top:i,width:s,height:r}=n,u=new t.Rect({key:o,left:null!=l?l:0,top:null!=i?i:0,width:s,height:r,stroke:"transparent",fill:"transparent",lockMovementX:!0,lockMovementY:!0,transparentCorners:!1,hasControls:!1,...d,strokeWidth:0});return e.value.add(u),u}let f=[];function k(e){p();a(null==f?void 0:f.find((t=>t.key===e)))}function p(){f.forEach((e=>{e.set("strokeWidth",0),e.key.endsWith("All")&&e.sendToBack()}))}function a(t){var n;e.value.discardActiveObject(),!(null==t?void 0:t.key.includes("grid"))&&(null==t||t.bringToFront()),null==t||t.set("strokeWidth",null!=(n=d.strokeWidth)?n:2)}return("boolean"!=typeof(null==d?void 0:d.evented)||(null==d?void 0:d.evented))&&(f=function(){const e=[];e.push(c({left:u,top:l+1,width:i-u,height:r-l-3},"left"));let t=0;return h.forEach(((o,l)=>{l>0&&(t+=n[`${h[l-1].key}Height`]);const r={top:t+1,height:n[`${o.key}Height`]-1};e.push(c({left:u,width:s-u,...r},o.key+"All")),e.push(c({left:u,width:i-u,...r},o.key+"Title")),e.push(c({left:i,width:s-i,...r},o.key))})),e.push(c({left:i,top:l+1,width:s-i,height:r-l-3},"grid")),e.forEach((e=>{e.key.endsWith("All")?(e.sendToBack(),e.on("mouseup",(t=>{const{button:n,pointer:l}=t;if(1==n){const t=e.key.replace("All",""),n=(null==l?void 0:l.x)&&(null==l?void 0:l.x)<=i?t+"Title":t;e.sendToBack(),k(n),o("select",n)}}))):e.on("mousedown",(()=>{p(),a(e),o("select",e.key)}))})),e}()),{select:k}}export{o as useCanvasEvent,n as useEvent};
|
|
1
|
+
import{useEventListener as e}from"@vueuse/core";import{fabric as t}from"../utils/index.js";function n(t){t&&e(t.nextSibling,"contextmenu",(e=>(e.preventDefault(),!1)))}function o(e,n,o){const{originY:l,originX:i,endX:s,endY:r,iconsWidth:u,selectionStyle:d,topList:h}=n;function c(n,o){const{left:l,top:i,width:s,height:r}=n,u=new t.Rect({key:o,left:null!=l?l:0,top:null!=i?i:0,width:s,height:r,stroke:"transparent",fill:"transparent",lockMovementX:!0,lockMovementY:!0,transparentCorners:!1,hasControls:!1,...d,strokeWidth:0});return e.value.add(u),u}let f=[];function k(e){p();a(null==f?void 0:f.find((t=>t.key===e)))}function p(){f.forEach((e=>{e.set("strokeWidth",0),e.key.endsWith("All")&&e.sendToBack()}))}function a(t){var n;e.value.discardActiveObject(),!(null==t?void 0:t.key.includes("grid"))&&(null==t||t.bringToFront()),null==t||t.set("strokeWidth",null!=(n=d.strokeWidth)?n:2)}return("boolean"!=typeof(null==d?void 0:d.evented)||(null==d?void 0:d.evented))&&(f=function(){const e=[];e.push(c({left:u,top:l+1,width:i-u,height:r-l-3},"left"));let t=0;return h.forEach(((o,l)=>{l>0&&(t+=n[`${h[l-1].key}Height`]);const r={top:t+1,height:n[`${o.key}Height`]-1};e.push(c({left:u,width:s-u,...r},o.key+"All")),e.push(c({left:u,width:i-u,...r},o.key+"Title")),e.push(c({left:i,width:s-i,...r},o.key))})),e.push(c({left:i,top:l+1,width:s-i,height:r-l-3},"grid")),e.forEach((e=>{e.key.endsWith("All")?(e.sendToBack(),e.on("mouseup",(t=>{const{button:n,pointer:l}=t;if(1==n){const t=e.key.replace("All",""),n=(null==l?void 0:l.x)&&(null==l?void 0:l.x)<=i?t+"Title":t;e.sendToBack(),k(n),o("select",n)}}))):e.on("mousedown",(()=>{p(),a(e),o("select",e.key)}))})),e}()),{select:k}}export{o as useCanvasEvent,n as useEvent};
|
|
@@ -2,6 +2,6 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
4
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
5
|
-
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits:
|
|
5
|
+
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, setPopup: Function, pointTipProps: AnyObject, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, useCommon: AnyObject): {
|
|
6
6
|
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
|
-
|
|
3
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
4
|
+
export default function useTemperatureChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
|
|
4
5
|
propItems: any;
|
|
5
6
|
redrawPoints: Ref<any>;
|
|
6
7
|
select: Ref<any>;
|
|
@@ -164,6 +164,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
164
164
|
remark?: string | undefined;
|
|
165
165
|
free_entry?: import("..").FormCommonState | undefined;
|
|
166
166
|
initialize_high?: number | undefined;
|
|
167
|
+
bindEventSetting?: {
|
|
168
|
+
[x: string]: unknown;
|
|
169
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
170
|
+
event_field?: string | undefined;
|
|
171
|
+
params?: {
|
|
172
|
+
p_value?: string | undefined;
|
|
173
|
+
p_name: string;
|
|
174
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
175
|
+
}[] | undefined;
|
|
176
|
+
results?: {
|
|
177
|
+
p_value: string;
|
|
178
|
+
p_name: string;
|
|
179
|
+
}[] | undefined;
|
|
180
|
+
}[] | undefined;
|
|
167
181
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
168
182
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
169
183
|
lazyRequest?: boolean | undefined;
|
|
@@ -1861,6 +1875,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1861
1875
|
remark?: string | undefined;
|
|
1862
1876
|
free_entry?: import("..").FormCommonState | undefined;
|
|
1863
1877
|
initialize_high?: number | undefined;
|
|
1878
|
+
bindEventSetting?: {
|
|
1879
|
+
[x: string]: unknown;
|
|
1880
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
1881
|
+
event_field?: string | undefined;
|
|
1882
|
+
params?: {
|
|
1883
|
+
p_value?: string | undefined;
|
|
1884
|
+
p_name: string;
|
|
1885
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
1886
|
+
}[] | undefined;
|
|
1887
|
+
results?: {
|
|
1888
|
+
p_value: string;
|
|
1889
|
+
p_name: string;
|
|
1890
|
+
}[] | undefined;
|
|
1891
|
+
}[] | undefined;
|
|
1864
1892
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
1865
1893
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
1866
1894
|
lazyRequest?: boolean | undefined;
|
|
@@ -3829,6 +3857,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3829
3857
|
observeFormGraph: Record<string, import("@formily/core").GeneralField>;
|
|
3830
3858
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
3831
3859
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
3860
|
+
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
3832
3861
|
formModel: import("@formily/core").Form<{
|
|
3833
3862
|
[x: string]: any;
|
|
3834
3863
|
}>;
|
|
@@ -4502,6 +4531,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4502
4531
|
remark?: string | undefined;
|
|
4503
4532
|
free_entry?: import("..").FormCommonState | undefined;
|
|
4504
4533
|
initialize_high?: number | undefined;
|
|
4534
|
+
bindEventSetting?: {
|
|
4535
|
+
[x: string]: unknown;
|
|
4536
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
4537
|
+
event_field?: string | undefined;
|
|
4538
|
+
params?: {
|
|
4539
|
+
p_value?: string | undefined;
|
|
4540
|
+
p_name: string;
|
|
4541
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
4542
|
+
}[] | undefined;
|
|
4543
|
+
results?: {
|
|
4544
|
+
p_value: string;
|
|
4545
|
+
p_name: string;
|
|
4546
|
+
}[] | undefined;
|
|
4547
|
+
}[] | undefined;
|
|
4505
4548
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
4506
4549
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
4507
4550
|
lazyRequest?: boolean | undefined;
|
|
@@ -6211,6 +6254,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6211
6254
|
remark?: string | undefined;
|
|
6212
6255
|
free_entry?: import("..").FormCommonState | undefined;
|
|
6213
6256
|
initialize_high?: number | undefined;
|
|
6257
|
+
bindEventSetting?: {
|
|
6258
|
+
[x: string]: unknown;
|
|
6259
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
6260
|
+
event_field?: string | undefined;
|
|
6261
|
+
params?: {
|
|
6262
|
+
p_value?: string | undefined;
|
|
6263
|
+
p_name: string;
|
|
6264
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
6265
|
+
}[] | undefined;
|
|
6266
|
+
results?: {
|
|
6267
|
+
p_value: string;
|
|
6268
|
+
p_name: string;
|
|
6269
|
+
}[] | undefined;
|
|
6270
|
+
}[] | undefined;
|
|
6214
6271
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
6215
6272
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
6216
6273
|
lazyRequest?: boolean | undefined;
|
|
@@ -7892,6 +7949,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7892
7949
|
remark?: string | undefined;
|
|
7893
7950
|
free_entry?: import("..").FormCommonState | undefined;
|
|
7894
7951
|
initialize_high?: number | undefined;
|
|
7952
|
+
bindEventSetting?: {
|
|
7953
|
+
[x: string]: unknown;
|
|
7954
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
7955
|
+
event_field?: string | undefined;
|
|
7956
|
+
params?: {
|
|
7957
|
+
p_value?: string | undefined;
|
|
7958
|
+
p_name: string;
|
|
7959
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
7960
|
+
}[] | undefined;
|
|
7961
|
+
results?: {
|
|
7962
|
+
p_value: string;
|
|
7963
|
+
p_name: string;
|
|
7964
|
+
}[] | undefined;
|
|
7965
|
+
}[] | undefined;
|
|
7895
7966
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
7896
7967
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
7897
7968
|
lazyRequest?: boolean | undefined;
|
|
@@ -9771,6 +9842,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9771
9842
|
observeFormGraph: Record<string, import("@formily/core").GeneralField>;
|
|
9772
9843
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
9773
9844
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
9845
|
+
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
9774
9846
|
formModel: import("@formily/core").Form<{
|
|
9775
9847
|
[x: string]: any;
|
|
9776
9848
|
}>;
|