diff --git a/src/assets/zip.png b/src/assets/zip.png
index bf027c11..274663ad 100644
Binary files a/src/assets/zip.png and b/src/assets/zip.png differ
diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadPetClinicalData.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadPetClinicalData.vue
index 4b6ee07e..d1d48489 100644
--- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadPetClinicalData.vue
+++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadPetClinicalData.vue
@@ -13,7 +13,7 @@
-
{{ $t("trials:uploadClinicalData:title:pastTreatment") }}
+
{{ $t('trials:uploadClinicalData:title:pastTreatment') }}
- {{ $t("common:button:new") }}
+ {{ $t('common:button:new') }}
@@ -46,8 +46,8 @@
{{
scope.row.StartTime
- ? moment(scope.row.StartTime).format("YYYY-MM-DD")
- : ""
+ ? moment(scope.row.StartTime).format('YYYY-MM-DD')
+ : ''
}}
@@ -59,8 +59,8 @@
{{
scope.row.EndTime
- ? moment(scope.row.EndTime).format("YYYY-MM-DD")
- : ""
+ ? moment(scope.row.EndTime).format('YYYY-MM-DD')
+ : ''
}}
@@ -70,7 +70,7 @@
:label="$t('trials:uploadClinicalData:table:isPD')"
>
- {{ $fd("IsPdEnum", scope.row.IsPD) }}
+ {{ $fd('IsPdEnum', scope.row.IsPD) }}
- {{ $t("trials:uploadClinicalData:title:pastSurgery") }}
+ {{ $t('trials:uploadClinicalData:title:pastSurgery') }}
- {{ $t("common:button:new") }}
+ {{ $t('common:button:new') }}
{{
scope.row.OperationTime
- ? moment(scope.row.OperationTime).format("YYYY-MM-DD")
- : ""
+ ? moment(scope.row.OperationTime).format('YYYY-MM-DD')
+ : ''
}}
@@ -170,7 +170,7 @@
-
{{ $t("trials:uploadClinicalData:title:others") }}
+
{{ $t('trials:uploadClinicalData:title:others') }}
- {{ $t("common:button:new") }}
+ {{ $t('common:button:new') }}
{{
scope.row.StartTime
- ? moment(scope.row.StartTime).format("YYYY-MM-DD")
- : ""
+ ? moment(scope.row.StartTime).format('YYYY-MM-DD')
+ : ''
}}
@@ -213,8 +213,8 @@
{{
scope.row.EndTime
- ? moment(scope.row.EndTime).format("YYYY-MM-DD")
- : ""
+ ? moment(scope.row.EndTime).format('YYYY-MM-DD')
+ : ''
}}
@@ -252,7 +252,10 @@
-
+
@@ -490,16 +497,16 @@ import {
deletePreviousSurgery,
getCRCClinicalData,
addOrUpdateReadingClinicalData,
-} from "@/api/trials";
-import PreviousRadiotherapy from "./previousRadiotherapy";
-import PreviousSurgery from "./previousSurgery";
-import PreviousOther from "./previousOther";
-import PreviousFiles from "./previousFiles";
-import clinicalDataQuestions from "@/components/clinicalDataQuestions";
-import PreviewFile from "@/components/PreviewFile/index";
-import moment from "moment";
+} from '@/api/trials'
+import PreviousRadiotherapy from './previousRadiotherapy'
+import PreviousSurgery from './previousSurgery'
+import PreviousOther from './previousOther'
+import PreviousFiles from './previousFiles'
+import clinicalDataQuestions from '@/components/clinicalDataQuestions'
+import PreviewFile from '@/components/PreviewFile/index'
+import moment from 'moment'
export default {
- name: "uploadPetClinicalData",
+ name: 'uploadPetClinicalData',
components: {
PreviousRadiotherapy,
PreviousSurgery,
@@ -512,14 +519,14 @@ export default {
data: {
type: Object,
default() {
- return {};
+ return {}
},
},
studyData: {
required: true,
type: Object,
default() {
- return {};
+ return {}
},
},
subjectVisitId: {
@@ -537,9 +544,9 @@ export default {
},
data() {
return {
- faccept: [".pdf"],
+ faccept: ['.pdf'],
isShow: false,
- userTypeEnumInt: zzSessionStorage.getItem("userTypeEnumInt") * 1,
+ userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1,
loading: false,
btnLoading: false,
PreviousHistoryList: [],
@@ -556,11 +563,11 @@ export default {
moment,
downloadLoading: false,
clinicalDatas: [],
- previewObj: { visible: false, filePath: "", fileType: "" },
- };
+ previewObj: { visible: false, filePath: '', fileType: '' },
+ }
},
mounted() {
- this.getClinicalData();
+ this.getClinicalData()
},
methods: {
beginScanFiles(e, id, clinicalDataTrialSetId) {
@@ -568,59 +575,59 @@ export default {
Id: id,
ClinicalDataTrialSetId: clinicalDataTrialSetId,
SubjectId: this.data.SubjectId,
- };
- this.currentRow.TrialId = this.$route.query.trialId;
- var files = e.target.files;
- this.fileList = [];
+ }
+ this.currentRow.TrialId = this.$route.query.trialId
+ var files = e.target.files
+ this.fileList = []
for (var i = 0; i < files.length; ++i) {
- const fileName = files[i].name;
+ const fileName = files[i].name
var extendName = fileName
- .substring(fileName.lastIndexOf("."))
- .toLocaleLowerCase();
+ .substring(fileName.lastIndexOf('.'))
+ .toLocaleLowerCase()
if (this.faccept.indexOf(extendName) !== -1) {
let obj = {
size: files[i].size,
- type: extendName.split(".")[1],
+ type: extendName.split('.')[1],
file: files[i],
- };
- this.fileList.push(obj);
+ }
+ this.fileList.push(obj)
}
}
- this.handleUploadFile();
+ this.handleUploadFile()
this.$refs.addFile.forEach((item) => {
- item.value = null;
- });
+ item.value = null
+ })
},
async handleUploadFile() {
- this.btnLoading = true;
- this.loading = true;
- this.addFileList = [];
+ this.btnLoading = true
+ this.loading = true
+ this.addFileList = []
try {
for (var i = 0; i < this.fileList.length; ++i) {
- const file = await this.fileToBlob(this.fileList[i].file);
- var timestamp = Date.now();
+ const file = await this.fileToBlob(this.fileList[i].file)
+ var timestamp = Date.now()
const res = await this.OSSclient.put(
`/${this.trialId}/ClinicalData/${timestamp}_${this.fileList[i].file.name}`,
file
- );
+ )
this.addFileList.push({
fileName: this.fileList[i].file.name,
path: this.$getObjectName(res.url),
url: this.$getObjectName(res.url),
type: this.fileList[i].type,
size: this.fileList[i].size,
- });
+ })
}
- this.saveClinicalData();
+ this.saveClinicalData()
} catch (err) {
- console.log(err);
- this.btnLoading = false;
- this.loading = false;
+ console.log(err)
+ this.btnLoading = false
+ this.loading = false
}
},
saveClinicalData() {
- this.btnLoading = true;
- this.loading = true;
+ this.btnLoading = true
+ this.loading = true
var param = {
id: this.currentRow.Id,
trialId: this.currentRow.TrialId,
@@ -630,185 +637,185 @@ export default {
isVisit: true,
deleteFileIds: [],
addFileList: this.addFileList,
- };
+ }
if (this.studyData.StudyId) {
- param.StudyId = this.studyData.StudyId;
+ param.StudyId = this.studyData.StudyId
}
addOrUpdateReadingClinicalData(param)
.then((response) => {
- this.btnLoading = false;
- this.loading = false;
+ this.btnLoading = false
+ this.loading = false
// 刷新文件列表并关闭弹窗
- this.getClinicalData();
+ this.getClinicalData()
this.$message.success(
- this.$t("trials:uploadClinicalData:message:uploadSuccessfully")
- );
- this.$emit("getStudyInfo");
+ this.$t('trials:uploadClinicalData:message:uploadSuccessfully')
+ )
+ this.$emit('getStudyInfo')
})
.catch(() => {
- this.btnLoading = false;
- this.loading = false;
- });
+ this.btnLoading = false
+ this.loading = false
+ })
},
getClinicalData() {
- this.loading = true;
- this.data.TrialId = this.$route.query.trialId;
+ this.loading = true
+ this.data.TrialId = this.$route.query.trialId
var param = {
SubjectVisitId: this.studyData.SubjectVisitId,
StudyId: this.studyData.StudyId,
TrialId: this.$route.query.trialId,
SubjectId: this.studyData.SubjectId,
- };
+ }
getCRCClinicalData(param)
.then((res) => {
- this.clinicalDatas = res.Result;
- this.loading = false;
+ this.clinicalDatas = res.Result
+ this.loading = false
})
.catch(() => {
- this.loading = false;
- });
+ this.loading = false
+ })
},
// 打开编辑框
editRow(row, type) {
if (type === 1) {
- this.prVisible = true;
+ this.prVisible = true
} else if (type === 2) {
- this.psVisible = true;
+ this.psVisible = true
} else if (type === 3) {
- this.poVisible = true;
+ this.poVisible = true
}
- this.currentRow = { ...row };
- this.currentRow.TrialId = this.$route.query.trialId;
+ this.currentRow = { ...row }
+ this.currentRow.TrialId = this.$route.query.trialId
},
// 根据ID删除既往放疗史
deletePreviousHistory(row) {
- this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"), {
- type: "warning",
+ this.$confirm(this.$t('trials:uploadedDicoms:message:deleteMes'), {
+ type: 'warning',
distinguishCancelAndClose: true,
}).then(() => {
- this.loading = true;
+ this.loading = true
deletePreviousHistory(
this.$route.query.trialId,
this.subjectVisitId,
row.Id
)
.then((res) => {
- this.loading = false;
+ this.loading = false
if (res.IsSuccess) {
- this.getClinicalData();
+ this.getClinicalData()
this.$message.success(
- this.$t("trials:uploadedDicoms:message:deleteSuccessfully")
- );
- this.$emit("getStudyInfo");
+ this.$t('trials:uploadedDicoms:message:deleteSuccessfully')
+ )
+ this.$emit('getStudyInfo')
}
})
.catch(() => {
- this.loading = false;
- });
- });
+ this.loading = false
+ })
+ })
},
// 根据ID删除既往手术史
deletePreviousSurgery(row) {
- console.log(this.$route.query.trialId);
- this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"), {
- type: "warning",
+ console.log(this.$route.query.trialId)
+ this.$confirm(this.$t('trials:uploadedDicoms:message:deleteMes'), {
+ type: 'warning',
distinguishCancelAndClose: true,
}).then(() => {
// row.Type = '既往手术史'
- this.loading = true;
+ this.loading = true
deletePreviousSurgery(
this.$route.query.trialId,
this.subjectVisitId,
row.Id
)
.then((res) => {
- this.loading = false;
+ this.loading = false
if (res.IsSuccess) {
- this.getClinicalData();
+ this.getClinicalData()
this.$message.success(
- this.$t("trials:uploadedDicoms:message:deleteSuccessfully")
- );
- this.$emit("getStudyInfo");
+ this.$t('trials:uploadedDicoms:message:deleteSuccessfully')
+ )
+ this.$emit('getStudyInfo')
}
})
.catch(() => {
- this.loading = false;
- });
- });
+ this.loading = false
+ })
+ })
},
// 根据ID删除既往其他资料史
deletePreviousOther(row) {
- this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"), {
- type: "warning",
+ this.$confirm(this.$t('trials:uploadedDicoms:message:deleteMes'), {
+ type: 'warning',
distinguishCancelAndClose: true,
}).then(() => {
// row.Type = '既往其他治疗史'
- this.loading = true;
+ this.loading = true
deletePreviousOther(
this.$route.query.trialId,
this.subjectVisitId,
row.Id
)
.then((res) => {
- this.loading = false;
+ this.loading = false
if (res.IsSuccess) {
- this.getClinicalData();
+ this.getClinicalData()
this.$message.success(
- this.$t("trials:uploadedDicoms:message:deleteSuccessfully")
- );
- this.$emit("getStudyInfo");
+ this.$t('trials:uploadedDicoms:message:deleteSuccessfully')
+ )
+ this.$emit('getStudyInfo')
}
})
.catch(() => {
- this.loading = false;
- });
- });
+ this.loading = false
+ })
+ })
},
// 文件预览
preview(row) {
- if (!row.Path) return;
- this.previewObj.fileName = row.FileName;
- this.previewObj.filePath = row.Path;
- this.previewObj.fileType = "pdf";
- this.previewObj.visible = true;
+ if (!row.Path) return
+ this.previewObj.fileName = row.FileName
+ this.previewObj.filePath = row.Path
+ this.previewObj.fileType = 'pdf'
+ this.previewObj.visible = true
// window.open(this.OSSclientConfig.basePath + path, '_blank')
},
addPreviousHistory(clinicalDataTrialSetId) {
- console.log(clinicalDataTrialSetId);
- this.currentRow = { ClinicalDataTrialSetId: clinicalDataTrialSetId };
- this.currentRow.TrialId = this.$route.query.trialId;
- this.prVisible = true;
+ console.log(clinicalDataTrialSetId)
+ this.currentRow = { ClinicalDataTrialSetId: clinicalDataTrialSetId }
+ this.currentRow.TrialId = this.$route.query.trialId
+ this.prVisible = true
},
addPreviousSurgery(clinicalDataTrialSetId) {
- this.currentRow = { ClinicalDataTrialSetId: clinicalDataTrialSetId };
- this.currentRow.TrialId = this.$route.query.trialId;
- this.psVisible = true;
+ this.currentRow = { ClinicalDataTrialSetId: clinicalDataTrialSetId }
+ this.currentRow.TrialId = this.$route.query.trialId
+ this.psVisible = true
},
addPreviousOther(clinicalDataTrialSetId) {
- this.currentRow = { ClinicalDataTrialSetId: clinicalDataTrialSetId };
- this.currentRow.TrialId = this.$route.query.trialId;
- this.poVisible = true;
+ this.currentRow = { ClinicalDataTrialSetId: clinicalDataTrialSetId }
+ this.currentRow.TrialId = this.$route.query.trialId
+ this.poVisible = true
},
// 关闭既往放疗史窗口并刷新列表
closePRDialog() {
- this.prVisible = false;
- this.currentRow.TrialId = this.$route.query.trialId;
+ this.prVisible = false
+ this.currentRow.TrialId = this.$route.query.trialId
},
closePSDialog() {
- this.psVisible = false;
- this.currentRow.TrialId = this.$route.query.trialId;
+ this.psVisible = false
+ this.currentRow.TrialId = this.$route.query.trialId
},
closePODialog() {
- this.poVisible = false;
- this.currentRow.TrialId = this.$route.query.trialId;
+ this.poVisible = false
+ this.currentRow.TrialId = this.$route.query.trialId
},
closeUpDialog() {
- this.upVisible = false;
- this.currentRow.TrialId = this.$route.query.trialId;
+ this.upVisible = false
+ this.currentRow.TrialId = this.$route.query.trialId
},
refresh() {
- this.getClinicalData();
- this.$emit("getStudyInfo");
+ this.getClinicalData()
+ this.$emit('getStudyInfo')
},
// 添加文件
addFile(id, clinicalDataTrialSetId) {
@@ -816,38 +823,38 @@ export default {
Id: id,
ClinicalDataTrialSetId: clinicalDataTrialSetId,
SubjectId: this.data.SubjectId,
- };
- this.currentRow.TrialId = this.$route.query.trialId;
- this.upVisible = true;
+ }
+ this.currentRow.TrialId = this.$route.query.trialId
+ this.upVisible = true
},
// 删除文件
deleteFile(id) {
- this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"), {
- type: "warning",
+ this.$confirm(this.$t('trials:uploadedDicoms:message:deleteMes'), {
+ type: 'warning',
distinguishCancelAndClose: true,
}).then(() => {
- this.loading = true;
+ this.loading = true
deleteReadingClinicalDataPDF(id)
.then((res) => {
- this.loading = false;
+ this.loading = false
if (res.IsSuccess) {
- this.getClinicalData();
- this.$emit("getStudyInfo");
+ this.getClinicalData()
+ this.$emit('getStudyInfo')
this.$message.success(
- this.$t("trials:uploadedDicoms:message:deleteSuccessfully")
- );
+ this.$t('trials:uploadedDicoms:message:deleteSuccessfully')
+ )
}
})
.catch(() => {
- this.loading = false;
- });
- });
+ this.loading = false
+ })
+ })
},
handleDownloadTpl(cd) {
- window.open(this.OSSclientConfig.basePath + cd.Path);
+ window.open(this.OSSclientConfig.basePath + cd.Path)
},
},
-};
+}