设备
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
<img src="./img/lb@2x.png" alt="" class="voice-img">
|
||||
<div class="info">
|
||||
<div class="text">
|
||||
<p>{{item.deviceName}}</p>
|
||||
<span>{{item.orgName}}</span>
|
||||
<p>{{item.name}}</p>
|
||||
<span>{{item.areaName}}</span>
|
||||
</div>
|
||||
<div class="status">在线</div>
|
||||
<div class="status">{{ $dict.getLabel('dlbDevStatus', item.devStatus) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -48,7 +48,9 @@ export default {
|
||||
onLoad(option) {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.getList()
|
||||
this.$dict.load(['dlbDevStatus']).then(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
areaSelect(e) {
|
||||
@@ -56,7 +58,7 @@ export default {
|
||||
// this.getList()
|
||||
},
|
||||
getList() {
|
||||
this.$http.post(`/app/appdlbquipment/getDlbDeviceList?current=1&size=20&keyword=${this.keyword}`).then((res) => {
|
||||
this.$http.post(`/app/appdlbquipment/list?current=1&size=20&name=${this.keyword}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.records.map(item => {
|
||||
item.isCheck = false
|
||||
|
||||
Reference in New Issue
Block a user