Files
machartaa_admin_dist/dist/assets/index-8c83a7e3.js
T

2 lines
9.2 KiB
JavaScript
Raw Normal View History

2026-10-19 15:32:02 +03:30
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-3870ceab.js";import{_ as K,u as Q}from"./useBaseTable-d607863f.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-90a36b25.js";import{I as T}from"./Icon-16a7c1f0.js";import{t as Z}from"./useDataTime-784b7128.js";import{g as $}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-48ab571a.js";import{_ as j}from"./CustomTag.vue_vue_type_script_setup_true_lang-d42795ea.js";import{e as a,d as ee,i as d,h as te,x as ae,p as oe,o as D,c as F,b as _,w as r,f as ie,l as c,R as le,n as ne,H as m,S as se}from"./index-0127add0.js";import{g as O}from"./index-98b2baa9.js";import{l as re}from"./lodash-572b39f3.js";import{a as ue,u as ce,c as pe,d as me}from"./category-1630d72c.js";import{M as de,_ as fe}from"./index-a21bea9f.js";import{I as _e,b as ge}from"./index-30500426.js";import{_ as ve,F as he}from"./index-a8e6060b.js";import{U as be}from"./index-919cae97.js";import{T as N}from"./isSymbol-102dac7e.js";import"./index-9c57cbfd.js";import"./vnode-e48a529a.js";import"./_plugin-vue_export-helper-10c790be.js";import"./updateLocale-1362a15b.js";import"./index-163f964f.js";import"./shallowequal-327a9d42.js";import"./useState-ab7e8e52.js";import"./useMemo-531a1ef9.js";import"./FormItemContext-99d81d38.js";import"./omit-a9878f04.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-1007497c.js";import"./index-e8339542.js";import"./Badge-8884c4f5.js";import"./isNumeric-3f69e2aa.js";import"./index-def9ba08.js";import"./index-5d23b372.js";import"./index-c971ffa4.js";import"./styleChecker-6ecca756.js";import"./index-83d7ccb3.js";import"./index-a6785c60.js";import"./LeftOutlined-dfa284aa.js";import"./css-aae66f86.js";import"./DialogWrap-81711a5a.js";import"./pickAttrs-05046885.js";import"./index-55a09ddc.js";import"./toArray-2923cdda.js";import"./SearchOutlined-6c1cc274.js";import"./isMobile-e2e89480.js";import"./index-827c0a37.js";import"./textUtils-c37780ad.js";import"./isPlainObject-cdd64a7d.js";import"./_flatRest-56c6e14a.js";import"./Col-8db1abbb.js";import"./index-f3e74362.js";import"./useRefs-5dfcc3e3.js";const xe=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:e=>e.index+1},{title:"تصویر ",dataIndex:"image",key:"image",width:80,customRender:e=>{const k=$(e.record.image);return k?a("img",{src:k,width:60},null):a(T,{icon:"vuesax-linear:category"},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:150,customRender:e=>a("div",{class:"flex justify-center"},[a(j,{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(j,{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",width:80,customRender:e=>e.record.created_at?Z(e.record.created_at):"-"},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}],ye={class:"flex justify-between items-center mb-4"},ke=_("h2",null,"دسته بندی ها",-1),we={class:"gap-2 flex justify-center"},Ce=_("span",null,"حذف",-1),Ie=_("span",null,"ویرایش",-1),Ue={class:"grid grid-cols-3 gap-4"},Be={key:0},Re=_("div",{style:{"margin-top":"8px"}},"آپلود",-1),Bt=ee({__name:"index",setup(e){`${O()||localStorage.getItem("tamin_token")||""}`;const[k,M]=Q(),E=d({columns:xe,api:ue,defaultPageLimit:20}),h=d(!1),w=d(!1),C=d(null),S=d([]),b=d(0),I