2 lines
8.3 KiB
JavaScript
2 lines
8.3 KiB
JavaScript
|
import{B as le,C as ie,M as se,N as me,w as re,D as ce,I as de,O as pe,o as _e,t as fe,P as Ee,L as Fe,Q as ve}from"./element-plus.b0ecf6ae.js";import{_ as he}from"./index.vue_vue_type_script_setup_true_lang.ebbecf1a.js";import{f as V,b as ye,d as Ce}from"./index.2ce58885.js";import{_ as ge}from"./index.vue_vue_type_script_setup_true_lang.94a616a7.js";import{u as Be}from"./vue-router.9f65afb1.js";import{d as N,s as De,$ as be,r as C,j as ke,af as we,o as n,c as E,U as t,L as a,u as o,a8 as Ae,T as Ve,a7 as xe,K as s,R as m,M as F,a as g,S as Se,Q as x,k as R,n as S,bf as Ie,be as $e}from"./@vue.51d7f2d8.js";import{a as M,g as Pe,s as ze,b as Ue,e as Le}from"./admin.68b3b9d8.js";import{r as Re}from"./role.ebea39d7.js";import{a as Me}from"./useDictOptions.c461c83a.js";import{u as Ne}from"./usePaging.60d02673.js";import{_ as Te}from"./edit.vue_vue_type_style_index_0_lang.3bd054b7.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.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.ffb5376d.js";import"./axios.f9df025a.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.4b0c77cb.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./index.fb62f914.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./post.6253a398.js";import"./department.40fa5474.js";import"./common.231fd6fa.js";import"./dict.faa8fd3a.js";import"./dialog_index.vue_vue_type_script_setup_true_name_companyLists_lang.cbea4354.js";import"./company.a117638c.js";const Ke=B=>(Ie("data-v-f5328fb9"),B=B(),$e(),B),Oe={class:"admin"},je={class:"mt-4"},qe={key:0,style:{color:"#67c23a"}},Qe={key:1,style:{color:"#fe0000"}},Ge={style:{display:"flex"}},He={class:"flex mt-4 justify-end"},Je=Ke(()=>g("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),We={key:0,class:"content"},Xe={key:1,class:"content"},Ye={class:"btn_menu"},Ze=N({name:"admin"}),et=N({...Ze,setup(B){var z;const I=Be(),_=De(),d=be({name:"",role_id:"",company_id:""}),$=C("");I.query.company_id&&(d.company_id=(z=I.query.company_id)==null?void 0:z.toString());const D=C(!1),w=C(!1),b=()=>{D.value=!1,w.value=!1},T=()=>{Pe({id:$.value}).then(()=>{V.msgSuccess("\u53D1\u9001\u6210\u529F")}),b()},K=()=>{ze({id:$.value}).then(u=>{V.msgSuccess("\u53D1\u9001\u6210\u529F")}),b()},v=C(!1),{pager:f,getLists:h,resetParams:O,resetPage:P}=Ne({fetchFun:M,params:d}),j=u=>{Ue({id:u.id,account:u.account,name:u.name,role_id:u.role_id,disable:u.disable,multipoint_login:u.multipoint_login}).finally(()=>{h()})},k=C(!1),q=async()=>{var u;k.value=!1,v.value=!0,await S(),(u=_.value)==null||u.open("add")},Q=async u=>{var l,p;k.value=!1,v.value=!0,await S(),(l=_.value)==null||l.open("edit"),(p=_.value)==null||p.setFormData(u)},G=async u=>{var l,p;k.value=!1,v.value=!0,await S(),(l=_.value)==null||l.open("view"),(p=_.value)==null||p.setFormData(u)},H=async u=>{await V.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Le({id:u}),h()},{optionsData:J}=Me({role:{api:Re}});return ke(()=>{h()}),(u,l)=>{const p=le,A=ie,U=se,W=me,c=re,X=ge,Y=ce,L=de,Z=ye,i=pe,ee=_e,te=fe,ae=Ee,oe=he,ue=Fe,y=we("perms"),ne=ve;return n(),E("div",Oe,[t(L,{class:"!border-none",shadow:"never"},{default:a(()=>[t(Y,{class:"mb-[-16px]",model:o(d),inline:""},{default:a(()=>[t(A,{label:"\u7BA1\u7406\u5458\u540D\u79F0"},{default:a(()=>[t(p,{modelValue:o(d).name,"onUpdate:modelValue":l[0]||(l[0]=e=>o(d).name=e),class:"w-[280px]",clearable:"",onKeyup:Ae(o(P),["enter"])},null,8,["modelValue","onKeyup"])]
|