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