修改
This commit is contained in:
parent
5f1ac9f159
commit
864d55ae31
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user