guanqb
2022-12-05 a514c8a941d34e7e4f7bc4bc43df4d45191c6e30
警力资源搜索
3 files modified
30 ■■■■ changed files
src/api/police/index.js 2 ●●● patch | view | raw | blame | history
src/views/activity/index.vue 8 ●●●●● patch | view | raw | blame | history
src/views/police/index.vue 20 ●●●● patch | view | raw | blame | history
src/api/police/index.js
@@ -31,7 +31,7 @@
 */
export const getCarList = (params = {}, requestBaseUrl = 'outside') => {
    return request({
        url: '/policecar/policecar/all',
        url: '/policecar/policecar/page',
        method: 'get',
        requestBaseUrl,
        params: {
src/views/activity/index.vue
@@ -1055,7 +1055,7 @@
                .row-box {
                    margin: 10px;
                    padding: 10px;
                    background: rgba(29, 38, 105, 1);
                    background: rgba(25, 23, 99, 0.7);
                    cursor: pointer;
                    font-size: 14px;
@@ -1079,11 +1079,13 @@
                }
                .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) {
src/views/police/index.vue
@@ -382,7 +382,6 @@
<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'
@@ -458,16 +457,13 @@
            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 }
@@ -610,7 +606,11 @@
        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) {