Commit 6bfe146c by 胡悦

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

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