2025-03-20 10:46:42 +08:00

2 lines
4.1 KiB
JavaScript

import{G as P,H as S,L as O,M as R,N as T,O as $,C as U,w as M,D as j}from"./element-plus.2acb577d.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{u as G}from"./usePaging.23706826.js";import{u as H}from"./useDictOptions.4fbfb4d7.js";import{a as I,d as K}from"./oa_Initiate.22ec88f6.js";import Q from"./detail.5b09a96d.js";import{d as y,r as c,Z,o as v,c as z,U as e,L as a,u as o,R as C,M as J,K as E,a as k,i as W,Q as X,n as Y}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.81df6f20.js";import"./lodash.6bfd3540.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.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.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";import"./index.vue_vue_type_style_index_0_lang.9e5f7fb0.js";import"./index.vue_vue_type_script_setup_true_lang.61cb6e34.js";import"./index.f292cd50.js";const ee={class:"mt-4"},te={class:"flex mt-4 justify-end"},oe=y({name:"oaSealCateLists"}),He=y({...oe,setup(ae){const _=c(null),i=c(!1),w=c(""),p=Z({title:"",status:""}),g=c([]),h=u=>{g.value=u.map(({id:t})=>t)};H("");const{pager:r,getLists:m,resetParams:D,resetPage:F}=G({fetchFun:K,params:p}),x=async u=>{var n,d;w.value=u.type_name;let t=await I({id:u.id});i.value=!0,await Y(),(n=_.value)==null||n.open(),(d=_.value)==null||d.setFormData(t)};return m(),(u,t)=>{const n=P,d=S,B=U,f=M,V=j,b=O,l=R,A=T,N=q,L=$;return v(),z("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(V,{class:"mb-[-16px]",model:o(p),inline:""},{default:a(()=>[e(B,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[e(d,{modelValue:o(p).status,"onUpdate:modelValue":t[0]||(t[0]=s=>o(p).status=s),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!flex-1 w-[280px]"},{default:a(()=>[e(n,{label:"\u5168\u90E8",value:0}),e(n,{label:"\u5E26\u6211\u5BA1\u6279",value:1}),e(n,{label:"\u6211\u5DF2\u5BA1\u6279",value:2})]),_:1},8,["modelValue"])]),_:1}),e(B,null,{default:a(()=>[e(f,{type:"primary",onClick:o(F)},{default:a(()=>t[4]||(t[4]=[C("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(f,{onClick:o(D)},{default:a(()=>t[5]||(t[5]=[C("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),J((v(),E(b,{class:"!border-none",shadow:"never"},{default:a(()=>[k("div",ee,[e(A,{data:o(r).lists,onSelectionChange:h},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u7533\u8BF7\u4EBA",prop:"user_name","show-overflow-tooltip":""}),e(l,{label:"\u7533\u8BF7\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(l,{label:"\u5BA1\u6279\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),e(l,{label:"\u6240\u5C5E\u90E8\u95E8",prop:"dept_name","show-overflow-tooltip":""}),e(l,{label:"\u5F53\u524D\u5BA1\u6279\u4EBA",prop:"check_admin_users","show-overflow-tooltip":""}),e(l,{label:"\u5BA1\u6279\u72B6\u6001",prop:"check_status_text","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:s})=>[e(f,{type:"primary",link:"",onClick:le=>x(s)},{default:a(()=>t[6]||(t[6]=[C(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),k("div",te,[e(N,{modelValue:o(r),"onUpdate:modelValue":t[1]||(t[1]=s=>W(r)?r.value=s:null),onChange:o(m)},null,8,["modelValue","onChange"])])]),_:1})),[[L,o(r).loading]]),o(i)?(v(),E(Q,{key:0,ref_key:"detailRef",ref:_,onSuccess:t[2]||(t[2]=s=>(i.value=!1,o(m)())),onClose:t[3]||(t[3]=s=>(i.value=!1,o(m)())),typeName:o(w)},null,8,["typeName"])):X("",!0)])}}});export{He as default};