File: /var/www/html/public/static/js/hook-legacy-15c31ede.js
System.register(["./message-legacy-10af7c73.js","./index-legacy-dd5053a9.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./preload-helper-legacy-f8638e03.js","./vue-i18n.runtime.esm-bundler-legacy-720876b1.js","./index-legacy-c9e20962.js","./_commonjsHelpers-legacy-5498c249.js","./vue-router-legacy-a12307c3.js","./utils-legacy-c0023c33.js"],(function(e,t){"use strict";var l,a,i,n,o,s,r;return{setters:[e=>{l=e.be},e=>{a=e.M,i=e.J},e=>{n=e.A,o=e.r,s=e.c,r=e.o},null,null,null,null,null,null],execute:function(){e("useUser",(function(){const e=n({name:""}),t=o(!1);o({});const p=n({total:0,pageSize:10,currentPage:1,background:!0}),c=n({list:[]}),u=n({id:"",pid:"",title:"",type:"",path:"",name:"",icon:"",keepalive:!1,weigh:0}),d=o(!1),g=s((()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]));async function h(){t.value=!0;let l=Object.assign(e,{has_btn:1});const{data:a}=await i(l);c.list=a,setTimeout((()=>{t.value=!1}),500)}return n({password:"",repassword:""}),o(!1),r((()=>{h()})),{editFormDialogVisible:d,editformData:u,handleNew:function(){u.id="",u.pid="",u.type="",u.icon="",u.keepalive=!1,u.name="",u.path="",u.title="",u.weigh=99,d.value=!0},handleUpdate:function(e){u.id=e.id,u.pid=e.pid,u.type=e.type,u.icon=e.icon,u.keepalive=e.keepalive,u.path=e.path,u.name=e.name,u.title=e.title,u.weigh=e.weigh,d.value=!0},handleDelete:function(e){a(e.id).then((e=>{l("删除菜单成功",{type:"success"}),h()})).catch((e=>{}))},selectList:["用户ID","用户编号","用户名称","身份","手机号码","邮箱"],form:e,loading:t,columns:[{label:"菜单ID",prop:"id"},{label:"菜单名称",prop:"title"},{label:"菜单类型",prop:"type",slot:"menu_type"},{label:"标识",prop:"name"},{label:"路径",prop:"path"},{label:"图标",prop:"icon",slot:"icon"},{label:"缓存",prop:"keepalive",slot:"keepalive"},{label:"次序",prop:"weigh"},{label:"操作",fixed:"right",width:180,slot:"operation"}],dataList:c,pagination:p,buttonClass:g,onSearch:h,resetForm:e=>{e&&(e.resetFields(),h())},handleSizeChange:function(e){h()},handleCurrentChange:function(e){h()},handleSelectionChange:function(e){}}}))}}}));