NEZ-1895 perf : 添加token列,取消Administration - api keys添加按钮
This commit is contained in:
@@ -10,11 +10,6 @@
|
||||
@search="search">
|
||||
<template v-slot:top-tool-left>
|
||||
|
||||
</template>
|
||||
<template v-slot:top-tool-right>
|
||||
<button id="api-key-add" v-has="'system_apiKey_add'" :title="$t('config.system.notification.create')" class="top-tool-btn margin-r-10" type="button" @click="addApiKey">
|
||||
<i class="nz-icon-create-square nz-icon"></i>
|
||||
</button>
|
||||
</template>
|
||||
<template v-slot:default="slotProps">
|
||||
<api-key-table
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
:api="url"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
:from="fromRoute.apiKey"
|
||||
class="api-key"
|
||||
:layout="['searchInput', 'elementSet', 'pagination']"
|
||||
:search-msg="searchMsg"
|
||||
@search="search">
|
||||
@@ -87,6 +88,11 @@ export default {
|
||||
prop: 'name',
|
||||
minWidth: 100,
|
||||
show: true
|
||||
}, {
|
||||
label: this.$t('asset.talon.token'),
|
||||
prop: 'token',
|
||||
minWidth: 180,
|
||||
show: true
|
||||
}, {
|
||||
label: this.$t('config.system.apiKey.expireAt'),
|
||||
prop: 'expireAt',
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
</template>
|
||||
<template v-if="item.prop == 'name'">
|
||||
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
|
||||
</template>
|
||||
<template v-if="item.prop == 'token'">
|
||||
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
|
||||
</template>
|
||||
<template v-if="item.prop == 'expireAt'">
|
||||
{{scope.row[item.prop]?utcTimeToTimezoneStr(scope.row[item.prop]):'-'}}
|
||||
@@ -97,10 +100,17 @@ export default {
|
||||
}, {
|
||||
label: this.$t('overall.name'),
|
||||
prop: 'name',
|
||||
minWidth: 100,
|
||||
show: true
|
||||
}, {
|
||||
label: this.$t('asset.talon.token'),
|
||||
prop: 'token',
|
||||
minWidth: 180,
|
||||
show: true
|
||||
}, {
|
||||
label: this.$t('config.system.apiKey.expireAt'),
|
||||
prop: 'expireAt',
|
||||
minWidth: 100,
|
||||
show: true
|
||||
}, {
|
||||
label: this.$t('config.system.apiKey.creatAt'),
|
||||
|
||||
Reference in New Issue
Block a user