2026-09-16 14:07:27 +03:30
|
|
|
import{_ as K}from"./BasicModal.vue_vue_type_style_index_0_lang-39ca2ebd.js";import{_ as X,u as Q}from"./useBaseTable-4f4d8248.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-307c41e8.js";import{I as $}from"./Icon-daa4ada2.js";import{t as Z}from"./useDataTime-e3db50db.js";import{g as L}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-96830691.js";import{_ as j}from"./CustomTag.vue_vue_type_script_setup_true_lang-7d02cb76.js";import{e as a,d as ee,i as d,h as te,x as ae,p as oe,o as D,c as F,b as _,w as r,f as ie,l as c,K as le,n as ne,G as m,L as se}from"./index-f44a958f.js";import{g as O}from"./index-7fcf63fe.js";import{l as re}from"./lodash-ba2547f0.js";import{a as ue,u as ce,c as pe,d as me}from"./category-9194c82b.js";import{M as de,_ as fe}from"./index-234c79ba.js";import{I as _e,b as ge}from"./index-17909d47.js";import{_ as ve,F as he}from"./index-0e61c248.js";import{U as be}from"./index-109ce1b0.js";import{T as N}from"./isSymbol-9ca68d9f.js";import"./index-00d02541.js";import"./vnode-bcebd00a.js";import"./_plugin-vue_export-helper-9644f77d.js";import"./updateLocale-4abe3bd4.js";import"./index-6f0218fe.js";import"./shallowequal-30316885.js";import"./useState-7cfb31a4.js";import"./useMemo-3af68d99.js";import"./FormItemContext-801d31a4.js";import"./omit-555d0220.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-9966573e.js";import"./index-5f6600aa.js";import"./Badge-daa269e5.js";import"./isNumeric-3f69e2aa.js";import"./index-432f8768.js";import"./index-120ad211.js";import"./index-7722f326.js";import"./styleChecker-d7256a22.js";import"./index-5bb4f02b.js";import"./index-1399904b.js";import"./DialogWrap-ed1e42ab.js";import"./pickAttrs-6cecdc2a.js";import"./css-aae66f86.js";import"./index-2a7e74b5.js";import"./toArray-c3886d9c.js";import"./SearchOutlined-bf31e51b.js";import"./isMobile-e2e89480.js";import"./index-a5608fae.js";import"./textUtils-c37780ad.js";import"./isPlainObject-f85be752.js";import"./_flatRest-e4351155.js";import"./Col-4af7c3cd.js";import"./index-0326f7f1.js";import"./useRefs-b0f27066.js";const xe=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:e=>e.index+1},{title:"تصویر ",dataIndex:"image",key:"image",width:80,customRender:e=>{const k=L(e.record.image);return k?a("img",{src:k,width:60},null):a($,{icon:"vuesax-linear:category"},null)}},{title:"عنوان",dataIndex:"title",key:"title"},{title:"توضیحات",dataIndex:"description",key:"description",width:500,customRender:e=>a(q,{text:e.record.description},null)},{title:"وضعیت ",dataIndex:"active",key:"active",type:"Boolean",width:150,customRender:e=>a("div",{class:"flex justify-center"},[a(j,{class:"px-3 font-bold py-1",textColor:e!=null&&e.record.active?"#65a30d":"#dc2626",bgColor:e!=null&&e.record.active?"#ecfccb":"#fee2e2"},{default:()=>[e!=null&&e.record.active?"فعال":"غیر فعال"]})])},{title:"وضعیت دسترسی ",dataIndex:"public",key:"public",filterField:"public",type:"Boolean",width:150,customRender:e=>a("div",{class:"flex justify-center"},[a(j,{class:"px-3 font-bold py-1",textColor:e!=null&&e.record.public?"#0d6fa3":"#333333",bgColor:e!=null&&e.record.public?"#cbe9fc":"#eaeaea"},{default:()=>[e!=null&&e.record.public?"عمومی":"خصوصی"]})])},{title:"زمان ایجاد",dataIndex:"created_at",key:"created_at",width:80,customRender:e=>e.record.created_at?Z(e.record.created_at):"-"},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}],ye={class:"flex justify-between items-center mb-4"},ke=_("h2",null,"دسته بندی ها",-1),we={class:"gap-2 flex justify-center"},Ce=_("span",null,"حذف",-1),Ie=_("span",null,"ویرایش",-1),Ue={class:"grid grid-cols-3 gap-4"},Be={key:0},Te=_("div",{style:{"margin-top":"8px"}},"آپلود",-1),Ut=ee({__name:"index",setup(e){`${O()||localStorage.getItem("tamin_token")||""}`;const[k,M]=Q(),E=d({columns:xe,api:ue,defaultPageLimit:20}),h=d(!1),w=d(!1),C=d(null),V=d([]),b=d(0),I=d(0),n=te({title:"",active:!0,imag
|