From c1a2a56c8452b27882c8e8e9bc5388360148beb7 Mon Sep 17 00:00:00 2001 From: xielue Date: Tue, 25 Apr 2023 13:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E4=BB=B7=E5=8D=95=E9=85=8D=E4=BB=B6?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E4=BB=B7=E6=A0=BC=E5=92=8C=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/application/mk/libs/function/form.js | 3 ++ .../BathroomParts/BathroomParts/Edit.vue | 16 ++++----- .../BathroomParts/BathroomParts/List.vue | 34 ++++++++++++++++++- .../BathroomQuotation/Edit.vue | 7 ++-- .../BathroomQuotation/drawer.vue | 7 ++-- .../BathroomScheme/BathroomScheme/Edit.vue | 8 +++-- .../bathroom/BathroomParts/router.map.js | 2 +- 8 files changed, 60 insertions(+), 19 deletions(-) diff --git a/.env.development b/.env.development index 44910f5..3d6274a 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,4 @@ VUE_APP_API_BASE_URL=http://zxx4.f3322.net:46000 VUE_APP_USER_MODEL2=AdminUser VUE_APP_USER_MODEL=BaseAdmin -VUE_APP_BEID=3 \ No newline at end of file +VUE_APP_BEID=1 \ No newline at end of file diff --git a/src/application/mk/libs/function/form.js b/src/application/mk/libs/function/form.js index f9eec93..25328bb 100644 --- a/src/application/mk/libs/function/form.js +++ b/src/application/mk/libs/function/form.js @@ -9,6 +9,9 @@ export default { if (rule.dataRule && rule.dataRule.type == "integer") { // 如果是整数 data[rule.field] = parseInt(value); // 转换为整数 } + if (rule.dataRule && rule.dataRule.type == "number") { // 如果是整数 + data[rule.field] = parseFloat(value); // 转换为整数 + } if (rule.dataRule && rule.dataRule.type == "timestamp") { // 如果是时间戳 data[rule.field] = parseInt(new Date(data[rule.field]).getTime() / 1000); // 转换为时间戳 } diff --git a/src/pages/Middle/bathroom/BathroomParts/BathroomParts/Edit.vue b/src/pages/Middle/bathroom/BathroomParts/BathroomParts/Edit.vue index 63a42c6..73a5e12 100644 --- a/src/pages/Middle/bathroom/BathroomParts/BathroomParts/Edit.vue +++ b/src/pages/Middle/bathroom/BathroomParts/BathroomParts/Edit.vue @@ -1,5 +1,4 @@ -