This commit is contained in:
闫晓茹 2024-08-13 10:17:25 +08:00
parent b7f1e353a3
commit 63a3de195f

View File

@ -1,7 +1,7 @@
<template>
<div :style="{ height: maxTableHeight + 'px' }" class="cardlist">
<div v-for="(item, index) in patientInfoList" :key="item.id">
<div @click="handleAuthRole(item, index)" class="cards">
<div @dblclick="handleAuthRole(item, index)" class="cards">
<div class="carditem">
<div class="top">
<img v-if="item.sex == 'FEMALE'" src="../../../assets/manage/nvtouxiang.png" alt="" class="img"
@ -98,9 +98,7 @@ export default {
},
//
handleAuthRole(item, index) {
if (this.isDoubleClicked) {
//
console.log("实现双击!");
this.$router.push({
path: "/patient/patientdetails",
query: {
@ -118,12 +116,7 @@ export default {
age: item.birthDate ? getAge(item.birthDate) : "",
},
});
} else {
this.isDoubleClicked = true;
setTimeout(() => {
this.isDoubleClicked = false;
}, 250);
}
},
//
handleedit(item) {
@ -155,8 +148,8 @@ export default {
margin-right: 10px;
margin-bottom: 10px;
overflow: hidden;
width: 263px;
height: 262px;
// width: 100%;
// height: 256px;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
@ -175,8 +168,8 @@ export default {
overflow-y: auto;
.carditem {
margin-right: 10px;
margin-bottom: 10px;
// margin-right: 10px;
// margin-bottom: 10px;
width: 260px;
min-height: 200px;
border: 1px solid #dcdfe6;
@ -185,7 +178,7 @@ export default {
font-weight: 600;
.bottom {
height: 165px;
// height: 165px;
padding: 0 6px;
.formitem {