Files
machartaa_admin_dist/dist/assets/index-1602d9d8.js
T

2 lines
9.1 KiB
JavaScript
Raw Normal View History

2026-08-18 11:53:09 +03:30
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-381c939b.js";import{_ as K,u as Q}from"./useBaseTable-6b0100f9.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-055ef55a.js";import{I as $}from"./Icon-e2745237.js";import{t as Z}from"./useDataTime-61faf9b9.js";import{g as M}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-c8240549.js";import{_ as D}from"./CustomTag.vue_vue_type_script_setup_true_lang-0df25a4f.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-74df3455.js";import{g as O}from"./index-82edf946.js";import{l as rt}from"./lodash-6f7438f2.js";import{a as ut,u as ct,c as pt,d as mt}from"./category-05ee0a4d.js";import{M as dt,_ as ft}from"./index-65da5dac.js";import{I as _t,b as gt}from"./index-ec36d435.js";import{_ as vt,F as ht}from"./index-9a2fbb01.js";import{U as bt}from"./index-90b890a0.js";import{T as N}from"./isSymbol-62e97e43.js";import"./index-83319668.js";import"./vnode-b6bcf78e.js";import"./_plugin-vue_export-helper-37aa05ea.js";import"./updateLocale-5b0fd44f.js";import"./index-efd9ee2a.js";import"./index-bc659f42.js";import"./shallowequal-299ad79c.js";import"./useState-2abd0489.js";import"./useMemo-a5bf3ddc.js";import"./FormItemContext-6413b4c6.js";import"./omit-763d2c81.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-d8bae45c.js";import"./index-6a94b684.js";import"./Badge-be9a4aa1.js";import"./isNumeric-3f69e2aa.js";import"./index-7ea4c0f8.js";import"./index-efc8d329.js";import"./index-5ea23f62.js";import"./styleChecker-4c9a1b23.js";import"./index-d81adf35.js";import"./index-ee58981c.js";import"./DialogWrap-93c13aef.js";import"./pickAttrs-e0ea06b2.js";import"./css-aae66f86.js";import"./index-043ef8cd.js";import"./toArray-5920af1b.js";import"./SearchOutlined-8f5d71bf.js";import"./isMobile-e2e89480.js";import"./index-0f51a503.js";import"./textUtils-c37780ad.js";import"./isPlainObject-4825706c.js";import"./_flatRest-899894ad.js";import"./Col-7df1a821.js";import"./index-4e077a6e.js";import"./useRefs-d90adc8f.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