| | |
| | | this.ruleForm.routePointList = routePointList |
| | | console.log(this.ruleForm) |
| | | console.log('生成航线') |
| | | // buildKmz(this.ruleForm).then(res=>{ |
| | | // if(res.code == 200) { |
| | | // this.$message({ |
| | | // message: '生成航线成功', |
| | | // type: 'success' |
| | | // }) |
| | | // const link = document.createElement('a'); |
| | | // link.href = res.msg; // 设置下载链接 |
| | | // // link.download = 'filename.ext'; // 可选:指定文件名 |
| | | // document.body.appendChild(link); // 将链接添加到 DOM |
| | | // link.click(); // 模拟点击下载 |
| | | // document.body.removeChild(link); // 下载后移除链接 |
| | | // } |
| | | // }) |
| | | buildKmz(this.ruleForm).then(res=>{ |
| | | if(res.code == 200) { |
| | | this.$message({ |
| | | message: '生成航线成功', |
| | | type: 'success' |
| | | }) |
| | | const link = document.createElement('a'); |
| | | link.href = res.msg; // 设置下载链接 |
| | | // link.download = 'filename.ext'; // 可选:指定文件名 |
| | | document.body.appendChild(link); // 将链接添加到 DOM |
| | | link.click(); // 模拟点击下载 |
| | | document.body.removeChild(link); // 下载后移除链接 |
| | | } |
| | | }) |
| | | }, |
| | | lineSet(){ |
| | | this.drawer =true |