2021-12-08 18:33:21 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="detail">
|
2021-12-09 17:44:57 +08:00
|
|
|
|
<div class="header-top">
|
2021-12-14 15:51:00 +08:00
|
|
|
|
<div class="hint">{{ data.title }}</div>
|
2021-12-09 17:44:57 +08:00
|
|
|
|
|
|
|
|
|
|
<div class="walk-item">
|
|
|
|
|
|
<span>走访对象:</span>
|
2021-12-14 15:51:00 +08:00
|
|
|
|
<span>{{ data.createUserName }}</span>
|
2021-12-09 17:44:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2021-12-14 15:51:00 +08:00
|
|
|
|
<div class="walk-item" v-if="data.reality">
|
2021-12-09 17:44:57 +08:00
|
|
|
|
<span>现实状态:</span>
|
2021-12-14 15:51:00 +08:00
|
|
|
|
<span>{{ $dict.getLabel('realityStatus', data.reality) }} </span>
|
2021-12-09 17:44:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="walk-item">
|
|
|
|
|
|
<span>走访人员:</span>
|
2021-12-14 15:51:00 +08:00
|
|
|
|
<span>{{ data.createUserName }}</span>
|
2021-12-09 17:44:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="walk-item">
|
|
|
|
|
|
<span>走访时间:</span>
|
2021-12-14 15:51:00 +08:00
|
|
|
|
<span>{{ data.createTime }}</span>
|
2021-12-09 17:44:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="header-middle">
|
2021-12-14 15:51:00 +08:00
|
|
|
|
<div class="hint-con" v-if="data.description">{{ data.description }}</div>
|
2021-12-09 17:44:57 +08:00
|
|
|
|
|
|
|
|
|
|
<div class="imgs">
|
2021-12-22 17:49:36 +08:00
|
|
|
|
<img :src="item.url" alt="" v-for="(item, index) in data.images" :key="index" />
|
2021-12-09 17:44:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-12-08 18:33:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: 'detail',
|
2021-12-13 18:55:01 +08:00
|
|
|
|
components: {},
|
2021-12-14 15:51:00 +08:00
|
|
|
|
props: {
|
|
|
|
|
|
params: {},
|
|
|
|
|
|
},
|
2021-12-08 18:33:21 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2021-12-13 11:50:28 +08:00
|
|
|
|
data: {},
|
2021-12-24 13:58:52 +08:00
|
|
|
|
id: '',
|
2021-12-08 18:33:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
computed: {},
|
2021-12-24 13:58:52 +08:00
|
|
|
|
onLoad(o) {
|
|
|
|
|
|
this.id = o.id
|
2021-12-24 14:17:10 +08:00
|
|
|
|
document.title = '走访详情'
|
2021-12-14 15:51:00 +08:00
|
|
|
|
this.$dict.load('realityStatus').then(() => {
|
|
|
|
|
|
this.getDetail()
|
|
|
|
|
|
})
|
2021-12-13 11:50:28 +08:00
|
|
|
|
},
|
2021-12-22 17:49:36 +08:00
|
|
|
|
mounted() {},
|
2021-12-13 11:50:28 +08:00
|
|
|
|
methods: {
|
|
|
|
|
|
getDetail() {
|
2021-12-24 13:58:52 +08:00
|
|
|
|
this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.id}`).then((res) => {
|
2021-12-13 11:50:28 +08:00
|
|
|
|
if (res?.data) {
|
|
|
|
|
|
this.data = res.data
|
2021-12-14 15:51:00 +08:00
|
|
|
|
if (this.data.images) {
|
|
|
|
|
|
this.data.images = JSON.parse(this.data.images || '[]')
|
|
|
|
|
|
}
|
2021-12-13 11:50:28 +08:00
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
2021-12-08 18:33:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.detail {
|
|
|
|
|
|
height: 100%;
|
2021-12-22 17:49:36 +08:00
|
|
|
|
background: #fff;
|
2021-12-15 14:37:20 +08:00
|
|
|
|
|
2021-12-09 17:44:57 +08:00
|
|
|
|
.header-top {
|
|
|
|
|
|
background: #3975c6;
|
|
|
|
|
|
padding: 24px 32px 32px;
|
2021-12-15 14:37:20 +08:00
|
|
|
|
|
2021-12-09 17:44:57 +08:00
|
|
|
|
.hint {
|
|
|
|
|
|
font-size: 40px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
}
|
2021-12-15 14:37:20 +08:00
|
|
|
|
|
2021-12-09 17:44:57 +08:00
|
|
|
|
.walk-item {
|
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
|
color: #d7e3f3;
|
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-middle {
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
padding: 32px 32px 32px 32px;
|
2021-12-15 14:37:20 +08:00
|
|
|
|
|
2021-12-09 17:44:57 +08:00
|
|
|
|
.hint-con {
|
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
|
color: #666666;
|
|
|
|
|
|
}
|
2021-12-15 14:37:20 +08:00
|
|
|
|
|
2021-12-09 17:44:57 +08:00
|
|
|
|
.imgs {
|
|
|
|
|
|
margin: 32px 0 48px 0;
|
2021-12-15 14:37:20 +08:00
|
|
|
|
|
2021-12-09 17:44:57 +08:00
|
|
|
|
img {
|
|
|
|
|
|
width: 218px;
|
|
|
|
|
|
height: 218px;
|
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
|
}
|
2021-12-15 14:37:20 +08:00
|
|
|
|
|
2021-12-09 17:44:57 +08:00
|
|
|
|
img:nth-child(3n + 0) {
|
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-12-08 18:33:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|