阅片人页面的工作量统计,改为二级查询
parent
3a6956c031
commit
8c83897c6e
|
|
@ -4475,3 +4475,10 @@ export function getTrialUnreadVisitList(params) {
|
||||||
params,
|
params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getDoctorUserTrialReadingStat(data) {
|
||||||
|
return request({
|
||||||
|
url: `/DoctorWorkload/getDoctorUserTrialReadingStat`,
|
||||||
|
method: 'post',
|
||||||
|
data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue