From 7d9be5e2b35ab0e2ed9974f3c108e67a1cfc5e57 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 30 Sep 2025 10:01:49 +0800 Subject: [PATCH] 1 --- .../components/inspectionManagement/dataForm.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/trials/trials-workbench/components/inspectionManagement/dataForm.vue b/src/views/trials/trials-workbench/components/inspectionManagement/dataForm.vue index b8d05542..e59cba20 100644 --- a/src/views/trials/trials-workbench/components/inspectionManagement/dataForm.vue +++ b/src/views/trials/trials-workbench/components/inspectionManagement/dataForm.vue @@ -100,7 +100,7 @@ export default { handler() { if (this.state === 'edit') { Object.keys(this.from).forEach(key => { - if (this.rowData[key]) { + if (this.rowData[key] || this.rowData[key] == 0) { this.from[key] = this.rowData[key] } }) @@ -108,9 +108,7 @@ export default { this.from.ViewTime = [this.from.BeginTime, this.from.EndTime] } else { Object.keys(this.from).forEach(key => { - if (this.rowData[key]) { - this.from[key] = '' - } + this.from[key] = '' }) this.from.ViewTime = [] this.from.IdnetityUserIdList = []