From 42faf991054ee90e823f8b48897aeef0a332cc5c Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期三, 11 五月 2022 14:53:54 +0800
Subject: [PATCH] lct
---
src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue | 63 ++++++++++++++++++++++++++++++-
1 files changed, 60 insertions(+), 3 deletions(-)
diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue
index db27c8a..1793ff9 100644
--- a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue
+++ b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue
@@ -1,11 +1,68 @@
<template>
-
+ <div id="todayUnusual" style="width:90%;height:380px;margin: 0 auto;">
+ </div>
</template>
<script>
- export default {
- name: "index"
+
+export default {
+ name: 'index',
+ data(){
+ return{
+ numData:[],
+ timeData:[],
+ }
+ },
+ mounted() {
+ this.drawTodayLine()
+ },
+ methods:{
+ async drawTodayLine(){
+ this.myChart = this.$echarts.init(document.getElementById('todayUnusual'))
+ this.myChart.setOption({
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ top: '5%',
+ left: 'center'
+ },
+ series: [
+ {
+ name: 'Access From',
+ type: 'pie',
+ radius: ['40%', '70%'],
+ avoidLabelOverlap: false,
+ itemStyle: {
+ borderRadius: 10,
+ borderColor: '#fff',
+ borderWidth: 2
+ },
+ label: {
+ show: false,
+ position: 'center'
+ },
+ emphasis: {
+ label: {
+ show: true,
+ fontSize: '40',
+ fontWeight: 'bold'
+ }
+ },
+ color:['#91cc75','#ee6666','#73c0de','#3ba272','#fc8452','#9a60b4'],
+ labelLine: {
+ show: false
+ },
+ data: [
+ { value: 1048, name: '今日完成' },
+ { value: 735, name: '今日异常' },
+ ]
+ }
+ ]
+ })
+ }
}
+}
</script>
<style scoped>
--
Gitblit v1.9.2