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

2 行
5.9KB

  1. var K=Object.defineProperty,H=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var G=(s,o,a)=>o in s?K(s,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[o]=a,A=(s,o)=>{for(var a in o||(o={}))Y.call(o,a)&&G(s,a,o[a]);if(V)for(var a of V(o))Z.call(o,a)&&G(s,a,o[a]);return s},O=(s,o)=>H(s,Q(o));var R=(s,o,a)=>new Promise((g,n)=>{var m=d=>{try{y(a.next(d))}catch(x){n(x)}},h=d=>{try{y(a.throw(d))}catch(x){n(x)}},y=d=>d.done?g(d.value):Promise.resolve(d.value).then(m,h);y((a=a.apply(s,o)).next())});import{_ as ee,d as te,G as ae,D as oe,A as le,b as S,r as E,o as ne,e as p,f as k,I as T,l as e,j as f,k as t,i as re,g as se,F as ie,J as de,h as u,m as w,p as pe}from"./index.11dc4694.js";import{E as ce}from"./index.0394235d.js";import{c as ue,d as me}from"./expertStore.0737db4f.js";import{g as D,a as _e}from"./getIsShowRegionTree.11f4997d.js";const fe={class:"flex"},ye={class:"flex justify-between"},xe=u("span",null,"\u5217\u8868",-1),Ne=["onClick"],ge=["onClick"],he=["onClick"],be=["onClick"],ve=te({name:"expertStore"}),Ee=Object.assign(ve,{setup(s){const{dictList:o}=ae(oe.dictStore),a=le(),{proxy:g}=pe(),n=S({expertName:void 0,company:void 0,expertTypeDictionaryCode:void 0,status:void 0,maxDeclareAmount:void 0,maxApprovalAmount:void 0}),m=E(),h=E(0),y=S([{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"}]),d=E([]),x=E(),L=l=>{n.intentionRegionInfo={regionCode:l.regionCode,regionLevel:l.regionLevel},m.value.pageParams.pageNumber=1,_()},_=(...c)=>R(this,[...c],function*(l=m.value.pageParams){const i=yield ue(O(A(A({},l),n),{year:n.year*1||void 0,areaCode:x.value||void 0}));d.value=i.data.records,h.value=i.data.total}),U=()=>{_()},$=()=>{n.expertName=void 0,n.company=void 0,n.expertTypeDictionaryCode=void 0,m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,_()},I=l=>{l.userId?a.push({name:"addOrEditExpert",query:{id:l.userId}}):a.push({name:"addOrEditExpert"})},j=l=>{a.push({name:"expertDetail",query:{id:l.userId}})},B=l=>{a.push({name:"deputyActivityRecord",query:{id:l.userId,name:l.expertName}})},q=()=>{const l=new Date().getTime(),c=window.btoa(l),i=a.resolve({name:"expertEnroll",query:{time:c}});window.open(i.href,"_blank")},z=l=>{g.$messageBox.confirm(`\u786E\u5B9A\u8981\u5220\u9664${l.expertName}\u4E13\u5BB6\u5417?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(()=>R(this,null,function*(){yield me(l.userId),g.$message.success("\u5220\u9664\u6210\u529F"),_()}))};return ne(()=>{D(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])||_()}),(l,c)=>{const i=p("el-col"),M=p("el-input"),b=p("el-form-item"),X=p("el-option"),F=p("el-select"),C=p("el-row"),v=p("el-button"),J=p("el-form"),P=p("el-card"),W=p("table-list");return k(),T(C,null,{default:e(()=>[f(D)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?(k(),T(i,{key:0,style:{"padding-right":"16px"},span:4},{default:e(()=>[t(ce,{params:f(_e)({SUPER_ADMIN:!1,REGION_MANAGER:!1,EXPERT_ADMIN:!1}),onGetTree:L},null,8,["params"])]),_:1})):re("v-if",!0),t(i,{span:f(D)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?20:24},{default:e(()=>[t(P,{class:"w-full search"},{default:e(()=>[t(J,{model:n,size:"small","label-suffix":":"},{default:e(()=>[t(C,{gutter:16,class:"mb-16"},{default:e(()=>[t(i,{span:8},{default:e(()=>[t(b,{label:"\u4E13\u5BB6\u59D3\u540D"},{default:e(()=>[t(M,{modelValue:n.expertName,"onUpdate:modelValue":c[0]||(c[0]=r=>n.expertName=r),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(i,{span:8},{default:e(()=>[t(b,{label:"\u5DE5\u4F5C\u5355\u4F4D"},{default:e(()=>[t(M,{modelValue:n.company,"onUpdate:modelValue":c[1]||(c[1]=r=>n.company=r),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(i,{span:8},{default:e(()=>[t(b,{label:"\u4E13\u5BB6\u7C7B\u578B"},{default:e(()=>[t(F,{modelValue:n.expertTypeDictionaryCode,"onUpdate:modelValue":c[2]||(c[2]=r=>n.expertTypeDictionaryCode=r),placeholder:"\u5168\u90E8",class:"w-full"},{default:e(()=>[(k(!0),se(ie,null,de(f(o)&&f(o).length&&f(o).find(r=>r.dictionaryName==="expert_type").dictionaryList,(r,N)=>(k(),T(X,{key:N,label:r.describe,value:r.dictionaryCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(C,null,{default:e(()=>[t(i,{span:24},{default:e(()=>[t(b,{class:"btn"},{default:e(()=>[u("div",fe,[t(v,{type:"primary",onClick:U},{default:e(()=>[w("\u67E5\u8BE2")]),_:1}),t(v,{onClick:$},{default:e(()=>[w("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(P,{class:"w-full mt-8"},{header:e(()=>[u("div",ye,[xe,u("div",null,[t(v,{type:"primary",plain:"",size:"small",icon:"Plus",onClick:I},{default:e(()=>[w("\u65B0\u589E\u4E13\u5BB6")]),_:1}),t(v,{type:"primary",size:"small",onClick:q},{default:e(()=>[w("\u4E13\u5BB6\u62A5\u540D")]),_:1})])])]),default:e(()=>[t(W,{ref_key:"tableListRef",ref:m,column:y,data:d.value,total:h.value,onGetTableData:_},{action:e(({scope:r})=>[u("a",{onClick:N=>I(r.row)},"\u7F16\u8F91",8,Ne),u("a",{onClick:N=>j(r.row)},"\u8BE6\u60C5",8,ge),u("a",{onClick:N=>B(r.row)},"\u5C65\u804C\u8BB0\u5F55",8,he),u("a",{class:"text-danger",onClick:N=>z(r.row)},"\u5220\u9664",8,be)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})}}}),Te=ee(Ee,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/expertManage/expertStore/index.vue"]]);export{Te as default};