From 1cc0cac20b836c2669288ccd94d2f5b0d91045b0 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 16 Apr 2024 16:26:06 +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 --- .../reading/pending-review/index.vue | 60 +++++++++++-------- .../reading/reading-tracking/index.vue | 12 ++-- .../subject-list/components/add-subject.vue | 37 ++++++++++++ 3 files changed, 76 insertions(+), 33 deletions(-) diff --git a/src/views/trials/trials-panel/reading/pending-review/index.vue b/src/views/trials/trials-panel/reading/pending-review/index.vue index a595ed6..62c0bfe 100644 --- a/src/views/trials/trials-panel/reading/pending-review/index.vue +++ b/src/views/trials/trials-panel/reading/pending-review/index.vue @@ -142,6 +142,7 @@ v-loading="loading" :data="list" ref="reviewTable" + height="100%" stripe @sort-change="handleSortChange" > @@ -406,29 +407,35 @@ - + { - if (this.$refs.reviewTable) { - this.$refs.reviewTable[0].doLayout(); - } - }); + // this.$nextTick(() => { + // if (this.$refs.reviewTable) { + // this.$refs.reviewTable[0].doLayout(); + // } + // }); }) .catch(() => { this.loading = false; diff --git a/src/views/trials/trials-panel/reading/reading-tracking/index.vue b/src/views/trials/trials-panel/reading/reading-tracking/index.vue index 290ce0f..30a4f7b 100644 --- a/src/views/trials/trials-panel/reading/reading-tracking/index.vue +++ b/src/views/trials/trials-panel/reading/reading-tracking/index.vue @@ -169,7 +169,7 @@ show-overflow-tooltip > @@ -181,12 +181,10 @@ show-overflow-tooltip > diff --git a/src/views/trials/trials-panel/subject/subject-list/components/add-subject.vue b/src/views/trials/trials-panel/subject/subject-list/components/add-subject.vue index 2c9678a..7155918 100644 --- a/src/views/trials/trials-panel/subject/subject-list/components/add-subject.vue +++ b/src/views/trials/trials-panel/subject/subject-list/components/add-subject.vue @@ -53,6 +53,14 @@ > {{ $t("trials:addRP:button:confirmAddPR") }} +
@@ -234,6 +242,35 @@ export default { console.log(err); } }, + // 移除项目 + async remove() { + try { + let confirm = await this.$confirm( + this.$t("trials:sitesList:message:removeSite"), + { + type: "warning", + distinguishCancelAndClose: true, + confirmButtonText: this.$t("common:button:confirm"), + cancelButtonText: this.$t("recompose:button:cancel"), + } + ); + if (confirm !== "confirm") return; + let params = { + PatientId: this.Patient.PatientId, + SubjectId: this.submitMessage.SubjectId, + }; + this.loading = true; + let res = await deleteSubjectPatientBinding(params); + this.loading = false; + if (res.IsSuccess) { + this.getList(); + this.$message.success(this.$t("common:message:removedSuccessfully")); + this.$emit("getList"); + } + } catch (err) { + console.log(err); + } + }, // 获取受试者列表 async getTrialSubejctSelectList(id) { let data = {