Fix application buy (#110)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
709a86658b
commit
49ab74e344
2 files changed
+20
-4
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "fix application list apply",
|
||||
"packageName": "@acedatacloud/nexior",
|
||||
"email": "office@acedata.cloud",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -67,7 +67,13 @@
|
||||
<el-table-column fixed="right" width="120px">
|
||||
<template #default="scope">
|
||||
<div class="float-right">
|
||||
<el-button type="primary" round size="small" @click="onBuyMore(scope?.row)">
|
||||
<el-button
|
||||
v-if="scope?.row?.type === 'Period' || scope?.row?.type === 'Usage'"
|
||||
type="primary"
|
||||
round
|
||||
size="small"
|
||||
@click="onBuyMore(scope?.row)"
|
||||
>
|
||||
{{ $t('application.button.buyMore') }}
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -94,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_EXTRA } from '@/router/constants';
|
||||
import { ROUTE_CONSOLE_APPLICATION_EXTRA, ROUTE_CONSOLE_APPLICATION_SUBSCRIBE } from '@/router/constants';
|
||||
import { IApplication, IApplicationListResponse, IApplicationType, ICredentialType, IService } from '@/models';
|
||||
|
||||
interface IData {
|
||||
@@ -175,9 +181,12 @@ export default defineComponent({
|
||||
id: application.id
|
||||
}
|
||||
});
|
||||
} else {
|
||||
} else if (application.type === IApplicationType.PERIOD) {
|
||||
this.$router.push({
|
||||
name: ROUTE_CONSOLE_SUBSCRIPTION_BUY
|
||||
name: ROUTE_CONSOLE_APPLICATION_SUBSCRIBE,
|
||||
params: {
|
||||
id: application.id
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user