|
@@ -14,7 +14,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {daysX, daysY} from "@/commomUse";
|
|
|
+import {daysX,getYearAnalysis, daysY} from "@/commomUse";
|
|
|
import {mapMutations, mapState} from 'vuex';
|
|
|
import {setAnalysisTotalNotice} from "@/echarts/option";
|
|
|
import * as echarts from "echarts";
|
|
@@ -58,6 +58,13 @@ export default {
|
|
|
},
|
|
|
basicShow(){
|
|
|
this.loading=true;
|
|
|
+ let searchTime = '';
|
|
|
+ if(this.analysisObject['analysisTimer'] =='30'){
|
|
|
+ searchTime = '2'
|
|
|
+ }else if(this.analysisObject['analysisTimer'] =='365'){
|
|
|
+ searchTime = '1'
|
|
|
+ }
|
|
|
+
|
|
|
this.$request({
|
|
|
url:'/YWTBApi/queryTimingRemindInfo',
|
|
|
method:'post',
|
|
@@ -65,27 +72,49 @@ export default {
|
|
|
'TYPE':this.analysisObject['analysisThirdLevel'],
|
|
|
"DATA_TYPE":this.analysisObject['analysisFirstLevel'],
|
|
|
"ORGANIZATION":this.analysisObject['analysisSecondLevel'],
|
|
|
+ "DATE_TYPE":searchTime,
|
|
|
}
|
|
|
}).then(response => {
|
|
|
let dataArr = response.data.msg[0].Rows;
|
|
|
this.basicList = dataArr;
|
|
|
- this.dataX=daysX(30);
|
|
|
- this.dataY_COUNT_SD=daysY(30);
|
|
|
- this.dataY_COUNT_ST=daysY(30);
|
|
|
- this.dataY_COUNT_BD=daysY(30);
|
|
|
- this.dataY_COUNT_BT=daysY(30);
|
|
|
+ if(searchTime =='2'){
|
|
|
+ this.dataX=daysX(30);
|
|
|
+ this.dataY_COUNT_SD=daysY(30);
|
|
|
+ this.dataY_COUNT_ST=daysY(30);
|
|
|
+ this.dataY_COUNT_BD=daysY(30);
|
|
|
+ this.dataY_COUNT_BT=daysY(30);
|
|
|
+ for(let j=0;j<this.dataX.length;j++){
|
|
|
+ for(let i=0;i<dataArr.length;i++){
|
|
|
+ if(this.dataX[j] ==dataArr[i].DATE_TIME){
|
|
|
+ this.dataY_COUNT_SD[j]=dataArr[i].SD!=undefined?dataArr[i].SD.toString():0;
|
|
|
+ this.dataY_COUNT_ST[j]=dataArr[i].ST!=undefined?dataArr[i].ST.toString():0;
|
|
|
+ this.dataY_COUNT_BD[j]=dataArr[i].BD!=undefined?dataArr[i].BD.toString():0;
|
|
|
+ this.dataY_COUNT_BT[j]=dataArr[i].BT!=undefined?dataArr[i].BT.toString():0;
|
|
|
+ console.log(dataArr[i].SD!=undefined?dataArr[i].SD:0,dataArr[i].ST!=undefined?dataArr[i].ST:0,dataArr[i].BD!=undefined?dataArr[i].BD:0,dataArr[i].BT!=undefined?dataArr[i].BT:0)
|
|
|
+ console.log(dataArr[i],this.dataY_COUNT_SD[j],this.dataY_COUNT_ST[j],this.dataY_COUNT_BD[j],this.dataY_COUNT_BT[j])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.dataX=getYearAnalysis();
|
|
|
+ this.dataY_COUNT_SD=daysY(12);
|
|
|
+ this.dataY_COUNT_ST=daysY(12);
|
|
|
+ this.dataY_COUNT_BD=daysY(12);
|
|
|
+ this.dataY_COUNT_BT=daysY(12);
|
|
|
for(let j=0;j<this.dataX.length;j++){
|
|
|
for(let i=0;i<dataArr.length;i++){
|
|
|
- if(this.dataX[j] ==dataArr[i].DATE_TIME){
|
|
|
- this.dataY_COUNT_SD[j]=dataArr[i].SD!=undefined?dataArr[i].SD.toString():0;
|
|
|
- this.dataY_COUNT_ST[j]=dataArr[i].ST!=undefined?dataArr[i].ST.toString():0;
|
|
|
- this.dataY_COUNT_BD[j]=dataArr[i].BD!=undefined?dataArr[i].BD.toString():0;
|
|
|
- this.dataY_COUNT_BT[j]=dataArr[i].BT!=undefined?dataArr[i].BT.toString():0;
|
|
|
- console.log(dataArr[i].SD!=undefined?dataArr[i].SD:0,dataArr[i].ST!=undefined?dataArr[i].ST:0,dataArr[i].BD!=undefined?dataArr[i].BD:0,dataArr[i].BT!=undefined?dataArr[i].BT:0)
|
|
|
- console.log(dataArr[i],this.dataY_COUNT_SD[j],this.dataY_COUNT_ST[j],this.dataY_COUNT_BD[j],this.dataY_COUNT_BT[j])
|
|
|
+ if(this.dataX[j] ==dataArr[i].DATE_TIME){
|
|
|
+ this.dataY_COUNT_SD[j]=dataArr[i].SD!=undefined?dataArr[i].SD.toString():0;
|
|
|
+ this.dataY_COUNT_ST[j]=dataArr[i].ST!=undefined?dataArr[i].ST.toString():0;
|
|
|
+ this.dataY_COUNT_BD[j]=dataArr[i].BD!=undefined?dataArr[i].BD.toString():0;
|
|
|
+ this.dataY_COUNT_BT[j]=dataArr[i].BT!=undefined?dataArr[i].BT.toString():0;
|
|
|
+ console.log(dataArr[i].SD!=undefined?dataArr[i].SD:0,dataArr[i].ST!=undefined?dataArr[i].ST:0,dataArr[i].BD!=undefined?dataArr[i].BD:0,dataArr[i].BT!=undefined?dataArr[i].BT:0)
|
|
|
+ console.log(dataArr[i],this.dataY_COUNT_SD[j],this.dataY_COUNT_ST[j],this.dataY_COUNT_BD[j],this.dataY_COUNT_BT[j])
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
this.$nextTick(() => {
|
|
|
this.loading=false;
|
|
|
let ele = this.$refs.echarts
|
|
@@ -118,6 +147,13 @@ export default {
|
|
|
},
|
|
|
itemShow(){
|
|
|
this.loading=true;
|
|
|
+ let searchTime = '';
|
|
|
+ if(this.analysisObject['analysisTimer'] =='30'){
|
|
|
+ searchTime = '2'
|
|
|
+ }else if(this.analysisObject['analysisTimer'] =='365'){
|
|
|
+ searchTime = '1'
|
|
|
+ }
|
|
|
+
|
|
|
this.$request({
|
|
|
url:'/YWTBApi/queryTimingRemindInfo',
|
|
|
method:'post',
|
|
@@ -126,25 +162,45 @@ export default {
|
|
|
"DATA_TYPE":this.analysisObject['analysisFirstLevel'],
|
|
|
"ORGANIZATION":this.analysisObject['analysisSecondLevel'],
|
|
|
"MATTER_CODE":this.analysisObject['analysisForthLevel'],
|
|
|
+ "DATE_TYPE":searchTime,
|
|
|
}
|
|
|
}).then(response => {
|
|
|
let dataArr = response.data.msg[0].Rows;
|
|
|
this.basicList = dataArr;
|
|
|
- this.dataX=daysX(30);
|
|
|
- this.dataY_COUNT_SD=daysY(30);
|
|
|
- this.dataY_COUNT_ST=daysY(30);
|
|
|
- this.dataY_COUNT_BD=daysY(30);
|
|
|
- this.dataY_COUNT_BT=daysY(30);
|
|
|
- for(let i=0;i<dataArr.length;i++){
|
|
|
- for(let j=0;j<this.dataX.length;j++){
|
|
|
- if(this.dataX[j] ==dataArr[i].DATE_TIME){
|
|
|
- this.dataY_COUNT_SD[j]=dataArr[i].SD!=undefined?dataArr[i].SD:0;
|
|
|
- this.dataY_COUNT_ST[j]=dataArr[i].ST!=undefined?dataArr[i].ST:0;
|
|
|
- this.dataY_COUNT_BD[j]=dataArr[i].BD!=undefined?dataArr[i].BD:0;
|
|
|
- this.dataY_COUNT_BT[j]=dataArr[i].BT!=undefined?dataArr[i].BT:0;
|
|
|
+ if(searchTime =='2'){
|
|
|
+ this.dataX=daysX(30);
|
|
|
+ this.dataY_COUNT_SD=daysY(30);
|
|
|
+ this.dataY_COUNT_ST=daysY(30);
|
|
|
+ this.dataY_COUNT_BD=daysY(30);
|
|
|
+ this.dataY_COUNT_BT=daysY(30);
|
|
|
+ for(let i=0;i<dataArr.length;i++){
|
|
|
+ for(let j=0;j<this.dataX.length;j++){
|
|
|
+ if(this.dataX[j] ==dataArr[i].DATE_TIME){
|
|
|
+ this.dataY_COUNT_SD[j]=dataArr[i].SD!=undefined?dataArr[i].SD:0;
|
|
|
+ this.dataY_COUNT_ST[j]=dataArr[i].ST!=undefined?dataArr[i].ST:0;
|
|
|
+ this.dataY_COUNT_BD[j]=dataArr[i].BD!=undefined?dataArr[i].BD:0;
|
|
|
+ this.dataY_COUNT_BT[j]=dataArr[i].BT!=undefined?dataArr[i].BT:0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.dataX=getYearAnalysis();
|
|
|
+ this.dataY_COUNT_SD=daysY(12);
|
|
|
+ this.dataY_COUNT_ST=daysY(12);
|
|
|
+ this.dataY_COUNT_BD=daysY(12);
|
|
|
+ this.dataY_COUNT_BT=daysY(12);
|
|
|
+ for(let i=0;i<dataArr.length;i++){
|
|
|
+ for(let j=0;j<this.dataX.length;j++){
|
|
|
+ if(this.dataX[j] ==dataArr[i].DATE_TIME){
|
|
|
+ this.dataY_COUNT_SD[j]=dataArr[i].SD!=undefined?dataArr[i].SD:0;
|
|
|
+ this.dataY_COUNT_ST[j]=dataArr[i].ST!=undefined?dataArr[i].ST:0;
|
|
|
+ this.dataY_COUNT_BD[j]=dataArr[i].BD!=undefined?dataArr[i].BD:0;
|
|
|
+ this.dataY_COUNT_BT[j]=dataArr[i].BT!=undefined?dataArr[i].BT:0;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
this.$nextTick(() => {
|
|
|
this.loading=false;
|
|
|
let ele = this.$refs.echarts
|
|
@@ -154,6 +210,12 @@ export default {
|
|
|
},
|
|
|
situationShow(){
|
|
|
this.loading=true;
|
|
|
+ let searchTime = '';
|
|
|
+ if(this.analysisObject['analysisTimer'] =='30'){
|
|
|
+ searchTime = '2'
|
|
|
+ }else if(this.analysisObject['analysisTimer'] =='365'){
|
|
|
+ searchTime = '1'
|
|
|
+ }
|
|
|
this.$request({
|
|
|
url:'/YWTBApi/queryTimingRemindInfo',
|
|
|
method:'post',
|
|
@@ -162,25 +224,46 @@ export default {
|
|
|
"DATA_TYPE":this.analysisObject['analysisFirstLevel'],
|
|
|
"ORGANIZATION":this.analysisObject['analysisSecondLevel'],
|
|
|
"SITUATION_CODE":this.analysisObject['analysisFifthLevel'],
|
|
|
+ "DATE_TYPE":searchTime,
|
|
|
}
|
|
|
}).then(response => {
|
|
|
let dataArr = response.data.msg[0].Rows;
|
|
|
this.basicList = dataArr;
|
|
|
- this.dataX=daysX(30);
|
|
|
- this.dataY_COUNT_SD=daysY(30);
|
|
|
- this.dataY_COUNT_ST=daysY(30);
|
|
|
- this.dataY_COUNT_BD=daysY(30);
|
|
|
- this.dataY_COUNT_BT=daysY(30);
|
|
|
- for(let i=0;i<dataArr.length;i++){
|
|
|
- for(let j=0;j<this.dataX.length;j++){
|
|
|
- if(this.dataX[j] ==dataArr[i].DATE_TIME){
|
|
|
- this.dataY_COUNT_SD[j]=dataArr[i].SD!=undefined?dataArr[i].SD:0;
|
|
|
- this.dataY_COUNT_ST[j]=dataArr[i].ST!=undefined?dataArr[i].ST:0;
|
|
|
- this.dataY_COUNT_BD[j]=dataArr[i].BD!=undefined?dataArr[i].BD:0;
|
|
|
- this.dataY_COUNT_BT[j]=dataArr[i].BT!=undefined?dataArr[i].BT:0;
|
|
|
+ if(searchTime =='2'){
|
|
|
+ this.dataX=daysX(30);
|
|
|
+ this.dataY_COUNT_SD=daysY(30);
|
|
|
+ this.dataY_COUNT_ST=daysY(30);
|
|
|
+ this.dataY_COUNT_BD=daysY(30);
|
|
|
+ this.dataY_COUNT_BT=daysY(30);
|
|
|
+ for(let i=0;i<dataArr.length;i++){
|
|
|
+ for(let j=0;j<this.dataX.length;j++){
|
|
|
+ if(this.dataX[j] ==dataArr[i].DATE_TIME){
|
|
|
+ this.dataY_COUNT_SD[j]=dataArr[i].SD!=undefined?dataArr[i].SD:0;
|
|
|
+ this.dataY_COUNT_ST[j]=dataArr[i].ST!=undefined?dataArr[i].ST:0;
|
|
|
+ this.dataY_COUNT_BD[j]=dataArr[i].BD!=undefined?dataArr[i].BD:0;
|
|
|
+ this.dataY_COUNT_BT[j]=dataArr[i].BT!=undefined?dataArr[i].BT:0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.dataX=getYearAnalysis();
|
|
|
+ this.dataY_COUNT_SD=daysY(12);
|
|
|
+ this.dataY_COUNT_ST=daysY(12);
|
|
|
+ this.dataY_COUNT_BD=daysY(12);
|
|
|
+ this.dataY_COUNT_BT=daysY(12);
|
|
|
+ for(let i=0;i<dataArr.length;i++){
|
|
|
+ for(let j=0;j<this.dataX.length;j++){
|
|
|
+ if(this.dataX[j] ==dataArr[i].DATE_TIME){
|
|
|
+ this.dataY_COUNT_SD[j]=dataArr[i].SD!=undefined?dataArr[i].SD:0;
|
|
|
+ this.dataY_COUNT_ST[j]=dataArr[i].ST!=undefined?dataArr[i].ST:0;
|
|
|
+ this.dataY_COUNT_BD[j]=dataArr[i].BD!=undefined?dataArr[i].BD:0;
|
|
|
+ this.dataY_COUNT_BT[j]=dataArr[i].BT!=undefined?dataArr[i].BT:0;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
this.$nextTick(() => {
|
|
|
this.loading=false;
|
|
|
let ele = this.$refs.echarts
|