Explorar o código

feat 增加建筑

anxiaoxia %!s(int64=3) %!d(string=hai) anos
pai
achega
379697edee
Modificáronse 1 ficheiros con 20 adicións e 14 borrados
  1. 20 14
      src/views/ReportForm/weekReport/reportDetail.vue

+ 20 - 14
src/views/ReportForm/weekReport/reportDetail.vue

@@ -12,6 +12,7 @@
             <div class="page_header">
                 <p>{{projectName}}环境管理周报告</p>
                 <p>
+                    <span style="font-size:16px;display:inherit;text-align:right;padding-top:10px;margin-right:20px">{{buildingName}}</span>
                     <span style="font-size:16px;display:inherit;text-align:right;padding-top:10px">
                         总{{totalReportCount}}期,{{moment(this.endDate).format("YYYY")}}年第{{yearReportNum}}期
                         <span style="margin:0 20px;font-size:16px"> {{this.startDate&&moment(this.startDate).format("YYYY.MM.DD")}}-{{this.endDate&&moment(this.endDate).format("YYYY.MM.DD")}}</span>
@@ -1033,6 +1034,7 @@
             <div class="page_header">
                 <p>{{projectName}}环境管理周报告</p>
                 <p>
+                    <span style="font-size:16px;display:inherit;text-align:right;padding-top:10px;margin-right:20px">{{buildingName}}</span>
                     <span style="font-size:16px;display:inherit;text-align:right;padding-top:10px">
                         总{{totalReportCount}}期,{{moment(this.endDate).format("YYYY")}}年第{{yearReportNum}}期
                         <span style="margin:0 20px;font-size:16px"> {{this.startDate&&moment(this.startDate).format("YYYY.MM.DD")}}-{{this.endDate&&moment(this.endDate).format("YYYY.MM.DD")}}</span>
