Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中汽测评-信息安全测评系统
web
Commits
eba2913d
Commit
eba2913d
authored
Apr 26, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 对接检验内容车型试验
parent
c1aee432
Changes
22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
639 additions
and
239 deletions
+639
-239
collapseMenuLogo.png
public/collapseMenuLogo.png
+0
-0
index.html
public/index.html
+1
-1
useCaseLibrary.js
src/api/setting/useCaseLibrary.js
+1
-1
home.js
src/api/system/home.js
+5
-6
sample.js
src/api/system/sample.js
+7
-8
task.js
src/api/task/task.js
+11
-13
test.js
src/api/task/test.js
+11
-11
index.scss
src/assets/styles/index.scss
+1
-1
process.scss
src/assets/styles/process.scss
+1
-1
collapse-item.vue
src/components/Collapse/collapse-item.vue
+1
-1
index.vue
src/components/ImageUpload/index.vue
+9
-4
standardOption.vue
src/components/Page/standardOption.vue
+7
-2
Navbar.vue
src/layout/components/Navbar.vue
+2
-3
index.vue
src/layout/components/Sidebar/index.vue
+5
-1
router.js
src/mixins/router.js
+1
-1
testScenario.js
src/store/modules/testScenario.js
+8
-10
el-components.js
src/utils/el-components.js
+3
-3
reviewDetailsTable.js
src/utils/reviewDetailsTable.js
+5
-5
index.vue
src/views/informationBase/viewStandardTerms/index.vue
+279
-83
index.vue
src/views/informationBase/viewUseCaseLibrary/index.vue
+1
-1
index.vue
src/views/setting/standardTerms/index.vue
+279
-82
index.vue
src/views/system/role/index.vue
+1
-1
No files found.
public/collapseMenuLogo.png
0 → 100644
View file @
eba2913d
1.01 KB
public/index.html
View file @
eba2913d
...
...
@@ -8,7 +8,7 @@
<% } %> -->
<meta
name=
"renderer"
content=
"webkit"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>
favicon.ico
"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>
collapseMenuLogo.png
"
>
<!-- <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> -->
<script
src=
"https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_31435_86.9b2d26764ccec5f05296d7ffca18aa56.js"
></script>
<title><
%=
webpackConfig
.
name
%
></title>
...
...
src/api/setting/useCaseLibrary.js
View file @
eba2913d
...
...
@@ -12,7 +12,7 @@ export function listTestScenar(data) {
// 获取场景类型
export
function
listTestType
(
data
)
{
return
request
({
url
:
'/system/
type/get
List'
,
url
:
'/system/
scenario/getScenario
List'
,
method
:
'post'
,
data
:
data
})
...
...
src/api/system/home.js
View file @
eba2913d
import
request
from
'@/utils/request'
export
function
selectQuantityStatistics
(
data
){
export
function
selectQuantityStatistics
(
data
)
{
return
request
({
url
:
'/home/statistics/quantityStatistics'
,
method
:
'post'
,
...
...
@@ -8,31 +8,30 @@ export function selectQuantityStatistics(data){
})
}
export
function
selectStandardCategoryStatistics
(){
export
function
selectStandardCategoryStatistics
()
{
return
request
({
url
:
'/home/statistics/standardCategory'
,
method
:
'post'
})
}
export
function
selectConfidentialityLevelStatistics
(){
export
function
selectConfidentialityLevelStatistics
()
{
return
request
({
url
:
'/home/statistics/confidentialityLevel'
,
method
:
'post'
})
}
export
function
selectAverageInspectionRate
(){
export
function
selectAverageInspectionRate
()
{
return
request
({
url
:
'/home/statistics/averageInspectionRate'
,
method
:
'post'
})
}
export
function
selectTaskParticipationStatistics
(){
export
function
selectTaskParticipationStatistics
()
{
return
request
({
url
:
'/home/statistics/taskParticipation'
,
method
:
'post'
})
}
src/api/system/sample.js
View file @
eba2913d
...
...
@@ -48,28 +48,27 @@ export function selectMaterial(data) {
})
}
// 查看任务概览任务详情
export
function
selectTaskInfo
(
data
){
export
function
selectTaskInfo
(
data
)
{
return
request
({
url
:
'/task/getById'
,
method
:
'post'
,
url
:
'/task/getById'
,
method
:
'post'
,
data
:
data
})
}
// 查看任务概览数据统计
export
function
selectDataStatistics
(
data
){
export
function
selectDataStatistics
(
data
)
{
return
request
({
url
:
'/task/dataStatistics'
,
url
:
'/task/dataStatistics'
,
method
:
'post'
,
data
:
data
})
}
export
function
componentSelect
(
data
){
export
function
componentSelect
(
data
)
{
return
request
({
url
:
'/system/enterprise/list'
,
url
:
'/system/enterprise/list'
,
method
:
'post'
,
data
:
data
})
...
...
src/api/task/task.js
View file @
eba2913d
...
...
@@ -199,7 +199,7 @@ export function getBySubtaskId(data) {
}
/**
* 下载pdf
*/
*/
export
function
pdfDownload
(
data
)
{
return
request
({
url
:
'/pdf/download'
,
...
...
@@ -209,7 +209,7 @@ export function pdfDownload(data) {
}
/**
*获取车型实验任务下的测试用例
*/
*/
export
function
geTaskCase
(
data
)
{
return
request
({
url
:
'/system/testCase/getCaseIdList'
,
...
...
@@ -218,23 +218,21 @@ export function geTaskCase(data) {
})
}
/**
*提交确认表单
*/
export
function
taskImageSubmit
(
data
)
{
return
request
({
url
:
'/car/test/task/submit'
,
method
:
'post'
,
data
})
return
request
({
url
:
'/car/test/task/submit'
,
method
:
'post'
,
data
})
}
/**
* 获取试验场景
* @param {*} data
* @returns
* @param {*} data
* @returns
*/
export
function
getScenarioList
(
data
)
{
return
request
({
...
...
@@ -246,8 +244,8 @@ export function getScenarioList(data) {
/**
* 获取试验场景下的测试用例
* @param {*} data
* @returns
* @param {*} data
* @returns
*/
export
function
getCaseByScenario
(
data
)
{
return
request
({
...
...
src/api/task/test.js
View file @
eba2913d
import
request
from
'@/utils/request'
export
function
testDetail
(
data
)
{
return
request
({
url
:
'/car/test/task/getById'
,
method
:
'post'
,
data
})
return
request
({
url
:
'/car/test/task/getById'
,
method
:
'post'
,
data
})
}
export
function
testConfirm
(
data
)
{
return
request
({
url
:
'/car/test/task/confirm'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
return
request
({
url
:
'/car/test/task/confirm'
,
method
:
'post'
,
data
})
}
src/assets/styles/index.scss
View file @
eba2913d
...
...
@@ -392,6 +392,6 @@ aside {
.el-input__inner
{
font-family
:
微软雅黑
;
}
.el-tabs__item
{
.el-tabs__item
{
font-size
:
16px
;
}
src/assets/styles/process.scss
View file @
eba2913d
...
...
@@ -80,7 +80,7 @@
color
:
#f9a221
;
}
.taskLeader
{
width
:
120px
;
width
:
120px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
...
...
src/components/Collapse/collapse-item.vue
View file @
eba2913d
...
...
@@ -124,7 +124,7 @@ export default {
.el-collapse-item__header
{
background-color
:
#f2f2f2
!important
;
height
:
auto
;
padding-left
:
13px
;
padding-left
:
13px
;
display
:
flex
;
align-items
:
flex-start
;
padding
:
10px
;
...
...
src/components/ImageUpload/index.vue
View file @
eba2913d
...
...
@@ -43,7 +43,12 @@
<
template
v-if=
"fileSize"
>
且不得超过
{{
fileSize
}}
MB
</
template
>
</div>
<el-dialog
:visible
.
sync=
"dialogVisible"
width=
"800"
append-to-body
:close-on-click-modal=
"false"
>
<el-dialog
:visible
.
sync=
"dialogVisible"
width=
"800"
append-to-body
:close-on-click-modal=
"false"
>
<img
:src=
"dialogImageUrl"
style=
"display: block; max-width: 100%; margin: 0 auto"
...
...
@@ -146,7 +151,7 @@ export default {
if
(
file
.
name
.
lastIndexOf
(
'.'
)
>
-
1
)
{
fileExtension
=
file
.
name
.
slice
(
file
.
name
.
lastIndexOf
(
'.'
)
+
1
)
console
.
log
(
'21212'
,
fileExtension
)
console
.
log
(
'21212'
,
fileExtension
)
}
isImg
=
this
.
fileType
.
some
(
type
=>
{
// if (file.type.indexOf(type) > -1) return true
...
...
@@ -160,7 +165,7 @@ export default {
if
(
!
isImg
)
{
this
.
$modal
.
msgError
(
`文件格式不正确, 请上传
${
this
.
fileType
.
join
(
'/'
)}
图片格式文件!`
`文件格式不正确, 请上传
${
this
.
fileType
.
join
(
'/'
)}
图片格式文件!`
)
return
false
}
...
...
@@ -185,7 +190,7 @@ export default {
if
(
res
.
code
===
200
)
{
// const Image = process.env.VUE_APP_IMAGE_API + res.url
this
.
uploadList
.
push
({
name
:
res
.
originalFilename
,
url
:
res
.
url
})
console
.
log
(
this
.
uploadList
)
;
console
.
log
(
this
.
uploadList
)
this
.
uploadedSuccessfully
()
}
else
{
this
.
number
--
...
...
src/components/Page/standardOption.vue
View file @
eba2913d
...
...
@@ -10,7 +10,12 @@ empty
placeholder=
"输入标准关键词"
@
keyup
.
enter
.
native=
"search()"
>
<i
class=
"el-icon-search el-input__icon"
@
click=
"search()"
slot=
"suffix"
>
</i>
<i
class=
"el-icon-search el-input__icon"
@
click=
"search()"
slot=
"suffix"
>
</i>
</el-input>
<ul
class=
"select-list"
>
<template
v-for=
"item in standardList"
>
...
...
@@ -72,7 +77,7 @@ export default {
methods
:
{
search
()
{
this
.
queryParams
.
pageNum
=
1
this
.
$store
.
dispatch
(
'standard/setStandardList'
,
this
.
queryParams
.
name
)
this
.
$store
.
dispatch
(
'standard/setStandardList'
,
this
.
queryParams
.
name
)
},
selectStandard
(
value
)
{
this
.
$store
.
dispatch
(
'standard/setStandard'
,
value
)
...
...
src/layout/components/Navbar.vue
View file @
eba2913d
...
...
@@ -63,11 +63,10 @@ export default {
// MessageWaring
},
data
()
{
return
{
}
return
{}
},
computed
:
{
...
mapGetters
([
'sidebar'
,
'device'
,
'name'
,
'avatar'
]),
...
mapGetters
([
'sidebar'
,
'device'
,
'name'
,
'avatar'
]),
setting
:
{
get
()
{
return
this
.
$store
.
state
.
settings
.
showSettings
...
...
src/layout/components/Sidebar/index.vue
View file @
eba2913d
...
...
@@ -9,7 +9,11 @@
}"
>
<logo
v-if=
"showLogo"
:collapse=
"isCollapse"
/>
<el-scrollbar
:class=
"settings.sideTheme"
style=
"padding-bottom: 30px;"
wrap-class=
"scrollbar-wrapper"
>
<el-scrollbar
:class=
"settings.sideTheme"
style=
"padding-bottom: 30px"
wrap-class=
"scrollbar-wrapper"
>
<el-menu
:default-active=
"activeMenu"
:collapse=
"isCollapse"
...
...
src/mixins/router.js
View file @
eba2913d
...
...
@@ -21,7 +21,7 @@ export default {
// path: this.formPath[0]
// })
// } else {
this
.
$router
.
back
()
this
.
$router
.
back
()
// }
}
}
...
...
src/store/modules/testScenario.js
View file @
eba2913d
import
{
getTestScenario
}
from
"@/api/scenario/scenario"
;
import
{
getTestScenario
}
from
'@/api/scenario/scenario'
const
testScenario
=
{
namespaced
:
true
,
...
...
@@ -8,7 +8,7 @@ const testScenario = {
mutations
:
{
SET_TEST_SCENARIO_LIST
:
(
state
,
testScenarioList
)
=>
{
state
.
testScenarioList
=
testScenarioList
state
.
testScenarioList
=
testScenarioList
}
},
...
...
@@ -16,14 +16,12 @@ const testScenario = {
setTestScenarioList
({
commit
})
{
getTestScenario
({}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
const
obj
=
res
.
data
.
map
(
({
id
,
testScenario
,
...
rest
})
=>
({
label
:
testScenario
,
value
:
parseInt
(
id
),
check
:
false
,
...
rest
})
)
const
obj
=
res
.
data
.
map
(({
id
,
testScenario
,
...
rest
})
=>
({
label
:
testScenario
,
value
:
parseInt
(
id
),
check
:
false
,
...
rest
}))
console
.
log
(
'测试场景'
,
obj
)
commit
(
'SET_TEST_SCENARIO_LIST'
,
obj
)
}
...
...
src/utils/el-components.js
View file @
eba2913d
import
Vue
from
'vue'
import
ElementUI
from
'element-ui'
;
import
ElementUI
from
'element-ui'
Vue
.
component
(
'el-input'
,
{
extends
:
ElementUI
.
Input
,
created
()
{
this
.
$on
(
'change'
,
(
value
)
=>
{
this
.
$emit
(
'input'
,
value
.
replace
(
/
\s
+/g
,
""
))
this
.
$on
(
'change'
,
value
=>
{
this
.
$emit
(
'input'
,
value
.
replace
(
/
\s
+/g
,
''
))
})
}
})
src/utils/reviewDetailsTable.js
View file @
eba2913d
...
...
@@ -16,11 +16,11 @@ export function getRows(i) {
* @param {*} i 章节号
*/
export
function
getRows3
(
i
)
{
let
n
=
0
if
(
i
.
testCaseList
)
{
n
=
i
.
testCaseList
.
length
}
return
n
+
1
let
n
=
0
if
(
i
.
testCaseList
)
{
n
=
i
.
testCaseList
.
length
}
return
n
+
1
}
/**
...
...
src/views/informationBase/viewStandardTerms/index.vue
View file @
eba2913d
This diff is collapsed.
Click to expand it.
src/views/informationBase/viewUseCaseLibrary/index.vue
View file @
eba2913d
...
...
@@ -142,7 +142,7 @@ export default {
},
methods
:
{
getTestScenar
()
{
listTestScenar
(
{
pageNum
:
1
,
pageSize
:
999
}
).
then
(
res
=>
{
listTestScenar
().
then
(
res
=>
{
this
.
testScenarList
=
res
.
rows
})
},
...
...
src/views/setting/standardTerms/index.vue
View file @
eba2913d
This diff is collapsed.
Click to expand it.
src/views/system/role/index.vue
View file @
eba2913d
...
...
@@ -528,7 +528,7 @@ export default {
handleStatusChange
(
row
)
{
const
text
=
row
.
status
===
'0'
?
'启用'
:
'停用'
this
.
$modal
.
confirm
(
'确认要"'
+
text
+
'""'
+
row
.
roleName
+
'"角色吗?'
,
{
.
confirm
(
'确认要"'
+
text
+
'""'
+
row
.
roleName
+
'"角色吗?'
,
{
type
:
'warning'
,
title
:
text
,
closeOnClickModal
:
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment