|
@@ -105,15 +105,15 @@
|
|
|
<div class="head-info">
|
|
|
<div class="item total">
|
|
|
<div class="name">总数</div>
|
|
|
- <div class="number">123</div>
|
|
|
+ <div class="number">{{statistics.total}}</div>
|
|
|
</div>
|
|
|
<div class="item normal">
|
|
|
<div class="name">正常</div>
|
|
|
- <div class="number">120</div>
|
|
|
+ <div class="number">{{statistics.normal}}</div>
|
|
|
</div>
|
|
|
<div class="item error">
|
|
|
<div class="name">异常</div>
|
|
|
- <div class="number">3</div>
|
|
|
+ <div class="number">{{statistics.error}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="chart-wrap">
|
|
@@ -133,6 +133,9 @@ import Abnormal from './components/Abnormal.vue'
|
|
|
import WarnChart from './components/WarnChart.vue'
|
|
|
import { getCheckTaskByPage } from '@/api/goaf/task'
|
|
|
import { getGoafBaseInfo } from '@/api/goaf/info'
|
|
|
+import {goaftaskstatis} from '@/api/goaf/check'
|
|
|
+
|
|
|
+import {getTime} from '@/utils'
|
|
|
export default {
|
|
|
name:"check",
|
|
|
components:{
|
|
@@ -153,8 +156,8 @@ import { getGoafBaseInfo } from '@/api/goaf/info'
|
|
|
limit: 10,
|
|
|
status:0,
|
|
|
taskTitle:"",
|
|
|
- expectedStartDate:new Date(),
|
|
|
- expectedEndDate:"",
|
|
|
+ expectedStartDate:getTime(),
|
|
|
+ expectedEndDate:getTime(1),
|
|
|
goafId: '',
|
|
|
goafOrebelt: '',
|
|
|
goafOrebody: '',
|
|
@@ -179,7 +182,12 @@ import { getGoafBaseInfo } from '@/api/goaf/info'
|
|
|
{label:'否',value:0},
|
|
|
],
|
|
|
dataList:[],
|
|
|
- total:0
|
|
|
+ total:0 ,
|
|
|
+ statistics:{
|
|
|
+ total:0,
|
|
|
+ normal:0,
|
|
|
+ error:0
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
@@ -196,12 +204,25 @@ import { getGoafBaseInfo } from '@/api/goaf/info'
|
|
|
this.$refs['warn-chart'].init();
|
|
|
this.getData()
|
|
|
})
|
|
|
+ this.getGoafBaseInfo()
|
|
|
+ this.goaftaskstatis()
|
|
|
+ },
|
|
|
+ getGoafBaseInfo(){
|
|
|
getGoafBaseInfo().then((res) => {
|
|
|
const goafOrebelts = res.data.map(item => item.goafOrebelt)
|
|
|
this.goafOrebelts = [...new Set(goafOrebelts)]
|
|
|
this.goafList = res.data
|
|
|
})
|
|
|
},
|
|
|
+ goaftaskstatis(){
|
|
|
+ goaftaskstatis().then((res)=>{
|
|
|
+ this.statistics={
|
|
|
+ total:res.data.goafTaskCompletedNum,
|
|
|
+ normal:res.data.goafTaskPassNum,
|
|
|
+ error:res.data.goafTaskNopassdNum
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
changeHead(item){
|
|
|
this.activeId=item.id
|
|
|
},
|
|
@@ -230,8 +251,8 @@ import { getGoafBaseInfo } from '@/api/goaf/info'
|
|
|
limit: 10,
|
|
|
status:0,
|
|
|
taskTitle:"",
|
|
|
- expectedStartDate:new Date(),
|
|
|
- expectedEndDate:"",
|
|
|
+ expectedStartDate:getTime(),
|
|
|
+ expectedEndDate:getTime(1),
|
|
|
goafId: '',
|
|
|
goafOrebelt: '',
|
|
|
goafOrebody: '',
|