| | |
| | | mounted() { |
| | | this.active = this.$route.query.active |
| | | this.currentId = this.$route.query.currentId |
| | | this.getUserNowInfo() |
| | | this.selectStandardTreeList() |
| | | this.selectStandardMethods() |
| | | this.getInfo() // 获取数据 |
| | | this.getInfoRow(); |
| | | }, |
| | | activated() { |
| | | this.active = this.$route.query.active |
| | | this.currentId = this.$route.query.currentId |
| | | this.getInfoRow(); |
| | | }, |
| | | methods: { |
| | | getInfoRow() { |
| | | this.getUserNowInfo() |
| | | this.selectStandardTreeList() |
| | | this.selectStandardMethods() |
| | | this.getInfo() // 获取数据 |
| | | }, |
| | | // 拆分 |
| | | handleSplitCountNum () { |
| | | this.sample.joinName = null |
| | |
| | | }, |
| | | getProNum() { |
| | | this.sampleSelectionList.forEach((m, i) => { |
| | | Vue.set(this.sampleSelectionList[i], 'proNum', m.insProduct.filter(a => a.state == 1).length) |
| | | Vue.set(this.sampleSelectionList[i], 'proNum', 1) |
| | | }) |
| | | this.$refs.sampleTable.doLayout() |
| | | }, |
| | |
| | | |
| | | }, |
| | | goBack () { |
| | | this.$router.go(-1) |
| | | if (this.active == 1) { |
| | | this.$router.go(-1) |
| | | } else { |
| | | this.closeOpenPage() |
| | | } |
| | | }, |
| | | closeOpenPage() { |
| | | this.$router.go(-1) |