2 lines
24 KiB
JavaScript
2 lines
24 KiB
JavaScript
import{B as s,_ as e,r as a,d as _,o as t,c as l,e as o,w as n,f as i,J as c,l as u,V as d,W as r,A as p,q as m,s as v,G as g,I as E,U as f,T as b,K as V,M as T,j as I,k as j,n as P,ai as R,m as O,aj as A,v as D,S as L}from"./index.e5c8b0d6.js";import{l as h,g as y,u as w,a as k,d as x}from"./menu.a3f2b703.js";let C=[];const N=Object.assign({"../../assets/icons/svg/404.svg":()=>s((()=>import("./404.b46c7eb9.js")),[]),"../../assets/icons/svg/a.svg":()=>s((()=>import("./a.c175d9ba.js")),[]),"../../assets/icons/svg/a1.svg":()=>s((()=>import("./a1.4a1b0b36.js")),[]),"../../assets/icons/svg/a10.svg":()=>s((()=>import("./a10.47c7954a.js")),[]),"../../assets/icons/svg/a11.svg":()=>s((()=>import("./a11.8c5a885c.js")),[]),"../../assets/icons/svg/a12.svg":()=>s((()=>import("./a12.25f6e714.js")),[]),"../../assets/icons/svg/a13.svg":()=>s((()=>import("./a13.6ddf1677.js")),[]),"../../assets/icons/svg/a14.svg":()=>s((()=>import("./a14.c8681b2b.js")),[]),"../../assets/icons/svg/a15.svg":()=>s((()=>import("./a15.59cf3fc0.js")),[]),"../../assets/icons/svg/a16.svg":()=>s((()=>import("./a16.90544047.js")),[]),"../../assets/icons/svg/a17.svg":()=>s((()=>import("./a17.86f34042.js")),[]),"../../assets/icons/svg/a18.svg":()=>s((()=>import("./a18.9c397f68.js")),[]),"../../assets/icons/svg/a19.svg":()=>s((()=>import("./a19.afac1fbf.js")),[]),"../../assets/icons/svg/a2.svg":()=>s((()=>import("./a2.65b204c0.js")),[]),"../../assets/icons/svg/a20.svg":()=>s((()=>import("./a20.26390af9.js")),[]),"../../assets/icons/svg/a21.svg":()=>s((()=>import("./a21.96da2201.js")),[]),"../../assets/icons/svg/a22.svg":()=>s((()=>import("./a22.33157f59.js")),[]),"../../assets/icons/svg/a23.svg":()=>s((()=>import("./a23.426f8b9c.js")),[]),"../../assets/icons/svg/a24.svg":()=>s((()=>import("./a24.9fa17628.js")),[]),"../../assets/icons/svg/a25.svg":()=>s((()=>import("./a25.867d4107.js")),[]),"../../assets/icons/svg/a26.svg":()=>s((()=>import("./a26.bcf40cf1.js")),[]),"../../assets/icons/svg/a27.svg":()=>s((()=>import("./a27.6d39a605.js")),[]),"../../assets/icons/svg/a28.svg":()=>s((()=>import("./a28.ed00bb73.js")),[]),"../../assets/icons/svg/a29.svg":()=>s((()=>import("./a29.d2c5abe9.js")),[]),"../../assets/icons/svg/a3.svg":()=>s((()=>import("./a3.83649b15.js")),[]),"../../assets/icons/svg/a4.svg":()=>s((()=>import("./a4.96b3e081.js")),[]),"../../assets/icons/svg/a5.svg":()=>s((()=>import("./a5.9214e7c3.js")),[]),"../../assets/icons/svg/a6.svg":()=>s((()=>import("./a6.c2d434d2.js")),[]),"../../assets/icons/svg/a7.svg":()=>s((()=>import("./a7.fd67fc9d.js")),[]),"../../assets/icons/svg/a8.svg":()=>s((()=>import("./a8.c9d20d6b.js")),[]),"../../assets/icons/svg/a9.svg":()=>s((()=>import("./a9.33c7777e.js")),[]),"../../assets/icons/svg/b1.svg":()=>s((()=>import("./b1.246a97d7.js")),[]),"../../assets/icons/svg/b10.svg":()=>s((()=>import("./b10.eeed115e.js")),[]),"../../assets/icons/svg/b11.svg":()=>s((()=>import("./b11.a63022a0.js")),[]),"../../assets/icons/svg/b12.svg":()=>s((()=>import("./b12.15398793.js")),[]),"../../assets/icons/svg/b13.svg":()=>s((()=>import("./b13.69b42b02.js")),[]),"../../assets/icons/svg/b2.svg":()=>s((()=>import("./b2.674648ca.js")),[]),"../../assets/icons/svg/b3.svg":()=>s((()=>import("./b3.dc0eba19.js")),[]),"../../assets/icons/svg/b4.svg":()=>s((()=>import("./b4.c88ae0fc.js")),[]),"../../assets/icons/svg/b5.svg":()=>s((()=>import("./b5.4b4a17f1.js")),[]),"../../assets/icons/svg/b6.svg":()=>s((()=>import("./b6.b89cb281.js")),[]),"../../assets/icons/svg/b7.svg":()=>s((()=>import("./b7.9e306e33.js")),[]),"../../assets/icons/svg/b8.svg":()=>s((()=>import("./b8.21b3ff08.js")),[]),"../../assets/icons/svg/b9.svg":()=>s((()=>import("./b9.1d4d49b1.js")),[]),"../../assets/icons/svg/bingtu.svg":()=>s((()=>import("./bingtu.7079dd47.js")),[]),"../../assets/icons/svg/bug.svg":()=>s((()=>import("./bug.c2b901ab.js")),[]),"../../assets/icons/svg/build.svg":()=>s((()=>import("./build.cee08664.js")),[]),"../../assets/icons/svg/button.svg":()=>s((()=>import("./button.d4ec432f.js")),[]),"../../assets/icons/svg/cascader.svg":()=>s((()=>import("./cascader.1134cded.js")),[]),"../../assets/icons/svg/chart.svg":()=>s((()=>import("./chart.47c5fc09.js")),[]),"../../assets/icons/svg/checkbox.svg":()=>s((()=>import("./checkbox.e0011079.js")),[]),"../../assets/icons/svg/clipboard.svg":()=>s((()=>import("./clipboard.4cb84a95.js")),[]),"../../assets/icons/svg/code.svg":()=>s((()=>import("./code.e3552bf9.js")),[]),"../../assets/icons/svg/color.svg":()=>s((()=>import("./color.36c00dbd.js")),[]),"../../assets/icons/svg/component.svg":()=>s((()=>import("./component.39aabf93.js")),[]),"../../assets/icons/svg/dashboard.svg":()=>s((()=>import("./dashboard.1cdb26b4.js")),[]),"../../assets/icons/svg/date-range.svg":()=>s((()=>import("./date-range.61256616.js")),[]),"../../assets/icons/svg/date.svg":()=>s((()=>import("./date.1a1b54fa.js")),[]),"../../assets/icons/svg/dict.svg":()=>s((()=>import("./dict.f9e4196e.js")),[]),"../../assets/icons/svg/documentation.svg":()=>s((()=>import("./documentation.a5f1c591.js")),[]),"../../assets/icons/svg/download.svg":()=>s((()=>import("./download.b06fbc7a.js")),[]),"../../assets/icons/svg/downloads.svg":()=>s((()=>import("./downloads.e955445d.js")),[]),"../../assets/icons/svg/drag.svg":()=>s((()=>import("./drag.855f09b1.js")),[]),"../../assets/icons/svg/druid.svg":()=>s((()=>import("./druid.59e3bde2.js")),[]),"../../assets/icons/svg/edit.svg":()=>s((()=>import("./edit.6138f7bd.js")),[]),"../../assets/icons/svg/education.svg":()=>s((()=>import("./education.9cdfc09c.js")),[]),"../../assets/icons/svg/email.svg":()=>s((()=>import("./email.6177a1b7.js")),[]),"../../assets/icons/svg/example.svg":()=>s((()=>import("./example.28eb468e.js")),[]),"../../assets/icons/svg/excel.svg":()=>s((()=>import("./excel.9680a7a3.js")),[]),"../../assets/icons/svg/exit-fullscreen.svg":()=>s((()=>import("./exit-fullscreen.7693107c.js")),[]),"../../assets/icons/svg/eye-open.svg":()=>s((()=>import("./eye-open.2742c814.js")),[]),"../../assets/icons/svg/eye.svg":()=>s((()=>import("./eye.7efea8d7.js")),[]),"../../assets/icons/svg/fenglei.svg":()=>s((()=>import("./fenglei.0b49f170.js")),[]),"../../assets/icons/svg/form.svg":()=>s((()=>import("./form.fe6029ff.js")),[]),"../../assets/icons/svg/fullscreen.svg":()=>s((()=>import("./fullscreen.181ef4f1.js")),[]),"../../assets/icons/svg/github.svg":()=>s((()=>import("./github.f0d66958.js")),[]),"../../assets/icons/svg/guide.svg":()=>s((()=>import("./guide.40474b41.js")),[]),"../../assets/icons/svg/icon.svg":()=>s((()=>import("./icon.2d1c0100.js")),[]),"../../assets/icons/svg/input.svg":()=>s((()=>import("./input.a7187a4f.js")),[]),"../../assets/icons/svg/international.svg":()=>s((()=>import("./international.7ee45404.js")),[]),"../../assets/icons/svg/job.svg":()=>s((()=>import("./job.ef157af3.js")),[]),"../../assets/icons/svg/language.svg":()=>s((()=>import("./language.443cf574.js")),[]),"../../assets/icons/svg/link.svg":()=>s((()=>import("./link.64f798fb.js")),[]),"../../assets/icons/svg/list.svg":()=>s((()=>import("./list.88f483cb.js")),[]),"../../assets/icons/svg/lock.svg":()=>s((()=>import("./lock.b3970863.js")),[]),"../../assets/icons/svg/log.svg":()=>s((()=>import("./log.6a61dc82.js")),[]),"../../assets/icons/svg/logininfor.svg":()=>s((()=>import("./logininfor.1258c2cb.js")),[]),"../../assets/icons/svg/message.svg":()=>s((()=>import("./message.082e45f4.js")),[]),"../../assets/icons/svg/money.svg":()=>s((()=>import("./money.1bcf65d6.js")),[]),"../../assets/icons/svg/monitor.svg":()=>s((()=>import("./monitor.16d358a5.js")),[]),"../../assets/icons/svg/nested.svg":()=>s((()=>import("./nested.0325dcc4.js")),[]),"../../assets/icons/svg/number.svg":()=>s((()=>import("./number.63af79ba.js")),[]),"../../assets/icons/svg/online.svg":()=>s((()=>import("./online.0bccf30b.js")),[]),"../../assets/icons/svg/password.svg":()=>s((()=>import("./password.4f940edf.js")),[]),"../../assets/icons/svg/pdf.svg":()=>s((()=>import("./pdf.53cff26e.js")),[]),"../../assets/icons/svg/people.svg":()=>s((()=>import("./people.87963c2b.js")),[]),"../../assets/icons/svg/peoples.svg":()=>s((()=>import("./peoples.0e6279eb.js")),[]),"../../assets/icons/svg/phone.svg":()=>s((()=>import("./phone.5ce31124.js")),[]),"../../assets/icons/svg/post.svg":()=>s((()=>import("./post.8daa8f25.js")),[]),"../../assets/icons/svg/qq.svg":()=>s((()=>import("./qq.74ce5ed3.js")),[]),"../../assets/icons/svg/question.svg":()=>s((()=>import("./question.0c8624b9.js")),[]),"../../assets/icons/svg/radio.svg":()=>s((()=>import("./radio.d6beef62.js")),[]),"../../assets/icons/svg/rate.svg":()=>s((()=>import("./rate.4a8dcd58.js")),[]),"../../assets/icons/svg/redis-list.svg":()=>s((()=>import("./redis-list.1edbb4ff.js")),[]),"../../assets/icons/svg/redis.svg":()=>s((()=>import("./redis.615d741a.js")),[]),"../../assets/icons/svg/row.svg":()=>s((()=>import("./row.1bd8ad7e.js")),[]),"../../assets/icons/svg/search.svg":()=>s((()=>import("./search.33b822fc.js")),[]),"../../assets/icons/svg/select.svg":()=>s((()=>import("./select.558564a5.js")),[]),"../../assets/icons/svg/server.svg":()=>s((()=>import("./server.f0461856.js")),[]),"../../assets/icons/svg/shopping.svg":()=>s((()=>import("./shopping.b0e0ebd3.js")),[]),"../../assets/icons/svg/size.svg":()=>s((()=>import("./size.a85972fe.js")),[]),"../../assets/icons/svg/skill.svg":()=>s((()=>import("./skill.bb02a4ac.js")),[]),"../../assets/icons/svg/slider.svg":()=>s((()=>import("./slider.ab079a74.js")),[]),"../../assets/icons/svg/star.svg":()=>s((()=>import("./star.5374eaaa.js")),[]),"../../assets/icons/svg/swagger.svg":()=>s((()=>import("./swagger.0f6005b0.js")),[]),"../../assets/icons/svg/switch.svg":()=>s((()=>import("./switch.39427d32.js")),[]),"../../assets/icons/svg/system.svg":()=>s((()=>import("./system.dd8f4370.js")),[]),"../../assets/icons/svg/tab.svg":()=>s((()=>import("./tab.837765b4.js")),[]),"../../assets/icons/svg/table.svg":()=>s((()=>import("./table.53c6772c.js")),[]),"../../assets/icons/svg/textarea.svg":()=>s((()=>import("./textarea.7dc42e90.js")),[]),"../../assets/icons/svg/theme.svg":()=>s((()=>import("./theme.988b699a.js")),[]),"../../assets/icons/svg/time-range.svg":()=>s((()=>import("./time-range.134e4394.js")),[]),"../../assets/icons/svg/time.svg":()=>s((()=>import("./time.145701c2.js")),[]),"../../assets/icons/svg/tool.svg":()=>s((()=>import("./tool.c30a4b30.js")),[]),"../../assets/icons/svg/tree-table.svg":()=>s((()=>import("./tree-table.a57dac2f.js")),[]),"../../assets/icons/svg/tree.svg":()=>s((()=>import("./tree.3a250732.js")),[]),"../../assets/icons/svg/upload.svg":()=>s((()=>import("./upload.02a15e1b.js")),[]),"../../assets/icons/svg/user.svg":()=>s((()=>import("./user.0c7aa22a.js")),[]),"../../assets/icons/svg/validCode.svg":()=>s((()=>import("./validCode.c5c7d4df.js")),[]),"../../assets/icons/svg/wechat.svg":()=>s((()=>import("./wechat.ec3af840.js")),[]),"../../assets/icons/svg/zip.svg":()=>s((()=>import("./zip.fc1b638f.js")),[]),"../../assets/icons/svg/饼图(1).svg":()=>s((()=>import("./饼图(1).d17f9b6f.js")),[])});for(const G in N){const s=G.split("assets/icons/svg/")[1].split(".svg")[0];C.push(s)}const U={class:"icon-body"},q=(s=>(m("data-v-b2eb9dc2"),s=s(),v(),s))((()=>u("i",{class:"el-icon-search el-input__icon"},null,-1))),S={class:"icon-list"},F=["onClick"],z=e({__name:"index",emits:["selected"],setup(s,{expose:e,emit:m}){const v=a(""),g=a(C);function E(){g.value=C,v.value&&(g.value=C.filter((s=>-1!==s.indexOf(v.value))))}return e({reset:function(){v.value="",g.value=C}}),(s,e)=>{const a=_("el-input"),f=_("svg-icon");return t(),l("div",U,[o(a,{modelValue:i(v),"onUpdate:modelValue":e[0]||(e[0]=s=>c(v)?v.value=s:null),style:{position:"relative"},placeholder:"请输入图标名称",onClear:E,onInput:E},{suffix:n((()=>[q])),_:1},8,["modelValue"]),u("div",S,[(t(!0),l(d,null,r(i(g),((s,e)=>(t(),l("div",{key:e,onClick:e=>(m("selected",s),void document.body.click())},[o(f,{"icon-class":s,style:{height:"30px",width:"16px"}},null,8,["icon-class"]),u("span",null,p(s),1)],8,F)))),128))])])}}},[["__scopeId","data-v-b2eb9dc2"]]),M={class:"app-container"},$={class:"dialog-footer"},K=g({name:"Menu"}),B=Object.assign(K,{setup(s){const{proxy:e}=D(),{sys_show_hide:m,sys_normal_disable:v}=e.useDict("sys_show_hide","sys_normal_disable"),g=a([]),C=a(!1),N=a(!0),U=a(!0),q=a(""),S=a([]),F=a(!1),K=a(!0),B=a(!1),G=a(null),J=E({form:{},queryParams:{menuName:void 0,visible:void 0},rules:{menuName:[{required:!0,message:"菜单名称不能为空",trigger:"blur"}],orderNum:[{required:!0,message:"菜单顺序不能为空",trigger:"blur"}],path:[{required:!0,message:"路由地址不能为空",trigger:"blur"}]}}),{queryParams:Q,form:W,rules:H}=f(J);function X(){N.value=!0,h(Q.value).then((s=>{g.value=e.handleTree(s.data,"menuId"),N.value=!1}))}function Y(){S.value=[],h().then((s=>{const a={menuId:0,menuName:"主类目",children:[]};a.children=e.handleTree(s.data,"menuId"),S.value.push(a)}))}function Z(){C.value=!1,ss()}function ss(){W.value={menuId:void 0,parentId:0,menuName:void 0,icon:void 0,menuType:"M",orderNum:void 0,isFrame:"1",isCache:"0",visible:"0",status:"0"},e.resetForm("menuRef")}function es(){G.value.reset(),B.value=!0}function as(s){W.value.icon=s,B.value=!1}function _s(s){"el-input__inner"!==(s.relatedTarget||s.srcElement||s.target||s.currentTarget).className&&(B.value=!1)}function ts(){X()}function ls(){e.resetForm("queryRef"),ts()}function os(s){ss(),Y(),null!=s&&s.menuId?W.value.parentId=s.menuId:W.value.parentId=0,C.value=!0,q.value="添加菜单"}function ns(){K.value=!1,F.value=!F.value,L((()=>{K.value=!0}))}function is(){e.$refs.menuRef.validate((s=>{s&&(null!=W.value.menuId?w(W.value).then((s=>{e.$modal.msgSuccess("修改成功"),C.value=!1,X()})):k(W.value).then((s=>{e.$modal.msgSuccess("新增成功"),C.value=!1,X()})))}))}return X(),(s,a)=>{const E=_("el-input"),f=_("el-form-item"),D=_("el-option"),L=_("el-select"),h=_("el-button"),w=_("el-form"),k=_("el-col"),J=_("right-toolbar"),cs=_("el-row"),us=_("el-table-column"),ds=_("dict-tag"),rs=_("el-table"),ps=_("el-tree-select"),ms=_("el-radio"),vs=_("el-radio-group"),gs=_("search"),Es=_("el-icon"),fs=_("el-popover"),bs=_("el-input-number"),Vs=_("question-filled"),Ts=_("el-tooltip"),Is=_("el-dialog"),js=b("hasPermi"),Ps=b("loading");return t(),l("div",M,[V(o(w,{model:i(Q),ref:"queryRef",inline:!0},{default:n((()=>[o(f,{label:"菜单名称",prop:"menuName"},{default:n((()=>[o(E,{modelValue:i(Q).menuName,"onUpdate:modelValue":a[0]||(a[0]=s=>i(Q).menuName=s),placeholder:"请输入菜单名称",clearable:"",style:{width:"200px"},onKeyup:I(ts,["enter"])},null,8,["modelValue","onKeyup"])])),_:1}),o(f,{label:"状态",prop:"status"},{default:n((()=>[o(L,{modelValue:i(Q).status,"onUpdate:modelValue":a[1]||(a[1]=s=>i(Q).status=s),placeholder:"菜单状态",clearable:"",style:{width:"200px"}},{default:n((()=>[(t(!0),l(d,null,r(i(v),(s=>(t(),j(D,{key:s.value,label:s.label,value:s.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),o(f,null,{default:n((()=>[o(h,{type:"primary",icon:"Search",onClick:ts},{default:n((()=>[P("搜索")])),_:1}),o(h,{icon:"Refresh",onClick:ls},{default:n((()=>[P("重置")])),_:1})])),_:1})])),_:1},8,["model"]),[[T,i(U)]]),o(cs,{gutter:10,class:"mb8"},{default:n((()=>[o(k,{span:1.5},{default:n((()=>[V((t(),j(h,{type:"primary",plain:"",icon:"Plus",onClick:os},{default:n((()=>[P("新增")])),_:1})),[[js,["system:menu:add"]]])])),_:1},8,["span"]),o(k,{span:1.5},{default:n((()=>[o(h,{type:"info",plain:"",icon:"Sort",onClick:ns},{default:n((()=>[P("展开/折叠")])),_:1})])),_:1},8,["span"]),o(J,{showSearch:i(U),"onUpdate:showSearch":a[2]||(a[2]=s=>c(U)?U.value=s:null),onQueryTable:X},null,8,["showSearch"])])),_:1}),i(K)?V((t(),j(rs,{key:0,data:i(g),"row-key":"menuId","default-expand-all":i(F),"tree-props":{children:"children",hasChildren:"hasChildren"}},{default:n((()=>[o(us,{prop:"menuName",label:"菜单名称","show-overflow-tooltip":!0,width:"160"}),o(us,{prop:"icon",label:"图标",align:"center",width:"100"},{default:n((s=>[o(i(R),{"icon-class":s.row.icon},null,8,["icon-class"])])),_:1}),o(us,{prop:"orderNum",label:"排序",width:"60"}),o(us,{prop:"perms",label:"权限标识","show-overflow-tooltip":!0}),o(us,{prop:"component",label:"组件路径","show-overflow-tooltip":!0}),o(us,{prop:"status",label:"状态",width:"80"},{default:n((s=>[o(ds,{options:i(v),value:s.row.status},null,8,["options","value"])])),_:1}),o(us,{label:"创建时间",align:"center",prop:"createTime"},{default:n((e=>[u("span",null,p(s.parseTime(e.row.createTime)),1)])),_:1}),o(us,{label:"操作",align:"center",width:"210","class-name":"small-padding fixed-width"},{default:n((s=>[V((t(),j(h,{link:"",type:"primary",icon:"Edit",onClick:e=>async function(s){ss(),await Y(),y(s.menuId).then((s=>{W.value=s.data,C.value=!0,q.value="修改菜单"}))}(s.row)},{default:n((()=>[P("修改")])),_:2},1032,["onClick"])),[[js,["system:menu:edit"]]]),V((t(),j(h,{link:"",type:"primary",icon:"Plus",onClick:e=>os(s.row)},{default:n((()=>[P("新增")])),_:2},1032,["onClick"])),[[js,["system:menu:add"]]]),V((t(),j(h,{link:"",type:"primary",icon:"Delete",onClick:a=>{return _=s.row,void e.$modal.confirm('是否确认删除名称为"'+_.menuName+'"的数据项?').then((function(){return x(_.menuId)})).then((()=>{X(),e.$modal.msgSuccess("删除成功")})).catch((()=>{}));var _}},{default:n((()=>[P("删除")])),_:2},1032,["onClick"])),[[js,["system:menu:remove"]]])])),_:1})])),_:1},8,["data","default-expand-all"])),[[Ps,i(N)]]):O("",!0),o(Is,{title:i(q),modelValue:i(C),"onUpdate:modelValue":a[17]||(a[17]=s=>c(C)?C.value=s:null),width:"680px","append-to-body":""},{footer:n((()=>[u("div",$,[o(h,{type:"primary",onClick:is},{default:n((()=>[P("确 定")])),_:1}),o(h,{onClick:Z},{default:n((()=>[P("取 消")])),_:1})])])),default:n((()=>[o(w,{ref:"menuRef",model:i(W),rules:i(H),"label-width":"100px"},{default:n((()=>[o(cs,null,{default:n((()=>[o(k,{span:24},{default:n((()=>[o(f,{label:"上级菜单"},{default:n((()=>[o(ps,{modelValue:i(W).parentId,"onUpdate:modelValue":a[3]||(a[3]=s=>i(W).parentId=s),data:i(S),props:{value:"menuId",label:"menuName",children:"children"},"value-key":"menuId",placeholder:"选择上级菜单","check-strictly":""},null,8,["modelValue","data"])])),_:1})])),_:1}),o(k,{span:24},{default:n((()=>[o(f,{label:"菜单类型",prop:"menuType"},{default:n((()=>[o(vs,{modelValue:i(W).menuType,"onUpdate:modelValue":a[4]||(a[4]=s=>i(W).menuType=s)},{default:n((()=>[o(ms,{label:"M"},{default:n((()=>[P("目录")])),_:1}),o(ms,{label:"C"},{default:n((()=>[P("菜单")])),_:1}),o(ms,{label:"F"},{default:n((()=>[P("按钮")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1}),"F"!=i(W).menuType?(t(),j(k,{key:0,span:24},{default:n((()=>[o(f,{label:"菜单图标",prop:"icon"},{default:n((()=>[o(fs,{placement:"bottom-start",width:540,visible:i(B),"onUpdate:visible":a[6]||(a[6]=s=>c(B)?B.value=s:null),trigger:"click",onShow:es},{reference:n((()=>[V((t(),j(E,{modelValue:i(W).icon,"onUpdate:modelValue":a[5]||(a[5]=s=>i(W).icon=s),placeholder:"点击选择图标",onBlur:es,readonly:""},{prefix:n((()=>[i(W).icon?(t(),j(i(R),{key:0,"icon-class":i(W).icon,class:"el-input__icon",style:{height:"32px",width:"16px"}},null,8,["icon-class"])):(t(),j(Es,{key:1,style:{height:"32px",width:"16px"}},{default:n((()=>[o(gs)])),_:1}))])),_:1},8,["modelValue"])),[[i(A),_s]])])),default:n((()=>[o(i(z),{ref_key:"iconSelectRef",ref:G,onSelected:as},null,512)])),_:1},8,["visible"])])),_:1})])),_:1})):O("",!0),o(k,{span:12},{default:n((()=>[o(f,{label:"菜单名称",prop:"menuName"},{default:n((()=>[o(E,{modelValue:i(W).menuName,"onUpdate:modelValue":a[7]||(a[7]=s=>i(W).menuName=s),placeholder:"请输入菜单名称"},null,8,["modelValue"])])),_:1})])),_:1}),o(k,{span:12},{default:n((()=>[o(f,{label:"显示排序",prop:"orderNum"},{default:n((()=>[o(bs,{modelValue:i(W).orderNum,"onUpdate:modelValue":a[8]||(a[8]=s=>i(W).orderNum=s),"controls-position":"right",min:0},null,8,["modelValue"])])),_:1})])),_:1}),"F"!=i(W).menuType?(t(),j(k,{key:1,span:12},{default:n((()=>[o(f,null,{label:n((()=>[u("span",null,[o(Ts,{content:"选择是外链则路由地址需要以`http(s)://`开头",placement:"top"},{default:n((()=>[o(Es,null,{default:n((()=>[o(Vs)])),_:1})])),_:1}),P("是否外链 ")])])),default:n((()=>[o(vs,{modelValue:i(W).isFrame,"onUpdate:modelValue":a[9]||(a[9]=s=>i(W).isFrame=s)},{default:n((()=>[o(ms,{label:"0"},{default:n((()=>[P("是")])),_:1}),o(ms,{label:"1"},{default:n((()=>[P("否")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1})):O("",!0),"F"!=i(W).menuType?(t(),j(k,{key:2,span:12},{default:n((()=>[o(f,{prop:"path"},{label:n((()=>[u("span",null,[o(Ts,{content:"访问的路由地址,如:`user`,如外网地址需内链访问则以`http(s)://`开头",placement:"top"},{default:n((()=>[o(Es,null,{default:n((()=>[o(Vs)])),_:1})])),_:1}),P(" 路由地址 ")])])),default:n((()=>[o(E,{modelValue:i(W).path,"onUpdate:modelValue":a[10]||(a[10]=s=>i(W).path=s),placeholder:"请输入路由地址"},null,8,["modelValue"])])),_:1})])),_:1})):O("",!0),"C"==i(W).menuType?(t(),j(k,{key:3,span:12},{default:n((()=>[o(f,{prop:"component"},{label:n((()=>[u("span",null,[o(Ts,{content:"访问的组件路径,如:`system/user/index`,默认在`views`目录下",placement:"top"},{default:n((()=>[o(Es,null,{default:n((()=>[o(Vs)])),_:1})])),_:1}),P(" 组件路径 ")])])),default:n((()=>[o(E,{modelValue:i(W).component,"onUpdate:modelValue":a[11]||(a[11]=s=>i(W).component=s),placeholder:"请输入组件路径"},null,8,["modelValue"])])),_:1})])),_:1})):O("",!0),"M"!=i(W).menuType?(t(),j(k,{key:4,span:12},{default:n((()=>[o(f,null,{label:n((()=>[u("span",null,[o(Ts,{content:"控制器中定义的权限字符,如:@PreAuthorize(`@ss.hasPermi('system:user:list')`)",placement:"top"},{default:n((()=>[o(Es,null,{default:n((()=>[o(Vs)])),_:1})])),_:1}),P(" 权限字符 ")])])),default:n((()=>[o(E,{modelValue:i(W).perms,"onUpdate:modelValue":a[12]||(a[12]=s=>i(W).perms=s),placeholder:"请输入权限标识",maxlength:"100"},null,8,["modelValue"])])),_:1})])),_:1})):O("",!0),"C"==i(W).menuType?(t(),j(k,{key:5,span:12},{default:n((()=>[o(f,null,{label:n((()=>[u("span",null,[o(Ts,{content:'访问路由的默认传递参数,如:`{"id": 1, "name": "ry"}`',placement:"top"},{default:n((()=>[o(Es,null,{default:n((()=>[o(Vs)])),_:1})])),_:1}),P(" 路由参数 ")])])),default:n((()=>[o(E,{modelValue:i(W).query,"onUpdate:modelValue":a[13]||(a[13]=s=>i(W).query=s),placeholder:"请输入路由参数",maxlength:"255"},null,8,["modelValue"])])),_:1})])),_:1})):O("",!0),"C"==i(W).menuType?(t(),j(k,{key:6,span:12},{default:n((()=>[o(f,null,{label:n((()=>[u("span",null,[o(Ts,{content:"选择是则会被`keep-alive`缓存,需要匹配组件的`name`和地址保持一致",placement:"top"},{default:n((()=>[o(Es,null,{default:n((()=>[o(Vs)])),_:1})])),_:1}),P(" 是否缓存 ")])])),default:n((()=>[o(vs,{modelValue:i(W).isCache,"onUpdate:modelValue":a[14]||(a[14]=s=>i(W).isCache=s)},{default:n((()=>[o(ms,{label:"0"},{default:n((()=>[P("缓存")])),_:1}),o(ms,{label:"1"},{default:n((()=>[P("不缓存")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1})):O("",!0),"F"!=i(W).menuType?(t(),j(k,{key:7,span:12},{default:n((()=>[o(f,null,{label:n((()=>[u("span",null,[o(Ts,{content:"选择隐藏则路由将不会出现在侧边栏,但仍然可以访问",placement:"top"},{default:n((()=>[o(Es,null,{default:n((()=>[o(Vs)])),_:1})])),_:1}),P(" 显示状态 ")])])),default:n((()=>[o(vs,{modelValue:i(W).visible,"onUpdate:modelValue":a[15]||(a[15]=s=>i(W).visible=s)},{default:n((()=>[(t(!0),l(d,null,r(i(m),(s=>(t(),j(ms,{key:s.value,label:s.value},{default:n((()=>[P(p(s.label),1)])),_:2},1032,["label"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1})):O("",!0),"F"!=i(W).menuType?(t(),j(k,{key:8,span:12},{default:n((()=>[o(f,null,{label:n((()=>[u("span",null,[o(Ts,{content:"选择停用则路由将不会出现在侧边栏,也不能被访问",placement:"top"},{default:n((()=>[o(Es,null,{default:n((()=>[o(Vs)])),_:1})])),_:1}),P(" 菜单状态 ")])])),default:n((()=>[o(vs,{modelValue:i(W).status,"onUpdate:modelValue":a[16]||(a[16]=s=>i(W).status=s)},{default:n((()=>[(t(!0),l(d,null,r(i(v),(s=>(t(),j(ms,{key:s.value,label:s.value},{default:n((()=>[P(p(s.label),1)])),_:2},1032,["label"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1})):O("",!0)])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["title","modelValue"])])}}});export{B as default};
|