Commit 6ba1ea75 authored by rencs's avatar rencs

Merge branch 'dev_ren' into 'master'

1.12 删除big

See merge request !52
parents 89aafda6 0556b38a
...@@ -243,6 +243,19 @@ export default { ...@@ -243,6 +243,19 @@ export default {
} }
}); });
}, },
//删除
updateDel() {
update({ id: this.editForm.id, isDel: this.editForm.isDel }).then(
(res) => {
if (res.status == 200) {
this.dialogVisible = false;
this.getList();
} else {
this.$message.error(res.message);
}
}
);
},
//上下架 //上下架
updateStatus() { updateStatus() {
updateStatus({ id: this.editForm.id, status: this.editForm.status }).then( updateStatus({ id: this.editForm.id, status: this.editForm.status }).then(
...@@ -279,6 +292,8 @@ export default { ...@@ -279,6 +292,8 @@ export default {
this.editForm = row; this.editForm = row;
if (key == "isDel") { if (key == "isDel") {
this.editForm[key] = row[key] == 0 ? 1 : 0; this.editForm[key] = row[key] == 0 ? 1 : 0;
this.updateDel();
return;
} else { } else {
this.editForm[key] = row[key] == 1 ? 2 : 1; this.editForm[key] = row[key] == 1 ? 2 : 1;
this.updateStatus(); this.updateStatus();
......
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