add tooltip of refresh api key

This commit is contained in:
AceDataCloud committed 2023-01-23 14:21:24 +08:00
1 parent 7c07d453e8
commit b8a4ecbe3b
2 files changed
+31 -29

No files matched your search

+29 -28
View File
@@ -13,42 +13,43 @@
</div> </div>
<div class="right"> <div class="right">
<div v-if="itemKey === 'api_key'"> <div v-if="itemKey === 'api_key'">
<el-popover v-if="!isApplied" placement="bottom" :width="200" trigger="click"> <div v-if="!isApplied">
<p class="text-center mb-2"> <el-popover placement="bottom" :width="200" trigger="click">
<small>{{ $t('application.message.notApplied') }}</small> <p class="text-center mb-2">
</p> <small>{{ $t('application.message.notApplied') }}</small>
<p class="text-center"> </p>
<router-link <p class="text-center">
:to="{ <router-link
name: 'service-detail', :to="{
params: { name: 'service-detail',
id: service?.id params: {
} id: service?.id
}" }
class="inline-block" }"
target="_blank" class="inline-block"
> target="_blank"
<el-button size="small" type="primary">{{ $t('common.button.apply') }}</el-button> >
</router-link> <el-button size="small" type="primary">{{ $t('common.button.apply') }}</el-button>
<el-button v-if="false" size="small" class="inline-block ml-2" @click="onRefreshApplications()">{{ </router-link>
$t('common.button.refresh') </p>
}}</el-button> <template #reference>
</p>
<template #reference>
<div>
<el-input <el-input
v-model="value[itemKey?.toString()]" v-model="value[itemKey?.toString()]"
:placeholder="$t('common.title.placeholderOfSelect')" :placeholder="$t('common.title.placeholderOfInput')"
class="inline-block w-4/5" class="inline-block w-4/5"
/> />
</template>
</el-popover>
<el-tooltip effect="dark" :content="$t('common.button.refresh')" placement="right">
<span class="inline-block">
<font-awesome-icon <font-awesome-icon
icon="fa-solid fa-rotate-right" icon="fa-solid fa-rotate-right"
class="inline-block text-sm cursor-pointer ml-1 color-primary" class="text-sm cursor-pointer ml-1 color-primary"
@click="$emit('refresh-applications')" @click="$emit('refresh-applications')"
/> />
</div> </span>
</template> </el-tooltip>
</el-popover> </div>
<el-select <el-select
v-else v-else
v-model="value[itemKey?.toString()]" v-model="value[itemKey?.toString()]"
+2 -1
View File
@@ -1,5 +1,6 @@
export default { export default {
orderDescription: '知数云课程订单', orderDescription: '知数云课程订单',
documentIntroduction: '文档介绍', documentIntroduction: '文档介绍',
placeholderOfSelect: '请选择' placeholderOfSelect: '请选择',
placeholderOfInput: '请填写'
}; };