data_center/public/admin/assets/list.c7b1fc71.js

2 lines
4.9 KiB
JavaScript

import{M as I,N as M,C as O,w as Q,D as R,I as j,O as q,P as K,Q as z}from"./element-plus.9c2fdfa8.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as H}from"./usePaging.c22e2b6f.js";import{u as J}from"./useDictOptions.773276bb.js";import"./lodash.5512e984.js";import"./index.b57b84f0.js";import{d as w,$ as W,r as k,af as X,o as l,c as r,U as e,L as o,M as b,u as a,K as m,T as A,a7 as E,R as _,a as y,Q as h,k as Y}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.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"./axios.92474d72.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";const Z={class:"mt-4"},ee={key:0,style:{color:"#f56c6c"}},te={key:1,style:{color:"#67c23a"}},oe={key:2,style:{color:"#e6a23c"}},ae={class:"flex mt-4 justify-end"},le=w({name:"flowLists"}),qe=w({...le,setup(ue){const n=W({check_status:"",type:""}),g=k([{id:1,name:"\u5F85\u5BA1\u6838"},{id:2,name:"\u5DF2\u901A\u8FC7"},{id:3,name:"\u672A\u901A\u8FC7"}]),D=k([{id:2,name:"\u5546\u6237\u5165\u9A7B\u5BA1\u6279"},{id:3,name:"\u5F00\u901A\u4EA4\u6613\u5BA1\u6279"}]),V=k([]),L=c=>{V.value=c.map(({id:s})=>s)};J("");const{pager:i,getLists:C,resetParams:x,resetPage:N}=H({fetchFun:merchantApplyLists,params:n});return C(),(c,s)=>{const B=I,F=M,f=O,d=Q,P=R,v=j,u=q,S=K,T=G,U=X("perms"),$=z;return l(),r("div",null,[e(v,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(P,{class:"mb-[-16px]",model:a(n),inline:""},{default:o(()=>[e(f,{label:"\u5BA1\u6279\u7C7B\u578B",prop:"name"},{default:o(()=>[e(F,{modelValue:a(n).type,"onUpdate:modelValue":s[0]||(s[0]=t=>a(n).type=t),placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6279\u7C7B\u578B",clearable:"",class:"w-[280px]"},{default:o(()=>[(l(!0),r(A,null,E(a(D),(t,p)=>(l(),m(B,{key:p,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u5BA1\u6838\u72B6\u6001",prop:"name"},{default:o(()=>[e(F,{modelValue:a(n).check_status,"onUpdate:modelValue":s[1]||(s[1]=t=>a(n).check_status=t),placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",clearable:"",class:"w-[280px]"},{default:o(()=>[(l(!0),r(A,null,E(a(g),(t,p)=>(l(),m(B,{key:p,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,null,{default:o(()=>[e(d,{type:"primary",onClick:a(N)},{default:o(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:a(x)},{default:o(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),b((l(),m(v,{class:"!border-none",shadow:"never"},{default:o(()=>[y("div",Z,[e(S,{data:a(i).lists,onSelectionChange:L},{default:o(()=>[e(u,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"task.title","show-overflow-tooltip":""}),e(u,{label:"\u4EFB\u52A1\u63CF\u8FF0",prop:"task.content","show-overflow-tooltip":""}),e(u,{label:"\u4EFB\u52A1\u91D1\u989D",prop:"task.money","show-overflow-tooltip":""}),e(u,{label:"\u4EFB\u52A1\u63D0\u4EA4\u65F6\u95F4",prop:"task.update_time","show-overflow-tooltip":""}),e(u,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name","show-overflow-tooltip":""}),e(u,{label:"\u7247\u533A\u7ECF\u7406",prop:"area_manager","show-overflow-tooltip":""}),e(u,{label:"\u5BA1\u6838\u72B6\u6001",prop:"check_status","show-overflow-tooltip":""},{default:o(({row:t})=>[t.check_status==3?(l(),r("span",ee,"\u672A\u901A\u8FC7")):h("",!0),t.check_status==2?(l(),r("span",te,"\u5DF2\u901A\u8FC7")):h("",!0),t.check_status==1?(l(),r("span",oe,"\u5F85\u5BA1\u6838")):h("",!0)]),_:1}),e(u,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:t})=>[t.check_status<=1?b((l(),m(d,{key:0,type:"primary",link:"",onClick:p=>c.handleEdit(t,"edit")},{default:o(()=>[_(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])),[[U,["flow/edit"]]]):(l(),m(d,{key:1,type:"primary",link:"",onClick:p=>c.handleEdit(t,"details")},{default:o(()=>[_(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),y("div",ae,[e(T,{modelValue:a(i),"onUpdate:modelValue":s[2]||(s[2]=t=>Y(i)?i.value=t:null),onChange:a(C)},null,8,["modelValue","onChange"])])]),_:1})),[[$,a(i).loading]])])}}});export{qe as default};