2 lines
7.8 KiB
JavaScript
2 lines
7.8 KiB
JavaScript
import{I as Z,y as ee,G as oe,H as te,w as le,D as ae,C as ue,L as ne,b as se,M as ie,N as me}from"./element-plus.517d4382.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as de,a as ce}from"./index.8b1962e9.js";import{u as _e}from"./usePaging.f6660143.js";import{u as fe}from"./useDictOptions.b5854a9e.js";import{_ as we,a as Fe,b as $,c as ve}from"./edit.vue_vue_type_script_setup_true_name_customFollowEdit_lang.27d6ddae.js";import"./lodash.1d82ee7c.js";/* empty css */import Be from"./detail.cd1e6fac.js";import{d as T,s as L,r as x,a0 as P,ai as Ee,o as a,c as f,V as e,M as l,O as w,u as m,L as p,S as R,W as S,a8 as U,a as N,k as Ce,T as c,n as k}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"./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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.51f10eaa.js";import"./custom.99349afc.js";import"./index.b17dae19.js";import"./index.e6dda1f5.js";const be=c("\u67E5\u8BE2"),he=c("\u91CD\u7F6E"),ye=c(" \u65B0\u589E "),De=c(" \u5220\u9664 "),xe={class:"mt-4"},ke={key:0},Ae={key:1},Ve=c(" \u7F16\u8F91 "),ge=c(" \u5220\u9664 "),$e=c(" \u8BE6\u60C5 "),Le={class:"flex justify-end mt-4"},Pe=T({name:"customFollowLists"}),xo=T({...Pe,setup(Re){const h=L(),B=L(),E=x(!1),y=x(!1);P([{name:"\u4ECA\u65E5\u8DDF\u8FDB",count:1e3},{name:"\u7535\u8BDD",count:1e3},{name:"\u4E0A\u95E8",count:1e3},{name:"\u6765\u8BBF\u63A5\u5F85",count:1e3},{name:"\u4F1A\u8BAE",count:1e3},{name:"\u57F9\u8BAD",count:1e3},{name:"\u5546\u52A1\u9910\u996E",count:1e3},{name:"\u5916\u51FA\u6D3B\u52A8",count:1e3},{name:"\u5176\u5B83",count:1e3}]);const n=P({custom_id:"",name:"",custom_name:"",contacts:"",executor:"",date:"",types:"",admin_id:"",description:"",annex:"",coordinate:"",next_follow_date:"",status:""}),D=x([]),I=i=>{D.value=i.map(({id:t})=>t)},{dictData:C}=fe("follow_type"),{pager:F,getLists:b,resetParams:M,resetPage:O}=_e({fetchFun:Fe,params:n}),j=async()=>{var i;E.value=!0,await k(),(i=B.value)==null||i.open("add")},q=async i=>{var r,s;let t=await $({id:i.id});E.value=!0,await k(),(r=B.value)==null||r.open("edit"),(s=B.value)==null||s.setFormData(t)},A=async i=>{await de.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ve({id:i}),b()},z=async i=>{var r,s;let t=await $({id:i.id});y.value=!0,await k(),(r=h.value)==null||r.open(),(s=h.value)==null||s.setFormData(t)};return b(),(i,t)=>{const r=Z,s=ee,V=oe,G=te,d=le,H=ae,g=ue,W=ce,u=ne,J=pe,K=se,Q=ie,X=re,v=Ee("perms"),Y=me;return a(),f("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(H,{class:"mb-[-16px]",model:n,inline:""},{default:l(()=>[e(s,{label:"\u4E3B\u9898",prop:"name"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:n.name,"onUpdate:modelValue":t[0]||(t[0]=o=>n.name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:n.custom_name,"onUpdate:modelValue":t[1]||(t[1]=o=>n.custom_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u8054\u7CFB\u4EBA",prop:"contacts"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:n.contacts,"onUpdate:modelValue":t[2]||(t[2]=o=>n.contacts=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u6267\u884C\u4EBA",prop:"executor"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:n.executor,"onUpdate:modelValue":t[3]||(t[3]=o=>n.executor=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6267\u884C\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u7C7B\u578B",prop:"types"},{default:l(()=>[e(G,{class:"w-[280px]",modelValue:n.types,"onUpdate:modelValue":t[4]||(t[4]=o=>n.types=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},{default:l(()=>[e(V,{label:"\u5168\u90E8",value:""}),(a(!0),f(S,null,U(m(C).types,(o,_)=>(a(),p(V,{key:_,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[e(d,{type:"primary",onClick:m(O)},{default:l(()=>[be]),_:1},8,["onClick"]),e(d,{onClick:m(M)},{default:l(()=>[he]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),w((a(),p(g,{class:"!border-none",shadow:"never"},{default:l(()=>[w((a(),p(d,{type:"primary",onClick:j},{icon:l(()=>[e(W,{name:"el-icon-Plus"})]),default:l(()=>[ye]),_:1})),[[v,["custom_follow.custom_follow/add"]]]),w((a(),p(d,{disabled:!D.value.length,onClick:t[5]||(t[5]=o=>A(D.value))},{default:l(()=>[De]),_:1},8,["disabled"])),[[v,["custom_follow.custom_follow/delete"]]]),N("div",xe,[e(Q,{data:m(F).lists,onSelectionChange:I},{default:l(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(u,{label:"\u8DDF\u8FDB\u4E3B\u9898",prop:"name","show-overflow-tooltip":""}),e(u,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(u,{label:"\u8054\u7CFB\u4EBA",prop:"custom_master_name","show-overflow-tooltip":""}),e(u,{label:"\u65E5\u671F",prop:"date","show-overflow-tooltip":""}),e(u,{label:"\u7C7B\u578B",prop:"types"},{default:l(({row:o})=>[e(J,{options:m(C).follow_type,value:o.types},null,8,["options","value"])]),_:1}),e(u,{label:"\u6267\u884C\u4EBA",prop:"executor","show-overflow-tooltip":""}),e(u,{label:"\u884C\u52A8\u63CF\u8FF0",prop:"description","show-overflow-tooltip":""}),e(u,{label:"\u9644\u4EF6/\u73B0\u573A\u7167\u7247",prop:"annex"},{default:l(({row:o})=>[o.annex&&o.annex.length>0?(a(),f("div",ke,[(a(!0),f(S,null,U(o.annex,_=>(a(),f("div",null,[e(K,{style:{width:"50px",height:"50px","z-index":"9999"},src:_},null,8,["src"])]))),256))])):(a(),f("div",Ae,"\u6682\u65E0\u9644\u4EF6/\u73B0\u573A\u7167\u7247"))]),_:1}),e(u,{label:"\u4F4D\u7F6E",prop:"coordinate","show-overflow-tooltip":""}),e(u,{label:"\u4E0B\u6B21\u56DE\u8BBF\u65E5\u671F",prop:"next_follow_date","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:l(({row:o})=>[w((a(),p(d,{type:"primary",link:"",onClick:_=>q(o)},{default:l(()=>[Ve]),_:2},1032,["onClick"])),[[v,["custom_follow.custom_follow/edit"]]]),w((a(),p(d,{type:"danger",link:"",onClick:_=>A(o.id)},{default:l(()=>[ge]),_:2},1032,["onClick"])),[[v,["custom_follow.custom_follow/delete"]]]),w((a(),p(d,{link:"",onClick:_=>z(o)},{default:l(()=>[$e]),_:2},1032,["onClick"])),[[v,["custom_follow.custom_follow/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",Le,[e(X,{modelValue:m(F),"onUpdate:modelValue":t[6]||(t[6]=o=>Ce(F)?F.value=o:null),onChange:m(b)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,m(F).loading]]),E.value?(a(),p(we,{key:0,ref_key:"editRef",ref:B,"dict-data":m(C),onSuccess:m(b),onClose:t[7]||(t[7]=o=>E.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0),y.value?(a(),p(Be,{key:1,ref_key:"detailRef",ref:h,"dict-data":m(C),onClose:t[8]||(t[8]=o=>y.value=!1)},null,8,["dict-data"])):R("",!0)])}}});export{xo as default};
|