22/7/1404
This commit is contained in:
Vendored
+5
@@ -10,7 +10,9 @@ export {}
|
|||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
_index: typeof import('./src/core/components/_sample/_index.vue')['default']
|
_index: typeof import('./src/core/components/_sample/_index.vue')['default']
|
||||||
|
AAffix: typeof import('ant-design-vue/es')['Affix']
|
||||||
AAvatar: typeof import('ant-design-vue/es')['Avatar']
|
AAvatar: typeof import('ant-design-vue/es')['Avatar']
|
||||||
|
ABadge: typeof import('ant-design-vue/es')['Badge']
|
||||||
AButton: typeof import('ant-design-vue/es')['Button']
|
AButton: typeof import('ant-design-vue/es')['Button']
|
||||||
ACard: typeof import('ant-design-vue/es')['Card']
|
ACard: typeof import('ant-design-vue/es')['Card']
|
||||||
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
|
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
|
||||||
@@ -29,6 +31,7 @@ declare module '@vue/runtime-core' {
|
|||||||
AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider']
|
AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider']
|
||||||
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
|
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
|
||||||
AModal: typeof import('ant-design-vue/es')['Modal']
|
AModal: typeof import('ant-design-vue/es')['Modal']
|
||||||
|
APagination: typeof import('ant-design-vue/es')['Pagination']
|
||||||
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
|
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
|
||||||
APopover: typeof import('ant-design-vue/es')['Popover']
|
APopover: typeof import('ant-design-vue/es')['Popover']
|
||||||
ARadio: typeof import('ant-design-vue/es')['Radio']
|
ARadio: typeof import('ant-design-vue/es')['Radio']
|
||||||
@@ -37,10 +40,12 @@ declare module '@vue/runtime-core' {
|
|||||||
ASelect: typeof import('ant-design-vue/es')['Select']
|
ASelect: typeof import('ant-design-vue/es')['Select']
|
||||||
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
||||||
ASpin: typeof import('ant-design-vue/es')['Spin']
|
ASpin: typeof import('ant-design-vue/es')['Spin']
|
||||||
|
ASubMenu: typeof import('ant-design-vue/es')['SubMenu']
|
||||||
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
||||||
ATable: typeof import('ant-design-vue/es')['Table']
|
ATable: typeof import('ant-design-vue/es')['Table']
|
||||||
ATabPane: typeof import('ant-design-vue/es')['TabPane']
|
ATabPane: typeof import('ant-design-vue/es')['TabPane']
|
||||||
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
||||||
|
ATextarea: typeof import('ant-design-vue/es')['Textarea']
|
||||||
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
|
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
|
||||||
AUpload: typeof import('ant-design-vue/es')['Upload']
|
AUpload: typeof import('ant-design-vue/es')['Upload']
|
||||||
BaseButton: typeof import('./src/core/components/BaseButton/index.ts')['default']
|
BaseButton: typeof import('./src/core/components/BaseButton/index.ts')['default']
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export function openNewTabBalance() {
|
export function openNewTabBalance() {
|
||||||
const height = screen.height
|
const height = screen.height
|
||||||
window.open(
|
window.open(
|
||||||
'/admin/balance',
|
'https://ghatreh.gold/admin/balance',
|
||||||
'_blank',
|
'_blank',
|
||||||
`width=400,height=${height},toolbar=no,menubar=no,scrollbars=no,resizable=no`
|
`width=400,height=${height},toolbar=no,menubar=no,scrollbars=no,resizable=no`
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -33,5 +33,7 @@ export interface Customer {
|
|||||||
trade_active: boolean
|
trade_active: boolean
|
||||||
type_str: string
|
type_str: string
|
||||||
gold: number
|
gold: number
|
||||||
|
auto_open_at: string
|
||||||
|
auto_close_at: string
|
||||||
// print_name: string
|
// print_name: string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<p class="font-bold">تراز از :</p>
|
<p class="font-bold">تراز از :</p>
|
||||||
<BaseDatePicker
|
<BaseDatePicker
|
||||||
v-model:value="startTaraz"
|
v-model:value="startTaraz"
|
||||||
@on-change="getTaraz(startTaraz, endTaraz)"
|
@onchange="getTaraz(startTaraz, endTaraz)"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
/>
|
/>
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<p class="font-bold">تا :</p>
|
<p class="font-bold">تا :</p>
|
||||||
<BaseDatePicker
|
<BaseDatePicker
|
||||||
v-model:value="endTaraz"
|
v-model:value="endTaraz"
|
||||||
@on-change="getTaraz(startTaraz, endTaraz)"
|
@onchange="getTaraz(startTaraz, endTaraz)"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -815,7 +815,7 @@ const priceChartOptions = ref({
|
|||||||
const fetchPrices = async () => {
|
const fetchPrices = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await getAllPrices()
|
const response = await getAllPrices()
|
||||||
const data = response.data.prices
|
const data = response?.data?.prices
|
||||||
|
|
||||||
const selectedData = data[selection.value] || []
|
const selectedData = data[selection.value] || []
|
||||||
priceChartSeries.value[0].data = selectedData.map((item) => [item.timestamp, item.value])
|
priceChartSeries.value[0].data = selectedData.map((item) => [item.timestamp, item.value])
|
||||||
|
|||||||
@@ -589,16 +589,12 @@ let editId: number | undefined = undefined
|
|||||||
async function edit(record: Customer) {
|
async function edit(record: Customer) {
|
||||||
addUserVisible.value = true
|
addUserVisible.value = true
|
||||||
editId = record.id
|
editId = record.id
|
||||||
console.log(record)
|
|
||||||
const customForm = cloneDeep(record)
|
const customForm = cloneDeep(record)
|
||||||
const start = dayjs(customForm.auto_open_at, 'HH:mm:ss')
|
|
||||||
const close = dayjs(customForm.auto_close_at, 'HH:mm:ss')
|
|
||||||
delete customForm.auto_open_at
|
|
||||||
delete customForm.auto_close_at
|
|
||||||
form.value.auto_open_at = start
|
|
||||||
form.value.auto_close_at = close
|
|
||||||
console.log(form.value);
|
|
||||||
form.value = cloneDeep(customForm)
|
form.value = cloneDeep(customForm)
|
||||||
|
|
||||||
|
form.value.auto_open_at = dayjs(customForm.auto_open_at, 'HH:mm:ss')
|
||||||
|
form.value.auto_close_at = dayjs(customForm.auto_close_at, 'HH:mm:ss')
|
||||||
}
|
}
|
||||||
|
|
||||||
//add
|
//add
|
||||||
@@ -762,6 +758,9 @@ const categoryItems: Array<Item> = [
|
|||||||
{
|
{
|
||||||
value: 'سکه پارسیان',
|
value: 'سکه پارسیان',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: 'شمش ونوس',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const data = ref<MethodePrices[]>([])
|
const data = ref<MethodePrices[]>([])
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/*
|
||||||
import type { RouteRecordRaw } from 'vue-router'
|
import type { RouteRecordRaw } from 'vue-router'
|
||||||
|
|
||||||
const balance: RouteRecordRaw = {
|
const balance: RouteRecordRaw = {
|
||||||
@@ -29,3 +30,4 @@ const balance: RouteRecordRaw = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default balance
|
export default balance
|
||||||
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user