Commit c7a7bf55 by liimin

Merge branch 'master' of http://192.168.3.233:8090/glsx-web/tFIMS

2 parents d59c1941 e257acd1
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
methods: { methods: {
async isCodeExist (rule, value, callback) { async isCodeExist (rule, value, callback) {
if (this.deviceNum !== value && this.deviceName !== this.editForm.deviceName) { if (this.deviceNum !== value || this.deviceName !== this.editForm.deviceName) {
const res = await isExistApi({ deviceNum: value, deviceName: this.editForm.deviceName, stationCode: this.editForm.stationCode }) const res = await isExistApi({ deviceNum: value, deviceName: this.editForm.deviceName, stationCode: this.editForm.stationCode })
// console.log(res) // console.log(res)
res.deviceNum ? callback(new Error(rule.message)) : callback() res.deviceNum ? callback(new Error(rule.message)) : callback()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!