| | |
| | | { |
| | | label: '空载试验', |
| | | value: 'kz', |
| | | route: '/index/windingTest', |
| | | route: '/index/noLoadTest', |
| | | step: true, // 是否有试验步骤 |
| | | }, |
| | | { |
| | | label: '负载试验', |
| | | value: 'fz', |
| | | route: '/index/noLoadTest', |
| | | route: '/index/loadTest', |
| | | step: true, // 是否有试验步骤 |
| | | }, |
| | | { |
| | | label: '绕阻试验', |
| | | value: 'rz', |
| | | route: '/index/loadTest', |
| | | route: '/index/windingTest', |
| | | step: false, |
| | | } |
| | | ]; |
| | |
| | | info: {}, |
| | | list: [], |
| | | stepShow: false, |
| | | route: "", |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | if (testInfo != -1) { |
| | | this.info.typeName = testInfo.label; |
| | | this.stepShow = testInfo.step; |
| | | this.route = testInfo.route; |
| | | // 显示测试步骤 |
| | | if(this.stepShow) { |
| | | this.experimentPoint(rs.data.id); |
| | |
| | | |
| | | }else { |
| | | this.info.typeName = "未知试验类型"; |
| | | this.route = ""; |
| | | } |
| | | |
| | | |
| | |
| | | }); |
| | | }, |
| | | goTest() { |
| | | if (this.info.type == "fz") { |
| | | this.$router.push('/index/loadTest'); |
| | | } else if (this.info.type == "kz") { |
| | | this.$router.push('/index/noLoadTest'); |
| | | if(this.route) { |
| | | this.$router.push(this.route); |
| | | }else { |
| | | this.$layer.msg('未知试验类型!'); |
| | | } |
| | | |
| | | } |
| | | }, |
| | | computed: {}, |