From 78c2663e987e308d3a84a4731bc2e26c19281171 Mon Sep 17 00:00:00 2001 From: yjl <1490736767@qq.com> Date: Tue, 28 Feb 2023 10:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AD=E5=BB=BA=E5=9B=9B?= =?UTF-8?q?=E5=B1=80=EF=BC=88=E5=A4=A7=E5=B1=8F=E9=A1=B5=E9=9D=A2=E3=80=81?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/http.js | 4 +- src/store/index.js | 10 +- .../projectAdmin/fourEngin/command/index.vue | 4 +- .../fourEngin/command/leftOne.vue | 42 ++--- .../fourEngin/command/leftThree.vue | 68 ++++---- .../fourEngin/command/leftTwo.vue | 33 ++-- .../fourEngin/command/rightThree.vue | 59 +++---- .../fourEngin/command/rightTwo.vue | 14 +- .../projectAdmin/fourEngin/govComp/index.vue | 2 +- .../fourEngin/govComp/leftMiddle.vue | 155 +++++++++--------- .../fourEngin/govComp/leftTop.vue | 27 +-- .../fourEngin/security/leftTop.vue | 12 +- .../electricityManage/relaTimeData.vue | 1 + .../projectSummary/floorManagement.vue | 6 +- 14 files changed, 229 insertions(+), 208 deletions(-) diff --git a/src/assets/js/http.js b/src/assets/js/http.js index e29dbd04..a88860f6 100644 --- a/src/assets/js/http.js +++ b/src/assets/js/http.js @@ -46,7 +46,7 @@ if (process.env.NODE_ENV == 'development') { // axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地 // axios.defaults.baseURL = 'http://ue6a4s.natappfree.cc' // 邱平毅vpn本地 // axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋 - // axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上 + axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上 // axios.defaults.baseURL ='http://182.90.224.147:100/' //演示平台/ // axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1 // axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上 @@ -79,7 +79,7 @@ if (process.env.NODE_ENV == 'development') { // axios.defaults.baseURL = 'http://183.234.150.152:9090/' //华发 huaxin 123456789 // axios.defaults.baseURL = 'http://139.9.66.234:7072/' //三江集团测试环境 // axios.defaults.baseURL = 'http://116.169.63.183:7070' //三江集团正式环境 - axios.defaults.baseURL = 'http://192.168.34.221:8188' //郭圣雄本地 + // axios.defaults.baseURL = 'http://192.168.34.221:8188' //郭圣雄本地 } else if (process.env.NODE_ENV == 'debug') { axios.defaults.baseURL = 'https://www.ceshi.com' diff --git a/src/store/index.js b/src/store/index.js index 0980a4b4..9e62e2f9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -48,9 +48,9 @@ export default new Vuex.Store({ BASEURL: baseUrl ? baseUrl : window.location.protocol + "//" + window.location.host + "/", // - // UPLOADURL: - // window.location.protocol + "//" + window.location.host + "/upload/image", // - // FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //测试 + UPLOADURL: + window.location.protocol + "//" + window.location.host + "/upload/image", // + FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //测试 // tag: 本地测试接口 // BASEURL:'http://192.168.34.174:6023/', /* 2022-05-16 */ // tag: 部署河南项目时,需要打开这两行代码 @@ -63,8 +63,8 @@ export default new Vuex.Store({ // BASEURL:'http://192.168.34.116:6023/', // UPLOADURL: 'http://192.168.34.116:6023/upload/image', // FILEURL: 'http://192.168.34.116:6023/image/', - UPLOADURL: 'http://124.71.67.160:8088/upload/image', - FILEURL: 'http://124.71.67.160:8088/image/', + // UPLOADURL: 'http://124.71.67.160:8088/upload/image', + // FILEURL: 'http://124.71.67.160:8088/image/', //--- // UPLOADURL: 'http://192.168.34.125:6023/upload/image', // FILEURL: 'http://192.168.34.125:6023/image/', diff --git a/src/views/projectAdmin/fourEngin/command/index.vue b/src/views/projectAdmin/fourEngin/command/index.vue index b028966b..2d1f6242 100644 --- a/src/views/projectAdmin/fourEngin/command/index.vue +++ b/src/views/projectAdmin/fourEngin/command/index.vue @@ -78,9 +78,9 @@ export default { .leftBox { width: 24.5%; .leftOne { - height: 31%; + height: 32%; } - .leftTwo{ + .leftTwo { height: 25%; } .leftThree { diff --git a/src/views/projectAdmin/fourEngin/command/leftOne.vue b/src/views/projectAdmin/fourEngin/command/leftOne.vue index 63762574..5ec8eed8 100644 --- a/src/views/projectAdmin/fourEngin/command/leftOne.vue +++ b/src/views/projectAdmin/fourEngin/command/leftOne.vue @@ -1,18 +1,20 @@ @@ -21,28 +23,26 @@ import Card from '../components/Card' import { listProjectInfo } from '@/assets/js/api/zhongjianFourth' - export default { components: { Card }, data: () => ({ - list:{}, + list: {} }), created() { this.projectSn = this.$store.state.projectSn }, - mounted(){ + mounted() { this.getList() }, methods: { /** 查询列表 */ getList() { - - listProjectInfo({ projectSn: this.projectSn }).then(res => { - this.list = res.result; - console.log('项目信息11111: ', this.list); + listProjectInfo({ projectSn: this.projectSn }).then((res) => { + this.list = res.result + console.log('项目信息11111: ', this.list) }) - }, - }, + } + } } @@ -82,7 +82,7 @@ export default { .value { width: 75%; } - div{ + div { margin: 14px 10px 0 0; } } diff --git a/src/views/projectAdmin/fourEngin/command/leftThree.vue b/src/views/projectAdmin/fourEngin/command/leftThree.vue index 5ecc63a0..533233e8 100644 --- a/src/views/projectAdmin/fourEngin/command/leftThree.vue +++ b/src/views/projectAdmin/fourEngin/command/leftThree.vue @@ -4,10 +4,12 @@
- +
- {{ pollingData.constructionRatio || 0 }} - + {{ + pollingData.constructionRatio || 0 + }} + %
@@ -17,7 +19,6 @@ {{ pollingData.constructionDay || 0 }}/{{ pollingData.totalDuration || 0 }}
--> -
@@ -30,20 +31,25 @@
{{ days.units || 0 }}
- +
起始日期:
- {{ startDate.year}}{{ startDate.month}}{{ startDate.day}}日 + {{ startDate.year }}{{ startDate.month }}{{ startDate.day }}
- 施工天数{{ pollingData.constructionDay || 0 }}天 + 施工天数{{ pollingData.constructionDay || 0 }}
- 总工期{{ pollingData.totalDuration || 0 }}天 + 总工期{{ pollingData.totalDuration || 0 }}
@@ -66,22 +72,22 @@ export default { totalNum: undefined, // 巡检总数 constructionRatio: undefined, // 占比 constructionDay: undefined, // 安全生产天数 - startWorkDate: undefined, // 起始日期 - totalDuration:undefined, + startWorkDate: undefined, // 起始日期 + totalDuration: undefined }, // 天数 - days : { + days: { units: undefined, decade: undefined, hundreds: undefined, - kilobit: undefined, + kilobit: undefined }, // 起始日期 startDate: { year: undefined, month: undefined, - day: undefined, - }, + day: undefined + } } }, created() { @@ -91,33 +97,33 @@ export default { methods: { /** 查询列表 */ getList() { - resourceManagement({ projectSn: this.projectSn }).then(res => { - console.log('安全管理:======= ', res); - const pollingData = this.pollingData; - Object.keys(pollingData).forEach(key => { + resourceManagement({ projectSn: this.projectSn }).then((res) => { + console.log('安全管理:======= ', res) + const pollingData = this.pollingData + Object.keys(pollingData).forEach((key) => { pollingData[key] = res.result[key] }) pollingData.days = pollingData.constructionDay.toString() - console.log('pollingData.days',pollingData.days); + console.log('pollingData.days', pollingData.days) if (pollingData.days.length < 4) { pollingData.days = pollingData.days.padStart(4, 0) - const days = this.days; + const days = this.days - days.units = pollingData.days[3]; - days.decade = pollingData.days[2]; - days.hundreds = pollingData.days[1]; - days.kilobit = pollingData.days[0]; + days.units = pollingData.days[3] + days.decade = pollingData.days[2] + days.hundreds = pollingData.days[1] + days.kilobit = pollingData.days[0] } - const startDate = pollingData.startWorkDate.split('-'); - console.log('startDate: ', startDate); + const startDate = pollingData.startWorkDate.split('-') + console.log('startDate: ', startDate) this.startDate.year = startDate[0] this.startDate.month = startDate[1] this.startDate.day = startDate[2] }) - }, - }, + } + } } @@ -184,7 +190,7 @@ export default { .label { font-size: 8px; - color: #FFFFFF; + color: #ffffff; } .value { @@ -215,7 +221,7 @@ export default { .top-title { margin-bottom: 15px; font-size: 20px; - color: #66D4D9; + color: #66d4d9; text-align: center; } @@ -249,7 +255,7 @@ export default { } } } - .count1, + .count1, .count2 { width: 300px; padding-top: 175px; diff --git a/src/views/projectAdmin/fourEngin/command/leftTwo.vue b/src/views/projectAdmin/fourEngin/command/leftTwo.vue index ce838767..65131042 100644 --- a/src/views/projectAdmin/fourEngin/command/leftTwo.vue +++ b/src/views/projectAdmin/fourEngin/command/leftTwo.vue @@ -34,30 +34,30 @@