update proxy management
This commit is contained in:
1 parent
d34e578868
commit
f22d21bb53
10 files changed
+209
-10
No files matched your search
@@ -12,7 +12,8 @@
|
||||
<el-table v-loading="loading" :data="applications" stripe>
|
||||
<el-table-column :label="$t('application.field.api')" width="200px">
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row?.api?.title }}</span>
|
||||
<span v-if="scope.row.type === applicationType.API">{{ scope.row?.api?.title }}</span>
|
||||
<span v-if="scope.row.type === applicationType.PROXY">{{ scope.row?.proxy?.title }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
||||
@@ -20,9 +20,18 @@
|
||||
<el-descriptions-item :label="$t('order.field.description')">
|
||||
{{ order?.description }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :label="$t('order.field.api')">
|
||||
<el-descriptions-item
|
||||
v-if="order?.application?.type === applicationType.API"
|
||||
:label="$t('order.field.api')"
|
||||
>
|
||||
{{ order?.application?.api?.title }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item
|
||||
v-if="order?.application?.type === applicationType.PROXY"
|
||||
:label="$t('order.field.proxy')"
|
||||
>
|
||||
{{ order?.application?.proxy?.title }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :label="$t('order.field.amount')">
|
||||
{{ order?.amount }}
|
||||
</el-descriptions-item>
|
||||
@@ -116,6 +125,7 @@ import {
|
||||
ElButton
|
||||
} from 'element-plus';
|
||||
import PayOrder from '@/components/order/Pay.vue';
|
||||
import { IApplicationType } from '@/operators';
|
||||
|
||||
enum PayWay {
|
||||
WechatPay = 'WechatPay',
|
||||
@@ -130,6 +140,7 @@ interface IData {
|
||||
loading: boolean;
|
||||
paying: boolean;
|
||||
prepaying: boolean;
|
||||
applicationType: typeof IApplicationType;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -154,7 +165,8 @@ export default defineComponent({
|
||||
order: undefined,
|
||||
loading: false,
|
||||
paying: false,
|
||||
prepaying: false
|
||||
prepaying: false,
|
||||
applicationType: IApplicationType
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in new issue
Block a user