2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{D as Q,B as W,y as z,A as G,w as H,L as J,C as K,O as X,P as Y,Q as Z}from"./element-plus.76ad22d1.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.53484866.js";import{f as te,a as oe}from"./index.ba0b8151.js";import{u as ae}from"./usePaging.0b2adcee.js";import{u as le}from"./useDictOptions.ecef5e87.js";import{d as se,a as ue,e as ne}from"./flow.9fcb8fb6.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_flowEdit_lang.763cd50b.js";import{d as L,s as ie,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.9bff6341.js";import"./dayjs.4e54c873.js";import"./axios.c27a9cd7.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.12303e67.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ce2b95b7.js";import"./color.0b62cf11.js";import"./clone.b8d2a027.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.026d6bda.js";import"./vue-clipboard3.1a74f940.js";import"./clipboard.80ee0599.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./index.b414519e.js";import"./flow_type.b8e8b364.js";import"./index.vue_vue_type_style_index_0_lang.49591f63.js";import"./common.1c4b0c20.js";const _e=_("\u67E5\u8BE2"),fe=_("\u91CD\u7F6E"),we=_(" \u65B0\u589E "),ve={class:"mt-4"},Be=_(" \u7F16\u8F91 "),Ce=_(" \u5220\u9664 "),be={class:"flex justify-end mt-4"},he=L({name:"flowLists"}),it=L({...he,setup(ke){const f=ie(),w=D(!1),n=pe({check_type:"",status:"",name:""}),P=D([]),S=u=>{P.value=u.map(({id:a})=>a)},{dictData:b}=le("flow_type,flow_step_flow_type,flow_type_status"),{pager:m,getLists:v,resetParams:$,resetPage:T}=ae({fetchFun:se,params:n}),N=async()=>{var u;w.value=!0,await A(),(u=f.value)==null||u.open("add")},R=async u=>{var B,r;let a=await ue({id:u.id});w.value=!0,await A(),(B=f.value)==null||B.open("edit"),(r=f.value)==null||r.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=Q,r=W,h=z,E=G,c=H,O=J,F=K,I=oe,i=X,j=Y,q=ee,k=me("perms"),M=Z;return l(),y("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(O,{class:"mb-[-16px]",model:n,inline:""},{default:o(()=>[e(r,{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(r,{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(h,{label:"\u5168\u90E8",value:""}),(l(!0),y(V,null,g(s(b).flow_type,(t,d)=>(l(),p(h,{key:d,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{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(b).flow_type_status,(t,d)=>(l(),p(h,{key:d,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:o(()=>[e(c,{type:"primary",onClick:s(T)},{default:o(()=>[_e]),_:1},8,["onClick"]),e(c,{onClick:s($)},{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:N},{icon:o(()=>[e(I,{name:"el-icon-Plus"})]),default:o(()=>[we]),_:1})),[[k,["flow/add"]]]),x("div",ve,[e(j,{border:"",data:s(m).lists,onSelectionChange:S},{default:o(()=>[e(i,{label:"\u5BA1\u6279\u6D41\u7A0B\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(i,{label:"\u5BA1\u6279\u7C7B\u578B",prop:"flow_cate","show-overflow-tooltip":""}),e(i,{label:"\u5BA1\u6279\u6D41\u7C7B\u578B",prop:"check_type","show-overflow-tooltip":""}),e(i,{label:"\u6D41\u7A0B\u8BF4\u660E",prop:"remark","show-overflow-tooltip":""}),e(i,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""}),e(i,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(i,{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",be,[e(q,{modelValue:s(m),"onUpdate:modelValue":a[3]||(a[3]=t=>de(m)?m.value=t:null),onChange:s(v)},null,8,["modelValue","onChange"])])]),_:1})),[[M,s(m).loading]]),w.value?(l(),p(re,{key:0,ref_key:"editRef",ref:f,"dict-data":s(b),onSuccess:s(v),onClose:a[4]||(a[4]=t=>w.value=!1)},null,8,["dict-data","onSuccess"])):ce("",!0)])}}});export{it as default};
|