From 2ffffd2bf04f199c00c1d8b4fb3f17cb2f00769c Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 31 Dec 2025 10:09:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting/reading-unit/index.vue | 4 +-- .../subject-list/components/SubjectChart.vue | 26 +++++++++++-------- .../trial-summary/report-forms/index.vue | 20 ++++++++------ 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/src/views/trials/trials-panel/setting/reading-unit/index.vue b/src/views/trials/trials-panel/setting/reading-unit/index.vue index 999de213..0505457c 100644 --- a/src/views/trials/trials-panel/setting/reading-unit/index.vue +++ b/src/views/trials/trials-panel/setting/reading-unit/index.vue @@ -232,9 +232,9 @@ export default { setReadingTools(data) { let { readingTools, isNoneDicom } = data if (isNoneDicom) { - this.readingTools = getCustomizeStandardsNoneDicomTools(readingTools).filter(item => item.toolName !== 'ArrowAnnotate') + this.readingTools = getCustomizeStandardsNoneDicomTools(readingTools) } else { - this.readingTools = getCustomizeStandardsTools(readingTools).filter(item => item.toolName !== 'ArrowAnnotate') + this.readingTools = getCustomizeStandardsTools(readingTools) } }, diff --git a/src/views/trials/trials-panel/subject/subject-list/components/SubjectChart.vue b/src/views/trials/trials-panel/subject/subject-list/components/SubjectChart.vue index 10c04f95..c3f5dd55 100644 --- a/src/views/trials/trials-panel/subject/subject-list/components/SubjectChart.vue +++ b/src/views/trials/trials-panel/subject/subject-list/components/SubjectChart.vue @@ -6,9 +6,9 @@ {{ data.Code }} - + + :label="item.TrialReadingCriterionName" :value="item.TrialReadingCriterionId" /> @@ -74,7 +74,7 @@ export default { return { loading: false, trialCriterionList: [], - CriterionType: null, + TrialReadingCriterionId: null, tableKey: [], tableList: [], R1ChartList: [], @@ -85,7 +85,7 @@ export default { this.getTrialCriterionList() }, methods: { - handleChange() { + handleChange(v) { this.getList() }, getTrialCriterionList() { @@ -93,7 +93,7 @@ export default { getTrialCriterionList(this.$route.query.trialId, false).then(res => { this.trialCriterionList = res.Result if (this.trialCriterionList.length > 0) { - this.CriterionType = this.trialCriterionList[0].CriterionType + this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId this.getList() this.loading = false } @@ -103,14 +103,13 @@ export default { try { let data = { SubjectId: this.data.Id, - CriterionType: this.CriterionType + TrialCriterionId: this.TrialReadingCriterionId } this.loading = true let res = await getReportsChartSummary(data) this.loading = false if (res.IsSuccess) { let Evaluation = res.Result.Evaluation.Evaluation - let DictionaryCode = res.Result.Evaluation.DictionaryCode this.tableKey = [ { title: this.$t(`subjectChart:table:label:visit`), @@ -119,8 +118,8 @@ export default { ] Evaluation[0].forEach(key => { let obj = { - title: key, - key + title: key.Value, + key: key.Value, } this.tableKey.push(obj) }) @@ -128,14 +127,19 @@ export default { if (Evaluation[1] && Evaluation[1].length > 0) { let obj = {} this.tableKey.forEach((item, index) => { - obj[item.key] = index === 0 ? 'R1' : DictionaryCode ? this.$fd(DictionaryCode, Evaluation[1][index - 1]) : Evaluation[1][index - 1] + if (index === 0) { + obj[item.key] = 'R1' + } else { + console.log(Evaluation[1][index - 1].DictionaryCode, Evaluation[1][index - 1].Value) + obj[item.key] = Evaluation[1][index - 1].DictionaryCode ? this.$fd(Evaluation[1][index - 1].DictionaryCode, parseFloat(Evaluation[1][index - 1].Value)) : Evaluation[1][index - 1].Value + } }) this.tableList.push(obj) } if (Evaluation[2] && Evaluation[2].length > 0) { let obj = {} this.tableKey.forEach((item, index) => { - obj[item.key] = index === 0 ? 'R2' : DictionaryCode ? this.$fd(DictionaryCode, Evaluation[2][index - 1]) : Evaluation[2][index - 1] + obj[item.key] = index === 0 ? 'R2' : Evaluation[2][index - 1].DictionaryCode ? this.$fd(Evaluation[2][index - 1].DictionaryCode, parseFloat(Evaluation[2][index - 1].Value)) : Evaluation[2][index - 1].Value }) this.tableList.push(obj) } diff --git a/src/views/trials/trials-panel/trial-summary/report-forms/index.vue b/src/views/trials/trials-panel/trial-summary/report-forms/index.vue index d4cb703b..cfa37a24 100644 --- a/src/views/trials/trials-panel/trial-summary/report-forms/index.vue +++ b/src/views/trials/trials-panel/trial-summary/report-forms/index.vue @@ -18,8 +18,7 @@
-
+
ORR: {{ ORR }}
@@ -127,9 +126,11 @@ export default { let res = await getTrialVisitFinishedStatList(data) this.loading_left = false if (res.IsSuccess) { + let arr = [] let obj = { titleText: this.$t("trials:reportForms:cjart:title:VisitFinishedStat"), seriesData: [], + max: 0, legendData: [ this.$t("trials:reportForms:cjart:title:UploadedCount"), this.$t("trials:reportForms:cjart:title:QCFinishedCount"), @@ -145,7 +146,9 @@ export default { value: res.Result[keys[index]] } obj.seriesData.push(o) + arr.push(res.Result[keys[index]]) }) + obj.max = Math.max(...arr) this.initChart_left(obj) } } catch (err) { @@ -180,17 +183,18 @@ export default { name: 'Funnel', type: 'funnel', left: '10%', - top: 60, - bottom: 60, + top: 30, + bottom: 40, width: '80%', min: 0, - max: 100, + max: obj.max ? obj.max : 100, minSize: '0%', maxSize: '100%', sort: 'descending', gap: 2, label: { show: true, + formatter: `{c}`, position: 'inside', textStyle: { fontSize: 14, // 设置字体大小为 14px @@ -348,10 +352,10 @@ export default { obj2.seriesData.push(item.DaysDiff) }) obj2.medianValue = this.calculateMedian(obj2.seriesData) - this.$nextTick(() => { - this.initChart_bottom_right(obj2) - }) } + this.$nextTick(() => { + this.initChart_bottom_right(obj2) + }) // else { // this.isHas_bottom_right = false // }