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,12 +1160,13 @@ 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) => {
if (res.code === 20000) {
this.userFormVisible = false;
this.$message.success("添加成功"); this.$message.success("添加成功");
let loadParam = { let loadParam = {
code: this.currentCode code: this.currentCode
@ -1175,10 +1175,11 @@ export default {
warehouseUserList(loadParam).then((res) => { warehouseUserList(loadParam).then((res) => {
this.userData = res.data; this.userData = res.data;
}).catch((error) => { }).catch((error) => {
console.log(error)
}); });
} else {
this.$message.error(res.message);
}
}).catch((error) => { }).catch((error) => {
console.log(error);
this.$message.error("添加失败"); this.$message.error("添加失败");
}); });
}, },

Loading…
Cancel
Save