Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details

uat
caiyiling 2025-03-11 17:41:03 +08:00
commit c6a6029f38
3 changed files with 279 additions and 181 deletions

View File

@ -5,7 +5,7 @@
<el-form :inline="true">
<!-- 中心编号 -->
<el-form-item :label="$t('trials:reviewAssign:readingTask:table:siteCode')">
<el-select v-model="searchData.SiteId" clearable filterable style="width:120px;">
<el-select v-model="searchData.TrialSiteId" clearable filterable style="width:120px;">
<el-option
v-for="(item,index) of siteOptions"
:key="index"
@ -526,7 +526,7 @@ const searchDataDefault = () => {
Asc: true,
SortField: '',
TrialId: null,
SiteId: null,
TrialSiteId: null,
SubjectId: null,
SubjectCode: null,
IsUrgent: null,
@ -598,7 +598,7 @@ export default {
},
mounted() {
if (this.$route.query.SiteId) {
this.searchData.SiteId = this.$route.query.SiteId
this.searchData.TrialSiteId = this.$route.query.SiteId
this.searchData.SubjectCode = this.$route.query.SubjectCode
this.searchData.TaskName = this.$route.query.TaskName
this.searchData.DoctorUserId = this.$route.query.DoctorUserId

View File

@ -155,11 +155,7 @@
<el-option v-for="item of $d.TaskAllocationState" :key="'TaskAllocationState' + item.label" :value="item.value" :label="item.label" />
</el-select>
</el-form-item> -->
<!-- 申请原因 -->
<!-- <el-form-item style="margin-bottom:10px" :label="$t('trials:rereadTrack:table:applyReason')">
<el-input
@ -630,7 +626,6 @@
@pagination="getList"
/>
<el-dialog
v-if="ConfirmReReadingVisible"
:title="$t('trials:rereadTrack:reject:title:reject')"
:visible.sync="ConfirmReReadingVisible"
width="600px"
@ -645,6 +640,7 @@
max-height: 650px;
overflow-y: auto;
"
v-if="ConfirmReReadingVisible"
>
<el-form
ref="reasonForm"
@ -670,7 +666,7 @@
</el-form-item>
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<div slot="footer" class="dialog-footer" v-if="ConfirmReReadingVisible">
<!-- 取消 -->
<el-button
:disabled="btnLoading"
@ -1209,18 +1205,17 @@ export default {
this.loading = false
this.btnLoading = false
// /
this.$message.success(
`${
type === 1
? this.$t('trials:rereadTrack:message:msg3')
: this.$t('trials:rereadTrack:message:msg4')
}`
)
this.$refs['signForm'].btnLoading = false
let message =
type === 1
? this.$t('trials:rereadTrack:message:msg3')
: this.$t('trials:rereadTrack:message:msg4')
this.$message.success(message)
// this.$refs['signForm'].btnLoading = false
this.signVisible = false
this.getList()
this.ConfirmReReadingVisible = false
} catch (e) {
console.log(e)
this.loading = false
this.$refs['signForm'].btnLoading = false
this.btnLoading = false
@ -1257,13 +1252,11 @@ export default {
this.getList()
} else {
// /
this.$message.success(
`${
type === 1
? this.$t('trials:rereadTrack:message:msg3')
: this.$t('trials:rereadTrack:message:msg4')
}`
)
let message =
type === 1
? this.$t('trials:rereadTrack:message:msg3')
: this.$t('trials:rereadTrack:message:msg4')
this.$message.success(message)
this.ReReadingOrBackVisible = false
this.signVisible = false
this.getList()

View File

@ -1,23 +1,45 @@
<template>
<div v-loading="loading" class="history-chat">
<el-tabs tab-position="left" type="card" @tab-click="clickTab">
<el-tab-pane v-for="(item,index) in list" :key="item.Id">
<el-tab-pane v-for="(item, index) in list" :key="item.Id">
<span slot="label">
{{ item.ChallengeCode }}
<i v-show="!item.IsClosed" class="el-icon-message-solid" style="color:red" />
<i
v-show="!item.IsClosed"
class="el-icon-message-solid"
style="color: red"
/>
</span>
<div class="chat-wrapper">
<div class="chat-content">
<div v-for="record in item.DialogList" :key="record.Id">
<div v-if="!record.IsCurrentUser" class="word">
<!-- <img :src="record.headUrl"> -->
<img v-if="record.UserTypeEnum*1 === 8" :src="adminAvatar" alt="Admin">
<img v-else-if="record.UserTypeEnum*1 === 1" :src="pmAvatar" alt="PM">
<img v-else-if="record.UserTypeEnum*1 === 2" :src="crcAvatar" alt="CRC">
<img v-else-if="record.UserTypeEnum*1 === 3" :src="qcAvatar" alt="QC">
<img
v-if="record.UserTypeEnum * 1 === 8"
:src="adminAvatar"
alt="Admin"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 1"
:src="pmAvatar"
alt="PM"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 2"
:src="crcAvatar"
alt="CRC"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 3"
:src="qcAvatar"
alt="QC"
/>
<div class="info">
<p class="user-info">
<span style="font-weight:700;">{{ record.CreateUserFullName || record.CreateUserName }} </span>
<span style="font-weight: 700"
>{{ record.CreateUserFullName || record.CreateUserName }}
</span>
<span>({{ record.CreateTime }}) </span>
</p>
<div class="info-content" v-html="record.TalkContent" />
@ -27,32 +49,51 @@
<div v-else class="word-my">
<div class="info">
<p class="user-info">
<span style="font-weight:700;">{{ record.CreateUserFullName || record.CreateUserName }} </span>
<span style="font-weight: 700"
>{{ record.CreateUserFullName || record.CreateUserName }}
</span>
<span>({{ record.CreateTime }}) </span>
</p>
<div class="info-content" v-html="record.TalkContent" />
</div>
<!-- <img :src="record.headUrl"> -->
<img v-if="record.UserTypeEnum*1 === 8" :src="adminAvatar" alt="Admin">
<img v-else-if="record.UserTypeEnum*1 === 1" :src="pmAvatar" alt="PM">
<img v-else-if="record.UserTypeEnum*1 === 2" :src="crcAvatar" alt="CRC">
<img v-else-if="record.UserTypeEnum*1 === 3" :src="qcAvatar" alt="QC">
<img
v-if="record.UserTypeEnum * 1 === 8"
:src="adminAvatar"
alt="Admin"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 1"
:src="pmAvatar"
alt="PM"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 2"
:src="crcAvatar"
alt="CRC"
/>
<img
v-else-if="record.UserTypeEnum * 1 === 3"
:src="qcAvatar"
alt="QC"
/>
</div>
</div>
</div>
<div v-if="!item.IsClosed" class="chat-message">
<div class="message" v-if="hasPermi(['trials:trials-panel:visit:crc-upload:send'])" >
<el-input
v-model="newMessage"
type="textarea"
:rows="2"
/>
<div
class="message"
v-if="hasPermi(['trials:trials-panel:visit:crc-upload:send'])"
>
<el-input v-model="newMessage" type="textarea" :rows="2" />
</div>
<div class="function">
<!-- 申请重传 -->
<el-button
v-show="(item.ReuploadEnum === 0 || item.ReuploadEnum === 3) "
v-hasPermi="['trials:trials-panel:visit:crc-upload:apply-reupload']"
v-show="item.ReuploadEnum === 0 || item.ReuploadEnum === 3"
v-hasPermi="[
'trials:trials-panel:visit:crc-upload:apply-reupload',
]"
type="primary"
:loading="applyBtnLoading"
@click="handleCRCApplyReupload(item)"
@ -72,7 +113,9 @@
<!-- 确认重传完成 -->
<el-button
v-show="item.ReuploadEnum === 2"
v-hasPermi="['trials:trials-panel:visit:crc-upload:set-reupload-finished']"
v-hasPermi="[
'trials:trials-panel:visit:crc-upload:set-reupload-finished',
]"
type="primary"
:disabled="item.IsReuploaded"
:loading="reuploadedFinishbtnLoading"
@ -83,10 +126,10 @@
<!-- 发送 -->
<el-button
v-hasPermi="['trials:trials-panel:visit:crc-upload:send']"
:disabled="newMessage===''"
:disabled="newMessage === ''"
type="primary"
:loading="btnLoading"
@click="handleReply(item.Id,index)"
@click="handleReply(item.Id, index)"
>
{{ $t('trials:reuploadDicoms:button:send') }}
</el-button>
@ -105,22 +148,39 @@
>
<span slot="title">
<el-breadcrumb separator-class="el-icon-arrow-right">
<label style="float: left;margin-right:10px;">Upload: </label>
<el-breadcrumb-item v-show="trialCode">{{ trialCode }}</el-breadcrumb-item>
<el-breadcrumb-item v-show="data.TrialSiteCode">{{ data.TrialSiteCode }}</el-breadcrumb-item>
<el-breadcrumb-item v-show="data.SubjectCode">{{ data.SubjectCode }}</el-breadcrumb-item>
<el-breadcrumb-item v-show="data.VisitName">{{ `${data.VisitName} (${data.VisitNum})` }}</el-breadcrumb-item>
<label style="float: left; margin-right: 10px">Upload: </label>
<el-breadcrumb-item v-show="trialCode">{{
trialCode
}}</el-breadcrumb-item>
<el-breadcrumb-item v-show="data.TrialSiteCode">{{
data.TrialSiteCode
}}</el-breadcrumb-item>
<el-breadcrumb-item v-show="data.SubjectCode">{{
data.SubjectCode
}}</el-breadcrumb-item>
<el-breadcrumb-item v-show="data.VisitName">{{
`${data.VisitName} (${data.VisitNum})`
}}</el-breadcrumb-item>
</el-breadcrumb>
</span>
<div class="base-modal-body" style="display: flex;flex-direction: column;">
<el-tabs v-model="activeName" type="border-card" style="flex:1;">
<div
class="base-modal-body"
style="display: flex; flex-direction: column"
>
<el-tabs v-model="activeName" type="border-card" style="flex: 1">
<!-- DICOM影像上传 -->
<el-tab-pane
:label="$t('trials:uploadedDicoms:tab:uploadDicoms')"
name="dicom"
v-if="[0, 1].includes($store.state.trials.config.CollectImagesEnum)"
>
<upload-dicom-files :data="data" :subject-id="data.SubjectId" :subject-visit-id="data.Id" @close="closeUpload" @getList="reFreshList" />
<upload-dicom-files
:data="data"
:subject-id="data.SubjectId"
:subject-visit-id="data.Id"
@close="closeUpload"
@getList="reFreshList"
/>
</el-tab-pane>
<!-- 非DICOM影像上传 -->
<el-tab-pane
@ -128,22 +188,48 @@
name="non-dicom"
v-if="[0, 2].includes($store.state.trials.config.CollectImagesEnum)"
>
<upload-non-dicom-files v-if="activeName==='non-dicom'" :data="data" :allow-add-or-edit="true" :body-parts="bodyParts" :modalities="modalities" :subject-visit-id="data.Id" @getList="reFreshList" />
<upload-non-dicom-files
v-if="activeName === 'non-dicom'"
:data="data"
:allow-add-or-edit="true"
:body-parts="bodyParts"
:modalities="modalities"
:subject-visit-id="data.Id"
@getList="reFreshList"
/>
</el-tab-pane>
<!-- 临床数据采集data.IsBaseLine && -->
<el-tab-pane
v-if="data.IsBaseLine && (otherInfo.IsHaveSubjectClinicalData||otherInfo.IsHaveVisitClinicalData)"
v-if="
data.IsBaseLine &&
(otherInfo.IsHaveSubjectClinicalData ||
otherInfo.IsHaveVisitClinicalData)
"
:label="$t('trials:uploadClinicalData:tab:uploadClinicalData')"
name="clinical-data"
>
<upload-clinical-data v-if="activeName==='clinical-data'" :subject-visit-id="data.Id" :data="data" :enum-type="otherInfo.ClinicalInformationTransmissionEnum" :allow-add-or-edit="true" @getList="reFreshList" />
</el-tab-pane>
<el-tab-pane
v-if="!data.IsBaseLine && otherInfo.IsHaveVisitClinicalData"
<upload-clinical-data
v-if="activeName === 'clinical-data'"
:subject-visit-id="data.Id"
:data="data"
:enum-type="otherInfo.ClinicalInformationTransmissionEnum"
:allow-add-or-edit="true"
@getList="reFreshList"
/>
</el-tab-pane>
<el-tab-pane
v-if="!data.IsBaseLine && otherInfo.IsHaveVisitClinicalData"
:label="$t('trials:uploadClinicalData:tab:uploadClinicalData')"
name="clinical-data"
>
<upload-clinical-data v-if="activeName==='clinical-data'" :subject-visit-id="data.Id" :data="data" :enum-type="otherInfo.ClinicalInformationTransmissionEnum" :allow-add-or-edit="true" @getList="reFreshList" />
<upload-clinical-data
v-if="activeName === 'clinical-data'"
:subject-visit-id="data.Id"
:data="data"
:enum-type="otherInfo.ClinicalInformationTransmissionEnum"
:allow-add-or-edit="true"
@getList="reFreshList"
/>
</el-tab-pane>
</el-tabs>
</div>
@ -159,10 +245,18 @@
custom-class="base-dialog-wrapper"
>
<div slot="title">
<span style="font-size:18px;">{{ $t('common:dialogTitle:sign') }}</span>
<span style="font-size:12px;margin-left:5px">{{ `(${$t('common:label:sign')}${ currentUser })` }}</span>
<span style="font-size: 18px">{{ $t('common:dialogTitle:sign') }}</span>
<span style="font-size: 12px; margin-left: 5px">{{
`(${$t('common:label:sign')}${currentUser})`
}}</span>
</div>
<SignForm ref="signForm" :sign-code-enum="signCode" :subject-visit-id="data.Id" @closeDialog="closeClinicalDataSignDialog" />
<SignForm
ref="signForm"
:sign-code-enum="signCode"
:signReplaceText="signReplaceText"
:subject-visit-id="data.Id"
@closeDialog="closeClinicalDataSignDialog"
/>
</el-dialog>
</div>
</template>
@ -172,20 +266,21 @@ import {
verifyReuploadIsCanJump,
addQCChallengeReply,
cRCRequestReUpload,
} from "@/api/trials";
import { setReuploadFinished } from "@/api/trials/visit";
import adminAvatar from "@/assets/Admin.png";
import pmAvatar from "@/assets/PM.png";
import crcAvatar from "@/assets/CRC.png";
import qcAvatar from "@/assets/QC.png";
import UploadDicomFiles from "./uploadDicomFiles2";
import UploadNonDicomFiles from "./uploadNonDicomFiles";
import UploadClinicalData from "./uploadClinicalData";
import SignForm from "@/views/trials/components/newSignForm";
import dicomStore from "@/utils/dicom-store";
import const_ from "@/const/sign-code";
getVisitClinicalDataName
} from '@/api/trials'
import { setReuploadFinished } from '@/api/trials/visit'
import adminAvatar from '@/assets/Admin.png'
import pmAvatar from '@/assets/PM.png'
import crcAvatar from '@/assets/CRC.png'
import qcAvatar from '@/assets/QC.png'
import UploadDicomFiles from './uploadDicomFiles2'
import UploadNonDicomFiles from './uploadNonDicomFiles'
import UploadClinicalData from './uploadClinicalData'
import SignForm from '@/views/trials/components/newSignForm'
import dicomStore from '@/utils/dicom-store'
import const_ from '@/const/sign-code'
export default {
name: "HistoryChat",
name: 'HistoryChat',
components: {
UploadDicomFiles,
UploadNonDicomFiles,
@ -196,22 +291,22 @@ export default {
data: {
type: Object,
default() {
return {};
return {}
},
},
otherInfo: {
type: Object,
default() {
return {};
return {}
},
},
bodyParts: {
type: String,
default: "",
default: '',
},
modalities: {
type: String,
default: "",
default: '',
},
clinicalEnum: {
type: Number,
@ -223,66 +318,67 @@ export default {
list: [],
loading: false,
btnLoading: false,
newMessage: "",
userId: zzSessionStorage.getItem("userId"),
newMessage: '',
userId: zzSessionStorage.getItem('userId'),
trialCode: this.$route.query.trialCode,
adminAvatar,
pmAvatar,
crcAvatar,
qcAvatar,
uploadVisible: false,
activeName: "dicom",
activeName: 'dicom',
currentChallengeIndex: null,
signVisible: false,
signCode: "",
currentUser: zzSessionStorage.getItem("userName"),
signCode: '',
currentUser: zzSessionStorage.getItem('userName'),
trialId: this.$route.query.trialId,
uploadBtnLoading: false,
applyBtnLoading: false,
reuploadedFinishbtnLoading: false,
};
signReplaceText: null,
}
},
mounted() {
this.initChat();
this.initChat()
},
methods: {
clickTab(tab) {
this.setScrollHeight(tab.index * 1);
this.setScrollHeight(tab.index * 1)
},
//
initChat(index) {
var list = [];
this.loading = true;
var list = []
this.loading = true
getCRCVisitChallengeAndDialog(this.data.Id, this.data.QCProcessEnum)
.then((res) => {
res.Result.forEach((item) => {
var contents = [];
if (item.Content && item.Content.indexOf("|") !== -1) {
contents = item.Content.split("|");
} else if (item.Content && item.Content !== "") {
contents.push(item.Content);
var contents = []
if (item.Content && item.Content.indexOf('|') !== -1) {
contents = item.Content.split('|')
} else if (item.Content && item.Content !== '') {
contents.push(item.Content)
}
var li = contents.map((content) => {
return `<li>${content}</li>`;
});
return `<li>${content}</li>`
})
const content = `
<div>${this.$t("trials:qcQuality:dialog:qcContent")}
<div>${this.$t('trials:qcQuality:dialog:qcContent')}
<ol>
${li.join("")}
${li.join('')}
</ol>
</div>
<p>
${this.$t("trials:qcQuality:dialogTips:tip")}
${this.$t('trials:qcQuality:dialogTips:tip')}
</p>
<p style='color:red'>${this.$t(
"trials:qcQuality:dialog:deadline"
'trials:qcQuality:dialog:deadline'
)}: ${
item.DeadlineTime
? item.DeadlineTime
: this.$t("trials:qcQuality:dialog:none")
}</p>`;
const userId = zzSessionStorage.getItem("userId");
var recordContent = [];
: this.$t('trials:qcQuality:dialog:none')
}</p>`
const userId = zzSessionStorage.getItem('userId')
var recordContent = []
recordContent.push({
IsCurrentUser: item.CreateUserId === userId,
TalkContent: content,
@ -291,8 +387,8 @@ export default {
CreateUserFullName: item.CreateUserFullName,
CreateUserId: item.CreateUserId,
UserTypeEnum: item.UserTypeEnum,
});
recordContent.push(...item.DialogList);
})
recordContent.push(...item.DialogList)
list.push({
Id: item.Id,
ChallengeCode: item.ChallengeCode,
@ -302,98 +398,107 @@ export default {
Content: item.Content,
DeadlineTime: item.DeadlineTime,
IsOverTime: item.IsOverTime,
});
this.list = Object.assign({}, list);
this.loading = false;
this.setScrollHeight(index || 0);
});
})
this.list = Object.assign({}, list)
this.loading = false
this.setScrollHeight(index || 0)
})
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
setScrollHeight(index) {
setTimeout(() => {
var container = document.querySelectorAll(".chat-content")[index];
container.scrollTop = container.scrollHeight;
}, 100);
var container = document.querySelectorAll('.chat-content')[index]
container.scrollTop = container.scrollHeight
}, 100)
},
//
handleReply(qcChallengeId, index) {
if (!this.newMessage) return;
this.btnLoading = true;
if (!this.newMessage) return
this.btnLoading = true
var params = {
talkContent: this.newMessage,
qcChallengeId: qcChallengeId,
subjectVisitId: this.data.Id,
};
}
addQCChallengeReply(this.data.TrialId, params)
.then((res) => {
if (res.IsSuccess) {
// this.list[index].DialogList.push({ IsCurrentUser: true, TalkContent: this.newMessage, CreateTime: res.Result.CreateTime, CreateUserName: res.Result.CreateUserName, CreateUserId: res.Result.CreateUserId, UserTypeEnum: res.Result.UserTypeEnum })
this.initChat(index);
this.newMessage = "";
this.initChat(index)
this.newMessage = ''
}
this.btnLoading = false;
this.btnLoading = false
})
.catch(() => {
this.btnLoading = false;
});
this.btnLoading = false
})
},
//
openUploadDialog(index) {
const qcChallengeId = this.list[index].Id;
if (!qcChallengeId) return;
this.uploadBtnLoading = true;
const qcChallengeId = this.list[index].Id
if (!qcChallengeId) return
this.uploadBtnLoading = true
verifyReuploadIsCanJump(this.trialId, qcChallengeId)
.then((res) => {
this.uploadBtnLoading = false;
this.uploadBtnLoading = false
if (res.IsSuccess) {
dicomStore.studyList = [];
if ([0, 1].includes(this.$store.state.trials.config.CollectImagesEnum)) {
dicomStore.studyList = []
if (
[0, 1].includes(this.$store.state.trials.config.CollectImagesEnum)
) {
this.activeName = 'dicom'
} else {
this.activeName = 'non-dicom'
}
this.uploadVisible = true;
this.uploadVisible = true
}
})
.catch(() => {
this.initChat(index);
this.$emit("getList");
this.uploadBtnLoading = false;
});
this.initChat(index)
this.$emit('getList')
this.uploadBtnLoading = false
})
},
//
closeUpload() {
this.uploadVisible = false;
this.uploadVisible = false
},
//
reFreshList() {
this.$emit("getList");
this.$emit('getList')
},
//
handleSetUploadFinished(index) {
if (this.clinicalEnum > 0 && this.data.IsBaseLine) {
this.currentChallengeIndex = index;
const { ClinicalDataConfirmation } = const_.processSignature;
this.signCode = ClinicalDataConfirmation;
this.signVisible = true;
getVisitClinicalDataName({ id: this.data.Id })
.then((res) => {
this.signReplaceText = res.Result.ClinicalDataName
this.currentChallengeIndex = index
const { ClinicalDataConfirmation } = const_.processSignature
this.signCode = ClinicalDataConfirmation
this.signVisible = true
})
.catch((err) => {
console.log(err)
})
} else {
this.$confirm(this.$t("trials:crcQuestion:message:reuploadConfirm"), {
type: "warning",
this.$confirm(this.$t('trials:crcQuestion:message:reuploadConfirm'), {
type: 'warning',
distinguishCancelAndClose: true,
})
.then(() => {
this.currentChallengeIndex = index;
this.setReuploadFinished();
this.currentChallengeIndex = index
this.setReuploadFinished()
})
.catch(() => {});
.catch(() => {})
}
},
setReuploadFinished(signInfo) {
this.loading = true;
var item = Object.assign({}, this.list[this.currentChallengeIndex]);
this.loading = true
var item = Object.assign({}, this.list[this.currentChallengeIndex])
var params = {
data: {
QcChallengeId: item.Id,
@ -401,65 +506,65 @@ export default {
SetOrCancel: true,
},
signInfo: signInfo,
};
this.loading = true;
this.reuploadedFinishbtnLoading = true;
}
this.loading = true
this.reuploadedFinishbtnLoading = true
setReuploadFinished(params)
.then((res) => {
this.loading = false;
this.reuploadedFinishbtnLoading = false;
this.loading = false
this.reuploadedFinishbtnLoading = false
if (res.IsSuccess) {
if (signInfo) {
this.$refs["signForm"].btnLoading = false;
this.signVisible = false;
this.$refs['signForm'].btnLoading = false
this.signVisible = false
}
this.list[this.currentChallengeIndex].ReuploadEnum = 3;
this.initChat();
this.list[this.currentChallengeIndex].ReuploadEnum = 3
this.initChat()
// this.$message.success(this.$t('common:message:savedSuccessfully'))
this.reFreshList();
this.reFreshList()
}
})
.catch(() => {
this.loading = false;
this.reuploadedFinishbtnLoading = false;
this.$refs["signForm"].btnLoading = false;
});
this.loading = false
this.reuploadedFinishbtnLoading = false
this.$refs['signForm'].btnLoading = false
})
},
//
closeClinicalDataSignDialog(isSign, signInfo) {
if (isSign) {
this.setReuploadFinished(signInfo);
this.setReuploadFinished(signInfo)
} else {
this.signVisible = false;
this.signVisible = false
}
},
// crc
handleCRCApplyReupload(item) {
this.$confirm(this.$t("trials:crcQuestion:message:applyReupload"), {
type: "warning",
this.$confirm(this.$t('trials:crcQuestion:message:applyReupload'), {
type: 'warning',
distinguishCancelAndClose: true,
})
.then(() => {
this.applyBtnLoading = true;
this.applyBtnLoading = true
cRCRequestReUpload(this.trialId, this.data.Id, item.Id)
.then((res) => {
this.applyBtnLoading = false;
this.applyBtnLoading = false
if (res.IsSuccess) {
item.ReuploadEnum = 1;
this.initChat();
item.ReuploadEnum = 1
this.initChat()
// this.$message.success(this.$t('common:message:savedSuccessfully'))
this.$forceUpdate();
this.reFreshList();
this.$forceUpdate()
this.reFreshList()
}
})
.catch(() => {
this.applyBtnLoading = false;
});
this.applyBtnLoading = false
})
})
.catch(() => {});
.catch(() => {})
},
},
};
}
</script>
<style lang="scss" scoped>
.history-chat {
@ -526,7 +631,7 @@ export default {
position: absolute;
left: -8px;
top: 8px;
content: "";
content: '';
border-right: 10px solid #ebeef5;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
@ -571,7 +676,7 @@ export default {
position: absolute;
right: -8px;
top: 8px;
content: "";
content: '';
border-left: 10px solid #7574d9;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;