diff --git a/src/views/modules/custom/enterpriseinfo.vue b/src/views/modules/custom/enterpriseinfo.vue index 499fd38..796937a 100644 --- a/src/views/modules/custom/enterpriseinfo.vue +++ b/src/views/modules/custom/enterpriseinfo.vue @@ -113,22 +113,22 @@ if (val.length === 0) { this.dataForm.streetId = '' this.dataForm.communityId = '' - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 1) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = '' - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] - this.dataForm.gridId = this.ids[2] + this.dataForm.deptId = this.ids[2] } } }, diff --git a/src/views/modules/custom/epidemic.vue b/src/views/modules/custom/epidemic.vue index 91b81a9..59e6cb0 100644 --- a/src/views/modules/custom/epidemic.vue +++ b/src/views/modules/custom/epidemic.vue @@ -90,7 +90,7 @@ export default { endTime: '', streetId: '', communityId: '', - gridId: '', + deptId: '', reporter: '', mobile: '' }, @@ -125,22 +125,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.ids[0] this.dataForm.communityId = '' - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] - this.dataForm.gridId = '' + this.dataForm.deptId = '' } if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] - this.dataForm.gridId = this.ids[2] + this.dataForm.deptId = this.ids[2] } } }, @@ -154,11 +154,11 @@ export default { }).catch(() => {}) }, btKeyUpReporter(e){ - e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') + e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') this.dataForm.reporter= e.target.value }, btKeyUpMobile(e){ - e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') + e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') this.dataForm.mobile= e.target.value }, } diff --git a/src/views/modules/custom/epidemicsentrypost-add-or-update.vue b/src/views/modules/custom/epidemicsentrypost-add-or-update.vue index d9db5e6..adcb53a 100644 --- a/src/views/modules/custom/epidemicsentrypost-add-or-update.vue +++ b/src/views/modules/custom/epidemicsentrypost-add-or-update.vue @@ -43,7 +43,7 @@ export default { dataForm: { id: '', sentryPostCode: '', - gridId: '' + deptId: '' }, verifyOptions: [] } diff --git a/src/views/modules/custom/epidemicsentrypost.vue b/src/views/modules/custom/epidemicsentrypost.vue index 10c52c0..afd03be 100644 --- a/src/views/modules/custom/epidemicsentrypost.vue +++ b/src/views/modules/custom/epidemicsentrypost.vue @@ -88,7 +88,7 @@ export default { visible: false, dataForm: { id: '', - gridId: '', + deptId: '', sentryPostCode: '' } } @@ -97,13 +97,13 @@ export default { init () { this.visible = true this.dataForm.sentryPostCode = '' - this.getDataList(this.dataForm.gridId) + this.getDataList(this.dataForm.deptId) }, // 新增 修改 addOrUpdateHandle () { this.addOrUpdateVisible = true this.$nextTick(() => { - this.$refs.addOrUpdate.dataForm.gridId = this.dataForm.gridId + this.$refs.addOrUpdate.dataForm.deptId = this.dataForm.deptId this.$refs.addOrUpdate.init() }) }, @@ -114,14 +114,14 @@ export default { // 批量生成功能 initDeptMaCodeHandle () { this.$http - .post(`custom/epidemicSentryPost/createCodes`, { gridId: this.dataForm.gridId }) + .post(`custom/epidemicSentryPost/createCodes`, { deptId: this.dataForm.deptId }) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } }) .catch(() => {}) - this.getDataList(this.dataForm.gridId) + this.getDataList(this.dataForm.deptId) }, // 单独生成哨卡码 singleMaCodeHandle (id) { @@ -133,7 +133,7 @@ export default { } }) .catch(() => {}) - this.getDataList(this.dataForm.gridId) + this.getDataList(this.dataForm.deptId) } }, components: { diff --git a/src/views/modules/custom/gridoperatorinfo.vue b/src/views/modules/custom/gridoperatorinfo.vue index 8368c97..a4aee7c 100644 --- a/src/views/modules/custom/gridoperatorinfo.vue +++ b/src/views/modules/custom/gridoperatorinfo.vue @@ -62,7 +62,7 @@ label="所属网格" header-align="center" align="center" min-width="200" show-overflow-tooltip - + > - + {{ $t('query') }} @@ -15,7 +15,7 @@ - + @@ -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() }) },