index-B6ziZ7GG.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{r as p,R as c}from"./index-D3Sj78sj.js";/* empty css */import{_ as u}from"./FollowDialog.vue_vue_type_script_setup_true_lang-KnPqCyCf.js";import{_ as m,A as d}from"./index-aAZnBEH6.js";import{u as h,_}from"./useTable-BgDTv1AN.js";import{_ as g}from"./user-search.vue_vue_type_script_setup_true_lang-BPjlzV5B.js";import{f as v}from"./followApi-D4Ousbh6.js";import{s as f}from"./schoolRelationApi-lgQy-99d.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 R,D as F,a7 as I,X as D,ai as k,n as z,k as A,aj as T}from"./vendor-C0fQtjEp.js";import{_ as U}from"./_plugin-vue_export-helper-BCo6x5W8.js";/* empty css *//* empty css *//* empty css */import"./ArtUploadImgs.vue_vue_type_script_setup_true_lang-BLFQ6HVl.js";/* empty css *//* empty css */import"./el-form-item-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import"./index-Cty_weSk.js";import"./index-DJIpyRzK.js";/* empty css */const q={class:"user-page art-full-height"};var V;const G=U(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*(){const e=yield f.selectList();s.value=e}))})();const{columns:l,columnChecks:j,data:U,loading:V,pagination:G,getData:X,searchParams:E,resetSearchParams:H,handleSizeChange:J,handleCurrentChange:N,refreshData:Q}=h({core:{apiFn:v.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?A(T,{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=>A("div",[A(d,{type:"view",onClick:()=>W(e.id)})])}]}}),W=e=>{p.push({path:c.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=_,n=m,p=u,c=k,d=w("ripple"),h=w("auth");return P(),x("div",q,[C(g,{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((()=>[R((P(),F(O(I),{type:"primary",onClick:a[1]||(a[1]=e=>{z((()=>{t.value=!0}))})},{default:L((()=>a[4]||(a[4]=[D("新增跟进记录")]))),_:1,__:[4]})),[[d],[h,120301]])])),_:1},8,["columns","onRefresh"]),C(n,{loading:O(V),data:O(U),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-ef23345c"]]);export{G as default};