2 lines
6.2 KiB
JavaScript
2 lines
6.2 KiB
JavaScript
|
import{D as J,F as Q,R as W,S as q,w as H,G as X,J as Y,M as Z,o as ee,t as te,N as oe,O as ae}from"./element-plus.ab0703f2.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{f as ne,b as ie}from"./index.806598d1.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.657d1a25.js";import{d as $,s as se,$ as me,r as re,i as pe,ap as de,o as u,c as k,W as e,Q as a,u as o,aa as D,F as ce,a9 as _e,P as m,U as d,R as v,a as V,T as E,j as fe,n as B}from"./@vue.340249d8.js";import{a as x,_ as ve,b as be,c as he}from"./edit1.vue_vue_type_script_setup_true_lang.dff9ff64.js";import{r as we}from"./role.a54a8434.js";import{u as Fe}from"./useDictOptions.cf3ab6c7.js";import{u as ge}from"./usePaging.fff444fa.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./index.d1f8959e.js";import"./picker.4d9c6905.js";import"./index.bcc30d16.js";import"./index.64db8d0c.js";import"./index.af952604.js";import"./index.vue_vue_type_script_setup_true_lang.9909e290.js";import"./vue3-video-play.fb56db8a.js";import"./vuedraggable.5c3595e9.js";import"./vue.75cf012d.js";import"./sortablejs.dcbae258.js";import"./post.3dd38649.js";import"./department.e17e8884.js";const Ee={class:"admin"},Ce={class:"mt-4"},ye={class:"flex mt-4 justify-end"},ke=$({name:"admin"}),yt=$({...ke,setup(De){const b=se(),s=me({account:"",name:"",role_id:""}),h=re(!1),{pager:r,getLists:c,resetParams:A,resetPage:g}=ge({fetchFun:x,params:s}),U=l=>{be({id:l.id,avatar:l.avatar,account:l.account,name:l.name,role_id:l.role_id,job_id:l.job_id,dept_id:l.dept_id,disable:l.disable,multipoint_login:l.multipoint_login}).finally(()=>{c()})},P=async()=>{var l;h.value=!0,await B(),(l=b.value)==null||l.open("add")},R=async l=>{var n,_;h.value=!0,await B(),(n=b.value)==null||n.open("edit"),(_=b.value)==null||_.setFormData(l)},S=async l=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await he({id:l}),c()},{optionsData:z}=Fe({role:{api:we}});return pe(()=>{c()}),(l,n)=>{const _=J,w=Q,C=W,K=q,f=H,N=ue,T=X,y=Y,j=ie,i=Z,I=ee,L=te,O=oe,M=le,F=de("perms"),G=ae;return u(),k("div",Ee,[e(y,{class:"!border-none",shadow:"never"},{default:a(()=>[e(T,{class:"mb-[-16px]",model:o(s),inline:""},{default:a(()=>[e(w,{label:"\u7BA1\u7406\u5458\u8D26\u53F7"},{default:a(()=>[e(_,{modelValue:o(s).account,"onUpdate:modelValue":n[0]||(n[0]=t=>o(s).account=t),class:"w-[280px]",clearable:"",onKeyup:D(o(g),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,{label:"\u7BA1\u7406\u5458\u540D\u79F0"},{default:a(()=>[e(_,{modelValue:o(s).name,"onUpdate:modelValue":n[1]||(n[1]=t=>o(s).name=t),class:"w-[280px]",clearable:"",onKeyup:D(o(g),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,{label:"\u7BA1\u7406\u5458\u89D2\u8272"},{default:a(()=>[e(K,{class:"w-[280px]",modelValue:o(s).role_id,"onUpdate:modelValue":n[2]||(n[2]=t=>o(s).role_id=t)},{default:a(()=>[e(C,{label:"\u5168\u90E8",value:""}),(u(!0),k(ce,null,_e(o(z).role,(t,p)=>(u(),m(C,{key:p,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(w,null,{default:a(()=>[e(f,{type:"primary",onClick:o(g)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]
|