Browse Source

web-经度、纬度字段不可编辑

liao-sea 8 months ago
parent
commit
e8f5ebd832

+ 2 - 11
vue/src/views/baseSettings/siteInfo/edit.vue

@@ -61,24 +61,15 @@
         <a-col :span="8">
           <a-form-item label="经度" name="siteLongitude" :label-col="{span:7}">
             <label v-if="opCategory==3">{{dataModel.siteLongitude }}</label>
-            <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.siteLongitude" placeholder=""/>
+            <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.siteLongitude" placeholder="" disabled />
           </a-form-item>
         </a-col>
-<!--        <a-col :span="8">-->
-<!--          <a-form-item label="驿站坐标"  name="sitePosition" :label-col="{span:7}" :rules="[{ required: true, message: '请选择驿站坐标!' }]">-->
-<!--            <label v-if="opCategory==3">{{dataModel.sitePosition}}</label>-->
-<!--            <a-input v-model:value="dataModel.sitePosition" placeholder=""/>-->
-<!--          </a-form-item>-->
-<!--        </a-col>-->
-<!--        <a-col :span="1">-->
-<!--            <a-button type="primary"  @click='' >选择</a-button>-->
-<!--        </a-col>-->
       </a-row>
       <a-row type="flex">
         <a-col :span="7">
           <a-form-item label="纬度" name="siteLatitude" :label-col="{span:7}">
             <label v-if="opCategory==3">{{dataModel.siteLatitude }}</label>
-            <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.siteLatitude" placeholder=""/>
+            <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.siteLatitude" placeholder="" disabled />
           </a-form-item>
         </a-col>
       </a-row>

+ 2 - 3
vue/src/views/companyService/company/edit.vue

@@ -130,8 +130,7 @@
             :label-col="{ span: 8 }"
             name="longitude"
           >
-            <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.longitude" placeholder=""
-                            :rows="4"/>
+            <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.longitude" placeholder="" disabled />
           </a-form-item>
         </a-col>
         <a-col :span="8">
@@ -140,7 +139,7 @@
             :label-col="{ span: 8 }"
             name="latitude"
           >
-            <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.latitude" placeholder=""/>
+            <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.latitude" placeholder=""  disabled />
           </a-form-item>
         </a-col>
         <a-col :span="8">

+ 2 - 3
vue/src/views/jobUserManager/jobFair/edit.vue

@@ -102,13 +102,12 @@
       <a-row type="flex">
         <a-col :span="7">
           <a-form-item label="经度" name="longitude" :label-col="{span:8}">
-            <a-input-number style="width: 100%" :controls="false" v-model:value="formData.longitude"
-                            placeholder="请输入经度"/>
+            <a-input-number style="width: 100%" :controls="false" v-model:value="formData.longitude"  disabled />
           </a-form-item>
         </a-col>
         <a-col :span="8">
           <a-form-item label="纬度" name="latitude" :label-col="{span:7}">
-            <a-input v-model:value="formData.latitude" placeholder="请输入纬度"/>
+            <a-input-number style="width: 100%" :controls="false" v-model:value="formData.latitude"  disabled/>
           </a-form-item>
         </a-col>
         <a-col :span="9">

+ 2 - 2
vue/src/views/jobUserManager/jobuser/edit.vue

@@ -354,13 +354,13 @@
         <a-col :span="8">
           <a-form-item label="经度" name="longitude" :label-col="{span:6}">
             <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.longitude"
-                            placeholder=""/>
+                            placeholder="" disabled />
           </a-form-item>
         </a-col>
         <a-col :span="8">
           <a-form-item label="纬度" name="latitude" :label-col="{span:6}">
             <a-input-number style="width: 100%" :controls="false" v-model:value="dataModel.latitude"
-                            placeholder=""/>
+                            placeholder="" disabled />
           </a-form-item>
         </a-col>
       </a-row>