123 |
- import{_ as T,E as r}from"./index.72328493.js";import{M as v,a3 as h,m as b,a4 as y,am as n,o as k,a as V,_ as s,U as i,b as o,Y,aF as w,aG as C}from"./vue.aade88c7.js";const I=v({setup(){const e=h({labelPosition:"top",organTimes:{start_time:"",end_time:""},code3:"organUploadTimeConfig"}),t=async()=>{if(console.log("state.organTimes=>",e.organTimes),e.organTimes.start_time>e.organTimes.end_time){r.error("开始日期不能大于截至日期!");return}let a={data:JSON.stringify(e.organTimes),code:e.code3},l=await Index.configSave(a);if(l.code!=0){r.error(l.msg);return}m(),r.success(l.msg)},m=async()=>{let a=await Index.configGetInitData(e.code3);if(a.code!=0){r.error(a.msg);return}a.data.data!="null"?e.organTimes=a.data.data:e.organTimes={start_time:"",end_time:""},console.log("state.organTimes=>organUploadTimeConfig",e.organTimes)};return b(()=>{}),{configSave3:t,initTableData3:m,...y(e)}}}),d=e=>(w("data-v-c3d7c513"),e=e(),C(),e),M=d(()=>o("div",{class:"card-header"},[o("span",null,"机构窗口期配置")],-1)),S={class:"demo-date-picker"},D={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,a,l,E){const _=n("el-date-picker"),p=n("el-form-item"),u=n("el-form"),g=n("el-button"),f=n("el-card");return k(),V("div",null,[s(f,{shadow:"hover",class:"mt20"},{header:i(()=>[M]),default:i(()=>[s(u,{"label-position":e.labelPosition,"label-width":"100px",model:e.organTimes,style:{"max-width":"460px"}},{default:i(()=>[s(p,null,{default:i(()=>[o("div",S,[o("div",D,[x,s(_,{modelValue:e.organTimes.start_time,"onUpdate:modelValue":t[0]||(t[0]=c=>e.organTimes.start_time=c),type:"date",placeholder:"开始日期","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),o("div",U,[N,s(_,{modelValue:e.organTimes.end_time,"onUpdate:modelValue":t[1]||(t[1]=c=>e.organTimes.end_time=c),type:"date",placeholder:"截至日期","value-format":"YYYY-MM-DD"},null,8,["modelValue"])])])]),_:1})]),_:1},8,["label-position","model"]),$,s(g,{type:"primary",onClick:e.configSave3},{default:i(()=>[Y("保存")]),_:1},8,["onClick"])]),_:1})])}const F=T(I,[["render",B],["__scopeId","data-v-c3d7c513"]]);export{F as default};
- //# sourceMappingURL=organTimes.09e9d640.js.map
|