|
@@ -145,20 +145,22 @@ onMounted(() => {
|
|
//选项卡子项事件监听
|
|
//选项卡子项事件监听
|
|
eventBus.on('handleTabItem',handleTabItem)
|
|
eventBus.on('handleTabItem',handleTabItem)
|
|
|
|
|
|
- // editStep(0)
|
|
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ editStep(0,0)
|
|
|
|
+ },600)
|
|
// eventBus.emit('steps','0')
|
|
// eventBus.emit('steps','0')
|
|
- VE_API.feixun.getSteps({"k": "step",resultType:"json"}).then(res =>{
|
|
|
|
- if(res.data.step!=='0'){
|
|
|
|
- setTimeout(()=>{
|
|
|
|
- getSteps('all')
|
|
|
|
- },500)
|
|
|
|
- }else{
|
|
|
|
- setTimeout(()=>{
|
|
|
|
- editStep(res.data)
|
|
|
|
- },500)
|
|
|
|
- eventBus.emit('steps','0')
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ // VE_API.feixun.getSteps({"k": "step",resultType:"json"}).then(res =>{
|
|
|
|
+ // if(res.data.step!=='0'){
|
|
|
|
+ // setTimeout(()=>{
|
|
|
|
+ // getSteps('all')
|
|
|
|
+ // },500)
|
|
|
|
+ // }else{
|
|
|
|
+ // setTimeout(()=>{
|
|
|
|
+ // editStep(res.data)
|
|
|
|
+ // },500)
|
|
|
|
+ // eventBus.emit('steps','0')
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
});
|
|
});
|
|
|
|
|
|
onUnmounted(()=>{
|
|
onUnmounted(()=>{
|
|
@@ -210,7 +212,7 @@ const handleSetps = () =>{
|
|
dialogVisible.value = false
|
|
dialogVisible.value = false
|
|
homeMap.hideAll()
|
|
homeMap.hideAll()
|
|
editStep(1,1,'all')
|
|
editStep(1,1,'all')
|
|
- },1000)
|
|
|
|
|
|
+ },10000)
|
|
}
|
|
}
|
|
|
|
|
|
async function editStep(step,blue_step,type){
|
|
async function editStep(step,blue_step,type){
|
|
@@ -277,7 +279,7 @@ function areaId({areaId,farmId}){
|
|
regionId.value = areaId
|
|
regionId.value = areaId
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
samplePointLayer.initData(farmId,areaId)
|
|
samplePointLayer.initData(farmId,areaId)
|
|
- },350)
|
|
|
|
|
|
+ },400)
|
|
if(tabId.value===0){
|
|
if(tabId.value===0){
|
|
// getBlueRegionList()
|
|
// getBlueRegionList()
|
|
// VE_API.feixun.getSteps({"k": "step",}).then(res =>{
|
|
// VE_API.feixun.getSteps({"k": "step",}).then(res =>{
|