qx
qx
2025-04-03 6b25fcbe824a87a1ab57bf6a6d816ffd6d70cefb
src/views/system/package/index.vue
@@ -488,6 +488,7 @@
      youhui: 10,
      debounceTimer: null,
      rules: {},
      initializing: true, // 初始化标志
    };
  },
  created() {
@@ -606,6 +607,7 @@
        counterPrice: null,
        limits: 10,
      };
      this.initializing = true;
      this.resetForm("form");
    },
    handleQuery() {
@@ -824,6 +826,7 @@
        this.pics = this.DataList.reduce((total, item) => total + item.priceOrd, 0);
        this.$nextTick(() => {
          this.$refs.tree.setCheckedKeys(this.checkedNodes);
          this.initializing = false;
        });
      });
      this.loading = false;
@@ -836,6 +839,9 @@
      });
    },
    handleCurrentChecked(data, checked, indeterminate) {
      if (this.initializing) {
        return; // 初始化时不处理
      }
      if (checked) {
        if (!this.DataList.some((item) => item.proId === data.proId)) {
          this.DataList.push({