Files
machartaa_admin_dist/dist/assets/index-2579ccdf.js
T

2 lines
8.9 KiB
JavaScript
Raw Normal View History

2026-08-18 15:43:27 +03:30
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-dce46cd2.js";import{_ as K,u as Q}from"./useBaseTable-a305524f.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-ae7cb173.js";import{I as P}from"./Icon-2a751d73.js";import{t as Z}from"./useDataTime-0e280561.js";import{g as $}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-5d44ac6c.js";import{_ as D}from"./CustomTag.vue_vue_type_script_setup_true_lang-b0a672ce.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-64bb19a3.js";import{g as O}from"./index-b180e67d.js";import{a as rt,u as ut,c as ct,d as pt}from"./brand-71126b53.js";import{l as mt}from"./lodash-17ce3880.js";import{M as dt,_ as ft}from"./index-557a2985.js";import{I as _t,b as gt}from"./index-6f7ee4ee.js";import{_ as vt,F as ht}from"./index-43d38a3b.js";import{U as bt}from"./index-96a522ed.js";import{T as N}from"./isSymbol-77db9868.js";import"./index-d19de556.js";import"./vnode-a1a3bc0f.js";import"./_plugin-vue_export-helper-47756888.js";import"./updateLocale-34973999.js";import"./index-7a73a23b.js";import"./index-bc659f42.js";import"./shallowequal-a3fa20ee.js";import"./useState-45a66864.js";import"./useMemo-fddb4a7a.js";import"./FormItemContext-78515ae9.js";import"./omit-41b1cee4.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-6148f843.js";import"./index-304c1b28.js";import"./Badge-6baddd17.js";import"./isNumeric-3f69e2aa.js";import"./index-2a5be533.js";import"./index-b5f90115.js";import"./index-a5e6bc16.js";import"./styleChecker-44a60ba7.js";import"./index-4ee722bc.js";import"./index-95a0af99.js";import"./DialogWrap-c12b3672.js";import"./pickAttrs-ff8c51c6.js";import"./css-aae66f86.js";import"./index-ff7b0bbe.js";import"./toArray-156bc105.js";import"./SearchOutlined-5a638563.js";import"./isMobile-e2e89480.js";import"./index-d5b53aee.js";import"./textUtils-c37780ad.js";import"./isPlainObject-908a4d4b.js";import"./_flatRest-6bd9fe69.js";import"./Col-4cc66d2b.js";import"./index-6fd9e35d.js";import"./useRefs-10844536.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});