12 |
- import{a7 as ye,a8 as Be,r as i,B as ke,o as D,b as L,d as t,f as l,u as Ce,an as Se,a as n,a2 as _,X as c,G as Ve,O as Ee,e as $e,a0 as Oe,aa as Pe,ab as Ae}from"./index-312d0758.js";import{E as Ue}from"./el-upload-ec9a39c1.js";import"./el-progress-28b876a0.js";import{E as qe}from"./el-dialog-7eeab671.js";/* empty css */import{E as De,a as Le}from"./el-form-item-103c2f12.js";/* empty css */import"./el-tag-ecd58a65.js";import{a as Ye,E as Fe}from"./el-select-3d8aebfc.js";import"./el-scrollbar-c70422fb.js";import"./el-popper-1c70242b.js";import{E as Ie}from"./el-pagination-de4142da.js";import{a as Ne,E as Me}from"./el-table-column-66474345.js";/* empty css */import"./el-tooltip-4ed993c7.js";import{E as Re}from"./el-button-5fd5d56e.js";import{E as Te}from"./el-date-picker-3575ee5d.js";import{a as Ge}from"./axios-87b33878.js";import{q as He,e as Je,d as G,a as We,b as Xe,t as Ke}from"./apiItem-94539a43.js";import{b as H}from"./route-block-83d24a4e.js";import{_ as Qe}from"./_plugin-vue_export-helper-c27b6911.js";import{E as g}from"./index-8db4c46a.js";import{E as Ze}from"./index-fb232398.js";import"./index-7588b595.js";import"./plugin-vue_export-helper-1cff8a04.js";import"./error-78e43d3e.js";import"./typescript-c7dac87b.js";import"./use-form-common-props-714f341f.js";import"./constants-8ece7a3d.js";import"./cloneDeep-37d7fb14.js";import"./_baseClone-d8826940.js";import"./_Uint8Array-787ffc9c.js";import"./_initCloneObject-95aefecf.js";import"./isEqual-76463fee.js";import"./index-3d809b27.js";import"./scroll-27bc6409.js";import"./vnode-e253b113.js";import"./focus-trap-30782453.js";import"./refs-682a87ce.js";import"./event-9519ab40.js";import"./index-1da7ed1a.js";import"./isUndefined-aa0326a0.js";import"./index-a787320c.js";import"./castArray-504193a2.js";import"./hasIn-13c5e7c1.js";import"./use-form-item-01b63eaa.js";import"./debounce-80ed8290.js";import"./index-1f4b6bfb.js";import"./flatten-e78ec402.js";import"./index-da3d4eae.js";import"./_commonjsHelpers-de833af9.js";import"./arrays-e667dc24.js";import"./request-ae682a54.js";import"./index-bec297e4.js";const m=y=>(Pe("data-v-0184f51e"),y=y(),Ae(),y),et={class:"zxgl"},tt={class:"optionPart box-border flex items-center justify-between bg-white pl-2"},ot={class:"optionPart_left"},lt={class:"optionPart_right"},st={class:"mt-4 box-border rounded bg-white p-4"},at={class:"buttonPart mt-4 text-right"},nt={class:"tablePart mt-4 min-h-450px"},it={class:"pagantion mt-4 flex justify-end"},rt={class:"dialog-footer"},dt=m(()=>t("div",{class:"el-upload__tip"}," 支持文件类型:.xlsx(.xls)文件格式 ",-1)),ct={class:"dialog-footer"},pt={key:0,class:"centerMain"},ut={class:"singlePart h-90px flex items-center justify-center"},mt={class:"text-center"},_t={class:"singlePart h-45px flex flex-row flex-nowrap items-center justify-between"},ft=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-45px"}," 所属学校 ",-1)),ht={class:"w-3/4 text-center leading-45px"},vt={class:"singlePart h-45px flex flex-row flex-nowrap items-center justify-between"},gt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-45px"}," 招生年份 ",-1)),wt={class:"minB-right h-100% w-1/4 text-center leading-45px"},xt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-45px"}," 所属教育阶段 ",-1)),zt={class:"h-100% w-1/4 text-center leading-45px"},bt={class:"singlePart h-45px flex flex-row flex-nowrap items-center justify-between"},jt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-45px"}," 拟招总人数 ",-1)),yt={class:"minB-right h-100% w-1/4 text-center leading-45px"},Bt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-45px"}," 班级数 ",-1)),kt={class:"h-100% w-1/4 text-center leading-45px"},Ct={class:"singlePart h-45px flex flex-row flex-nowrap items-center justify-between"},St=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-45px"}," 男生人数 ",-1)),Vt={class:"minB-right h-100% w-1/4 text-center leading-45px"},Et=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-45px"}," 女生人数 ",-1)),$t={class:"h-100% w-1/4 text-center leading-45px"},Ot={class:"singlePart h-90px flex flex-row flex-nowrap items-center justify-between"},Pt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-90px"}," 学校对考生要求 ",-1)),At={class:"overYAuto box-border h-100% w-3/4 p-4 text-left"},Ut={class:"singlePart h-90px flex flex-row flex-nowrap items-center justify-between"},qt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-90px"}," 培养目标 ",-1)),Dt={class:"overYAuto box-border h-100% w-3/4 p-4 text-left"},Lt={class:"singlePart h-90px flex flex-row flex-nowrap items-center justify-between"},Yt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-90px"}," 学校主要课程 ",-1)),Ft={class:"overYAuto box-border h-100% w-3/4 p-4 text-left"},It={class:"singlePart h-90px flex flex-row flex-nowrap items-center justify-between"},Nt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-90px"}," 办学条件 ",-1)),Mt={class:"overYAuto box-border h-100% w-3/4 p-4 text-left"},Rt={class:"singlePart h-90px flex flex-row flex-nowrap items-center justify-between"},Tt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-90px"}," 毕业后去向 ",-1)),Gt={class:"overYAuto box-border h-100% w-3/4 p-4 text-left"},Ht={class:"singlePart h-90px flex flex-row flex-nowrap items-center justify-between"},Jt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-90px"}," 备注 ",-1)),Wt={class:"overYAuto box-border h-100% w-3/4 p-4 text-left"},Xt={class:"singlePart h-90px flex flex-row flex-nowrap items-center justify-between"},Kt=m(()=>t("div",{class:"withBg minB-right w-1/4 text-center leading-90px"}," 附件 ",-1)),Qt={class:"box-border h-100% w-3/4 pt-8 text-center",style:{"overflow-y":"auto"}},Zt={class:"dialog-footer"},J={__name:"zsjh_school",setup(y){const Y=ye(),W=Be(),w=i(W.query.zsq_id),V=i(""),E=i("");ke(()=>{h()});function h(){const o={page:x.value,limit:N.value,keyword:E.value,zzj_zsnf:V.value,zsq_id:w.value};He(o).then(e=>{e.code=="1"&&(M.value=e.data.page_data,I.value=Number(e.data.total_rows),x.value=Number(e.data.page_now))}).catch(e=>{})}const X=i("");function K(){const o=`/back/ju/zsjh/addEdit?zsq_id=${w.value}&zzj_id=${X.value}&fromSource=add`;Y.push(o)}function Q(){const o={zsq_id:w.value,zzj_id:O.value.join(",")};Je(o)}function Z(){k.value=[],z.value=!0}function ee(){if($.value.length==0)g({message:"请至少选择一项~",type:"warning"});else{const o={zzj_id:O.value};G(o).then(e=>{e.code=="1"&&(g({message:e.msg,type:"success"}),h())}).catch(e=>{})}}const d=i();function te(o){const e={zzj_id:o.zzj_id};We(e).then(a=>{a.code=="1"&&(d.value=a.data.one_info)}).catch(a=>{}),b.value=!0}function oe(o){const e=`/back/ju/zsjh/addEdit?zsq_id=${w.value}&zzj_id=${o.zzj_id}&fromSource=edit`;Y.push(e)}function le(o){const e={zzj_id:o.zzj_id};G(e).then(a=>{a.code=="1"&&(g({message:a.msg,type:"success"}),h())}).catch(a=>{})}const F=i(),se=i(!1),ae=i(!1),ne=i(!1),x=i(1),I=i(0),N=i(10),$=i([]),O=i([]);function ie(o){$.value=o;const e=[];$.value.forEach(a=>{e.push(a.zzj_id)}),O.value=e}const M=i([]);function re(o){N.value=o,h()}function de(o){x.value=o,h()}const ce=[{label:"春季",value:1},{label:"秋季",value:2}],B=i(!1),f=i({title:"",zsnf:"",zsj:""}),pe=i({title:[{required:!0,message:"请输入标题",trigger:"blur"},{min:1,max:20,message:"长度在1-20个字符",trigger:"blur"}],zsnf:[{type:"date",required:!0,message:"请选择招生年份",trigger:"change"}],zsj:[{message:"请选择招生季",trigger:"change"}]}),R=i();function ue(o){o&&o.validate((e,a)=>{if(e){const p={zjzs_zsjh:{zsq_id:w.value,zzj_title:f.value.title,zzj_zsnf:f.value.zsnf,zzj_zsj_cs_code:f.value.zsjObj.value,zzj_zsj_cs_name:f.value.zsjObj.label}};Xe(p).then(r=>{r.code=="1"&&(B.value=!1,g({message:r.msg,type:"success"}),h())}).catch(r=>{})}})}function me(){Ke({})}const P=i("100px"),z=i(!1),k=i([]),_e=`${window.GLOBAL_CONFIG.api}/zjzs/zsjh/import_new`;function fe(o){const e=Oe.value.token,a=o.file,p=new FormData;p.append("file",a),p.append("api","json"),p.append("urltype",0),p.append("token",e),p.append("zsq_id",w.value),Ge.create({withCredentials:!0}).post(_e,p).then(u=>{const v=u.data;v.code=="1"?g({message:v.msg,type:"success",dangerouslyUseHTMLString:!0}):g({message:v.msg,type:"error",dangerouslyUseHTMLString:!0}),z.value=!1,h()}).catch(u=>{})}function he(o,e){const a=o.name;k.value=k.value.filter(p=>p.name!==a)}function ve(o){const e=o.size/1024/1024<10;return e||g.warning("上传文件大小不能超过10MB!"),e}function ge(o){const e=o*1e3,a=new Date(e),p=a.getFullYear(),r=String(a.getMonth()+1).padStart(2,"0"),u=String(a.getDate()).padStart(2,"0"),v=String(a.getHours()).padStart(2,"0"),U=String(a.getMinutes()).padStart(2,"0"),j=String(a.getSeconds()).padStart(2,"0");return`${p}-${r}-${u} ${v}:${U}:${j}`}const b=i(!1),A=i(),C=i();function we(o){let e;if(o==""||o==null)e="",C.value="";else{const a=o.split("|");a[1].includes("https")?(A.value=a[1],e=a[0],C.value=a[0]):(A.value=`${window.GLOBAL_CONFIG.api}/${a[1]}`,e=a[0],C.value=a[0])}return e}function xe(){const o=`${window.GLOBAL_CONFIG.api}/openapi/download.php?path=${A.value}&name=${C.value}`;window.location.href=o}function eo(o){return o}return i([]),(o,e)=>{const a=Te,p=Ze,r=Re,u=Ne,v=Me,U=Ie,j=De,T=Ye,ze=Fe,be=Le,q=qe,je=Ue;return D(),L("div",et,[t("div",tt,[t("div",ot,[l(a,{modelValue:V.value,"onUpdate:modelValue":e[0]||(e[0]=s=>V.value=s),type:"year",placeholder:"请选择日期","value-format":"YYYY",onChange:h},null,8,["modelValue"])]),t("div",lt,[l(p,{modelValue:E.value,"onUpdate:modelValue":e[1]||(e[1]=s=>E.value=s),class:"m-2 w-50",placeholder:"请输入要检索的内容","prefix-icon":Ce(Se),clearable:"",onChange:h},null,8,["modelValue","prefix-icon"])])]),t("div",st,[t("div",at,[l(r,{type:"primary",onClick:K},{default:n(()=>[_(" 新增 ")]),_:1}),l(r,{type:"primary",onClick:Q},{default:n(()=>[_(" 导出 ")]),_:1}),l(r,{type:"primary",onClick:Z},{default:n(()=>[_(" 批量导入 ")]),_:1}),l(r,{type:"danger",onClick:ee},{default:n(()=>[_(" 删除 ")]),_:1})]),t("div",nt,[l(v,{ref:"multipleTableRef",data:M.value,style:{width:"100%"},size:"large",onSelectionChange:ie},{default:n(()=>[l(u,{type:"selection",width:"55"}),l(u,{prop:"zzj_title",label:"标题","show-overflow-tooltip":"",fixed:""}),l(u,{prop:"zzj_sm_name",label:"所属学校","show-overflow-tooltip":"","min-width":"100"}),l(u,{prop:"zsq_nf",label:"所属教育学段","show-overflow-tooltip":"","min-width":"120"},{default:n(({row:s})=>[t("span",null,c(s.zzj_sm_xd_name),1)]),_:1}),l(u,{prop:"zzj_zsnf",label:"招生年份","show-overflow-tooltip":"","min-width":"100"}),l(u,{prop:"zzj_nzzrs",label:"拟招总人数","show-overflow-tooltip":"","min-width":"120"}),l(u,{prop:"zzj_nsrs",label:"男生人数","show-overflow-tooltip":"","min-width":"100"}),l(u,{prop:"zzj_vsrs",label:"女生人数","show-overflow-tooltip":"","min-width":"100"}),l(u,{prop:"zzj_bjs",label:"班级数","show-overflow-tooltip":""}),l(u,{label:"创建时间","show-overflow-tooltip":"",width:"250"},{default:n(({row:s})=>[t("span",null,c(ge(s.create_dateline)),1)]),_:1}),l(u,{fixed:"right",label:"操作",width:"180"},{default:n(s=>[l(r,{link:"",type:"primary",onClick:S=>te(s.row)},{default:n(()=>[_(" 详情 ")]),_:2},1032,["onClick"]),l(r,{link:"",type:"primary",onClick:S=>oe(s.row)},{default:n(()=>[_(" 编辑 ")]),_:2},1032,["onClick"]),l(r,{link:"",type:"danger",onClick:S=>le(s.row)},{default:n(()=>[_(" 删除 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),t("div",it,[l(U,{"current-page":x.value,"onUpdate:currentPage":[e[2]||(e[2]=s=>x.value=s),de],":page-size":F.value,"onUpdate::pageSize":e[3]||(e[3]=s=>F.value=s),"page-sizes":[5,10,20,30,40,50,60,70,80,90,100],small:se.value,disabled:ne.value,background:ae.value,layout:"total, sizes, prev, pager, next, jumper",total:I.value,onSizeChange:re},null,8,["current-page",":page-size","small","disabled","background","total"])])]),l(q,{modelValue:B.value,"onUpdate:modelValue":e[9]||(e[9]=s=>B.value=s),title:"招生计划",width:"30%"},{footer:n(()=>[t("span",rt,[l(r,{onClick:e[7]||(e[7]=s=>B.value=!1)},{default:n(()=>[_("取消")]),_:1}),l(r,{type:"primary",onClick:e[8]||(e[8]=s=>ue(R.value))},{default:n(()=>[_("确认")]),_:1})])]),default:n(()=>[l(be,{ref_key:"ruleFormRef",ref:R,model:f.value,rules:pe.value},{default:n(()=>[l(j,{label:"标题:","label-width":P.value,prop:"title"},{default:n(()=>[l(p,{modelValue:f.value.title,"onUpdate:modelValue":e[4]||(e[4]=s=>f.value.title=s),autocomplete:"off",placeholder:"请输入标题",style:{width:"100%"}},null,8,["modelValue"])]),_:1},8,["label-width"]),l(j,{label:"招生年份:","label-width":P.value,prop:"zsnf"},{default:n(()=>[l(a,{modelValue:f.value.zsnf,"onUpdate:modelValue":e[5]||(e[5]=s=>f.value.zsnf=s),type:"year",placeholder:"请选择招生年份","value-format":"YYYY"},null,8,["modelValue"])]),_:1},8,["label-width"]),l(j,{label:"招生季:","label-width":P.value,prop:"zsj"},{default:n(()=>[l(ze,{modelValue:f.value.zsjObj,"onUpdate:modelValue":e[6]||(e[6]=s=>f.value.zsjObj=s),placeholder:"请选择招生季"},{default:n(()=>[(D(),L(Ve,null,Ee(ce,(s,S)=>l(T,{key:S,label:s.label,value:s},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model","rules"])]),_:1},8,["modelValue"]),l(q,{modelValue:z.value,"onUpdate:modelValue":e[11]||(e[11]=s=>z.value=s),title:"导入"},{footer:n(()=>[t("span",ct,[l(r,{type:"primary",onClick:e[10]||(e[10]=s=>z.value=!1)},{default:n(()=>[_("确定")]),_:1})])]),default:n(()=>[l(je,{class:"upload-demo",action:"#","http-request":fe,"on-remove":he,limit:1,"file-list":k.value,accept:".xlsx,.xls","before-upload":ve},{tip:n(()=>[dt]),default:n(()=>[l(r,{size:"small",type:"primary"},{default:n(()=>[_(" 点击上传 ")]),_:1}),t("div",{class:"download ml-4 cursor-pointer c-blue",onClick:me}," 下载模板 ")]),_:1},8,["file-list"])]),_:1},8,["modelValue"]),l(q,{modelValue:b.value,"onUpdate:modelValue":e[14]||(e[14]=s=>b.value=s),title:"详情",width:"45%"},{footer:n(()=>[t("span",Zt,[l(r,{onClick:e[12]||(e[12]=s=>b.value=!1)},{default:n(()=>[_("取消")]),_:1}),l(r,{type:"primary",onClick:e[13]||(e[13]=s=>b.value=!1)},{default:n(()=>[_("确认")]),_:1})])]),default:n(()=>[d.value?(D(),L("div",pt,[t("div",ut,[t("h2",mt,c(d.value.zzj_title),1)]),t("div",_t,[ft,t("div",ht,c(d.value.zzj_sm_name),1)]),t("div",vt,[gt,t("div",wt,c(d.value.zzj_zsnf),1),xt,t("div",zt,c(d.value.zzj_sm_xd_name),1)]),t("div",bt,[jt,t("div",yt,c(d.value.zzj_nzzrs),1),Bt,t("div",kt,c(d.value.zzj_bjs),1)]),t("div",Ct,[St,t("div",Vt,c(d.value.zzj_nsrs),1),Et,t("div",$t,c(d.value.zzj_vsrs),1)]),t("div",Ot,[Pt,t("div",At,c(d.value.zzj_xxdksyq),1)]),t("div",Ut,[qt,t("div",Dt,c(d.value.zzj_pymb),1)]),t("div",Lt,[Yt,t("div",Ft,c(d.value.zzj_xxzykc),1)]),t("div",It,[Nt,t("div",Mt,c(d.value.zzj_bxtj),1)]),t("div",Rt,[Tt,t("div",Gt,c(d.value.zzj_byhqx),1)]),t("div",Ht,[Jt,t("div",Wt,c(d.value.zzj_bz),1)]),t("div",Xt,[Kt,t("div",Qt,[t("div",{class:"cursor-pointer c-blue",onClick:xe},c(we(d.value.zzj_files)),1)])])])):$e("",!0)]),_:1},8,["modelValue"])])}}};typeof H=="function"&&H(J);const ol=Qe(J,[["__scopeId","data-v-0184f51e"]]);export{ol as default};
|