阅片期临床数据表格数据为空时tip展示选项内容
parent
c2aad16566
commit
d5cb03209a
|
@ -391,7 +391,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getReadingClinicalDataList, deleteReadingClinicalData, ReadClinicalDataSign } from '@/api/trials'
|
import { getReadingClinicalDataList, deleteReadingClinicalData, ReadClinicalDataSign,getTrialClinicalDataSelect } from '@/api/trials'
|
||||||
import AddOrEditCD from './AddOrEditCD'
|
import AddOrEditCD from './AddOrEditCD'
|
||||||
import Verification from './Verification'
|
import Verification from './Verification'
|
||||||
import SignForm from '@/views/trials/components/newSignForm'
|
import SignForm from '@/views/trials/components/newSignForm'
|
||||||
|
@ -448,6 +448,33 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getClinicalDatas() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
let message='';
|
||||||
|
let currentData = Object.assign({}, { TrialId: this.data.TrialId, ReadingId: this.data.Id, IsVisit: this.data.IsVisit, SubjectId: this.data.SubjectId, IsBaseLine: this.data.IsBaseLine })
|
||||||
|
var param = {
|
||||||
|
trialId: currentData.TrialId,
|
||||||
|
IsVisit: currentData.IsVisit,
|
||||||
|
ReadingId: currentData.ReadingId,
|
||||||
|
SubjectId: currentData.SubjectId,
|
||||||
|
ReadingClinicalDataId: currentData.Id ? currentData.Id : '',
|
||||||
|
IsBaseLine: currentData.IsBaseLine,
|
||||||
|
TrialReadingCriterionId: this.trialReadingCriterionId
|
||||||
|
}
|
||||||
|
getTrialClinicalDataSelect(param).then(res => {
|
||||||
|
res.Result.forEach((item,index)=>{
|
||||||
|
if(index<1){
|
||||||
|
message += item.ClinicalDataSetName;
|
||||||
|
}else{
|
||||||
|
message =message + "、" + item.ClinicalDataSetName;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
resolve(message)
|
||||||
|
}).catch(() => {
|
||||||
|
reject()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
||||||
if (columnIndex === 6 && row.IsNeedMerge) {
|
if (columnIndex === 6 && row.IsNeedMerge) {
|
||||||
const _row = this.spanArr[rowIndex]
|
const _row = this.spanArr[rowIndex]
|
||||||
|
@ -486,7 +513,7 @@ export default {
|
||||||
this.searchData.GetClinicalType = this.clinicalType
|
this.searchData.GetClinicalType = this.clinicalType
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getReadingClinicalDataList(this.searchData).then(res => {
|
getReadingClinicalDataList(this.searchData).then(async res => {
|
||||||
this.list = res.Result;
|
this.list = res.Result;
|
||||||
let message ="";
|
let message ="";
|
||||||
this.list.forEach((item,index)=>{
|
this.list.forEach((item,index)=>{
|
||||||
|
@ -496,6 +523,9 @@ export default {
|
||||||
message =message + "、" + item.ClinicalDataSetName;
|
message =message + "、" + item.ClinicalDataSetName;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if(message===""||!message){
|
||||||
|
message = await this.getClinicalDatas();
|
||||||
|
}
|
||||||
this.tips1 = this.$t('trials:readingPeriod:cd:title:tips1').replace('临床数据名称',message);
|
this.tips1 = this.$t('trials:readingPeriod:cd:title:tips1').replace('临床数据名称',message);
|
||||||
this.tips1 = this.tips1.replace("xxx",message);
|
this.tips1 = this.tips1.replace("xxx",message);
|
||||||
this.pos = 0
|
this.pos = 0
|
||||||
|
|
Loading…
Reference in New Issue