浏览代码

生态修复接口接入

Maxx 1 年之前
父节点
当前提交
2c8f16cff1
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/views/cockpitNew1/stxf.vue

+ 8 - 8
src/views/cockpitNew1/stxf.vue

@@ -47,7 +47,7 @@
 //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
 import borderTemplate from "./borderTemplate.vue";
 import Bar3d from "../../components/echartsTemplate/3dBar.vue";
-import { QueryList } from "../../api/cockpitNew";
+import { QueryOne, QueryList } from "../../api/cockpitNew";
 
 export default {
   components: { borderTemplate, Bar3d },
@@ -91,23 +91,23 @@ export default {
       this.$nextTick(() => {
         this.$refs.echartRef.setOptions(v);
       });
-      // this.GetQueryListztsh(datas)
-      // this.GetQueryListztsh(datas)
+      this.GetQueryOne(datas);
+      this.GetQueryList(datas);
     },
-    GetQueryListztsh(datas) {
+    GetQueryOne(datas) {
       let params = {
         ...datas,
-        jscType: "jsc_wpjc_ztsh",
+        jscType: "jsc_stxf_ztgh_ssxf",
         id: 46
       };
-      QueryList(params).then(res => {
+      QueryOne(params).then(res => {
         // this.sdata = res.data && res.data.length > 0 ? res.data[0] : {};
       });
     },
-    GetQueryListztsh(datas) {
+    GetQueryList(datas) {
       let params = {
         ...datas,
-        jscType: "jsc_wpjc_ztsh",
+        jscType: "jsc_stxf_ywlx_ssxf",
         id: 46
       };
       QueryList(params).then(res => {