2 lines
5.2 KiB
JavaScript
2 lines
5.2 KiB
JavaScript
import{w as N,P as U,t as I,Q as j,J as q,R as Q}from"./element-plus.ff90c99c.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{b as W}from"./index.872975fb.js";import{u as z}from"./usePaging.bd7a7dec.js";import{u as G}from"./useDictOptions.09fdf1bc.js";import{g as H,h as K}from"./examined.fb26f476.js";import"./lodash.3e731b89.js";import{_ as M}from"./editFlow.vue_vue_type_script_setup_true_name_flowEdit_lang.474a034f.js";import{d as B,s as O,r as E,$ as X,aq as Y,o as e,c as n,R as d,u as p,P as r,Q as u,W as o,U as k,a as C,T as i,j as Z,n as g}from"./@vue.f8dfc830.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.000fc3bb.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./dialog_index.vue_vue_type_script_setup_true_name_companyLists_lang.1b274b12.js";import"./admin.ca17c2a9.js";const tt={class:"mt-4"},et={key:0},ot={key:1},at={key:2},st={key:3},it={key:4},lt={key:5},nt={key:6},ut={key:7},pt={class:"flex mt-4 justify-end"},rt=B({name:"flowLists"}),le=B({...rt,setup(mt){const c=O(),_=E(!1),D=X({name:"",check_type:"",type:"",flow_cate:"",department_ids:"",copy_uids:"",remark:"",flow_list:"",admin_id:"",status:"",delete_user_id:""}),b=E([]),A=a=>{b.value=a.map(({id:l})=>l)},{dictData:F}=G(""),{pager:m,getLists:y,resetParams:dt,resetPage:ct}=z({fetchFun:K,params:D}),V=async()=>{var a;_.value=!0,await g(),(a=c.value)==null||a.open("add")},$=async a=>{var l,f;_.value=!0,await g(),(l=c.value)==null||l.open("edit"),(f=c.value)==null||f.setFormData(a)},P=a=>{console.log(a.status),H({id:a.id,status:a.status})};return y(),(a,l)=>{const f=W,w=N,s=U,S=I,x=j,R=J,T=q,h=Y("perms"),L=Q;return e(),n("div",null,[d((e(),r(T,{class:"!border-none",shadow:"never"},{default:u(()=>[d((e(),r(w,{type:"primary",onClick:V},{icon:u(()=>[o(f,{name:"el-icon-Plus"})]),default:u(()=>[k(" \u65B0\u589E ")]),_:1})),[[h,["flow/add"]]]),C("div",tt,[o(x,{data:p(m).lists,onSelectionChange:A},{default:u(()=>[o(s,{type:"selection",width:"55"}),o(s,{label:"\u5BA1\u6279\u6D41\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),o(s,{label:"\u5E94\u7528\u6A21\u5757",prop:"type","show-overflow-tooltip":""},{default:u(({row:t})=>[t.type==1?(e(),n("span",et,"\u5047\u52E4")):i("",!0),t.type==2?(e(),n("span",ot,"\u884C\u653F")):i("",!0),t.type==3?(e(),n("span",at,"\u8D22\u52A1")):i("",!0),t.type==4?(e(),n("span",st,"\u4EBA\u4E8B")):i("",!0),t.type==5?(e(),n("span",it,"\u5176\u4ED6")):i("",!0),t.type==6?(e(),n("span",lt,"\u62A5\u9500")):i("",!0),t.type==7?(e(),n("span",nt,"\u53D1\u7968")):i("",!0),t.type==8?(e(),n("span",ut,"\u5408\u540C")):i("",!0)]),_:1}),o(s,{label:"\u5E94\u7528\u5BA1\u6279\u7C7B\u578Bid",prop:"flow_cate","show-overflow-tooltip":""}),o(s,{label:"\u5E94\u7528\u90E8\u95E8",prop:"department","show-overflow-tooltip":""}),o(s,{label:"\u6284\u9001\u4EBAID",prop:"copy_uids","show-overflow-tooltip":""}),o(s,{label:"\u6D41\u7A0B\u8BF4\u660E",prop:"remark","show-overflow-tooltip":""}),o(s,{label:"\u6D41\u7A0B\u6570\u636E\u5E8F\u5217\u5316",prop:"flow_list","show-overflow-tooltip":""}),o(s,{label:"\u521B\u5EFA\u4EBAID",prop:"admin_id","show-overflow-tooltip":""}),d((e(),r(s,{label:"\u8D26\u53F7\u72B6\u6001","min-width":"100"},{default:u(({row:t})=>[t.root!=1?(e(),r(S,{key:0,modelValue:t.status,"onUpdate:modelValue":v=>t.status=v,"active-value":1,"inactive-value":0,onChange:v=>P(t)},null,8,["modelValue","onUpdate:modelValue","onChange"])):i("",!0)]),_:1})),[[h,["auth.admin/edit"]]]),o(s,{label:"\u5220\u9664\u4EBAID",prop:"delete_user_id","show-overflow-tooltip":""}),o(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:u(({row:t})=>[d((e(),r(w,{type:"primary",link:"",onClick:v=>$(t)},{default:u(()=>[k(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["flow/edit"]]]),d((e(),r(w,{type:"danger",link:"",onClick:v=>a.handleDelete(t.id)},{default:u(()=>[k(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["flow/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",pt,[o(R,{modelValue:p(m),"onUpdate:modelValue":l[0]||(l[0]=t=>Z(m)?m.value=t:null),onChange:p(y)},null,8,["modelValue","onChange"])])]),_:1})),[[L,p(m).loading]]),p(_)?(e(),r(M,{key:0,ref_key:"editRef",ref:c,"dict-data":p(F),onSuccess:p(y),onClose:l[1]||(l[1]=t=>_.value=!1)},null,8,["dict-data","onSuccess"])):i("",!0)])}}});export{le as default};
|