From a364b2240ab75f0de9e14922abfe18b4da4d560d Mon Sep 17 00:00:00 2001 From: ZhangZhixing Date: Mon, 3 Mar 2025 18:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E8=AE=BE=E8=AE=A1->=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9B=B4=E6=96=B0=E8=A1=A8=E7=BB=93=E6=9E=84=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E5=BC=8F=20https://e.gitee.com/gdyditc/proje?= =?UTF-8?q?cts/725584/tasks/table=3Fissue=3DIBNWJ7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreateCodeStep/src/components/TableNameModal.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/CreateCodeStep/src/components/TableNameModal.vue b/src/components/CreateCodeStep/src/components/TableNameModal.vue index a6f5b2d..6381d99 100644 --- a/src/components/CreateCodeStep/src/components/TableNameModal.vue +++ b/src/components/CreateCodeStep/src/components/TableNameModal.vue @@ -112,8 +112,11 @@ afterFetch: (data) => { if (Array.isArray(data) && data.length) { data.map((item) => { - // const operator = item.status === 3 ? 4 : item.status === 2 ? 2 : 1; - item.operator = 5; + //1表结构相同 + //2表字段数量不一致 + //3不存在该表 + const operator = item.status === 3 ? 4 : item.status === 2 ? 5 : 1; + item.operator = operator; item.newTableName = ''; }); }