|
@@ -134,7 +134,6 @@ export default {
|
|
|
if (valid) {
|
|
|
this.form.status = 1;
|
|
|
if (this.form.id != null && type == "add") {
|
|
|
- console.log(1);
|
|
|
updateAndex(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.$layer.close(this.layerid);
|
|
@@ -142,7 +141,6 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
if (this.form.id != null && type == "draft") {
|
|
|
- console.log(2);
|
|
|
this.form.status = 0;
|
|
|
updateNEWS(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
@@ -150,14 +148,12 @@ export default {
|
|
|
this.$parent.getList();
|
|
|
});
|
|
|
} else if (type == "add") {
|
|
|
- console.log(3);
|
|
|
addNEWS(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.$layer.close(this.layerid);
|
|
|
this.$parent.getList();
|
|
|
});
|
|
|
} else if (type == "draft") {
|
|
|
- console.log(4);
|
|
|
this.form.status = 0;
|
|
|
addNEWS(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("操作成功");
|