chenhaozhe
7 天以前 723793a0aa8d69cbbb463830a3344dbd6655cee5
src/views/basic/gy/gySupplier.vue
@@ -360,8 +360,29 @@
  created() {
    this.getList()
    this.getTreeselect()
    console.log(this.treeOptions)
    if (this.openPage) {
      this.autoSelectCarrierTree()
    }
  },
  methods: {
    autoSelectCarrierTree() {
      setTimeout(() => {
        if (this.$refs.tree && this.treeOptions) {
          // 👇 这里换成你真实的【承运商分类ID】
          const carrierId = "1"
          // 自动选中节点
          this.$refs.tree.setCurrentKey(carrierId)
          // 自动触发节点点击,执行筛选
          let node = this.$refs.tree.getNode(carrierId)
          if (node) {
            this.handleNodeClick(node.data)
          }
        }
      }, 300)
    },
    getSummaries(param) {
      const { columns, data } = param;
      const sums = [];