diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index fdbc9341c..489a9af20 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -99,6 +99,8 @@ label="联系人"> + @@ -322,6 +324,8 @@ width="850" :before-close="handleClose" destroy-on-close> @@ -348,6 +352,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 () {