2 lines
3.9 KiB
JavaScript
2 lines
3.9 KiB
JavaScript
import{w as P,L as T,t as U,M as R,C as A,N as M}from"./element-plus.258bf9e7.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as q,a as O}from"./index.ec401e3b.js";import{u as z}from"./usePaging.f6660143.js";import{u as G}from"./useDictOptions.c644f395.js";import{_ as H}from"./editCate.vue_vue_type_script_setup_true_name_flowTypeEdit_lang.05cb9e08.js";import{d as y,r as C,a0 as I,ai as J,o as l,c as K,O as u,u as s,L as p,M as i,S as Q,V as e,a as g,T as v,U as W,k 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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";const Y=v(" \u65B0\u589E "),Z={class:"mt-4"},ee=v(" \u7F16\u8F91 "),te=v(" \u5220\u9664 "),oe={class:"flex justify-end mt-4"},ae=y({name:"flowTypeLists"}),He=y({...ae,setup(ne){const m=C(null),c=C(!1),b=I({type:"",title:"",name:"",icon:"",department_ids:"",status:""}),E=t=>{selectData.value=t.map(({id:o})=>o)},{dictData:k}=G(""),{pager:r,getLists:h,resetParams:ie,resetPage:le}=z({params:b}),D=async()=>{var t;c.value=!0,(t=m.value)==null||t.open("add")},V=async t=>{var o,d;c.value=!0,(o=m.value)==null||o.open("edit"),(d=m.value)==null||d.setFormData(t)},B=async t=>{await q.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),h()},F=t=>{};return(t,o)=>{const d=O,w=P,a=T,S=U,$=R,x=j,L=A,_=J("perms"),N=M;return l(),K("div",null,[u((l(),p(L,{class:"!border-none",shadow:"never"},{default:i(()=>[u((l(),p(w,{type:"primary",onClick:D},{icon:i(()=>[e(d,{name:"el-icon-Plus"})]),default:i(()=>[Y]),_:1})),[[_,["flow_type/add"]]]),g("div",Z,[e($,{data:s(r).lists,onSelectionChange:E},{default:i(()=>[v(W(s(r))+" ",1),e(a,{label:"id",prop:"id","show-overflow-tooltip":"",width:"60"}),e(a,{label:"\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),e(a,{label:"\u5E94\u7528\u90E8\u95E8",prop:"department","show-overflow-tooltip":""}),e(a,{label:"\u6807\u8BC6",prop:"name","show-overflow-tooltip":""}),e(a,{label:"\u56FE\u6807",prop:"icon","show-overflow-tooltip":""}),e(a,{label:"\u6240\u5C5E\u5206\u7C7B",prop:"type_name","show-overflow-tooltip":""}),u((l(),p(a,{label:"\u8D26\u53F7\u72B6\u6001","min-width":"100"},{default:i(({row:n})=>[e(S,{modelValue:n.status,"onUpdate:modelValue":f=>n.status=f,"active-value":1,"inactive-value":0,onChange:f=>F()},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1})),[[_,["auth.admin/edit"]]]),e(a,{label:"\u64CD\u4F5C",align:"center",width:"auto",fixed:"right"},{default:i(({row:n})=>[u((l(),p(w,{type:"primary",link:"",onClick:f=>V(n)},{default:i(()=>[ee]),_:2},1032,["onClick"])),[[_,["flow/edit"]]]),u((l(),p(w,{type:"danger",link:"",onClick:f=>B(n.id)},{default:i(()=>[te]),_:2},1032,["onClick"])),[[_,["flow/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",oe,[e(x,{modelValue:s(r),"onUpdate:modelValue":o[0]||(o[0]=n=>X(r)?r.value=n:null),onChange:s(h)},null,8,["modelValue","onChange"])])]),_:1})),[[N,s(r).loading]]),c.value?(l(),p(H,{key:0,ref_key:"editRef",ref:m,"dict-data":s(k),onSuccess:s(h),onClose:o[1]||(o[1]=n=>c.value=!1)},null,8,["dict-data","onSuccess"])):Q("",!0)])}}});export{He as default};
|