一致性分析临床数据
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7e21325fa1
commit
1ce67efa9b
|
@ -3849,4 +3849,36 @@ export function getUserFeedBackInfo(data) {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
// 一致性分析获取临床数据列表
|
||||||
|
export function getConsistencyAnalysisReadingClinicalDataList(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingClinicalData/getConsistencyAnalysisReadingClinicalDataList`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 新增或修改一致性分析临床数据
|
||||||
|
export function addOrUpdateConsistencyAnalysisReadingClinicalData(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingClinicalData/addOrUpdateConsistencyAnalysisReadingClinicalData`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 一致性分析临床数据签名
|
||||||
|
export function signConsistencyAnalysisReadingClinicalData(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Inspection/ReadingClinicalData/SignConsistencyAnalysisReadingClinicalData`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 一致性分析临床数据设置任务为有效
|
||||||
|
export function setTaskValid(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingClinicalData/setTaskValid`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
}
|
}
|
|
@ -337,7 +337,8 @@ export default {
|
||||||
ClinicalDataTrialSetId: this.$router.currentRoute.query.ClinicalDataTrialSetId ? this.$router.currentRoute.query.ClinicalDataTrialSetId : '',
|
ClinicalDataTrialSetId: this.$router.currentRoute.query.ClinicalDataTrialSetId ? this.$router.currentRoute.query.ClinicalDataTrialSetId : '',
|
||||||
readingId: this.$router.currentRoute.query.readingId ? this.$router.currentRoute.query.readingId : '',
|
readingId: this.$router.currentRoute.query.readingId ? this.$router.currentRoute.query.readingId : '',
|
||||||
visitTaskId: this.$router.currentRoute.query.visitTaskId ? this.$router.currentRoute.query.visitTaskId : '',
|
visitTaskId: this.$router.currentRoute.query.visitTaskId ? this.$router.currentRoute.query.visitTaskId : '',
|
||||||
readingClinicalDataId: this.$router.currentRoute.query.readingClinicalDataId ? this.$router.currentRoute.query.readingClinicalDataId : ''
|
readingClinicalDataId: this.$router.currentRoute.query.readingClinicalDataId ? this.$router.currentRoute.query.readingClinicalDataId : '',
|
||||||
|
IsGetAllConsistencyAnalysis:this.$router.currentRoute.query.isGetAllConsistencyAnalysis == 0 ? false : true,
|
||||||
}
|
}
|
||||||
if (this.$router.currentRoute.query.IsOnlyGetCRCReadModule) {
|
if (this.$router.currentRoute.query.IsOnlyGetCRCReadModule) {
|
||||||
param.IsOnlyGetCRCReadModule = true
|
param.IsOnlyGetCRCReadModule = true
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -18,6 +18,7 @@
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.ClinicalDataTrialSetId"
|
v-model="form.ClinicalDataTrialSetId"
|
||||||
@change="handleClinicalDataSetChange"
|
@change="handleClinicalDataSetChange"
|
||||||
|
:disabled="type === 'consistencyAnalysis'"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item of clinicalDatas"
|
v-for="item of clinicalDatas"
|
||||||
|
@ -33,7 +34,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDownloadTpl"
|
@click="handleDownloadTpl"
|
||||||
>
|
>
|
||||||
{{ $t('trials:readingPeriod:cd:title:downloadTpl') }}
|
{{ $t("trials:readingPeriod:cd:title:downloadTpl") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -45,26 +46,35 @@
|
||||||
<div
|
<div
|
||||||
id="directoryInputWrapper"
|
id="directoryInputWrapper"
|
||||||
class="btn btn-link"
|
class="btn btn-link"
|
||||||
style="position: relative;overflow: hidden;display: inline-block;"
|
style="
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
display: inline-block;
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button type="primary" style="width: 56px" size="small">
|
||||||
type="primary"
|
{{ $t("trials:uploadClinicalData:button:selectFile") }}
|
||||||
style="width: 56px;"
|
|
||||||
size="small"
|
|
||||||
>
|
|
||||||
{{ $t('trials:uploadClinicalData:button:selectFile') }}
|
|
||||||
</el-button>
|
</el-button>
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
name="file"
|
name="file"
|
||||||
multiple
|
multiple
|
||||||
style="position: absolute;top: 0;left: 0;width: 56px;height: 100%;opacity: 0;cursor: pointer;"
|
style="
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 56px;
|
||||||
|
height: 100%;
|
||||||
|
opacity: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
"
|
||||||
:accept="faccept.join(',')"
|
:accept="faccept.join(',')"
|
||||||
@change="beginScanFiles($event)"
|
@change="beginScanFiles($event)"
|
||||||
>
|
/>
|
||||||
<span style="margin-left: 10px">{{ ($t('trials:attachment:message:pdf')) }}</span>
|
<span style="margin-left: 10px">{{
|
||||||
|
$t("trials:attachment:message:pdf")
|
||||||
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<!-- 文件列表 -->
|
<!-- 文件列表 -->
|
||||||
|
@ -73,7 +83,7 @@
|
||||||
:data="fileList"
|
:data="fileList"
|
||||||
class="dicomFiles-table"
|
class="dicomFiles-table"
|
||||||
height="300"
|
height="300"
|
||||||
style="width:100%"
|
style="width: 100%"
|
||||||
border
|
border
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
|
@ -92,32 +102,35 @@
|
||||||
<span>{{
|
<span>{{
|
||||||
scope.row.size && scope.row.size > 0
|
scope.row.size && scope.row.size > 0
|
||||||
? `${(scope.row.size / 1024 / 1024).toFixed(2)}MB`
|
? `${(scope.row.size / 1024 / 1024).toFixed(2)}MB`
|
||||||
|
: scope.row.Size && scope.row.Size > 0
|
||||||
|
? `${(scope.row.Size / 1024 / 1024).toFixed(2)}MB`
|
||||||
: 0
|
: 0
|
||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column :label="$t('common:action:action')" width="100">
|
||||||
:label="$t('common:action:action')"
|
|
||||||
width="100"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- 删除 -->
|
<!-- 删除 -->
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
circle
|
||||||
:title="$t('trials:readingPeriod:cd:action:deleteFile')"
|
:title="$t('trials:readingPeriod:cd:action:deleteFile')"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDeleteFile(scope.$index,scope.row)"
|
@click="handleDeleteFile(scope.$index, scope.row)"
|
||||||
|
/>
|
||||||
|
<!-- 下载 -->
|
||||||
|
<el-button
|
||||||
|
v-if="type === 'consistencyAnalysis'"
|
||||||
|
circle
|
||||||
|
:title="$t('trials:readingPeriod:cd:action:upload')"
|
||||||
|
icon="el-icon-download"
|
||||||
|
@click="handleUploadFile(scope.row)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="base-dialog-footer" style="text-align: right; margin-top: 10px">
|
||||||
class="base-dialog-footer"
|
|
||||||
style="text-align:right;margin-top:10px;"
|
|
||||||
>
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<!-- 取消 -->
|
<!-- 取消 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -126,7 +139,7 @@
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="close"
|
@click="close"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:cancel') }}
|
{{ $t("common:button:cancel") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 保存 -->
|
<!-- 保存 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -135,185 +148,257 @@
|
||||||
:loading="btnLoading"
|
:loading="btnLoading"
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:save') }}
|
{{ $t("common:button:save") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getTrialClinicalDataSelect,
|
import {
|
||||||
addOrUpdateReadingClinicalData, uploadClinicalData, DownloadTrialClinicalFile } from '@/api/trials'
|
getTrialClinicalDataSelect,
|
||||||
|
addOrUpdateReadingClinicalData,
|
||||||
|
addOrUpdateConsistencyAnalysisReadingClinicalData,
|
||||||
|
} from "@/api/trials";
|
||||||
|
import { fileDownload } from "@/utils/uploadZip.js";
|
||||||
export default {
|
export default {
|
||||||
name: 'AddOrUpdateClinicalData',
|
name: "AddOrUpdateClinicalData",
|
||||||
props: {
|
props: {
|
||||||
trialReadingCriterionId: {
|
trialReadingCriterionId: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: "",
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default() { return {} }
|
default() {
|
||||||
}
|
return {};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
type: {
|
||||||
|
default: "readingPeriod",
|
||||||
|
},
|
||||||
|
option: {
|
||||||
|
default: () => [],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fileList: [],
|
fileList: [],
|
||||||
faccept: ['.pdf'],
|
faccept: [".pdf"],
|
||||||
form: {
|
form: {
|
||||||
Id: '',
|
Id: "",
|
||||||
TrialId: '',
|
TrialId: "",
|
||||||
SubjectId: '',
|
SubjectId: "",
|
||||||
ReadingId: '',
|
ReadingId: "",
|
||||||
ClinicalDataTrialSetId: '',
|
ClinicalDataTrialSetId: "",
|
||||||
IsVisist: true,
|
IsVisist: true,
|
||||||
AddFileList: [],
|
AddFileList: [],
|
||||||
DeleteFileIds: [],
|
DeleteFileIds: [],
|
||||||
FileList: []
|
FileList: [],
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
ClinicalDataTrialSetId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur', 'change'] }]
|
ClinicalDataTrialSetId: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("common:ruleMessage:select"),
|
||||||
|
trigger: ["blur", "change"],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
btnLoading: false,
|
btnLoading: false,
|
||||||
clinicalDatas: [],
|
clinicalDatas: [],
|
||||||
pendingUploadList: [],
|
pendingUploadList: [],
|
||||||
pendingDeleteList: [],
|
pendingDeleteList: [],
|
||||||
currentTpl: { id: '', isExist: false }
|
currentTpl: { id: "", isExist: false },
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initForm()
|
this.initForm();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 下载临床数据
|
||||||
|
handleUploadFile(row) {
|
||||||
|
let href = this.OSSclientConfig.basePath + row.Path;
|
||||||
|
let name = row.FileName;
|
||||||
|
fileDownload(href, name);
|
||||||
|
},
|
||||||
async initForm() {
|
async initForm() {
|
||||||
await this.getClinicalDatas()
|
if (this.type === "readingPeriod") {
|
||||||
|
await this.getClinicalDatas();
|
||||||
|
} else {
|
||||||
|
this.clinicalDatas = this.option;
|
||||||
|
}
|
||||||
if (Object.keys(this.data).length > 0) {
|
if (Object.keys(this.data).length > 0) {
|
||||||
for (const k in this.form) {
|
for (const k in this.form) {
|
||||||
if (this.data.hasOwnProperty(k)) {
|
if (this.data.hasOwnProperty(k)) {
|
||||||
this.form[k] = this.data[k]
|
this.form[k] = this.data[k];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.handleClinicalDataSetChange(this.form.ClinicalDataTrialSetId)
|
this.handleClinicalDataSetChange(this.form.ClinicalDataTrialSetId);
|
||||||
this.fileList = this.form.FileList.concat()
|
this.fileList = this.form.FileList.concat();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
this.$refs.clinicalDataForm.validate(valid => {
|
this.$refs.clinicalDataForm.validate((valid) => {
|
||||||
if (!valid) return
|
if (!valid) return;
|
||||||
if (this.fileList.length === 0) {
|
if (this.fileList.length === 0) {
|
||||||
// 请上传文件!
|
// 请上传文件!
|
||||||
this.$alert(this.$t('trials:readingPeriod:cd:message:uploadFile'))
|
this.$alert(this.$t("trials:readingPeriod:cd:message:uploadFile"));
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
this.pendingUploadList = []
|
this.pendingUploadList = [];
|
||||||
for (let i = 0; i < this.fileList.length; ++i) {
|
for (let i = 0; i < this.fileList.length; ++i) {
|
||||||
if (this.fileList[i].Status === 0) {
|
if (this.fileList[i].Status === 0) {
|
||||||
this.pendingUploadList.push(this.fileList[i].Files)
|
this.pendingUploadList.push(this.fileList[i].Files);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.pendingUploadList.length > 0) {
|
if (this.pendingUploadList.length > 0) {
|
||||||
this.uploadFilesAndSave()
|
this.uploadFilesAndSave();
|
||||||
} else {
|
} else {
|
||||||
this.saveClinicalData()
|
this.saveClinicalData();
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
uploadFilesAndSave() {
|
uploadFilesAndSave() {
|
||||||
return new Promise(async(resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
this.form.AddFileList = []
|
this.form.AddFileList = [];
|
||||||
for (var i = 0; i < this.pendingUploadList.length; ++i) {
|
for (var i = 0; i < this.pendingUploadList.length; ++i) {
|
||||||
// const file = await this.convertBase64ToBlob(this.pendingUploadList[i])
|
// const file = await this.convertBase64ToBlob(this.pendingUploadList[i])
|
||||||
const file = await this.fileToBlob(this.pendingUploadList[i])
|
const file = await this.fileToBlob(this.pendingUploadList[i]);
|
||||||
const res = await this.OSSclient.put(`/${this.data.TrialId}/ClinicalData/${this.pendingUploadList[i].name}`, file)
|
const res = await this.OSSclient.put(
|
||||||
this.form.AddFileList.push({ fileName: this.pendingUploadList[i].name, path: this.$getObjectName(res.url) })
|
`/${this.data.TrialId}/ClinicalData/${this.pendingUploadList[i].name}`,
|
||||||
|
file
|
||||||
|
);
|
||||||
|
this.form.AddFileList.push({
|
||||||
|
fileName: this.pendingUploadList[i].name,
|
||||||
|
path: this.$getObjectName(res.url),
|
||||||
|
size: this.pendingUploadList[i].size,
|
||||||
|
type: this.pendingUploadList[i].type,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
this.saveClinicalData(this.form.AddFileList)
|
this.saveClinicalData(this.form.AddFileList);
|
||||||
resolve()
|
resolve();
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
saveClinicalData() {
|
saveClinicalData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.btnLoading = true
|
this.btnLoading = true;
|
||||||
this.form.DeleteFileIds = this.pendingDeleteList
|
this.form.DeleteFileIds = this.pendingDeleteList;
|
||||||
addOrUpdateReadingClinicalData(this.form).then(response => {
|
if (this.type === "consistencyAnalysis") {
|
||||||
this.btnLoading = false
|
addOrUpdateConsistencyAnalysisReadingClinicalData(this.form)
|
||||||
this.$emit('getList')
|
.then((response) => {
|
||||||
this.$emit('close')
|
this.btnLoading = false;
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.$emit("getList");
|
||||||
resolve()
|
this.$emit("close");
|
||||||
}).catch(() => {
|
this.$message.success(
|
||||||
this.btnLoading = false
|
this.$t("common:message:savedSuccessfully")
|
||||||
reject()
|
);
|
||||||
})
|
resolve();
|
||||||
})
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.btnLoading = false;
|
||||||
|
reject();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addOrUpdateReadingClinicalData(this.form)
|
||||||
|
.then((response) => {
|
||||||
|
this.btnLoading = false;
|
||||||
|
this.$emit("getList");
|
||||||
|
this.$emit("close");
|
||||||
|
this.$message.success(
|
||||||
|
this.$t("common:message:savedSuccessfully")
|
||||||
|
);
|
||||||
|
resolve();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.btnLoading = false;
|
||||||
|
reject();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
getClinicalDatas() {
|
getClinicalDatas() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.loading = true
|
this.loading = true;
|
||||||
var param = {
|
var param = {
|
||||||
trialId: this.data.TrialId,
|
trialId: this.data.TrialId,
|
||||||
IsVisit: this.data.IsVisit,
|
IsVisit: this.data.IsVisit,
|
||||||
ReadingId: this.data.ReadingId,
|
ReadingId: this.data.ReadingId,
|
||||||
SubjectId: this.data.SubjectId,
|
SubjectId: this.data.SubjectId,
|
||||||
ReadingClinicalDataId: this.data.Id ? this.data.Id : '',
|
ReadingClinicalDataId: this.data.Id ? this.data.Id : "",
|
||||||
IsBaseLine: this.data.IsBaseLine,
|
IsBaseLine: this.data.IsBaseLine,
|
||||||
TrialReadingCriterionId: this.trialReadingCriterionId
|
TrialReadingCriterionId: this.trialReadingCriterionId,
|
||||||
}
|
};
|
||||||
getTrialClinicalDataSelect(param).then(res => {
|
getTrialClinicalDataSelect(param)
|
||||||
this.clinicalDatas = res.Result
|
.then((res) => {
|
||||||
this.loading = false
|
this.clinicalDatas = res.Result;
|
||||||
resolve()
|
this.loading = false;
|
||||||
}).catch(() => {
|
resolve();
|
||||||
this.loading = false
|
})
|
||||||
reject()
|
.catch(() => {
|
||||||
})
|
this.loading = false;
|
||||||
})
|
reject();
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
handleDeleteFile(index, row) {
|
handleDeleteFile(index, row) {
|
||||||
this.$confirm(this.$t('trials:readingPeriod:cd:message:delete'), {
|
this.$confirm(this.$t("trials:readingPeriod:cd:message:delete"), {
|
||||||
type: 'warning',
|
type: "warning",
|
||||||
distinguishCancelAndClose: true
|
distinguishCancelAndClose: true,
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
if (row.Id) {
|
if (row.Id) {
|
||||||
this.pendingDeleteList.push(row.Id)
|
this.pendingDeleteList.push(row.Id);
|
||||||
}
|
}
|
||||||
this.fileList.splice(index, 1)
|
this.fileList.splice(index, 1);
|
||||||
}).catch(() => {})
|
})
|
||||||
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
beginScanFiles(e) {
|
beginScanFiles(e) {
|
||||||
var files = e.target.files
|
var files = e.target.files;
|
||||||
for (var i = 0; i < files.length; ++i) {
|
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()
|
var extendName = fileName
|
||||||
|
.substring(fileName.lastIndexOf("."))
|
||||||
|
.toLocaleLowerCase();
|
||||||
if (this.faccept.indexOf(extendName) !== -1) {
|
if (this.faccept.indexOf(extendName) !== -1) {
|
||||||
this.fileList.push({ FileName: fileName, Path: '', Status: 0, Files: files[i], size:files[i].size, type:fileName.split('.')[1] })
|
this.fileList.push({
|
||||||
|
FileName: fileName,
|
||||||
|
Path: "",
|
||||||
|
Status: 0,
|
||||||
|
Files: files[i],
|
||||||
|
size: files[i].size,
|
||||||
|
type: fileName.split(".")[1],
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleClinicalDataSetChange(v) {
|
handleClinicalDataSetChange(v) {
|
||||||
var index = this.clinicalDatas.findIndex(item => item.Id === v)
|
var index = this.clinicalDatas.findIndex((item) => item.Id === v);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
this.currentTpl.id = this.clinicalDatas[index].Id
|
this.currentTpl.id = this.clinicalDatas[index].Id;
|
||||||
this.currentTpl.path = this.clinicalDatas[index].Path
|
this.currentTpl.path = this.clinicalDatas[index].Path;
|
||||||
this.currentTpl.isExist = !!this.clinicalDatas[index].FileName
|
this.currentTpl.isExist = !!this.clinicalDatas[index].FileName;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleDownloadTpl() {
|
handleDownloadTpl() {
|
||||||
this.loading = true
|
this.loading = true;
|
||||||
window.open(this.OSSclientConfig.basePath + this.currentTpl.path, '_blank')
|
window.open(
|
||||||
this.loading = false
|
this.OSSclientConfig.basePath + this.currentTpl.path,
|
||||||
|
"_blank"
|
||||||
|
);
|
||||||
|
this.loading = false;
|
||||||
// DownloadTrialClinicalFile(this.currentTpl.id).then(data => {
|
// DownloadTrialClinicalFile(this.currentTpl.id).then(data => {
|
||||||
// this.loading = false
|
// this.loading = false
|
||||||
// }).catch(() => { this.loading = false })
|
// }).catch(() => { this.loading = false })
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.$emit('close')
|
this.$emit("close");
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
</style>
|
</style>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue