浏览代码

fix overlay

xsr 1 年之前
父节点
当前提交
5160901dde
共有 4 个文件被更改,包括 21 次插入21 次删除
  1. 3 2
      src/api/manage.js
  2. 2 2
      src/api/publicUrl.js
  3. 14 11
      src/components/overlay/overlay.vue
  4. 2 6
      src/components/solution/solution.vue

+ 3 - 2
src/api/manage.js

@@ -9,11 +9,12 @@ import store from '../store'    //引用store.js
9 9
 var axios = Axios.create({
10 10
     // baseURL: 'http://101.200.219.190:88', // 后台默认地址
11 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 14
    // baseURL: 'http://10.184.33.224:88', // 中石油默认地址
14 15
 
15 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 18
     // baseURL: 'http://192.168.1.120:9005', // 许思睿默认地址
18 19
     // baseURL: 'http://192.168.1.119:9000', // 郭笑天默认地址
19 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 40
 	// solutionjh:'/centralbase/WellSource/searchWellsByOrgID',//模糊查询井号
41 41
 	solutionjh:'/data-authorize/WellSource/searchWellsByOrgID',//模糊查询井号
42 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 45
 	//solutionoverlay:'/centralbase/view/overlay',//更多工具-油井功图-功图叠加
46 46
 	solutionhistory:'/centralbase/view/historyMeasures',//更多工具-油井功图-历史措施
47 47
 	solutionloadCurve:'/centralbase/view/loadCurve',//更多工具-载荷曲线

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

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

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

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