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

View File

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