tengmingxue 2 anni fa
parent
commit
f0d42f3612

+ 3 - 3
src/views/dcSystem/assayWaterQuality/configManage/samplingLocation/index.vue

@@ -2,7 +2,7 @@
  * @Author: tengmingxue 1473375109@qq.com
  * @Date: 2022-11-02 16:33:00
  * @LastEditors: tengmingxue 1473375109@qq.com
- * @LastEditTime: 2022-11-03 11:59:16
+ * @LastEditTime: 2022-11-03 13:13:32
  * @FilePath: \dcWaterService\src\views\dcSystem\assayWaterQuality\configManage\samplingLocation\index.vue
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
@@ -241,7 +241,7 @@
       </div>
       <div slot="footer" class="dialog-footer">
         <el-button @click="dialogVisible = false" size="mini">取 消</el-button>
-        <el-button type="primary" @click="commit" size="mini">确定</el-button>
+        <el-button type="primary" v-if="!editState" @click="commit" size="mini">确定</el-button>
       </div>
     </el-dialog>
   </div>
@@ -330,7 +330,7 @@ export default {
       this.dialogTitle = "详情";
       this.dialogVisible = true;
       this.editState = true;
-      this.ruleForm.samplePlaceName = row.row,
+      this.ruleForm.samplePlaceName = row.samplePlaceName,
       this.ruleForm.pointLon = row.samplePlacePointX
       this.ruleForm.pointLat = row.samplePlacePointY
       this.refs.tfMap.setPoint(this.ruleForm.pointLon,this.ruleForm.pointLat,true)