Commit 6e2995b9 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改

parent 600eccf1
File deleted
......@@ -16,7 +16,7 @@
<!-- built files will be auto injected -->
</body>
<script src="./static/hls.js"></script>
<script src="./static/SMap.min.js"></script>
<!-- <script src="./static/esm/SMap.min.js"></script> -->
<!-- <script src="./static/SMap.min.js"></script> -->
<script src="./static/esm/SMap.min.js"></script>
<script src="./static/Plugins.min.js"></script>
</html>
......@@ -5,7 +5,7 @@ import Store from '@/store'
const Axios = axios.create({
baseURL: api.BASE_URL,
timeout: 15000,
timeout: 30000,
})
Axios.interceptors.request.use(config => {
// 添加token
......
......@@ -142,6 +142,9 @@ export default {
sum.total += +e.total
sum.today += +e.numbers
})
// if (result.today > 100) {
// console.info(moment().format('YYYY-MM-DD HH:mm:ss'), result.today, res)
// }
commit('SET_DISCOVER_SUM', sum)
commit('SET_DISCOVER_INFO', result)
})
......
......@@ -37,15 +37,26 @@ export default {
orient: 'vertical',
},
shape: [
{type: 'pie', radius: [10 * Number((screen.height / 800).toFixed(1)), 50 * Number((screen.height / 800).toFixed(1))], roseType: 'radius', center: ['32%', '50%']}
{type: 'pie', radius: [30 * Number((screen.height / 800).toFixed(1)), 45 * Number((screen.height / 800).toFixed(1))], center: ['25%', '50%']}
]
},
options: {
legend: {
top: '15%',
formatter: (name) => {
// const data = this.$store.state.repairRate
// return `${name} ${(data.find(e => e.name === name)).value}件`
const data = this.$store.state.repairRate
return `${name} ${(data.find(e => e.name === name)).value}件`
let total = 0
let tarValue
for (let i = 0; i < data.length; i++) {
total += data[i].value
if (data[i].name === name) {
tarValue = data[i].value
}
}
const percent = (tarValue / total * 100).toFixed(2)
return `${name} ${percent}%`
}
}
}
......
......@@ -135,7 +135,9 @@ export default {
color $color-yellow
.chart
width 100%
height 45%
background url('../../assets/images/chart-bg.png') 100% / 100% no-repeat
padding .1rem .03rem .05rem .05rem
height 40%
background-image url('../../assets/images/chart-bg.png')
background-size 100% 100%
background-repeat no-repeat
padding .1rem .03rem .07rem .05rem
</style>
......@@ -203,7 +203,7 @@ export default {
this.getDiscoverInfo()
this.getRepairInfo()
this.getHandleList()
}, 1000 * 60 * 5)
}, 1000 * 60 * 1)
},
init() {
const {map} = this.$refs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment