BUG 26284
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
<div class="item" v-if="houseInfo.livingStatus == 1">
|
||||
<span class="label">起租日期</span>
|
||||
<div class="value" @click="dateShow=true">
|
||||
<span :class="houseInfo.startDate === '' ? 'color-999' : ''">{{ houseInfo.startDate || '请选择' }}</span>
|
||||
<span :class="houseInfo.startDate === '' ? 'color-999' : ''">{{ $dateFormat(houseInfo.startDate,'YYYY-MM-DD') || '请选择' }}</span>
|
||||
<u-icon name="arrow-right" color="#cccccc" size="14"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -167,9 +167,6 @@ export default {
|
||||
let {id} = this.$route.query
|
||||
id && this.$http.post(`app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
|
||||
if (res?.data) {
|
||||
if (res.data.startDate) {
|
||||
res.data.startDate = res.data.startDate.substring(0, 10)
|
||||
}
|
||||
this.houseInfo = res.data
|
||||
}
|
||||
})
|
||||
@@ -193,7 +190,7 @@ export default {
|
||||
this.houseInfo[this.formName] = e[0].value
|
||||
},
|
||||
dateConfirm(e) {
|
||||
this.houseInfo.startDate = `${e.year}-${e.month}-${e.day}`
|
||||
this.houseInfo.startDate = `${e.year}-${e.month}-${e.day} 00:00:00`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<div class="row-item center">
|
||||
<span class="right-line"></span>
|
||||
<span class="left-line"></span>
|
||||
<h3>{{ houseInfo.startDate }}</h3>
|
||||
<h3>{{ $dateFormat(houseInfo.startDate,'YYYY-MM-DD') }}</h3>
|
||||
<p>起租日期</p>
|
||||
</div>
|
||||
<div class="row-item right">
|
||||
@@ -228,10 +228,7 @@ export default {
|
||||
getHouseDetail(id) {
|
||||
this.houseId = id
|
||||
this.$http.post(`app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data.startDate) {
|
||||
res.data.startDate = res.data.startDate.substring(0, 10)
|
||||
}
|
||||
if (res?.data) {
|
||||
this.houseInfo = res.data
|
||||
this.show = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user