diff --git a/src/views/modules/personroom/epidemicbuildingunit.vue b/src/views/modules/personroom/epidemicbuildingunit.vue index 59c35ad..814514f 100644 --- a/src/views/modules/personroom/epidemicbuildingunit.vue +++ b/src/views/modules/personroom/epidemicbuildingunit.vue @@ -141,6 +141,10 @@ 数据初始化 + + 房屋码初始化 + 生成缩略图 @@ -327,6 +331,17 @@ export default { message: '更新中,请稍后' }); }, + updateCode () { + this.$http.post(`/custom/epidemicbuildingunit/updateRoomCode`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + type: 'warning', + message: '批量生中,请稍后' + }); + }).catch(() => {}) + }, updateMaUrl () { this.$http.post(`/custom/epidemicbuildingunit/createBatchHouseCodeAndUrl`).then(({ data: res }) => { if (res.code !== 0) {