From 5fe1f049abf28d8306ec6b874cbf333d18c7cc48 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=88=98=E7=AB=8B=E6=A0=87?= <2658037827@qq.com>
Date: Fri, 8 Dec 2023 15:02:50 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../overview/components/ResourceInfo.vue | 2 +-
.../components/ResourceScheduling.vue | 2 +-
.../dataBoard/overview/components/jdtphx.vue | 8 +-
.../dataBoard/overview/components/rfsjtj.vue | 40 +++++----
src/views/dataBoard/overview/index.vue | 9 +-
src/views/dataBoard/renfang/cpts/jmgl.vue | 1 +
src/views/dataBoard/renfang/index.vue | 5 +-
.../dataBoard/satisfactionEval/index.vue | 90 +++++++++++--------
.../modules/SelfInspectionScore/index.vue | 19 ++--
9 files changed, 100 insertions(+), 76 deletions(-)
diff --git a/src/views/dataBoard/overview/components/ResourceInfo.vue b/src/views/dataBoard/overview/components/ResourceInfo.vue
index 8d6022b11..7903b672b 100644
--- a/src/views/dataBoard/overview/components/ResourceInfo.vue
+++ b/src/views/dataBoard/overview/components/ResourceInfo.vue
@@ -104,7 +104,7 @@
兴趣爱好:
diff --git a/src/views/dataBoard/overview/components/ResourceScheduling.vue b/src/views/dataBoard/overview/components/ResourceScheduling.vue
index ed8df1449..45e8c95fc 100644
--- a/src/views/dataBoard/overview/components/ResourceScheduling.vue
+++ b/src/views/dataBoard/overview/components/ResourceScheduling.vue
@@ -224,7 +224,7 @@ export default {
this.peopleType === '4' ? 3 :
this.peopleType === 'staffGrid' ? 4 :
this.peopleType === 'publicWelfareNum' ? 5 : ''
- this.$refs.ResourceInfo.open(type === 3 ? data.agencyId : data.id, type, data)
+ this.$refs.ResourceInfo.open(type === 3 ? data.orgId : data.id, type, data)
},
/* handleViews() {
this.$refs.ResourceInfo.open()
diff --git a/src/views/dataBoard/overview/components/jdtphx.vue b/src/views/dataBoard/overview/components/jdtphx.vue
index faa81bfb8..6912c9993 100644
--- a/src/views/dataBoard/overview/components/jdtphx.vue
+++ b/src/views/dataBoard/overview/components/jdtphx.vue
@@ -169,10 +169,10 @@ export default {
orgLevel
)
.then(({ data: { data } }) => {
- this.categoryList = data.categoryList;
- this.houseList = data.houseList;
- this.notSatisfactionList = data.notSatisfactionList;
- this.riskList = data.riskList;
+ this.categoryList = data?data.categoryList:[];
+ this.houseList = data?data.houseList:[];
+ this.notSatisfactionList = data?data.notSatisfactionList:[];
+ this.riskList = data?data.riskList:[];
});
},
},
diff --git a/src/views/dataBoard/overview/components/rfsjtj.vue b/src/views/dataBoard/overview/components/rfsjtj.vue
index 30cf452ef..e99436a52 100644
--- a/src/views/dataBoard/overview/components/rfsjtj.vue
+++ b/src/views/dataBoard/overview/components/rfsjtj.vue
@@ -98,27 +98,29 @@ export default {
}
return res;
},
- getData({ orgId, orgLevel }) {
+ getData({orgId, orgLevel}) {
clearInterval(timer);
this.$http
- .get(
- "/actual/base/streetOverview/residentHouseGroup?orgId=" +
- orgId +
- "&level=" +
- orgLevel
- )
- .then(({ data: { data } }) => {
- data.forEach((item) => {
- if (item.type === "house") {
- this.house = item;
- }
- if (item.type === "resident") {
- this.resident = item;
+ .get(
+ "/actual/base/streetOverview/residentHouseGroup?orgId=" +
+ orgId +
+ "&level=" +
+ orgLevel
+ )
+ .then(({data: {data}}) => {
+ if (data) {
+ data.forEach((item) => {
+ if (item.type === "house") {
+ this.house = item;
+ }
+ if (item.type === "resident") {
+ this.resident = item;
+ }
+ });
}
});
- });
timer = setInterval(() => {
- this.getData({ orgId, level });
+ this.getData({orgId, orgLevel});
}, 1000 * 60);
},
},
@@ -126,7 +128,7 @@ export default {
diff --git a/src/views/dataBoard/overview/index.vue b/src/views/dataBoard/overview/index.vue
index 932a29498..dddecaf5c 100644
--- a/src/views/dataBoard/overview/index.vue
+++ b/src/views/dataBoard/overview/index.vue
@@ -25,7 +25,6 @@
-
+
diff --git a/src/views/dataBoard/satisfactionEval/index.vue b/src/views/dataBoard/satisfactionEval/index.vue
index 40f32ac00..4710a3dcf 100644
--- a/src/views/dataBoard/satisfactionEval/index.vue
+++ b/src/views/dataBoard/satisfactionEval/index.vue
@@ -2,52 +2,56 @@
-
-
+
+
@@ -89,7 +93,14 @@ export default {
index: 0,
type: 0,
time: 0,
- scoreMonth: ""
+ scoreMonth: this.$moment().add(-1, 'month').startOf("month").format("YYYY-MM-DD"),
+ pickerOptions: {
+ disabledDate: (time) => {
+ let month = this.$moment().add(-1, 'month').startOf("month").format("YYYY-MM-DD")
+ // return time.getTime() > Date.now()
+ return time.getTime() > new Date(month).getTime();
+ }
+ }
}
},
methods: {
@@ -102,38 +113,39 @@ export default {
},
};
-
+
-
diff --git a/src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue b/src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue
index 3952a97b7..ed2707422 100644
--- a/src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue
+++ b/src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue
@@ -1,33 +1,33 @@
-
-
+
+
12345热线投诉
人数
-
+
上级满意度调查
不满意人数
-
+
社区自查不满意
人数
-
+