1 |
- import{aU as c,ac as _,am as v,aR as P,_ as b,d as k,x as F,aM as w,r as x,o as y,c as R,l as d,D as S,h as q,m as e,bF as W,e5 as I}from"./index.js";import M from"./menu-tree.8b7f24.js";import{u as N}from"./use-page-modal.6af4f02b.js";import"./index.f40ed27e.js";const{VITE_PROXY_DOMAIN_REAL:nu,VITE_PROXY_USER_REAL:T}=_(),B=T+"/admin/",U=u=>c.request("post",`${B}menuaction`,{data:u}),L=u=>c.request("post",`${B}menuactionadd`,{data:u}),$=u=>c.request("post",`${B}menuactionsave`,{data:u}),O=u=>c.request("post",`${B}menuactionstatus`,{data:u}),V=u=>c.request("post",`${B}menuactiondel`,{data:u}),z=[{type:"selection",width:40,align:"center",hide:({checkList:u})=>!u.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",minWidth:60,align:"left",hide:({checkList:u})=>!u.includes("\u5E8F\u53F7\u5217")},{label:"\u6309\u94AE\u540D\u79F0",prop:"action_name",minWidth:180,align:"left"},{label:"\u72B6\u6001",prop:"status",minWidth:80,cellRenderer:({row:u,props:t})=>v(P,{size:t.size,type:String(u.status)==="1"?"success":"danger"},{default:()=>u.status+""=="0"?"\u7981\u7528":"\u542F\u7528"})},{label:"\u521B\u5EFA\u65F6\u95F4",minWidth:180,prop:"addtime"},{label:"\u64CD\u4F5C",fixed:"right",minWidth:140,slot:"operation"}],G={title:"\u6309\u94AE\u8BBE\u7F6E",columns:z,notReuqiredInit:!0,notNeedCompanyFilter:!0,apis:{httpList:U,httpDelete:V,httpAdd:L,httpStatus:O,httpUpdate:$}},s=[{code:"001",name:"\u5217\u8868"},{code:"002",name:"\u6DFB\u52A0"},{code:"003",name:"\u542F\u7528"},{code:"004",name:"\u7981\u7528"},{code:"005",name:"\u4FEE\u6539"},{code:"006",name:"\u5220\u9664"},{code:"007",name:"\u8BE6\u60C5"},{code:"008",name:"\u63D0\u4EA4"},{code:"009",name:"\u64A4\u9500\u8D44\u91D1\u8BA4\u9886"},{code:"010",name:"\u64A4\u9500\u53D1\u7968\u7533\u8BF7"},{code:"011",name:"\u4E0B\u67B6"},{code:"012",name:"\u91CD\u7F6E\u5BC6\u7801"},{code:"013",name:"\u6DFB\u52A0\u91C7\u8D2D\u5BF9\u8D26\u4ED8\u6B3E\u6807\u7B7E"},{code:"014",name:"\u6DFB\u52A0\u91C7\u8D2D\u5BF9\u8D26\u56DE\u7968\u6807\u7B7E"},{code:"015",name:"\u6DFB\u52A0\u9500\u552E\u8BA2\u5355\u5F00\u7968\u6807\u7B7E"},{code:"016",name:"\u6DFB\u52A0\u9500\u552E\u8BA2\u5355\u56DE\u6B3E\u6807\u7B7E"},{code:"017",name:"\u5BFC\u51FA\u56DE\u7968\u6570\u636E"},{code:"018",name:"\u6279\u91CF\u5BFC\u5165\u8BA4\u8BC1\u7ED3\u679C"},{code:"019",name:"\u4E0B\u8F7D\u8BA4\u8BC1\u6A21\u677F"},{code:"020",name:"\u4E70\u65B9\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{code:"021",name:"\u4E70\u65B9\u516C\u53F8\u8BA4\u8BC1"},{code:"022",name:"\u64A4\u9500\u5BF9\u8D26\u7533\u8BF7"},{code:"023",name:"\u64A4\u9500\u5BF9\u8D26\u4ED8\u6B3E\u7533\u8BF7"},{code:"024",name:"\u64A4\u9500\u5BF9\u8D26\u56DE\u7968\u7533\u8BF7"},{code:"025",name:"\u8D22\u52A1\u5BA1\u6838"},{code:"026",name:"\u5BFC\u51FA\u53D1\u7968\u7533\u8BF7\u4FE1\u606F"},{code:"027",name:"\u4E0B\u8F7D\u53D1\u7968\u4FE1\u606F\u5BFC\u5165\u6A21\u677F"},{code:"028",name:"\u6279\u91CF\u5BFC\u5165\u8D22\u52A1\u5F00\u7968\u7ED3\u679C\uFF08\u53D1\u7968\u7533\u8BF7\uFF09"},{code:"029",name:"\u4E0B\u8F7D\u8D44\u91D1\u5BFC\u5165\u6A21\u677F"},{code:"030",name:"\u6279\u91CF\u5BFC\u5165\u5BA2\u6237\u4ED8\u6B3E\u8D44\u91D1\u6570\u636E"},{code:"031",name:"\u6279\u91CF\u4E0B\u8F7D\u5F00\u7968\u6A21\u677F"},{code:"032",name:"\u5BFC\u51FA\u5BF9\u8D26\u5F00\u7968\u6570\u636E"},{code:"033",name:"\u6279\u91CF\u521B\u5EFA\u5F00\u7968\u6570\u636E"},{code:"034",name:"\u4E0B\u8F7D\u8BA2\u5355\u8BA4\u6B3E\u5BFC\u5165\u6A21\u677F"},{code:"035",name:"\u6279\u91CF\u5BFC\u5165\u8BA2\u5355\u8BA4\u6B3E\u6570\u636E"},{code:"036",name:"\u4E0B\u8F7D\u6279\u91CF\u8BBE\u7F6E\u7C7B\u76EE\u6A21\u677F"},{code:"037",name:"\u6279\u91CF\u5BFC\u5165\u8BBE\u7F6E\u7C7B\u76EE\u7ED3\u679C"},{code:"038",name:"\u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA"},{code:"039",name:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{code:"040",name:"\u6279\u91CF\u5BA1\u6838"},{code:"041",name:"\u6279\u91CF\u4E0B\u8F7D\u91C7\u8D2D\u8BBE\u7F6E\u7C7B\u76EE\u6A21\u677F"},{code:"042",name:"\u6279\u91CF\u91C7\u8D2D\u5BFC\u5165\u8BBE\u7F6E\u7C7B\u76EE\u7ED3\u679C"},{code:"043",name:"\u91C7\u8D2D\u8BBE\u7F6E\u7A0E\u52A1\u7C7B\u76EE"},{code:"044",name:"\u8D22\u52A1\u8BBE\u7F6E\u7A0E\u52A1\u7C7B\u76EE"},{code:"045",name:"\u5BFC\u51FA\u5546\u54C1\u7A0E\u7387\u5F02\u5E38\u8BB0\u5F55"},{code:"046",name:"\u6253\u5370\u5BF9\u8D26\u5355"},{code:"047",name:"\u6253\u5370\u5907\u5E93\u5355"},{code:"048",name:"\u5BFC\u51FA"},{code:"049",name:"\u4E0A\u4F20\u4ED8\u6B3E\u56DE\u6267"},{code:"050",name:"\u6279\u91CF\u5BFC\u5165"},{code:"051",name:"\u4E0B\u8F7D\u6A21\u677F"},{code:"052",name:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{code:"053",name:"\u4E1A\u52A1\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{code:"054",name:"\u4E1A\u52A1\u516C\u53F8\u8BA4\u8BC1"},{code:"055",name:"\u89E3\u9664\u91C7\u8D2D\u5BF9\u8D26\u4ED8\u6B3E\u6807\u7B7E"},{code:"056",name:"\u89E3\u9664\u91C7\u8D2D\u5BF9\u8D26\u56DE\u7968\u6807\u7B7E"},{code:"057",name:"\u8D44\u91D1\u4FE1\u606F\u5BFC\u51FA"},{code:"058",name:"\u4E0A\u4F20\u53D1\u7968"},{code:"061",name:"\u89E3\u9664\u9500\u552E\u8BA2\u5355\u56DE\u6B3E\u6807\u7B7E"},{code:"062",name:"\u89E3\u9664\u9500\u552E\u8BA2\u5355\u5F00\u7968\u6807\u7B7E"},{code:"063",name:"\u5173\u8054\u8BA2\u5355"},{code:"064",name:"\u6279\u91CF\u5BFC\u5165\u53D1\u7968\u4E0E\u8BA2\u5355\u5173\u8054\u6570\u636E"},{code:"065",name:"\u8D22\u52A1\u5BA1\u6838\u5173\u8054\u4FE1\u606F"},{code:"066",name:"\u4FEE\u6539\u5173\u8054\u516C\u53F8"},{code:"067",name:"\u5F85\u5173\u8054\u53D1\u7968\u660E\u7EC6"},{code:"068",name:"\u5BFC\u5165\u5E73\u53F0\u8BA2\u5355\u56DE\u6B3E\u6570\u636E(\u6279\u91CF)"},{code:"069",name:"\u6279\u91CF\u521B\u5EFA\u5F00\u7968\u7533\u8BF7"}];function X(){return s.map(u=>({label:u.name,value:u.code}))}const j={title:"\u6309\u94AE",colLayout:{span:24},itemStyle:{},formItems:[{field:"action_code",type:"select",label:"\u6309\u94AE\u540D\u79F0",labelWidth:"120px",placeholder:"\u6309\u94AE\u540D\u79F0",options:X(),rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u6309\u94AE\u6807\u8BC6"}]},{field:"status",type:"radio",labelWidth:"120px",label:"\u6309\u94AE\u72B6\u6001",options:[{label:"\u542F\u7528",value:"1"},{label:"\u7981\u7528",value:"0"}],rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u6309\u94AE\u72B6\u6001"}]}]};var m=(u=>(u.MENU="1",u.PAGE="2",u))(m||{});const Y={class:"main role"},H={"w-full":"",flex:""},J=k({__name:"index",setup(u){const t=F(""),E=F(null),{pageModalRef:i,handleCreateData:l,handlePreviewData:r,handleUpdateData:C,handleConfrim:D,defaultInfo:A}=N({pageContentRef:E,confirmCallback:({action_code:n})=>{var o;return{menuid:e(t),action_name:(o=s.find(a=>Number(a.code)===Number(n)))==null?void 0:o.name}}});function p(n){const{menu_type:o,id:a}=n;String(o)===m.PAGE&&(t.value=a,E.value.getPageData({id:a}))}function f(n){t.value=n,E.value.getPageData({id:n})}const{permissions:g,hasPermissionWithCode:h}=w("setBtn");return(n,o)=>{const a=x("PagePower");return y(),R("div",Y,[d(a,{isShow:e(h)("001")},{default:S(()=>[q("div",H,[d(M,{onTreeSelectChange:p,onInitTableData:f}),d(e(W),{ref_key:"pageContentRef",ref:E,powers:e(g),"content-config":e(G),onCreateBtnClick:e(l),onPreviewBtnClick:e(r),onUpdateBtnClick:e(C)},null,8,["powers","content-config","onCreateBtnClick","onPreviewBtnClick","onUpdateBtnClick"])])]),_:1},8,["isShow"]),d(e(I),{ref_key:"pageModalRef",ref:i,"modal-config":e(j),"default-info":e(A),onConfirmBtnClick:e(D)},null,8,["modal-config","default-info","onConfirmBtnClick"])])}}});var au=b(J,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/system/setBtn/index.vue"]]);export{au as default};
|