12 |
- import{L as T,a2 as v,l as h,a3 as b,al as n,o as y,a as w,Z as s,T as l,b as o,X as k,aE as V,aF as S}from"./vue.e1d8f8c6.js";import{_ as Y,E as r}from"./index.5ec7a9d7.js";const C=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},i=await Index.configSave(a);if(i.code!=0){r.error(i.msg);return}m(),r.success(i.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,...b(e)}}}),d=e=>(V("data-v-8f3d158c"),e=e(),S(),e),I=d(()=>o("div",{class:"card-header"},[o("span",null,"机构窗口期配置")],-1)),x={class:"demo-date-picker"},D={class:"block"},M=d(()=>o("span",{class:"demonstration"},"开始日期",-1)),E={class:"block"},N=d(()=>o("span",{class:"demonstration"},"截至日期",-1)),U=d(()=>o("div",{style:{margin:"20px"}},null,-1));function $(e,t,m,a,i,B){const _=n("el-date-picker"),p=n("el-form-item"),g=n("el-form"),u=n("el-button"),f=n("el-card");return y(),w("div",null,[s(f,{shadow:"hover",class:"mt20"},{header:l(()=>[I]),default:l(()=>[s(g,{"label-position":e.labelPosition,"label-width":"100px",model:e.organTimes,style:{"max-width":"460px"}},{default:l(()=>[s(p,null,{default:l(()=>[o("div",x,[o("div",D,[M,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",E,[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"]),U,s(u,{type:"primary",onClick:e.configSave3},{default:l(()=>[k("保存")]),_:1},8,["onClick"])]),_:1})])}const z=Y(C,[["render",$],["__scopeId","data-v-8f3d158c"],["__file","E:/code/wwwroot/local81.lzj/simple_storage/vue-next-admin/src/views/system/baseSettings/components/organTimes.vue"]]);export{z as default};
|