6
jinlin
2023-12-06 ebab2501fa485c8d62d90b67aabe6f6d81847636
web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue
@@ -116,9 +116,9 @@
  export default {
    data() {
      return {
        parentRow: null,
        configDetailRow: null,
        subtitle: '',
        pageName: {plan: '测试计划', explain: '测试说明', record: '测试记录', report: '测试报告'},
        pageName: {plan: '软件测试计划', explain: '软件测试说明', record: '软件测试记录', report: '软件测试报告'},
        dataForm: {
          id: '',
          projectId: '',
@@ -141,9 +141,10 @@
    },
    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
@@ -154,6 +155,7 @@
        if (row.projectId) {
          this.dataForm.projectId = row.projectId
        }
        console.log(id, row, this.subtitle, '软件测试计划检查单')
        //this.dataForm.disabled
        this.getInfo()
@@ -182,7 +184,7 @@
        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)
        }
      }
    }