update ui styles
This commit is contained in:
1 parent
d7d0672c66
commit
a42b794706
5 files changed
+45
-26
No files matched your search
+17
-16
@@ -34,11 +34,11 @@
|
||||
<el-input
|
||||
v-model="value[itemKey?.toString()]"
|
||||
:placeholder="$t('common.title.placeholderOfInput')"
|
||||
class="inline-block w-4/5"
|
||||
class="inline-block w-2/3"
|
||||
/>
|
||||
</template>
|
||||
</el-popover>
|
||||
<el-button type="primary" class="ml-1" size="small" @click="$emit('refresh-applications')">
|
||||
<el-button type="primary" class="inline-block ml-2" size="small" @click="$emit('refresh-applications')">
|
||||
{{ $t('common.button.acquire') }}
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -83,20 +83,21 @@
|
||||
<el-option key="true" :label="'true'" :value="true" />
|
||||
<el-option key="false" :label="'false'" :value="false" />
|
||||
</el-select>
|
||||
<el-select
|
||||
v-else-if="item?.example"
|
||||
v-model="value[itemKey?.toString()]"
|
||||
:clearable="true"
|
||||
:filterable="true"
|
||||
:allow-create="true"
|
||||
class="w-full"
|
||||
:placeholder="$t('common.title.placeholderOfInput')"
|
||||
>
|
||||
<el-option :label="item.example" :value="item.example" class="select-option">
|
||||
<span class="select-option-main">{{ item.example }}</span>
|
||||
<span class="select-option-description">{{ $t('application.message.example') }}</span>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<div v-else-if="item?.example">
|
||||
<el-input
|
||||
v-model="value[itemKey?.toString()]"
|
||||
class="inline-block w-2/3"
|
||||
:placeholder="$t('common.title.placeholderOfInput')"
|
||||
/>
|
||||
<el-button
|
||||
type="primary"
|
||||
class="inline-block ml-2"
|
||||
size="small"
|
||||
@click="value[itemKey?.toString()] = item.example!"
|
||||
>
|
||||
{{ $t('common.button.fillExample') }}
|
||||
</el-button>
|
||||
</div>
|
||||
<el-input v-else v-model="value[itemKey?.toString()]" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export default {
|
||||
id: '申请ID',
|
||||
remainingAmount: '剩余量',
|
||||
usedAmount: '使用量',
|
||||
apiKey: 'API Key',
|
||||
|
||||
@@ -23,5 +23,7 @@ export default {
|
||||
pay: '支付',
|
||||
repay: '继续支付',
|
||||
applied: '已申请',
|
||||
acquire: '获取'
|
||||
acquire: '获取',
|
||||
fillExample: '填写样例',
|
||||
buyMore: '购买更多'
|
||||
};
|
||||
@@ -14,7 +14,15 @@
|
||||
<el-menu-item :index="applicationType.PROXY">{{ $t('application.field.proxy') }}</el-menu-item>
|
||||
</el-menu>
|
||||
<el-table v-loading="loading" :data="applications" stripe>
|
||||
<el-table-column :label="$t('application.field.name')" width="200px">
|
||||
<el-table-column prop="id" :label="$t('application.field.id')" width="350px" class-name="text-center">
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.id }}</span>
|
||||
<span class="copy">
|
||||
<copy-to-clipboard :content="scope?.row?.id" />
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('application.field.name')" width="220px">
|
||||
<template #default="scope">
|
||||
<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>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<el-row class="banner">
|
||||
<el-col :span="24">
|
||||
<el-row>
|
||||
<el-col :md="10" :offset="2" :xs="24" class="left">
|
||||
<el-col :md="10" :offset="2" :sm="24" :xs="24" class="left">
|
||||
<div v-if="loading" class="info">
|
||||
<el-skeleton animated>
|
||||
<template #template>
|
||||
@@ -39,7 +39,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :md="10" :xs="0" class="right">
|
||||
<el-col :md="10" :sm="0" :xs="0" class="right">
|
||||
<div class="demo">
|
||||
<img src="@/assets/images/illustration.png" />
|
||||
</div>
|
||||
@@ -63,12 +63,19 @@
|
||||
<api-preview :api="api" />
|
||||
</el-col>
|
||||
<el-col :span="4" class="operations">
|
||||
<el-button v-if="!api.applied" type="primary" @click="onConfirm(api, applicationType.API)">
|
||||
{{ $t('common.button.apply') }}
|
||||
</el-button>
|
||||
<el-button v-else disabled type="primary">
|
||||
{{ $t('common.button.applied') }}
|
||||
</el-button>
|
||||
<div v-if="!api.applied">
|
||||
<el-button type="primary" @click="onConfirm(api, applicationType.API)">
|
||||
{{ $t('common.button.apply') }}
|
||||
</el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
<el-button disabled>
|
||||
{{ $t('common.button.applied') }}
|
||||
</el-button>
|
||||
<el-button type="primary" @click="$router.push('console-application-list')">
|
||||
{{ $t('common.button.buyMore') }}
|
||||
</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-divider v-if="apiIndex < apis.length - 1" border-style="dashed" />
|
||||
|
||||
Reference in new issue
Block a user