|
@@ -692,7 +692,24 @@ export default {
|
|
this.useTime1 = res.data.usedTime;
|
|
this.useTime1 = res.data.usedTime;
|
|
this.orgName1 = res.data.user.orgName;
|
|
this.orgName1 = res.data.user.orgName;
|
|
let a = res.data.report;
|
|
let a = res.data.report;
|
|
- this.userData1 = a;
|
|
|
|
|
|
+
|
|
|
|
+ let listTmp2 =[]
|
|
|
|
+ listTmp2=a.filter((item)=>{
|
|
|
|
+ return item.dimensionName=='总分'||item.dimensionName=='躯体化'||item.dimensionName=='焦虑'||item.dimensionName=='抑郁'
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ let listTmp3 =[]
|
|
|
|
+ listTmp3=a.filter((item)=>{
|
|
|
|
+ return !(item.dimensionName=='躯体化'||item.dimensionName=='焦虑'||item.dimensionName=='抑郁'||item.dimensionName=='总分')
|
|
|
|
+ })
|
|
|
|
+ // this.reportDataAll=listTmp2.concat(listTmp3)
|
|
|
|
+
|
|
|
|
+ // this.userData2 = listTmp2.concat(listTmp3)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ this.userData1 = listTmp2.concat(listTmp3)
|
|
|
|
+ debugger;
|
|
if (this.userData2.length == 0) {
|
|
if (this.userData2.length == 0) {
|
|
this.formatterDataW(a, false, 1);
|
|
this.formatterDataW(a, false, 1);
|
|
} else {
|
|
} else {
|
|
@@ -713,8 +730,28 @@ export default {
|
|
let a = res.data.report.filter((item) => {
|
|
let a = res.data.report.filter((item) => {
|
|
return item.isIcon == "1";
|
|
return item.isIcon == "1";
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ //将设置--四个维度单独取出来
|
|
|
|
+
|
|
|
|
+ // let listTmp1 =[]
|
|
|
|
+ // listTmp1 = a.filter((item) => {
|
|
|
|
+ // return item.dimensionName != "总分";
|
|
|
|
+ // });
|
|
|
|
+
|
|
|
|
+ let listTmp2 =[]
|
|
|
|
+ listTmp2=a.filter((item)=>{
|
|
|
|
+ return item.dimensionName=='总分'||item.dimensionName=='躯体化'||item.dimensionName=='焦虑'||item.dimensionName=='抑郁'
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ let listTmp3 =[]
|
|
|
|
+ listTmp3=a.filter((item)=>{
|
|
|
|
+ return !(item.dimensionName=='躯体化'||item.dimensionName=='焦虑'||item.dimensionName=='抑郁'||item.dimensionName=='总分')
|
|
|
|
+ })
|
|
|
|
+ // this.reportDataAll=listTmp2.concat(listTmp3)
|
|
|
|
+
|
|
|
|
+ this.userData2 = listTmp2.concat(listTmp3)
|
|
|
|
+ // this.userData2 = a;
|
|
|
|
|
|
- this.userData2 = a;
|
|
|
|
if (this.userData1.length == 0) {
|
|
if (this.userData1.length == 0) {
|
|
this.formatterDataW(a, false, 2);
|
|
this.formatterDataW(a, false, 2);
|
|
} else {
|
|
} else {
|