2026-08-17 13:34:14 +03:30
|
|
|
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-050248e0.js";import{_ as K,u as Q}from"./useBaseTable-a962a6e3.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-cf170adf.js";import{I as $}from"./Icon-21c28098.js";import{t as Z}from"./useDataTime-64353302.js";import{g as M}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-c64dd012.js";import{_ as D}from"./CustomTag.vue_vue_type_script_setup_true_lang-5c2e36ff.js";import{b as a,d as tt,g as d,r as et,v as at,l as ot,o as F,c as j,a as _,w as r,e as it,j as c,H as lt,k as st,D as m,I as nt}from"./index-e0c2af95.js";import{g as O}from"./index-4c1c1287.js";import{l as rt}from"./lodash-7e5e5813.js";import{a as ut,u as ct,c as pt,d as mt}from"./category-8b2b638d.js";import{M as dt,_ as ft}from"./index-ba1a268c.js";import{I as _t,b as gt}from"./index-ff6425ec.js";import{_ as vt,F as ht}from"./index-3f95615f.js";import{U as bt}from"./index-75e285c0.js";import{T as N}from"./isSymbol-16519357.js";import"./index-55df0a19.js";import"./vnode-1d9a5f19.js";import"./_plugin-vue_export-helper-ede5981c.js";import"./updateLocale-ddc4d420.js";import"./index-ccf41683.js";import"./index-bc659f42.js";import"./shallowequal-94cf06f1.js";import"./useState-9f37179f.js";import"./useMemo-8582dbbb.js";import"./FormItemContext-31ef74d8.js";import"./omit-ef5483a7.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-751e37cd.js";import"./index-3be03c15.js";import"./Badge-0df70937.js";import"./isNumeric-3f69e2aa.js";import"./index-beff19b5.js";import"./index-77288b74.js";import"./index-777eb3d4.js";import"./styleChecker-fa192349.js";import"./index-89e8edb2.js";import"./index-329abdc2.js";import"./DialogWrap-3bd23522.js";import"./pickAttrs-e6a1c834.js";import"./css-aae66f86.js";import"./index-71bd3b00.js";import"./toArray-590d8ecb.js";import"./SearchOutlined-9dbd40a5.js";import"./isMobile-e2e89480.js";import"./index-f062f0ac.js";import"./index-4a6bfbb1.js";import"./textUtils-c37780ad.js";import"./isPlainObject-475d5f63.js";import"./_flatRest-7f56bd12.js";import"./Col-f312538f.js";import"./index-fdf98d11.js";import"./useRefs-f2d2b66f.js";const xt=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:t=>t.index+1},{title:"تصویر ",dataIndex:"image",key:"image",width:80,customRender:t=>{const k=M(t.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:t=>a(q,{text:t.record.description},null)},{title:"وضعیت ",dataIndex:"active",key:"active",type:"Boolean",width:150,customRender:t=>a("div",{class:"flex justify-center"},[a(D,{class:"px-3 font-bold py-1",textColor:t!=null&&t.record.active?"#65a30d":"#dc2626",bgColor:t!=null&&t.record.active?"#ecfccb":"#fee2e2"},{default:()=>[t!=null&&t.record.active?"فعال":"غیر فعال"]})])},{title:"وضعیت دسترسی ",dataIndex:"public",key:"public",filterField:"public",type:"Boolean",width:150,customRender:t=>a("div",{class:"flex justify-center"},[a(D,{class:"px-3 font-bold py-1",textColor:t!=null&&t.record.public?"#0d6fa3":"#333333",bgColor:t!=null&&t.record.public?"#cbe9fc":"#eaeaea"},{default:()=>[t!=null&&t.record.public?"عمومی":"خصوصی"]})])},{title:"زمان ایجاد",dataIndex:"created_at",key:"created_at",width:80,customRender:t=>t.record.created_at?Z(t.record.created_at):"-"},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}],yt={class:"flex justify-between items-center mb-4"},kt=_("h2",null,"دسته بندی ها",-1),wt={class:"gap-2 flex justify-center"},It=_("span",null,"حذف",-1),Ct=_("span",null,"ویرایش",-1),Ut={class:"grid grid-cols-3 gap-4"},Bt={key:0},Tt=_("div",{style:{"margin-top":"8px"}},"آپلود",-1),Te=tt({__name:"index",setup(t){`${O()||localStorage.getItem("tamin_token")||""}`;const[k,R]=Q(),E=d({columns:xt,api:ut,defaultPageLimit:20}),h=d(!1),w=d(!1),I=d(n
|