大喇叭

This commit is contained in:
liuye
2023-01-06 14:16:25 +08:00
parent 14b2062ec1
commit 5b6f58ef1f
2 changed files with 5 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ export default {
this.current = 1
this.getList()
},
getList() { //&areaId=${this.areaId}
getList() {
this.$http.post(`/app/appdlbquipment/list?current=1&size=20&name=${this.keyword}&areaId=${this.areaId}`).then((res) => {
if (res.code == 0) {
if (this.current > 1) {
@@ -77,7 +77,8 @@ export default {
}
},
onReachBottom() {
this.current++
this.getList()
}
}
</script>

View File

@@ -48,7 +48,7 @@ export default {
}
},
computed: { ...mapState(['user']) },
onLoad(option) {
onLoad() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
this.$dict.load(['dlbDevStatus']).then(() => {
@@ -61,7 +61,7 @@ export default {
this.getList()
},
getList() {
this.$http.post(`/app/appdlbquipment/list?current=1&size=20&name=${this.keyword}&devStatus=5&areaId=${this.areaId}`).then((res) => {
this.$http.post(`/app/appdlbquipment/list?current=1&size=1000&name=${this.keyword}&devStatus=5&areaId=${this.areaId}`).then((res) => {
if (res.code == 0) {
res.data.records.map(item => {
item.isCheck = false