|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
<template>
|
|
|
|
|
<a-spin :spinning="spinning">
|
|
|
|
|
<div class="summary-total-record-box-style">
|
|
|
|
|
<div class="part-title">{{title}}</div>
|
|
|
|
|
<div class="part-content">
|
|
|
|
@ -34,6 +35,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-spin>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
/*
|
|
|
|
@ -42,6 +44,7 @@
|
|
|
|
|
* */
|
|
|
|
|
import interConfig from './interConfig';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import {Spin} from 'ant-design-vue';
|
|
|
|
|
export default{
|
|
|
|
|
props:{
|
|
|
|
|
type:Number,
|
|
|
|
@ -50,7 +53,8 @@
|
|
|
|
|
data(){
|
|
|
|
|
return {
|
|
|
|
|
title:"",
|
|
|
|
|
totalRecordJson:{}
|
|
|
|
|
totalRecordJson:{},
|
|
|
|
|
spinning:false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch:{
|
|
|
|
@ -106,6 +110,7 @@
|
|
|
|
|
method = interConfig.workSummaryOrgStatistics.method;
|
|
|
|
|
isTestLogin = interConfig.workSummaryOrgStatistics.isTestLogin;
|
|
|
|
|
}
|
|
|
|
|
this.spinning = true;
|
|
|
|
|
this.InterfaceConfig.callInterface([{
|
|
|
|
|
url: url,
|
|
|
|
|
params: param,
|
|
|
|
@ -116,11 +121,19 @@
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
if (result[0].status === 200) {
|
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
this.totalRecordJson = resData.data;
|
|
|
|
|
}else {
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components:{
|
|
|
|
|
ASpin:Spin
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|