TaskSystem/public/admin/assets/index_list.132e204a.js
2023-09-14 18:51:07 +08:00

2 lines
3.9 KiB
JavaScript

import{O as V,w as P,P as L,I as R,Q as N}from"./element-plus.b64c0a90.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.a080b28e.js";import{u as T}from"./usePaging.2ad8e1e6.js";import{u as $}from"./useDictOptions.99264916.js";import{g as I}from"./examined.cba65da6.js";import"./lodash.08438971.js";import"./index.f190d0dd.js";import Q from"./examined_popup.2bfa1d3f.js";import{d as h,s as U,r as f,$ as j,af as q,o as s,c as u,M as v,u as r,K as _,L as i,a as w,U as o,Q as n,R as K,k as M,n as O}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.js";import"./ms.a9ae1d6d.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.9561c5d9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const z={class:"mt-4"},G={key:0,style:{color:"#f56c6c"}},H={key:1,style:{color:"#67c23a"}},J={key:2,style:{color:"#e6a23c"}},W={class:"flex mt-4 justify-end"},X=h({name:"flowLists"}),Kt=h({...X,setup(Y){const m=U(),c=f(!1),C=j({name:"",check_type:"",type:"",flow_cate:"",department_ids:"",copy_uids:"",remark:"",flow_list:"",admin_id:"",status:"",delete_user_id:""}),k=f([]),F=p=>{k.value=p.map(({id:e})=>e)},{dictData:b}=$(""),{pager:l,getLists:d,resetParams:Z,resetPage:tt}=T({fetchFun:I,params:C}),y=async p=>{var e,t;c.value=!0,await O(),(e=m.value)==null||e.open("edit"),(t=m.value)==null||t.setFormData(p)};return d(),(p,e)=>{const t=V,B=P,g=L,E=S,A=R,D=q("perms"),x=N;return s(),u("div",null,[v((s(),_(A,{class:"!border-none",shadow:"never"},{default:i(()=>[w("div",z,[o(g,{data:r(l).lists,onSelectionChange:F},{default:i(()=>[o(t,{label:"ID",prop:"id"}),o(t,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),o(t,{label:"\u4EFB\u52A1\u63CF\u8FF0",prop:"remark","show-overflow-tooltip":""}),o(t,{label:"\u4EFB\u52A1\u91D1\u989D",prop:"remark","show-overflow-tooltip":""}),o(t,{label:"\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4",prop:"remark","show-overflow-tooltip":""}),o(t,{label:"\u6240\u5C5E\u516C\u53F8",prop:"remark","show-overflow-tooltip":""}),o(t,{label:"\u7247\u533A\u7ECF\u7406",prop:"remark","show-overflow-tooltip":""}),o(t,{label:"\u5F53\u524D\u5BA1\u6838\u4EBA",prop:"department","show-overflow-tooltip":""}),o(t,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:i(({row:a})=>[a.status==2?(s(),u("span",G,"\u672A\u901A\u8FC7")):n("",!0),a.status==1?(s(),u("span",H,"\u5DF2\u901A\u8FC7")):n("",!0),a.status==0?(s(),u("span",J,"\u672A\u5BA1\u6838")):n("",!0)]),_:1}),o(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:i(({row:a})=>[v((s(),_(B,{type:"primary",link:"",onClick:ot=>y(a)},{default:i(()=>[K(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[D,["flow/edit"]]])]),_:1})]),_:1},8,["data"])]),w("div",W,[o(E,{modelValue:r(l),"onUpdate:modelValue":e[0]||(e[0]=a=>M(l)?l.value=a:null),onChange:r(d)},null,8,["modelValue","onChange"])])]),_:1})),[[x,r(l).loading]]),r(c)?(s(),_(Q,{key:0,ref_key:"editRef",ref:m,"dict-data":r(b),onSuccess:r(d),onClose:e[1]||(e[1]=a=>c.value=!1)},null,8,["dict-data","onSuccess"])):n("",!0)])}}});export{Kt as default};