From c2760c0067dd3368567106f93b1e450fa83f8187 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Tue, 29 Oct 2024 16:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B3=E5=8F=B0=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E8=AE=BE=E5=A4=87=E5=9B=BD=E6=A0=87=E7=BC=96=E5=8F=B7?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E6=8F=90=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/PlatformEdit.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web_src/src/components/PlatformEdit.vue b/web_src/src/components/PlatformEdit.vue index f815adda..ec42280a 100644 --- a/web_src/src/components/PlatformEdit.vue +++ b/web_src/src/components/PlatformEdit.vue @@ -168,7 +168,7 @@ export default { } else { var exit = await this.deviceGBIdExit(value); if (exit) { - callback(new Error("设备国标编号已存在")); + callback(new Error("设备国标编号格式错误或已存在")); } else { callback(); } @@ -287,6 +287,18 @@ export default { }); } }, + deviceGBIdExit: async function (deviceGbId) { + let result = false; + await this.$axios({ + method:"get", + url:`/api/platform/exit/${deviceGbId}` + }).then((res)=> { + result = res.data; + }).catch((error)=> { + console.log(error); + }); + return result; + }, close: function () { this.closeEdit() },