zss
2023-09-08 8b0a44ad031638557c2b49028bbb6cd2d93666c8
src/components/view/standard.vue
@@ -188,8 +188,8 @@
      version: {},
      VER: {},
      verdata: {},
      character: "",
    };
      character: 0,
    }
  },
  // watch: {
  //   search(val) {
@@ -200,7 +200,9 @@
  //   }
  // },
  mounted() {
    this.selectMaterialTree();
    this.selectMaterialTree()
    this.selectVersion()
    this.selectAll()
  },
  methods: {
    selectDataList() {
@@ -242,15 +244,13 @@
      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}`);