123 |
- import{M as T,a3 as v,m as h,a4 as y,am as n,o as b,a as k,_ as s,U as i,b as o,Y as V,aF as Y,aG as w}from"./vue.60d2ee98.js";import{_ as C,E as r}from"./index.beaea096.js";const S=T({setup(){const e=v({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 h(()=>{}),{configSave3:t,initTableData3:m,...y(e)}}}),d=e=>(Y("data-v-8f3d158c"),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,a,l,E){const _=n("el-date-picker"),p=n("el-form-item"),g=n("el-form"),u=n("el-button"),f=n("el-card");return b(),k("div",null,[s(f,{shadow:"hover",class:"mt20"},{header:i(()=>[D]),default:i(()=>[s(g,{"label-position":e.labelPosition,"label-width":"100px",model:e.organTimes,style:{"max-width":"460px"}},{default:i(()=>[s(p,null,{default:i(()=>[o("div",I,[o("div",M,[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(u,{type:"primary",onClick:e.configSave3},{default:i(()=>[V("保存")]),_:1},8,["onClick"])]),_:1})])}const P=C(S,[["render",B],["__scopeId","data-v-8f3d158c"],["__file","C:/Users/89282/Desktop/xmgl_yjy/project-manager/h5/src/views/system/baseSettings/components/organTimes.vue"]]);export{P as default};
- //# sourceMappingURL=organTimes.0ab66c49.js.map
|