From 9b67760ffdeb784625def87a036a44c0650d028b Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 28 Oct 2025 15:35:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=BF=83=E4=BA=BA=E5=91=98=E5=AE=9A?= =?UTF-8?q?=E6=9C=9F=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/trials.js | 24 + src/views/research/login.vue | 55 ++- .../personnel-manage/components/staff.vue | 426 +++++------------- src/views/trials/trials-panel/site/index.vue | 389 ++++++++++------ 4 files changed, 416 insertions(+), 478 deletions(-) diff --git a/src/api/trials.js b/src/api/trials.js index 61611e95..882dc72d 100644 --- a/src/api/trials.js +++ b/src/api/trials.js @@ -4317,4 +4317,28 @@ export function deleteAuditRecord(auditRecordId) { url: `/AuditDocument/deleteAuditRecord/${auditRecordId}`, method: 'delete' }) +} +// 核对中心人员发送邮件 +export function sendCheckSiteSurveyUserEmail(data) { + return request({ + url: `/TrialSiteSurvey/sendCheckSiteSurveyUserEmail`, + method: 'post', + data + }) +} +// 更新中心人员发送邮件 +export function sendUpdateSiteSurveyUserEmail(data) { + return request({ + url: `/TrialSiteSurvey/sendUpdateSiteSurveyUserEmail`, + method: 'post', + data + }) +} +// 更新中心人员发送邮件 +export function getTrialSiteLatestSurvey(params) { + return request({ + url: `/TrialSiteSurvey/getTrialSiteLatestSurvey`, + method: 'get', + params + }) } \ No newline at end of file diff --git a/src/views/research/login.vue b/src/views/research/login.vue index 4f249d01..8e56c895 100644 --- a/src/views/research/login.vue +++ b/src/views/research/login.vue @@ -7,16 +7,8 @@ - + @@ -35,13 +27,10 @@ - - + + @@ -54,13 +43,14 @@ {{ $t('trials:researchForm:button:updateQsForm') }} - + {{ $t('trials:researchForm:button:cancelUpdateQsForm') }} - - + + @@ -74,13 +64,9 @@ - {{ this.$t('trials:researchForm:button:send') }} {{ sendTitle ? `${sendTitle}` : null }} + {{ + this.$t('trials:researchForm:button:send') }} {{ sendTitle ? `${sendTitle}` : null }} @@ -203,7 +189,8 @@ export default { timer: null, msg: '', lang: 'zh', - isHaveSiteSurveyRecord: false + isHaveSiteSurveyRecord: false, + isUpload: false } }, computed: { @@ -221,6 +208,14 @@ export default { this.trialId = this.$route.query.trialId this.initPage() } + if (this.$route.query.isUpload) { + this.isUpload = true + this.form.IsUpdate = true + let { email, oldEMail, trialSiteId } = this.$route.query + if (trialSiteId) this.form.TrialSiteId = trialSiteId + if (oldEMail) this.form.ReplaceUserEmailOrPhone = oldEMail + if (email) this.form.EmailOrPhone = email + } }, methods: { ...mapMutations({ setLanguage: 'lang/setLanguage' }), @@ -235,6 +230,9 @@ export default { this.form[key] = Result[key] } }) + if (this.isUpload) { + this.handleSiteChange(this.form.TrialSiteId) + } this.loading = false }).catch(() => { this.loading = false }) }, @@ -347,6 +345,7 @@ export default {