访视中预览,dicom检查没有显示检查名称
parent
8bfaf7241a
commit
996b691ef4
|
@ -9,7 +9,7 @@
|
|||
icon="el-icon-view"
|
||||
@click="handlePreviewAllFiles"
|
||||
>
|
||||
{{ $t("trials:audit:action:preview") }}
|
||||
{{ $t('trials:audit:action:preview') }}
|
||||
</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
|
@ -46,6 +46,12 @@
|
|||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <!– 检查类型 –>-->
|
||||
<!-- 检查名称 -->
|
||||
<el-table-column
|
||||
v-if="relationInfo.IsShowStudyName"
|
||||
prop="StudyName"
|
||||
:label="$t('trials:audit:table:StudyName')"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="ModalityForEdit"
|
||||
:label="$t('trials:audit:table:modality')"
|
||||
|
@ -88,7 +94,7 @@
|
|||
show-overflow-tooltip
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ moment(scope.row.StudyTime).format("YYYY-MM-DD") }}
|
||||
{{ moment(scope.row.StudyTime).format('YYYY-MM-DD') }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 上传时间 -->
|
||||
|
@ -144,27 +150,24 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
getSubjectVisitUploadedStudyList,
|
||||
deleteStudyList,
|
||||
} from "@/api/trials";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import uploadPetClinicalData from "@/views/trials/trials-panel/visit/crc-upload/components/uploadPetClinicalData.vue";
|
||||
import moment from "moment";
|
||||
import { getSubjectVisitUploadedStudyList, deleteStudyList } from '@/api/trials'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import uploadPetClinicalData from '@/views/trials/trials-panel/visit/crc-upload/components/uploadPetClinicalData.vue'
|
||||
import moment from 'moment'
|
||||
export default {
|
||||
name: "StudyInfo",
|
||||
name: 'StudyInfo',
|
||||
components: { uploadPetClinicalData },
|
||||
props: {
|
||||
data: {
|
||||
type: Object,
|
||||
default() {
|
||||
return {};
|
||||
return {}
|
||||
},
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
userTypeEnumInt: zzSessionStorage.getItem("userTypeEnumInt") * 1,
|
||||
userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1,
|
||||
deleteArr: [],
|
||||
studyLoading: false,
|
||||
studyList: [],
|
||||
|
@ -175,117 +178,117 @@ export default {
|
|||
rowData: {},
|
||||
relationInfo: {},
|
||||
bp: [],
|
||||
};
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
this.getStudyInfo();
|
||||
this.bp = await this.$getBodyPart(this.$route.query.trialId);
|
||||
this.getStudyInfo()
|
||||
this.bp = await this.$getBodyPart(this.$route.query.trialId)
|
||||
},
|
||||
methods: {
|
||||
// 预览临床数据
|
||||
handlePreviewClinicalData(row) {
|
||||
this.rowData = row;
|
||||
this.petVisible = true;
|
||||
this.rowData = row
|
||||
this.petVisible = true
|
||||
},
|
||||
getStudyInfo() {
|
||||
this.studyLoading = true;
|
||||
this.studyLoading = true
|
||||
getSubjectVisitUploadedStudyList(this.data.Id)
|
||||
.then((res) => {
|
||||
this.studyList = res.Result;
|
||||
this.relationInfo = res.OtherInfo;
|
||||
this.studyLoading = false;
|
||||
this.studyList = res.Result
|
||||
this.relationInfo = res.OtherInfo
|
||||
this.studyLoading = false
|
||||
})
|
||||
.catch(() => {
|
||||
this.studyLoading = false;
|
||||
});
|
||||
this.studyLoading = false
|
||||
})
|
||||
},
|
||||
// 批量删除
|
||||
handleBatchDelete() {
|
||||
this.$confirm(this.$t("trials:qcCheck:message:delete"), {
|
||||
type: "warning",
|
||||
this.$confirm(this.$t('trials:qcCheck:message:delete'), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true,
|
||||
})
|
||||
.then(() => {
|
||||
this.studyLoading = true;
|
||||
this.studyLoading = true
|
||||
deleteStudyList(this.trialId, this.data.Id, this.deleteArr)
|
||||
.then((res) => {
|
||||
if (res.IsSuccess) {
|
||||
this.getStudyInfo();
|
||||
this.$emit("getList");
|
||||
this.getStudyInfo()
|
||||
this.$emit('getList')
|
||||
this.$message.success(
|
||||
this.$t("trials:qcCheck:message:deletedSuccessfully")
|
||||
);
|
||||
this.$t('trials:qcCheck:message:deletedSuccessfully')
|
||||
)
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.studyLoading = true;
|
||||
});
|
||||
this.studyLoading = true
|
||||
})
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => {})
|
||||
},
|
||||
// 预览所有影像
|
||||
handlePreviewAllFiles() {
|
||||
var token = getToken();
|
||||
var token = getToken()
|
||||
const routeData = this.$router.resolve({
|
||||
path: `/showvisitdicoms?trialId=${this.data.TrialId}&visitInfo=${this.data.VisitName}(${this.data.VisitNum})&subjectVisitId=${this.data.Id}&TokenKey=${token}`,
|
||||
});
|
||||
window.open(routeData.href, "_blank");
|
||||
})
|
||||
window.open(routeData.href, '_blank')
|
||||
},
|
||||
// 预览影像
|
||||
handleViewStudy(row) {
|
||||
var token = getToken();
|
||||
var token = getToken()
|
||||
const routeData = this.$router.resolve({
|
||||
path: `/showdicom?studyId=${row.StudyId}&TokenKey=${token}&type=Study`,
|
||||
});
|
||||
window.open(routeData.href, "_blank");
|
||||
})
|
||||
window.open(routeData.href, '_blank')
|
||||
},
|
||||
getBodyPart(bodyPart) {
|
||||
if (!bodyPart) return "";
|
||||
var separator = ",";
|
||||
if (bodyPart.indexOf("|") > -1) {
|
||||
separator = "|";
|
||||
} else if (bodyPart.indexOf(",") > -1) {
|
||||
separator = ",";
|
||||
} else if (bodyPart.indexOf(",") > -1) {
|
||||
separator = ",";
|
||||
if (!bodyPart) return ''
|
||||
var separator = ','
|
||||
if (bodyPart.indexOf('|') > -1) {
|
||||
separator = '|'
|
||||
} else if (bodyPart.indexOf(',') > -1) {
|
||||
separator = ','
|
||||
} else if (bodyPart.indexOf(',') > -1) {
|
||||
separator = ','
|
||||
}
|
||||
var arr = bodyPart.split(separator);
|
||||
var arr = bodyPart.split(separator)
|
||||
var newArr = arr.map((i) => {
|
||||
return this.$fd(
|
||||
"Bodypart",
|
||||
'Bodypart',
|
||||
i.trim(),
|
||||
"Code",
|
||||
'Code',
|
||||
{ Bodypart: this.bp },
|
||||
"Name"
|
||||
);
|
||||
});
|
||||
return newArr.join(" | ");
|
||||
'Name'
|
||||
)
|
||||
})
|
||||
return newArr.join(' | ')
|
||||
},
|
||||
// 获取勾选项
|
||||
handleSelectionChange(val) {
|
||||
this.deleteArr = [];
|
||||
this.deleteArr = []
|
||||
val.forEach((item) => {
|
||||
this.deleteArr.push(item.StudyId);
|
||||
});
|
||||
this.deleteArr.push(item.StudyId)
|
||||
})
|
||||
},
|
||||
// 设置已删除行勾选状态
|
||||
hasDeleted(row) {
|
||||
if (row.IsDeleted) {
|
||||
return false;
|
||||
return false
|
||||
} else {
|
||||
return true;
|
||||
return true
|
||||
}
|
||||
},
|
||||
// 设置已删除序列行样式
|
||||
tableRowClassName({ row, rowIndex }) {
|
||||
if (row.IsDeleted) {
|
||||
return "delete-row";
|
||||
return 'delete-row'
|
||||
} else {
|
||||
return "";
|
||||
return ''
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.study-info {
|
||||
|
|
Loading…
Reference in New Issue