Browse Source

fix overlay

xsr 1 year ago
parent
commit
5160901dde

+ 3 - 2
src/api/manage.js

@@ -9,11 +9,12 @@ import store from '../store'    //引用store.js
9
 var axios = Axios.create({
9
 var axios = Axios.create({
10
     // baseURL: 'http://101.200.219.190:88', // 后台默认地址
10
     // baseURL: 'http://101.200.219.190:88', // 后台默认地址
11
     // baseURL: 'http://10.72.143.2:88', //准东后台默认地址
11
     // baseURL: 'http://10.72.143.2:88', //准东后台默认地址
12
-    //baseURL: 'http://11.72.128.68:88', // 一厂默认地址k
12
+    // baseURL: 'http://192.168.31.252:88', // 一厂默认地址k
13
+    baseURL: 'http://11.72.128.68:88', // 一厂默认地址k
13
    // baseURL: 'http://10.184.33.224:88', // 中石油默认地址
14
    // baseURL: 'http://10.184.33.224:88', // 中石油默认地址
14
 
15
 
15
     // baseURL: 'http://10.72.143.2:88', // 数据公司后台默认地址
16
     // baseURL: 'http://10.72.143.2:88', // 数据公司后台默认地址
16
-    baseURL: 'http://192.168.31.252:88', // 线下默认地址
17
+    // baseURL: 'http://192.168.31.252:88', // 线下默认地址
17
     // baseURL: 'http://192.168.1.120:9005', // 许思睿默认地址
18
     // baseURL: 'http://192.168.1.120:9005', // 许思睿默认地址
18
     // baseURL: 'http://192.168.1.119:9000', // 郭笑天默认地址
19
     // baseURL: 'http://192.168.1.119:9000', // 郭笑天默认地址
19
     //http://117.34.118.57:28888/job/microarch-fe-app/buildWithParameters?token=asdfwefasdfkljlkgff&tag_version=app2
20
     //http://117.34.118.57:28888/job/microarch-fe-app/buildWithParameters?token=asdfwefasdfkljlkgff&tag_version=app2

+ 2 - 2
src/api/publicUrl.js

@@ -40,8 +40,8 @@ let publicUrl = {
40
 	// solutionjh:'/centralbase/WellSource/searchWellsByOrgID',//模糊查询井号
40
 	// solutionjh:'/centralbase/WellSource/searchWellsByOrgID',//模糊查询井号
41
 	solutionjh:'/data-authorize/WellSource/searchWellsByOrgID',//模糊查询井号
41
 	solutionjh:'/data-authorize/WellSource/searchWellsByOrgID',//模糊查询井号
42
 	solutionyieldCurve:'/centralbase/view/yieldCurve',//更多工具-生产曲线
42
 	solutionyieldCurve:'/centralbase/view/yieldCurve',//更多工具-生产曲线
43
-	solutiontiled:'/production-calculation/aoidSinglegtYield/getCvrresultByTime',//更多工具-油井功图-功图平铺
44
-	solutionoverlay:'/production-calculation/aoidSinglegtYield/getOverlayPaging',//更多工具-油井功图-功图叠加
43
+	solutiontiled:'/dgns-diagnose/dgnsGtcvrresult/getCvrresultByTime',//更多工具-油井功图-功图平铺
44
+	solutionoverlay:'/dgns-diagnose/dgnsGtcvrresult/getOverlayPaging',//更多工具-油井功图-功图叠加
45
 	//solutionoverlay:'/centralbase/view/overlay',//更多工具-油井功图-功图叠加
45
 	//solutionoverlay:'/centralbase/view/overlay',//更多工具-油井功图-功图叠加
46
 	solutionhistory:'/centralbase/view/historyMeasures',//更多工具-油井功图-历史措施
46
 	solutionhistory:'/centralbase/view/historyMeasures',//更多工具-油井功图-历史措施
47
 	solutionloadCurve:'/centralbase/view/loadCurve',//更多工具-载荷曲线
47
 	solutionloadCurve:'/centralbase/view/loadCurve',//更多工具-载荷曲线

+ 14 - 11
src/components/overlay/overlay.vue

@@ -79,7 +79,7 @@
79
             size="small"
79
             size="small"
80
             type="primary"
80
             type="primary"
81
             class="publicSmallBtn"
81
             class="publicSmallBtn"
82
-            @click="getWorkDiagram"
82
+            @click="workDiagramChange"
83
         >查询
83
         >查询
84
         </el-button>
84
         </el-button>
85
         <el-checkbox
85
         <el-checkbox
@@ -158,7 +158,7 @@ export default {
158
       pageSize: 6, //油井功图-功图平铺分页器参数
158
       pageSize: 6, //油井功图-功图平铺分页器参数
159
       total: 0, //油井功图-功图平铺分页器参数
159
       total: 0, //油井功图-功图平铺分页器参数
160
       overlaycurrentPage: 1, //油井功图-功图叠加分页器参数
160
       overlaycurrentPage: 1, //油井功图-功图叠加分页器参数
161
-      overlaypageSize: 6, //油井功图-功图叠加分页器参数
161
+      overlaypageSize: 8, //油井功图-功图叠加分页器参数
162
       overlaytotal: 0, //油井功图-功图平叠加页器参数
162
       overlaytotal: 0, //油井功图-功图平叠加页器参数
163
       checked: false, //油井功图-功图叠加判断值
163
       checked: false, //油井功图-功图叠加判断值
164
       ConfirmLoading: false,
164
       ConfirmLoading: false,
@@ -218,9 +218,12 @@ export default {
218
           this.total = res.data.data.total;
218
           this.total = res.data.data.total;
219
           let data = res.data.data.records
219
           let data = res.data.data.records
220
           data.forEach(x => {
220
           data.forEach(x => {
221
+            console.log(x)
222
+            x.sgt = JSON.parse(x.sgt)
223
+            x.sgt.push(x.sgt[0])
221
             let optionsObj = {
224
             let optionsObj = {
222
               title: {
225
               title: {
223
-                text: x.wellId + " " + title + " " + x.prodDate,
226
+                text: x.result2 + " " + x.wellId + " " + x.prodDateTime,
224
                 style: {
227
                 style: {
225
                   fontSize: "12px",
228
                   fontSize: "12px",
226
                   color: "#6B756C"
229
                   color: "#6B756C"
@@ -300,7 +303,7 @@ export default {
300
               series: [
303
               series: [
301
                 {
304
                 {
302
                   name: "图",
305
                   name: "图",
303
-                  data: x.sgtUp,
306
+                  data: x.sgt,
304
                   marker: {
307
                   marker: {
305
                     //线上数据点
308
                     //线上数据点
306
                     radius: 0,
309
                     radius: 0,
@@ -522,20 +525,20 @@ export default {
522
       getAction(publicUrl.solutionoverlay, obj).then(res => {
525
       getAction(publicUrl.solutionoverlay, obj).then(res => {
523
         if (res.data.data.total >= 0) {
526
         if (res.data.data.total >= 0) {
524
           this.overlaytotal = res.data.data.total;
527
           this.overlaytotal = res.data.data.total;
525
-          let data = res.data.data.data
528
+          let data = res.data.data.records
526
           data.forEach(x => {
529
           data.forEach(x => {
527
-            let key = Object.keys(x);
528
-            let values = Object.values(x);
530
+            console.log(x)
529
             let optionsSeries = [];
531
             let optionsSeries = [];
530
-            values[0].forEach(z => {
532
+            for (let i=0;i<x.details.length;i++){
533
+              x.details[i].sgt.push(x.details[i].sgt[0])
531
               optionsSeries.push({
534
               optionsSeries.push({
532
                 name: "图",
535
                 name: "图",
533
-                data: z
536
+                data: x.details[i].sgt
534
               });
537
               });
535
-            })
538
+            }
536
             let optionsObj = {
539
             let optionsObj = {
537
               title: {
540
               title: {
538
-                text: title + " " + key[0],
541
+                text: title + " " + x.day,
539
                 style: {
542
                 style: {
540
                   fontSize: "12px",
543
                   fontSize: "12px",
541
                   color: "#6B756C"
544
                   color: "#6B756C"

+ 2 - 6
src/components/solution/solution.vue

@@ -605,7 +605,7 @@
605
           size="small"
605
           size="small"
606
           type="primary"
606
           type="primary"
607
           class="publicSmallBtn"
607
           class="publicSmallBtn"
608
-          @click="getWorkDiagram"
608
+          @click="workDiagramChange"
609
           >查询
609
           >查询
610
         </el-button>
610
         </el-button>
611
         <el-checkbox
611
         <el-checkbox
@@ -1199,7 +1199,6 @@ export default {
1199
   },
1199
   },
1200
   methods: {
1200
   methods: {
1201
     setStandardGt(){
1201
     setStandardGt(){
1202
-      console.log(this.setStandardGtForm)
1203
       getAction(publicUrl.setStandardGt,{
1202
       getAction(publicUrl.setStandardGt,{
1204
         wellId: this.pageData.wellId,
1203
         wellId: this.pageData.wellId,
1205
         prodDate: this.pageData.prodDateTime,
1204
         prodDate: this.pageData.prodDateTime,
@@ -2103,7 +2102,6 @@ export default {
2103
       this.getWorkDiagram();
2102
       this.getWorkDiagram();
2104
     },
2103
     },
2105
     getWorkDiagram() {
2104
     getWorkDiagram() {
2106
-      console.log("1111111111111")
2107
       //查询油井功图数据
2105
       //查询油井功图数据
2108
       this.workDiagramForm.beginTime = this.changeDate(
2106
       this.workDiagramForm.beginTime = this.changeDate(
2109
         this.workDiagramForm.beginTime
2107
         this.workDiagramForm.beginTime
@@ -2136,6 +2134,7 @@ export default {
2136
             res.data.data.records[i].processparam
2134
             res.data.data.records[i].processparam
2137
           );
2135
           );
2138
           let maxNum = res.data.data.records[i].processparam.ZDZH;
2136
           let maxNum = res.data.data.records[i].processparam.ZDZH;
2137
+
2139
           let optionsObj = {
2138
           let optionsObj = {
2140
             title: {
2139
             title: {
2141
               text:
2140
               text:
@@ -2586,7 +2585,6 @@ export default {
2586
       }
2585
       }
2587
     },
2586
     },
2588
     overlaytaskListPage(val) {
2587
     overlaytaskListPage(val) {
2589
-      console.log(val)
2590
       //油井功图-功图叠加分页器
2588
       //油井功图-功图叠加分页器
2591
       this.workDiagramForm.beginTime = this.changeDate(
2589
       this.workDiagramForm.beginTime = this.changeDate(
2592
         this.workDiagramForm.beginTime
2590
         this.workDiagramForm.beginTime
@@ -3713,7 +3711,6 @@ export default {
3713
       });
3711
       });
3714
     },
3712
     },
3715
     handleClick2(type) {
3713
     handleClick2(type) {
3716
-      console.log(type)
3717
       let _this = this;
3714
       let _this = this;
3718
       let obj2 = {
3715
       let obj2 = {
3719
         id: type
3716
         id: type
@@ -3721,7 +3718,6 @@ export default {
3721
       getAction(publicUrl.getDgnsCvrresultById, obj2).then(res => {
3718
       getAction(publicUrl.getDgnsCvrresultById, obj2).then(res => {
3722
         if (res.data.status == 1) {
3719
         if (res.data.status == 1) {
3723
           _this.pageData = res.data.data;
3720
           _this.pageData = res.data.data;
3724
-          console.log(res.data.data.id)
3725
           _this.checkNeedDeal(res.data.data.id);
3721
           _this.checkNeedDeal(res.data.data.id);
3726
           _this.setCharts();
3722
           _this.setCharts();
3727
           _this.setGtSlope();
3723
           _this.setGtSlope();