@@ -41,6 +41,7 @@ export default defineComponent({
.navigator {
height: 100%;
+ width: 60px;
border-right: 1px solid var(--el-border-color);
}
@@ -50,6 +51,17 @@ export default defineComponent({
flex: 1;
display: flex;
flex-direction: row;
+ .side {
+ width: 200px;
+ height: 100%;
+ }
+ .panel {
+ width: calc(100% - 200px);
+ height: 100%;
+ padding: 30px;
+ background-color: var(--el-bg-color-page);
+ overflow: hidden;
+ }
}
}
@@ -78,3 +90,34 @@ export default defineComponent({
}
}
+
+
diff --git a/src/layouts/Main.vue b/src/layouts/Main.vue
index ab0dc2df..8df84e36 100644
--- a/src/layouts/Main.vue
+++ b/src/layouts/Main.vue
@@ -131,10 +131,13 @@ export default defineComponent({
display: flex;
flex-direction: row-reverse;
overflow: hidden;
+
.navigator {
height: 100%;
+ width: 60px;
border-right: 1px solid var(--el-border-color);
}
+
.main {
height: 100%;
width: calc(100% - 60px);
diff --git a/src/pages/console/application/Extra.vue b/src/pages/console/application/Extra.vue
index 733f686e..efc04afc 100644
--- a/src/pages/console/application/Extra.vue
+++ b/src/pages/console/application/Extra.vue
@@ -13,10 +13,6 @@
-
-
{{ $t('application.message.globalBalanceBuyDescription') }}
-
-
{{ application?.service?.title }}
@@ -273,13 +269,6 @@ export default defineComponent({
diff --git a/src/pages/console/application/List.vue b/src/pages/console/application/List.vue
index 0be56dbb..dd6e1096 100644
--- a/src/pages/console/application/List.vue
+++ b/src/pages/console/application/List.vue
@@ -16,7 +16,7 @@
table-layout="fixed"
:empty-text="$t('common.message.noData')"
>
-
+
{{ scope.row.id }}
@@ -26,10 +26,10 @@
-
+
{{ $t('application.type.period') }}
-
+
{{ $t('application.type.usage') }}
@@ -42,7 +42,7 @@
@@ -52,14 +52,14 @@
{{ getUsedAmount(scope.row) }}
-
+
{{ $dayjs.format(scope.row.expired_at) }}
@@ -84,7 +84,7 @@
-
+
@@ -100,7 +100,7 @@ import { applicationOperator } from '@/operators';
import Pagination from '@/components/common/Pagination.vue';
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
import { ElTable, ElRow, ElCol, ElTableColumn, ElCard, ElButton, ElTag } from 'element-plus';
-import { ROUTE_CONSOLE_APPLICATION_SUBSCRIBE } from '@/router/constants';
+import { ROUTE_CONSOLE_APPLICATION_EXTRA, ROUTE_CONSOLE_APPLICATION_SUBSCRIBE } from '@/router/constants';
import { IApplication, IApplicationListResponse, ICredentialType, IService } from '@/models';
interface IData {
@@ -139,7 +139,7 @@ export default defineComponent({
loading: false,
total: undefined,
buying: false,
- limit: 10,
+ limit: 12,
form: {
amount: 1
},
@@ -175,7 +175,7 @@ export default defineComponent({
methods: {
onBuyMore(application: IApplication) {
this.$router.push({
- name: ROUTE_CONSOLE_APPLICATION_SUBSCRIBE,
+ name: ROUTE_CONSOLE_APPLICATION_EXTRA,
params: {
id: application.id
}
@@ -225,37 +225,3 @@ export default defineComponent({
}
});
-
-
diff --git a/src/pages/console/application/Subscribe.vue b/src/pages/console/application/Subscribe.vue
index d79e5c98..c9255b9a 100644
--- a/src/pages/console/application/Subscribe.vue
+++ b/src/pages/console/application/Subscribe.vue
@@ -296,19 +296,7 @@ export default defineComponent({
diff --git a/src/pages/console/order/Detail.vue b/src/pages/console/order/Detail.vue
index 4a04e630..e9f7163e 100644
--- a/src/pages/console/order/Detail.vue
+++ b/src/pages/console/order/Detail.vue
@@ -29,6 +29,7 @@
{{ $t('order.title.wechatPay') }}
{{ $t('order.title.stripe') }}
+ {{ $t('order.title.aliPay') }}
{{ $dayjs.format(order?.created_at) }}
@@ -72,7 +73,6 @@
{{ $t('order.title.wechatPay') }}
+
+
+
+
+
-
-
diff --git a/src/pages/console/order/List.vue b/src/pages/console/order/List.vue
index 96ef4325..930a0039 100644
--- a/src/pages/console/order/List.vue
+++ b/src/pages/console/order/List.vue
@@ -10,7 +10,7 @@
-
+
{{ scope.row.id }}
@@ -26,19 +26,19 @@
- {{ $t('order.state.pending') }}
+ {{ $t('order.state.pending') }}
- {{ $t('order.state.paid') }}
+ {{ $t('order.state.paid') }}
- {{ $t('order.state.finished') }}
+ {{ $t('order.state.finished') }}
- {{ $t('order.state.expired') }}
+ {{ $t('order.state.expired') }}
- {{ $t('order.state.failed') }}
+ {{ $t('order.state.failed') }}
@@ -197,37 +197,3 @@ export default defineComponent({
}
});
-
-
diff --git a/src/pages/console/usage/List.vue b/src/pages/console/usage/List.vue
index 1025fdc0..fa47cd35 100644
--- a/src/pages/console/usage/List.vue
+++ b/src/pages/console/usage/List.vue
@@ -36,46 +36,33 @@
table-layout="fixed"
:empty-text="$t('common.message.noData')"
>
-
+
{{ scope.row?.api?.title }}
-
+
{{ scope.row.status_code }}
-
-
- {{ getRemainingAmount(scope.row) }}
-
-
{{ getDeductedAmount(scope.row) }}
-
+
-
- {{ key }}: {{ name }}
-
+
+
+ {{ key }}: {{ name }}
+
+
.panel {
- padding: 30px;
- width: calc(100% - 200px);
- background-color: var(--el-bg-color-page);
-
- .title {
- font-size: 26px;
- font-weight: bold;
- margin-bottom: 20px;
- color: var(--el-text-color-primary);
- }
.el-table {
- height: calc(100vh - 430px);
- margin-bottom: 50px;
- .el-button {
- border-radius: 20px;
- }
+ height: calc(100vh - 300px) !important;
}
}
-
-.pagination {
- margin: auto;
- width: fit-content;
-}