This commit is contained in:
闫晓茹 2023-02-20 14:42:41 +08:00
parent 5f1ac9f159
commit 864d55ae31
2 changed files with 4 additions and 2 deletions

View File

@ -507,7 +507,7 @@ export default {
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
this.form.informationCategoryList[0].sort=parseInt( this.form.informationCategoryList[0].sort)
if (this.form.id != null) {
updateInformationCategory(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
@ -515,6 +515,7 @@ export default {
this.getList();
});
} else {
this.form.informationCategoryList[0].sort=parseInt( this.form.informationCategoryList[0].sort)
addInformationCategory(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.addopen = false;

View File

@ -621,7 +621,7 @@ export default {
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
this.form.informationSort=parseInt( this.form.informationSort)
if (this.form.id != null) {
updateInformationInfo(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
@ -637,6 +637,7 @@ export default {
this.getList();
});
} else {
this.form.informationSort=parseInt( this.form.informationSort)
addInformationInfo(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;