WokerTask/public/admin/assets/examined.a2620f4c.js

2 lines
4.2 KiB
JavaScript

import{w as N,P as U,t as j,Q as q,J as A,R as Q}from"./element-plus.74337649.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.ffdfb4a0.js";import{f as W,b as z}from"./index.59d2be02.js";import{u as G}from"./usePaging.bd7a7dec.js";import{u as H}from"./useDictOptions.649aea57.js";import{e as I,f as K}from"./examined.18c47977.js";import{d as b,s as M,r as C,$ as O,aq as X,o as s,c as Y,R as m,u as n,P as p,Q as l,W as e,U as h,a as g,V as Z,j as tt,T as et,n as y}from"./@vue.f8dfc830.js";import"./lodash.3e731b89.js";import{_ as ot}from"./editCate.vue_vue_type_script_setup_true_name_flowTypeEdit_lang.c6c860b3.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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.79024f1a.js";import"./index.3b74a81e.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";const at={class:"mt-4"},it={class:"flex mt-4 justify-end"},nt=b({name:"flowTypeLists"}),Zt=b({...nt,setup(lt){const u=M(),c=C(!1),E=O({type:"",title:"",name:"",icon:"",department_ids:"",status:""}),k=C([]),D=t=>{k.value=t.map(({id:o})=>o)},{dictData:F}=H(""),{pager:r,getLists:d,resetParams:st,resetPage:rt}=G({fetchFun:K,params:E}),V=async()=>{var t;c.value=!0,await y(),(t=u.value)==null||t.open("add")},B=async t=>{var o,_;c.value=!0,await y(),(o=u.value)==null||o.open("edit"),(_=u.value)==null||_.setFormData(t)},S=async t=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await apiFlowTypeDelete({id:t}),d()},$=t=>{I({id:t.id,status:t.status})};return d(),(t,o)=>{const _=z,w=N,i=U,x=j,P=q,T=J,R=A,f=X("perms"),L=Q;return s(),Y("div",null,[m((s(),p(R,{class:"!border-none",shadow:"never"},{default:l(()=>[m((s(),p(w,{type:"primary",onClick:V},{icon:l(()=>[e(_,{name:"el-icon-Plus"})]),default:l(()=>[h(" \u65B0\u589E ")]),_:1})),[[f,["flow_type/add"]]]),g("div",at,[e(P,{data:n(r).lists,onSelectionChange:D},{default:l(()=>[h(Z(n(r))+" ",1),e(i,{label:"id",prop:"id","show-overflow-tooltip":"",width:"60"}),e(i,{label:"\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),e(i,{label:"\u5E94\u7528\u90E8\u95E8",prop:"department","show-overflow-tooltip":""}),e(i,{label:"\u6807\u8BC6",prop:"name","show-overflow-tooltip":""}),e(i,{label:"\u56FE\u6807",prop:"icon","show-overflow-tooltip":""}),e(i,{label:"\u6240\u5C5E\u5206\u7C7B",prop:"type_name","show-overflow-tooltip":""}),m((s(),p(i,{label:"\u8D26\u53F7\u72B6\u6001","min-width":"100"},{default:l(({row:a})=>[e(x,{modelValue:a.status,"onUpdate:modelValue":v=>a.status=v,"active-value":1,"inactive-value":0,onChange:v=>$(a)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1})),[[f,["auth.admin/edit"]]]),e(i,{label:"\u64CD\u4F5C",align:"center",width:"auto",fixed:"right"},{default:l(({row:a})=>[m((s(),p(w,{type:"primary",link:"",onClick:v=>B(a)},{default:l(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[f,["flow/edit"]]]),m((s(),p(w,{type:"danger",link:"",onClick:v=>S(a.id)},{default:l(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[f,["flow/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",it,[e(T,{modelValue:n(r),"onUpdate:modelValue":o[0]||(o[0]=a=>tt(r)?r.value=a:null),onChange:n(d)},null,8,["modelValue","onChange"])])]),_:1})),[[L,n(r).loading]]),n(c)?(s(),p(ot,{key:0,ref_key:"editRef",ref:u,"dict-data":n(F),onSuccess:n(d),onClose:o[1]||(o[1]=a=>c.value=!1)},null,8,["dict-data","onSuccess"])):et("",!0)])}}});export{Zt as default};