From ad635d411c038ac5f10604851050eb810c15659e Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期一, 28 十一月 2022 16:35:38 +0800
Subject: [PATCH] 案卷查询数据渲染

---
 src/views/systemSetting/device/bayonet/create/index.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/views/systemSetting/device/bayonet/create/index.vue b/src/views/systemSetting/device/bayonet/create/index.vue
index 6e144b3..921e3b4 100644
--- a/src/views/systemSetting/device/bayonet/create/index.vue
+++ b/src/views/systemSetting/device/bayonet/create/index.vue
@@ -135,11 +135,12 @@
       onSubmit() {
         this.$refs.device.validate(valid => {
           if (valid) {
+            this.bayonet.longitude = Number(this.bayonet.longitude);
+            this.bayonet.latitude = Number(this.bayonet.latitude);
+            this.bayonet.inOutCityType = Number(this.bayonet.inOutCityType);
+            this.bayonet.belongArea = Number(this.bayonet.belongArea);
             const copyBayonet = deepClone(this.bayonet);
             delete copyBayonet.id;
-            copyBayonet.longitude = Number(copyBayonet.longitude);
-            copyBayonet.latitude = Number(copyBayonet.latitude);
-            copyBayonet.inOutCityType = Number(copyBayonet.inOutCityType);
             if (!this.isEdit) {
               bayonet.addBayonet(this.bayonet)
                   .then(() => {

--
Gitblit v1.8.0