| 12 |
- 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-C6YR97YM.js";/* empty css */import{_ as u}from"./FollowDialog.vue_vue_type_script_setup_true_lang-TAT_o3cZ.js";import{_ as m}from"./index-CyrdNoo1.js";import{u as d,_ as h}from"./useTable-D1BPUR4h.js";import{A as _}from"./index-CpvE8YAk.js";import{_ as g}from"./user-search.vue_vue_type_script_setup_true_lang-DeYSdGqf.js";import{f as v}from"./followApi-BYHdrhua.js";import{s as f}from"./schoolRelationApi-Ds1Tg46K.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 z,a7 as A,X as D,ai as F,n as I,k as U,aj as k}from"./vendor-B2KqeU87.js";import{_ as T}from"./_plugin-vue_export-helper-BCo6x5W8.js";/* empty css *//* empty css *//* empty css */import"./ArtUploadImgs.vue_vue_type_script_setup_true_lang-BKcwv_fr.js";/* empty css *//* empty css *//* empty css */import"./el-form-item-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-CeIx2olA.js";import"./index-BmC2l1bB.js";/* empty css */const V={class:"user-page art-full-height"};var q;const Q=T(j((q=i({},{name:"SchoolFollow"}),a(q,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)||""}),s=b([]);(()=>{n(this,null,(function*(){yield f.selectList().then((e=>{s.value=e}))}))})();const{columns:l,columnChecks:j,data:T,loading:q,pagination:Q,getData:E,searchParams:G,resetSearchParams:H,handleSizeChange:M,handleCurrentChange:N,refreshData:X}=d({core:{apiFn:v.schoolList,apiParams:i({current:1,size:20},r.value),excludeParams:["daterange"],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?U(k,{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=>U("div",[U(_,{type:"view",onClick:()=>Y(e.id)})])}]}}),Y=e=>{p.push({path:c.SchoolFollowInfo,query:{id:e}})},Z=e=>{Object.assign(G,i({},e)),E()},B=()=>n(this,null,(function*(){try{a.value=!1,t.value=!1,o.value={},setTimeout((()=>{X()}),1e3)}catch(e){}}));return(e,a)=>{const i=h,n=m,p=u,c=F,d=w("ripple"),_=w("auth");return P(),x("div",V,[C(g,{modelValue:O(r),"onUpdate:modelValue":a[0]||(a[0]=e=>S(r)?r.value=e:null),onSearch:Z,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(X)},{left:L((()=>[R((P(),z(O(A),{type:"primary",onClick:a[1]||(a[1]=e=>{I((()=>{t.value=!0}))})},{default:L((()=>a[4]||(a[4]=[D("新增跟进记录")]))),_:1,__:[4]})),[[d],[_,120301]])])),_:1},8,["columns","onRefresh"]),C(n,{loading:O(q),data:O(T),columns:O(l),pagination:O(Q),"onPagination:sizeChange":O(M),"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:B},null,8,["visible","user-data","selectList"])])),_:1})])}}})))),[["__scopeId","data-v-5486b1c4"]]);export{Q as default};
|