Commit 6bfe146c by 胡悦

修改设备登录设备类型问题

1 parent 1e1abed3
......@@ -212,6 +212,7 @@ export default {
return false
}
},
deviceType: '',
devLogintable: {
border: true,
stripe: true,
......@@ -238,7 +239,7 @@ export default {
{
label: '设备类型',
formatter: (cellValue) => {
return this.devicesList[`${this.searcher.type - 1}`].label
return this.devicesList[this.deviceType].label
}
},
{
......@@ -296,6 +297,7 @@ export default {
this.devLogintable.data = res
this.count = res.length
this.loading = false
this.deviceType = this.searcher.type - 1
})
.catch(err => {
this.loading = false
......@@ -304,7 +306,6 @@ export default {
},
onSearch() {
this.findAll()
console.log(this.searcher.deviceType - 1)
},
onReset() {
this.searcher = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!