cnhis-design-vue 3.1.41-release.4 → 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/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/fabric-chart/src/utils/index.d.ts +6823 -0
- 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/ScaleView.vue.d.ts +3 -0
- 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/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 -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 +456 -2787
- 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 +47 -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/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/utils/tapable/index.d.ts +139 -0
- package/package.json +64 -64
- 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.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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as t,onBeforeUnmount as i,watch as l,openBlock as o,createBlock as n,unref as s,normalizeClass as u,withCtx as d,createVNode as c,normalizeStyle as r,createElementVNode as v,createTextVNode as p,mergeProps as f,createElementBlock as h,Fragment as m,createCommentVNode as g}from"vue";import{NModal as y,NCard as b,NButton as x}from"naive-ui";import{DataTypeEnums as S}from"../../types/enums.js";import A from"../search-condition/SearchCondition.vue.js";import L from"../classify-filter/index.vue.js";import k from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import w from"../../../../../_virtual/plugin-vue_export-helper.js";const C={class:"svg-wrap"};var _=w(e({__name:"SearchFilter",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},tableDataType:{type:String,default:""},filterApiConfig:{type:Object,default:()=>({})}},emits:["cancelSaveAdd"],setup(e,{expose:w,emit:_}){const T=e,I=a(T.visible),j=a(!1),F=a("860px");let D=a({maxHeight:"496px",height:"496px",overflowY:"auto"}),H=a(null),P=a(null),Q=null;const $=t((()=>T.tableDataType===S.API));function z(){R(),Q=setTimeout((()=>{!function(){switch(T.tableDataType){case S.API:H&&H.value.handleInitConditions();break;case S.SQL:P&&P.value.handleInitConditions()}}()}),30)}function R(){Q&&clearTimeout(Q)}function Y(){switch(T.tableDataType){case S.API:H&&H.value.saveAdd();break;case S.SQL:P&&P.value.saveAdd()}}function q(){I.value=!1,_("cancelSaveAdd"),F.value="860px",D.value={height:"496px",maxHeight:"496px",overflowY:"auto"},j.value=!1,function(){switch(T.tableDataType){case S.API:H&&H.value.cancelSaveAdd();break;case S.SQL:P&&P.value.cancelSaveAdd()}}()}function B(){j.value=!j.value;let e=document.body.clientHeight;"860px"===F.value?(F.value="100%",D.value.maxHeight=`${e}px`,D.value.height=`${e}px`):(F.value="860px",D.value.maxHeight="496px",D.value.height="")}return i((()=>{R()})),l((()=>T.visible),(e=>{I.value=e,e&&z()})),w({cancelSaveAdd:q}),(a,t)=>(o(),n(s(y),{show:I.value,"onUpdate:show":t[0]||(t[0]=e=>I.value=e),maskClosable:!1,width:F.value,bodyStyle:s(D),class:u(["search-filter-modal-wrap standard-modal standard-modal-white",{"modal-screen":j.value}]),closable:!1,centered:"",onPositiveClick:Y,onNegativeClick:q},{default:d((()=>[c(s(b),{style:r({width:F.value,...s(D)}),title:T.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[v("div",C,[c(s(k),{onClick:B,"icon-class":j.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),c(s(k),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:q})])])),footer:d((()=>[c(s(x),{onClick:q},{default:d((()=>[p("取消")])),_:1}),c(s(x),{type:"info",onClick:Y},{default:d((()=>[p("保存")])),_:1})])),default:d((()=>[s($)?(o(),n(L,f({key:0},a.$attrs,{ref_key:"conditionApiRef",ref:H,conditionList:T.conditionList}),null,16,["conditionList"])):(o(),h(m,{key:1},[g(" SQL筛选分类弹窗主体内容 "),c(A,f(a.$attrs,{ref_key:"conditionSqlRef",ref:P,conditionList:T.conditionList,searchFieldList:T.searchFieldList,filterApiConfig:e.filterApiConfig}),null,16,["conditionList","searchFieldList","filterApiConfig"])],2112))])),_:1},8,["style","title"])])),_:1},8,["show","width","bodyStyle","class"]))}}),[["__file","SearchFilter.vue"]]);export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
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 f,createTextVNode as d,renderSlot as u,createCommentVNode as p}from"vue";import{useMessage as v,NButton as g}from"naive-ui";import C from"../table-modal/TableModal.vue.js";import y from"../search-filter/SearchFilter.vue.js";import h from"../../hooks/useMixins.js";import{DataTypeEnums as m}from"../../types/enums.js";import b from"../../../../../_virtual/plugin-vue_export-helper.js";const A={class:"search"};var L=b(e({__name:"set-classification",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:b}){const L=e,T=v(),{handleGetConfigApi:I}=h();let S=i(L.conditionList),_=i(),F=i("全部数据"),j=i(!1),D=i({}),O=i([]),k=i(!1);const w=i(null),M=t();async function q(e){try{let i=Object.assign(e,{id:L.settingId,tableId:M.tableId});await I(i,"requestSaveTableCondiTionSetting",{},L.filterApiConfig)&&(b("CondiTionListInit"),P(!1))}catch(e){console.log(e)}}function G(){P(!1),S.value.forEach((e=>{e.checked=!1}))}function N(){j.value=!0}function H(e,i){j.value=!0,D.value=Object.assign(e,{from:"edit"})}function R(e,i){j.value=!0,D.value=Object.assign(e,{from:"copy"})}async function $(e){try{if(Object.assign(e,{tableId:M.tableId,conditionList:JSON.stringify(S.value)}),k.value=!0,!await I(e,"requestSaveTableCondiTion",{},L.filterApiConfig))return;w&&w.value.cancelSaveAdd(),b("saveGetTableCondiTionList"),j.value=!1}catch(e){console.log(e)}finally{k.value=!1}}function x(){j.value=!1,D.value={}}function E(e,i){S.value=e,_.value=i}async function K(e,i){if(e)try{let i={id:e.sid};if(!await I(i,"requestDeleteTableCondiTion",{},L.filterApiConfig))return;T.success("删除成功"),b("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else T.info("请选择行")}function P(e){b("setClassifyModal",e)}async function B(){try{let e={id:L.settingId,tableId:M.tableId,type:"SEARCH_CATEGORY"};await I(e,"requestResetDefaultSetting",{},L.filterApiConfig)&&(b("CondiTionListInit"),P(!1))}catch(e){console.log(e)}}let J=a((()=>L.classifyModal));return n((()=>L.searchDefName),(()=>{F.value=L.searchDefName||"全部数据"})),n((()=>M.searchKey),(()=>{M.selectKeys=[M.searchKey||"all"]})),n((()=>L.searchFieldList),(e=>{e&&e.length>0&&(O.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),n((()=>j),(e=>{e||(D.value={})})),(i,t)=>(o(),l("div",A,[s(C,r({dataSource:c(S),visibleIn:c(J)},i.$attrs,{onHandleOk:q,onClose:G,onChangeData:E,onResetPopconfirm:B,edit:H,copy:R,delItem:K,type:"search",filterApiConfig:e.filterApiConfig}),{add:f((()=>[s(c(g),{type:"info",onClick:N},{default:f((()=>[d("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),u(i.$slots,"searchCondition",{attrs:{...i.$attrs,visible:c(j),loading:c(k),conditionList:c(S),actionList_prop:c(D),searchFieldList:e.searchFieldList,isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,saveAdd:$,cancelSaveAdd:x},ref_key:"searchFilter",ref:w},(()=>[p(" 先默认设置dataType为api筛选,后期要兼容sql筛选再动态查询 "),s(y,r({ref_key:"searchFilter",ref:w},i.$attrs,{visible:c(j),loading:c(k),conditionList:c(S),actionList_prop:c(D),searchFieldList:c(O),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,tableDataType:c(m).API,onSaveAdd:$,onCancelSaveAdd:x}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig","tableDataType"])]))]))}}),[["__file","set-classification.vue"]]);export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
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 M,NSwitch as I,NPopconfirm as E,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 T from"../../../../../_virtual/plugin-vue_export-helper.js";const A={class:"svg-wrap"},H={key:0},R={class:"list"},$={class:"list-title"},J=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"},ae={class:"list-content-item"},ne={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=T(e({__name:"TableModal",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:T}){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=a(j);function ke(){ue.type&&(Se(),T("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(),T("close")}function Se(){ye.value="860px",Ce.value="654px",ge.value=!1}function _e(){T("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){T("resetPopconfirm",e)}function Me(e,t,i){const l=ue[e];l&&l(t,i)}return n((()=>ue.visibleIn),(e=>{fe.value=e})),n((()=>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",A,[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",H,[f(' <n-icon type="plus-circle" /> '),v("a",{onClick:xe}," 添加首页 ")])):f("v-if",!0),v("div",R,[v("div",$,[J,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 T("changeData",he.value,i);var i}},[v("span",X,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(M),{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(I),{"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(I),{"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(I),{"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,T("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",ae,["mananger"==e.type&&r(ve)?(o(),h("span",ne,[d(r(E),{onPositiveClick:e=>Me("confirm",t)},{trigger:c((()=>[d(r(M),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(M),{component:r(N),onClick:k((e=>Me("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(M),{component:r(V),onClick:k((e=>Me("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(E),{onPositiveClick:e=>Me("delItem",t,"删除")},{trigger:c((()=>[d(r(M),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((()=>[r(we)?(o(),s(r(E),{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),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","TableModal.vue"]]);export{ue as default};
|
|
File without changes
|