Files
machartaa_admin_dist/dist/assets/index-877eb500.js
T

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2026-10-10 13:28:46 +03:30
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-c3b69d02.js";import{_ as K,u as Q}from"./useBaseTable-e35ecaa9.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-b32e1136.js";import{I as P}from"./Icon-85823aa3.js";import{t as Z}from"./useDataTime-c7be2668.js";import{g as T}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-acd6228c.js";import{_ as j}from"./CustomTag.vue_vue_type_script_setup_true_lang-6fd0c60b.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 ne,n as le,H as m,M as se}from"./index-90ac1a44.js";import{g as O}from"./index-ca449155.js";import{a as re,u as ue,c as ce,d as pe}from"./brand-16977df7.js";import{l as me}from"./lodash-07b825be.js";import{M as de,_ as fe}from"./index-a413fea1.js";import{I as _e,b as ge}from"./index-027c2128.js";import{_ as ve,F as he}from"./index-03d99677.js";import{U as be}from"./index-e50485ad.js";import{T as N}from"./isSymbol-9094e8b7.js";import"./index-93d9312f.js";import"./vnode-b0455438.js";import"./_plugin-vue_export-helper-8ee86600.js";import"./updateLocale-cec40f3d.js";import"./index-cfa536c5.js";import"./shallowequal-36516cfd.js";import"./useState-64f2823f.js";import"./useMemo-9928f29b.js";import"./FormItemContext-64f846db.js";import"./omit-84d71e15.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-fb5041dc.js";import"./index-95b42b3e.js";import"./Badge-54a9cc4e.js";import"./isNumeric-3f69e2aa.js";import"./index-5f5223b4.js";import"./index-c0eeee91.js";import"./index-788f312f.js";import"./styleChecker-1445806f.js";import"./index-90f5ddad.js";import"./index-9869a66e.js";import"./DialogWrap-6616a498.js";import"./pickAttrs-ba13e92c.js";import"./css-aae66f86.js";import"./index-a2503c07.js";import"./toArray-3936b2d5.js";import"./SearchOutlined-0eaaa97a.js";import"./isMobile-e2e89480.js";import"./index-bb804fdd.js";import"./textUtils-c37780ad.js";import"./isPlainObject-aab367ce.js";import"./_flatRest-f2577aae.js";import"./Col-fddaa6b7.js";import"./index-ebd9fdbb.js";import"./useRefs-2a883b79.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(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},Me=_("div",{style:{"margin-top":"8px"}},"آپلود",-1),Ct=ee({__name:"index",setup(t){`${O()||localStorage.getItem("tamin_token")||""}`;const[C,$]=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),l=te({title:"",active:!0,image:void 0,owner_id:void 0,id:void 0,description:void 0,public:void 0});let z=me.cloneDeep(l);d();co