index-D3f7eFOY.js 4.2 KB

12
  1. var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(a,t,o)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,i=(e,a)=>{for(var t in a||(a={}))r.call(a,t)&&l(e,t,a[t]);if(o)for(var t of o(a))s.call(a,t)&&l(e,t,a[t]);return e},n=(e,a,t)=>new Promise(((o,r)=>{var s=e=>{try{i(t.next(e))}catch(a){r(a)}},l=e=>{try{i(t.throw(e))}catch(a){r(a)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(s,l);i((t=t.apply(e,a)).next())}));import{c as p,r as c,R as u}from"./index-D97FM2vD.js";/* empty css */import{_ as m}from"./FollowDialog.vue_vue_type_script_setup_true_lang-DE42W-xF.js";import{_ as d,A as h}from"./index--hQWcBbl.js";import{u as _,_ as g}from"./useTable-1XaZZdKw.js";import{_ as v}from"./user-search.vue_vue_type_script_setup_true_lang-Cv28A5Fx.js";import{f}from"./followApi-4K1o-kE0.js";import{j,r as b,ac as y,_ as w,Q as x,G as P,v as C,u as O,i as S,H as L,a6 as F,D as I,a7 as R,X as D,ai as k,n as z,k as T,aj as U}from"./vendor-C0fQtjEp.js";import{_ as q}from"./_plugin-vue_export-helper-BCo6x5W8.js";/* empty css *//* empty css *//* empty css */import"./ArtUploadImgs.vue_vue_type_script_setup_true_lang-CzmpbMuS.js";/* empty css *//* empty css */import"./el-form-item-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import"./index-CbiDiZJc.js";import"./index-DNA4NqTV.js";/* empty css */const A={class:"user-page art-full-height"};var V;const G=q(j((V=i({},{name:"SchoolFollow"}),a(V,t({__name:"index",setup(e){const a=b(!1),t=b(!1),o=b({}),r=b({name:"",phone:"",school_id:parseInt(y().query.school_id)||"",date:y().query.date||""}),s=b([]);(()=>{n(this,null,(function*(){yield p.selectList(["school_relation"]).then((e=>{s.value=e.school_relation||[]}))}))})();const{columns:l,columnChecks:j,data:q,loading:V,pagination:G,getData:X,searchParams:E,resetSearchParams:H,handleSizeChange:J,handleCurrentChange:N,refreshData:Q}=_({core:{apiFn:f.schoolList,apiParams:i({current:1,size:20},r.value),columnsFactory:()=>[{prop:"first_name",label:"校园(园区)"},{prop:"second_name",label:"关系人"},{prop:"position",label:"职位"},{prop:"phone",label:"手机号"},{prop:"weixin",label:"微信号"},{prop:"chat_imgs",label:"微信聊天记录",formatter:e=>e.chat_imgs.length>0?T(U,{src:e.chat_imgs[0],previewSrcList:e.chat_imgs,showProgress:!0,fit:"cover",title:"点击预览全部图片",style:{"max-width":"50px","max-height":"50px"},previewTeleported:!0}):""},{prop:"user_name",label:"跟进人员"},{prop:"create_date",label:"跟进时间"},{prop:"operation",label:"操作",width:120,fixed:"right",formatter:e=>T("div",[T(h,{type:"view",onClick:()=>W(e.id)})])}]}}),W=e=>{c.push({path:u.SchoolFollowInfo,query:{id:e}})},Y=e=>{Object.assign(E,i({},e)),X()},Z=()=>n(this,null,(function*(){try{a.value=!1,t.value=!1,o.value={},setTimeout((()=>{Q()}),1e3)}catch(e){}}));return(e,a)=>{const i=g,n=d,p=m,c=k,u=w("ripple"),h=w("auth");return P(),x("div",A,[C(v,{modelValue:O(r),"onUpdate:modelValue":a[0]||(a[0]=e=>S(r)?r.value=e:null),onSearch:Y,onReset:O(H),selectList:O(s)},null,8,["modelValue","onReset","selectList"]),C(c,{class:"art-table-card",shadow:"never"},{default:L((()=>[C(i,{columns:O(j),"onUpdate:columns":a[2]||(a[2]=e=>S(j)?j.value=e:null),onRefresh:O(Q)},{left:L((()=>[F((P(),I(O(R),{type:"primary",onClick:a[1]||(a[1]=e=>{z((()=>{t.value=!0}))})},{default:L((()=>a[4]||(a[4]=[D("新增跟进记录")]))),_:1,__:[4]})),[[u],[h,120301]])])),_:1},8,["columns","onRefresh"]),C(n,{loading:O(V),data:O(q),columns:O(l),pagination:O(G),"onPagination:sizeChange":O(J),"onPagination:currentChange":O(N)},null,8,["loading","data","columns","pagination","onPagination:sizeChange","onPagination:currentChange"]),C(p,{visible:O(t),"onUpdate:visible":a[3]||(a[3]=e=>S(t)?t.value=e:null),"user-data":O(o),type:"school",first_id:0,second_id:0,selectList:O(s),onSubmit:Z},null,8,["visible","user-data","selectList"])])),_:1})])}}})))),[["__scopeId","data-v-9cfe0898"]]);export{G as default};