修复样式 更改接口
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import {login, logout, getInfo, socialLogin, socialLogin2} from '@/api/login'
|
||||
import { getToken, setToken, removeToken } from '@/utils/auth'
|
||||
import { putAction,postAction,getAction } from '@/api/manage'
|
||||
import Vue from 'vue'
|
||||
|
||||
const user = {
|
||||
state: {
|
||||
@@ -44,6 +46,19 @@ const user = {
|
||||
res = res.data;
|
||||
setToken(res.token)
|
||||
commit('SET_TOKEN', res.token)
|
||||
// 设定进销存参数 尝试同步zsw
|
||||
let params = {};
|
||||
params.currentPage = 1;
|
||||
params.pageSize = 100;
|
||||
getAction('/erp/materialProperty/list', params).then((mp) => {
|
||||
console.log(mp);
|
||||
if(mp && mp.code === 200){
|
||||
if(mp.data) {
|
||||
let thisRows = mp.data.rows; //属性列表
|
||||
Vue.ls.set('materialPropertyList', thisRows);
|
||||
}
|
||||
}
|
||||
})
|
||||
resolve()
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
|
||||
Reference in New Issue
Block a user