From 6b25fcbe824a87a1ab57bf6a6d816ffd6d70cefb Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期四, 03 四月 2025 10:47:29 +0800 Subject: [PATCH] qx --- src/views/system/package/index.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/views/system/package/index.vue b/src/views/system/package/index.vue index 2a1edc4..de2fd1b 100644 --- a/src/views/system/package/index.vue +++ b/src/views/system/package/index.vue @@ -206,7 +206,7 @@ <el-form-item label="鐜颁环" prop="xianprice"> <el-input v-model="form.xianprice" placeholder="鐜颁环" clearable style="width: 140px" @input="changeXianjia" - @blur="numberChangeXianPrice(youhui, youhui)" type="number" :debounce="3000"/> + @blur="numberChangeXianPrice(youhui, youhui)" type="number" :debounce="3000" min="0"/> </el-form-item> <el-form-item label="鍏抽敭瀛�" prop="keywords"> <el-select multiple v-model="form.keywords" placeholder="璇烽�夋嫨鍏抽敭瀛�" style="width: 160px" @change="sel" filterable @@ -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({ -- Gitblit v1.8.0