Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory
| | |
| | | }, |
| | | created() { |
| | | getDetailData(this.$route.query.id).then(res => { |
| | | if(!res.detailExperimentVOS){ |
| | | res.detailExperimentVOS = []; |
| | | } |
| | | this.detailData = res; |
| | | // 确保detailExperimentVOS存在且是数组 |
| | | this.detailData.detailExperimentVOS = this.detailData.detailExperimentVOS || []; |
| | | // this.detailData.detailExperimentVOS = this.detailData.detailExperimentVOS || []; |
| | | if (this.detailData.detailExperimentVOS.length) { |
| | | this.selectedExperimenter = this.detailData.detailExperimentVOS[0]; |
| | | this.activeNameTab = this.selectedExperimenter.userName; |
| | |
| | | add(params).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('发送成功'); |
| | | this.$router.push('/strainReportLibrary/reportLibraryOne'); |
| | | this.$router.push('/strainReportLibrary/reportLibraryFour'); |
| | | } |
| | | }) |
| | | }); |
| | |
| | | add(params).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('保存成功'); |
| | | this.$router.push('/strainReportLibrary/reportLibraryOneFour'); |
| | | this.$router.push('/strainReportLibrary/reportLibraryFour'); |
| | | } |
| | | }) |
| | | } catch (e) { |
| | |
| | | }) |
| | | }, |
| | | handleAddProject() { |
| | | this.$router.push('/strainReportLibrary/addThree') |
| | | this.$router.push('/strainReportLibrary/addFour') |
| | | }, |
| | | handleCurrentChange(page) { |
| | | this.queryForm.pageNum = page |
| | |
| | | add(params).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('发送成功'); |
| | | this.$router.push('/strainReportLibrary/reportLibraryOneThree'); |
| | | this.$router.push('/strainReportLibrary/reportLibraryThree'); |
| | | } |
| | | }) |
| | | }); |