|
@@ -207,7 +207,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="edit-footer">
|
|
|
- <div @click="onCancel(true)" class="btn cancel">取消</div>
|
|
|
+ <div @click="onCancel()" class="btn cancel">取消</div>
|
|
|
<div @click="onSubmit" class="btn save">保存</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -419,18 +419,12 @@ const handleEdit = () => {
|
|
|
|
|
|
// 取消
|
|
|
const isUpdata = ref(true);
|
|
|
-const onCancel = (isCancel) => {
|
|
|
+const onCancel = () => {
|
|
|
isEdit.value = false;
|
|
|
- if (isUpdata.value || isCancel) {
|
|
|
+ if (isUpdata.value) {
|
|
|
authenticMap.cancelDraw();
|
|
|
} else {
|
|
|
- // authenticMap.cancelDraw();
|
|
|
getList((geoms) => {
|
|
|
- // const geometriesWkt = []
|
|
|
- // for(let item of geoms){
|
|
|
- // geometriesWkt.push(item.featureWkt)
|
|
|
- // }
|
|
|
- // authenticMap.fit(geometriesWkt)
|
|
|
authenticMap.allUnSelect();
|
|
|
});
|
|
|
}
|