| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | parentRow: null, |
| | | configDetailRow: null, |
| | | subtitle: '', |
| | | pageName: {plan: '测试计划', explain: '测试说明', record: '测试记录', report: '测试报告'}, |
| | | pageName: {plan: '软件测试计划', explain: '软件测试说明', record: '软件测试记录', report: '软件测试报告'}, |
| | | dataForm: { |
| | | id: '', |
| | | projectId: '', |
| | |
| | | }, |
| | | methods: { |
| | | init(id, row) { |
| | | this.parentRow = row |
| | | console.log(id, row, '软件测试计划检查单') |
| | | if (id) { |
| | | this.configDetailRow = row |
| | | if (row.checkId) { |
| | | this.dataForm.id = row.checkId |
| | | } else if (id) { |
| | | this.dataForm.id = id |
| | | } else { |
| | | this.dataForm.id = row.id |
| | |
| | | if (row.projectId) { |
| | | this.dataForm.projectId = row.projectId |
| | | } |
| | | console.log(id, row, this.subtitle, '软件测试计划检查单') |
| | | |
| | | //this.dataForm.disabled |
| | | this.getInfo() |
| | |
| | | if (res.success) { |
| | | await this.$tip.success() |
| | | this.$refs.dialog.close() |
| | | this.$emit('recall', this.dataForm, this.parentRow) |
| | | this.$emit('recall', res.data, this.configDetailRow) |
| | | } |
| | | } |
| | | } |