提交 bf8c1a98 authored 作者: junjie's avatar junjie

feat(frontend):UI fix ;关于 fix

上级 5da9df54
...@@ -25,8 +25,8 @@ export default { ...@@ -25,8 +25,8 @@ export default {
@import "~@/styles/variables.scss"; @import "~@/styles/variables.scss";
.app-main { .app-main {
/*107 = navbar 50 + topbar 57 */ /* topbar 56 */
min-height: calc(100vh - 107px); min-height: calc(100vh - 56px);
width: 100%; width: 100%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
......
<template> <template>
<layout-content> <div style="width: 100%;display: flex;justify-content: center;">
<el-card class="box-card about-card">
<div> <div slot="header" class="clearfix license-header">
<el-card class="box-card about-card"> <img src="@/assets/DataEase-white.png" alt="" width="300">
<div slot="header" class="clearfix license-header"> </div>
<img src="@/assets/DataEase-white.png" alt="" width="300"> <div class="license-content">
<div v-if="license.status === 'Fail'">{{ $t('about.invalid_license') }}</div>
<div v-if="license.status !== 'Fail'">
<table>
<tr>
<th>{{ $t('about.auth_to') }}</th>
<td>{{ license.corporation }}</td>
</tr>
<tr>
<th>{{ $t('about.expiration_time') }}</th>
<td>
<label v-if="license.status === 'expired'" style="color: red">{{ license.expired }} {{ $t('about.expirationed') }}</label>
<label v-if="license.status === 'valid'">{{ license.expired }}</label>
</td>
</tr>
<tr>
<th>{{ $t('about.auth_num') }}</th>
<td>{{ license.count }}</td>
</tr>
<tr>
<th>{{ $t('about.version') }}</th>
<td>
<span v-if="license.edition">
<span v-if="license.edition === 'Standard'">{{ $t('about.standard') }}</span>
<span v-if="license.edition === 'Enterprise'">{{ $t('about.enterprise') }}</span>
</span>
</td>
</tr>
<tr>
<th>{{ $t('about.version_num') }}</th>
<td>
<span>{{ build }}</span>
</td>
</tr>
</table>
</div> </div>
<div class="license-content">
<div v-if="license.status === 'Fail'">{{ $t('about.invalid_license') }}</div>
<div v-if="license.status !== 'Fail'">
<table>
<tr>
<th>{{ $t('about.auth_to') }}</th>
<td>{{ license.corporation }}</td>
</tr>
<tr>
<th>{{ $t('about.expiration_time') }}</th>
<td>
<label v-if="license.status === 'expired'" style="color: red">{{ license.expired }} {{ $t('about.expirationed') }}</label>
<label v-if="license.status === 'valid'">{{ license.expired }}</label>
</td>
</tr>
<tr>
<th>{{ $t('about.auth_num') }}</th>
<td>{{ license.count }}</td>
</tr>
<tr>
<th>{{ $t('about.version') }}</th>
<td>
<span v-if="license.edition">
<span v-if="license.edition === 'Standard'">{{ $t('about.standard') }}</span>
<span v-if="license.edition === 'Enterprise'">{{ $t('about.enterprise') }}</span>
</span>
</td>
</tr>
<tr>
<th>{{ $t('about.version_num') }}</th>
<td>
<span>{{ build }}</span>
</td>
</tr>
</table>
</div>
<div class="md-padding" /> <div class="md-padding" />
<div v-if="user.isAdmin" layout="row" layout-align="space-between center" class="lic_rooter"> <div v-if="user.isAdmin" layout="row" layout-align="space-between center" class="lic_rooter">
<el-upload <el-upload
action="" action=""
:multiple="false" :multiple="false"
:show-file-list="false" :show-file-list="false"
:file-list="fileList" :file-list="fileList"
accept=".key" accept=".key"
name="file" name="file"
:before-upload="beforeUpload" :before-upload="beforeUpload"
> >
<a class="md-primary pointer">{{ $t('about.update_license') }}</a> <a class="md-primary pointer">{{ $t('about.update_license') }}</a>
</el-upload> </el-upload>
<a class="md-primary pointer" @click="support">{{ $t('about.suport') }}</a> <a class="md-primary pointer" @click="support">{{ $t('about.suport') }}</a>
</div>
</div> </div>
</el-card> </div>
</div> </el-card>
</layout-content> </div>
</template> </template>
<script> <script>
import LayoutContent from '@/components/business/LayoutContent'
import { validate, buildVersion, updateInfo } from '@/api/system/about' import { validate, buildVersion, updateInfo } from '@/api/system/about'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
components: { LayoutContent },
data() { data() {
return { return {
license: {}, license: {},
...@@ -164,8 +158,6 @@ export default { ...@@ -164,8 +158,6 @@ export default {
background: inherit; background: inherit;
margin-top: 5%; margin-top: 5%;
flex-direction: row; flex-direction: row;
margin-left: 20%;
margin-right: 20%;
width: 640px; width: 640px;
height: 400px; height: 400px;
position: relative; position: relative;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论