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

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

parent 5aa2267e
...@@ -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() {
......
...@@ -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)
......
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