cnhis-design-vue 3.1.41-release.3 → 3.1.41-release.5
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/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/form-config/index.d.ts +7 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +7 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -0
- package/es/components/form-render/index.d.ts +1 -1
- 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 +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/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/types/fieldItem.d.ts +4 -0
- package/es/components/form-render/src/types/index.d.ts +1 -1
- 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 +3 -3
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +3 -3
- 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/rendererPlugins/widgets/colorRendererPlugin.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- 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/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +2 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -1
- 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 +905 -7553
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +42 -3315
- 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 +456 -2790
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/components/button-group/ButtonGroup.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 +18 -5
- 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/{search-modal/set-classification.vue.d.ts → set-classification/index.vue.d.ts} +21 -813
- 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/const/dataOptions.d.ts +1 -25
- package/es/components/table-filter/src/const/dataOptions.js +1 -1
- 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 +48 -1137
- 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/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/package.json +1 -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 -1472
- 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.js +0 -1
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
- 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.js +0 -1
- 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.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.js +0 -1
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
- /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 a,watch as n,openBlock as o,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 g from"../table-modal/index.vue.js";import C from"../search-filter/index.vue.js";import h from"../../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,searchDefName:{type:String,default:"全部数据"},filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["changeSearch","CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,A=p(),{handleGetConfigApi:L}=h();let I=i(b.conditionList),S=i(),T=i("全部数据"),_=i(!1),F=i({}),j=i([]),O=i(!1);const x=i(null),k=t();async function w(e){try{let i=Object.assign(e,{id:b.settingId,tableId:k.tableId});await L(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}function D(){E(!1),I.value.forEach((e=>{e.checked=!1}))}function G(){_.value=!0}function M(e,i){_.value=!0,F.value=Object.assign(e,{from:"edit"})}function N(e,i){_.value=!0,F.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:k.tableId,conditionList:JSON.stringify(I.value)}),O.value=!0,!await L(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;x&&x.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),_.value=!1}catch(e){console.log(e)}finally{O.value=!1}}function H(){_.value=!1,F.value={}}function R(e,i){I.value=e,S.value=i}async function $(e,i){if(e)try{let i={id:e.sid};if(!await L(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;A.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else A.info("请选择行")}function E(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:k.tableId,type:"SEARCH_CATEGORY"};await L(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}let B=a((()=>b.classifyModal));return n((()=>b.searchDefName),(()=>{T.value=b.searchDefName||"全部数据"})),n((()=>k.searchKey),(()=>{k.selectKeys=[k.searchKey||"all"]})),n((()=>b.searchFieldList),(e=>{e&&e.length>0&&(j.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),n((()=>_),(e=>{e||(F.value={})})),(i,t)=>(o(),l("div",m,[s(g,r({dataSource:c(I),visibleIn:c(B)},i.$attrs,{onHandleOk:w,onClose:D,onChangeData:R,onResetPopconfirm:K,edit:M,copy:N,delItem:$,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(_),loading:c(O),conditionList:c(I),actionList_prop:c(F),searchFieldList:e.searchFieldList,isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,saveAdd:q,cancelSaveAdd:H},ref_key:"searchFilter",ref:x},(()=>[s(C,r({ref_key:"searchFilter",ref:x},i.$attrs,{visible:c(_),loading:c(O),conditionList:c(I),actionList_prop:c(F),searchFieldList:c(j),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:H}),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 n,watch as a,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={key:0},$={class:"list"},J={class:"list-title"},T=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),Y=v("span",{class:"list-title-item"}," 名称 ",-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={class:"list-title-item"},Q=v("span",{class:"list-title-item"}," 操作 ",-1),W=["onClick"],X={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},Z=["title"],ee=["title"],te={class:"list-content-item list-content-switch"},ie={class:"list-content-item list-content-radio"},le={class:"list-content-item"},ne={class:"list-content-item"},ae={key:0},oe=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),se={key:1},re=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 ue=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 ue=e,ce=B.create({}),de=t(),pe=b(),me=S(),ve=i((()=>(null==de?void 0:de.isOrgAdmin)||!1)),he=l(ue.dataSource),fe=l(ue.visibleIn),ge=l(!1),ye=l("other"==ue.type?"100%":"860px"),Ce=l("654px"),we=n(j);function ke(){ue.type&&(Se(),A("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(he.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return he.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}(ue.type)))}function xe(){be()}function be(){fe.value=!1,Se(),A("close")}function Se(){ye.value="860px",Ce.value="654px",ge.value=!1}function _e(){A("changeData",he.value)}function ze(){ge.value=!ge.value;let e=document.body.clientHeight;ye.value="860px"===ye.value?"100%":"860px",Ce.value="654px"===Ce.value?`${e}px`:"654px"}function De(e){A("resetPopconfirm",e)}function Ie(e,t,i){const l=ue[e];l&&l(t,i)}return a((()=>ue.visibleIn),(e=>{fe.value=e})),a((()=>ue.dataSource),(e=>{he.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(_),{show:fe.value,bodyStyle:{height:Ce.value,overflowY:"auto"},width:ye.value,maskClosable:!1,class:u(["classification-set-modal-wrap-block standard-modal standard-modal-white",{"modal-screen":ge.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:ke,onNegativeClick:be},{default:c((()=>[d(r(z),{style:p({width:ye.value,height:Ce.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",H,[d(r(O),{onClick:ze,"icon-class":ge.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),d(r(O),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:be})])])),default:c((()=>[r(ve)&&"mananger"==e.type?(o(),h("p",R,[f(' <n-icon type="plus-circle" /> '),v("a",{onClick:xe}," 添加首页 ")])):f("v-if",!0),v("div",$,[v("div",J,[T,Y,q,G,K,g(v("span",L," 设置公共首页 ",512),[[y,r(ve)&&"mananger"==e.type]]),Q]),d(r(F),{class:"list-content",tag:"ul",list:he.value,"item-key":"sid",onEnd:_e,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,he.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void A("changeData",he.value,i);var i}},[v("span",X,[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,Z),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,ee),v("span",te,[d(r(E),{"onUpdate:value":e=>{return i=t,void he.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",ie,[d(r(E),{"onUpdate:value":e=>{var i;(i=t).isShow&&he.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",le,[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}me.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};ce({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(pe.success(t.data.resultMsg),e.isCommon=!e.isCommon,A("finishSubmit")):pe.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>{}})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(ve)&&"mananger"==e.type]]),v("span",ne,["mananger"==e.type&&r(ve)?(o(),h("span",ae,[d(r(M),{onPositiveClick:e=>Ie("confirm",t)},{trigger:c((()=>[d(r(I),null,{default:c((()=>[oe])),_: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=>Ie("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(ve)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(I),{component:r(V),onClick:k((e=>Ie("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",se,[d(r(M),{onPositiveClick:e=>Ie("delItem",t,"删除")},{trigger:c((()=>[d(r(I),null,{default:c((()=>[re])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,W),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[v("div",null,[r(we)?(o(),s(r(M),{key:0,class:"btn-reset","positive-text":"确认","negative-text":"取消",onPositiveClick:De},{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:be},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(P),{type:"info",onClick:ke},{default:c((()=>[C("保存")])),_:1})])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","index.vue"]]);export{ue as default};
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
declare const DATETEAM0: {
|
|
2
|
-
con: string;
|
|
3
|
-
title: string;
|
|
4
|
-
name: string;
|
|
5
|
-
}[];
|
|
6
|
-
declare const DATETEAM2: {
|
|
7
|
-
con: string;
|
|
8
|
-
title: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}[];
|
|
11
|
-
declare const DATETEAM3: {
|
|
12
|
-
con: string;
|
|
13
|
-
title: string;
|
|
14
|
-
name: string;
|
|
15
|
-
}[];
|
|
16
|
-
declare const EVALUATEList1: {
|
|
17
|
-
label: string;
|
|
18
|
-
value: string;
|
|
19
|
-
isSelect: boolean;
|
|
20
|
-
}[];
|
|
21
|
-
declare const AGEOPTIONS: {
|
|
22
|
-
label: string;
|
|
23
|
-
value: string;
|
|
24
|
-
}[];
|
|
25
1
|
declare const TEAMS: {
|
|
26
2
|
con: string;
|
|
27
3
|
title: string;
|
|
@@ -33,4 +9,4 @@ declare const DAYUNITS: {
|
|
|
33
9
|
con: string;
|
|
34
10
|
name: string;
|
|
35
11
|
}[];
|
|
36
|
-
export {
|
|
12
|
+
export { TEAMS, DAYUNITS };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t=[{con:"TODAY",title:"1.1.4.37",name:"今天"},{con:"TOMORROW",title:"1.1.4.38",name:"明天"},{con:"YESTERDAY",title:"1.1.4.39",name:"昨天"},{con:"THIS_WEEK",title:"1.1.4.40",name:"本周"},{con:"NEXT_WEEK",title:"1.1.4.41",name:"下周"},{con:"LAST_WEEK",title:"1.1.4.42",name:"上周"},{con:"THIS_MONTH",title:"1.1.4.43",name:"本月"},{con:"NEXT_MONTH",title:"1.1.4.44",name:"下月"},{con:"LAST_MONTH",title:"1.1.4.45",name:"上月"},{con:"THIS_SEASON",title:"1.1.4.46",name:"本季度"},{con:"NEXT_SEASON",title:"1.1.4.47",name:"下季度"},{con:"LAST_SEASON",title:"1.1.4.48",name:"上季度"},{con:"THIS_YEAR",title:"1.1.4.49",name:"本年"},{con:"NEXT_YEAR",title:"1.1.4.50",name:"下年"},{con:"LAST_YEAR",title:"1.1.4.51",name:"上年"}],n=[{title:"1.2.5.58",units:1,con:"DAY",name:"天"},{title:"1.2.5.59",units:2,con:"WEEK",name:"周"},{title:"1.2.1.11.18",units:1,con:"MONTH",name:"月"},{title:"1.9.273",units:1,con:"YEAR",name:"岁"}];export{n as DAYUNITS,t as TEAMS};
|
|
@@ -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"./useTableSearchCon.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};
|