Browse Source

修改网络请求地址,修改获取主页面菜单

dev_pda
李俊城 2 years ago
parent
commit
385d869157
  1. 4
      fe/PDA/api/index.js
  2. 4
      fe/PDA/pages/index/index.vue
  3. 1
      fe/PDA/pages/task/receipt.vue
  4. 4
      fe/PDA/static/config.json

4
fe/PDA/api/index.js

@ -14,8 +14,8 @@ export function getlogin(params) { //
}) })
} }
export function getMenus() { // export function getMenus(params) { //
return promise(devUrl + "/api/pda/account/menus", { // return promise(devUrl + "/api/pda/account/menus/"+params, { //
data: {}, data: {},
method: "get" method: "get"
}) })

4
fe/PDA/pages/index/index.vue

@ -190,7 +190,9 @@
}); });
let that = this; let that = this;
// let userWorkgroups = await getWorkgroups(); // let userWorkgroups = await getWorkgroups();
let menus = await getMenus(); let param =localStorage.getItem('userId')
let menus = await getMenus(param);
if (menus.length > 0) { if (menus.length > 0) {
that.userMenus = menus; that.userMenus = menus;
that.selectedMenus = menus[0].list; that.selectedMenus = menus[0].list;

1
fe/PDA/pages/task/receipt.vue

@ -138,6 +138,7 @@
}, },
getList(type) { getList(type) {
this.isToday=false;
let that = this; let that = this;
uni.showLoading({ uni.showLoading({
title: "加载中....", title: "加载中....",

4
fe/PDA/static/config.json

@ -8,7 +8,7 @@
}, },
{ {
"name": "服务地址", "name": "服务地址",
"value": "http://dev.ccwin-in.com:21296" "value": "http://dev.ccwin-in.com:21093"
}, },
{ {
"name": "原料报废扫描库位", "name": "原料报废扫描库位",
@ -25,7 +25,7 @@
"warehouseCode": "T8", "warehouseCode": "T8",
"putawayLocationTypes": "1,2,3,4", "putawayLocationTypes": "1,2,3,4",
"putawayInventoryStatus": "2", "putawayInventoryStatus": "2",
"dev": "http://dev.ccwin-in.com:21296", "dev": "http://dev.ccwin-in.com:21093",
"print_url": "http://dev.ccwin-in.com:59095", "print_url": "http://dev.ccwin-in.com:59095",
"version_update_url": "http://dev.ccwin-in.com:59081", "version_update_url": "http://dev.ccwin-in.com:59081",
"isScrapScanToLocation": false, "isScrapScanToLocation": false,

Loading…
Cancel
Save