From a514c8a941d34e7e4f7bc4bc43df4d45191c6e30 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Mon, 05 Dec 2022 17:27:48 +0800
Subject: [PATCH] 警力资源搜索
---
src/views/police/index.vue | 20 ++++++++++----------
src/api/police/index.js | 2 +-
src/views/activity/index.vue | 8 +++++---
3 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/src/api/police/index.js b/src/api/police/index.js
index 8e2f156..5d829d9 100644
--- a/src/api/police/index.js
+++ b/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: {
diff --git a/src/views/activity/index.vue b/src/views/activity/index.vue
index 080a5ab..807e811 100644
--- a/src/views/activity/index.vue
+++ b/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) {
diff --git a/src/views/police/index.vue b/src/views/police/index.vue
index ed6bbbf..bc26d5e 100644
--- a/src/views/police/index.vue
+++ b/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) {
--
Gitblit v1.9.3