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

2 lines
9.2 KiB
JavaScript
Raw Normal View History

2026-10-10 13:00:20 +03:30
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-a4f4e215.js";import{_ as K,u as Q}from"./useBaseTable-2ab18557.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-1d790c18.js";import{I as T}from"./Icon-82d1568b.js";import{t as Z}from"./useDataTime-54c17809.js";import{g as $}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-03365c83.js";import{_ as j}from"./CustomTag.vue_vue_type_script_setup_true_lang-dcc518ac.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,L as le,n as ne,H as m,M as se}from"./index-b1a7e04b.js";import{g as O}from"./index-eed351fd.js";import{l as re}from"./lodash-a3cc5b11.js";import{a as ue,u as ce,c as pe,d as me}from"./category-15a9534f.js";import{M as de,_ as fe}from"./index-95736a95.js";import{I as _e,b as ge}from"./index-40ad5e11.js";import{_ as ve,F as he}from"./index-b14e1723.js";import{U as be}from"./index-b2a473c2.js";import{T as N}from"./isSymbol-8bb1a5fc.js";import"./index-abe83bbb.js";import"./vnode-cf87e7d8.js";import"./_plugin-vue_export-helper-bc5e645a.js";import"./updateLocale-7460d5f0.js";import"./index-3c78ebad.js";import"./shallowequal-8317aeac.js";import"./useState-bee297fc.js";import"./useMemo-f1dd6d43.js";import"./FormItemContext-75ce584c.js";import"./omit-8d80653a.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-dbbf8b2d.js";import"./index-ca8dc14f.js";import"./Badge-815f7351.js";import"./isNumeric-3f69e2aa.js";import"./index-62a1d374.js";import"./index-a5f1405d.js";import"./index-d8d70cfa.js";import"./styleChecker-e7996752.js";import"./index-06b581ca.js";import"./index-3adb8492.js";import"./DialogWrap-06d91612.js";import"./pickAttrs-6c8634eb.js";import"./css-aae66f86.js";import"./index-c03866b7.js";import"./toArray-7c7c3b23.js";import"./SearchOutlined-280cd434.js";import"./isMobile-e2e89480.js";import"./index-35b107f8.js";import"./textUtils-c37780ad.js";import"./isPlainObject-aea507b4.js";import"./_flatRest-49c0ef8d.js";import"./Col-b5ed65ce.js";import"./index-32cf5d9b.js";import"./useRefs-8cde84b1.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},Me=_("div",{style:{"margin-top":"8px"}},"آپلود",-1),Ut=ee({__name:"index",setup(e){`${O()||localStorage.getItem("tamin_token")||""}`;const[k,L]=Q(),E=d({columns:xe,api:ue,defaultPageLimit:20}),h=d(!1),w=d(!1),C=d(null),V=d([]),b=d(0),I=d(0),n=te({title:"",active:!0,imag