设备管理
This commit is contained in:
@@ -17,10 +17,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">{{item.devStatus}}</div>
|
||||
<div class="status">{{ $dict.getLabel('dlbDevStatus', item.devStatus) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -43,7 +43,9 @@ export default {
|
||||
onLoad() {
|
||||
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) {
|
||||
if (this.current > 1) {
|
||||
this.list = [...this.list, ...res.data.records]
|
||||
@@ -67,7 +69,7 @@ export default {
|
||||
})
|
||||
},
|
||||
toDetail(item) {
|
||||
uni.navigateTo({url: `./detail`})
|
||||
uni.navigateTo({url: `./detail?id=${item.id}`})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
|
||||
Reference in New Issue
Block a user