Files
machartaa_admin_dist/dist/assets/index-5456060c.js
T

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2026-08-22 14:52:19 +03:30
import{_ as X}from"./BasicModal.vue_vue_type_style_index_0_lang-20cc468f.js";import{_ as G,u as Q}from"./useBaseTable-1184a002.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-cbfd9667.js";import{I as P}from"./Icon-0c226cc8.js";import{t as Z}from"./useDataTime-35d3ce8c.js";import{g as $}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-8b46377d.js";import{_ as j}from"./CustomTag.vue_vue_type_script_setup_true_lang-e2191790.js";import{b as a,d as ee,g as d,r as te,v as ae,l as oe,o as D,c as F,a as _,w as r,e as ie,j as c,J as le,k as ne,D as m,K as se}from"./index-35c19078.js";import{g as O}from"./index-65ebcbaa.js";import{a as re,u as ue,c as ce,d as pe}from"./brand-722f17b4.js";import{l as me}from"./lodash-e3d7e6b8.js";import{M as de,_ as fe}from"./index-d1bea9c9.js";import{I as _e,b as ge}from"./index-e2b66426.js";import{_ as ve,F as he}from"./index-727899c3.js";import{U as be}from"./index-b998e211.js";import{T as N}from"./isSymbol-76912a30.js";import"./index-c135e3cd.js";import"./vnode-bd016db8.js";import"./_plugin-vue_export-helper-b8aa26f1.js";import"./updateLocale-674603f1.js";import"./index-317dfb98.js";import"./shallowequal-336924ae.js";import"./useState-0b0c0b26.js";import"./useMemo-141475be.js";import"./FormItemContext-c59740e7.js";import"./omit-fea2187f.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-aa5cbf20.js";import"./index-9c958bd1.js";import"./Badge-5aec0f5b.js";import"./isNumeric-3f69e2aa.js";import"./index-597067d3.js";import"./index-81c6c557.js";import"./index-3e7c49ac.js";import"./styleChecker-5378d544.js";import"./index-53a07be2.js";import"./index-e39a0c4e.js";import"./DialogWrap-7ea92471.js";import"./pickAttrs-2a6a34d0.js";import"./css-aae66f86.js";import"./index-0cfe3fb2.js";import"./toArray-f7bbf4fe.js";import"./SearchOutlined-fd97bf7f.js";import"./isMobile-e2e89480.js";import"./index-70f42a71.js";import"./textUtils-c37780ad.js";import"./isPlainObject-9fc066ac.js";import"./_flatRest-ce9c6e5e.js";import"./Col-93e193e7.js";import"./index-1016d40d.js";import"./useRefs-d20fccdf.js";const xe=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:t=>t.index+1},{title:"تصویر ",dataIndex:"image",key:"image",customRender:t=>{const C=$(t.record.image);return a("img",{src:C,width:60},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:100,customRender:t=>a("div",{class:"flex justify-center"},[a(j,{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(j,{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",customRender:t=>Z(t.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"},Ie=_("span",null,"حذف",-1),Be=_("span",null,"ویرایش",-1),Ce={class:"grid grid-cols-3 gap-4"},Ue={key:0},Te=_("div",{style:{"margin-top":"8px"}},"آپلود",-1),Ct=ee({__name:"index",setup(t){`${O()||localStorage.getItem("tamin_token")||""}`;const[C,M]=Q(),E=d({columns:xe,api:re,defaultPageLimit:20}),h=d(!1),k=d(!1),w=d(null),V=d([]),b=d(0),I=d(0),n=te({title:"",active:!0,image:void 0,owner_id:void 0,id:void 0,description:void 0,public:void 0});let z=me.cloneDeep(n);d();co