2026-08-18 16:19:11 +03:30
|
|
|
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-4b1d1ef5.js";import{_ as K,u as Q}from"./useBaseTable-f8894810.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-bc3a48f6.js";import{I as P}from"./Icon-767d2866.js";import{t as Z}from"./useDataTime-4be5c5cf.js";import{g as $}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-630b180a.js";import{_ as D}from"./CustomTag.vue_vue_type_script_setup_true_lang-2fc11613.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 nt,D as m,I as st}from"./index-24cdd011.js";import{g as O}from"./index-1ace681c.js";import{a as rt,u as ut,c as ct,d as pt}from"./brand-a971032e.js";import{l as mt}from"./lodash-3126ec34.js";import{M as dt,_ as ft}from"./index-5eb1b262.js";import{I as _t,b as gt}from"./index-942dc2ed.js";import{_ as vt,F as ht}from"./index-3867b2dc.js";import{U as bt}from"./index-5477dee9.js";import{T as N}from"./isSymbol-e7ce9b5a.js";import"./index-d68d1b34.js";import"./vnode-562ae89f.js";import"./_plugin-vue_export-helper-06d65383.js";import"./updateLocale-58c30845.js";import"./index-cbf3fafb.js";import"./index-bc659f42.js";import"./shallowequal-59945f6f.js";import"./useState-bb6abd58.js";import"./useMemo-5fb6706d.js";import"./FormItemContext-a07e1be1.js";import"./omit-08db5ef5.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-5acaa0f7.js";import"./index-3078e65c.js";import"./Badge-aa4916ac.js";import"./isNumeric-3f69e2aa.js";import"./index-38d9344c.js";import"./index-fec9c5bc.js";import"./index-39621559.js";import"./styleChecker-aeb3f501.js";import"./index-093e137a.js";import"./index-4057f476.js";import"./DialogWrap-4e2453b1.js";import"./pickAttrs-64381c06.js";import"./css-aae66f86.js";import"./index-0ceac0d6.js";import"./toArray-e3c28da8.js";import"./SearchOutlined-3570b8ac.js";import"./isMobile-e2e89480.js";import"./index-559e3814.js";import"./textUtils-c37780ad.js";import"./isPlainObject-25081d35.js";import"./_flatRest-28f96ed6.js";import"./Col-8ec8a751.js";import"./index-9df579ce.js";import"./useRefs-2bd76cbf.js";const xt=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:e=>e.index+1},{title:"تصویر ",dataIndex:"image",key:"image",customRender:e=>{const C=$(e.record.image);return a("img",{src:C,width:60},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:100,customRender:e=>a("div",{class:"flex justify-center"},[a(D,{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(D,{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",customRender:e=>Z(e.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),Bt=_("span",null,"ویرایش",-1),Ct={class:"grid grid-cols-3 gap-4"},Ut={key:0},Tt=_("div",{style:{"margin-top":"8px"}},"آپلود",-1),Ue=tt({__name:"index",setup(e){`${O()||localStorage.getItem("tamin_token")||""}`;const[C,M]=Q(),E=d({columns:xt,api:rt,defaultPageLimit:20}),h=d(!1),k=d(!1),w=d(null),V=d([]),b=d(0),I=d(0),n=et({title:"",active:!0,image:void 0,owner_id:void 0,id:void 0,description:void 0,public:void 0});
|