From 4ce3b275c688b8b74b44b93e7254ef6f9e9101e2 Mon Sep 17 00:00:00 2001 From: leo <10200039@qq.com> Date: Wed, 19 Apr 2023 00:10:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=89=A9=E6=96=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/materia/all.vue | 16 +++++++++++++--- src/views/materia/components/EditView.vue | 13 +++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/views/materia/all.vue b/src/views/materia/all.vue index f34ea82..4085ea2 100644 --- a/src/views/materia/all.vue +++ b/src/views/materia/all.vue @@ -47,7 +47,7 @@ 已完成 @@ -59,7 +59,7 @@ - + @@ -297,7 +297,17 @@ this.editType = 1; }, - showEditMaterial(i){ + showEditMaterial(i, data){ + for (let i = 0; i < this.showEditBox.length; i++) { + this.showEditBox[i] = false; + } + + if (i == 3) { + data.FTeamID = data.FID; + data.FCanEdit = 2; + this.objInfoObj = data; + } + this.showEditBox[i] = true; }, _clickSetInfo(data, type) { diff --git a/src/views/materia/components/EditView.vue b/src/views/materia/components/EditView.vue index 1630d02..36b6782 100644 --- a/src/views/materia/components/EditView.vue +++ b/src/views/materia/components/EditView.vue @@ -286,8 +286,14 @@ export default { return t.FID === item.FTypeID2 }) - item.FTypeID1 = fType1.FName; - item.FTypeID2 = fType2.FName; + if (fType1) { + item.FTypeID1 = fType1.FName; + } + + if (fType2) { + item.FTypeID2 = fType2.FName; + } + } }); @@ -452,6 +458,9 @@ export default { } }); let updateLog = updateObj.LogList.join("、"); + + console.log('this.dataInfoObj.step', this.dataInfoObj.step); + if (updateLog != "") { delete updateObj.LogList // 发送保存请求