Commit 8199ee25 authored by 王晓铜's avatar 王晓铜

提测说明添加更新日期字段

parent 5aa2267e
......@@ -278,6 +278,7 @@ export default {
this.database = JSON.parse(data.database)
this.id = data.id
this.jiraProjectKey = data.jiraProjectKey
this.updateTime = data.updateTime
})
},
methods: {
......@@ -295,6 +296,7 @@ export default {
this.serviceAndBranchList = this.serviceAndBranch
this.apolloList = this.apollo
this.databaseList = this.database
this.addTestDescriptionForm.updateTime = this.updateTime
},
// 保存方法
saveTestDescription() {
......
......@@ -240,7 +240,8 @@ export default {
database: '',
requirement: '',
api: '',
scope: ''
scope: '',
updateTime: ''
},
rules: {
jiraProjectKey: [
......@@ -377,6 +378,7 @@ export default {
this.addTestDescriptionForm.requirement = ''
this.addTestDescriptionForm.api = ''
this.addTestDescriptionForm.scope = ''
this.addTestDescriptionForm.updateTime = ''
this.serviceAndBranchList = []
// this.serviceAndBranchList.push({
// serviceName: '',
......@@ -394,13 +396,15 @@ export default {
)
this.addTestDescriptionForm.apollo = JSON.stringify(this.apolloList)
this.addTestDescriptionForm.database = JSON.stringify(this.databaseList)
console.log('88888', this.addTestDescriptionForm)
console.log(
'88888',
this.addTestDescriptionForm
)
this.$refs.addTestDescriptionRef.validate((valid) => {
if (!valid) {
return false
} else {
// 编辑测试文档
if (this.addTestDescriptionForm.id) {
editTestDescription(this.addTestDescriptionForm).then((resp) => {
if (resp.data.businessCode === '0000') {
......@@ -436,6 +440,7 @@ export default {
this.addTestDescriptionForm.requirement = row.requirement
this.addTestDescriptionForm.api = row.api
this.addTestDescriptionForm.scope = row.scope
this.addTestDescriptionForm.updateTime = row.updateTime
this.serviceAndBranchList = JSON.parse(row.serviceAndBranch)
this.apolloList = JSON.parse(row.apollo)
this.databaseList = JSON.parse(row.database)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment