您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 行
5.1KB

  1. import{d as z,C as X,B as j,y as F,b as A,r as y,o as W,c as r,e as x,G as E,i as e,u as p,h as t,k as H,f as J,F as K,H as Q,g as d,j as N,q as Y}from"./index.a2494fc2.js";import{E as Z}from"./index.108a55d4.js";import{c as ee,d as te}from"./expertStore.24032995.js";import{g as v,a as ae}from"./getIsShowRegionTree.7b64ce60.js";const oe={class:"flex"},le={class:"flex justify-between"},ne=["onClick"],re=["onClick"],se=["onClick"],de=["onClick"],ie=z({name:"expertStore"}),fe=Object.assign(ie,{setup(pe){const{dictList:g}=X(j.dictStore),u=F(),{proxy:k}=Y(),n=A({expertName:void 0,company:void 0,expertTypeDictionaryCode:void 0,status:void 0,maxDeclareAmount:void 0,maxApprovalAmount:void 0}),m=y(),w=y(0),D=A([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u4E13\u5BB6\u59D3\u540D",key:"expertName",prop:"expertName",minWidth:"80",showOverflowTooltip:!0},{label:"\u5DE5\u4F5C\u5355\u4F4D",key:"company",prop:"company",minWidth:"150",showOverflowTooltip:!0},{label:"\u624B\u673A\u53F7\u7801",key:"phoneNo",prop:"phoneNo",width:"120"},{label:"\u4E13\u5BB6\u7C7B\u578B",key:"expertType[0].dictionaryName",prop:"expertType[0].dictionaryName",width:"80"},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createTime",prop:"createTime",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"240",fixed:"right"}]),C=y([]),I=y(),P=o=>{n.intentionRegionInfo={regionCode:o.regionCode,regionLevel:o.regionLevel},m.value.pageParams.pageNumber=1,i()},i=async(o=m.value.pageParams)=>{const a=await ee({...o,...n,year:n.year*1||void 0,areaCode:I.value||void 0});C.value=a.data.records,w.value=a.data.total},M=()=>{i()},V=()=>{n.expertName=void 0,n.company=void 0,n.expertTypeDictionaryCode=void 0,m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,i()},R=o=>{o.userId?u.push({name:"addOrEditExpert",query:{id:o.userId}}):u.push({name:"addOrEditExpert"})},G=o=>{u.push({name:"expertDetail",query:{id:o.userId}})},O=o=>{u.push({name:"deputyActivityRecord",query:{id:o.userId,name:o.expertName}})},L=()=>{const o=new Date().getTime(),a=window.btoa(o),s=u.resolve({name:"expertEnroll",query:{time:a}});window.open(s.href,"_blank")},S=o=>{k.$messageBox.confirm(`\u786E\u5B9A\u8981\u5220\u9664${o.expertName}\u4E13\u5BB6\u5417?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await te(o.userId),k.$message.success("\u5220\u9664\u6210\u529F"),i()})};return W(()=>{v(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])||i()}),(o,a)=>{const s=r("el-col"),T=r("el-input"),_=r("el-form-item"),U=r("el-option"),$=r("el-select"),b=r("el-row"),f=r("el-button"),B=r("el-form"),h=r("el-card"),q=r("table-list");return x(),E(b,null,{default:e(()=>[p(v)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?(x(),E(s,{key:0,style:{"padding-right":"16px"},span:4},{default:e(()=>[t(Z,{params:p(ae)({SUPER_ADMIN:!1,REGION_MANAGER:!1,EXPERT_ADMIN:!1}),onGetTree:P},null,8,["params"])]),_:1})):H("",!0),t(s,{span:p(v)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?20:24},{default:e(()=>[t(h,{class:"w-full search"},{default:e(()=>[t(B,{model:n,size:"small","label-suffix":":"},{default:e(()=>[t(b,{gutter:16,class:"mb-16"},{default:e(()=>[t(s,{span:8},{default:e(()=>[t(_,{label:"\u4E13\u5BB6\u59D3\u540D"},{default:e(()=>[t(T,{modelValue:n.expertName,"onUpdate:modelValue":a[0]||(a[0]=l=>n.expertName=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:8},{default:e(()=>[t(_,{label:"\u5DE5\u4F5C\u5355\u4F4D"},{default:e(()=>[t(T,{modelValue:n.company,"onUpdate:modelValue":a[1]||(a[1]=l=>n.company=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:8},{default:e(()=>[t(_,{label:"\u4E13\u5BB6\u7C7B\u578B"},{default:e(()=>[t($,{modelValue:n.expertTypeDictionaryCode,"onUpdate:modelValue":a[2]||(a[2]=l=>n.expertTypeDictionaryCode=l),placeholder:"\u5168\u90E8",class:"w-full"},{default:e(()=>[(x(!0),J(K,null,Q(p(g)&&p(g).length&&p(g).find(l=>l.dictionaryName==="expert_type").dictionaryList,(l,c)=>(x(),E(U,{key:c,label:l.describe,value:l.dictionaryCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(b,null,{default:e(()=>[t(s,{span:24},{default:e(()=>[t(_,{class:"btn"},{default:e(()=>[d("div",oe,[t(f,{type:"primary",onClick:M},{default:e(()=>a[3]||(a[3]=[N("\u67E5\u8BE2")])),_:1}),t(f,{onClick:V},{default:e(()=>a[4]||(a[4]=[N("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(h,{class:"w-full mt-8"},{header:e(()=>[d("div",le,[a[7]||(a[7]=d("span",null,"\u5217\u8868",-1)),d("div",null,[t(f,{type:"primary",plain:"",size:"small",icon:"Plus",onClick:R},{default:e(()=>a[5]||(a[5]=[N("\u65B0\u589E\u4E13\u5BB6")])),_:1}),t(f,{type:"primary",size:"small",onClick:L},{default:e(()=>a[6]||(a[6]=[N("\u4E13\u5BB6\u62A5\u540D")])),_:1})])])]),default:e(()=>[t(q,{ref_key:"tableListRef",ref:m,column:D,data:C.value,total:w.value,onGetTableData:i},{action:e(({scope:l})=>[d("a",{onClick:c=>R(l.row)},"\u7F16\u8F91",8,ne),d("a",{onClick:c=>G(l.row)},"\u8BE6\u60C5",8,re),d("a",{onClick:c=>O(l.row)},"\u5C65\u804C\u8BB0\u5F55",8,se),d("a",{class:"text-danger",onClick:c=>S(l.row)},"\u5220\u9664",8,de)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})}}});export{fe as default};