jihongshun
2025-09-17 5bdc9914710b6cc4a1fcf19093ca5d76d7f3593c
fix+
已修改1个文件
28 ■■■■ 文件已修改
src/views/system/project/components/addPorjectDialog.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/project/components/addPorjectDialog.vue
@@ -744,20 +744,20 @@
      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