index-107d1034.js 3.7 KB

12
  1. import{r as n,w as I,a1 as C,o as l,b as d,d as t,f as u,a as f,G as h,O as v,c as S,u as c,D as E,a2 as F,X as x,aa as O,ab as L}from"./index-312d0758.js";/* empty css *//* empty css */import"./el-tag-ecd58a65.js";import{a as q,E as N}from"./el-select-3d8aebfc.js";import"./el-scrollbar-c70422fb.js";import"./el-popper-1c70242b.js";import{r}from"./request-ae682a54.js";import{_ as j}from"./_plugin-vue_export-helper-c27b6911.js";import{E as D}from"./index-7588b595.js";import"./_Uint8Array-787ffc9c.js";import"./isEqual-76463fee.js";import"./hasIn-13c5e7c1.js";import"./index-fb232398.js";import"./typescript-c7dac87b.js";import"./event-9519ab40.js";import"./plugin-vue_export-helper-1cff8a04.js";import"./index-bec297e4.js";import"./use-form-item-01b63eaa.js";import"./constants-8ece7a3d.js";import"./index-1da7ed1a.js";import"./use-form-common-props-714f341f.js";import"./error-78e43d3e.js";import"./scroll-27bc6409.js";import"./debounce-80ed8290.js";import"./index-1f4b6bfb.js";import"./isUndefined-aa0326a0.js";import"./focus-trap-30782453.js";import"./axios-87b33878.js";import"./index-8db4c46a.js";const G=p=>(O("data-v-cf36cd6e"),p=p(),L(),p),M={class:"xqcxWordMode"},T={style:{height:"50px"}},U={style:{float:"right",position:"relative","z-index":"999"}},A={style:{display:"flex"}},W={style:{width:"25%","padding-right":"5px"}},X=G(()=>t("div",{class:"titleBox"},[t("span",{style:{color:"#2661da","font-weight":"bold"}},"学校列表")],-1)),$={class:"contentBox"},H=["onClick"],J={style:{width:"75%","padding-left":"5px"}},K={class:"titleBox"},P={style:{color:"#2661da","font-weight":"bold"}},Q={class:"contentBox",style:{padding:"10px 20px"}},R={style:{"white-space":"pre-wrap"}},Y={__name:"index",setup(p){let g=n([]);r({url:"/common/sjzd/index",data:{page:1,limit:9999,cs_pid:"22000"}}).then(a=>{g.value=a.data.page_data});let y=n([]);r({url:"/common/district/search",data:{page:1,limit:9999,upid:window.GLOBAL_CONFIG.cityId}}).then(a=>{y.value=a.data.page_data});const i=n({sm_code:"",sm_area_id4:""});I(()=>i.value,()=>{w()},{deep:!0}),w();let s=n([]),_=n({}),m=n("");function w(){r({url:"/school/main/index",data:{limit:9999,page:1,...i.value}}).then(a=>{s.value=a.data.page_data,s.value&&s.value.length>0&&(s.value[0].isFocus=!0,_.value=s.value[0],r({url:"/zjzs/zspqfwsz/detail",data:{sm_id:s.value[0].sm_id}}).then(o=>{m.value=o.data.one_info.zzf_zsfw_content}))})}function k(a){for(let o of s.value)o.isFocus=!1;a.isFocus=!0,_.value=a,r({url:"/zjzs/zspqfwsz/detail",data:{sm_id:_.value.sm_id}}).then(o=>{m.value=o.data.one_info.zzf_zsfw_content})}return(a,o)=>{const z=q,b=N,B=C("School"),V=D;return l(),d("div",M,[t("div",T,[t("div",U,[u(b,{modelValue:i.value.sm_code,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value.sm_code=e),class:"m-2 inputContent",placeholder:"请选择学校类型",clearable:""},{default:f(()=>[(l(!0),d(h,null,v(c(g),e=>(l(),S(z,{key:e.cs_id,label:e.cs_name,value:e.cs_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),u(b,{modelValue:i.value.sm_area_id4,"onUpdate:modelValue":o[1]||(o[1]=e=>i.value.sm_area_id4=e),class:"m-2 inputContent",placeholder:"请选择区域",clearable:""},{default:f(()=>[(l(!0),d(h,null,v(c(y),e=>(l(),S(z,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("div",A,[t("div",W,[X,t("div",$,[(l(!0),d(h,null,v(c(s),e=>(l(),d("div",{onClick:Z=>k(e),style:E([{height:"40px","line-height":"40px",cursor:"pointer"},"background-color:"+(e.isFocus?"#f2f2f2":"")])},[u(V,{style:{"margin-left":"5%"}},{default:f(()=>[u(B)]),_:1}),F("   "),t("span",null,x(e.sm_name),1)],12,H))),256))])]),t("div",J,[t("div",K,[t("span",P,x(c(_).sm_name),1)]),t("div",Q,[t("span",R,x(c(m)),1)])])])])}}},Ee=j(Y,[["__scopeId","data-v-cf36cd6e"]]);export{Ee as default};