Merge remote-tracking branch 'origin/fencang' into fencang

fencang
anthonywj 3 years ago
commit c10ff8bd6b

@ -1028,7 +1028,6 @@ export default {
if (response.code != 20000) { if (response.code != 20000) {
this.$message.error(response.message); this.$message.error(response.message);
} else { } else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data); this.$message.success(response.data);
this.getList(); this.getList();
} }
@ -1161,24 +1160,26 @@ export default {
}) })
}, },
addUserData() { addUserData() {
this.userFormVisible = false;
let query = { let query = {
code: this.currentCode, code: this.currentCode,
userList: JSON.stringify(this.selectUserList) userList: JSON.stringify(this.selectUserList)
}; };
saveWarehouseUser(query).then((res) => { saveWarehouseUser(query).then((res) => {
this.$message.success("添加成功"); if (res.code === 20000) {
let loadParam = { this.userFormVisible = false;
code: this.currentCode this.$message.success("添加成功");
}; let loadParam = {
// code: this.currentCode
warehouseUserList(loadParam).then((res) => { };
this.userData = res.data; //
}).catch((error) => { warehouseUserList(loadParam).then((res) => {
console.log(error) this.userData = res.data;
}); }).catch((error) => {
});
} else {
this.$message.error(res.message);
}
}).catch((error) => { }).catch((error) => {
console.log(error);
this.$message.error("添加失败"); this.$message.error("添加失败");
}); });
}, },

Loading…
Cancel
Save