阅片人页面的工作量统计,改为二级查询
parent
3a6956c031
commit
8c83897c6e
|
|
@ -4474,4 +4474,11 @@ export function getTrialUnreadVisitList(params) {
|
|||
method: 'get',
|
||||
params,
|
||||
})
|
||||
}
|
||||
export function getDoctorUserTrialReadingStat(data) {
|
||||
return request({
|
||||
url: `/DoctorWorkload/getDoctorUserTrialReadingStat`,
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
|
@ -217,6 +217,14 @@
|
|||
)
|
||||
}).TotalCount
|
||||
}}
|
||||
<el-button type="text" @click="
|
||||
statistics(
|
||||
scope.row,
|
||||
ite.TrialReadingCriterionId
|
||||
)
|
||||
">
|
||||
{{ $t('trials:enrolledReviews:button:Statistics') }}
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
@ -351,6 +359,7 @@ import {
|
|||
enrollBackOrOut,
|
||||
setEnrollReadingCategory,
|
||||
batchSetCriterionJoinJoinAnalysis,
|
||||
getDoctorUserTrialReadingStat
|
||||
} from '@/api/trials'
|
||||
import { addDoctorCriterionFile } from '@/api/reviewers'
|
||||
import { uploadFile } from '@/api/attachment'
|
||||
|
|
@ -470,6 +479,28 @@ export default {
|
|||
this.initPage()
|
||||
},
|
||||
methods: {
|
||||
async statistics(row, id) {
|
||||
try {
|
||||
let data = {
|
||||
TrialId: this.$route.query.trialId,
|
||||
TrialReadingCriterionId: id,
|
||||
DoctoruserIdList: [row.DoctorUserId]
|
||||
}
|
||||
let res = await getDoctorUserTrialReadingStat(data)
|
||||
if (res.IsSuccess && res.Result[0]) {
|
||||
row.CriterionCategoryList.some((v) => {
|
||||
if (v.TrialReadingCriterionId === id) {
|
||||
v.PendingCount = res.Result[0].PendingCount
|
||||
v.ComplectedCount = res.Result[0].ComplectedCount
|
||||
v.TotalCount = res.Result[0].TotalCount
|
||||
}
|
||||
return v.TrialReadingCriterionId === id
|
||||
})
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
// 预览
|
||||
preview(row, TrialReadingCriterionId, key) {
|
||||
let file = row.CriterionCategoryList.find((v) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue