Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-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
中汽研标准应用数据库
car-database-web
Commits
78e23eaf
Commit
78e23eaf
authored
Sep 11, 2024
by
zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(检测内容/实施细则): 测试用例库并入实施细则,逻辑更新。
parent
2f0a1d41
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
820 additions
and
594 deletions
+820
-594
standard.js
src/api/standard/standard.js
+8
-0
chapterOption.vue
src/components/Page/chapterOption.vue
+291
-237
getters.js
src/store/getters.js
+4
-0
standard.js
src/store/modules/standard.js
+23
-0
index.vue
src/views/setting/standardPoint/index.vue
+0
-1
detailModel.vue
src/views/setting/standardTerms/components/detailModel.vue
+138
-98
index.vue
src/views/setting/standardTerms/index.vue
+356
-258
No files found.
src/api/standard/standard.js
View file @
78e23eaf
import
request
from
'@/utils/request'
import
{
method
}
from
'lodash'
//获取标准库分页
export
function
getStandardList
(
data
)
{
...
...
@@ -16,3 +17,10 @@ export function getReviewStandardList(data){
data
})
}
export
function
getStandardListNew
(){
return
request
({
url
:
'/standard/getStandardListNew'
,
method
:
'post'
})
}
\ No newline at end of file
src/components/Page/chapterOption.vue
View file @
78e23eaf
This diff is collapsed.
Click to expand it.
src/store/getters.js
View file @
78e23eaf
import
standard
from
"./modules/standard"
const
getters
=
{
sidebar
:
state
=>
state
.
app
.
sidebar
,
size
:
state
=>
state
.
app
.
size
,
...
...
@@ -21,6 +23,8 @@ const getters = {
standard_type
:
state
=>
state
.
standard
.
standard_type
,
standard_chapter
:
state
=>
state
.
standard
.
standard_chapter
,
standard_name
:
state
=>
state
.
standard
.
standard_name
,
standardObj
:
state
=>
state
.
standard
.
standardObj
,
initStandard
:
state
=>
state
.
standard
.
initStandard
,
standardList
:
state
=>
state
.
standard
.
standardList
,
testScenarioList
:
state
=>
state
.
testScenario
.
testScenarioList
,
dept
:
state
=>
state
.
user
.
dept
...
...
src/store/modules/standard.js
View file @
78e23eaf
...
...
@@ -6,6 +6,17 @@ const standard = {
standard_name
:
''
,
standard_type
:
''
,
standard_chapter
:
''
,
standardObj
:{
id
:
''
,
name
:
''
,
type
:
''
,
chapter
:
''
,
standardNo
:
''
},
initStandard
:{
id
:
''
,
type
:
''
,
},
standardList
:
[]
},
...
...
@@ -24,6 +35,12 @@ const standard = {
},
SET_STANDARDCHAPTER
:
(
state
,
chapter
)
=>
{
state
.
standard_chapter
=
chapter
},
SET_STANDARD_OBJ
:
(
state
,
standardObj
)
=>
{
state
.
standardObj
=
standardObj
},
SET_INITSTANDARD
:
(
state
,
initStandard
)
=>
{
state
.
initStandard
=
initStandard
}
},
...
...
@@ -34,6 +51,12 @@ const standard = {
commit
(
'SET_STANDARDTYPE'
,
standard
.
type
)
commit
(
'SET_STANDARDCHAPTER'
,
standard
.
chapter
)
},
setStandardObj
({
commit
},
standardObj
){
commit
(
'SET_STANDARD_OBJ'
,
standardObj
)
},
setInitStandard
({
commit
},
initStandard
){
commit
(
'SET_INITSTANDARD'
,
initStandard
)
},
setStandardList
({
commit
},
name
)
{
getStandardList
({
keyWord
:
name
?
name
:
''
,
...
...
src/views/setting/standardPoint/index.vue
View file @
78e23eaf
...
...
@@ -275,7 +275,6 @@
downPdf
(
row
,
name
)
{
console
.
log
(
'row'
,
row
)
if
(
name
==
'name'
){
console
.
log
(
process
.
env
.
VUE_APP_IMAGE_API
+
row
.
file
)
window
.
open
(
process
.
env
.
VUE_APP_IMAGE_API
+
row
.
file
)
}
else
if
(
name
==
'keypointname'
){
window
.
open
(
process
.
env
.
VUE_APP_IMAGE_API
+
row
.
keypointFile
)
...
...
src/views/setting/standardTerms/components/detailModel.vue
View file @
78e23eaf
<
template
>
<el-dialog
title=
"检验内容"
:visible
.
sync=
"dialogManger.dialogVisible"
width=
"60%"
>
<el-dialog
title=
"检验内容"
:visible
.
sync=
"dialogManger.dialogVisible"
width=
"60%"
>
<el-form
class=
"form"
:model=
"dialogManger"
:inline=
"true"
>
<el-form-item
class=
"title"
>
<span
style=
"width: 500px;
"
>
标准信息
</span>
<span
style=
"width: 500px
"
>
标准信息
</span>
</el-form-item>
<el-form-item
label=
"标准号"
:label-width=
"formLabelWidth"
>
<el-input
class=
"input"
disabled
v-model=
"dialogManger.source.standard.standard.standardNo"
autocomplete=
"off"
:title=
"dialogManger.source.standard.standard.standardNo"
></el-input>
<el-input
class=
"input"
disabled
v-model=
"dialogManger.source.standard.standardNo"
autocomplete=
"off"
></el-input>
</el-form-item>
<el-form-item
label=
"标准名称"
:label-width=
"formLabelWidth"
>
<el-input
class=
"input"
disabled
v-model=
"dialogManger.source.standard.standard.name"
autocomplete=
"off"
:title=
"dialogManger.source.standard.standard.name"
></el-input>
<el-input
class=
"input"
disabled
v-model=
"dialogManger.source.standard.name"
autocomplete=
"off"
></el-input>
</el-form-item>
<el-form-item
label=
"标准章节"
:label-width=
"formLabelWidth"
>
<el-input
class=
"input"
disabled
v-model=
"dialogManger.source.standard.chapter"
autocomplete=
"off"
:title=
"dialogManger.source.standard.chapter"
></el-input>
<el-input
class=
"input"
disabled
v-model=
"dialogManger.source.standard.chapter"
autocomplete=
"off"
></el-input>
</el-form-item>
<el-form-item
label=
"审查类型"
:label-width=
"formLabelWidth"
>
<el-input
class=
"input"
disabled
v-model=
"dialogManger.source.standard.type"
autocomplete=
"off"
:title=
"dialogManger.source.standard.type"
></el-input>
<el-input
class=
"input"
disabled
v-model=
"dialogManger.source.standard.type"
autocomplete=
"off"
></el-input>
</el-form-item>
<el-form-item
label=
"标准要求"
:label-width=
"formLabelWidth"
>
<el-input
class=
"textarea"
disabled
resize=
"none"
:autosize=
"
{minRows:4,maxRows:6}"
:autosize=
"
{ minRows: 4, maxRows: 6 }"
type="textarea"
v-model="dialogManger.source.standard.text"
:title="dialogManger.source.standard.text
"
autocomplete="off"
>
</el-input>
autocomplete="off
"
>
</el-input>
</el-form-item>
</el-form>
<el-form
class=
"form"
:model=
"dialogManger"
title=
"'审查信息'"
style=
"margin-top: 10px;"
>
<el-form
class=
"form"
:model=
"dialogManger"
title=
"'审查信息'"
style=
"margin-top: 10px"
>
<el-form-item
class=
"title"
>
<span
style=
"width: 500px;
"
>
审查信息
</span>
<span
style=
"width: 500px
"
>
审查信息
</span>
</el-form-item>
<el-form-item
label=
"审查要点"
:label-width=
"formLabelWidth"
>
<el-input
class=
"textarea"
<el-input
class=
"textarea"
disabled
resize=
"none"
:autosize=
"
{minRows:1,maxRows:6}"
:autosize=
"
{ minRows: 1, maxRows: 6 }"
type="textarea"
v-model="dialogManger.source.judge.content"
autocomplete="off"
:title="dialogManger.source.judge.content"
>
>
</el-input>
</el-form-item>
<div
v-for=
"(item,index) in dialogManger.source.judge.reviewDetailsList"
>
<div
v-for=
"(item, index) in dialogManger.source.judge.reviewDetailsList"
>
<el-form-item
label=
"审查细则"
:label-width=
"formLabelWidth"
>
<el-input
class=
"textarea"
disabled
resize=
"none"
:autosize=
"
{minRows:1,maxRows:6}"
:autosize=
"
{ minRows: 1, maxRows: 6 }"
type="textarea"
v-model="item.text"
autocomplete="off"
:title="item.text"
>
>
</el-input>
</el-form-item>
<el-form-item
label=
"关联场景"
:label-width=
"formLabelWidth"
>
...
...
@@ -63,30 +92,31 @@
class=
"textarea"
disabled
resize=
"none"
:autosize=
"
{minRows:4,maxRows:6}"
:autosize=
"
{ minRows: 4, maxRows: 6 }"
type="textarea"
v-model="item.reviewSceneList"
:title="item.reviewSceneList
"
autocomplete="off"
>
</el-input>
autocomplete="off
"
>
</el-input>
</el-form-item>
</div>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"dialogManger.dialogVisible = false"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"dialogManger.dialogVisible = false"
>
确 定
</el-button
>
</div>
</el-dialog>
</el-dialog>
</
template
>
<
script
>
export
default
{
name
:
''
,
data
()
{
name
:
''
,
data
()
{
return
{
titleWidth
:
'500px'
,
titleWidth
:
'500px'
,
formLabelWidth
:
'120px'
}
},
},
props
:
{
dialogManger
:
{
type
:
Object
,
...
...
@@ -94,23 +124,33 @@ data(){
return
{
dialogVisible
:
false
,
refreshList
:
false
,
source
:
{},
source
:
{
standard
:
{
name
:
''
,
standardNo
:
''
,
chapter
:
''
,
type
:
''
,
text
:
''
,
},
judge
:{
content
:
''
,
reviewDetailsList
:[]
}
},
dialogEditId
:
undefined
}
}
}
},
methods
:{
cancel
(){
methods
:
{
cancel
()
{
this
.
dialogManger
.
dialogVisible
=
false
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.form
.title
{
.form
.title
{
width
:
600px
;
margin-right
:
50px
;
color
:
blue
;
...
...
@@ -118,18 +158,18 @@ data(){
border-left
:
blue
solid
6px
;
padding-left
:
10px
;
}
.form
.input
{
.form
.input
{
width
:
250px
;
}
.form
.textarea
{
.form
.textarea
{
width
:
630px
;
}
::v-deep
.el-dialog__body
{
::v-deep
.el-dialog__body
{
height
:
70vh
;
overflow
:
auto
;
}
.
input
:
:
v-deep
.
el-input__inner
{
}
.
input
:
:
v-deep
.
el-input__inner
{
color
:
black
;
}
.
textarea
:
:
v-deep
.
el-textarea__inner
{
...
...
src/views/setting/standardTerms/index.vue
View file @
78e23eaf
This diff is collapsed.
Click to expand it.
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