Files
machartaa_admin_dist/dist/assets/index-99f89e63.js
T

2 lines
9.1 KiB
JavaScript
Raw Normal View History

2026-08-15 17:53:12 +03:30
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-7803828f.js";import{_ as K,u as Q}from"./useBaseTable-e4bbf0da.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-99dfcd06.js";import{I as $}from"./Icon-c9ad16b9.js";import{t as Z}from"./useDataTime-5442c624.js";import{g as M}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-0733684f.js";import{_ as D}from"./CustomTag.vue_vue_type_script_setup_true_lang-0f319f83.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-bc4edd51.js";import{g as O}from"./index-edd68561.js";import{l as rt}from"./lodash-3efc1909.js";import{a as ut,u as ct,c as pt,d as mt}from"./category-0b416a0a.js";import{M as dt,_ as ft}from"./index-609e9a96.js";import{I as _t,b as gt}from"./index-49e2e544.js";import{_ as vt,F as ht}from"./index-6d8a75c0.js";import{U as bt}from"./index-368498f7.js";import{T as N}from"./isSymbol-f9834f4f.js";import"./index-d4870df7.js";import"./vnode-f2307909.js";import"./_plugin-vue_export-helper-c8347567.js";import"./updateLocale-7b0be7e3.js";import"./index-9df7eaa1.js";import"./index-bc659f42.js";import"./shallowequal-cad00b6e.js";import"./useState-47ff4833.js";import"./useMemo-8275a234.js";import"./FormItemContext-4e017a44.js";import"./omit-6f60253b.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-9775c8a5.js";import"./index-5ea3cefd.js";import"./Badge-627fd6d3.js";import"./isNumeric-3f69e2aa.js";import"./index-34768277.js";import"./index-1d49b36b.js";import"./index-4e41e7b6.js";import"./styleChecker-bc667521.js";import"./index-393b875d.js";import"./index-47b6ba8f.js";import"./DialogWrap-f12e49af.js";import"./pickAttrs-1c46cfba.js";import"./css-aae66f86.js";import"./index-727535d5.js";import"./toArray-b01cb1f9.js";import"./SearchOutlined-4504ec77.js";import"./isMobile-e2e89480.js";import"./index-ae018072.js";import"./index-3aafac3f.js";import"./textUtils-c37780ad.js";import"./isPlainObject-ed8996b4.js";import"./_flatRest-9adb1e9a.js";import"./Col-96f7f23f.js";import"./index-60d2bcc6.js";import"./useRefs-225197bd.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),Te=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(n