engineering/public/admin/assets/index.fcc14f5c.js
2024-03-04 15:04:21 +08:00

2 lines
5.4 KiB
JavaScript

import{I as G,y as H,G as W,H as z,w as J,D as K,C as Q,L as X,M as Y,N as Z}from"./element-plus.258bf9e7.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as te,a as oe}from"./index.ec401e3b.js";import{u as ae}from"./usePaging.f6660143.js";import{u as le}from"./useDictOptions.c644f395.js";import{d as se,a as ue,e as ne}from"./flow.825559ec.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_flowEdit_lang.0e81b1ca.js";import{d as L,s as re,r as D,a0 as pe,ai as me,o as l,c as y,V as e,M as o,O as C,u as s,L as p,S as ce,W as V,a8 as g,a as x,k as de,T as _,n as A}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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./flow_type.c34ca475.js";import"./index.vue_vue_type_style_index_0_lang.0ff67de9.js";import"./common.c510575b.js";const _e=_("\u67E5\u8BE2"),fe=_("\u91CD\u7F6E"),we=_(" \u65B0\u589E "),ve={class:"mt-4"},Be=_(" \u7F16\u8F91 "),Ce=_(" \u5220\u9664 "),he={class:"flex justify-end mt-4"},be=L({name:"flowLists"}),mt=L({...be,setup(ke){const f=re(),w=D(!1),n=pe({check_type:"",status:"",name:""}),S=D([]),$=u=>{S.value=u.map(({id:a})=>a)},{dictData:h}=le("flow_type,flow_step_flow_type,flow_type_status"),{pager:m,getLists:v,resetParams:N,resetPage:P}=ae({fetchFun:se,params:n}),T=async()=>{var u;w.value=!0,await A(),(u=f.value)==null||u.open("add")},R=async u=>{var B,i;let a=await ue({id:u.id});w.value=!0,await A(),(B=f.value)==null||B.open("edit"),(i=f.value)==null||i.setFormData(a)},U=async u=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:u}),v()};return v(),(u,a)=>{const B=G,i=H,b=W,E=z,c=J,I=K,F=Q,M=oe,r=X,O=Y,j=ee,k=me("perms"),q=Z;return l(),y("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(I,{class:"mb-[-16px]",model:n,inline:""},{default:o(()=>[e(i,{label:"\u6D41\u7A0B\u540D\u79F0",prop:"title"},{default:o(()=>[e(B,{class:"w-[280px]",modelValue:n.name,"onUpdate:modelValue":a[0]||(a[0]=t=>n.name=t),placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5BA1\u6279\u7C7B\u578B",prop:"type"},{default:o(()=>[e(E,{class:"w-[280px]",modelValue:n.check_type,"onUpdate:modelValue":a[1]||(a[1]=t=>n.check_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u5206\u7C7B"},{default:o(()=>[e(b,{label:"\u5168\u90E8",value:""}),(l(!0),y(V,null,g(s(h).flow_type,(t,d)=>(l(),p(b,{key:d,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u72B6\u6001",prop:"title"},{default:o(()=>[e(E,{class:"w-[280px]",modelValue:n.status,"onUpdate:modelValue":a[2]||(a[2]=t=>n.status=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:o(()=>[(l(!0),y(V,null,g(s(h).flow_type_status,(t,d)=>(l(),p(b,{key:d,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,null,{default:o(()=>[e(c,{type:"primary",onClick:s(P)},{default:o(()=>[_e]),_:1},8,["onClick"]),e(c,{onClick:s(N)},{default:o(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),C((l(),p(F,{class:"!border-none",shadow:"never"},{default:o(()=>[C((l(),p(c,{type:"primary",onClick:T},{icon:o(()=>[e(M,{name:"el-icon-Plus"})]),default:o(()=>[we]),_:1})),[[k,["flow/add"]]]),x("div",ve,[e(O,{data:s(m).lists,onSelectionChange:$},{default:o(()=>[e(r,{label:"\u5BA1\u6279\u6D41\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(r,{label:"\u5BA1\u6279\u7C7B\u578B",prop:"flow_cate","show-overflow-tooltip":""}),e(r,{label:"\u5BA1\u6279\u6D41\u7C7B\u578B",prop:"check_type","show-overflow-tooltip":""}),e(r,{label:"\u6D41\u7A0B\u8BF4\u660E",prop:"remark","show-overflow-tooltip":""}),e(r,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""}),e(r,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:t})=>[C((l(),p(c,{type:"primary",link:"",onClick:d=>R(t)},{default:o(()=>[Be]),_:2},1032,["onClick"])),[[k,["oa.flow/edit"]]]),C((l(),p(c,{type:"danger",link:"",onClick:d=>U(t.id)},{default:o(()=>[Ce]),_:2},1032,["onClick"])),[[k,["oa.flow/delete"]]])]),_:1})]),_:1},8,["data"])]),x("div",he,[e(j,{modelValue:s(m),"onUpdate:modelValue":a[3]||(a[3]=t=>de(m)?m.value=t:null),onChange:s(v)},null,8,["modelValue","onChange"])])]),_:1})),[[q,s(m).loading]]),w.value?(l(),p(ie,{key:0,ref_key:"editRef",ref:f,"dict-data":s(h),onSuccess:s(v),onClose:a[4]||(a[4]=t=>w.value=!1)},null,8,["dict-data","onSuccess"])):ce("",!0)])}}});export{mt as default};