阅片人页面的工作量统计,改为二级查询

rj
wangxiaoshuang 2026-06-09 16:15:26 +08:00
parent 3a6956c031
commit 8c83897c6e
2 changed files with 38 additions and 0 deletions

View File

@ -4475,3 +4475,10 @@ export function getTrialUnreadVisitList(params) {
params, params,
}) })
} }
export function getDoctorUserTrialReadingStat(data) {
return request({
url: `/DoctorWorkload/getDoctorUserTrialReadingStat`,
method: 'post',
data,
})
}

View File

@ -217,6 +217,14 @@
) )
}).TotalCount }).TotalCount
}} }}
<el-button type="text" @click="
statistics(
scope.row,
ite.TrialReadingCriterionId
)
">
{{ $t('trials:enrolledReviews:button:Statistics') }}
</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -351,6 +359,7 @@ import {
enrollBackOrOut, enrollBackOrOut,
setEnrollReadingCategory, setEnrollReadingCategory,
batchSetCriterionJoinJoinAnalysis, batchSetCriterionJoinJoinAnalysis,
getDoctorUserTrialReadingStat
} from '@/api/trials' } from '@/api/trials'
import { addDoctorCriterionFile } from '@/api/reviewers' import { addDoctorCriterionFile } from '@/api/reviewers'
import { uploadFile } from '@/api/attachment' import { uploadFile } from '@/api/attachment'
@ -470,6 +479,28 @@ export default {
this.initPage() this.initPage()
}, },
methods: { 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) { preview(row, TrialReadingCriterionId, key) {
let file = row.CriterionCategoryList.find((v) => { let file = row.CriterionCategoryList.find((v) => {