Files
machartaa_admin_dist/dist/assets/index-28b09751.js
T

2 lines
9.1 KiB
JavaScript
Raw Normal View History

2026-08-19 11:15:51 +03:30
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-31a77bff.js";import{_ as K,u as Q}from"./useBaseTable-53dd99af.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-bfd9fcfc.js";import{I as $}from"./Icon-49e380f5.js";import{t as Z}from"./useDataTime-3763aaa9.js";import{g as M}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-35783eaf.js";import{_ as D}from"./CustomTag.vue_vue_type_script_setup_true_lang-e502220a.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-bfe458ac.js";import{g as O}from"./index-32a06c2d.js";import{l as rt}from"./lodash-6ccdc7c6.js";import{a as ut,u as ct,c as pt,d as mt}from"./category-78f05554.js";import{M as dt,_ as ft}from"./index-30f4723a.js";import{I as _t,b as gt}from"./index-3a7846ee.js";import{_ as vt,F as ht}from"./index-42759bd8.js";import{U as bt}from"./index-3c17cc81.js";import{T as N}from"./isSymbol-0bccfc01.js";import"./index-a231d930.js";import"./vnode-d4498b2d.js";import"./_plugin-vue_export-helper-67599eab.js";import"./updateLocale-01f6a4ae.js";import"./index-866ab3cc.js";import"./index-bc659f42.js";import"./shallowequal-58ae19a4.js";import"./useState-28dabf70.js";import"./useMemo-c07be216.js";import"./FormItemContext-50ffb9a1.js";import"./omit-31473f11.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-5abef7b1.js";import"./index-24b7e322.js";import"./Badge-2d408009.js";import"./isNumeric-3f69e2aa.js";import"./index-231f7c05.js";import"./index-d162d812.js";import"./index-f9fac6a3.js";import"./styleChecker-8e2e8c57.js";import"./index-78c7f5e8.js";import"./index-d6fc1ec7.js";import"./DialogWrap-f94b796f.js";import"./pickAttrs-c1604177.js";import"./css-aae66f86.js";import"./index-d61dbb2f.js";import"./toArray-54bd8d35.js";import"./SearchOutlined-2adda210.js";import"./isMobile-e2e89480.js";import"./index-d3413392.js";import"./textUtils-c37780ad.js";import"./isPlainObject-d0372073.js";import"./_flatRest-e19970cd.js";import"./Col-37dd3be5.js";import"./index-7bc50da0.js";import"./useRefs-7ed7974b.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),Be=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(null),V=d([]),b=d(0),C=d(0),s