wangyi
2026-04-01 c9086dd79b5f0e7dfe49582c9b9c91180bee22b5
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 = [];