|
|
|
@ -90,8 +90,8 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-button type="primary" icon="Download" @click="exportExcel">导出Excel</el-button>
|
|
|
|
|
<el-button type="primary" icon="Plus" @click="toAddMassif" :disabled="!currentBase.baseId">坐标点新增地块</el-button>
|
|
|
|
|
<el-button type="primary" icon="EditPen" @click="toBaseMap(true)" :disabled="!currentBase.baseId">绘制地块</el-button>
|
|
|
|
|
<el-button type="primary" icon="Plus" @click="toAddMassif" :disabled="!currentBase.id">坐标点新增地块</el-button>
|
|
|
|
|
<el-button type="primary" icon="EditPen" @click="toBaseMap(true)" :disabled="!currentBase.id">绘制地块</el-button>
|
|
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
@ -190,7 +190,7 @@ const columns = ref([
|
|
|
|
|
const toAddMassif = () => {
|
|
|
|
|
massifFormRef.value.toAdd({
|
|
|
|
|
baseName:currentBase.value.baseName,
|
|
|
|
|
baseId:currentBase.value.baseId
|
|
|
|
|
id:currentBase.value.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const toUpdateMassif = (row) => {
|
|
|
|
@ -317,8 +317,8 @@ function handleUpdate(row) {
|
|
|
|
|
};
|
|
|
|
|
// 切换地图模式
|
|
|
|
|
const toBaseMap = (toAdd) => {
|
|
|
|
|
if (currentBase.value.baseId){
|
|
|
|
|
router.push({path:'/system/base/massifMap/'+currentBase.value.baseId,query:toAdd?{toAdd:true}:{}})
|
|
|
|
|
if (currentBase.value.id){
|
|
|
|
|
router.push({path:'/system/base/massifMap/'+currentBase.value.id,query:toAdd?{toAdd:true}:{}})
|
|
|
|
|
}else{
|
|
|
|
|
router.push('/system/base/mapMarkers')
|
|
|
|
|
}
|
|
|
|
|