ines-num-old">
this.userConectChanged()
this.relevance = true
this.relevanceValidate.number = row.deviceNo
this.relevanceValidate.id = row.deviceId
if (row.bindName == '--') {
this.relevanceValidate.msgisShow = false
this.relevanceValidate.msg = ''
} else {
this.relevanceValidate.msgisShow = true
this.relevanceValidate.msg = '当前终端已关联 ' + row.bindName + ' ,点击保存更改关联关系'
}
},
removeD(row) {
let that = this
let confirm = {
title: '请确认',
content: '删除后不可恢复,确认删除吗?',
ok: function () {
var params = new FormData()
params.append('data', JSON.stringify({
deviceId: row.deviceId
}))
this.$test.post(services.device.DEL_DEVICE, params
).then(res => {
// 请求成功处理...
if (res.data.result) {
that.$Message.success('操作成功')
that.getList(that.table.pager.currentPage, that.table.pager.size, that.queryCondition.isBindDevice, that.queryCondition.deviceNo)
} else {
that.$Message.danger(res.data.errMsg)
}
}).catch(res => {
// 请求失败处理...
})
}
}
this.$Confirm.confirm(confirm)
}
}
}