jinlin
2024-07-30 481b82866b1714f79dc35ecf2bc26436b027954e
web/src/views/modules/basicInfo/ProductModelTree.vue
@@ -1,12 +1,12 @@
<template>
  <div class="product-tree-container">
    <el-input
   <!-- <el-input
      placeholder="输入名称进行过滤"
      style="width: 60%"
      v-model="filterText"
      size="small"
      clearable
    ></el-input>
    ></el-input>-->
    <el-button v-if="isShow" type="primary" @click="add()" style="margin: 10px 0 0 10px;padding: 9px 18px !important;">新增型号</el-button>
    <el-divider></el-divider>
    <el-tree
@@ -84,7 +84,6 @@
        if (this.basic) {
          if (this.productList && this.productList[0].children) {
            this.defaultId = this.productList[0].children[0].id
            console.log(this.defaultId, 'this.defaultID')
            this.$nextTick(() => {
              this.$refs.tree.setCurrentKey(this.defaultId); //一定要加这个选中了否则样式没有出来
            });