diff --git a/packages/3.0.0/AppContentInfo/components/Add.vue b/packages/3.0.0/AppContentInfo/components/Add.vue index cf1c995f..c7a41557 100644 --- a/packages/3.0.0/AppContentInfo/components/Add.vue +++ b/packages/3.0.0/AppContentInfo/components/Add.vue @@ -24,7 +24,7 @@ - + { if (valid) { + let categoryName = '' + if (this.cateList.length && this.form.categoryId) { + categoryName = this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName + } + this.instance.post(`/app/appcontentinfo/addOrUpdate`, { ...this.form, moduleId: this.$route.query.moduleId, createUserName: this.user.info.name, createUserId: this.user.info.id, - categoryName: this.cateList.length ? this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName : '' + categoryName: categoryName }).then(res => { if (res.code == 0) { this.$message.success('提交成功') diff --git a/packages/meta/AppResident/listTpl.vue b/packages/meta/AppResident/listTpl.vue index 5d37f361..b8569198 100644 --- a/packages/meta/AppResident/listTpl.vue +++ b/packages/meta/AppResident/listTpl.vue @@ -323,7 +323,9 @@ export default { }); }, deletePersonFn() { - this.resident.instance.post(`/app/appresident/delete?ids=${this.deleteIds}`).then(res => { + this.resident.instance.post(`/app/appresident/deleteBody`, { + ids: this.deleteIds + }).then(res => { if (res && res.code == 0) { this.$message.success("删除成功"); if (