From 39801316eb6620da39c8a0724b97d75c7aa3d526 Mon Sep 17 00:00:00 2001
From: zhangtianqi <ztq17634040974@163.com>
Date: Sat, 3 Jun 2023 14:49:02 +0800
Subject: [PATCH] feat: 资源类型、所属系统、选择用户 组件优化(错误字段修改)

---
 hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputbiztypetree/index.js |  8 ++++----
 hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputkpitree/index.js     |  8 ++++----
 hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputrestypetree/index.js |  6 +++---
 hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputusertree/index.js    | 10 +++++-----
 4 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputbiztypetree/index.js b/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputbiztypetree/index.js
index 00e5cbe..aad5ec1 100644
--- a/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputbiztypetree/index.js
+++ b/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputbiztypetree/index.js
@@ -27,7 +27,7 @@ export default {
         },
         // 字段key,用于取出数据中的名字
         fieldName: {
-            default: 'title'
+            default: 'busTypeName'
         },
         emptyText: {
             default: '无匹配项'
@@ -114,6 +114,9 @@ export default {
     },
     watch: {},
     mounted() {
+
+    },
+    created() {
         let that = this;
         //加载资源列表
         const { proxy } = Vue.getCurrentInstance()
@@ -123,9 +126,6 @@ export default {
                 that.list = res.data;
             }
         })
-    },
-    created() {
-
 
     }
 }
diff --git a/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputkpitree/index.js b/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputkpitree/index.js
index e94a721..b2b9f9e 100644
--- a/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputkpitree/index.js
+++ b/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputkpitree/index.js
@@ -27,7 +27,7 @@ export default {
         },
         // 字段key,用于取出数据中的名字
         fieldName: {
-            default: 'title'
+            default: 'kpiName'
         },
         emptyText: {
             default: '无匹配项'
@@ -114,6 +114,9 @@ export default {
     },
     watch: {},
     mounted() {
+
+    },
+    created() {
         let that = this;
         //加载资源列表
         const { proxy } = Vue.getCurrentInstance()
@@ -123,9 +126,6 @@ export default {
                 that.list = res.data;
             }
         })
-    },
-    created() {
-
 
     }
 }
diff --git a/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputrestypetree/index.js b/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputrestypetree/index.js
index 3697d95..6998ae0 100644
--- a/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputrestypetree/index.js
+++ b/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputrestypetree/index.js
@@ -114,6 +114,9 @@ export default {
 	},
 	watch: {},
 	mounted() {
+
+	},
+	created() {
 		let that = this;
 		//加载资源列表
 		const { proxy } = Vue.getCurrentInstance()
@@ -123,9 +126,6 @@ export default {
 				that.list = res.data;
 			}
 		})
-	},
-	created() {
-
 
 	}
 }
diff --git a/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputusertree/index.js b/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputusertree/index.js
index 005fbaf..7c0f1b8 100644
--- a/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputusertree/index.js
+++ b/hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/inputusertree/index.js
@@ -27,7 +27,7 @@ export default {
         },
         // 字段key,用于取出数据中的名字
         fieldName: {
-            default: 'title'
+            default: 'nickname'
         },
         emptyText: {
             default: '无匹配项'
@@ -100,7 +100,7 @@ export default {
             } else {
                 that.modelValue.forEach(function (v, i) {
                     selectArr.forEach(function (v1) {
-                        if (v.busId == v1.busId) {
+                        if (v.id === v1.id) {
                             that.modelValue.splice(i, 1);
                         }
                     })
@@ -114,6 +114,9 @@ export default {
     },
     watch: {},
     mounted() {
+
+    },
+    created() {
         let that = this;
         //加载资源列表
         const {proxy} = Vue.getCurrentInstance()
@@ -123,9 +126,6 @@ export default {
                 that.list = res;
             }
         })
-    },
-    created() {
-
 
     }
 }
--
libgit2 0.24.0