/
home
/
maktab
/
pwa
/
assets
/
File Upload :
llllll
Current File: /home/maktab/pwa/assets/index-5c5b9685.js
import{_ as C}from"./default_image-3c98eb2d.js";import{_ as E}from"./NavBar.vue_vue_type_script_setup_true_lang-6f2aa03a.js";import{d as N,r as d,G as S,l as L,c as t,b as a,e as i,w as m,u as M,q as _,F as f,t as p,i as T,_ as V,g,h as v,o as s,j as q,z as y,I as B}from"./index-cfd958c1.js";import{g as D}from"./service-cc654bac.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"],z={key:1,class:"rounded-full w-11 h-11",src:C,alt:""},U={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=N({__name:"index",setup(O){const n=d([]),h=T();d("");const l=d(!1),x=S.PRESENTED_IMAGE_SIMPLE;async function k(){const e=["مکتب مکتب","test","ت","تست","عباس","مکتب 1","مکتب تست سه"],{data:u}=await D();n.value=u.filter(r=>r.title!==e.find(c=>c===r.title))}async function w(){const{data:e}=await V.get(`api/cloony/maktab/${g.currentRoute.value.query.cloneId}`);n.value=e}function b(e){console.log(e),g.push({name:"superReportDetail",query:{id:e.id,name:e.title}})}return L(async()=>{try{l.value=!0,h.isClone()?await w():await k()}catch(e){console.log(e)}finally{l.value=!1}}),(e,u)=>{const r=v("a-empty"),c=v("a-skeleton");return s(),t("div",F,[a("div",P,[i(E,{dir:"rtl"},{Title:m(()=>[q(" لیست مکاتب ")]),IconLeft:m(()=>[]),_:1})]),a("div",R,[!l.value&&n.value.length==0?(s(),t("div",$,[i(r,{image:M(x),description:"مکتبی یافت نشد"},null,8,["image"])])):_("",!0),(s(!0),t(f,null,p(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",z))]),a("div",U,[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)),l.value?(s(),t("div",K,[(s(),t(f,null,p(7,o=>i(c,{key:o,active:""})),64))])):_("",!0)])])}}});export{ee as default};
Copyright ©2k19 -
Hexid
|
Tex7ure