diff --git a/src/views/modules/sys/deptmacode-optimize.vue b/src/views/modules/sys/deptmacode-optimize.vue index 4162af4..6f43ffa 100644 --- a/src/views/modules/sys/deptmacode-optimize.vue +++ b/src/views/modules/sys/deptmacode-optimize.vue @@ -98,7 +98,7 @@ 生成 + @click="createDeptMaCodeHandle(scope.row.deptId)">生成 @@ -134,7 +134,7 @@ export default { dataForm: { streetId: null, communityId: null, - gridId: null, + deptId: null, leaderFlag: '0' }, epidemicSentryPostVisible: false, @@ -143,7 +143,7 @@ export default { options: [], streetList: [], communityList: [], - gridList: [], + deptList: [], maCodeCategorys: [ { id: '0', name: '群众注册码' }, { id: '1', name: '网格长注册码' }, @@ -171,22 +171,22 @@ export default { if (val.length === 0) { this.dataForm.streetId = '' this.dataForm.communityId = '' - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 1) { this.dataForm.streetId = this.deptIdList[0] this.dataForm.communityId = '' - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 2) { this.dataForm.streetId = this.deptIdList[0] this.dataForm.communityId = this.deptIdList[1] - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 3) { this.dataForm.streetId = this.deptIdList[0] this.dataForm.communityId = this.deptIdList[1] - this.dataForm.gridId = this.deptIdList[2] + this.dataForm.deptId = this.deptIdList[2] } } }, @@ -285,8 +285,8 @@ export default { .catch(() => { }) }, clearDataForm () { - this.dataForm.streetId = this.dataForm.communityId = this.dataForm.gridId = null - this.communityList = this.gridList = [] + this.dataForm.streetId = this.dataForm.communityId = this.dataForm.deptId = null + this.communityList = this.deptList = [] }, downloadHandle (codeUrl) { window.location.href = `${window.SITE_CONFIG['apiURL']}/oss/file/download?fileUrl=${codeUrl}` @@ -295,7 +295,7 @@ export default { sentryManage (id) { this.epidemicSentryPostVisible = true this.$nextTick(() => { - this.$refs.epidemicSentryPost.dataForm.gridId = id + this.$refs.epidemicSentryPost.dataForm.deptId = id this.$refs.epidemicSentryPost.init() }) }, diff --git a/src/views/modules/sys/deptmacode.vue b/src/views/modules/sys/deptmacode.vue index 5787541..6442e77 100644 --- a/src/views/modules/sys/deptmacode.vue +++ b/src/views/modules/sys/deptmacode.vue @@ -74,7 +74,7 @@ label="社区" header-align="center" align="center"> - @@ -119,13 +119,13 @@ 哨卡管理 + @click="sentryManage(scope.row.deptId)">哨卡管理 生成 + @click="createDeptMaCodeHandle(scope.row.deptId)">生成 @@ -161,7 +161,7 @@ export default { dataForm: { streetId: null, communityId: null, - gridId: null, + deptId: null, leaderFlag: '0' }, epidemicSentryPostVisible: false, @@ -170,7 +170,7 @@ export default { options: [], streetList: [], communityList: [], - gridList: [], + deptList: [], maCodeCategorys: [ { id: '0', name: '群众注册码' }, { id: '1', name: '网格长注册码' } @@ -197,22 +197,22 @@ export default { if (val.length === 0) { this.dataForm.streetId = '' this.dataForm.communityId = '' - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 1) { this.dataForm.streetId = this.deptIdList[0] this.dataForm.communityId = '' - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 2) { this.dataForm.streetId = this.deptIdList[0] this.dataForm.communityId = this.deptIdList[1] - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 3) { this.dataForm.streetId = this.deptIdList[0] this.dataForm.communityId = this.deptIdList[1] - this.dataForm.gridId = this.deptIdList[2] + this.dataForm.deptId = this.deptIdList[2] } } }, @@ -311,8 +311,8 @@ export default { .catch(() => { }) }, clearDataForm () { - this.dataForm.streetId = this.dataForm.communityId = this.dataForm.gridId = null - this.communityList = this.gridList = [] + this.dataForm.streetId = this.dataForm.communityId = this.dataForm.deptId = null + this.communityList = this.deptList = [] }, downloadHandle (codeUrl) { window.location.href = `${window.SITE_CONFIG['apiURL']}/oss/file/download?fileUrl=${codeUrl}` @@ -321,7 +321,7 @@ export default { sentryManage (id) { this.epidemicSentryPostVisible = true this.$nextTick(() => { - this.$refs.epidemicSentryPost.dataForm.gridId = id + this.$refs.epidemicSentryPost.dataForm.deptId = id this.$refs.epidemicSentryPost.init() }) },