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-e5be6c90.js
import{be as c}from"./message-2472a54a.js";import{getRoleList as w}from"./system-13fe5f35.js";import{R}from"./index-4e6349f8.js";import{A as l,r as n,c as S,o as k}from"./runtime-core.esm-bundler-6128546f.js";import"./utils-2ab4f76a.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";function U(){const u=l({name:"",code:"",status:""}),d=n([]),i=n(!0);n({});const s=l({total:0,pageSize:10,currentPage:1,background:!0}),m=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"角色编号",prop:"id",minWidth:100,hide:({checkList:e})=>!e.includes("角色编号")},{label:"角色名称",prop:"name",minWidth:120,hide:({checkList:e})=>!e.includes("角色名称")},{label:"角色标识",prop:"code",minWidth:150,hide:({checkList:e})=>!e.includes("角色标识")},{label:"操作",fixed:"right",width:180,slot:"operation"}],p=["角色编号","角色名称","角色标识"],t=l({id:"",code:"",name:""}),o=n(!1),h=S(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function f(e){t.code=e.code,t.name=e.name,t.id=e.id,o.value=!0}function g(){o.value=!0}function v(e){R(e.id).then(r=>{c("删除身份成功",{type:"success"}),a()}).catch(r=>{c("删除身份失败",{type:"error"})})}function b(e){}function x(e){}function y(e){}async function a(){i.value=!0;const{data:e,meta:r}=await w();d.value=e,s.total=r.total,setTimeout(()=>{i.value=!1},500)}const C=e=>{e&&(e.resetFields(),a())};return k(()=>{a()}),{handleNew:g,editformData:t,editFormDialogVisible:o,selectList:p,form:u,loading:i,columns:m,dataList:d,pagination:s,buttonClass:h,onSearch:a,resetForm:C,handleUpdate:f,handleDelete:v,handleSizeChange:b,handleCurrentChange:x,handleSelectionChange:y}}export{U as useRole};