Files
machartaa_admin_dist/dist/assets/index-0151eac2.js
T

2 lines
9.2 KiB
JavaScript
Raw Normal View History

import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-6969d1dc.js";import{_ as K,u as Q}from"./useBaseTable-2f44456a.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-c84b0596.js";import{I as T}from"./Icon-e9d21126.js";import{t as Z}from"./useDataTime-c5fd0475.js";import{g as $}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-cf9861d3.js";import{_ as j}from"./CustomTag.vue_vue_type_script_setup_true_lang-8876a8d9.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-88b436a3.js";import{g as O}from"./index-eb78e5b4.js";import{l as re}from"./lodash-ff1cad4c.js";import{a as ue,u as ce,c as pe,d as me}from"./category-c73c6f44.js";import{M as de,_ as fe}from"./index-801e70c1.js";import{I as _e,b as ge}from"./index-5b1d7174.js";import{_ as ve,F as he}from"./index-ad76e424.js";import{U as be}from"./index-58f8102d.js";import{T as N}from"./isSymbol-5adcf314.js";import"./index-77cb2497.js";import"./vnode-4c3cf924.js";import"./_plugin-vue_export-helper-0965689e.js";import"./updateLocale-50b6b1dc.js";import"./index-371b21ab.js";import"./shallowequal-a265b4c4.js";import"./useState-89585daf.js";import"./useMemo-9783b0bd.js";import"./FormItemContext-0dc63d45.js";import"./omit-c69ba12d.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-8738a2db.js";import"./index-59dbbd66.js";import"./Badge-b5f795c2.js";import"./isNumeric-3f69e2aa.js";import"./index-e3b71aec.js";import"./index-608635af.js";import"./index-6971af25.js";import"./styleChecker-e121d19f.js";import"./index-4ad375f9.js";import"./index-70730f49.js";import"./DialogWrap-540d386d.js";import"./pickAttrs-fd92707c.js";import"./css-aae66f86.js";import"./index-7fdb0173.js";import"./toArray-20aa7010.js";import"./SearchOutlined-a51da12b.js";import"./isMobile-e2e89480.js";import"./index-4c23d157.js";import"./textUtils-c37780ad.js";import"./isPlainObject-6af67cf0.js";import"./_flatRest-bfa472d2.js";import"./Col-dbdf0e50.js";import"./index-f6397275.js";import"./useRefs-b589f2c4.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