← Back
Editing: expired.js
import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753755607904";import{u as t}from"./public.js?v=1753755607904";import{c as a}from"./site.js?v=1753755607904";import{u as s}from"./index225.js?v=1753755607904";import{a as i,_ as o}from"./index.vue_vue_type_script_setup_true_lang13.js?v=1753755607904";import{k as d,P as n,e as r,U as l,X as p,Q as m,a2 as u,V as _,W as c}from"./vue.js?v=1753755607904";import{cC as f}from"./naive.js?v=1753755607904";import{T as x}from"./page_layout.js?v=1753755607904";import{a6 as j,m as v,h as P}from"./common.js?v=1753755607904";import"./__commonjsHelpers__.js?v=1753755607904";const y={class:"p-20px"},w={class:"w-180px"},b=d({__name:"expired",props:{data:{}},setup(d,{expose:b}){const{t:h}=n(),H=d,{rows:S}=H.data,g=s(),k=r({edate:null}),C=new Date;C.setHours(0,0,0,0);const M=e=>j(e,v(C,1)),R=async e=>{const t=k.edate?P(k.edate,"yyyy-MM-dd"):"0000-00-00";return await a({id:e.id,edate:t},!1)},T=()=>{g.setRefresh(!0),t({title:h("Site.PHP.index_71"),width:440,footer:!0,component:o,data:{title:h("Site.PHP.index_70"),data:S,status:"done",columns:[{key:"name",title:h("Site.TableRow.index_1"),ellipsis:{tooltip:{width:"trigger"}}}]}})};return b({onConfirm:({hide:e})=>{t({title:h("Site.PHP.index_70"),hideClose:!0,data:{title:h("Site.PHP.index_70"),api:R,data:S,callback:T},component:i}),e()}}),(t,a)=>{const s=x,i=f,o=e;return p(),l("div",y,[m(o,null,{default:u((()=>[m(i,{label:t.$t("Site.PHP.index_25"),"show-feedback":!1},{default:u((()=>[_("div",w,[m(s,{value:c(k).edate,"onUpdate:value":a[0]||(a[0]=e=>c(k).edate=e),type:"date",actions:null,"is-date-disabled":M},null,8,["value"])])])),_:1},8,["label"])])),_:1})])}}});export{b as default};
Save File
Cancel