@@ -2026,18 +2028,6 @@ import {    queryWeekday, querySubstandardList, queryDay, querysectionSpace, sav
     querysectionFloor, queryStandardList, queryWeekSpace, queryUserActivity, queryTempRate, explainSave,
     querySeason, queryCustormList, queryEmail, queryPm2d5, queryWeekNumberHttp} from "@/api/ReportForm/ReportForm.js";
 export default {
-    props: {
-        // comstartDate:{
-        //     default:'',
-        //     type:String
-        // },
-
-        // comendDate:{
-        //     default:'',
-        //     type:String
-        // },
-        // projectName:String
-    },
     data() {
         return {
             totalReportCount: '',
@@ -2222,13 +2212,14 @@ export default {
     },
     components: { lineChart, barChart, chartLegend, Tabs, ringChart, envSurvey, userAdjust },
     beforeMount() {
-        // TODO 数据路由传参
         // console.log(this.$route,"---------------------------------------")
         // http://192.168.0.24:9906/weekpdf?startDate=20210118&endDate=20210124&projectName=你好&projectId=Pj1101080259
         this.comstartDate = this.$route.query.startDate;
         this.comendDate = this.$route.query.endDate;
         this.projectName = this.$route.query.projectName;
         this.projectId = this.$route.query.projectId;
+        this.buildingId = this.$route.query.buildingId;
+        this.buildingName = this.$route.query.buildingName;
         this.dataChange([this.comstartDate, this.comendDate])
     },
     async mounted() {
@@ -2279,6 +2270,7 @@ export default {
         getPmdate() {
             const getParams = {
                 "projectId": this.projectId,//项目id
+                 buildingId: this.buildingId,
                 "startDate": this.startDate,
                 "endDate": this.endDate,
             }
@@ -2305,6 +2297,7 @@ export default {
             let postParams = {
                 "id": this.remarkId[this.envType],
                 "projectId": this.projectId,//项目id
+                 buildingId: this.buildingId,
                 "startDate": this.startDate,
                 "endDate": this.endDate,
                 "year": this.startDate.slice(0, 4),
@@ -2335,10 +2328,10 @@ export default {
             let postParams = {
                 "criteria": {
                     "projectId": this.projectId,
+                     buildingId: this.buildingId,
                     "startDate": this.startDate
                 }
             }
-            // console.log(queryCustormList,77777)
             queryCustormList({ postParams }).then(res => {
                 this.custormList = res.data || [];
                 const weekType = {
@@ -2359,6 +2352,7 @@ export default {
         getWeekNumber() {
             let getParams = {
                 projectId: this.projectId,
+                 buildingId: this.buildingId,
                 startDate: this.startDate
             }
             queryWeekNumberHttp({ getParams }).then(res => {
@@ -2370,6 +2364,7 @@ export default {
         async getSeasontype(falg = true) {
             let getParams = {
                 projectId: this.projectId,
+                 buildingId: this.buildingId,
                 dateTiime: falg ? this.startDate : this.endDate
             }
             await querySeason({ getParams }).then(res => {
@@ -2379,6 +2374,7 @@ export default {
         tableSave(e, type) {
             let getParams = {
                 projectId: this.projectId,
+                 buildingId: this.buildingId,
                 spaceId: e.spaceId,
                 startDate: this.startDate,
             }
@@ -2404,6 +2400,7 @@ export default {
             let postParams = {
                 "criteria": {
                     "projectId": this.projectId,
+                     buildingId: this.buildingId,
                     "startDate": this.startDate,
                     "endDate": this.endDate,
                     // "type":value,//0 内外区 1 朝向 2 楼层 3 新风机组 4 温度 5 湿度 6 co2 7 pm2.5 8 甲醛
@@ -2528,6 +2525,7 @@ export default {
             let postParams = {
                 "criteria": {
                     "projectId": this.projectId,
+                     buildingId: this.buildingId,
                     "startDate": this.startDate
                 }
             };
@@ -2539,6 +2537,7 @@ export default {
             let postParams = {
                 "criteria": {
                     "projectId": this.projectId,
+                     buildingId: this.buildingId,
                     starDate: this.startDate,
                     endDate: this.endDate,
                     // "createTime":{
@@ -2556,6 +2555,7 @@ export default {
             let postParams = {
                 "criteria": {
                     "projectId": this.projectId,
+                     buildingId: this.buildingId,
                     "date": {
                         "$gte": this.startDate,
                         "$lte": this.endDate
@@ -2581,6 +2581,7 @@ export default {
             let postParams = {
                 "criteria": {
                     "projectId": this.projectId,
+                    buildingId: this.buildingId,
                     "date": {
                         "$gte": start,
                         "$lte": end
@@ -2604,6 +2605,7 @@ export default {
             let postParams = {
                 "criteria": {
                     "projectId": this.projectId,
+                     buildingId: this.buildingId,
                     "date": {
                         "$gte": this.startDate,
                         "$lte": this.endDate
@@ -2713,6 +2715,7 @@ export default {
                 "criteria": {
                     "projectId": this.projectId,
                     "startDate": this.startDate,
+                     buildingId: this.buildingId,
                 },
                 page: 1,
                 size: 10,
@@ -2871,6 +2874,7 @@ export default {
             let postParams = {
                 "criteria": {
                     "projectId": this.projectId,
+                     buildingId: this.buildingId,
                 },
                 "orders": [
                     {
@@ -2895,6 +2899,7 @@ export default {
             let postParams = {
                 "criteria": {
                     "projectId": this.projectId,
+                     buildingId: this.buildingId,
                     "sendTime": {
                         "$gte": sendTime + ''  //  本周的开始时间,用于查询出已经发出过周报的邮箱
                     }
@@ -2934,6 +2939,7 @@ export default {
 
             let postParams = {
                 ids: [],
+                 buildingId: this.buildingId,
                 lastWeekMonday: this.startDate,
                 lastWeekSunday: this.endDate
             }