| | |
| | | version: {}, |
| | | VER: {}, |
| | | verdata: {}, |
| | | character: "", |
| | | }; |
| | | character: 0, |
| | | } |
| | | }, |
| | | // watch: { |
| | | // search(val) { |
| | |
| | | // } |
| | | // }, |
| | | mounted() { |
| | | this.selectMaterialTree(); |
| | | this.selectMaterialTree() |
| | | this.selectVersion() |
| | | this.selectAll() |
| | | }, |
| | | methods: { |
| | | selectDataList() { |
| | |
| | | console.log(val); |
| | | this.returntree = val; |
| | | }, |
| | | selectVersion() { |
| | | this.$axios |
| | | .get(this.$api.url.selectVersion, { |
| | | params: { |
| | | specificationsId: this.returntree.id, |
| | | type: this.typeselect, |
| | | }, |
| | | }) |
| | | .then((res) => { |
| | | selectVersion() {//版本 |
| | | this.$axios.get(this.$api.url.selectVersion, { |
| | | params: { |
| | | specificationsId: this.returntree.id, |
| | | type: this.typeselect, |
| | | } |
| | | }).then((res) => { |
| | | this.verdata = res.data; |
| | | this.version = this.verdata.map((el) => { |
| | | return (el = `v${el}`); |