2 lines
6.3 KiB
JavaScript
2 lines
6.3 KiB
JavaScript
|
import{B as q,C as G,M as H,N as J,w as W,D as X,I as Y,O as Z,o as ee,t as te,P as oe,Q as ae}from"./element-plus.9c2fdfa8.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{f as ne,b as ie}from"./index.b57b84f0.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.391d1cbb.js";import{d as $,s as ue,$ as se,r as re,j as pe,af as de,o as m,c as y,U as e,L as a,M as v,u as o,K as s,Q as C,a8 as D,T as ce,a7 as _e,R as d,a as V,k as fe,n as B}from"./@vue.53f8d7c3.js";import{a as x,b as ve,e as be}from"./admin.bb6f7166.js";import{r as he}from"./role.38f9c5c3.js";import{a as we}from"./useDictOptions.773276bb.js";import{u as Fe}from"./usePaging.c22e2b6f.js";import{_ as ge}from"./edit.vue_vue_type_script_setup_true_lang.c893f638.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.5512e984.js";import"./axios.92474d72.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";import"./index.3fc23cf2.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";import"./picker.5ad7fc14.js";import"./index.a9321345.js";import"./index.b370dd86.js";import"./index.06c1697f.js";import"./index.vue_vue_type_script_setup_true_lang.aa03e8e3.js";import"./vue3-video-play.65ddc377.js";import"./vuedraggable.c7bbafb5.js";import"./vue.a327c52f.js";import"./sortablejs.cb65aecb.js";import"./post.e99bb110.js";import"./department.e3fb3938.js";const Ce={class:"admin"},Ee={class:"mt-4"},ke={class:"flex mt-4 justify-end"},ye=$({name:"admin"}),Bt=$({...ye,setup(De){const b=ue(),u=se({account:"",name:"",role_id:""}),h=re(!1),{pager:r,getLists:c,resetParams:A,resetPage:g}=Fe({fetchFun:x,params:u}),U=l=>{ve({id:l.id,account:l.account,name:l.name,role_id:l.role_id,disable:l.disable,multipoint_login:l.multipoint_login}).finally(()=>{c()})},K=async()=>{var l;h.value=!0,await B(),(l=b.value)==null||l.open("add")},P=async l=>{var n,_;h.value=!0,await B(),(n=b.value)==null||n.open("edit"),(_=b.value)==null||_.setFormData(l)},z=async l=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await be({id:l}),c()},{optionsData:I}=we({role:{api:he}});return pe(()=>{c()}),(l,n)=>{const _=q,w=G,E=H,L=J,f=W,N=me,R=X,k=Y,S=ie,i=Z,T=ee,M=te,O=oe,j=le,F=de("perms"),Q=ae;return m(),y("div",Ce,[e(k,{class:"!border-none",shadow:"never"},{default:a(()=>[e(R,{class:"mb-[-16px]",model:o(u),inline:""},{default:a(()=>[e(w,{label:"\u7BA1\u7406\u5458\u8D26\u53F7"},{default:a(()=>[e(_,{modelValue:o(u).account,"onUpdate:modelValue":n[0]||(n[0]=t=>o(u).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(u).name,"onUpdate:modelValue":n[1]||(n[1]=t=>o(u).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(L,{class:"w-[280px]",modelValue:o(u).role_id,"onUpdate:modelValue":n[2]||(n[2]=t=>o(u).role_id=t)},{default:a(()=>[e(E,{label:"\u5168\u90E8",value:""}),(m(!0),y(ce,null,_e(o(I).role,(t,p)=>(m(),s(E,{key:p,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(w
|