NEZ-1895 fix : profile 新增用户个人 api key 页面
This commit is contained in:
@@ -207,7 +207,7 @@
|
|||||||
color: $--color-primary;
|
color: $--color-primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mt-10.table-container.nz-table2 {
|
.mt-10.table-container.nz-table-list {
|
||||||
.el-table:not(.chart-table) {
|
.el-table:not(.chart-table) {
|
||||||
.gutter {
|
.gutter {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -220,7 +220,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* 上滑resize工具条--end */
|
/* 上滑resize工具条--end */
|
||||||
.nz-table2 {
|
.nz-table-list {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -347,7 +347,7 @@
|
|||||||
.el-table__body-wrapper .is-hidden, .el-table__header-wrapper .is-hidden {
|
.el-table__body-wrapper .is-hidden, .el-table__header-wrapper .is-hidden {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
.nz-table2 {
|
.nz-table-list {
|
||||||
.el-table--border td {
|
.el-table--border td {
|
||||||
border-right: none !important;
|
border-right: none !important;
|
||||||
}
|
}
|
||||||
@@ -395,7 +395,7 @@
|
|||||||
.main-container {
|
.main-container {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.list-page .nz-table2 .el-table:not(.chart-table) .gutter {
|
.list-page .nz-table-list .el-table:not(.chart-table) .gutter {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 31px;
|
right: 31px;
|
||||||
height: 42px;
|
height: 42px;
|
||||||
@@ -549,7 +549,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.list-page.detail-view .nz-detail-view-right{
|
.list-page.detail-view .nz-detail-view-right{
|
||||||
.nz-table2 .el-table--border {
|
.nz-table-list .el-table--border {
|
||||||
height: calc(100% - 45px) !important;
|
height: calc(100% - 45px) !important;
|
||||||
.gutter {
|
.gutter {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
@@ -213,7 +213,7 @@
|
|||||||
&>.overview{
|
&>.overview{
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
&>.nz-table2{
|
&>.nz-table-list{
|
||||||
padding-top: 10px !important;
|
padding-top: 10px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
.pagination-bottom {
|
.pagination-bottom {
|
||||||
bottom: 8px;
|
bottom: 8px;
|
||||||
}
|
}
|
||||||
&>.nz-table2 {
|
&>.nz-table-list {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 20px 20px 10px 20px !important;
|
padding: 20px 20px 10px 20px !important;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
}
|
}
|
||||||
.list-page {
|
.list-page {
|
||||||
.sub-box.bottom-box {
|
.sub-box.bottom-box {
|
||||||
.nz-table2 .el-table--border {
|
.nz-table-list .el-table--border {
|
||||||
.gutter {
|
.gutter {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 31px;
|
right: 31px;
|
||||||
@@ -115,13 +115,13 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: $--background-color-base;
|
background-color: $--background-color-base;
|
||||||
|
|
||||||
&>.nz-table2 {
|
&>.nz-table-list {
|
||||||
height: calc(100% - 92px);
|
height: calc(100% - 92px);
|
||||||
padding: 20px 20px 0;
|
padding: 20px 20px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.chart-list{
|
.chart-list{
|
||||||
.nz-table2 {
|
.nz-table-list {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -177,16 +177,16 @@
|
|||||||
.bottom-box .sub-container{
|
.bottom-box .sub-container{
|
||||||
height: calc(100% - 50px);
|
height: calc(100% - 50px);
|
||||||
}
|
}
|
||||||
.bottom-box .sub-container .nz-table2 {
|
.bottom-box .sub-container .nz-table-list {
|
||||||
height: calc(100% - 20px);
|
height: calc(100% - 20px);
|
||||||
.bottom-box__top .my-loading-box {
|
.bottom-box__top .my-loading-box {
|
||||||
height: calc(100% + 20px) !important;
|
height: calc(100% + 20px) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.asset-detail .sub-container .nz-table2 {
|
.asset-detail .sub-container .nz-table-list {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.endpoint-tab-new .sub-container .nz-table2 {
|
.endpoint-tab-new .sub-container .nz-table-list {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
/* end--二级顶部工具栏*/
|
/* end--二级顶部工具栏*/
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-box .sub-list__tabs .chart-list .nz-table2 {
|
.sub-box .sub-list__tabs .chart-list .nz-table-list {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
@@ -36,14 +36,14 @@
|
|||||||
& > div {
|
& > div {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
& > .nz-table2 {
|
& > .nz-table-list {
|
||||||
height: calc(100% - 92px);
|
height: calc(100% - 92px);
|
||||||
padding: 20px 20px 0;
|
padding: 20px 20px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.chart-list {
|
.chart-list {
|
||||||
.nz-table2 {
|
.nz-table-list {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -490,14 +490,14 @@
|
|||||||
padding:0 !important;
|
padding:0 !important;
|
||||||
width: calc(100% - 2px);
|
width: calc(100% - 2px);
|
||||||
height: calc(100% - 2px) !important;
|
height: calc(100% - 2px) !important;
|
||||||
.nz-table2{
|
.nz-table-list{
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.from-project{
|
.from-project{
|
||||||
padding: 0px 10px 0 0 !important;
|
padding: 0px 10px 0 0 !important;
|
||||||
.nz-table2{
|
.nz-table-list{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
height: calc(100% - 50px);
|
height: calc(100% - 50px);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.backups-table{
|
.backups-table{
|
||||||
.nz-table2 {
|
.nz-table-list {
|
||||||
.el-table__row{
|
.el-table__row{
|
||||||
td:last-of-type{
|
td:last-of-type{
|
||||||
// border-bottom: 1px solid $--border-color-light !important;
|
// border-bottom: 1px solid $--border-color-light !important;
|
||||||
|
|||||||
@@ -34,17 +34,25 @@
|
|||||||
}
|
}
|
||||||
.operationLog{
|
.operationLog{
|
||||||
.main-list{
|
.main-list{
|
||||||
|
.apiKey{
|
||||||
|
position: relative;
|
||||||
|
.pop-custom{
|
||||||
|
position: absolute;
|
||||||
|
top: -20px;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
.main-container{
|
.main-container{
|
||||||
background-color: $--background-color-empty;
|
background-color: $--background-color-empty;
|
||||||
}
|
}
|
||||||
.nz-table2{
|
.nz-table-list{
|
||||||
position: relative;
|
position: relative;
|
||||||
.top-tool-right{
|
.top-tool-right{
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
top: -55px !important;
|
top: -55px !important;
|
||||||
right: 0 !important;
|
right: 0 !important;
|
||||||
}
|
}
|
||||||
.nz-table2{
|
.nz-table-list{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 96% !important;
|
height: 96% !important;
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
@@ -52,7 +60,7 @@
|
|||||||
padding-right: 0 !important;
|
padding-right: 0 !important;
|
||||||
top: 0 !important;
|
top: 0 !important;
|
||||||
left: 0;
|
left: 0;
|
||||||
#apiKeyTable{
|
#api-key-tab{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.el-table__fixed-header-wrapper.has-gutter{
|
.el-table__fixed-header-wrapper.has-gutter{
|
||||||
|
|||||||
@@ -228,7 +228,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
pxbox-shadow: 0 1px 2px 0 rgba(0,0,0,0.06);
|
pxbox-shadow: 0 1px 2px 0 rgba(0,0,0,0.06);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
.nz-table2 {
|
.nz-table-list {
|
||||||
height: calc(100% - 69px);
|
height: calc(100% - 69px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.log-table .nz-table2 {
|
.log-table .nz-table-list {
|
||||||
padding: 10px 0 0 0;
|
padding: 10px 0 0 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: $--background-color-empty;
|
background-color: $--background-color-empty;
|
||||||
@@ -133,11 +133,11 @@
|
|||||||
.chart-log.log-detail {
|
.chart-log.log-detail {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
.log-table {
|
.log-table {
|
||||||
.nz-table2::before{
|
.nz-table-list::before{
|
||||||
display: none;
|
display: none;
|
||||||
height: 0px;
|
height: 0px;
|
||||||
}
|
}
|
||||||
.nz-table2 {
|
.nz-table-list {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.el-table__body-wrapper {
|
.el-table__body-wrapper {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
.el-carousel__indicator--horizontal.is-active .el-carousel__button{
|
.el-carousel__indicator--horizontal.is-active .el-carousel__button{
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
.nz-table2 {
|
.nz-table-list {
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
.chart-body {
|
.chart-body {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
.main-container {
|
.main-container {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
.nz-table2.h100 {
|
.nz-table-list.h100 {
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
.right-bottom-zoom {
|
.right-bottom-zoom {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
.top-tools div:nth-of-type(1) {
|
.top-tools div:nth-of-type(1) {
|
||||||
color: $--color-text-primary;
|
color: $--color-text-primary;
|
||||||
}
|
}
|
||||||
.nz-table2 {
|
.nz-table-list {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
.right-bottom-zoom {
|
.right-bottom-zoom {
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.nz-table2{
|
.nz-table-list{
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.nz-table2{
|
.nz-table-list{
|
||||||
flex: 1 !important;
|
flex: 1 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.nz-table2{
|
.nz-table-list{
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.nz-table2{
|
.nz-table-list{
|
||||||
flex: 1 !important;
|
flex: 1 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
style="height: 100%"
|
style="height: 100%"
|
||||||
:show-header="false"
|
:show-header="false"
|
||||||
ref="logTable"
|
ref="logTable"
|
||||||
class="nz-table2"
|
class="nz-table-list"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-if="tableData.length"
|
v-if="tableData.length"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="nz-table2" style="height: 100%;padding: 0 10px 10px 10px;box-sizing: border-box">
|
<div class="nz-table-list" style="height: 100%;padding: 0 10px 10px 10px;box-sizing: border-box">
|
||||||
<el-table
|
<el-table
|
||||||
ref="dataTable"
|
ref="dataTable"
|
||||||
class="chart-table"
|
class="chart-table"
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="(!editTopologyFlag&&!fromOverView)&&!fromChart" class="top-tools" style="padding-left: 10px">
|
<div v-if="(!editTopologyFlag&&!fromOverView)&&!fromChart" class="top-tools" style="padding-left: 10px">
|
||||||
</div>
|
</div>
|
||||||
<div class="nz-table2" :class="fromChart ? 'h100': ''">
|
<div class="nz-table-list" :class="fromChart ? 'h100': ''">
|
||||||
<!--悬浮network部分-->
|
<!--悬浮network部分-->
|
||||||
<div class="network-info">
|
<div class="network-info">
|
||||||
<div v-if="popDataShow.main">
|
<div v-if="popDataShow.main">
|
||||||
|
|||||||
@@ -100,14 +100,14 @@ export default {
|
|||||||
const className = []
|
const className = []
|
||||||
switch (this.targetTab) {
|
switch (this.targetTab) {
|
||||||
case 'panelTab':
|
case 'panelTab':
|
||||||
className.push('nz-table2 bottom-panel')
|
className.push('nz-table-list bottom-panel')
|
||||||
break
|
break
|
||||||
case 'log': {
|
case 'log': {
|
||||||
className.push('bottom-log')
|
className.push('bottom-log')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
className.push('nz-table2')
|
className.push('nz-table-list')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="nz-table2">
|
<div class="nz-table-list">
|
||||||
<!--悬浮network部分-->
|
<!--悬浮network部分-->
|
||||||
<div class="network-info">
|
<div class="network-info">
|
||||||
<div v-if="popDataShow.main">
|
<div v-if="popDataShow.main">
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
type="datetime"
|
type="datetime"
|
||||||
prefix-icon="el-icon-date"
|
prefix-icon="el-icon-date"
|
||||||
:format="timeFormatStrToDatePickFormat(dateFormatStr)"
|
:format="timeFormatStrToDatePickFormat(dateFormatStr)"
|
||||||
:placeholder="$t('backup.SelectData')"
|
:placeholder="$t('backup.selectData')"
|
||||||
>
|
>
|
||||||
</my-date-picker>
|
</my-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-clickoutside="{obj: apiKeyBox, func: esc}" class="right-box right-box-profile">
|
<div v-clickoutside="{obj: apiKeyBox, func: esc}" class="right-box right-box-profile">
|
||||||
<div class="right-box__header">
|
<div class="right-box__header">
|
||||||
<div class="header__title">{{$t('profile.box.NewApiKey')}}</div>
|
<div class="header__title">{{$t('profile.box.newApiKey')}}</div>
|
||||||
<div class="header__operation">
|
<div class="header__operation">
|
||||||
<span v-cancel="{obj: apiKeyBox, func: esc}"><i class="nz-icon nz-icon-close"></i></span>
|
<span v-cancel="{obj: apiKeyBox, func: esc}"><i class="nz-icon nz-icon-close"></i></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -10,10 +10,10 @@
|
|||||||
<div class="container__form">
|
<div class="container__form">
|
||||||
<el-form ref="apiKeyBoxForm" :model="apiKeyBox" :rules="rules" label-position="top" label-width="120px">
|
<el-form ref="apiKeyBoxForm" :model="apiKeyBox" :rules="rules" label-position="top" label-width="120px">
|
||||||
<el-form-item :label="$t('profile.name')" prop="name">
|
<el-form-item :label="$t('profile.name')" prop="name">
|
||||||
<el-input maxlength="64" show-word-limit v-model="apiKeyBox.name" size="small" type="text"></el-input>
|
<el-input maxlength="64" show-word-limit v-model="apiKeyBox.name" size="small" type="text" :placeholder="$t('profile.name')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('profile.apiKey.Box.ExpiredAt')"
|
:label="$t('profile.apiKey.box.expiredAt')"
|
||||||
class="start_at"
|
class="start_at"
|
||||||
>
|
>
|
||||||
<my-date-picker
|
<my-date-picker
|
||||||
@@ -23,12 +23,12 @@
|
|||||||
type="datetime"
|
type="datetime"
|
||||||
prefix-icon="el-icon-date"
|
prefix-icon="el-icon-date"
|
||||||
:format="timeFormatStrToDatePickFormat(dateFormatStr)"
|
:format="timeFormatStrToDatePickFormat(dateFormatStr)"
|
||||||
:placeholder="$t('backup.SelectData')"
|
:placeholder="$t('backup.selectData')"
|
||||||
>
|
>
|
||||||
</my-date-picker>
|
</my-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('overall.remark')">
|
<el-form-item :label="$t('overall.remark')">
|
||||||
<el-input show-word-limit v-model="apiKeyBox.remark" size="small" type="text"></el-input>
|
<el-input show-word-limit v-model="apiKeyBox.remark" size="small" type="textarea" :placeholder="$t('overall.remark')" maxlength="256"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
<div v-if="showLayout.indexOf('clickSearch') > -1" class="search-box">
|
<div v-if="showLayout.indexOf('clickSearch') > -1" class="search-box">
|
||||||
<slot name="search"></slot>
|
<slot name="search"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="bottomBox.mainResizeShow" :style="{ height: nzTableHeight }" class="nz-table2">
|
<div v-show="bottomBox.mainResizeShow" :style="{ height: nzTableHeight }" class="nz-table-list">
|
||||||
<slot v-bind:mainResizeShow="bottomBox.mainResizeShow"></slot>
|
<slot v-bind:mainResizeShow="bottomBox.mainResizeShow"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="bottomBox.mainResizeShow" v-if="showLayout.indexOf('pagination') > -1" class="pagination-bottom">
|
<div v-show="bottomBox.mainResizeShow" v-if="showLayout.indexOf('pagination') > -1" class="pagination-bottom">
|
||||||
|
|||||||
@@ -937,7 +937,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
/deep/ .nz-table2{
|
/deep/ .nz-table-list{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
@reload="getTableData"
|
@reload="getTableData"
|
||||||
@selectionChange="selectionChange"
|
@selectionChange="selectionChange"
|
||||||
@showBottomBox="(targetTab, object) => { $refs.dataList.showBottomBox(targetTab, object) }"></operation-log-table>
|
@showBottomBox="(targetTab, object) => { $refs.dataList.showBottomBox(targetTab, object) }"></operation-log-table>
|
||||||
<api-key-tab v-if="profileShowLabel === 3"></api-key-tab>
|
<self-api-key-tab v-if="profileShowLabel === 3"></self-api-key-tab>
|
||||||
<template v-else-if="profileShowLabel === 2">
|
<template v-else-if="profileShowLabel === 2">
|
||||||
<profileChangePin/>
|
<profileChangePin/>
|
||||||
</template>
|
</template>
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
import nzDataList from '@/components/common/table/nzDataList'
|
import nzDataList from '@/components/common/table/nzDataList'
|
||||||
import dataListMixin from '@/components/common/mixin/dataList'
|
import dataListMixin from '@/components/common/mixin/dataList'
|
||||||
import operationLogTable from '@/components/common/table/settings/operationLogTable'
|
import operationLogTable from '@/components/common/table/settings/operationLogTable'
|
||||||
import apiKeyTab from '@/components/page/config/system/apiKeyTab2'
|
import selfApiKeyTab from '@/components/page/config/system/selfApiKeyTab'
|
||||||
import profileChangePin from '@/components//page/config/profileChangePin'
|
import profileChangePin from '@/components//page/config/profileChangePin'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -57,7 +57,7 @@ export default {
|
|||||||
nzDataList,
|
nzDataList,
|
||||||
operationLogTable,
|
operationLogTable,
|
||||||
profileChangePin,
|
profileChangePin,
|
||||||
apiKeyTab
|
selfApiKeyTab
|
||||||
},
|
},
|
||||||
mixins: [dataListMixin],
|
mixins: [dataListMixin],
|
||||||
data () {
|
data () {
|
||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.tabsActive()
|
this.tabsActive()
|
||||||
this.getTableData()
|
// this.getTableData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tabsActive () {
|
tabsActive () {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<nz-data-list
|
<nz-data-list
|
||||||
ref="dataList"
|
ref="dataList"
|
||||||
:api="url"
|
:api="url"
|
||||||
:custom-table-title.sync="customTableTitle2"
|
:custom-table-title.sync="tools.customTableTitle"
|
||||||
:from="fromRoute.apiKey"
|
:from="fromRoute.apiKey"
|
||||||
:layout="['searchInput', 'elementSet', 'pagination']"
|
:layout="['searchInput', 'elementSet', 'pagination']"
|
||||||
:search-msg="searchMsg"
|
:search-msg="searchMsg"
|
||||||
@@ -12,19 +12,19 @@
|
|||||||
|
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:top-tool-right>
|
<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">
|
<button id="api-key-add" v-has="'system_apiKey_add'" class="top-tool-btn margin-r-10" type="button" @click="addApiKey">
|
||||||
<i class="nz-icon-create-square nz-icon"></i>
|
<i class="nz-icon-create-square nz-icon"></i>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:default="slotProps">
|
<template v-slot:default="slotProps">
|
||||||
<api-key-table
|
<self-api-key-table
|
||||||
ref="dataTable"
|
ref="dataTable"
|
||||||
:orderByFa="orderBy"
|
:orderByFa="orderBy"
|
||||||
v-my-loading="tools.loading"
|
v-my-loading="tools.loading"
|
||||||
:loading="tools.loading"
|
:loading="tools.loading"
|
||||||
:table-id="tableId"
|
:table-id="tableId"
|
||||||
:api="url"
|
:api="url"
|
||||||
:custom-table-title="customTableTitle2"
|
:custom-table-title="tools.customTableTitle"
|
||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
:table-data="tableData"
|
:table-data="tableData"
|
||||||
@del="del"
|
@del="del"
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
@orderBy="tableDataSort"
|
@orderBy="tableDataSort"
|
||||||
@reload="getTableData"
|
@reload="getTableData"
|
||||||
@selectionChange="selectionChange"
|
@selectionChange="selectionChange"
|
||||||
></api-key-table>
|
></self-api-key-table>
|
||||||
</template>
|
</template>
|
||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<template v-slot:pagination>
|
<template v-slot:pagination>
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import apiKeyTable from './apiKeyTable2'
|
import selfApiKeyTable from './selfApiKeyTable'
|
||||||
import dataListMixin from '@/components/common/mixin/dataList'
|
import dataListMixin from '@/components/common/mixin/dataList'
|
||||||
import nzDataList from '@/components/common/table/nzDataList'
|
import nzDataList from '@/components/common/table/nzDataList'
|
||||||
import { parentTableCommon } from './systemCommon'
|
import { parentTableCommon } from './systemCommon'
|
||||||
@@ -51,7 +51,7 @@ import bus from '@/libs/bus'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'apiKeyTab',
|
name: 'apiKeyTab',
|
||||||
components: { nzDataList, apiKeyTable },
|
components: { nzDataList, selfApiKeyTable },
|
||||||
mixins: [dataListMixin, parentTableCommon],
|
mixins: [dataListMixin, parentTableCommon],
|
||||||
props: {
|
props: {
|
||||||
switchTab: String
|
switchTab: String
|
||||||
@@ -59,7 +59,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
url: 'sys/apiKey/self',
|
url: 'sys/apiKey/self',
|
||||||
tableId: 'apiKeyTable',
|
tableId: 'api-key-tab',
|
||||||
searchMsg: { // 给搜索框子组件传递的信息
|
searchMsg: { // 给搜索框子组件传递的信息
|
||||||
zheze_none: true,
|
zheze_none: true,
|
||||||
searchLabelList: [{
|
searchLabelList: [{
|
||||||
@@ -76,7 +76,7 @@ export default {
|
|||||||
disabled: false
|
disabled: false
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
customTableTitle2: [
|
tableTitle: [
|
||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
@@ -107,7 +107,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getTableData()
|
// this.getTableData()
|
||||||
bus.$on('apiKey-tab2', () => {
|
bus.$on('apiKey-tab2', () => {
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
})
|
})
|
||||||
@@ -40,10 +40,10 @@
|
|||||||
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
|
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.prop == 'expireAt'">
|
<template v-if="item.prop == 'expireAt'">
|
||||||
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
|
{{scope.row[item.prop]?timeFormates(scope.row[item.prop]):'-'}}
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.prop == 'createAt'">
|
<template v-if="item.prop == 'createAt'">
|
||||||
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
|
{{scope.row[item.prop]?timeFormates(scope.row[item.prop]):'-'}}
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.prop == 'remark'">
|
<template v-if="item.prop == 'remark'">
|
||||||
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
|
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
|
||||||
@@ -80,6 +80,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { tableCommon } from './systemCommon'
|
import { tableCommon } from './systemCommon'
|
||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
|
import bus from '@/libs/bus'
|
||||||
export default {
|
export default {
|
||||||
name: 'apiKeyTable',
|
name: 'apiKeyTable',
|
||||||
props: {
|
props: {
|
||||||
@@ -117,7 +118,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
timeFormates (data) {
|
||||||
|
if (localStorage.getItem('nz-default-dateFormat')) {
|
||||||
|
return bus.timeFormate(new Date(data), localStorage.getItem('nz-default-dateFormat'))
|
||||||
|
} else {
|
||||||
|
return bus.timeFormate(new Date(data), 'YYYY-MM-DD HH:mm:ss')
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted () {}
|
created () {
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
</transition>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
<!-- 自定义table列 -->
|
<!-- 自定义table列 -->
|
||||||
<div class="nz-table2 explore-table">
|
<div class="nz-table-list explore-table">
|
||||||
<el-table ref="exploreTable"
|
<el-table ref="exploreTable"
|
||||||
v-my-loading="tools.loading"
|
v-my-loading="tools.loading"
|
||||||
class="metric-table"
|
class="metric-table"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
:data="tableData"
|
:data="tableData"
|
||||||
:show-header="false"
|
:show-header="false"
|
||||||
ref="logTable"
|
ref="logTable"
|
||||||
class="nz-table2"
|
class="nz-table-list"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-if="tableData.length"
|
v-if="tableData.length"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user