321
This commit is contained in:
266
cdTMP/index.html
266
cdTMP/index.html
@@ -1,139 +1,153 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="zh-cmn-Hans">
|
||||||
<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;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-loading__logo {
|
<head>
|
||||||
width: 78px;
|
<meta charset="UTF-8" />
|
||||||
margin-left: -8%;
|
<link rel="icon" type="image/svg+xml" href="/wxwx-logo.svg" />
|
||||||
margin-top: -5%;
|
<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 {
|
.app-loading {
|
||||||
position: relative;
|
position: absolute;
|
||||||
margin-top: 1rem;
|
top: 0px;
|
||||||
}
|
left: 0px;
|
||||||
|
right: 0px;
|
||||||
|
bottom: 0px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
.app-loading-preloader,
|
.app-loading__logo {
|
||||||
.app-loading-viewtext {
|
width: 78px;
|
||||||
font-size: 3.5rem;
|
margin-left: -8%;
|
||||||
color: #ddd;
|
margin-top: -5%;
|
||||||
font-weight: bold;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.app-loading-viewtext-container {
|
.app-loading-text {
|
||||||
display: flex;
|
position: relative;
|
||||||
flex-direction: row;
|
margin-top: 1rem;
|
||||||
position: absolute;
|
}
|
||||||
letter-spacing: 4.3px;
|
|
||||||
top: -5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-loading-viewtext {
|
.app-loading-preloader,
|
||||||
color: #333;
|
.app-loading-viewtext {
|
||||||
animation: loader 4s infinite;
|
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);
|
transform: rotateY(-90deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-loading-viewtext-container span:nth-child(1) {
|
25%,
|
||||||
animation-delay: 0.2s;
|
50% {
|
||||||
}
|
opacity: 1;
|
||||||
.app-loading-viewtext-container span:nth-child(2) {
|
transform: rotateY(0deg);
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
@keyframes loader {
|
<body>
|
||||||
0%,
|
<noscript>
|
||||||
75%,
|
<strong>你的浏览器未开启javascript支持,请开启后刷新页面访问!</strong>
|
||||||
100% {
|
</noscript>
|
||||||
opacity: 0;
|
<div id="app" class="ma-ui">
|
||||||
transform: rotateY(-90deg);
|
<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>
|
</html>
|
||||||
|
|||||||
@@ -63,10 +63,13 @@ function createService() {
|
|||||||
break
|
break
|
||||||
case 401:
|
case 401:
|
||||||
err("登录状态已过期,需要重新登录")
|
err("登录状态已过期,需要重新登录")
|
||||||
// 清楚本地localStorage
|
// 清除本地localStorage
|
||||||
tool.local.clear()
|
tool.local.clear()
|
||||||
// 移动到网站的根目录-这里不需要因为导航守卫可以返回login页面
|
// 移动到网站的根目录-这里不需要因为导航守卫可以返回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 {
|
} else {
|
||||||
window.location.href = "/"
|
window.location.href = "/"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -613,22 +613,26 @@ const soDutColumn = ref([
|
|||||||
{
|
{
|
||||||
title: "空行",
|
title: "空行",
|
||||||
dataIndex: "black_line",
|
dataIndex: "black_line",
|
||||||
formType: "input"
|
formType: "input-number",
|
||||||
|
rules: [{ required: true, message: "空行数必填" }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "纯注释",
|
title: "纯注释",
|
||||||
dataIndex: "comment_line",
|
dataIndex: "comment_line",
|
||||||
formType: "input"
|
formType: "input-number",
|
||||||
|
rules: [{ required: true, message: "纯注释数必填" }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "混合行",
|
title: "混合行",
|
||||||
dataIndex: "mix_line",
|
dataIndex: "mix_line",
|
||||||
formType: "input"
|
formType: "input-number",
|
||||||
|
rules: [{ required: true, message: "混合行必填" }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "纯代码",
|
title: "纯代码",
|
||||||
dataIndex: "code_line",
|
dataIndex: "code_line",
|
||||||
formType: "input"
|
formType: "input-number",
|
||||||
|
rules: [{ required: true, message: "纯代码行必填" }],
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -61,8 +61,16 @@ function createService() {
|
|||||||
break
|
break
|
||||||
case 401:
|
case 401:
|
||||||
err("登录状态已过期,需要重新登录")
|
err("登录状态已过期,需要重新登录")
|
||||||
|
// 清楚本地localStorage
|
||||||
tool.local.clear()
|
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
|
break
|
||||||
case 403:
|
case 403:
|
||||||
err("没有权限访问该资源")
|
err("没有权限访问该资源")
|
||||||
|
|||||||
@@ -176,28 +176,32 @@ const crudColumns = ref([
|
|||||||
hide: true,
|
hide: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: "black_line",
|
dataIndex: "black_line",
|
||||||
formType: "input-number"
|
formType: "input-number",
|
||||||
|
commonRules: [{ required: true, message: "空行数必填" }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "纯代码行",
|
title: "纯代码行",
|
||||||
hide: true,
|
hide: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: "code_line",
|
dataIndex: "code_line",
|
||||||
formType: "input-number"
|
formType: "input-number",
|
||||||
|
commonRules: [{ required: true, message: "纯代码行数必填" }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "纯注释行",
|
title: "纯注释行",
|
||||||
hide: true,
|
hide: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: "comment_line",
|
dataIndex: "comment_line",
|
||||||
formType: "input-number"
|
formType: "input-number",
|
||||||
|
commonRules: [{ required: true, message: "纯注释行数必填" }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "混合行",
|
title: "混合行",
|
||||||
hide: true,
|
hide: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: "mix_line",
|
dataIndex: "mix_line",
|
||||||
formType: "input-number"
|
formType: "input-number",
|
||||||
|
commonRules: [{ required: true, message: "混合行数必填" }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "注释率 %",
|
title: "注释率 %",
|
||||||
|
|||||||
Reference in New Issue
Block a user