Add SUNO support (#82)

Co-authored-by: Germey <germey@acedata.cloud>
This commit is contained in:
HCodeandGermey authored and GitHub committed 2024-07-27 18:34:43 +00:00
1 parent ffdf6cbbdf
commit a46fc4ef3c
237 files changed
+9933 -4641

No files matched your search

+5 -3
View File
@@ -33,15 +33,15 @@
</el-table-column>
<el-table-column :label="$t('distribution.field.price')" width="100px">
<template #default="scope">
<span class="price">¥{{ scope.row?.price?.toFixed(2) }}</span>
<span class="price">{{ getPriceString({ value: scope.row?.price }) }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('distribution.field.reward')" width="100px">
<template #default="scope">
<span class="description">¥{{ scope.row?.reward?.toFixed(2) }}</span>
<span class="description">{{ getPriceString({ value: scope.row?.reward }) }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('distribution.field.percentage')" width="100px">
<el-table-column :label="$t('distribution.field.percentage')" width="120px">
<template #default="scope">
<span class="description">{{ scope.row.percentage }}%</span>
</template>
@@ -73,6 +73,7 @@ import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
import { ElRow, ElCol, ElTable, ElTableColumn, ElCard } from 'element-plus';
import { distributionHistoryOperator } from '@/operators/distribution';
import { IDistributionHistory, IDistributionStatus } from '@/models';
import { getPriceString } from '@/utils';
interface IData {
distributionHistories: IDistributionHistory[];
@@ -121,6 +122,7 @@ export default defineComponent({
this.onFetchData();
},
methods: {
getPriceString,
onPageChange(page: number) {
this.$router.push({
name: this.$route.name?.toString(),
+6 -7
View File
@@ -23,16 +23,16 @@
<span class="description">{{ scope.row?.username }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('user.field.email')" width="300px">
<template #default="scope">
<span class="description">{{ scope.row?.email }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('user.field.nickname')" width="200px">
<template #default="scope">
<span class="description">{{ scope.row.nickname }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('user.field.isVerified')">
<template #default="scope">
<el-switch :model-value="scope.row?.is_verified" />
</template>
</el-table-column>
<el-table-column :label="$t('user.field.dateJoined')">
<template #default="scope">
<span class="created-at">{{ $dayjs.format(scope.row.date_joined) }}</span>
@@ -57,7 +57,7 @@
import { defineComponent } from 'vue';
import Pagination from '@/components/common/Pagination.vue';
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
import { ElRow, ElCol, ElTable, ElTableColumn, ElCard, ElSwitch } from 'element-plus';
import { ElRow, ElCol, ElTable, ElTableColumn, ElCard } from 'element-plus';
import { userOperator } from '@/operators';
import { IUser } from '@/models';
@@ -74,7 +74,6 @@ export default defineComponent({
Pagination,
CopyToClipboard,
ElRow,
ElSwitch,
ElCol,
ElTable,
ElTableColumn,