Commit bcfc268e by zhangquan

优化

1 parent 17a3b180
......@@ -102,7 +102,7 @@
<el-table-column label="报警时间" prop="alarmBeginTime"></el-table-column>
</el-table>
</div>
<div>
<div v-if="showAddress">
<div class="table-title">地址预测</div>
<el-table class="table" :data="addressTableData" border size="small" v-loading="loading" style="width: 100%">
<el-table-column label="分析行为" prop="action"></el-table-column>
......@@ -163,6 +163,7 @@ export default {
disTableData: [],
sitTableData: [],
addressTableData: [],
showAddress: false,
dosageInfo: {},
showDosage: true,
analyzeInfoList: ['状态分析', '预警分析', '用量分析'],
......@@ -394,6 +395,7 @@ export default {
let homeItem = { action: '预测家庭地址', result: '--' }
let workItem = { action: '预测工作地址', result: '--' }
if (res && res.data) {
this.showAddress = res.data.homeAddress || res.data.workAddress
homeItem.result = res.data.homeAddress || '--'
workItem.result = res.data.workAddress || '--'
}
......@@ -534,6 +536,7 @@ export default {
max: 7,
min: 0,
splitNumber: 1,
interval: 1,
splitLine: {
lineStyle: {
type: 'dashed' //虚线
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!