@@ -461,6 +461,7 @@ export function encryptionN(subdata, type) { | |||
{ isSessionStorage: false }, | |||
{} | |||
) | |||
// subdata['accessToken'] = getToken() | |||
let openId = cacheAccessToken['openId'] | |||
subdata['openId'] = openId // 用户标识 | |||
subdata['opId'] = openId // 用户标识 |
@@ -230,7 +230,7 @@ function nextHandle() { | |||
} | |||
console.log("paraps", params) | |||
BaseService.post(api, params).then((res: any) => { | |||
BaseService.postN(api, params).then((res: any) => { | |||
if (res && res.code === 0) { | |||
ElMessage.success("操作成功"); | |||
active.value = 2; |
@@ -215,7 +215,7 @@ | |||
tableData.value = [] | |||
BaseService.postN('/invw/inventory/inventorypagelist', params).then((res: any) => { | |||
if (res && res.code === 0) { | |||
let bizContent = JSON.parse(res.bizContent); | |||
let bizContent = res.data | |||
let data = bizContent.data || []; | |||
tableData.value = data; | |||
console.log("bizContent12222", data, tableData.value) |
@@ -215,7 +215,6 @@ function nextHandle() { | |||
if (!valid) { | |||
return false; | |||
} | |||
// TODO 未验证 | |||
let api = '/invw/organization/add'; | |||
if (typeOption.value === "edit") { | |||
api = '/invw/organization/update'; | |||
@@ -226,7 +225,7 @@ function nextHandle() { | |||
...addForm.value, | |||
} | |||
console.log("paraps", params) | |||
BaseService.post(api, params).then((res: any) => { | |||
BaseService.postN(api, params).then((res: any) => { | |||
if (res && res.code === 0) { | |||
ElMessage.success("操作成功"); | |||
active.value = 2; |