/
home
/
maktab
/
pwa
/
assets
/
File Upload :
llllll
Current File: /home/maktab/pwa/assets/index-9cVwAOHz.js
import{_ as C}from"./default_image-CeKJn11X.js";import{_ as E}from"./NavBar.vue_vue_type_script_setup_true_lang-GhjEyMrR.js";import{d as L,r as d,m as N,j as S,c as t,b as a,e as i,w as m,q as _,u as M,L as T,f,F as p,t as g,_ as V,g as v,h as q,y,I as B,o as s}from"./index-oDNmcywG.js";import{g as D}from"./service-D4H21-zA.js";const F={dir:"ltr"},P={class:"fixed top-0 w-full max-w-3xl bg-white"},R={dir:"rtl",class:"pt-[3.5rem] p-4 border-1 border-gray-200"},$={key:0},j=["onClick"],A={class:"pl-2"},G=["src"],U={key:1,class:"rounded-full w-11 h-11",src:C,alt:""},z={class:"flex-1 grid grid-rows-2 text-right"},H={class:"font-semibold"},J={key:0,class:"text-xs font-thin"},K={key:1},ee=L({__name:"index",setup(O){const n=d([]),h=S();d("");const r=d(!1),k=T.PRESENTED_IMAGE_SIMPLE;async function x(){const e=["مکتب مکتب","test","ت","تست","عباس","مکتب 1","مکتب تست سه"],{data:u}=await D();n.value=u.filter(l=>l.title!==e.find(c=>c===l.title))}async function w(){const{data:e}=await V.get(`api/cloony/maktab/${v.currentRoute.value.query.cloneId}`);n.value=e}function b(e){console.log(e),v.push({name:"superReportDetail",query:{id:e.id,name:e.title}})}return N(async()=>{try{r.value=!0,h.isClone()?await w():await x()}catch(e){console.log(e)}finally{r.value=!1}}),(e,u)=>{const l=f("a-empty"),c=f("a-skeleton");return s(),t("div",F,[a("div",P,[i(E,{dir:"rtl"},{Title:m(()=>[q(" لیست مکاتب ")]),IconLeft:m(()=>[]),_:1})]),a("div",R,[!r.value&&n.value.length==0?(s(),t("div",$,[i(l,{image:M(k),description:"مکتبی یافت نشد"},null,8,["image"])])):_("",!0),(s(!0),t(p,null,g(n.value,(o,I)=>(s(),t("div",{onClick:Q=>b(o),key:I,class:"flex py-2 items-center border-[1px] border-gray-200 rounded-lg bgImage my-2"},[a("div",A,[o.file?(s(),t("img",{key:0,class:"rounded-full w-11 h-11 object-cover",src:o.file.full_src,alt:""},null,8,G)):(s(),t("img",U))]),a("div",z,[a("div",H,y(o.title),1),o.master?(s(),t("div",J,y(o.master.name),1)):_("",!0)]),a("div",null,[i(B,{icon:"vuesax-linear:arrow-left"})])],8,j))),128)),r.value?(s(),t("div",K,[(s(),t(p,null,g(7,o=>i(c,{key:o,active:""})),64))])):_("",!0)])])}}});export{ee as default};
Copyright ©2k19 -
Hexid
|
Tex7ure