2026-08-20 11:30:22 +03:30
|
|
|
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-12600cfe.js";import{_ as K,u as Q}from"./useBaseTable-09dec183.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-485aa400.js";import{I as P}from"./Icon-b61699b8.js";import{t as Z}from"./useDataTime-c34f53fe.js";import{g as $}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-a1296ba9.js";import{_ as D}from"./CustomTag.vue_vue_type_script_setup_true_lang-0d6842db.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-5a216054.js";import{g as O}from"./index-4e7d1e3d.js";import{a as rt,u as ut,c as ct,d as pt}from"./brand-70d4fac5.js";import{l as mt}from"./lodash-724580df.js";import{M as dt,_ as ft}from"./index-21b3e11b.js";import{I as _t,b as gt}from"./index-f7d24d7c.js";import{_ as vt,F as ht}from"./index-d9ae5dff.js";import{U as bt}from"./index-1dde6b67.js";import{T as N}from"./isSymbol-67342ebb.js";import"./index-efc9438a.js";import"./vnode-4ae36afb.js";import"./_plugin-vue_export-helper-bf156267.js";import"./updateLocale-67e6a89b.js";import"./index-35a2fbcb.js";import"./index-bc659f42.js";import"./shallowequal-9390c690.js";import"./useState-aaca7c53.js";import"./useMemo-f3fe2319.js";import"./FormItemContext-c093a4c8.js";import"./omit-0e04d816.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-5d13f90f.js";import"./index-7e28a3d1.js";import"./Badge-f954f9ce.js";import"./isNumeric-3f69e2aa.js";import"./index-16772af6.js";import"./index-70ec4858.js";import"./index-fe5d35f1.js";import"./styleChecker-559f6f42.js";import"./index-8a5836b4.js";import"./index-99d6fd3f.js";import"./DialogWrap-104be95a.js";import"./pickAttrs-ca601ed4.js";import"./css-aae66f86.js";import"./index-14d22686.js";import"./toArray-6764992d.js";import"./SearchOutlined-4a9dd4f9.js";import"./isMobile-e2e89480.js";import"./index-89aa8d2e.js";import"./textUtils-c37780ad.js";import"./isPlainObject-3c9a77e7.js";import"./_flatRest-65586b5d.js";import"./Col-a3540e0e.js";import"./index-8c21a425.js";import"./useRefs-88e72f09.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});
|