Commit bbb6b079 by cwq0219

修改

1 parent 3f4ddf66
......@@ -154,7 +154,7 @@ export default {
methods: {
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 })
// console.log(res)
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!