123 |
- import{M as T,a3 as v,m as g,a4 as y,am as l,o as b,a as k,_ as a,U as n,b as o,Y as V,aF as Y,aG as w}from"./vue.60d2ee98.js";import{_ as C,E as c}from"./index.beaea096.js";const S=T({setup(){const e=v({labelPosition:"top",schoolTimes:{start_time:"",end_time:""},code2:"schoolUploadTimeConfig"}),t=async()=>{if(console.log("state.schoolTimes=>",e.schoolTimes),e.schoolTimes.start_time>e.schoolTimes.end_time){c.error("开始日期不能大于截至日期!");return}let s={data:JSON.stringify(e.schoolTimes),code:e.code2},i=await Index.configSave(s);if(i.code!=0){c.error(i.msg);return}m(),c.success(i.msg)},m=async()=>{let s=await Index.configGetInitData(e.code2);if(s.code!=0){c.error(s.msg);return}s.data.data!="null"?e.schoolTimes=s.data.data:e.schoolTimes={start_time:"",end_time:""},console.log("state.schoolTimes=>schoolUploadTimeConfig",e.schoolTimes)};return g(()=>{}),{configSave2:t,initTableData2:m,...y(e)}}}),d=e=>(Y("data-v-fcdf0d00"),e=e(),w(),e),D=d(()=>o("div",{class:"card-header"},[o("span",null,"学校窗口期配置")],-1)),I={class:"demo-date-picker"},M={class:"block"},x=d(()=>o("span",{class:"demonstration"},"开始日期",-1)),U={class:"block"},N=d(()=>o("span",{class:"demonstration"},"截至日期",-1)),$=d(()=>o("div",{style:{margin:"20px"}},null,-1));function B(e,t,m,s,i,E){const _=l("el-date-picker"),p=l("el-form-item"),f=l("el-form"),h=l("el-button"),u=l("el-card");return b(),k("div",null,[a(u,{shadow:"hover",class:"mt20"},{header:n(()=>[D]),default:n(()=>[a(f,{"label-position":e.labelPosition,"label-width":"100px",model:e.schoolTimes,style:{"max-width":"460px"}},{default:n(()=>[a(p,null,{default:n(()=>[o("div",I,[o("div",M,[x,a(_,{modelValue:e.schoolTimes.start_time,"onUpdate:modelValue":t[0]||(t[0]=r=>e.schoolTimes.start_time=r),type:"date",placeholder:"开始日期","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),o("div",U,[N,a(_,{modelValue:e.schoolTimes.end_time,"onUpdate:modelValue":t[1]||(t[1]=r=>e.schoolTimes.end_time=r),type:"date",placeholder:"截至日期","value-format":"YYYY-MM-DD"},null,8,["modelValue"])])])]),_:1})]),_:1},8,["label-position","model"]),$,a(h,{type:"primary",onClick:e.configSave2},{default:n(()=>[V("保存")]),_:1},8,["onClick"])]),_:1})])}const P=C(S,[["render",B],["__scopeId","data-v-fcdf0d00"],["__file","C:/Users/89282/Desktop/xmgl_yjy/project-manager/h5/src/views/system/baseSettings/components/schoolTimes.vue"]]);export{P as default};
- //# sourceMappingURL=schoolTimes.7ebfffa2.js.map
|