gemercheung 1 éve
szülő
commit
a33b10902d
2 módosított fájl, 15 hozzáadás és 14 törlés
  1. 1 1
      src/locales/lang/json/zh-CN.json
  2. 14 13
      src/views/map/addProjectModal.vue

+ 1 - 1
src/locales/lang/json/zh-CN.json

@@ -621,7 +621,7 @@
     "layout.map.scanShare": "扫码分享",
     "layout.map.scanShare": "扫码分享",
     "layout.map.share": "分享",
     "layout.map.share": "分享",
     "layout.map.copy": "复制链接",
     "layout.map.copy": "复制链接",
-    "layout.map.location": "位置",
+    "layout.map.location": "位置设置",
     "layout.map.allProject": "全部项目",
     "layout.map.allProject": "全部项目",
     "layout.map.allScene": "全部场景",
     "layout.map.allScene": "全部场景",
     "layout.map.mapShare": "地图分享",
     "layout.map.mapShare": "地图分享",

+ 14 - 13
src/views/map/addProjectModal.vue

@@ -72,27 +72,27 @@
             span: 24,
             span: 24,
           },
           },
         },
         },
-        // {
-        //   field: 'projectSn',
-        //   label: t('layout.map.projectSn'),
-        //   required: true,
-        //   component: 'Input',
-        //   componentProps: {
-        //     maxLength: 100,
-        //   },
-        //   colProps: {
-        //     span: 24,
-        //   },
-        // },
+        {
+          field: 'projectSn',
+          label: t('layout.map.projectSn'),
+          required: true,
+          component: 'Input',
+          componentProps: {
+            maxLength: 100,
+          },
+          colProps: {
+            span: 24,
+          },
+        },
         {
         {
           field: 'tempSlect',
           field: 'tempSlect',
           label: t('layout.map.geoLocation'),
           label: t('layout.map.geoLocation'),
           component: 'Select',
           component: 'Select',
+          defaultValue: 1,
           componentProps: {
           componentProps: {
             onChange: function (value: number) {
             onChange: function (value: number) {
               isDefaultSelect.value = value;
               isDefaultSelect.value = value;
             },
             },
-            defaultValue: 1,
             options: [
             options: [
               {
               {
                 label: t('layout.map.geoLocation.opt1'),
                 label: t('layout.map.geoLocation.opt1'),
@@ -248,6 +248,7 @@
         locationEdit,
         locationEdit,
         isEditMode,
         isEditMode,
         handleOpenMap,
         handleOpenMap,
+        isDefaultSelect,
       };
       };
     },
     },
   });
   });