Commit 8df86680 by 前端

新增v1.17.0版本需求

1 parent 39bd917e
import request from './request'
// 区域查车-查询车辆信息
export const GER_REGIONAL_SEARCH = function(params = {}){
return request(params, '/trialdrive/regional/search', 'get')
}
// 区域查车-导出excel
export const GER_REGIONAL_EXPORT = function(params = {}){
return request(params, '/trialdrive/regional/export', 'get')
}
\ No newline at end of file
......@@ -393,6 +393,7 @@
.des {
flex: 1;
word-break: break-all;
max-width: 160px;
}
.icon {
......
.row_box_hide {
position: absolute;
top: 20px;
right: 20px;
z-index: 999;
width: 88px;
height: 88px;
cursor: pointer;
.img {
width: 100%;
height: 100%;
}
}
.row_box {
position: absolute;
top: 10px;
right: 10px;
width: 380px;
height: 396px;
background: #ffffff;
border-radius: 8px;
z-index: 999;
padding: 20px;
box-sizing: border-box;
.hide_icon {
position: absolute;
width: 24px;
height: 24px;
right: 20px;
top: 20px;
cursor: pointer;
z-index: 1000;
.img {
width: 100%;
height: 100%;
}
}
.row_head {
position: relative;
display: flex;
align-items: center;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 16px;
color: #666666;
.cell {
position: relative;
padding: 8px 0;
cursor: pointer;
margin-right: 30px;
}
.cell:last-child {
margin-right: 0;
}
.active {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 20px;
color: #333333;
}
.active:after {
display: block;
content: "";
height: 3px;
background: #2196F3;
border-radius: 2px;
position: absolute;
left: 0;
right: 0;
bottom: 0;
}
}
.row_content {
padding-top: 15px;
.el_form {
/deep/ .el-form-item {
margin-bottom: 15px;
.el-form-item__label {
line-height: 14px;
padding: 0;
margin-bottom: 10px;
}
.el_select {
width: 100%;
}
}
.area_btn {
width: 88px;
height: 36px;
background: #E8E8E8;
border-radius: 4px;
padding: 0;
}
.clear_link {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 16px;
color: #185EFE;
margin-left: 20px;
}
.tips_info {
color: #666666ff;
font-size: 16px;
font-weight: 400;
margin: 15px 0;
i {
color: #ee3040ff;
font-style: normal;
}
}
.btn_group {
.search_btn {
width: 100%;
height: 40px;
}
}
}
}
}
.bottom_list {
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #fff;
//height: 313px;
z-index: 999;
display: flex;
flex-direction: column;
.head {
flex-shrink: 0;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
padding: 11px 15px;
.left {
font-weight: 400;
font-size: 16px;
color: #333333;
.cred {
color: #EE3040;
}
.btn {
width: 88px;
height: 32px;
background: #9999991a;
border: 1px solid #CCCCCC;
border-radius: 4px;
padding: 0;
box-sizing: border-box;
font-weight: 500;
font-size: 16px;
color: #666666;
// line-height: 32px;
cursor: pointer;
}
.btn:hover {
background: #2196f31a;
color: #2196F3;
border-color: #2196F3;
}
}
.right {
display: flex;
align-items: center;
.link {
width: 48px;
height: 24px;
text-align: center;
line-height: 24px;
font-weight: 400;
font-size: 16px;
color: #999999;
text-decoration: none;
}
.link:hover {
background: #2196f31a;
border-radius: 2px;
color: #2196F3;
}
}
}
.head:after {
position: absolute;
display: block;
content: "";
height: 1px;
background: #D2D2D2;
left: 0;
right: 0;
bottom: 0;
}
.content {
flex: 1;
overflow-y: auto;
}
}
.bottom_list_hide {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
width: 80px;
height: 24px;
border-radius: 4px 4px 0px 0px;
background: #fff;
z-index: 999;
right: 0;
bottom: 0;
cursor: pointer;
box-shadow: 0 -2px 10px 0 #0000001a;
i {
margin-right: 4px;
}
span {
font-weight: 400;
font-size: 14px;
color: #666666;
}
}
.bottom_list_hide:hover {
background: #185efe33;
i,
span {
color: #185EFE;
}
}
\ No newline at end of file
......@@ -47,10 +47,10 @@ export default {
created() {
// 查询
// console.log(store);
let list = store.state.common.provinceList;
if (!list || list.length <= 0) {
this.getList();
}
// let list = store.state.common.provinceList;
// if (!list || list.length <= 0) {
// this.getList();
// }
},
mounted() {
//this.city = this.value;
......@@ -144,24 +144,24 @@ export default {
},
// 查询高德地图的省市区
getList() {
let oParams = {};
oParams.key = CONSTANT.MAP_SERVICE_KEY;
oParams.subdistrict = 3;
oParams.keywords = "中国";
axios({
url: "https://restapi.amap.com/v3/config/district",
params: oParams,
}).then((res) => {
console.log(res);
let obj = res.data;
let { districts } = obj;
let list = districts[0] ? districts[0].districts : [];
console.log(list);
this.cityList = list;
store.commit('SET_AMAP_PROVINCE',list)
});
},
// getList() {
// let oParams = {};
// oParams.key = CONSTANT.MAP_SERVICE_KEY;
// oParams.subdistrict = 3;
// oParams.keywords = "中国";
// axios({
// url: "https://restapi.amap.com/v3/config/district",
// params: oParams,
// }).then((res) => {
// console.log(res);
// let obj = res.data;
// let { districts } = obj;
// let list = districts[0] ? districts[0].districts : [];
// console.log(list);
// this.cityList = list;
// store.commit('SET_AMAP_PROVINCE',list)
// });
// },
},
};
</script>
......
......@@ -61,6 +61,8 @@ const stockDeviceList = () => import(/* webpackChunkName: "stockDeviceList" */ '
const anjiAccount = () => import(/* webpackChunkName: "anjiAccount" */ 'pages/business/anjiAccount.vue');
const tool = () => import(/* webpackChunkName: "tool" */ 'pages/tool/index.vue');
const zoneCar = () => import(/* webpackChunkName: "zoneCar" */ 'pages/monitor/zoneCar.vue')
const routes = [
/* {
path: '*',
......@@ -203,6 +205,12 @@ const routes = [
component: monitor
},
{
path: 'zoneCar',
name: 'zoneCar',
meta: { title: '区域查车' },
component: zoneCar
},
{
path: 'historyLocation',
name: 'historyLocation',
meta: { title: '历史停留' },
......
......@@ -2,13 +2,25 @@ const MAPGEO = {
geocoder: null,
getGeocoder: function () {
return new Promise((resolve) => {
AMap.service('AMap.Geocoder', function () {//回调函数
var geocoder = new AMap.Geocoder({
batch: true
// 高德地图兼容方式,兼容低版本
if(AMap.service){
AMap.service('AMap.Geocoder', function () {//回调函数
var geocoder = new AMap.Geocoder({
batch: true
});
MAPGEO.geocoder = geocoder;
resolve(geocoder);
});
MAPGEO.geocoder = geocoder;
resolve(geocoder);
});
}else{
AMap.plugin('AMap.Geocoder', function () {//回调函数
var geocoder = new AMap.Geocoder({
batch: true
});
MAPGEO.geocoder = geocoder;
resolve(geocoder);
});
}
})
},
transferAddressByGroup(obj, cb) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!