2026-09-19 11:51:19 +03:30
|
|
|
import{_ as K}from"./BasicModal.vue_vue_type_style_index_0_lang-73f8a39e.js";import{_ as X,u as Q}from"./useBaseTable-fed341a8.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-76fea031.js";import{I as $}from"./Icon-66010218.js";import{t as Z}from"./useDataTime-ba62eb36.js";import{g as L}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-f36f6b08.js";import{_ as j}from"./CustomTag.vue_vue_type_script_setup_true_lang-152d0842.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,K as le,n as ne,G as m,L as se}from"./index-e064ffac.js";import{g as O}from"./index-1d8e1887.js";import{l as re}from"./lodash-77052907.js";import{a as ue,u as ce,c as pe,d as me}from"./category-f0d420db.js";import{M as de,_ as fe}from"./index-418d2c16.js";import{I as _e,b as ge}from"./index-3d02255e.js";import{_ as ve,F as he}from"./index-d6ed4c52.js";import{U as be}from"./index-227d8909.js";import{T as N}from"./isSymbol-dc94e500.js";import"./index-5791312b.js";import"./vnode-43e0532a.js";import"./_plugin-vue_export-helper-c2b02d20.js";import"./updateLocale-53d85368.js";import"./index-c6cc46d7.js";import"./shallowequal-9a59fe48.js";import"./useState-1df7da74.js";import"./useMemo-118b7fdd.js";import"./FormItemContext-ea5e629b.js";import"./omit-98a5c881.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-094732f6.js";import"./index-a1f6487e.js";import"./Badge-31351815.js";import"./isNumeric-3f69e2aa.js";import"./index-6b63d7e6.js";import"./index-2f676c29.js";import"./index-1320e6a3.js";import"./styleChecker-a89d8927.js";import"./index-cf4a2322.js";import"./index-01bd72a1.js";import"./DialogWrap-934116e0.js";import"./pickAttrs-20fc50b7.js";import"./css-aae66f86.js";import"./index-020f9f38.js";import"./toArray-03404447.js";import"./SearchOutlined-bce29925.js";import"./isMobile-e2e89480.js";import"./index-4cde3ed4.js";import"./textUtils-c37780ad.js";import"./isPlainObject-118a5a84.js";import"./_flatRest-0e75a214.js";import"./Col-e0b57a55.js";import"./index-def436d1.js";import"./useRefs-320b3f3d.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=L(e.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: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},Te=_("div",{style:{"margin-top":"8px"}},"آپلود",-1),Ut=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),V=d([]),b=d(0),I=d(0),n=te({title:"",active:!0,imag
|