-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -161,20 +157,39 @@ import QcQuestion from './components/qcQuestion'
import ImagesToRead from './components/imagesToRead'
import MedicalFeedback from './components/medicalFeedback'
import MedicalAudit from './components/medicalAudit'
+
+import { getUserTobeDoneRecord, getNeedSignTrialDocTrialIdList } from '@/api/trials'
+
export default {
name: 'WorkBench',
components: { clinicalDataConfirm, clinicalDataPM, PanelCount, NeedSignTrialDoc, SiteResearch, NeedSignSysDoc, consistencyCheck, clinicalData, RereadApproval, ReviewerScreen, ReviewerApproval, SpmRereadApproval, ImageQuestion, ImageVerification, ImageReupload, ImageSubmission, ImageQualityControl, QcQuestion, ImagesToRead, MedicalFeedback, MedicalAudit },
data() {
return {
- isSignSystemDoc: false
+ isSignSystemDoc: false,
+ trialIdList: []
}
},
+ mounted() {
+ this.getUserTobeDoneRecord()
+ this.getNeedSignTrialDocTrialIdList()
+ },
methods: {
getSignSystemDocCount(count) {
this.isSignSystemDoc = count > 0
},
refreshStats() {
this.$refs['panelCount'].getData()
+ },
+ getNeedSignTrialDocTrialIdList() {
+ getNeedSignTrialDocTrialIdList().then(res => {
+ console.log(res)
+ this.trialIdList = res.Result
+ })
+ },
+ getUserTobeDoneRecord() {
+ getUserTobeDoneRecord().then(res => {
+ console.log(res)
+ })
}
}
}