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