2026-09-19 17:37:47 +03:30
|
|
|
import{_ as K}from"./BasicModal.vue_vue_type_style_index_0_lang-9330561a.js";import{_ as X,u as Q}from"./useBaseTable-05b26333.js";import{_ as Y}from"./button.vue_vue_type_style_index_0_lang-bd7de123.js";import{I as P}from"./Icon-26941971.js";import{t as Z}from"./useDataTime-af597da2.js";import{g as $}from"./convert-2ad76038.js";import{_ as q}from"./TextPreview.vue_vue_type_script_setup_true_lang-ebd8971b.js";import{_ as j}from"./CustomTag.vue_vue_type_script_setup_true_lang-7262f695.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-6d0cd65e.js";import{g as O}from"./index-1a5043f1.js";import{a as re,u as ue,c as ce,d as pe}from"./brand-259f586c.js";import{l as me}from"./lodash-6c37e040.js";import{M as de,_ as fe}from"./index-1fdbf8ec.js";import{I as _e,b as ge}from"./index-0a3c8350.js";import{_ as ve,F as he}from"./index-17510b5d.js";import{U as be}from"./index-207fac00.js";import{T as N}from"./isSymbol-94624ad1.js";import"./index-1d24a383.js";import"./vnode-272c72c0.js";import"./_plugin-vue_export-helper-057121dd.js";import"./updateLocale-cd480df1.js";import"./index-eddc2482.js";import"./shallowequal-969229a1.js";import"./useState-6a654be9.js";import"./useMemo-fb6ccae7.js";import"./FormItemContext-b6ebc5a2.js";import"./omit-0042b203.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-8a3278c2.js";import"./index-61e1d708.js";import"./Badge-a066a44e.js";import"./isNumeric-3f69e2aa.js";import"./index-08466728.js";import"./index-8d45f2c0.js";import"./index-19225493.js";import"./styleChecker-0273aaa3.js";import"./index-cbd32094.js";import"./index-0e770d03.js";import"./DialogWrap-b6637bda.js";import"./pickAttrs-ae9bd1c0.js";import"./css-aae66f86.js";import"./index-b2a6c339.js";import"./toArray-5fe0a9e6.js";import"./SearchOutlined-f7ba34a1.js";import"./isMobile-e2e89480.js";import"./index-3f13e53b.js";import"./textUtils-c37780ad.js";import"./isPlainObject-d2ad9b1e.js";import"./_flatRest-2e1bd5be.js";import"./Col-27d7ac55.js";import"./index-373d7dab.js";import"./useRefs-b0f30c2d.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
|