@@ -286,6 +286,8 @@
+
@@ -312,6 +314,7 @@ import { patientAPI, detectionAPI,historyAPI,getBackendUrl } from '@/services/ap
import { useAuthStore } from '@/stores/index.js'
import GenerateReport from '@/views/GenerateReport.vue'
import ImageDetailsCompare from '@/views/ImageDetailsCompare.vue'
+import ImageDetails from '@/views/ImageDetails.vue'
const formatDate = (date) => {
const d = new Date(date)
@@ -350,7 +353,8 @@ const profileInfo = ref({
const selectedRecord = ref({})
const recordData =ref([])
const isImageDetailsCompare = ref(false) // 是否显示对比图片详情
-
+const isImageDetails =ref(false) // 是否显示图片详情
+const selectIndex = ref(0) // 图片详情选中的索引
const ImageDetailsList = ref([]) // 图片详情列表
const checkboxGroup = ref([]) // 图片列表选中的数据
@@ -374,6 +378,11 @@ function getNo(order) {
return order
}
}
+function clickImg(item,index){
+ debugger
+ selectIndex.value = index
+ isImageDetails.value =true
+}
const calculateAge = (birthDate) => { // 获取年龄
if (!birthDate) return '—'
const today = new Date()
@@ -676,9 +685,10 @@ function closeGenerateReport(){ // 关闭生成报告页面
}
function viewCompareImg(){
- if(checkboxGroup.length != 2){
+ if(checkboxGroup.value.length != 2){
return
}
+
ImageDetailsList.value = []
for(let i=0;i{
background-color: #14aaff;
color: #fff;
}
+.patientprofile-container-info .el-select__placeholder{
+ color: #fff;
+}