Files
machartaa_admin_dist/dist/assets/index-7b0a2df0.js
T

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2026-09-16 13:19:24 +03:30
import{_ as K}from"./BasicModal.vue_vue_type_style_index_0_lang-00ba9225.js";import{_ as X,u as Q}from"./useBaseTable-ec30a97d.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-ad893796.js";import{I as P}from"./Icon-84f282a9.js";import{t as Z}from"./useDataTime-2f85c275.js";import{g as $}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-cfaf2c27.js";import{_ as j}from"./CustomTag.vue_vue_type_script_setup_true_lang-51ffc2e1.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 ne,n as le,G as m,L as se}from"./index-01aa5506.js";import{g as O}from"./index-d0debae4.js";import{a as re,u as ue,c as ce,d as pe}from"./brand-cdf4655a.js";import{l as me}from"./lodash-0f373afd.js";import{M as de,_ as fe}from"./index-276e15c5.js";import{I as _e,b as ge}from"./index-0db924de.js";import{_ as ve,F as he}from"./index-d4e2041c.js";import{U as be}from"./index-17cced78.js";import{T as N}from"./isSymbol-89eeb898.js";import"./index-3370fde6.js";import"./vnode-386fab8b.js";import"./_plugin-vue_export-helper-2f0b925e.js";import"./updateLocale-4d53ac7e.js";import"./index-97e46aab.js";import"./shallowequal-a983431a.js";import"./useState-074ca9f0.js";import"./useMemo-83211a3c.js";import"./FormItemContext-45e1fa89.js";import"./omit-8a7495a3.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-b0105976.js";import"./index-64f7c585.js";import"./Badge-f9f962a5.js";import"./isNumeric-3f69e2aa.js";import"./index-40e1be26.js";import"./index-54bdc419.js";import"./index-750d03f7.js";import"./styleChecker-4d07c514.js";import"./index-01db740f.js";import"./index-fb8c26e7.js";import"./DialogWrap-784b5f45.js";import"./pickAttrs-841f485e.js";import"./css-aae66f86.js";import"./index-b91244f4.js";import"./toArray-e14b288d.js";import"./SearchOutlined-dadd531e.js";import"./isMobile-e2e89480.js";import"./index-e013b18a.js";import"./textUtils-c37780ad.js";import"./isPlainObject-838e96ea.js";import"./_flatRest-b81e40db.js";import"./Col-42eabc6c.js";import"./index-7e2b6983.js";import"./useRefs-a26b26b0.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,L]=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