Browse Source

通讯录

V1.0
dai 3 years ago
parent
commit
38c75bc6ea
  1. 13
      src/views/modules/base/organization/organization.vue
  2. 5
      src/views/modules/visual/command/index.vue

13
src/views/modules/base/organization/organization.vue

@ -1376,7 +1376,7 @@ export default {
// //
async submitPeo () { async submitPeo () {
const url = "/gov/org/staff/addstaffv2" const url = "/gov/org/staff/addstaffv2"
const {peoForm:{orgType}} = this;
let params = { let params = {
orgType: this.peoForm.orgType, orgType: this.peoForm.orgType,
name: this.peoForm.name, name: this.peoForm.name,
@ -1385,7 +1385,7 @@ export default {
workType: this.peoForm.post, workType: this.peoForm.post,
roles: this.peoForm.duty, roles: this.peoForm.duty,
newRoles: this.peoForm.newRoles, newRoles: this.peoForm.newRoles,
orgId: this.currentAgencyId, orgId: orgType=='agency' ? this.currentAgencyId : (orgType=='dept' ? this.currentDepartmentId : this.currentGridOrgId),
} }
@ -1401,6 +1401,13 @@ export default {
this.getGridList() this.getGridList()
this.getAgencyStaffListData() this.getAgencyStaffListData()
this.insertFormRest() this.insertFormRest()
if(orgType=='dept'){
this.getDepartmentStaffListData()
} else if(orgType=='grid'){
this.getGridStaffListData()
} else {
this.getAgencyStaffListData()
}
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }
@ -1648,6 +1655,7 @@ export default {
}, },
// //
entryGrid (gridId) { entryGrid (gridId) {
console.log(gridId)
this.gridStaffTableListData = [] this.gridStaffTableListData = []
this.departmentStaffTableListData = [] this.departmentStaffTableListData = []
this.agencyStaffTableListData = [] this.agencyStaffTableListData = []
@ -1663,6 +1671,7 @@ export default {
}, },
// //
entryDepartment (row) { entryDepartment (row) {
console.log(row)
this.gridStaffTableListData = [] this.gridStaffTableListData = []
this.departmentStaffTableListData = [] this.departmentStaffTableListData = []
this.agencyStaffTableListData = [] this.agencyStaffTableListData = []

5
src/views/modules/visual/command/index.vue

@ -442,9 +442,12 @@ export default {
categoryKeys2() { categoryKeys2() {
this.requestMapDot2(); this.requestMapDot2();
}, },
searchName() { searchName(val) {
this.showedSearchResult = false; this.showedSearchResult = false;
this.searchResult = iniSearchResult(); this.searchResult = iniSearchResult();
if (val == "") {
this.$refs.map.removeDotMarker();
}
}, },
}, },

Loading…
Cancel
Save