1
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
278c051f51
commit
fc98aa0312
|
@ -1,14 +1,26 @@
|
|||
<template>
|
||||
<BaseContainer>
|
||||
<el-tabs v-model="TrialReadingCriterionId" type="border-card">
|
||||
<el-tab-pane v-for="criterion of trialCriterionList" :key="criterion.TrialReadingCriterionId" :label="criterion.TrialReadingCriterionName" :name="criterion.TrialReadingCriterionId">
|
||||
<div v-if="TrialReadingCriterionId === criterion.TrialReadingCriterionId">
|
||||
<el-tab-pane
|
||||
v-for="criterion of trialCriterionList"
|
||||
:key="criterion.TrialReadingCriterionId"
|
||||
:label="criterion.TrialReadingCriterionName"
|
||||
:name="criterion.TrialReadingCriterionId"
|
||||
>
|
||||
<div
|
||||
v-if="TrialReadingCriterionId === criterion.TrialReadingCriterionId"
|
||||
>
|
||||
<div slot="search-container">
|
||||
<el-form :inline="true">
|
||||
<el-form-item :label="$t('trials:subject:table:site')">
|
||||
<el-select v-model="searchData.TrialSiteCode" clearable filterable style="width:130px;">
|
||||
<el-select
|
||||
v-model="searchData.TrialSiteCode"
|
||||
clearable
|
||||
filterable
|
||||
style="width: 130px"
|
||||
>
|
||||
<el-option
|
||||
v-for="(item,index) of siteOptions"
|
||||
v-for="(item, index) of siteOptions"
|
||||
:key="index"
|
||||
:label="item.TrialSiteCode"
|
||||
:value="item.TrialSiteCode"
|
||||
|
@ -17,29 +29,69 @@
|
|||
</el-form-item>
|
||||
<!-- Subject ID -->
|
||||
<el-form-item :label="$t('trials:subject:table:subjectId')">
|
||||
<el-input v-model="searchData.SubjectCode" style="width:130px;" />
|
||||
<el-input
|
||||
v-model="searchData.SubjectCode"
|
||||
style="width: 130px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- Status -->
|
||||
<el-form-item :label="$t('trials:subject:table:status')">
|
||||
<el-select v-model="searchData.SubjectStatus" clearable style="width:130px;">
|
||||
<el-option v-for="item of $d.Subject_Visit_Status" :key="item.value" :value="item.value" :label="item.label" />
|
||||
<el-select
|
||||
v-model="searchData.SubjectStatus"
|
||||
clearable
|
||||
style="width: 130px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.Subject_Visit_Status"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('trials:trials-panel:form:ParticipateEvaluation')">
|
||||
<el-select v-model="searchData.IsJoinEvaluation" clearable style="width:130px;">
|
||||
<el-option v-for="item of $d.YesOrNo" :key="item.value" :value="item.value" :label="item.label" />
|
||||
<el-form-item
|
||||
:label="$t('trials:trials-panel:form:ParticipateEvaluation')"
|
||||
>
|
||||
<el-select
|
||||
v-model="searchData.IsJoinEvaluation"
|
||||
clearable
|
||||
style="width: 130px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.YesOrNo"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('trials:subject:form:ImageSelect')">
|
||||
<el-select v-model="searchData.IsImageFiltering" clearable style="width:130px;">
|
||||
<el-option v-for="item of $d.YesOrNo" :key="item.value" :value="item.value" :label="item.label" />
|
||||
<el-select
|
||||
v-model="searchData.IsImageFiltering"
|
||||
clearable
|
||||
style="width: 130px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.YesOrNo"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
@click="handleSearch"
|
||||
>
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
<el-button type="primary" @click="handleSelect()">
|
||||
|
@ -51,7 +103,7 @@
|
|||
<div slot="main-container">
|
||||
<el-table
|
||||
ref="myTable"
|
||||
v-adaptive="{bottomOffset:75}"
|
||||
v-adaptive="{ bottomOffset: 75 }"
|
||||
v-loading="loading"
|
||||
:data="list"
|
||||
stripe
|
||||
|
@ -59,7 +111,11 @@
|
|||
@sort-change="handleSortChange"
|
||||
@selection-change="handleSelectChange"
|
||||
>
|
||||
<el-table-column type="selection" width="50" :selectable="handleSelectTable" />
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="50"
|
||||
:selectable="handleSelectTable"
|
||||
/>
|
||||
<el-table-column type="index" width="40" />
|
||||
<!-- 中心编号 -->
|
||||
<el-table-column
|
||||
|
@ -84,20 +140,44 @@
|
|||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.SubjectStatus === 1" type="primary">{{ $fd('Subject_Visit_Status', scope.row.SubjectStatus) }}</el-tag>
|
||||
<el-tag v-if="scope.row.SubjectStatus === 2" type="danger">{{ $fd('Subject_Visit_Status', scope.row.SubjectStatus) }}</el-tag>
|
||||
<el-tag v-if="scope.row.SubjectStatus === 1" type="primary">{{
|
||||
$fd('Subject_Visit_Status', scope.row.SubjectStatus)
|
||||
}}</el-tag>
|
||||
<el-tag v-if="scope.row.SubjectStatus === 2" type="danger">{{
|
||||
$fd('Subject_Visit_Status', scope.row.SubjectStatus)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:prop="item.QuestionId"
|
||||
v-for="(item, index) of OtherInfo"
|
||||
:label="$i18n.locale === 'zh' ? item.QuestionName : item.QuestionEnName"
|
||||
:label="
|
||||
$i18n.locale === 'zh'
|
||||
? item.QuestionName
|
||||
: item.QuestionEnName
|
||||
"
|
||||
show-overflow-tooltip
|
||||
:key="item.QuestionId"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip class="item" effect="dark" :content="getReadingEvaluationList(item.QuestionId, scope.row.ReadingEvaluationList)" placement="top">
|
||||
<span>{{$fd(scope.row.FinalEvaluationList[index].FinalTranslateDictionaryCode, parseInt(scope.row.FinalEvaluationList[index].Answer))}}</span>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="
|
||||
getReadingEvaluationList(
|
||||
item.QuestionId,
|
||||
scope.row.ReadingEvaluationList
|
||||
)
|
||||
"
|
||||
placement="top"
|
||||
>
|
||||
<span>{{
|
||||
$fd(
|
||||
scope.row.FinalEvaluationList[index]
|
||||
.FinalTranslateDictionaryCode,
|
||||
parseInt(scope.row.FinalEvaluationList[index].Answer)
|
||||
)
|
||||
}}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -110,8 +190,14 @@
|
|||
show-overflow-tooltip
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.IsJoinEvaluation" type="primary">{{ $fd('YesOrNo', scope.row.IsJoinEvaluation) }}</el-tag>
|
||||
<el-tag v-if="scope.row.IsJoinEvaluation === false" type="danger">{{ $fd('YesOrNo', scope.row.IsJoinEvaluation) }}</el-tag>
|
||||
<el-tag v-if="scope.row.IsJoinEvaluation" type="primary">{{
|
||||
$fd('YesOrNo', scope.row.IsJoinEvaluation)
|
||||
}}</el-tag>
|
||||
<el-tag
|
||||
v-if="scope.row.IsJoinEvaluation === false"
|
||||
type="danger"
|
||||
>{{ $fd('YesOrNo', scope.row.IsJoinEvaluation) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -122,14 +208,22 @@
|
|||
show-overflow-tooltip
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.IsImageFiltering" type="primary">{{ $fd('YesOrNo', scope.row.IsImageFiltering) }}</el-tag>
|
||||
<el-tag v-if="scope.row.IsImageFiltering === false" type="danger">{{ $fd('YesOrNo', scope.row.IsImageFiltering) }}</el-tag>
|
||||
<el-tag v-if="scope.row.IsImageFiltering" type="primary">{{
|
||||
$fd('YesOrNo', scope.row.IsImageFiltering)
|
||||
}}</el-tag>
|
||||
<el-tag
|
||||
v-if="scope.row.IsImageFiltering === false"
|
||||
type="danger"
|
||||
>{{ $fd('YesOrNo', scope.row.IsImageFiltering) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('common:action:action')"
|
||||
width="120"
|
||||
v-hasPermi="['trials:trials-panel:subject:brainMetastasis:Edit']"
|
||||
v-if="
|
||||
hasPermi(['trials:trials-panel:subject:brainMetastasis:Edit'])
|
||||
"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<!-- 选择受试者 -->
|
||||
|
@ -152,7 +246,13 @@
|
|||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- 分页组件 -->
|
||||
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" />
|
||||
<pagination
|
||||
class="page"
|
||||
:total="total"
|
||||
:page.sync="searchData.PageIndex"
|
||||
:limit.sync="searchData.PageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
<!-- 添加受试者阅片期 -->
|
||||
<el-dialog
|
||||
v-if="selectSubject.visible"
|
||||
|
@ -162,8 +262,18 @@
|
|||
custom-class="base-dialog-wrapper"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<select-subject v-if="!isBatch" :data="rowData" @close="selectSubject.visible = false" @getList="getList"></select-subject>
|
||||
<batch-select-subject v-else :select-list="selectList" @close="selectSubject.visible = false" @getList="getList"></batch-select-subject>
|
||||
<select-subject
|
||||
v-if="!isBatch"
|
||||
:data="rowData"
|
||||
@close="selectSubject.visible = false"
|
||||
@getList="getList"
|
||||
></select-subject>
|
||||
<batch-select-subject
|
||||
v-else
|
||||
:select-list="selectList"
|
||||
@close="selectSubject.visible = false"
|
||||
@getList="getList"
|
||||
></batch-select-subject>
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
v-if="selectSubjectImage.visible"
|
||||
|
@ -173,7 +283,11 @@
|
|||
custom-class="base-dialog-wrapper"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<select-subject-image :data="rowData" @close="selectSubjectImage.visible = false" @getList="getList"></select-subject-image>
|
||||
<select-subject-image
|
||||
:data="rowData"
|
||||
@close="selectSubjectImage.visible = false"
|
||||
@getList="getList"
|
||||
></select-subject-image>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -183,7 +297,15 @@
|
|||
</template>
|
||||
<script>
|
||||
import { getTrialCriterionList2, getTrialSiteSelect } from '@/api/trials'
|
||||
import { getSubjectCriteriaEvaluationList, batchAddOrUpdateSubjectCriteriaEvaluation, getSubjectCriteriaEvaluationVisitFilterList, getHaveGeneratedTaskList, batchGenerateTask, getVisitStudyAndSeriesList, batchAddSubjectCriteriaEvaluationVisitStudyFilter } from '@/api/trials/subject'
|
||||
import {
|
||||
getSubjectCriteriaEvaluationList,
|
||||
batchAddOrUpdateSubjectCriteriaEvaluation,
|
||||
getSubjectCriteriaEvaluationVisitFilterList,
|
||||
getHaveGeneratedTaskList,
|
||||
batchGenerateTask,
|
||||
getVisitStudyAndSeriesList,
|
||||
batchAddSubjectCriteriaEvaluationVisitStudyFilter,
|
||||
} from '@/api/trials/subject'
|
||||
import BaseContainer from '@/components/BaseContainer'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import batchSelectSubject from './components/batchSelectSubject'
|
||||
|
@ -199,12 +321,18 @@ const searchDataDefault = () => {
|
|||
Asc: true,
|
||||
SortField: null,
|
||||
PageIndex: 1,
|
||||
PageSize: 20
|
||||
PageSize: 20,
|
||||
}
|
||||
}
|
||||
const MinPlanCount = 10
|
||||
export default {
|
||||
components: { BaseContainer, Pagination, selectSubject, batchSelectSubject, selectSubjectImage },
|
||||
components: {
|
||||
BaseContainer,
|
||||
Pagination,
|
||||
selectSubject,
|
||||
batchSelectSubject,
|
||||
selectSubjectImage,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
OtherInfo: [],
|
||||
|
@ -215,12 +343,18 @@ export default {
|
|||
siteOptions: [],
|
||||
trialId: this.$route.query.trialId,
|
||||
list: [],
|
||||
selectSubject: { visible: false, title: this.$t('trials:subject:dialogTitle:SubjectsSelect') },
|
||||
selectSubject: {
|
||||
visible: false,
|
||||
title: this.$t('trials:subject:dialogTitle:SubjectsSelect'),
|
||||
},
|
||||
selectList: [],
|
||||
total: 0,
|
||||
rowData: null,
|
||||
isBatch: false,
|
||||
selectSubjectImage: { visible: false, title: this.$t('trials:subject:action:ImageSelect') },
|
||||
selectSubjectImage: {
|
||||
visible: false,
|
||||
title: this.$t('trials:subject:action:ImageSelect'),
|
||||
},
|
||||
}
|
||||
},
|
||||
name: 'TrialsNotice',
|
||||
|
@ -229,7 +363,7 @@ export default {
|
|||
if (v) {
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.getSite()
|
||||
|
@ -240,9 +374,11 @@ export default {
|
|||
return !row.IsJoinEvaluation
|
||||
},
|
||||
handleSelectSubjectImage(row) {
|
||||
this.rowData = {...row}
|
||||
this.rowData = { ...row }
|
||||
this.selectSubjectImage.visible = true
|
||||
this.selectSubjectImage.title = `${this.$t('trials:subject:action:ImageSelect')}(${row.SubjectCode})`
|
||||
this.selectSubjectImage.title = `${this.$t(
|
||||
'trials:subject:action:ImageSelect'
|
||||
)}(${row.SubjectCode})`
|
||||
},
|
||||
handleSelectChange(e) {
|
||||
this.selectList = e
|
||||
|
@ -250,7 +386,7 @@ export default {
|
|||
handleSelect(row) {
|
||||
this.isBatch = true
|
||||
if (row) {
|
||||
this.rowData = {...row}
|
||||
this.rowData = { ...row }
|
||||
this.isBatch = false
|
||||
} else {
|
||||
if (this.selectList.length === 0) {
|
||||
|
@ -280,12 +416,16 @@ export default {
|
|||
this.getList()
|
||||
},
|
||||
getReadingEvaluationList(QuestionId, list) {
|
||||
var arr = list.filter(v => {
|
||||
var arr = list.filter((v) => {
|
||||
return v.QuestionId === QuestionId
|
||||
})
|
||||
var text = ''
|
||||
arr.forEach(v => {
|
||||
text += ' ' + this.$fd('ArmEnum', v.ArmEnum) + ':' + this.$fd(v.FinalTranslateDictionaryCode, parseInt(v.Answer))
|
||||
arr.forEach((v) => {
|
||||
text +=
|
||||
' ' +
|
||||
this.$fd('ArmEnum', v.ArmEnum) +
|
||||
':' +
|
||||
this.$fd(v.FinalTranslateDictionaryCode, parseInt(v.Answer))
|
||||
})
|
||||
return text
|
||||
},
|
||||
|
@ -293,42 +433,45 @@ export default {
|
|||
getSubjectCriteriaEvaluationList({
|
||||
...this.searchData,
|
||||
TrialId: this.trialId,
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId
|
||||
}).then(res => {
|
||||
TrialReadingCriterionId: this.TrialReadingCriterionId,
|
||||
}).then((res) => {
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.OtherInfo = res.OtherInfo
|
||||
this.total = res.Result.TotalCount
|
||||
})
|
||||
},
|
||||
getTrialCriterionList() {
|
||||
getTrialCriterionList2(this.trialId, false).then(res => {
|
||||
this.trialCriterionList = res.Result
|
||||
this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
|
||||
}).catch(() => {})
|
||||
getTrialCriterionList2(this.trialId, false)
|
||||
.then((res) => {
|
||||
this.trialCriterionList = res.Result
|
||||
this.TrialReadingCriterionId =
|
||||
this.trialCriterionList[0].TrialReadingCriterionId
|
||||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
// 获取site下拉框数据
|
||||
getSite() {
|
||||
getTrialSiteSelect(this.trialId).then(res => {
|
||||
getTrialSiteSelect(this.trialId).then((res) => {
|
||||
this.siteOptions = res.Result
|
||||
})
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .hidden-row{
|
||||
display: none;
|
||||
}
|
||||
::v-deep .el-dialog__body {
|
||||
padding: 0px 20px;
|
||||
}
|
||||
::v-deep .el-dialog__header {
|
||||
padding: 10px 20px;
|
||||
}
|
||||
::v-deep .hidden-row {
|
||||
display: none;
|
||||
}
|
||||
::v-deep .el-dialog__body {
|
||||
padding: 0px 20px;
|
||||
}
|
||||
::v-deep .el-dialog__header {
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
::v-deep .el-tag--danger.el-tag--dark {
|
||||
// background-color: #f56c6c!important;
|
||||
border-color: none!important;
|
||||
// color: #fff!important;
|
||||
}
|
||||
::v-deep .el-tag--danger.el-tag--dark {
|
||||
// background-color: #f56c6c!important;
|
||||
border-color: none !important;
|
||||
// color: #fff!important;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue