Commit e257acd1 by cwq0219

修改

1 parent da376319
......@@ -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!