HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/public/static/js/hook-0d668009.js
import{be as x}from"./message-2472a54a.js";import{M as C,J as D}from"./index-3e40fd7d.js";import{A as i,r as n,c as M,o as S}from"./runtime-core.esm-bundler-6128546f.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./vue-router-a383d220.js";import"./utils-2ab4f76a.js";function J(){const p=i({name:""}),l=n(!1);n({});const c=i({total:0,pageSize:10,currentPage:1,background:!0}),r=i({list:[]}),d=[{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"}],e=i({id:"",pid:"",title:"",type:"",path:"",name:"",icon:"",keepalive:!1,weigh:0}),o=n(!1),u=["用户ID","用户编号","用户名称","身份","手机号码","邮箱"],h=M(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function m(t){e.id=t.id,e.pid=t.pid,e.type=t.type,e.icon=t.icon,e.keepalive=t.keepalive,e.path=t.path,e.name=t.name,e.title=t.title,e.weigh=t.weigh,o.value=!0}function f(){e.id="",e.pid="",e.type="",e.icon="",e.keepalive=!1,e.name="",e.path="",e.title="",e.weigh=99,o.value=!0}function g(t){C(t.id).then(s=>{x("删除菜单成功",{type:"success"}),a()}).catch(s=>{})}function b(t){a()}function v(t){a()}function y(t){}async function a(){l.value=!0;let t=Object.assign(p,{has_btn:1});const{data:s}=await D(t);r.list=s,setTimeout(()=>{l.value=!1},500)}const k=t=>{t&&(t.resetFields(),a())};return i({password:"",repassword:""}),n(!1),S(()=>{a()}),{editFormDialogVisible:o,editformData:e,handleNew:f,handleUpdate:m,handleDelete:g,selectList:u,form:p,loading:l,columns:d,dataList:r,pagination:c,buttonClass:h,onSearch:a,resetForm:k,handleSizeChange:b,handleCurrentChange:v,handleSelectionChange:y}}export{J as useUser};