Browse Source

房屋码初始化

master
zhangyuan 3 years ago
parent
commit
67498bdd94
  1. 15
      src/views/modules/personroom/epidemicbuildingunit.vue

15
src/views/modules/personroom/epidemicbuildingunit.vue

@ -141,6 +141,10 @@
<el-button type="primary"
@click="updateMa">数据初始化</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="updateCode">房屋码初始化</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="updateMaUrl">生成缩略图</el-button>
@ -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) {

Loading…
Cancel
Save