From 0989fc93dcc7308227c6510586eb1becae49fb83 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期四, 14 九月 2023 11:45:23 +0800
Subject: [PATCH] 改bug

---
 src/components/view/self-inspection.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/components/view/self-inspection.vue b/src/components/view/self-inspection.vue
index 55b8cbc..b8213a2 100644
--- a/src/components/view/self-inspection.vue
+++ b/src/components/view/self-inspection.vue
@@ -448,8 +448,15 @@
 			},
 			//鏂板
 			add() {
-				this.dialogVisible = false
+				if (this.form.standard[0] !== "<" && this.form.standard[0] !== "<=" && this.form.standard[0] !== ">"){
+				this.$message({
+						message: '杈撳叆鐨勭涓�涓瓧绗﹀繀椤绘槸 '<' 鎴� '<='锛�',
+						type: 'warning'
+					});
+					return;
+				}
 				this.addSelfcheck()
+				this.dialogVisible = false
 			},
 			addSelfcheck() {
                 this.$axios.post(this.$api.url.addSelfcheck,{
@@ -513,6 +520,7 @@
 			})[0]
 			console.log(one);
 			let id =one.children[0].id
+			this.checkTreeNode.id = id
 			console.log(id);
 			this.selectAllSelfStart(id)
 			this.selectDataList();

--
Gitblit v1.9.3