caojunjie 3 роки тому
батько
коміт
6133395501
4 змінених файлів з 3 додано та 536 видалено
  1. 0 84
      public/view.html
  2. 0 432
      public/view.js
  3. 0 19
      src/views/appVersion/version/index.vue
  4. 3 1
      src/views/index.vue

+ 0 - 84
public/view.html

@@ -1,84 +0,0 @@
-
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
-  <meta charset="utf-8">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge">
-  <meta name="viewport" content="width=device-width,initial-scale=1.0">
-  <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
-  <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
-  <META HTTP-EQUIV="Expires" CONTENT="0">
-  <script src="./view.js"></script>
-  <link rel="stylesheet" href="https://at.alicdn.com/t/font_1117329_z5buvlhlaf.css">
-  <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/animate.css/3.5.1/animate.min.css">
-  <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/element-ui/2.15.3/theme-chalk/index.min.css">
-  <link rel="stylesheet" href="https://avuejs.com/lib/index.css">
-  <link rel="stylesheet" href="https://data.avuejs.com/lib/index.css">
-  <script src="https://data.avuejs.com/config.js"></script>
-  <script src="https://cdn.bootcdn.net/ajax/libs/echarts/4.2.1/echarts.min.js"></script>
-  <script src="https://data.avuejs.com/cdn/echarts-wordcloud.min.js"></script>
-  <script src="https://data.avuejs.com/cdn/clappr.min.js"></script>
-  <script src="https://data.avuejs.com/const/theme/avue.project.js"></script>
-  <script src="https://data.avuejs.com/const/theme/halloween.project.js"></script>
-  <script src="https://data.avuejs.com/const/theme/wonderland.project.js"></script>
-  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.14/vue.min.js" charset="utf-8"></script>
-  <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js" charset="utf-8"></script>
-  <script src="https://cdn.bootcdn.net/ajax/libs/element-ui/2.15.3/index.min.js" charset="utf-8"></script>
-  <script src="https://avuejs.com/lib/avue.min.js"></script>
-  <script src="https://data.avuejs.com/cdn/datav.min.vue.js"></script>
-  <script src="https://data.avuejs.com/lib/index.umd.min.js"></script>
-  <title>云仓智慧大屏</title>
-  <style>
-    * {
-      padding: 0;
-      margin: 0;
-    }
-
-    body,
-    html,
-    #app {
-      height: 100%;
-    }
-  </style>
-  <script>
-    function GetQueryString(name) {
-      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
-      var r = window.location.search.substr(1).match(reg);
-      if (r != null) return unescape(r[2]); return null;
-    }
-    Vue.use(window.AVUE);
-  </script>
-</head>
-
-<body>
-  <div id="app">
-    <avue-data :props="props" :option="option"></avue-data>
-  </div>
-  <style>
-      .el-input--suffix .el-input__inner{
-          background-color: #000000;
-          color: #FFFFFF;
-          border: #FFFFFF solid 0;
-      }
-  </style>
-  <script>;
-    new Vue({
-      el: '#app',
-      data() {
-        return {
-          props: {
-            id: GetQueryString('id'),
-            name: 'view'
-          },
-          option: option
-        }
-      },
-      components: {
-        avueData
-      }
-    })
-  </script>
-</body>
-
-</html>

Різницю між файлами не показано, бо вона завелика
+ 0 - 432
public/view.js


+ 0 - 19
src/views/appVersion/version/index.vue

@@ -79,15 +79,6 @@
           v-hasPermi="['appVersion:version:export']"
         >导出</el-button>
       </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="primary"
-          icon="el-icon-download"
-          size="mini"
-          @click="smartScreen"
-          v-hasPermi="['appVersion:version:export']"
-        >智慧大屏</el-button>
-      </el-col>
 	  <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -328,16 +319,6 @@ export default {
           this.download(response.msg);
         })
     },
-    smartScreen(){
-      // window.open( process.env.VUE_APP_BASE_API.length - 10 + '/view.html?Authorization=' + getToken())
-      currentLogin().then(res=>{
-        if (res.data.userName === 'admin'){
-          window.open( 'https://op.zdgjqd.com/view.html?Authorization=' + getToken())
-        }else {
-          this.$message.warning('您无此权限查看面板');
-        }
-      })
-    },
   }
 };
 </script>

+ 3 - 1
src/views/index.vue

@@ -1661,7 +1661,9 @@ export default {
     smartScreen(){
       currentLogin().then(res=>{
         if (res.data.userName === 'admin'){
-          window.open( 'https://op.zdgjqd.com/view.html?Authorization=' + getToken())
+          this.getConfigKey("large.screen").then((response) => {
+            window.open( 'http://119.3.74.195:9527/view/'+ response.msg +'?Authorization=' + getToken())
+          });
         }else {
           this.$message.warning('您无此权限查看面板');
         }

Деякі файли не було показано, через те що забагато файлів було змінено