mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-20 20:37:50 +08:00
修复平台表单设备国标编号校验提示错误
This commit is contained in:
parent
5304620861
commit
c2760c0067
@ -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()
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user