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

修改

parent 600eccf1
File deleted
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
<script src="./static/hls.js"></script> <script src="./static/hls.js"></script>
<script src="./static/SMap.min.js"></script> <!-- <script src="./static/SMap.min.js"></script> -->
<!-- <script src="./static/esm/SMap.min.js"></script> --> <script src="./static/esm/SMap.min.js"></script>
<script src="./static/Plugins.min.js"></script> <script src="./static/Plugins.min.js"></script>
</html> </html>
...@@ -5,7 +5,7 @@ import Store from '@/store' ...@@ -5,7 +5,7 @@ import Store from '@/store'
const Axios = axios.create({ const Axios = axios.create({
baseURL: api.BASE_URL, baseURL: api.BASE_URL,
timeout: 15000, timeout: 30000,
}) })
Axios.interceptors.request.use(config => { Axios.interceptors.request.use(config => {
// 添加token // 添加token
......
...@@ -142,6 +142,9 @@ export default { ...@@ -142,6 +142,9 @@ export default {
sum.total += +e.total sum.total += +e.total
sum.today += +e.numbers 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_SUM', sum)
commit('SET_DISCOVER_INFO', result) commit('SET_DISCOVER_INFO', result)
}) })
......
...@@ -37,15 +37,26 @@ export default { ...@@ -37,15 +37,26 @@ export default {
orient: 'vertical', orient: 'vertical',
}, },
shape: [ 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: { options: {
legend: { legend: {
top: '15%', top: '15%',
formatter: (name) => { formatter: (name) => {
// const data = this.$store.state.repairRate
// return `${name} ${(data.find(e => e.name === name)).value}件`
const data = this.$store.state.repairRate 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 { ...@@ -135,7 +135,9 @@ export default {
color $color-yellow color $color-yellow
.chart .chart
width 100% width 100%
height 45% height 40%
background url('../../assets/images/chart-bg.png') 100% / 100% no-repeat background-image url('../../assets/images/chart-bg.png')
padding .1rem .03rem .05rem .05rem background-size 100% 100%
background-repeat no-repeat
padding .1rem .03rem .07rem .05rem
</style> </style>
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
this.getDiscoverInfo() this.getDiscoverInfo()
this.getRepairInfo() this.getRepairInfo()
this.getHandleList() this.getHandleList()
}, 1000 * 60 * 5) }, 1000 * 60 * 1)
}, },
init() { init() {
const {map} = this.$refs 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