This commit is contained in:
zhutianqi
2022-01-13 09:49:30 +08:00
parent e3c496eda0
commit b8a3ada256
2 changed files with 10 additions and 2 deletions
@@ -838,7 +838,11 @@
bpnId: this.$route.query.bpnId
}).then(res => {
let mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
if (mes.form.date) {
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
} else {
mes.form.date = ''
}
this.form = mes.form
this.roleForm = mes.roleForm
this.commentText1 = mes.commentText1 || ''
@@ -659,7 +659,11 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
let mes = JSON.parse(res.mes)
mes.form.endTime = new Date(this.$moment(mes.form.endTime).format('YYYY-MM-DD'))
if (mes.form.endTime) {
mes.form.endTime = new Date(this.$moment(mes.form.endTime).format('YYYY-MM-DD'))
} else {
mes.form.endTime = ''
}
this.form = mes.form
this.roleForm = mes.roleForm
this.commentText1 = mes.commentText1 || ''