Commit d5389122 authored by rencs's avatar rencs

Merge branch 'dev_ren' into 'dev'

1.12 删除big

See merge request !53
parents adfd1b46 0556b38a
......@@ -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({ id: this.editForm.id, status: this.editForm.status }).then(
......@@ -279,6 +292,8 @@ export default {
this.editForm = row;
if (key == "isDel") {
this.editForm[key] = row[key] == 0 ? 1 : 0;
this.updateDel();
return;
} else {
this.editForm[key] = row[key] == 1 ? 2 : 1;
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