style(XPack): 修复 认证页面样式

This commit is contained in:
fit2-zhao 2020-09-15 10:32:44 +08:00
parent ae3cbd298a
commit 776d17833b
6 changed files with 25 additions and 13 deletions

View File

@ -2,12 +2,6 @@ CREATE TABLE `license` (
`id` varchar(50) NOT NULL COMMENT 'ID', `id` varchar(50) NOT NULL COMMENT 'ID',
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp', `create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp', `update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
`corporation` varchar(500) NOT NULL COMMENT 'corporation ',
`expired` varchar(255) NOT NULL COMMENT 'expired ',
`product` varchar(500) DEFAULT NULL COMMENT 'product name',
`edition` varchar(255) COMMENT 'edition ',
`license_version` varchar(255) NOT NULL COMMENT 'licenseVersion',
`license_count` INT COMMENT 'license_count',
`license_code` longtext DEFAULT NULL COMMENT 'license_code', `license_code` longtext DEFAULT NULL COMMENT 'license_code',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;

View File

@ -51,6 +51,7 @@
export default { export default {
name: "MsSettingMenu", name: "MsSettingMenu",
data() { data() {
let valid = false;
let getMenus = function (group) { let getMenus = function (group) {
let menus = []; let menus = [];
Setting.children.forEach(child => { Setting.children.forEach(child => {
@ -58,7 +59,10 @@
let menu = {index: Setting.path + "/" + child.path} let menu = {index: Setting.path + "/" + child.path}
menu.title = child.meta.title; menu.title = child.meta.title;
menu.roles = child.meta.roles; menu.roles = child.meta.roles;
menu.valid = child.meta.valid; if (child.meta.valid != undefined && child.meta.valid === true) {
menu.valid = child.meta.valid;
valid = true;
}
menus.push(menu); menus.push(menu);
} }
}) })
@ -69,12 +73,15 @@
organizations: getMenus('organization'), organizations: getMenus('organization'),
workspaces: getMenus('workspace'), workspaces: getMenus('workspace'),
persons: getMenus('person'), persons: getMenus('person'),
isValid: valid,
isCurrentOrganizationAdmin: false, isCurrentOrganizationAdmin: false,
isCurrentWorkspaceUser: false, isCurrentWorkspaceUser: false,
} }
}, },
mounted() { mounted() {
//this.valid(); if (this.isValid === true) {
this.valid();
}
this.isCurrentOrganizationAdmin = checkoutCurrentOrganization(); this.isCurrentOrganizationAdmin = checkoutCurrentOrganization();
this.isCurrentWorkspaceUser = checkoutCurrentWorkspace(); this.isCurrentWorkspaceUser = checkoutCurrentWorkspace();
}, },
@ -83,7 +90,7 @@
let _this = this; let _this = this;
this.result = this.$get("/license/valid", response => { this.result = this.$get("/license/valid", response => {
let data = response.data; let data = response.data;
if (data === undefined || data != true) { if (data === undefined || data === null || data.status != "valid") {
this.systems.forEach(item => { this.systems.forEach(item => {
if (item.valid != undefined && item.valid === true) { if (item.valid != undefined && item.valid === true) {
_this.systems.splice(this.systems.indexOf(item), 1); _this.systems.splice(this.systems.indexOf(item), 1);
@ -115,6 +122,7 @@
</script> </script>
<style scoped> <style scoped>
.setting { .setting {
border-right: 0; border-right: 0;
} }

View File

@ -69,7 +69,7 @@
}, },
uploadValidate(file) { uploadValidate(file) {
let suffix = file.name.substring(file.name.lastIndexOf('.') + 1); let suffix = file.name.substring(file.name.lastIndexOf('.') + 1);
if (suffix != 'xls' && suffix != 'xlsx') { if (suffix != 'xls' && suffix != 'xlsx' && suffix != 'xmind') {
this.$warning(this.$t('test_track.case.import.upload_limit_format')); this.$warning(this.$t('test_track.case.import.upload_limit_format'));
return false; return false;
} }

View File

@ -157,7 +157,7 @@ export default {
license:{ license:{
title: 'Authorization management', title: 'Authorization management',
corporation: 'corporation', corporation: 'corporation',
expired: 'expired', time: 'Authorization time',
product: 'product', product: 'product',
edition: 'edition', edition: 'edition',
licenseVersion: 'licenseVersion', licenseVersion: 'licenseVersion',
@ -165,6 +165,10 @@ export default {
valid_license: 'valid license', valid_license: 'valid license',
show_license: 'show license', show_license: 'show license',
valid_license_error: 'validate license error', valid_license_error: 'validate license error',
status: 'valid state',
valid: 'valid',
invalid: 'invalid',
expired: 'expired',
}, },
workspace: { workspace: {
create: 'Create Workspace', create: 'Create Workspace',

View File

@ -157,7 +157,7 @@ export default {
license:{ license:{
title: '授权管理', title: '授权管理',
corporation: '客户名称', corporation: '客户名称',
expired: '授权时间', time: '授权时间',
product: '产品名称', product: '产品名称',
edition: '产品版本', edition: '产品版本',
licenseVersion: '授权版本', licenseVersion: '授权版本',
@ -165,6 +165,10 @@ export default {
valid_license: '授权验证', valid_license: '授权验证',
show_license: '查看授权', show_license: '查看授权',
valid_license_error: '授权验证失败', valid_license_error: '授权验证失败',
status: '授权状态',
valid: '有效',
invalid: '无效',
expired: '已过期',
}, },
workspace: { workspace: {
create: '创建工作空间', create: '创建工作空间',

View File

@ -155,7 +155,7 @@ export default {
license:{ license:{
title: '授權管理', title: '授權管理',
corporation: '客戶名稱', corporation: '客戶名稱',
expired: '授權時間', time: '授權時間',
product: '產品名稱', product: '產品名稱',
edition: '產品版本', edition: '產品版本',
licenseVersion: '授權版本', licenseVersion: '授權版本',
@ -163,6 +163,8 @@ export default {
valid_license: '授權验证', valid_license: '授權验证',
show_license: '查看授權', show_license: '查看授權',
valid_license_error: '授權验证失败', valid_license_error: '授權验证失败',
status: '授權状态',
expired: '已过期',
}, },
workspace: { workspace: {