Quellcode durchsuchen

解决前端一些BUG

wukai vor 2 Jahren
Ursprung
Commit
ad9ad16b04

+ 2 - 0
.env.development

@@ -6,6 +6,8 @@ ENV = 'development'
 
 # 档案管理系统/开发环境
 VUE_APP_BASE_API = '/dev-api'
+# 目录跳转地址
+VUE_APP_BASE_TARGE='http://192.168.188.188:18080'
 
 # 路由懒加载
 VUE_CLI_BABEL_TRANSPILE_MODULES = true

+ 3 - 0
.env.production

@@ -6,3 +6,6 @@ ENV = 'production'
 
 # 档案管理系统/生产环境
 VUE_APP_BASE_API = '/prod-api'
+
+# 目录跳转地址
+VUE_APP_BASE_TARGE='http://192.168.188.188:8080'

+ 3 - 0
.env.staging

@@ -6,5 +6,8 @@ NODE_ENV = production
 # 测试环境配置
 ENV = 'staging'
 
+# 目录跳转地址
+VUE_APP_BASE_TARGE='http://192.168.188.188:8080'
+
 # 档案管理系统/测试环境
 VUE_APP_BASE_API = '/stage-api'

+ 2 - 2
public/index.html

@@ -7,7 +7,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= webpackConfig.name %></title>
-    <script type="text/javascript" src="http://192.168.1.13:19531/web-apps/apps/api/documents/api.js" charset="utf-8" async></script>
+    <script type="text/javascript" src="http://192.168.1.28:19531/web-apps/apps/api/documents/api.js" charset="utf-8" async></script>
     <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
     <style>
       html,
@@ -209,4 +209,4 @@
       </div>
     </div>
   </body>
-</html>
+</html>

+ 1 - 2
src/views1/File/Individual/IndividualView.vue

@@ -44,8 +44,7 @@
 
             <el-row :gutter="10" class="mb8">
               <el-col :span="1.5">
-                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
-                  v-hasPermi="['doc:info:add']">上传</el-button>
+                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">上传</el-button>
               </el-col>
               <!-- <el-col :span="1.5">
                 <el-button

+ 8 - 13
src/views1/Group/Groups/GroupsView.vue

@@ -62,7 +62,7 @@
               icon="el-icon-plus"
               size="mini"
               @click="handleAdd"
-              v-hasPermi="['doc:group:add']"
+              v-hasRole="['group.manager']"
               >新增</el-button
             >
           </el-col>
@@ -74,7 +74,7 @@
               size="mini"
               :disabled="single"
               @click="handleUpdate"
-              v-hasPermi="['doc:group:edit']"
+              v-hasRole="['group.manager']"
               >修改</el-button
             >
           </el-col>
@@ -86,7 +86,7 @@
               size="mini"
               :disabled="multiple"
               @click="handleDelete"
-              v-hasPermi="['doc:group:remove']"
+              v-hasRole="['group.manager']"
               >删除</el-button
             >
           </el-col>
@@ -97,7 +97,6 @@
               icon="el-icon-download"
               size="mini"
               @click="handleExport"
-              v-hasPermi="['doc:group:export']"
               class="reset2"
               >导出</el-button
             >
@@ -131,7 +130,6 @@
                 type="text"
                 icon="el-icon-edit"
                 @click="handleUpdate(scope.row)"
-                v-hasPermi="['doc:group:edit']"
                 >修改</el-button
               >
               <el-button
@@ -139,7 +137,6 @@
                 type="text"
                 icon="el-icon-delete"
                 @click="handleDelete(scope.row)"
-                v-hasPermi="['doc:group:remove']"
                 >删除</el-button
               >
               <el-button
@@ -147,7 +144,6 @@
                 type="text"
                 icon="el-icon-user"
                 @click="handleGroupUser(scope.row)"
-                v-hasPermi="['doc:group:user']"
                 >分配成员</el-button
               >
             </template>
@@ -199,7 +195,7 @@
     </div>
   </div>
 </template>
-    
+
 <script>
 import selectUser from "./selectUser";
 
@@ -381,7 +377,7 @@ export default {
   },
 };
 </script>
-    
+
 <style scoped lang='scss'>
 .containe {
   color: #7ea4c8;
@@ -531,10 +527,9 @@ export default {
   padding-top: calc(100vh * (50 / 1080));
 }
 </style>
- 
-  
-  
 
 
 
-    
+
+
+

+ 1 - 3
src/views1/Personal/Identificat/IdentificatView.vue

@@ -39,9 +39,7 @@
       };
     },
     created() {
-      this.getConfigKey("api.ocr.url").then(response => {
-        this.ocrUrl = response.msg;
-      });
+      this.ocrUrl=process.env.VUE_APP_BASE_API+"/ocr/";
     },
     methods: {
       handlePreview(file) {

+ 1 - 10
vue.config.js

@@ -36,20 +36,11 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://192.168.188.99:8080`,
-        target: `http://localhost:8080`,
+        target: process.env.VUE_APP_BASE_TARGE,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''
         }
-      },
-      //代理  =>扫描图片的上传地址
-      '/dev-api/identificat/upload': {
-        // target: `http://192.168.188.99:8080`,
-        target: `http://192.168.1.11:19500/upload`,
-        changeOrigin: true,
-        pathRewrite: {
-          '^/dev-api/identificat/upload': ''
-        }
       }
     },
     disableHostCheck: true