Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-platform-ui
Commits
8199ee25
Commit
8199ee25
authored
Dec 29, 2021
by
王晓铜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提测说明添加更新日期字段
parent
5aa2267e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
DetailTestDescription.vue
src/views/qa/DetailTestDescription.vue
+2
-0
TestDescription.vue
src/views/qa/TestDescription.vue
+8
-3
No files found.
src/views/qa/DetailTestDescription.vue
View file @
8199ee25
...
@@ -278,6 +278,7 @@ export default {
...
@@ -278,6 +278,7 @@ export default {
this
.
database
=
JSON
.
parse
(
data
.
database
)
this
.
database
=
JSON
.
parse
(
data
.
database
)
this
.
id
=
data
.
id
this
.
id
=
data
.
id
this
.
jiraProjectKey
=
data
.
jiraProjectKey
this
.
jiraProjectKey
=
data
.
jiraProjectKey
this
.
updateTime
=
data
.
updateTime
})
})
},
},
methods
:
{
methods
:
{
...
@@ -295,6 +296,7 @@ export default {
...
@@ -295,6 +296,7 @@ export default {
this
.
serviceAndBranchList
=
this
.
serviceAndBranch
this
.
serviceAndBranchList
=
this
.
serviceAndBranch
this
.
apolloList
=
this
.
apollo
this
.
apolloList
=
this
.
apollo
this
.
databaseList
=
this
.
database
this
.
databaseList
=
this
.
database
this
.
addTestDescriptionForm
.
updateTime
=
this
.
updateTime
},
},
// 保存方法
// 保存方法
saveTestDescription
()
{
saveTestDescription
()
{
...
...
src/views/qa/TestDescription.vue
View file @
8199ee25
...
@@ -240,7 +240,8 @@ export default {
...
@@ -240,7 +240,8 @@ export default {
database
:
''
,
database
:
''
,
requirement
:
''
,
requirement
:
''
,
api
:
''
,
api
:
''
,
scope
:
''
scope
:
''
,
updateTime
:
''
},
},
rules
:
{
rules
:
{
jiraProjectKey
:
[
jiraProjectKey
:
[
...
@@ -377,6 +378,7 @@ export default {
...
@@ -377,6 +378,7 @@ export default {
this
.
addTestDescriptionForm
.
requirement
=
''
this
.
addTestDescriptionForm
.
requirement
=
''
this
.
addTestDescriptionForm
.
api
=
''
this
.
addTestDescriptionForm
.
api
=
''
this
.
addTestDescriptionForm
.
scope
=
''
this
.
addTestDescriptionForm
.
scope
=
''
this
.
addTestDescriptionForm
.
updateTime
=
''
this
.
serviceAndBranchList
=
[]
this
.
serviceAndBranchList
=
[]
// this.serviceAndBranchList.push({
// this.serviceAndBranchList.push({
// serviceName: '',
// serviceName: '',
...
@@ -394,13 +396,15 @@ export default {
...
@@ -394,13 +396,15 @@ export default {
)
)
this
.
addTestDescriptionForm
.
apollo
=
JSON
.
stringify
(
this
.
apolloList
)
this
.
addTestDescriptionForm
.
apollo
=
JSON
.
stringify
(
this
.
apolloList
)
this
.
addTestDescriptionForm
.
database
=
JSON
.
stringify
(
this
.
databaseList
)
this
.
addTestDescriptionForm
.
database
=
JSON
.
stringify
(
this
.
databaseList
)
console
.
log
(
'
88888
'
,
this
.
addTestDescriptionForm
)
console
.
log
(
'
88888
'
,
this
.
addTestDescriptionForm
)
this
.
$refs
.
addTestDescriptionRef
.
validate
((
valid
)
=>
{
this
.
$refs
.
addTestDescriptionRef
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
if
(
!
valid
)
{
return
false
return
false
}
else
{
}
else
{
// 编辑测试文档
// 编辑测试文档
if
(
this
.
addTestDescriptionForm
.
id
)
{
if
(
this
.
addTestDescriptionForm
.
id
)
{
editTestDescription
(
this
.
addTestDescriptionForm
).
then
((
resp
)
=>
{
editTestDescription
(
this
.
addTestDescriptionForm
).
then
((
resp
)
=>
{
if
(
resp
.
data
.
businessCode
===
'
0000
'
)
{
if
(
resp
.
data
.
businessCode
===
'
0000
'
)
{
...
@@ -436,6 +440,7 @@ export default {
...
@@ -436,6 +440,7 @@ export default {
this
.
addTestDescriptionForm
.
requirement
=
row
.
requirement
this
.
addTestDescriptionForm
.
requirement
=
row
.
requirement
this
.
addTestDescriptionForm
.
api
=
row
.
api
this
.
addTestDescriptionForm
.
api
=
row
.
api
this
.
addTestDescriptionForm
.
scope
=
row
.
scope
this
.
addTestDescriptionForm
.
scope
=
row
.
scope
this
.
addTestDescriptionForm
.
updateTime
=
row
.
updateTime
this
.
serviceAndBranchList
=
JSON
.
parse
(
row
.
serviceAndBranch
)
this
.
serviceAndBranchList
=
JSON
.
parse
(
row
.
serviceAndBranch
)
this
.
apolloList
=
JSON
.
parse
(
row
.
apollo
)
this
.
apolloList
=
JSON
.
parse
(
row
.
apollo
)
this
.
databaseList
=
JSON
.
parse
(
row
.
database
)
this
.
databaseList
=
JSON
.
parse
(
row
.
database
)
...
...
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