工作台用户名

uat_us
熊飞 2024-03-13 17:50:33 +08:00
parent 56a8e738d3
commit 78685918a9
2 changed files with 8 additions and 4 deletions

View File

@ -120,8 +120,8 @@ export default {
Description: '', Description: '',
IsBaseLine: false, IsBaseLine: false,
// BlindName: '', // BlindName: '',
VisitWindowLeft: -3, VisitWindowLeft: -5,
VisitWindowRight: 3, VisitWindowRight: 5,
IsConfirmed: false, IsConfirmed: false,
IsDeleted: false, IsDeleted: false,
IsHaveFirstConfirmed: false IsHaveFirstConfirmed: false

View File

@ -103,7 +103,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-show="scope.row.VisitWindowLeft!==0 || scope.row.VisitWindowRight!==0"> <span v-show="scope.row.VisitWindowLeft!==0 || scope.row.VisitWindowRight!==0">
{{ `${scope.row.VisitWindowLeft}${$t('trials:visitPlan:table:day')} ~ ${scope.row.VisitWindowRight}${$t('trials:visitPlan:table:day')}` }} {{ `${scope.row.VisitWindowLeft} ${$t('trials:visitPlan:table:day')} ~ ${scope.row.VisitWindowRight} ${$t('trials:visitPlan:table:day')}` }}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
@ -286,7 +286,7 @@ export default {
}) })
}, },
handleAdd() { handleAdd() {
this.row = { TrialId: this.trialId, Id: '', IsBaseLine: false, BlindName: '', VisitWindowLeft: -3, VisitWindowRight: 3, Description: '' } this.row = { TrialId: this.trialId, Id: '', IsBaseLine: false, BlindName: '', VisitWindowLeft: -5, VisitWindowRight: 5, Description: '' }
this.timer = new Date().getTime() this.timer = new Date().getTime()
if (this.list.length === 0) { if (this.list.length === 0) {
this.row.VisitName = 'Baseline' this.row.VisitName = 'Baseline'
@ -300,6 +300,10 @@ export default {
this.row.VisitName = this.list[this.list.length - 1].VisitName.split(' ')[0] + ' ' + (this.list[this.list.length - 1].VisitNum + 1) this.row.VisitName = this.list[this.list.length - 1].VisitName.split(' ')[0] + ' ' + (this.list[this.list.length - 1].VisitNum + 1)
this.row.VisitNum = this.list[this.list.length - 1].VisitNum + 1 this.row.VisitNum = this.list[this.list.length - 1].VisitNum + 1
this.row.VisitDay = this.list[this.list.length - 1].VisitDay - this.list[this.list.length - 2].VisitDay + this.list[this.list.length - 1].VisitDay this.row.VisitDay = this.list[this.list.length - 1].VisitDay - this.list[this.list.length - 2].VisitDay + this.list[this.list.length - 1].VisitDay
if (this.list[this.list.length - 1].VisitWindowLeft && this.list[this.list.length - 1].VisitWindowRight) {
this.row.VisitWindowLeft = this.list[this.list.length - 1].VisitWindowLeft
this.row.VisitWindowRight = this.list[this.list.length - 1].VisitWindowRight
}
} }
this.visit_model.title = this.$t('common:button:add') this.visit_model.title = this.$t('common:button:add')
this.visit_model.visible = true this.visit_model.visible = true