|
|
|
@ -50,9 +50,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<div class="btn-gather" v-show="houseData.color == 'NO'">
|
|
|
|
|
确认空关
|
|
|
|
|
</div>
|
|
|
|
|
<imageButton
|
|
|
|
|
v-show="houseData.color == 'NO'"
|
|
|
|
|
size="small"
|
|
|
|
|
@handlerClcik="handlerhousEempty()"
|
|
|
|
|
>确认空关</imageButton
|
|
|
|
|
>
|
|
|
|
|
<!-- <div class="btn-add"></div> -->
|
|
|
|
|
<imageButton size="small" @handlerClcik="addPerson()"
|
|
|
|
|
>添加居民</imageButton
|
|
|
|
@ -299,7 +302,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { mapGetters } from "vuex";
|
|
|
|
|
import { getHouse } from "@/api/taicangpop/house.js";
|
|
|
|
|
import { getHouse, updateHouse } from "@/api/taicangpop/house.js";
|
|
|
|
|
import {
|
|
|
|
|
listPerson,
|
|
|
|
|
addPerson,
|
|
|
|
@ -406,6 +409,18 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
this.multiple = [];
|
|
|
|
|
},
|
|
|
|
|
handlerhousEempty() {
|
|
|
|
|
let id = this.houseData.id;
|
|
|
|
|
this.$modal
|
|
|
|
|
.confirm('是否确认空关编号为"' + id + '"的数据项?')
|
|
|
|
|
.then(function () {
|
|
|
|
|
return updateHouse({ id: id });
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.$modal.msgSuccess("空关保存成功");
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
async getPersonInfo(id) {
|
|
|
|
|
let res = await getPerson(id);
|
|
|
|
|
this.reset();
|
|
|
|
|