芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal.sdektun.com/assets/view-CTkMZcGT.js
import{_ as m,S as p,c,a as e,f as d,g as i,d as u,t as s,F as h,h as y,e as v,o,r as f}from"./index-C5D-hTCr.js";const g={components:{Skeleton:p},data(){return{loaded:!1,model:{}}},mounted(){this.loaded=!1;let l=this.$route.params.id;this.$api.get("/customers/"+l+"?expand=customerlicenses,customerlicenses.license,customerlicenses.currentpayment").then(a=>{this.model=a.data,this.loaded=!0,console.log(a)})}},k={class:"card"},b={class:"card-body"},S={class:"row"},B={class:"col-md-4"},x=e("img",{src:v},null,-1),C=e("br",null,null,-1),F=e("br",null,null,-1),N={class:"table-responsieve"},V={class:"table"},$=e("thead",null,[e("th",null," Tipo de licencia "),e("th",null," Dirección MAC "),e("th",null," Inicio vigencia "),e("th",null," Final vigencia ")],-1);function w(l,a,D,T,n,A){const r=f("Skeleton");return o(),c("div",k,[e("div",b,[e("div",S,[e("div",B,[x,C,F,e("p",null,[n.loaded?i("",!0):(o(),d(r,{key:0,type:"paragraph"})),u(" "+s(n.model.name),1)]),e("p",null,[n.loaded?i("",!0):(o(),d(r,{key:0,type:"paragrah"})),u(" "+s(n.model.email),1)])])]),e("div",N,[e("table",V,[$,e("tbody",null,[(o(!0),c(h,null,y(n.model.customerlicenses,(t,_)=>(o(),c("tr",{key:_},[e("td",null,s(t.license.name),1),e("td",null,s(t.mac_address),1),e("td",null,s(t.currentpayment?l.$date.format(t.currentpayment.validity_start_date):"vencido"),1),e("td",null,s(t.currentpayment?l.$date.format(t.currentpayment.validity_end_date):"vencido"),1)]))),128))])])])])])}const I=m(g,[["render",w]]);export{I as default};