| 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{c as p,r as c,R as u}from"./index-BlKwAQr1.js";/* empty css */import{_ as m}from"./FollowDialog.vue_vue_type_script_setup_true_lang-D2XbQEvq.js";import{_ as d,A as h}from"./index-DI0Y5kwA.js";import{u as _,_ as g,d as v}from"./useTable-Bf5q5X3c.js";import{_ as f}from"./user-search.vue_vue_type_script_setup_true_lang-YkuSOGyE.js";import{f as j}from"./followApi-vVn0qJMB.js";import{j as b,r as y,ac as w,_ as x,Q as P,G as C,v as O,u as S,i as L,H as F,a6 as I,D as R,a7 as D,X as k,ai as z,n as T,k as U,aj as q}from"./vendor-C0fQtjEp.js";import{_ as A}from"./_plugin-vue_export-helper-BCo6x5W8.js";/* empty css *//* empty css *//* empty css */import"./ArtUploadImgs.vue_vue_type_script_setup_true_lang-BebyldgK.js";/* empty css *//* empty css */import"./el-form-item-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import"./index-DVPwqhSm.js";import"./index-D-7T9WcD.js";/* empty css */const V={class:"user-page art-full-height"};var G;const X=A(b((G=i({},{name:"SchoolFollow"}),a(G,t({__name:"index",setup(e){const a=y(!1),t=y(!1),o=y({}),r=y({name:"",phone:"",school_id:parseInt(w().query.school_id)||"",date:w().query.date||""}),s=y([]);(()=>{n(this,null,(function*(){yield p.selectList(["school_relation"]).then((e=>{s.value=e.school_relation||[]}))}))})();const{columns:l,columnChecks:b,data:A,loading:G,pagination:X,getData:$,searchParams:E,resetSearchParams:H,handleSizeChange:J,handleCurrentChange:M,refreshData:N}=_({core:{apiFn:j.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?U(q,{src:e.chat_imgs[0]+"!max100",previewSrcList:e.chat_imgs,showProgress:!0,fit:"cover",title:`点击预览全部图片,共${e.chat_imgs.length}张`,style:{"max-width":"50px","max-height":"50px"},previewTeleported:!0}):""},{prop:"user_name",label:"跟进人员"},{prop:"create_date",label:"跟进时间"},{prop:"operation",label:"操作",width:"Mobile"==v()?60:120,fixed:"right",formatter:e=>U("div",[U(h,{type:"view",onClick:()=>Q(e.id)})])}]}}),Q=e=>{c.push({path:u.SchoolFollowInfo,query:{id:e}})},W=e=>{Object.assign(E,i({},e)),$()},Y=()=>n(this,null,(function*(){try{a.value=!1,t.value=!1,o.value={},setTimeout((()=>{N()}),1e3)}catch(e){}}));return(e,a)=>{const i=g,n=d,p=m,c=z,u=x("ripple"),h=x("auth");return C(),P("div",V,[O(f,{modelValue:S(r),"onUpdate:modelValue":a[0]||(a[0]=e=>L(r)?r.value=e:null),onSearch:W,onReset:S(H),selectList:S(s)},null,8,["modelValue","onReset","selectList"]),O(c,{class:"art-table-card",shadow:"never"},{default:F((()=>[O(i,{columns:S(b),"onUpdate:columns":a[2]||(a[2]=e=>L(b)?b.value=e:null),onRefresh:S(N)},{left:F((()=>[I((C(),R(S(D),{type:"primary",onClick:a[1]||(a[1]=e=>{T((()=>{t.value=!0}))})},{default:F((()=>a[4]||(a[4]=[k("新增跟进记录")]))),_:1,__:[4]})),[[u],[h,120301]])])),_:1},8,["columns","onRefresh"]),O(n,{loading:S(G),data:S(A),columns:S(l),pagination:S(X),"onPagination:sizeChange":S(J),"onPagination:currentChange":S(M)},null,8,["loading","data","columns","pagination","onPagination:sizeChange","onPagination:currentChange"]),O(p,{visible:S(t),"onUpdate:visible":a[3]||(a[3]=e=>L(t)?t.value=e:null),"user-data":S(o),type:"school",first_id:0,second_id:0,selectList:S(s),onSubmit:Y},null,8,["visible","user-data","selectList"])])),_:1})])}}})))),[["__scopeId","data-v-3c0da636"]]);export{X as default};
|