Commit 145183b0 authored by 赵啸非's avatar 赵啸非

更新资源部署

parent b968f17f
...@@ -78,13 +78,13 @@ export default { ...@@ -78,13 +78,13 @@ export default {
this.$post("/device/module/distribute/selected", {id:row.id,selected:0}) this.$post("/device/module/distribute/selected", {id:row.id,selected:0})
.then(res => { .then(res => {
row.selected=1 row.selected=1
console.log(row) // console.log(row)
if (res && res.code && res.code == 1) { // if (res && res.code && res.code == 1) {
this.getData(); // this.getData();
this.loading = false; // this.loading = false;
}else{ // }else{
this.$message.error(res.msg); // this.$message.error(res.msg);
} // }
}) })
.catch(error => { .catch(error => {
this.$message.error(error.message); this.$message.error(error.message);
...@@ -93,13 +93,13 @@ export default { ...@@ -93,13 +93,13 @@ export default {
this.$post("/device/module/distribute/selected", {id:row.id,selected:1}) this.$post("/device/module/distribute/selected", {id:row.id,selected:1})
.then(res => { .then(res => {
row.selected=0 row.selected=0
console.log(row) // console.log(row)
if (res && res.code && res.code == 1) { // if (res && res.code && res.code == 1) {
this.getData(); // this.getData();
this.loading = false; // this.loading = false;
}else{ // }else{
this.$message.error(res.msg); // this.$message.error(res.msg);
} // }
}) })
.catch(error => { .catch(error => {
this.$message.error(error.message); this.$message.error(error.message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment