From 84ada9bc737ff5447ecf951993b304cc1da71087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E9=A3=9E?= Date: Thu, 7 Mar 2024 13:46:18 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8C=BB=E5=AD=A6=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/trials.js | 9 ++ .../components/DefaultQsLang.vue | 147 ++++++++++++++++++ .../setting/medical-audit/index.vue | 11 +- 3 files changed, 161 insertions(+), 6 deletions(-) create mode 100644 src/views/trials/trials-panel/setting/medical-audit/components/DefaultQsLang.vue diff --git a/src/api/trials.js b/src/api/trials.js index 53546b1c..f7d96845 100644 --- a/src/api/trials.js +++ b/src/api/trials.js @@ -3582,5 +3582,14 @@ export function getUpdateVirtualSiteCodeList(param) { }) } +export function addDefaultQuestions(param) { + return request({ + url: `/ReadingMedicineQuestion/addDefaultQuestions`, + method: 'post', + data: param + }) +} + + 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' From 3fcefdb1f41131af8a2db3ed34b990d9aa202e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E9=A3=9E?= Date: Thu, 7 Mar 2024 15:10:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/consistency-analysis/index.vue | 2 +- .../components/panelCount.vue | 32 +++++++++---------- src/views/trials/trials-workbench/index.vue | 29 +++++++++++++++-- 3 files changed, 43 insertions(+), 20 deletions(-) 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-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..f030f2e0 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,6 +142,9 @@ export default { this.getNeedSignTrialDocTrialIdList() }, methods: { + tabClick(e) { + console.log(e) + }, getSignSystemDocCount(count) { this.isSignSystemDoc = count > 0 }, @@ -148,6 +155,16 @@ export default { 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 +178,12 @@ export default {