|
@@ -172,7 +172,7 @@ export default {
|
|
|
|
|
|
// 新增 / 更新版本
|
|
// 新增 / 更新版本
|
|
getChange() {
|
|
getChange() {
|
|
- if (this.title === "新增") {
|
|
|
|
|
|
+ if (this.title !== '编辑') {
|
|
updateAdd(this.addForm).then((res) => {
|
|
updateAdd(this.addForm).then((res) => {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
this.$message.success("新增成功!");
|
|
this.$message.success("新增成功!");
|
|
@@ -189,6 +189,23 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ // if (this.title === "新增") {
|
|
|
|
+ // updateAdd(this.addForm).then((res) => {
|
|
|
|
+ // if (res.code === 0) {
|
|
|
|
+ // this.$message.success("新增成功!");
|
|
|
|
+ // this.dialogVisible = false;
|
|
|
|
+ // this.getList();
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
|
|
+ // update(this.addForm).then((res) => {
|
|
|
|
+ // if (res.code === 0) {
|
|
|
|
+ // this.$message.success(`${this.title}成功!`);
|
|
|
|
+ // this.dialogVisible = false;
|
|
|
|
+ // this.getList();
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
|
|
|
|
// 取消
|
|
// 取消
|
|
@@ -241,7 +258,7 @@ export default {
|
|
height: 23px;
|
|
height: 23px;
|
|
margin: 0;
|
|
margin: 0;
|
|
|
|
|
|
- p{
|
|
|
|
|
|
+ p {
|
|
margin-top: 0;
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|