cnhis-design-vue 3.1.41-release.4 → 3.1.41-release.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/field-set/index.d.ts +8 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -0
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +6761 -45
- package/es/components/form-config/src/FormConfig.vue.d.ts +6902 -185
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3414 -59
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +3 -3
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +10 -10
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +6 -6
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +4 -2
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +9 -2
- package/es/components/form-config/src/utils/index.d.ts +4 -1
- package/es/components/form-config/src/utils/index.js +1 -1
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +2 -2
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +22 -21
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +0 -12
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -6
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormField.d.ts +1 -0
- package/es/components/form-render/src/hooks/useFormField.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +4 -0
- package/es/components/form-render/src/types/index.d.ts +5 -3
- package/es/components/form-render/src/utils/dom.d.ts +2 -1
- package/es/components/form-render/src/utils/dom.js +1 -1
- package/es/components/iho-table/index.d.ts +5 -5
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +5 -5
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/iho-table/src/plugins/{filterPlugin → filterRenderPlugin}/filter.vue.d.ts +15 -74
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +85 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{timeRendererPlugin.d.ts → timeRendererPlugin/index.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +20 -11
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +289 -155
- package/es/components/info-header/src/InfoHeader.vue.d.ts +293 -160
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/index.d.ts +3 -0
- package/es/components/info-header/src/components/index.js +1 -0
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +266 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +38 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -0
- package/es/components/info-header/src/types/index.d.ts +29 -0
- package/es/components/recommend-search/index.d.ts +10 -10
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +10 -10
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -4
- package/es/components/scale-view/index.d.ts +1 -2
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -2
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/utils/judge-types.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +3 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +3 -2
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-filter/index.d.ts +902 -7615
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +44 -3313
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +461 -2810
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -42
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +20 -7
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +456 -0
- package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -0
- package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +843 -0
- package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -0
- package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -0
- package/es/components/table-filter/src/hooks/export.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +51 -1190
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +4 -14
- package/es/components/table-filter/style/index.css +1 -1
- package/es/env.d.ts +24 -24
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/components/no-data/NoData.vue.d.ts +5 -0
- package/es/shared/components/no-data/NoData.vue.js +1 -1
- package/es/shared/utils/index.d.ts +16 -0
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +64 -64
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -1
- package/es/components/info-header/src/HiddenContent.vue.js +0 -1
- package/es/components/info-header/src/InfoEllipsis.vue.js +0 -1
- package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +0 -90
- package/es/components/table-filter/src/classification/search-class-name.vue.js +0 -1
- package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +0 -1469
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
- package/es/components/table-filter/src/components/age-com/index.vue.d.ts +0 -119
- package/es/components/table-filter/src/components/age-com/index.vue.js +0 -1
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +0 -199
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +0 -2
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +0 -1
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +0 -90
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +0 -113
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +0 -266
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
- package/es/components/table-filter/src/components/range-age/index.vue.d.ts +0 -248
- package/es/components/table-filter/src/components/range-age/index.vue.js +0 -1
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +0 -789
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +0 -18
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +0 -1
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +0 -1244
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.d.ts +0 -1651
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
- package/es/components/table-filter/src/const/dataOptions.d.ts +0 -36
- package/es/components/table-filter/src/const/dataOptions.js +0 -1
- package/es/components/table-filter/src/directive/preventReClick.d.ts +0 -4
- package/es/components/table-filter/src/directive/preventReClick.js +0 -1
- package/es/components/info-header/src/{HiddenContent.vue.d.ts → components/infoDescription/HiddenContent.vue.d.ts} +2 -2
- package/es/components/info-header/src/{InfoEllipsis.vue.d.ts → components/infoDescription/InfoEllipsis.vue.d.ts} +1 -1
- /package/es/components/{iho-table/src/plugins/filterPlugin/types.js → info-header/src/types/index.js} +0 -0
- /package/es/components/table-filter/src/components/table-modal/{TableModal.vue.d.ts → index.vue.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as o,openBlock as a,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f,renderSlot as u}from"vue";import{useMessage as p,NButton as v}from"naive-ui";import C from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import y from"../../hooks/useMixins.js";import h from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=h(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:h}){const b=e,A=p(),{handleGetConfigApi:L}=y();let I=i(b.conditionList),T=i(),S=i(!1),_=i({}),F=i([]),j=i(!1);const O=i(null),x=t();async function k(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await L(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(h("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}function w(){E(!1),I.value.forEach((e=>{e.checked=!1}))}function G(){S.value=!0}function M(e,i){S.value=!0,_.value=Object.assign(e,{from:"edit"})}function q(e,i){S.value=!0,_.value=Object.assign(e,{from:"copy"})}async function H(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(I.value)}),j.value=!0,!await L(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O&&O.value.cancelSaveAdd(),h("saveGetTableCondiTionList"),S.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){S.value=!1,_.value={}}function $(e,i){I.value=e,T.value=i}async function D(e,i){if(e)try{let i={id:e.sid};if(!await L(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;A.success("删除成功"),h("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else A.info("请选择行")}function E(e){h("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await L(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(h("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return o((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),o((()=>b.searchFieldList),(e=>{e&&e.length>0&&(F.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>S),(e=>{e||(_.value={})})),(i,t)=>(a(),l("div",m,[s(C,r({dataSource:c(I),visibleIn:c(N)},i.$attrs,{onHandleOk:k,onClose:w,onChangeData:$,onResetPopconfirm:K,edit:M,copy:q,delItem:D,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(v),{type:"info",onClick:G},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),u(i.$slots,"searchCondition",{attrs:{...i.$attrs,visible:c(S),loading:c(j),conditionList:c(I),actionList_prop:c(_),searchFieldList:e.searchFieldList,isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,saveAdd:H,cancelSaveAdd:R},ref_key:"searchFilter",ref:O},(()=>[s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(S),loading:c(j),conditionList:c(I),actionList_prop:c(_),searchFieldList:c(F),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:H,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))]))}}),[["__file","index.vue"]]);export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as a,watch as n,openBlock as o,createBlock as s,unref as r,normalizeClass as u,withCtx as c,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as S,NModal as _,NCard as z,NTooltip as D,NIcon as I,NSwitch as E,NPopconfirm as M,NButton as P}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as j}from"../../const/index.js";import B from"axios";import A from"../../../../../_virtual/plugin-vue_export-helper.js";const H={class:"svg-wrap"},R={class:"flex_between"},$={key:0},J={class:"table-modal-list"},T={class:"list-title"},Y=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),q=v("span",{class:"list-title-item"}," 名称 ",-1),G=v("span",{class:"list-title-item"}," 父类名称 ",-1),K=v("span",{class:"list-title-item"}," 是否显示 ",-1),L=v("span",{class:"list-title-item"}," 设置为默认 ",-1),Q={class:"list-title-item"},W=v("span",{class:"list-title-item"}," 操作 ",-1),X=["onClick"],Z={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},ee=["title"],te=["title"],ie={class:"list-content-item list-content-switch"},le={class:"list-content-item list-content-radio"},ae={class:"list-content-item"},ne={class:"list-content-item"},oe={key:0},se=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),re={key:1},ue=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ce=A(e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>{}},copy:{type:Function,defdault:()=>{}},delItem:{type:Function,defdault:()=>{}},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:A}){const ce=e,de=B.create({}),pe=t(),me=b(),ve=S(),he=i((()=>(null==pe?void 0:pe.isOrgAdmin)||!1)),fe=l(ce.dataSource),ge=l(ce.visibleIn),ye=l(!1),Ce=l("other"==ce.type?"100%":"860px"),we=l("654px"),ke=a(j);function xe(){ce.type&&(_e(),A("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(fe.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return fe.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ce.type)))}function be(){Se()}function Se(){ge.value=!1,_e(),A("close")}function _e(){Ce.value="860px",we.value="654px",ye.value=!1}function ze(){A("changeData",fe.value)}function De(){ye.value=!ye.value;let e=document.body.clientHeight;Ce.value="860px"===Ce.value?"100%":"860px",we.value="654px"===we.value?`${e}px`:"654px"}function Ie(e){A("resetPopconfirm",e)}function Ee(e,t,i){const l=ce[e];l&&l(t,i)}return n((()=>ce.visibleIn),(e=>{ge.value=e})),n((()=>ce.dataSource),(e=>{fe.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(_),{show:ge.value,bodyStyle:{height:we.value,overflowY:"auto"},width:Ce.value,maskClosable:!1,class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":ye.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:xe,onNegativeClick:Se},{default:c((()=>[d(r(z),{style:p({width:Ce.value,height:we.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",H,[d(r(O),{onClick:De,"icon-class":ye.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),d(r(O),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:Se})])])),default:c((()=>[r(he)&&"mananger"==e.type?(o(),h("p",$,[v("span",{onClick:be}," 添加首页 ")])):f("v-if",!0),v("div",J,[v("div",T,[Y,q,G,K,L,g(v("span",Q," 设置公共首页 ",512),[[y,r(he)&&"mananger"==e.type]]),W]),d(r(F),{class:"list-content",tag:"ul",list:fe.value,"item-key":"sid",onEnd:ze,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,fe.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void A("changeData",fe.value,i);var i}},[v("span",Z,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(I),{component:r(U),size:"24"},null,8,["component"])])),default:c((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,ee),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,te),v("span",ie,[d(r(E),{"onUpdate:value":e=>{return i=t,void fe.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",le,[d(r(E),{"onUpdate:value":e=>{var i;(i=t).isShow&&fe.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",ae,[d(r(E),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}ve.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};de({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(me.success(t.data.resultMsg),e.isCommon=!e.isCommon,A("finishSubmit")):me.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>{}})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(he)&&"mananger"==e.type]]),v("span",ne,["mananger"==e.type&&r(he)?(o(),h("span",oe,[d(r(M),{onPositiveClick:e=>Ee("confirm",t)},{trigger:c((()=>[d(r(I),null,{default:c((()=>[se])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(I),{component:r(N),onClick:k((e=>Ee("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(he)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(I),{component:r(V),onClick:k((e=>Ee("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",re,[d(r(M),{onPositiveClick:e=>Ee("delItem",t,"删除")},{trigger:c((()=>[d(r(I),null,{default:c((()=>[ue])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,X),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[v("div",R,[v("div",null,[r(ke)?(o(),s(r(M),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:Ie},{trigger:c((()=>[d(r(P),null,{default:c((()=>[C("恢复默认设置")])),_:1})])),default:c((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),v("div",null,[d(r(P),{onClick:Se},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(P),{type:"info",onClick:xe},{default:c((()=>[C("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","index.vue"]]);export{ce as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import"./useAdvanced.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IApiServerType } from '../../../../../es/components/table-filter/src/types';
|
|
2
|
-
export
|
|
2
|
+
export default function useAdvanced(): {
|
|
3
3
|
transformData: (advancedFilterData: IApiServerType[]) => {
|
|
4
4
|
fieldType: string;
|
|
5
5
|
columnName: string;
|
|
@@ -22,7 +22,7 @@ export declare function useAdvanced(): {
|
|
|
22
22
|
filterExplicit: number;
|
|
23
23
|
explicitRequired: number;
|
|
24
24
|
advanceOptionSetting: string;
|
|
25
|
-
placeholder: string;
|
|
25
|
+
placeholder: string | undefined;
|
|
26
26
|
advanceColWidth: string;
|
|
27
27
|
}[];
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetOptionEnums as t,WidgetTypeEnums as
|
|
1
|
+
import{WidgetOptionEnums as t,WidgetTypeEnums as e}from"../types/enums.js";const i={[t.RADIO]:"0",[t.MULTIPLE]:"1",[t.ALL]:"0",[t.SELECT_TIME]:"1",[t.PAST_TIME]:"2",[t.FUTURE_TIME]:"3"};function l(){return{transformData:function(l){return l.map((l=>{var n,a;const{optionInfo:o={list:[]},type:u,defaultValue:r,optionType:d,filterExplicit:p}=l,s={},T={title:(c=l).title,alias:c.customTitle,isShowSearch:c.isShowSearch?1:0,filterExplicit:c.filterExplicit?1:0,explicitRequired:c.explicitRequired?1:0,advanceOptionSetting:c.optionType?i[c.optionType]:"",placeholder:c.remark,advanceColWidth:String(c.width)};var c;let v,E,f=u;p?(v=u===e.SELECT&&d===t.MULTIPLE?null==r?void 0:r.valueList:null==(n=null==r?void 0:r.valueList)?void 0:n[0],E=null==r?void 0:r.unit):u===e.SELECT&&(null==o?void 0:o.list)&&(null==o?void 0:o.list.length)<10&&(f="CHECKBOX_GROUP");const L={isRender:!0,widgetType:f,valueList:null==(a=null==o?void 0:o.list)?void 0:a.map((({name:t,value:e})=>({value:e,label:t}))),defaultValue:v,defValueUnit:E,multiple:d===t.MULTIPLE};return{...T,fieldType:l.dataType,columnName:l.name,settingObj:s,setting:JSON.stringify(s),widgetCfg:L}}))}}}export{l as default};
|
|
@@ -54,7 +54,7 @@ export default function (): {
|
|
|
54
54
|
};
|
|
55
55
|
outQuickSearchFn: {
|
|
56
56
|
handleRequestedLabel(v: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
57
|
-
handlerInitSearchItem(arr: ISearchType[]
|
|
57
|
+
handlerInitSearchItem(arr: ISearchType[]): void;
|
|
58
58
|
handleSetLabelOptions(labelType: any, el: ISearchType): void;
|
|
59
59
|
getConObj(arr: any): any;
|
|
60
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as e}from"vue";import
|
|
1
|
+
import{ref as e}from"vue";import r from"moment";import t from"./useRenderWidget.js";import a from"axios";import o from"xe-utils";const{initRenderWidgetCfg:n,getRenderSearchConObj:l}=t();function i(){const t=e({});return{filterApiConfig:t,handleGetConfigApi:async function(e,r,a={},o){try{o&&(t.value=o);const n=t.value[r]||null;if("function"==typeof n){const r=await n(e,a);return Promise.resolve(r)}return Promise.reject(new Error(`${r} Is not a function`))}catch(e){return Promise.reject(e)}},$utils:{getBtnStyle:e=>"white_bg"==e.showStyle?{"border-color":e.color,color:e.color}:"none_bg"==e.showStyle?{color:e.color}:(e.showStyle,{"background-color":e.color,"border-color":e.color}),getRowOperatorIdSetting(e={},r){if(e.operatorColumn){const t=e.operatorColumn.find((e=>e.includes(r.sid)));if(r.setting&&"string"==typeof t&&t.includes("###")){const[e,a]=t.split("###");if(e&&a){const e=JSON.parse(r.setting);if(Array.isArray(e)){const t=e.find((e=>e.obj_id==a));if(t){const e=JSON.parse(JSON.stringify(r));return e.settingObj={...t},e.setting=JSON.stringify(t),e}}}}}const t=JSON.parse(JSON.stringify(r));if(this.isJSON(t.setting)){const e=JSON.parse(t.setting);if(Array.isArray(e)){const r=e[0]||{};return t.settingObj={...r},t.setting=JSON.stringify(r),t}return t}return r},getAlphafloat(e,r){if(void 0!==e)return parseFloat((e/256).toFixed(2));if(void 0!==r){if(1<r&&r<=100)return parseFloat((r/100).toFixed(2));if(0<=r&&r<=1)return parseFloat(r.toFixed(2))}return 1},hexToRGBA(e,r){if(!/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e))return console.log("Invalid HEX"),"";const t=Math.floor((e.length-1)/3),a=(o=e.slice(1),n=t,o.match(new RegExp(`.{${n}}`,"g")));var o,n;const[l,i,s,u]=a.map((e=>parseInt(e.repeat(2/e.length),16)));return{r:l,g:i,b:s,a:this.getAlphafloat(u,r)}},handleLabelColor(e,r){var t;let a="#5585f5";const o={blue:"#0000ff",sky:"#87ceeb",azure:"#f0ffff",palegreen:"#98fb98",yellow:"#ffff00",darkorange:"#ff8c00",magenta:"#ff00ff",purple:"#800080",maroon:"#800000",orange:"#ffa500",green:"#008000",red:"#ff0000",grey:"#808080"};if(null==(t=null==e?void 0:e.color)?void 0:t.includes("-")){a=o[e.color.split("-")[1]]||"#5585f5"}else a=e.color||"#5585f5";const n=this.hexToRGBA(a)||{r:85,g:133,b:245,a:1};if(r)return{color:"#fff",background:`rgba(${n.r}, ${n.g}, ${n.b})`,borderColor:`rgba(${n.r}, ${n.g}, ${n.b})`};if(e.isSelect)return{color:"#fff",background:`rgba(${n.r}, ${n.g}, ${n.b})`,borderColor:`rgba(${n.r}, ${n.g}, ${n.b})`};return{color:!(e.isPublic&&1==e.isPublic)?"rgba(28, 28, 28, 1)":"rgba(33, 33, 33, 0.6)",background:"rgba(250, 250, 250, 1)",borderColor:"rgba(213, 213, 213, 0.8)"}},formatTime(e,t){let a="";if(!t)return"";switch(e){case"DATE":a="yyyy-MM-dd";break;case"DATETIME":a="yyyy-MM-dd HH:mm:ss";break;case"TIME":a="HH:mm:ss";break;case"MOUTH":a="MM-dd";break;case"DATETIMESTR":a="yyyy年M月dd日 HH:mm";break;case"MOUTHTIME":a="M月d日 HH:mm";break;case"HM":a=" HH:mm"}return r(t).format(a)},isJSON(e){if("string"==typeof e)try{const r=JSON.parse(e);return!("object"!=typeof r||!r)}catch(e){return!1}return!1},isArray:e=>Array.isArray(e),isEmpty(e){for(const r in e)return!1;return!0},isString:e=>"string"==typeof e,isPlainObject:e=>"object"==typeof e},outQuickSearchFn:{handleRequestedLabel(e){const r={type:e,pageSize:1e4};return a.get("/label/list",{params:r})},handlerInitSearchItem(e){Array.isArray(e)&&e.forEach((e=>{n(e)}))},handleSetLabelOptions(e,r){this.handleRequestedLabel(e||"").then((({data:e})=>{if("SUCCESS"===e.result){const t=e.map.rows||[];r.labelList=t}})).catch((e=>console.log(e)))},getConObj(e){if(!Array.isArray(e))return[];const r=[];e.forEach((e=>{var t,a,n;const i=l(e);if(i)return void r.push(i);const s={field_key:e.columnName,con:e.con,value:"",limit_date:"",start_val:e.start_val||"",end_val:e.end_val||"",unit:e.unit||"",id:e.id};"Text"===e.com&&e.value&&(s.value=e.value,r.push(s));const u=e.advanceOptionSetting;if("SelectMui"===e.com&&o.anyNotEmpty(e.value)){"0"===String(u)&&(Array.isArray(e.value)||(e.value=[e.value]));const t=Array.isArray(e.value)&&e.value.length>0;if("SelectMuiWordBook"==e.comType&&t)s.value=e.value.join("|#|");else if("treeSelect"==e.comType){let r=e.value;"string"==typeof r?[r]=r.split("<&=&>"):Array.isArray(r)&&(r=r.map((e=>{const[r]="string"==typeof e?e.split("<&=&>"):[];return r})),r=r.join("|#|")),s.value=r}else if(t)if("CONVERT"==e.con){let r=[];r=e.value.map((r=>e.labelList[r].filter)),s.value=r}else{let r=[];r=e.value.map((r=>e.labelList[r].labelName)),s.value=r.join("|#|")}r.push(s)}if("DatePicker"===e.com&&e.value.length){const t=e.value[0].format(e.showFormat),a=e.value[1].format(e.showFormat);"BIRTHDAY"===e.settingObj.attr?s.limit_date=`${t}~${a}`:(s.start_val=t,s.end_val=a),r.push(s)}if("DayPicker"===e.com&&e.value){const t=e.value.startOf("day").format("YYYY-MM-DD HH:mm:ss"),a=e.value.endOf("day").format("YYYY-MM-DD HH:mm:ss");"BIRTHDAY"===e.settingObj.attr?s.limit_date=`${t}~${a}`:(s.start_val=t,s.end_val=a),r.push(s)}if(e.AGEAttr){s.value="",s.con="IN";const t=365*Number(e.lessValue),a=365*Number(e.bigValue);(t||0===t)&&a&&(s.start_val=t,s.end_val=a,r.push(JSON.parse(JSON.stringify(s))))}else if("Number"===e.com){let o=null!=(t=e.lessValue)?t:"",l=null!=(a=e.bigValue)?a:"";(o||l)&&("PERCENTAGE"===(null==(n=e.settingObj)?void 0:n.attr)&&(o=(o||0===o)&&Number(o)/100||"",l=(l||0===l)&&Number(l)/100),s.value=`${o}~${l}`),s.con="EQ",r.push(JSON.parse(JSON.stringify(s)))}"SelectQuote"===e.com&&e.value.length&&(s.value=e.value.join("|#|"),r.push(s))}));return r.filter((e=>e.value||e.limit_date||e.start_val||e.end_val))}}}}export{i as default};
|