Files
machartaa_admin_dist/dist/assets/index-abd4b356.js
T

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2026-08-15 13:12:23 +03:30
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-83760d3e.js";import{_ as K,u as Q}from"./useBaseTable-55ad5e52.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-bd596a6a.js";import{I as $}from"./Icon-d887a0f8.js";import{t as Z}from"./useDataTime-7241b1ee.js";import{g as M}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-60928929.js";import{_ as D}from"./CustomTag.vue_vue_type_script_setup_true_lang-e379d1e2.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-885a0812.js";import{g as O}from"./index-3769757a.js";import{l as rt}from"./lodash-3b12211b.js";import{a as ut,u as ct,c as pt,d as mt}from"./category-b918687e.js";import{M as dt,_ as ft}from"./index-9b411a61.js";import{I as _t,b as gt}from"./index-2ed626d8.js";import{_ as vt,F as ht}from"./index-8eeb3ce3.js";import{U as bt}from"./index-52ff6627.js";import{T as N}from"./isSymbol-7a58081d.js";import"./index-d4e74b97.js";import"./vnode-70560f26.js";import"./_plugin-vue_export-helper-b63d6b5b.js";import"./updateLocale-d7121807.js";import"./index-675e28c4.js";import"./useState-90bb98a8.js";import"./useMemo-565770c1.js";import"./FormItemContext-9dda29cf.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-a6c897ab.js";import"./index-32515dee.js";import"./Badge-1926c75c.js";import"./isNumeric-3f69e2aa.js";import"./index-572a9242.js";import"./index-7b5ec00b.js";import"./index-22f9b99f.js";import"./styleChecker-d1351987.js";import"./index-2c072252.js";import"./index-49e4db02.js";import"./DialogWrap-bea4ac16.js";import"./pickAttrs-bb97af78.js";import"./css-aae66f86.js";import"./index-89e03fc4.js";import"./toArray-64a01f73.js";import"./SearchOutlined-c7e22afc.js";import"./isMobile-e2e89480.js";import"./index-6c7f8dff.js";import"./textUtils-c37780ad.js";import"./isPlainObject-6f4a3c75.js";import"./_flatRest-0a2f05bf.js";import"./Col-46619619.js";import"./index-8480e7e5.js";import"./useRefs-d4aed6f9.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),Ie=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=et({title:"",active:!0,image:void 0,owner_id:void 0,id:void 0,description:void 0,public:v