| | |
| | | */ |
| | | export const getCarList = (params = {}, requestBaseUrl = 'outside') => { |
| | | return request({ |
| | | url: '/policecar/policecar/all', |
| | | url: '/policecar/policecar/page', |
| | | method: 'get', |
| | | requestBaseUrl, |
| | | params: { |
| | |
| | | .row-box { |
| | | margin: 10px; |
| | | padding: 10px; |
| | | background: rgba(29, 38, 105, 1); |
| | | background: rgba(25, 23, 99, 0.7); |
| | | cursor: pointer; |
| | | font-size: 14px; |
| | | |
| | |
| | | } |
| | | |
| | | .row-box:hover { |
| | | background-color: $table-header-bg-color; |
| | | // background-color: $table-header-bg-color; |
| | | background-color: rgba(0, 0, 138, 0.8); |
| | | } |
| | | |
| | | .row-box.on { |
| | | background: $table-header-bg-color; |
| | | // background: $table-header-bg-color; |
| | | background-color: rgba(0, 0, 138, 0.8); |
| | | } |
| | | |
| | | :deep(.el-dialog) { |
| | |
| | | |
| | | <script> |
| | | import { listQuery, accurateSearch } from "@/utils/search.js" |
| | | |
| | | import phoneList from '@/assets/data/phone.js' |
| | | import zfList from '@/assets/data/zf.js' |
| | | import dtList from '@/assets/data/dt.js' |
| | |
| | | this.currentPage = currentPage |
| | | }, |
| | | |
| | | getCarList () { |
| | | getCarList().then(res => { |
| | | console.log(res, 6666) |
| | | this.carListSaveDate = res.data.data |
| | | this.carList = res.data.data |
| | | |
| | | getCarList (serialNumber) { |
| | | getCarList({ current: 1, size: 10, serialNumber: serialNumber }).then(res => { |
| | | console.log(res.data.data.records, 6666) |
| | | this.carListSaveDate = res.data.data.records |
| | | this.carList = res.data.data.records |
| | | }) |
| | | }, |
| | | |
| | | |
| | | |
| | | navClick (type) { |
| | | if (!type) { type = 1 } |
| | |
| | | searchClick () { |
| | | this.searchValBoxShow = false |
| | | if (this.navType == 1) { |
| | | this.carList = accurateSearch(this.carListSaveDate, this.searchValue, 'name') |
| | | // 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) { |