1 |
- import{aT as c,ac as h,al as _,a$ as b,ae as v,_ as P,d as k,w as B,bn as w,r as y,o as x,c as R,j as E,C as S,h as T,l as e,bp as q,cj as M}from"./index.js";import W from"./menu-tree.1fd4fa.js";import{u as I}from"./use-page-modal.5cf2c59f.js";import"./index.f6de32cf.js";const{VITE_PROXY_DOMAIN_REAL:nu,VITE_PROXY_USER_REAL:N}=h(),d=N+"/admin/",U=u=>c.request("post",`${d}menuaction`,{data:u}),Y=u=>c.request("post",`${d}menuactionadd`,{data:u}),$=u=>c.request("post",`${d}menuactionsave`,{data:u}),L=u=>c.request("post",`${d}menuactionstatus`,{data:u}),O=u=>c.request("post",`${d}menuactiondel`,{data:u}),j=[{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:o})=>_(b,{size:o.size,type:String(u.status)==="1"?"success":"danger"},{default:()=>u.status+""=="0"?"\u7981\u7528":"\u542F\u7528"})},{label:"\u521B\u5EFA\u65F6\u95F4",minWidth:180,prop:"createTime",formatter:({createTime:u})=>v(u).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",minWidth:140,slot:"operation"}],V={title:"\u6309\u94AE\u8BBE\u7F6E",columns:j,notReuqiredInit:!0,notNeedCompanyFilter:!0,superForceAction:!0,apis:{httpList:U,httpDelete:O,httpAdd:Y,httpStatus:L,httpUpdate:$}},s=[{code:"001",name:"\u5217\u8868"},{code:"002",name:"\u91CD\u7F6E\u5BC6\u7801"},{code:"003",name:"\u6DFB\u52A0"},{code:"004",name:"\u542F/\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:"\u4E0A/\u4E0B\u67B6"},{code:"010",name:"\u590D\u5236"},{code:"011",name:"\u8BBE\u4E3A/\u53D6\u6D88\u8D1F\u8D23\u4EBA"},{code:"013",name:"\u6A21\u677F\u4E0B\u8F7D"},{code:"012",name:"\u53D1\u8D77\u6D41\u7A0B"},{code:"014",name:"\u53D6\u6D88\u6D41\u7A0B"},{code:"015",name:"\u4F5C\u5E9F\u6570\u636E"},{code:"016",name:"\u79BB\u804C\u4EA4\u63A5\u5BA1\u6838"},{code:"017",name:"\u76D8\u70B9\u7ED3\u679C\u4E0A\u4F20"},{code:"018",name:"\u76D8\u70B9\u7ED3\u679C\u5BA1\u6838"},{code:"019",name:"\u76D8\u70B9\u5546\u54C1\u5BFC\u51FA"},{code:"020",name:"\u5165\u5E93\u65B9\u5BA1\u6838"},{code:"021",name:"\u51FA\u5E93\u65B9\u53D1\u8D27"},{code:"022",name:"\u5165\u5E93\u65B9\u9A8C\u8D27"},{code:"023",name:"\u5165\u5E93\u65B9\u9A8C\u8D27\u5BA1\u6838"},{code:"024",name:"\u91C7\u8D2D\u53CD\u9988"},{code:"025",name:"\u53CD\u9988\u8BA4\u540C"},{code:"026",name:"\u540C\u610F\u9000\u8D27"},{code:"027",name:"\u53D6\u6D88\u552E\u540E\u7533\u8BF7"},{code:"028",name:"\u65B0\u5EFA\u5165\u5E93\u5355"},{code:"029",name:"\u5907\u5E93\u5165\u5E93\u9A8C\u6536"},{code:"030",name:"\u5907\u5E93\u5165\u5E93\u9A8C\u6536\u5BA1\u6838"},{code:"031",name:"\u5165\u5E93\u5BA1\u6838"},{code:"032",name:"\u9000\u8D27\u7269\u6D41"},{code:"033",name:"\u91C7\u8D2D\u53CD\u9988\u7269\u6D41\u8D39"},{code:"034",name:"\u552E\u540E\u4E1A\u52A1\u5BA1\u6838"},{code:"035",name:"\u4F9B\u8D27\u5546\u53CD\u9988"},{code:"036",name:"\u91C7\u8D2D\u5BA1\u6838"},{code:"037",name:"\u901A\u77E5\u5E93\u7BA1\u5C97"},{code:"038",name:"\u901A\u77E5\u91C7\u8D2D\u90E8\u95E8"},{code:"039",name:"\u901A\u77E5\u8D22\u52A1\u90E8\u95E8"},{code:"040",name:"\u7269\u6D41\u53CD\u9988"},{code:"041",name:"\u9000\u8D27\u4E1A\u52A1\u5BA1\u6838"},{code:"042",name:"\u9000\u8D27\u9A8C\u6536\u5BA1\u6838"},{code:"043",name:"\u4E1A\u52A1\u5BA1\u6838"},{code:"044",name:"\u901A\u77E5\u4E1A\u52A1\u90E8\u95E8"},{code:"045",name:"\u586B\u5199\u7269\u6D41"},{code:"046",name:"\u4F9B\u5E94\u5546\u53CD\u9988"},{code:"047",name:"\u9000\u8D27\u9A8C\u6536\u8BB0\u5F55"},{code:"048",name:"\u6DFB\u52A0\u53D1\u8D27\u5355"},{code:"049",name:"\u6DFB\u52A0\u552E\u540E\u7533\u8BF7"},{code:"050",name:"\u6DFB\u52A0\u552E\u540E\u7533\u8BF7"},{code:"051",name:"\u6DFB\u52A0\u672A\u53D1\u8D27\u9000\u8D27"},{code:"052",name:"\u5BA2\u6237\u9A8C\u6536"},{code:"053",name:"\u4FEE\u6539\u6210\u672C\u4FE1\u606F"},{code:"054",name:"\u4FEE\u6539\u57FA\u7840\u4FE1\u606F"},{code:"055",name:"\u6DFB\u52A0\u5546\u54C1\u4E0A\u7EBF"},{code:"056",name:"\u4EA7\u54C1\u90E8\u5BA1\u6279"},{code:"057",name:"\u91C7\u8D2D\u90E8\u5B9A\u4EF7"},{code:"058",name:"\u8D22\u52A1\u5B9A\u4EF7"},{code:"059",name:"\u8D22\u52A1\u5BA1\u6838\u5B9A\u4EF7"},{code:"060",name:"\u8BBE\u7F6E\u6BDB\u5229\u7387"},{code:"061",name:"\u67E5\u770B\u6BDB\u5229\u7387"},{code:"062",name:"\u6DFB\u52A0\u7EBF\u4E0A\u5546\u54C1"},{code:"063",name:"\u5206\u4EAB\u9879\u76EE"},{code:"064",name:"\u5236\u5B9A\u9879\u76EE\u65B9\u6848"},{code:"065",name:"\u9879\u76EE\u4E0B\u5355"},{code:"066",name:"\u62DB\u6807\u4EFB\u52A1\u505C\u6B62"},{code:"067",name:"\u62DB\u6807\u4EFB\u52A1\u542F\u52A8"},{code:"068",name:"\u53D1\u8D77\u8BAE\u4EF7"},{code:"069",name:"\u9009\u5B9A\u5546\u54C1"},{code:"070",name:"\u975E\u9879\u76EE\u7ADE\u4EF7\u5355\u4E0B\u5355"},{code:"071",name:"\u64CD\u4F5C\u4E0A\u7EBF"},{code:"072",name:"\u67E5\u770B\u652F\u6301\u54C1\u724C\u5217\u8868"},{code:"073",name:"\u6DFB\u52A0\u652F\u6301\u54C1\u724C"},{code:"074",name:"\u67E5\u770B\u652F\u6301\u54C1\u724C"},{code:"075",name:"\u7F16\u8F91\u652F\u6301\u54C1\u724C"},{code:"076",name:"\u542F/\u7981\u7528\u652F\u6301\u54C1\u724C"},{code:"077",name:"\u5220\u9664\u652F\u6301\u54C1\u724C"},{code:"078",name:"\u518D\u6B21\u53D1\u8D77\u4E0A\u7EBF"},{code:"079",name:"\u4E0B\u7EBF\u5546\u54C1"},{code:"080",name:"\u5E93\u7BA1\u53D1\u8D27"},{code:"081",name:"\u6DFB\u52A0\u53D1\u8D27\u5355"},{code:"082",name:"\u6DFB\u52A0\u5DE5\u5DEE"},{code:"083",name:"\u8BBE\u7F6E\u9000\u8D27\u4ED3\u5E93"},{code:"084",name:"BOSS\u5BA1\u6279"},{code:"085",name:"\u6279\u91CF\u5173\u8054\u5E93\u5B58"},{code:"086",name:"\u8BA2\u5355\u5BFC\u5165"},{code:"087",name:"\u5BFC\u51FA"},{code:"088",name:"\u786E\u8BA4\u6536\u8D27"},{code:"089",name:"\u6279\u91CF\u5DF2\u4E0E\u4F9B\u5E94\u5546\u786E\u8BA4"},{code:"090",name:"\u6279\u91CF\u53D1\u8D27"},{code:"091",name:"\u6362\u8D27/\u8865\u53D1"},{code:"092",name:"\u91CD\u65B0\u8F6C\u5355"},{code:"093",name:"\u6279\u91CF\u5165\u5E93"},{code:"094",name:"\u8BBE\u7F6E\u8BA2\u5355\u7528\u9014"},{code:"095",name:"\u8BBE\u7F6E\u662F\u5426\u5408\u89C4"},{code:"096",name:"\u8BBE\u7F6E\u5E73\u53F0"},{code:"097",name:"\u8BBE\u7F6E\u90E8\u95E8"},{code:"098",name:"\u5173\u8054\u91C7\u8D2D\u5355"},{code:"099",name:"\u89E3\u9664\u5173\u8054"},{code:"100",name:"\u4E1A\u52A1\u7ECF\u7406\u4FEE\u6539\u5BFC\u5165"},{code:"102",name:"\u8BBE\u7F6E\u6D3B\u52A8url"},{code:"103",name:"\u91C7\u8D2D\u5355\u6210\u672C\u4FEE\u6539"},{code:"104",name:"\u8BBE\u7F6E\u6392\u5E8F\u6743\u91CD"}];function z(){return s.map(u=>({label:u.name,value:u.code}))}const H={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:z(),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"}]}]},X={class:"main role"},G={"w-full":"",flex:""},J=k({__name:"index",setup(u){const o=B(""),m=B(null),{handlePreviewData:i,handleCreateData:D,handleUpdateData:r,handleConfrim:l,pageModalRef:A,defaultInfo:F}=I({pageContentRef:m,confirmCallback:({action_code:n})=>{var t;return{action_name:(t=s.find(a=>Number(a.code)===Number(n)))==null?void 0:t.name,menuid:e(o)}}});function C(n){const{pid:t,id:a}=n;String(t)!=="0"&&(o.value=a,m.value.getPageData({id:a}))}function p(n){o.value=n,m.value.getPageData({id:n})}const{permissions:f,hasPermissionWithCode:g}=w("setBtn");return(n,t)=>{const a=y("PagePower");return x(),R("div",X,[E(a,{isShow:e(g)("001")},{default:S(()=>[T("div",G,[E(W,{onTreeSelectChange:C,onInitTableData:p}),E(e(q),{ref_key:"pageContentRef",ref:m,powers:e(f),"content-config":e(V),onCreateBtnClick:e(D),onPreviewBtnClick:e(i),onUpdateBtnClick:e(r)},null,8,["powers","content-config","onCreateBtnClick","onPreviewBtnClick","onUpdateBtnClick"])])]),_:1},8,["isShow"]),E(e(M),{ref_key:"pageModalRef",ref:A,"modal-config":e(H),"default-info":e(F),onConfirmBtnClick:e(l)},null,8,["modal-config","default-info","onConfirmBtnClick"])])}}});var au=P(J,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/system/setBtn/index.vue"]]);export{au as default};
|