| | |
| | | * @param {*} current 当前页 |
| | | * @param {*} size 每页数据数量 |
| | | */ |
| | | export const getRegionSaveList = (current, size, requestBaseUrl = 'outside') => { |
| | | export const getRegionSaveList = (current, size, name, requestBaseUrl = 'outside') => { |
| | | return request({ |
| | | url: '/range/range/page', |
| | | method: 'get', |
| | |
| | | params: { |
| | | current, |
| | | size, |
| | | name |
| | | } |
| | | }) |
| | | } |
| | |
| | | searchClick () { |
| | | this.searchValBoxShow = false |
| | | if (this.navType == 1) { |
| | | // this.carList = accurateSearch(this.carListSaveDate, this.searchValue, 'name') |
| | | // console.log(111, this.carList, this.searchValue) |
| | | this.getCarList(this.searchValue) |
| | | |
| | | |
| | | } else if (this.navType == 2) { |
| | | this.phoneList = accurateSearch(phoneList, this.searchValue, 'name') |
| | | } else if (this.navType == 3) { |
| | |
| | | if (this.searchValue == '') { |
| | | this.searchValBoxShow = false |
| | | this.searchArray = [] |
| | | // this.monitoringList = this.monitoringSaveList |
| | | this.getVideoList(1, 10, this.searchValue) |
| | | this.$message({ |
| | | message: '请输入搜索内容', |
| | |
| | | searchClick () { |
| | | if (this.searchValue != '') { |
| | | this.searchValBoxShow = false |
| | | this.monitoringList = accurateSearch(this.monitoringSaveList, this.searchValue, 'name') |
| | | this.getVideoList(1, 10, this.searchValue) |
| | | } else { |
| | | this.$message({ |
| | |
| | | type: 'warning' |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | |
| | | searchVlaClick (item) { |
| | |
| | | this.searchArray = [] |
| | | this.monitoringList = [item] |
| | | this.searchValue = item.name |
| | | this.getVideoList(1, 10, this.searchValue) |
| | | }, |
| | | |
| | | draw (type) { |
| | |
| | | |
| | | }, |
| | | |
| | | getRegionSaveList () { |
| | | getRegionSaveList(1, 10).then(res => { |
| | | getRegionSaveList (name) { |
| | | getRegionSaveList(1, 10, name).then(res => { |
| | | this.saveRangeList = res.data.data.records |
| | | this.initRangeListLayer() |
| | | }) |
| | |
| | | |
| | | deleteRegionSaveList (id) { |
| | | deleteRegionSaveList(id).then(res => { |
| | | console.log('删除', res) |
| | | console.log('删除成功', res) |
| | | this.getRegionSaveList() |
| | | }) |
| | | }, |
| | |
| | | if (this.searchValue == '') { |
| | | this.searchValBoxShow = false |
| | | this.searchArray = [] |
| | | this.getRegionSaveList(this.searchValue) |
| | | this.$message({ |
| | | message: '请输入搜索内容', |
| | | type: 'warning' |
| | | }) |
| | | // this.monitoringList = monitoringList |
| | | } else { |
| | | // this.searchArray = listQuery(monitoringList, this.searchValue, 'name') |
| | | this.searchArray = listQuery(this.saveRangeList, this.searchValue, 'name') |
| | | this.searchValBoxShow = true |
| | | this.getRegionSaveList(this.searchValue) |
| | | } |
| | | }, |
| | | |
| | | searchClick () { |
| | | if (this.searchValue != '') { |
| | | this.searchValBoxShow = false |
| | | // this.monitoringList = accurateSearch(monitoringList, this.searchValue, 'name') |
| | | this.getRegionSaveList(this.searchValue) |
| | | } else { |
| | | this.$message({ |
| | | message: '请输入搜索内容', |
| | | type: 'warning' |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | searchVlaClick (item) { |
| | | this.searchValBoxShow = false |
| | | this.searchArray = [] |
| | | this.monitoringList = [item] |
| | | this.searchValue = item.name |
| | | this.getRegionSaveList(this.searchValue) |
| | | }, |
| | | |
| | | // 大小重置 |