|
@@ -88,7 +88,7 @@
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<div class="button">
|
|
<div class="button">
|
|
- <el-button class="btn" type="primary" @click="onSearch">搜索</el-button>
|
|
|
|
|
|
+ <el-button class="btn" type="primary" @click="onSearch">查询</el-button>
|
|
<el-button class="btn reset" @click="onRest">重置</el-button>
|
|
<el-button class="btn reset" @click="onRest">重置</el-button>
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -109,7 +109,7 @@
|
|
<el-icon size="15"><CloseBold /></el-icon>
|
|
<el-icon size="15"><CloseBold /></el-icon>
|
|
<span>删除点</span>
|
|
<span>删除点</span>
|
|
</div> -->
|
|
</div> -->
|
|
- <div class="btn delete" @click="handleDelete" v-show="isEdit&&mapData.selectPointArr.length>0">
|
|
|
|
|
|
+ <div class="btn delete" @click="handleDelete" v-show="mapData.selectPointArr.length>0">
|
|
<el-icon size="15" color="#fff"><CloseBold /></el-icon>
|
|
<el-icon size="15" color="#fff"><CloseBold /></el-icon>
|
|
<span>删除地块</span>
|
|
<span>删除地块</span>
|
|
</div>
|
|
</div>
|
|
@@ -368,7 +368,7 @@ const formInlineSearch = reactive({
|
|
});
|
|
});
|
|
|
|
|
|
const onSearch = () => {
|
|
const onSearch = () => {
|
|
- // isEdit.value = false
|
|
|
|
|
|
+ isUpdata.value = false
|
|
onCancel()
|
|
onCancel()
|
|
};
|
|
};
|
|
|
|
|
|
@@ -406,10 +406,13 @@ const onSubmit = () => {
|
|
if (valid) {
|
|
if (valid) {
|
|
VE_API.authentic.saveData(formInline).then((res) => {
|
|
VE_API.authentic.saveData(formInline).then((res) => {
|
|
isUpdata.value = false
|
|
isUpdata.value = false
|
|
- authenticMap.endDraw();
|
|
|
|
|
|
+ disabledForm.value = true;
|
|
const point = mapData.curPointData
|
|
const point = mapData.curPointData
|
|
|
|
+ authenticMap.endDraw();
|
|
getList().then(()=>{
|
|
getList().then(()=>{
|
|
- authenticMap.getSelectPointArr(point.id)
|
|
|
|
|
|
+ isRefresh.value = false
|
|
|
|
+ isEdit.value = true;
|
|
|
|
+ authenticMap.getSelectPointArr(point.id||plotList.value[plotList.value.length - 1].id)
|
|
})
|
|
})
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -441,6 +444,7 @@ const handleDelete = () => {
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
VE_API.authentic.deleteData(id).then((res) => {
|
|
VE_API.authentic.deleteData(id).then((res) => {
|
|
|
|
+ isUpdata.value = false
|
|
onCancel();
|
|
onCancel();
|
|
});
|
|
});
|
|
})
|
|
})
|
|
@@ -560,7 +564,7 @@ const updatePointList = () => {
|
|
|
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
isRefresh.value = true
|
|
isRefresh.value = true
|
|
- if (mapData.isEdit && mapData.selectPointArr.length < 2) {
|
|
|
|
|
|
+ if (mapData.isEdit && mapData.selectPointArr.length < 2&&isRefresh.value) {
|
|
isEdit.value = true;
|
|
isEdit.value = true;
|
|
disabledForm.value = false;
|
|
disabledForm.value = false;
|
|
isUpdata.value = true;
|
|
isUpdata.value = true;
|