engineering/public/admin/assets/index.4c18d877.js
2024-02-27 10:28:16 +08:00

2 lines
5.1 KiB
JavaScript

import{G as q,H as G,y as H,I as W,w as z,D as J,C as K,L as Q,M as X,N as Y}from"./element-plus.517d4382.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as te,a as oe}from"./index.8b1962e9.js";import{u as ae}from"./usePaging.f6660143.js";import{u as le}from"./useDictOptions.b5854a9e.js";import{d as ne,a as se,e as ie}from"./flow_type.cbfdd90c.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_flowTypeEdit_lang.f8084036.js";import{d as T,s as pe,r as g,a0 as re,ai as me,o as s,c as D,V as e,M as t,O as c,u as l,L as u,S as de,W as ce,a8 as _e,a as V,k as fe,T as m,n as x}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";const ve=m("\u67E5\u8BE2"),ye=m("\u91CD\u7F6E"),we=m(" \u65B0\u589E "),Ce=m(" \u5220\u9664 "),be={class:"mt-4"},Ee=m(" \u7F16\u8F91 "),he=m(" \u5220\u9664 "),ke={class:"flex justify-end mt-4"},Fe=T({name:"flowTypeLists"}),_t=T({...Fe,setup(Be){const _=pe(),f=g(!1),p=re({type:"",title:""}),b=g([]),$=n=>{b.value=n.map(({id:a})=>a)},{dictData:E}=le("flow_type,flow_type_status"),{pager:d,getLists:v,resetParams:L,resetPage:A}=ae({fetchFun:ne,params:p}),S=async()=>{var n;f.value=!0,await x(),(n=_.value)==null||n.open("add")},N=async n=>{var y,w;let a=await se({id:n.id});f.value=!0,await x(),(y=_.value)==null||y.open("edit"),(w=_.value)==null||w.setFormData(a)},F=async n=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:n}),v()};return v(),(n,a)=>{const y=q,w=G,h=H,P=W,r=z,R=J,B=K,I=oe,i=Q,U=ee,M=X,O=Z,C=me("perms"),j=Y;return s(),D("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(R,{class:"mb-[-16px]",model:p,inline:""},{default:t(()=>[e(h,{label:"\u6240\u5C5E\u5206\u7C7B",prop:"type"},{default:t(()=>[e(w,{class:"w-[280px]",modelValue:p.type,"onUpdate:modelValue":a[0]||(a[0]=o=>p.type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u5206\u7C7B"},{default:t(()=>[(s(!0),D(ce,null,_e(l(E).flow_type,(o,k)=>(s(),u(y,{key:k,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(h,{label:"\u5BA1\u6279\u540D\u79F0",prop:"title"},{default:t(()=>[e(P,{class:"w-[280px]",modelValue:p.title,"onUpdate:modelValue":a[1]||(a[1]=o=>p.title=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(h,null,{default:t(()=>[e(r,{type:"primary",onClick:l(A)},{default:t(()=>[ve]),_:1},8,["onClick"]),e(r,{onClick:l(L)},{default:t(()=>[ye]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((s(),u(B,{class:"!border-none",shadow:"never"},{default:t(()=>[c((s(),u(r,{type:"primary",onClick:S},{icon:t(()=>[e(I,{name:"el-icon-Plus"})]),default:t(()=>[we]),_:1})),[[C,["oa.flow_type/add"]]]),c((s(),u(r,{disabled:!b.value.length,onClick:a[2]||(a[2]=o=>F(b.value))},{default:t(()=>[Ce]),_:1},8,["disabled"])),[[C,["oa.flow_type/delete"]]]),V("div",be,[e(M,{data:l(d).lists,onSelectionChange:$},{default:t(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u6240\u5C5E\u5206\u7C7B",prop:"type"},{default:t(({row:o})=>[e(U,{options:l(E).flow_type,value:o.type},null,8,["options","value"])]),_:1}),e(i,{label:"\u5BA1\u6279\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),e(i,{label:"\u5BA1\u6279\u6807\u8BC6",prop:"name","show-overflow-tooltip":""}),e(i,{label:"\u5E94\u7528\u90E8\u95E8",prop:"dept_name","show-overflow-tooltip":""}),e(i,{label:"\u72B6\u6001",prop:"status_text"}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:o})=>[c((s(),u(r,{type:"primary",link:"",onClick:k=>N(o)},{default:t(()=>[Ee]),_:2},1032,["onClick"])),[[C,["oa.flow_type/edit"]]]),c((s(),u(r,{type:"danger",link:"",onClick:k=>F(o.id)},{default:t(()=>[he]),_:2},1032,["onClick"])),[[C,["oa.flow_type/delete"]]])]),_:1})]),_:1},8,["data"])]),V("div",ke,[e(O,{modelValue:l(d),"onUpdate:modelValue":a[3]||(a[3]=o=>fe(d)?d.value=o:null),onChange:l(v)},null,8,["modelValue","onChange"])])]),_:1})),[[j,l(d).loading]]),f.value?(s(),u(ue,{key:0,ref_key:"editRef",ref:_,"dict-data":l(E),onSuccess:l(v),onClose:a[4]||(a[4]=o=>f.value=!1)},null,8,["dict-data","onSuccess"])):de("",!0)])}}});export{_t as default};