Quellcode durchsuchen

测试环境配置

sunlupeng vor 7 Monaten
Ursprung
Commit
74a703910f
5 geänderte Dateien mit 16 neuen und 16 gelöschten Zeilen
  1. 4 4
      config/dev.env.js
  2. 4 4
      config/prod.env.js
  3. 2 2
      src/main.js
  4. 5 5
      src/permission.js
  5. 1 1
      src/views/stock/stockCount/stockCount.vue

+ 4 - 4
config/dev.env.js

@@ -2,10 +2,10 @@ module.exports = {
 	NODE_ENV: '"development"',
 	ENV_CONFIG: '"dev"',
   // 本地数据库:登录用户名 admin123,密码 admin123
-  BASE_API: '"http://192.168.100.188:9085/admin"',
-  OS_API: '"http://192.168.100.188:9085/admin"',
-  // BASE_API: '"http://47.103.79.143:9085/admin"',
-  // OS_API: '"http://47.103.79.143:9085/admin"',
+  // BASE_API: '"http://192.168.100.188:9085/admin"',
+  // OS_API: '"http://192.168.100.188:9085/admin"',
+  BASE_API: '"http://47.103.79.143:9086/admin"',
+  OS_API: '"http://47.103.79.143:9086/admin"',
   // OS_API: '"https://xiaoyou.dgtis.com/admin"',
   // BASE_API: '"https://xiaoyou.dgtis.com/admin"',
   

+ 4 - 4
config/prod.env.js

@@ -2,9 +2,9 @@ module.exports = {
 	NODE_ENV: '"production"',
 	ENV_CONFIG: '"prod"',
 	// 阿里云环境
-  // BASE_API: '"http://47.103.79.143:9085/admin"',
-  // OS_API: '"http://47.103.79.143:9085/admin"'
+  BASE_API: '"http://47.103.79.143:9086/admin"',
+  OS_API: '"http://47.103.79.143:9086/admin"'
   //正式环境
-  BASE_API: '"https://xiaoyou.dgtis.com/admin"',
-  OS_API: '"https://xiaoyou.dgtis.com/admin"'
+  // BASE_API: '"https://xiaoyou.dgtis.com/admin"',
+  // OS_API: '"https://xiaoyou.dgtis.com/admin"'
 }

+ 2 - 2
src/main.js

@@ -23,9 +23,9 @@ Vue.use(Element, {
   size: 'medium' // set element-ui default size
 })
 Vue.use(UIComponents)
-const prodUrl = 'http://192.168.100.188:9085/admin/storage/create';//正式地址
+// const prodUrl = 'http://192.168.100.188:9085/admin/storage/create';//正式地址
 
-// const prodUrl = 'http://47.103.79.143:9085/admin/storage/create';//阿里云测试地址
+const prodUrl = 'http://47.103.79.143:9086/admin/storage/create';//阿里云测试地址
 
 const devUrl = 'http://192.168.100.188:9085/admin/storage/create';//本地测试地址
 

+ 5 - 5
src/permission.js

@@ -103,18 +103,18 @@ const myRoles = [
   'bannerManage',
   'activeUsers',
   'pointsLottery',
-
+  //商品管理
   'goodsManage', 
   'goodsTypeList', 
   'goodsList', 
   'brand',
-
+  //基础设置
   'basicSetting', 
   'supplier', 
   'warehouse',
   'express',
   'store',
-
+  //仓库管理
   'stock',
   // 入库单
   'warehousing',
@@ -167,11 +167,11 @@ const myRoles = [
   //报表管理
   'report',
   'stockReport',
-
+  //字典管理
   'dictManage', 
   'dictList', 
   'dictDataList', 
-
+  //系统管理
   'sysManage',
   'admin',
   'dept',

+ 1 - 1
src/views/stock/stockCount/stockCount.vue

@@ -119,7 +119,7 @@ export default {
         this.getList()
     },
     handleDownload() {
-      window.location.href = process.env.BASE_API + '/warehouse-breakage/export';
+      window.location.href = process.env.BASE_API + '/warehouse-stockCount/export';
     },
     handleCreate() {
       this.$router.push({