From 8d6b00893e1e729621b2d09393e151eb1d9a5617 Mon Sep 17 00:00:00 2001
From: wente <329538422@qq.com>
Date: 星期三, 06 十二月 2023 17:30:25 +0800
Subject: [PATCH] 项目表
---
web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue b/web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue
index 6262ff5..a348f1f 100644
--- a/web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue
+++ b/web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue
@@ -1,5 +1,5 @@
<template>
- <zt-dialog ref="dialog" column="2" @confirm="formSubmit">
+ <zt-dialog ref="dialog" column="2" @confirm="formSubmit" :append-to-body="true">
<el-form :model="dataForm" :inline="true" ref="dataForm" style="padding-top: 0" :disabled="dataForm.disabled"
label-width="120px" class="testCheckFormAuto">
<div>
@@ -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,15 +155,16 @@
if (row.projectId) {
this.dataForm.projectId = row.projectId
}
+ console.log(id, row, this.subtitle, '杞欢娴嬭瘯璁″垝妫�鏌ュ崟')
//this.dataForm.disabled
this.getInfo()
//console.log(this.dataForm.id, this.dataForm.projectId, this.stepMarker, 'this.dataForm.id, this.dataForm.projectId,this.stepMarker')
},
- // 鑾峰彇淇℃伅
indexFormat(index) {
return index += 1
},
+ // 鑾峰彇淇℃伅
async getInfo() {
let params = {
checkId: this.dataForm.id,
@@ -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)
}
}
}
--
Gitblit v1.9.1