321
This commit is contained in:
266
cdTMP/index.html
266
cdTMP/index.html
@@ -1,139 +1,153 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/wxwx-logo.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="author" content="314298729@qq.com">
|
||||
<meta name="keywords" content="测试,管理,平台,测评,用例,FPGA,CPU,嵌入式,报告">
|
||||
<meta name="description" content="测试管理平台,服务内部,部分内容不对外开放">
|
||||
<title>成都测试管理平台</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>你的浏览器未开启javascript支持,请开启后刷新页面访问!</strong>
|
||||
</noscript>
|
||||
<div id="app" class="ma-ui">
|
||||
<div class="app-loading">
|
||||
<div class="app-loading__logo"><img src="/logo.svg" style="width: 170px;height: 200px;" /></div>
|
||||
<div class="app-loading-text">
|
||||
<span class="app-loading-preloader">成</span>
|
||||
<span class="app-loading-preloader">都</span>
|
||||
<span class="app-loading-preloader">测</span>
|
||||
<span class="app-loading-preloader">试</span>
|
||||
<span class="app-loading-preloader">管</span>
|
||||
<span class="app-loading-preloader">理</span>
|
||||
<span class="app-loading-preloader">平</span>
|
||||
<span class="app-loading-preloader">台</span>
|
||||
<div class="app-loading-viewtext-container">
|
||||
<span class="app-loading-viewtext">成</span>
|
||||
<span class="app-loading-viewtext">都</span>
|
||||
<span class="app-loading-viewtext">测</span>
|
||||
<span class="app-loading-viewtext">试</span>
|
||||
<span class="app-loading-viewtext">管</span>
|
||||
<span class="app-loading-viewtext">理</span>
|
||||
<span class="app-loading-viewtext">平</span>
|
||||
<span class="app-loading-viewtext">台</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
transition-property: filter;
|
||||
transition-duration: 1s;
|
||||
}
|
||||
.app-loading {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
<html lang="zh-cmn-Hans">
|
||||
|
||||
.app-loading__logo {
|
||||
width: 78px;
|
||||
margin-left: -8%;
|
||||
margin-top: -5%;
|
||||
}
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/wxwx-logo.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="author" content="314298729@qq.com">
|
||||
<meta name="keywords" content="测试,管理,平台,测评,用例,FPGA,CPU,嵌入式,报告">
|
||||
<meta name="description" content="测试管理平台,服务内部,部分内容不对外开放">
|
||||
<title>成都测试管理平台</title>
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
transition-property: filter;
|
||||
transition-duration: 1s;
|
||||
}
|
||||
|
||||
.app-loading-text {
|
||||
position: relative;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.app-loading {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.app-loading-preloader,
|
||||
.app-loading-viewtext {
|
||||
font-size: 3.5rem;
|
||||
color: #ddd;
|
||||
font-weight: bold;
|
||||
}
|
||||
.app-loading__logo {
|
||||
width: 78px;
|
||||
margin-left: -8%;
|
||||
margin-top: -5%;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
position: absolute;
|
||||
letter-spacing: 4.3px;
|
||||
top: -5px;
|
||||
}
|
||||
.app-loading-text {
|
||||
position: relative;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.app-loading-viewtext {
|
||||
color: #333;
|
||||
animation: loader 4s infinite;
|
||||
.app-loading-preloader,
|
||||
.app-loading-viewtext {
|
||||
font-size: 3.5rem;
|
||||
color: #ddd;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
position: absolute;
|
||||
letter-spacing: 4.3px;
|
||||
top: -5px;
|
||||
}
|
||||
|
||||
.app-loading-viewtext {
|
||||
color: #333;
|
||||
animation: loader 4s infinite;
|
||||
transform: rotateY(-90deg);
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(1) {
|
||||
animation-delay: 0.2s;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(2) {
|
||||
animation-delay: 0.4s;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(3) {
|
||||
animation-delay: 0.6s;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(4) {
|
||||
animation-delay: 0.8s;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(5) {
|
||||
animation-delay: 1s;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(6) {
|
||||
animation-delay: 1.2s;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(7) {
|
||||
animation-delay: 1.4s;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(8) {
|
||||
animation-delay: 1.6s;
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(9) {
|
||||
animation-delay: 1.8s;
|
||||
}
|
||||
|
||||
@keyframes loader {
|
||||
|
||||
0%,
|
||||
75%,
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: rotateY(-90deg);
|
||||
}
|
||||
|
||||
.app-loading-viewtext-container span:nth-child(1) {
|
||||
animation-delay: 0.2s;
|
||||
}
|
||||
.app-loading-viewtext-container span:nth-child(2) {
|
||||
animation-delay: 0.4s;
|
||||
}
|
||||
.app-loading-viewtext-container span:nth-child(3) {
|
||||
animation-delay: 0.6s;
|
||||
}
|
||||
.app-loading-viewtext-container span:nth-child(4) {
|
||||
animation-delay: 0.8s;
|
||||
}
|
||||
.app-loading-viewtext-container span:nth-child(5) {
|
||||
animation-delay: 1s;
|
||||
}
|
||||
.app-loading-viewtext-container span:nth-child(6) {
|
||||
animation-delay: 1.2s;
|
||||
}
|
||||
.app-loading-viewtext-container span:nth-child(7) {
|
||||
animation-delay: 1.4s;
|
||||
}
|
||||
.app-loading-viewtext-container span:nth-child(8) {
|
||||
animation-delay: 1.6s;
|
||||
}
|
||||
.app-loading-viewtext-container span:nth-child(9) {
|
||||
animation-delay: 1.8s;
|
||||
25%,
|
||||
50% {
|
||||
opacity: 1;
|
||||
transform: rotateY(0deg);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@keyframes loader {
|
||||
0%,
|
||||
75%,
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: rotateY(-90deg);
|
||||
}
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>你的浏览器未开启javascript支持,请开启后刷新页面访问!</strong>
|
||||
</noscript>
|
||||
<div id="app" class="ma-ui">
|
||||
<div class="app-loading">
|
||||
<div class="app-loading__logo"><img src="/logo.svg" style="width: 170px;height: 200px;" /></div>
|
||||
<div class="app-loading-text">
|
||||
<span class="app-loading-preloader">成</span>
|
||||
<span class="app-loading-preloader">都</span>
|
||||
<span class="app-loading-preloader">测</span>
|
||||
<span class="app-loading-preloader">试</span>
|
||||
<span class="app-loading-preloader">管</span>
|
||||
<span class="app-loading-preloader">理</span>
|
||||
<span class="app-loading-preloader">平</span>
|
||||
<span class="app-loading-preloader">台</span>
|
||||
<div class="app-loading-viewtext-container">
|
||||
<span class="app-loading-viewtext">成</span>
|
||||
<span class="app-loading-viewtext">都</span>
|
||||
<span class="app-loading-viewtext">测</span>
|
||||
<span class="app-loading-viewtext">试</span>
|
||||
<span class="app-loading-viewtext">管</span>
|
||||
<span class="app-loading-viewtext">理</span>
|
||||
<span class="app-loading-viewtext">平</span>
|
||||
<span class="app-loading-viewtext">台</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
|
||||
25%,
|
||||
50% {
|
||||
opacity: 1;
|
||||
transform: rotateY(0deg);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -63,10 +63,13 @@ function createService() {
|
||||
break
|
||||
case 401:
|
||||
err("登录状态已过期,需要重新登录")
|
||||
// 清楚本地localStorage
|
||||
// 清除本地localStorage
|
||||
tool.local.clear()
|
||||
// 移动到网站的根目录-这里不需要因为导航守卫可以返回login页面
|
||||
if (error.response.data.data.code === 40001) {
|
||||
if (
|
||||
error.response.data.data.code === 40001 ||
|
||||
error.response.data.data.detail === "No active account found with the given credentials"
|
||||
) {
|
||||
} else {
|
||||
window.location.href = "/"
|
||||
}
|
||||
|
||||
@@ -613,22 +613,26 @@ const soDutColumn = ref([
|
||||
{
|
||||
title: "空行",
|
||||
dataIndex: "black_line",
|
||||
formType: "input"
|
||||
formType: "input-number",
|
||||
rules: [{ required: true, message: "空行数必填" }],
|
||||
},
|
||||
{
|
||||
title: "纯注释",
|
||||
dataIndex: "comment_line",
|
||||
formType: "input"
|
||||
formType: "input-number",
|
||||
rules: [{ required: true, message: "纯注释数必填" }],
|
||||
},
|
||||
{
|
||||
title: "混合行",
|
||||
dataIndex: "mix_line",
|
||||
formType: "input"
|
||||
formType: "input-number",
|
||||
rules: [{ required: true, message: "混合行必填" }],
|
||||
},
|
||||
{
|
||||
title: "纯代码",
|
||||
dataIndex: "code_line",
|
||||
formType: "input"
|
||||
formType: "input-number",
|
||||
rules: [{ required: true, message: "纯代码行必填" }],
|
||||
}
|
||||
])
|
||||
</script>
|
||||
|
||||
@@ -61,8 +61,16 @@ function createService() {
|
||||
break
|
||||
case 401:
|
||||
err("登录状态已过期,需要重新登录")
|
||||
// 清楚本地localStorage
|
||||
tool.local.clear()
|
||||
window.location.href = "/login"
|
||||
// 移动到网站的根目录-这里不需要因为导航守卫可以返回login页面
|
||||
if (
|
||||
error.response.data.data.code === 40001 ||
|
||||
error.response.data.data.detail === "No active account found with the given credentials"
|
||||
) {
|
||||
} else {
|
||||
window.location.href = "/"
|
||||
}
|
||||
break
|
||||
case 403:
|
||||
err("没有权限访问该资源")
|
||||
|
||||
@@ -176,28 +176,32 @@ const crudColumns = ref([
|
||||
hide: true,
|
||||
align: "center",
|
||||
dataIndex: "black_line",
|
||||
formType: "input-number"
|
||||
formType: "input-number",
|
||||
commonRules: [{ required: true, message: "空行数必填" }],
|
||||
},
|
||||
{
|
||||
title: "纯代码行",
|
||||
hide: true,
|
||||
align: "center",
|
||||
dataIndex: "code_line",
|
||||
formType: "input-number"
|
||||
formType: "input-number",
|
||||
commonRules: [{ required: true, message: "纯代码行数必填" }],
|
||||
},
|
||||
{
|
||||
title: "纯注释行",
|
||||
hide: true,
|
||||
align: "center",
|
||||
dataIndex: "comment_line",
|
||||
formType: "input-number"
|
||||
formType: "input-number",
|
||||
commonRules: [{ required: true, message: "纯注释行数必填" }],
|
||||
},
|
||||
{
|
||||
title: "混合行",
|
||||
hide: true,
|
||||
align: "center",
|
||||
dataIndex: "mix_line",
|
||||
formType: "input-number"
|
||||
formType: "input-number",
|
||||
commonRules: [{ required: true, message: "混合行数必填" }],
|
||||
},
|
||||
{
|
||||
title: "注释率 %",
|
||||
|
||||
Reference in New Issue
Block a user