fix(admin): pricing table toTime import and swap support/config menu order
Fix ReferenceError in store price sync log columns and place پیکربندی before چت پشتیبانی in the header menu. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import type { BaseTableColumn } from '@core/type/baseTable'
|
import type { BaseTableColumn } from '@core/type/baseTable'
|
||||||
import { toJalali } from '@core/utils/useDataTime'
|
import { toJalali, toTime } from '@core/utils/useDataTime'
|
||||||
import { usePrice } from '@core/utils/usePrice'
|
import { usePrice } from '@core/utils/usePrice'
|
||||||
|
|
||||||
const SOURCE_LABELS: Record<string, string> = {
|
const SOURCE_LABELS: Record<string, string> = {
|
||||||
@@ -46,14 +46,14 @@ export const storePriceColumns: BaseTableColumn[] = [
|
|||||||
dataIndex: 'created_at',
|
dataIndex: 'created_at',
|
||||||
key: 'created_at',
|
key: 'created_at',
|
||||||
type: 'DateTime',
|
type: 'DateTime',
|
||||||
customRender: (record: any) => toJalali(record.record.created_at)
|
customRender: ({ record }) => toJalali(record.created_at)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'زمان',
|
title: 'زمان',
|
||||||
dataIndex: 'created_at',
|
dataIndex: 'created_at',
|
||||||
key: 'time_at',
|
key: 'time_at',
|
||||||
type: 'DateTime',
|
type: 'DateTime',
|
||||||
customRender: (record: any) => toTime(record.record.created_at)
|
customRender: ({ record }) => toTime(record.created_at)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'عملیات',
|
title: 'عملیات',
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const Setting: RouteRecordRaw = {
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
hideMenu: false,
|
hideMenu: false,
|
||||||
hideChildren: true,
|
hideChildren: true,
|
||||||
order: 7
|
order: 7.5
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const support: RouteRecordRaw = {
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
hideMenu: false,
|
hideMenu: false,
|
||||||
hideChildren: true,
|
hideChildren: true,
|
||||||
order: 7.5,
|
order: 7,
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user