|
@@ -320,14 +320,18 @@ export default {
|
|
|
this.dataListLoading = true
|
|
|
let params = {
|
|
|
page: this.page,
|
|
|
- limit: this.limit,
|
|
|
- keyword: this.form.keyword,
|
|
|
- areaId: this.form.areaId
|
|
|
+ limit: this.limit
|
|
|
+ }
|
|
|
+ if (this.form.keyword !== '') {
|
|
|
+ params.keyword = this.form.keyword
|
|
|
+ }
|
|
|
+ if (this.form.areaId !== '') {
|
|
|
+ params.areaId = this.form.areaId
|
|
|
}
|
|
|
this.$http({
|
|
|
url: this.$http.adornUrl('/management/camerainfo/list'),
|
|
|
- method: 'post',
|
|
|
- data: this.$http.adornParams(params)
|
|
|
+ method: 'get',
|
|
|
+ params: this.$http.adornParams(params, true)
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.data.code === 0) {
|