Commit 1248bfdf by zhangquan

ui走查

1 parent e4926684
......@@ -27,11 +27,11 @@
</div>
</div>
<div class="accident-item">
<span class="title">事故地点</span>
<div v-if="showMap" id="mapContainer"></div>
<span class="title">行车速度趋势(Km/h)</span>
<div v-if="showMap" class="eChart-box" id="echarts"></div>
<div class="empty-wrap" v-else>
<img class="empty-img" style="height: 60px;" src="@/images/empty-addr.png" alt="">
<p>未获取到设备定位</p>
<img class="empty-img" style="height: 70px;width: 176px;" src="@/images/empty-speed.png" alt="">
<p>未获取到行车速度趋势</p>
</div>
</div>
</div>
......@@ -45,15 +45,15 @@
</div>
</div>
<div >
<span class="title">行车速度趋势(Km/h)</span>
<div v-if="showMap" class="eChart-box" id="echarts"></div>
<span class="title">事故地点</span>
<div v-if="showMap" id="mapContainer"></div>
<div class="empty-wrap" v-else>
<img class="empty-img" style="height: 142px;width: 338px;" src="@/images/empty-speed.png" alt="">
<p>未获取到行车速度趋势</p>
<img class="empty-img" style="height: 120px;width: 100px;" src="@/images/empty-addr.png" alt="">
<p>未获取到设备定位</p>
</div>
</div>
<GLDialog mode="mid" title="新增跟进记录" :modal-append-to-body="true" :append-to-body="true" :visible.sync="recordVisible" :hasFooter="true" :before-close="handleCancel" @onOk="handleOk" @onCancel="handleCancel">
<glsx-combi-form class="form" ref="recordRef" :formRules="recordRule" labelWidth="154px" defaultWidth="432px" :formObj="recordForm" :formData="recordFormData">
<glsx-combi-form class="record-form" ref="recordRef" :formRules="recordRule" labelWidth="154px" defaultWidth="432px" :formObj="recordForm" :formData="recordFormData">
</glsx-combi-form>
</GLDialog>
......@@ -323,9 +323,10 @@ export default {
}
},
grid: {
top: '3%',
left: '3%',
right: '4%',
bottom: '3%',
right: '8%',
bottom: '1%',
containLabel: true
},
xAxis: {
......@@ -363,7 +364,7 @@ export default {
areaStyle: { // 使用 areaStyle 来设置渐变背景
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: 'rgba(88, 80, 255, 1)'
color: 'rgba(88, 80, 255, 0.5)'
}, // 渐变起始颜色
{
offset: 1,
......@@ -387,13 +388,15 @@ export default {
plugins: ['AMap.Scale'], //需要使用的的插件列表,如比例尺'AMap.Scale'等
}).then((AMap) => {
var map = new AMap.Map('mapContainer', {
zoom: 10, // 初始缩放级别
zoom: 12, // 初始缩放级别
center: startAddr // 初始地图中心点坐标
});
// 添加缩放控件
map.plugin(["AMap.ToolBar"], function() {
var toolbar = new AMap.ToolBar();
var toolbar = new AMap.ToolBar({
position: 'RT'
});
map.addControl(toolbar);
});
......@@ -542,6 +545,13 @@ export default {
}
}
}
.record-form{
/deep/ .el-textarea__inner{
height: 75px;
}
}
.obj-item{
display: inline-block;
margin-bottom: 20px;
......@@ -560,11 +570,11 @@ export default {
}
.eChart-box{
width: 100%;
height: 300px;
height: 187px;
}
#mapContainer {
width: 100%;
height: 104px;
height: 275px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!