| | |
| | | }, |
| | | |
| | | mounted() { |
| | | //获取目录 |
| | | this.getSelectdirTab(); |
| | | |
| | | //获取坐标系 |
| | | this.setCoordinateSystem(); |
| | | //获取项目名称 |
| | |
| | | this.getPerms(); |
| | | window.addEventListener("resize", this.onResize); |
| | | this.calHeight(); |
| | | //获取目录 |
| | | this.getSelectdirTab(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.timer && clearTimeout(this.timer); |
| | |
| | | const res = await dataUploadSelectVerByDirid({ |
| | | dirid: this.formInline.dirid, |
| | | }); |
| | | |
| | | if (res.code != 200) { |
| | | this.$message.error("版本列表获取失败"); |
| | | return; |
| | |
| | | this.$message.error("目录列表获取失败"); |
| | | return; |
| | | } |
| | | |
| | | this.catalogOption = this.treeData(res.result); |
| | | this.formInline.dirName = this.catalogOption[0].name; |
| | | this.getStartDirChecked(this.catalogOption); |
| | | this.formInline.dirid = this.catalogOption[0].id; |
| | | // this.getStartDirChecked(this.catalogOption); |
| | | this.getselectVerByDirid(); |
| | | }, |
| | | |