diff --git a/src/api/trials.js b/src/api/trials.js index b6b4fa94..1a974b52 100644 --- a/src/api/trials.js +++ b/src/api/trials.js @@ -3582,6 +3582,15 @@ export function getUpdateVirtualSiteCodeList(param) { }) } +export function addDefaultQuestions(param) { + return request({ + url: `/ReadingMedicineQuestion/addDefaultQuestions`, + method: 'post', + data: param + }) +} + + export function getReadingCalculationData(param) { return request({ diff --git a/src/components/clinicalDataQuestions/components/uploadClinicalData.vue b/src/components/clinicalDataQuestions/components/uploadClinicalData.vue index a523a6c8..69ab47d4 100644 --- a/src/components/clinicalDataQuestions/components/uploadClinicalData.vue +++ b/src/components/clinicalDataQuestions/components/uploadClinicalData.vue @@ -237,7 +237,7 @@ icon="el-icon-download" size="small" :loading="downloadLoading" - @click.native.prevent="handleDownloadTpl(cd.ClinicalDataTrialSetId)" + @click.native.prevent="handleDownloadTpl(cd)" > {{ $t('trials:uploadClinicalData:button:downloadTemplate') }} @@ -551,11 +551,8 @@ export default { }) }) }, - handleDownloadTpl(clinicalDataTrialSetId) { - this.downloadLoading = true - DownloadTrialClinicalFile(clinicalDataTrialSetId).then(data => { - this.downloadLoading = false - }).catch(() => { this.downloadLoading = false }) + handleDownloadTpl(cd) { + window.open(this.OSSclientConfig.basePath + cd.Path) } } diff --git a/src/views/trials/trials-panel/reading/consistency-analysis/index.vue b/src/views/trials/trials-panel/reading/consistency-analysis/index.vue index e2edba42..05f4845c 100644 --- a/src/views/trials/trials-panel/reading/consistency-analysis/index.vue +++ b/src/views/trials/trials-panel/reading/consistency-analysis/index.vue @@ -676,7 +676,7 @@ export default { DoctorUserList: [], btnLoading: false, rowData: {}, - OtherInfo: null, + OtherInfo: {}, title: null, SelectList: [], TaskConsistentRuleList: [], diff --git a/src/views/trials/trials-panel/setting/medical-audit/components/DefaultQsLang.vue b/src/views/trials/trials-panel/setting/medical-audit/components/DefaultQsLang.vue new file mode 100644 index 00000000..37359397 --- /dev/null +++ b/src/views/trials/trials-panel/setting/medical-audit/components/DefaultQsLang.vue @@ -0,0 +1,147 @@ +/* eslint-disable */ + + + diff --git a/src/views/trials/trials-panel/setting/medical-audit/index.vue b/src/views/trials/trials-panel/setting/medical-audit/index.vue index d205dfde..eed30070 100644 --- a/src/views/trials/trials-panel/setting/medical-audit/index.vue +++ b/src/views/trials/trials-panel/setting/medical-audit/index.vue @@ -275,14 +275,13 @@ -
- -
+ +
@@ -343,7 +342,7 @@ import { batchDeteteCriterionMedicineQuestion, getReadingMedicineTrialQuestionList, deleteReadingMedicineTrialQuestion, confirmReadingMedicineQuestion, verifyReadingMedicineQuestion } from '@/api/trials' import { getTrialCriterionList } from '@/api/trials/reading' import BoxContent from '@/components/BoxContent' -import DefaultQS from './components/DefaultQS' +import DefaultQS from './components/DefaultQsLang' import QSForm from './components/QSForm' import Pagination from '@/components/Pagination' import QuestionsPreview from './components/QuestionsPreview' diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadClinicalData.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadClinicalData.vue index f4060040..cfeeba47 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadClinicalData.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadClinicalData.vue @@ -234,7 +234,7 @@ icon="el-icon-download" size="small" :loading="downloadLoading" - @click.native.prevent="handleDownloadTpl(cd.ClinicalDataTrialSetId)" + @click.native.prevent="handleDownloadTpl(cd)" > {{ $t('trials:uploadClinicalData:button:downloadTemplate') }} @@ -607,11 +607,8 @@ export default { }) }) }, - handleDownloadTpl(clinicalDataTrialSetId) { - this.downloadLoading = true - DownloadTrialClinicalFile(clinicalDataTrialSetId).then(data => { - this.downloadLoading = false - }).catch(() => { this.downloadLoading = false }) + handleDownloadTpl(cd) { + window.open(this.OSSclientConfig.basePath + cd.Path) } } diff --git a/src/views/trials/trials-workbench/components/panelCount.vue b/src/views/trials/trials-workbench/components/panelCount.vue index f763fca0..e6aa9564 100644 --- a/src/views/trials/trials-workbench/components/panelCount.vue +++ b/src/views/trials/trials-workbench/components/panelCount.vue @@ -36,22 +36,22 @@ - -
-
- -
-
-
- - {{ $t('trials:workbench:label:pendingTasksStats') }} -
-
- -
-
-
-
+ + + + + + + + + + + + + + + +
diff --git a/src/views/trials/trials-workbench/index.vue b/src/views/trials/trials-workbench/index.vue index 5c2d7c95..33f826e9 100644 --- a/src/views/trials/trials-workbench/index.vue +++ b/src/views/trials/trials-workbench/index.vue @@ -4,7 +4,10 @@
-
+
+
+ {{ $t('trials:workbench:label:pendingTasksStats') }} ({{tabList.TotalCount}}) +
@@ -85,7 +88,7 @@ - + @@ -130,7 +133,8 @@ export default { isSignSystemDoc: false, trialIdList: [], tabList: {}, - activeName: '' + activeName: '', + width: 0 } }, mounted() { @@ -138,16 +142,30 @@ export default { this.getNeedSignTrialDocTrialIdList() }, methods: { + tabClick(e) { + console.log(e) + }, getSignSystemDocCount(count) { this.isSignSystemDoc = count > 0 }, refreshStats() { this.$refs['panelCount'].getData() + this.getNeedSignTrialDocTrialIdList() }, getNeedSignTrialDocTrialIdList() { getNeedSignTrialDocTrialIdList().then(res => { console.log(res) this.trialIdList = res.Result + this.$nextTick(() => { + this.width = document.querySelector('.el-tabs__nav-scroll').clientWidth - 75 + var list = document.querySelectorAll('div[aria-controls]') + list.forEach((v, i) => { + if (i === 0) { + let item = v.getAttribute('aria-controls') + this.activeName = item.split('-')[1] + } + }) + }) }) }, getUserTobeDoneRecord() { @@ -161,6 +179,12 @@ export default {