瀏覽代碼

生产日报callback

sunzehao 14 小時之前
父節點
當前提交
7e5628ab72
共有 3 個文件被更改,包括 77 次插入21 次删除
  1. 1 1
      .env.production
  2. 57 20
      src/views/nxReport/scrbTest/index.vue
  3. 19 0
      src/views/nxReport/scrbTest/scrbCallback.vue

+ 1 - 1
.env.production

@@ -35,7 +35,7 @@ VUE_APP_API=/api6060
 VUE_APP_REPORT=https://10.112.33.5:8081
 # VUE_APP_REPORT=https://10.220.1.5:8443
 # VUE_APP_REPORT=https://10.112.33.5:8443
-VUE_APP_REPORT2=https://10.112.33.5:8085
+VUE_APP_REPORT2=/api8085
 
 # VUE_APP_URL=https://10.220.1.5:5300
 VUE_APP_URL=https://10.112.33.5:5300

+ 57 - 20
src/views/nxReport/scrbTest/index.vue

@@ -1,37 +1,74 @@
 <template>
-  <div style="height: 100%">
-    <iframe
-      :src="url"
-      width="100%"
-      height="100%"
-      frameborder="0"
-      scrolling="auto"
-    ></iframe>
+  <div class="scrbReportNew">
+    <div class="scrbReportNewBtn">
+      <el-button round size="mini" class="searchColor" @click="swithTab">数据回填</el-button>
+    </div>
+    <el-tabs v-model="activeTab" style="width: 100%">
+      <el-tab-pane label="生产日报" name="1">
+        <div style="height: 100%">
+          <iframe
+            :src="url"
+            width="100%"
+            height="100%"
+            frameborder="0"
+            scrolling="auto"
+          ></iframe>
+        </div>
+      </el-tab-pane>
+      <el-tab-pane label="数据回填" name="2">
+        <scrbCallback />
+      </el-tab-pane>
+    </el-tabs>
   </div>
+  
 </template>
 <script>
+import scrbCallback from "./scrbCallback.vue"
 export default {
+  components: {
+    scrbCallback
+  },
   data() {
     return {
+      activeTab: "1",
       url:
         process.env.VUE_APP_REPORT2 +
-        "/jmreport/shareView/1171680579804438528?shareToken=cf8ab1ffe8478906e23dca80095a118d",
+        "/jmreport/shareView/1173531983233916928?shareToken=5b2be81b2764d5abe36ae0989b80a2c5",
     };
   },
+  methods: {
+    swithTab() {
+      this.activeTab = '2'
+    }
+  }
 };
 </script>
-<style lang="less" scope>
-@titleGray: #9ca5a8;
-@rowGray: #606769;
-@darkBack: #536268;
-
-.knowledge-2 {
-  .el-select {
-    width: 200px;
+<style lang="less">
+.scrbReportNew{
+  width: 100%;
+  height: 100%;
+  .el-tabs{
+    .el-tabs__content{
+      .el-tab-pane{
+        height: calc(100vh - 50px);
+      }
+    }
   }
-
-  .el-input {
-    width: 200px;
+  .scrbReportNewBtn{
+    position: absolute;
+    right: 20px;
+    z-index: 11111;
+    .searchColor {
+      background-color: rgba(5, 187, 76, 0.2);
+      border: 1px solid #3b6c53;
+      color: #b3b3b3;
+      font-size: 14px;
+      margin-left: 10px;
+      &:hover {
+        background-color: rgba(5, 187, 76, 0.5);
+        color: #ffffff;
+      }
+    }
   }
 }
 </style>

+ 19 - 0
src/views/nxReport/scrbTest/scrbCallback.vue

@@ -0,0 +1,19 @@
+<template>
+  <div class="scrbCallback">
+    <span style="color: #000">test</span>
+  </div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style lang="less">
+.scrbCallback{
+  width: 100%;
+  height: 100vh;
+  background: #fff;
+}
+</style>