调整村务公开

This commit is contained in:
aixianling
2022-03-14 12:21:24 +08:00
parent f2508c5823
commit edf03dbb5d
4 changed files with 274 additions and 269 deletions

View File

@@ -20,58 +20,58 @@
</template>
<script>
export default {
name: 'detail',
export default {
name: 'detail',
props: {
instance: Function,
dict: Object,
permissions: Function,
},
props: {
instance: Function,
dict: Object,
permissions: Function,
params: Object
},
data() {
return {
info: {}
}
},
computed: {
params() {
return this.$route.query
}
},
mounted() {
this.getInfo()
},
data () {
return {
info: {}
}
},
mounted () {
this.getInfo()
},
methods: {
getInfo () {
this.instance.post(`/appvillageinfo/queryDetailById?id=${this.params.id}`).then(res => {
if (res.code === 0) {
this.info = res.data
if (res.data.thumbUrl) {
this.info.thumbUrl = JSON.parse(res.data.thumbUrl)
}
methods: {
getInfo() {
this.instance.post(`/appvillageinfo/queryDetailById?id=${this.params.id}`).then(res => {
if (res?.data) {
this.info = res.data
if (res.data.thumbUrl) {
this.info.thumbUrl = JSON.parse(res.data.thumbUrl)
}
})
},
}
})
},
onBack () {
this.$emit('change', {
type: 'list'
})
}
onBack() {
this.$router.push({})
}
}
}
</script>
<style scoped lang="scss">
.cover {
display: block;
width: 300px;
height: 140px;
margin: 20px auto;
}
.cover {
display: block;
width: 300px;
height: 140px;
margin: 20px auto;
}
.subTitle {
text-align: center;
font-size: 12px;
font-weight: normal;
}
.subTitle {
text-align: center;
font-size: 12px;
font-weight: normal;
}
</style>