From e32a673ec0b2b0f064c83aacb53444b84028c341 Mon Sep 17 00:00:00 2001 From: lancer <1905818361@qq.com> Date: Tue, 14 Dec 2021 16:22:28 +0800 Subject: [PATCH] init --- src/page/check/chose.vue | 12 +++---- src/views/Equipment/equipmentDetailList.vue | 37 ++++++++++++++++----- src/views/Equipment/index.vue | 1 + src/views/Equipment/state.vue | 8 ++--- src/views/building/Count.vue | 8 ++--- vue.config.js | 4 +-- 6 files changed, 46 insertions(+), 24 deletions(-) diff --git a/src/page/check/chose.vue b/src/page/check/chose.vue index 856ff8b..df02e4b 100644 --- a/src/page/check/chose.vue +++ b/src/page/check/chose.vue @@ -134,9 +134,9 @@ > @@ -149,7 +149,7 @@ > { console.log(res); - this.options = res.data.records; + this.options = res.data; }); }, zkhousePage() { @@ -342,7 +342,7 @@ export default { if (this.info.selectHouseType == 2) { this.$api.api .findHouseByArea({ - id: this.area, + provinceItem: this.area, ...obj }) .then((res) => { diff --git a/src/views/Equipment/equipmentDetailList.vue b/src/views/Equipment/equipmentDetailList.vue index 0f90ca7..e7cb784 100644 --- a/src/views/Equipment/equipmentDetailList.vue +++ b/src/views/Equipment/equipmentDetailList.vue @@ -10,6 +10,16 @@ " > 楼盘名称: +
{ console.log(res,'获取数据') this.allCompare = res; - this.total = res.data.first.totalRecord; + this.total = res.data.firstPage.total; // 数据处理 let arr = []; if (this.pageNum == 1) { @@ -1070,15 +1091,15 @@ export default { }; arr.push(obj1); } - res.data.first.records.map((item, index) => { + res.data.firstPage.records.map((item, index) => { let obj = {}; //当他为0的时候 obj.name = - res.data.first.records[index].createTime.substring(5, 10) + + res.data.firstPage.records[index].createTime.substring(5, 10) + "VS" + - res.data.second.records[index].createTime.substring(5, 10); - obj.first = res.data.first.records[index]; - obj.second = res.data.second.records[index]; + res.data.secondPage.records[index].createTime.substring(5, 10); + obj.first = res.data.firstPage.records[index]; + obj.second = res.data.secondPage.records[index]; obj.contrast = res.data.contrast[index]; // obj.time='' // obj.time1='' @@ -1241,7 +1262,7 @@ export default { // console.log(this.allCompare,"第一种"); let timeDate = []; let arr1 = []; - this.allCompare.data.first.records.map(item=>{ + this.allCompare.data.first.map(item=>{ timeDate.push(item.createTime.substring(5)) arr1.push(item[str]) }) diff --git a/src/views/Equipment/index.vue b/src/views/Equipment/index.vue index 614b65a..82cb345 100644 --- a/src/views/Equipment/index.vue +++ b/src/views/Equipment/index.vue @@ -1200,6 +1200,7 @@ export default { this.$api.api .findHouseByUser({ orgType: localStorage.getItem("orgType"), + houseTypes:'0,1,2,3' }) .then((res) => { // console.log(res) diff --git a/src/views/Equipment/state.vue b/src/views/Equipment/state.vue index db2c931..b0b11ea 100644 --- a/src/views/Equipment/state.vue +++ b/src/views/Equipment/state.vue @@ -2,7 +2,7 @@
-
+
-
+
系统运营:
- +
diff --git a/vue.config.js b/vue.config.js index db6248b..f361a46 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,8 +3,8 @@ * https://cli.vuejs.org/zh/config/ */ // const url = 'http://pigx-gateway' -const url = 'http://39.97.167.65:9999' //测试 -// const url = 'http://192.168.31.169:9999' //长龙 +// const url = 'http://39.97.167.65:9999' //测试 +const url = 'http://192.168.31.169:9999' //长龙 // const url = 'http://192.168.31.134:9999' //嘉豪 // const url = 'http://192.168.31.100:9999' //王笑 // const url = 'http://nitu5e.natappfree.cc' //王笑