Commit 1248bfdf by zhangquan

ui走查

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