From 29a163df36dd12960a8a8592d0b25b36def8cb53 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期一, 10 七月 2023 23:00:48 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
index 38699eb..3a057e4 100644
--- a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
+++ b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
@@ -359,6 +359,12 @@
         },
         // 灞炴�ф睜鍔犺浇
         attrRefOnLoad(){
+            if (!this.attrRef.queryNotIn || (this.attrRef.queryNotIn === '' && this.btmType.attributes !== [])){
+              this.attrRef.queryNotIn = '';
+               this.btmType.attributes.forEach(item => {
+                  this.attrRef.queryNotIn += (item.id + ",")
+               })
+            }
             this.attrRef.loading = true;
             queryPage(this.attrRef.key,this.attrRef.queryNotIn,this.attrRef.page.currentPage, this.attrRef.page.pageSize).then(res => {
                 const data = res.data.data;
@@ -374,7 +380,7 @@
         },
         // 灞炴�ф睜妫�绱�
         attrRefSearch(form,done){
-            this.attrRef.key = form.key;
+            this.attrRef.key = form.id;
             this.attrRefOnLoad();
             done();
             this.attrRef.key = null;

--
Gitblit v1.9.3