Browse Source

居民画像居民详情弹窗修改

feature
张若晨 2 years ago
parent
commit
a30e8d0062
  1. 1
      src/views/dataBoard/cpts/personnel/index.vue
  2. 11
      src/views/dataBoard/cpts/resi-details.vue

1
src/views/dataBoard/cpts/personnel/index.vue

@ -30,6 +30,7 @@
<resi-details <resi-details
@close="popupShow = false" @close="popupShow = false"
:resi-id="resId" :resi-id="resId"
:popupShow="popupShow"
v-if="popupShow" v-if="popupShow"
/> />
</div> </div>

11
src/views/dataBoard/cpts/resi-details.vue

@ -1,5 +1,5 @@
<template> <template>
<popup title="居民详情" @close="handleClose"> <popup title="居民详情" v-if="popupShow" @close="handleClose">
<template v-slot:cnt> <template v-slot:cnt>
<div class="m-info"> <div class="m-info">
<div class="subtitle"> <div class="subtitle">
@ -671,6 +671,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
popupShow: {
type: Boolean,
default: false,
},
}, },
components: { popup }, components: { popup },
@ -837,11 +841,14 @@ export default {
}; };
}, },
watch: { watch: {
resiId(val) { popupShow: {
handler(val) {
if (val) { if (val) {
this.getApiData(); this.getApiData();
} }
}, },
immediate: true,
},
}, },
computed: { computed: {
currentTab() { currentTab() {

Loading…
Cancel
Save