2 lines
6.4 KiB
JavaScript
2 lines
6.4 KiB
JavaScript
import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{L as H,G as K,H as M,M as Q,N as Z,C as J,w as W,D as X}from"./element-plus.2acb577d.js";import{b as Y,d as tt}from"./index.81df6f20.js";import{u as et}from"./usePaging.23706826.js";import{a as ot,f as lt,g as at}from"./oa_Initiate.22ec88f6.js";import{_ as it}from"./edit.vue_vue_type_script_setup_true_name_oaFlowTypeEdit_lang.d3617a01.js";import st from"./detail.5b09a96d.js";import{a as rt}from"./oa_flow_type.b60fa00e.js";import{d as nt,s as pt,r as p,Z as ut,o as u,c as d,U as t,L as l,R as c,T,a9 as L,S as R,a as b,u as r,i as mt,K as dt,Q as $,n as g}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"./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.650fec0c.js";import"./index.vue_vue_type_style_index_0_lang.9e5f7fb0.js";import"./oa_flow.d67349c4.js";import"./index.230e97a9.js";import"./index.37024cd6.js";import"./department.23a87470.js";import"./index.f292cd50.js";import"./qj.vue_vue_type_script_setup_true_lang.eb4f2b33.js";import"./cc.vue_vue_type_script_setup_true_lang.20cf51c9.js";import"./wc.vue_vue_type_script_setup_true_lang.77cf44db.js";import"./jb.vue_vue_type_script_setup_true_lang.0c5c4252.js";import"./hysyd.vue_vue_type_script_setup_true_lang.846b1ca9.js";import"./gwlz.ac989f9a.js";import"./wpwx.f55edb22.js";import"./zzjy.vue_vue_type_script_setup_true_lang.312f5377.js";import"./yz.vue_vue_type_script_setup_true_lang.9c5832aa.js";import"./yc.vue_vue_type_script_setup_true_lang.4460f97f.js";import"./oa_car_cate.bcd4ddc3.js";import"./ycgh.8200c2b5.js";import"./jk.982af7dc.js";import"./fk.fd9719db.js";import"./jl.fe5b7205.js";import"./cg.a01a9507.js";import"./hdjf.vue_vue_type_script_setup_true_lang.e8a2580a.js";import"./rz.ee5a935b.js";import"./post.6b27df48.js";import"./zz.fc76839f.js";import"./lz.31ff9732.js";import"./zg.2e839ccc.js";import"./zpxq.2b57cda9.js";import"./tysp.977e92e0.js";import"./index.vue_vue_type_script_setup_true_lang.61cb6e34.js";const ct={class:"flex content"},_t={class:"tit-content"},ft=["onClick"],vt={class:"mt-2"},yt={class:"mt-4"},Bt={class:"flex mt-4 justify-end"},Ct={key:1},wt=nt({__name:"index",setup(Et){const y=pt(),F=p(!1),k=p(null),_=p(!1),A=p(1),h=p(""),B=ut({type:1}),D=async(a,e="",m="")=>{var i,w,v;A.value=e;let n=await rt({id:a});F.value=!0,await g(),(i=y.value)==null||i.open("edit"),(w=y.value)==null||w.setFormData(n),Object.keys(m).length&&((v=y.value)==null||v.setExtend(m))},O=async(a,e={})=>{var n,i;h.value=a.type_name;let m=await ot({id:a.id});_.value=!0,await g(),(n=k.value)==null||n.open(),(i=k.value)==null||i.setFormData(m)},S=async a=>{_.value=!1,await g(),D(a.cate,a.typeName,a.extends)},{pager:C,getLists:f,resetParams:P,resetPage:U}=et({fetchFun:at,params:B});p("first"),f();const V=p([]);return(async()=>{const a=await lt();V.value=a})(),(a,e)=>{const m=Y,n=H,i=K,w=M,v=J,x=W,j=X,s=Q,I=Z,q=G;return u(),d("div",ct,[t(n,{style:{flex:"1"},class:"mr-5 left"},{header:l(()=>e[5]||(e[5]=[c(" \u5BA1\u6279\u65B0\u7533\u8BF7 ")])),default:l(()=>[(u(!0),d(T,null,L(V.value.filter(o=>o.children.length>0),(o,N)=>(u(),d("div",{key:N,class:"tit"},[c(R(o.name)+" ",1),b("div",_t,[(u(!0),d(T,null,L(o.children,(E,z)=>(u(),d("div",{key:z,class:"tit-li",onClick:Ft=>D(E.id,E.title)},[t(m,{name:E.icon,color:"#FF8F4A",size:20},null,8,["name"]),b("p",vt,R(E.title),1)],8,ft))),128))])]))),128))]),_:1}),t(n,{style:{flex:"5"},class:"left"},{header:l(()=>e[6]||(e[6]=[c(" \u5BA1\u6279\u5217\u8868 ")])),default:l(()=>[t(j,{class:"mb-[-16px] mt-5",model:B,inline:""},{default:l(()=>[t(v,{label:"\u7C7B\u578B",prop:"type"},{default:l(()=>[t(w,{modelValue:B.type,"onUpdate:modelValue":e[0]||(e[0]=o=>B.type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",class:"flex-1 w-[280px]"},{default:l(()=>[t(i,{label:"\u5168\u90E8",value:1}),t(i,{label:"\u5F85\u5BA1\u6838",value:2}),t(i,{label:"\u5BA1\u6838\u4E2D",value:5}),t(i,{label:"\u5BA1\u6838\u901A\u8FC7",value:3}),t(i,{label:"\u5BA1\u6838\u4E0D\u901A\u8FC7",value:4})]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:l(()=>[t(x,{type:"primary",onClick:r(U)},{default:l(()=>e[7]||(e[7]=[c("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(x,{onClick:r(P)},{default:l(()=>e[8]||(e[8]=[c("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),b("div",yt,[t(I,{data:r(C).lists},{default:l(()=>[t(s,{type:"selection",width:"55"}),t(s,{label:"\u7533\u8BF7\u4EBA",prop:"user_name","show-overflow-tooltip":""}),t(s,{label:"\u7533\u8BF7\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),t(s,{label:"\u5BA1\u6279\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),t(s,{label:"\u6240\u5C5E\u90E8\u95E8",prop:"dept_name","show-overflow-tooltip":""}),t(s,{label:"\u5F53\u524D\u5BA1\u6279\u4EBA",prop:"check_admin_users","show-overflow-tooltip":""}),t(s,{label:"\u5BA1\u6279\u72B6\u6001",prop:"check_status_text","show-overflow-tooltip":""}),t(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:o})=>[t(x,{link:"",onClick:N=>O(o)},{default:l(()=>e[9]||(e[9]=[c(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),b("div",Bt,[t(q,{modelValue:r(C),"onUpdate:modelValue":e[1]||(e[1]=o=>mt(C)?C.value=o:null),onChange:r(f)},null,8,["modelValue","onChange"])])]),_:1}),F.value?(u(),dt(it,{key:0,ref_key:"editRef",ref:y,onSuccess:r(f),type:A.value,onClose:e[2]||(e[2]=o=>F.value=!1)},null,8,["onSuccess","type"])):$("",!0),_.value?(u(),d("div",Ct,[t(st,{ref_key:"detailRef",ref:k,onReEdit:S,onSuccess:e[3]||(e[3]=o=>(_.value=!1,r(f)())),onClose:e[4]||(e[4]=o=>(_.value=!1,r(f)())),typeName:h.value},null,8,["typeName"])])):$("",!0)])}}});const Ue=tt(wt,[["__scopeId","data-v-b045e7da"]]);export{Ue as default};
|