From 2052141357570653d3f7122dfc93604b4c674624 Mon Sep 17 00:00:00 2001 From: lct123456 <lucht> Date: 星期三, 20 四月 2022 21:03:14 +0800 Subject: [PATCH] 微改 --- src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionComplete/index.vue | 42 +++++++++++++++++++++++++++++++++++++++--- src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue | 1 + src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue | 2 +- src/views/doublePreventAction/hiddenDanger/inspectionTask/index.vue | 2 +- src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue | 2 +- 5 files changed, 43 insertions(+), 6 deletions(-) diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionComplete/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionComplete/index.vue index db27c8a..8c79628 100644 --- a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionComplete/index.vue +++ b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionComplete/index.vue @@ -1,11 +1,47 @@ <template> - + <div id="inspectionComplete" style="width:90%;height:360px;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.timeData = [1,2,3,4,] + this.numData = [2,5,7,9] + let myChart = this.$echarts.init(document.getElementById('inspectionComplete')) + myChart.setOption({ + xAxis: { + type: 'category', + boundaryGap: false, + data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] + }, + yAxis: { + type: 'value' + }, + color:'#5470c6', + series: [ + { + data: [820, 932, 901, 934, 1290, 1330, 1320], + type: 'line', + smooth: true + } + ] + }) + } } +} </script> <style scoped> diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue index e0e469c..ab48306 100644 --- a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue +++ b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue @@ -27,6 +27,7 @@ left: 'center', top: '84%', }, + color:'#fac858', xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue index 711d517..1793ff9 100644 --- a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue +++ b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/todayUnusual/index.vue @@ -49,7 +49,7 @@ fontWeight: 'bold' } }, - color:['#5470c6', '#91cc75', '#fac858','#ee6666','#73c0de','#3ba272','#fc8452','#9a60b4'], + color:['#91cc75','#ee6666','#73c0de','#3ba272','#fc8452','#9a60b4'], labelLine: { show: false }, diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue b/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue index 777f7d5..3097fa0 100644 --- a/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue +++ b/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue @@ -15,7 +15,7 @@ > <el-table-column label="序号" type="index" width="150" align="center"> </el-table-column> - <el-table-column label="管控方式描述" prop="content" align="center"> + <el-table-column label="隐患排查内容" prop="content" align="center"> </el-table-column> <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width"> <template slot-scope="scope"> diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionTask/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionTask/index.vue index 943ddb6..41fb719 100644 --- a/src/views/doublePreventAction/hiddenDanger/inspectionTask/index.vue +++ b/src/views/doublePreventAction/hiddenDanger/inspectionTask/index.vue @@ -262,7 +262,7 @@ <div class="inspectionTask_point"> <el-tabs class="active" v-model="activeName"> - <el-tab-pane label="巡检点信息" name="inspectionPoint"> + <el-tab-pane label="检查项信息" name="inspectionPoint"> <inspection-point @giveToForm="receiveToForm" ref="inspectionPoint" :title="title" :inspectionTaskForm="inspectionTaskForm"></inspection-point> </el-tab-pane> </el-tabs> -- Gitblit v1.9.2