智慧教务系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
5.3 KiB

import{d as S,v as Y,f as H,l as M,r as v,h as s,c as h,e as t,w as i,a as d,t as m,u as r,k as o,F as C,W as E,m as V,i as b,J as I,D as O,G,a4 as J,af as K,b6 as Q,E as W,H as q,K as A,O as X,P as Z,Q as ee,L as te}from"./index-f5d841af.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{e as ae,c as le,f as re}from"./verify-009e60a8.js";import{_ as oe}from"./verify-detail.vue_vue_type_style_index_0_lang-e2c73a80.js";/* empty css *//* empty css *//* empty css *//* empty css */const ie={class:"main-container"},ne={class:"flex justify-between items-center"},se={class:"text-page-title"},de={class:"mt-[10px]"},me={class:"flex justify-end"},pe={class:"mt-[16px] flex justify-end"},Se=S({__name:"verify",setup(ce){const T=Y();H();const L=T.meta.title,e=M({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{code:"",type:"",verifier_member_id:"",create_time:[]}}),w=v(),p=(n=1)=>{e.loading=!0,e.page=n,ae({page:e.page,limit:e.limit,...e.searchParam}).then(l=>{e.loading=!1,e.data=l.data.data,e.total=l.data.total}).catch(()=>{e.loading=!1})};p();const P=v([]);(()=>{le().then(n=>{P.value=n.data}).catch()})();const x=v([]);(()=>{re().then(n=>{x.value=n.data}).catch()})();const F=n=>{n&&(n.resetFields(),p())};let y=v(null);const z=n=>{y.value.setFormData({code:n.code}),y.value.showDialog=!0};return(n,l)=>{const R=O,c=G,_=J,D=K,U=Q,g=W,B=q,k=A,u=X,$=Z,j=ee,N=te;return s(),h("div",ie,[t(k,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[d("div",ne,[d("span",se,m(r(L)),1)]),t(k,{class:"box-card mt-[10px] !border-none table-search-wrap",shadow:"never"},{default:i(()=>[t(B,{inline:!0,model:e.searchParam,ref_key:"searchFormRef",ref:w},{default:i(()=>[t(c,{label:r(o)("verifyCode"),prop:"code"},{default:i(()=>[t(R,{modelValue:e.searchParam.code,"onUpdate:modelValue":l[0]||(l[0]=a=>e.searchParam.code=a),modelModifiers:{trim:!0},placeholder:r(o)("verifyCodePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(c,{label:r(o)("verifyType"),prop:"type"},{default:i(()=>[t(D,{modelValue:e.searchParam.type,"onUpdate:modelValue":l[1]||(l[1]=a=>e.searchParam.type=a),clearable:"",placeholder:r(o)("verifyTypePlaceholder"),class:"input-width"},{default:i(()=>[t(_,{label:r(o)("selectPlaceholder"),value:""},null,8,["label"]),(s(!0),h(C,null,E(P.value,(a,f)=>(s(),V(_,{label:a.name,value:f,key:f},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),t(c,{label:r(o)("verifyer"),prop:"verifier_member_id"},{default:i(()=>[t(D,{modelValue:e.searchParam.verifier_member_id,"onUpdate:modelValue":l[2]||(l[2]=a=>e.searchParam.verifier_member_id=a),clearable:"",placeholder:r(o)("verifierPlaceholder"),class:"input-width"},{default:i(()=>[t(_,{label:r(o)("selectPlaceholder"),value:""},null,8,["label"]),(s(!0),h(C,null,E(x.value,(a,f)=>(s(),V(_,{label:a.member.nickname,value:a.member_id,key:f},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),t(c,{label:r(o)("verifyTime"),prop:"create_time"},{default:i(()=>[t(U,{modelValue:e.searchParam.create_time,"onUpdate:modelValue":l[3]||(l[3]=a=>e.searchParam.create_time=a),type:"datetimerange","value-format":"YYYY-MM-DD HH:mm:ss","start-placeholder":r(o)("startDate"),"end-placeholder":r(o)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),t(c,null,{default:i(()=>[t(g,{type:"primary",onClick:l[4]||(l[4]=a=>p())},{default:i(()=>[b(m(r(o)("search")),1)]),_:1}),t(g,{onClick:l[5]||(l[5]=a=>F(w.value))},{default:i(()=>[b(m(r(o)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),d("div",de,[I((s(),V($,{data:e.data,size:"large"},{empty:i(()=>[d("span",null,m(e.loading?"":r(o)("emptyData")),1)]),default:i(()=>[t(u,{prop:"code","show-overflow-tooltip":!0,label:r(o)("verifyCode"),align:"left","min-width":"150"},null,8,["label"]),t(u,{prop:"type_name",label:r(o)("verifyType"),align:"left","min-width":"150"},null,8,["label"]),t(u,{label:r(o)("verifyTime"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:i(({row:a})=>[b(m(a.create_time||""),1)]),_:1},8,["label"]),t(u,{prop:"member.nickname",label:r(o)("verifyer"),"min-width":"180",align:"center"},null,8,["label"]),t(u,{label:r(o)("operation"),align:"right",fixed:"right",width:"100"},{default:i(({row:a})=>[d("div",me,[t(g,{type:"primary",link:"",onClick:f=>z(a)},{default:i(()=>[b(m(r(o)("详情")),1)]),_:2},1032,["onClick"])])]),_:1},8,["label"])]),_:1},8,["data"])),[[N,e.loading]]),d("div",pe,[t(j,{"current-page":e.page,"onUpdate:current-page":l[6]||(l[6]=a=>e.page=a),"page-size":e.limit,"onUpdate:page-size":l[7]||(l[7]=a=>e.limit=a),layout:"total, sizes, prev, pager, next, jumper",total:e.total,onSizeChange:l[8]||(l[8]=a=>p()),onCurrentChange:p},null,8,["current-page","page-size","total"])])]),t(oe,{ref_key:"verifyDetailDialog",ref:y},null,512)]),_:1})])}}});export{Se as default};