工作台用户名
parent
56a8e738d3
commit
78685918a9
|
@ -120,8 +120,8 @@ export default {
|
|||
Description: '',
|
||||
IsBaseLine: false,
|
||||
// BlindName: '',
|
||||
VisitWindowLeft: -3,
|
||||
VisitWindowRight: 3,
|
||||
VisitWindowLeft: -5,
|
||||
VisitWindowRight: 5,
|
||||
IsConfirmed: false,
|
||||
IsDeleted: false,
|
||||
IsHaveFirstConfirmed: false
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
>
|
||||
<template slot-scope="scope">
|
||||
<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>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -286,7 +286,7 @@ export default {
|
|||
})
|
||||
},
|
||||
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()
|
||||
if (this.list.length === 0) {
|
||||
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.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
|
||||
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.visible = true
|
||||
|
|
Loading…
Reference in New Issue