diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 60d7dfbcb..b4e2b6c03 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -100,6 +100,8 @@ label="联系人"> + @@ -323,6 +325,8 @@ width="850" :before-close="handleClose" destroy-on-close> @@ -349,6 +353,10 @@ + + + + { + if (result === true) { + const url = "/gov/org/grid/addgrid"; + + let params = { + agencyId: this.GridForm.agencyId, + gridName: this.GridForm.gridName, + contacts: this.GridForm.contacts, + mobile: this.GridForm.mobile, + code: this.GridForm.code, + sort: this.GridForm.sort, + manageDistrict: this.GridForm.manageDistrict, + gridType: this.GridForm.gridType, + latitude: this.lat, + longitude: this.lng, + }; + + const { data, code, msg } = await requestPost(url, params); + + if (code === 0) { + this.$message.success("添加成功"); + this.dialogVisibleGrid = false; + this.GridForm = []; + this.getAgencyList(); + this.getDepartmentList(); + this.getGridList(); + this.getAgencyStaffListData(); + } else { + this.$message.error(msg); + } + } + }) }, async submitPeo () {