diff --git a/src/components/search/searchByCondition.vue b/src/components/search/searchByCondition.vue index a31f302..98d8aba 100644 --- a/src/components/search/searchByCondition.vue +++ b/src/components/search/searchByCondition.vue @@ -686,13 +686,18 @@ const fileTypeAvatar = (fileType) => { const previewPDF = (item) => { console.log(item) - if (typeof plus !== 'undefined') { - downloadAndOpenFile(item) - } else { - document.addEventListener('plusready', () => { - downloadAndOpenFile(item) - }) - } + // if (typeof plus !== 'undefined') { + // downloadAndOpenFile(item) + // } else { + // document.addEventListener('plusready', () => { + // downloadAndOpenFile(item) + // }) + // } + window.open( + `${import.meta.env.VITE_PAGE_URL}/office?url=${item.extra.path}`, + '_blank', + 'width=1200,height=900,left=200,top=200,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no' + ) } const downloadAndOpenFile = (item) => { @@ -926,7 +931,6 @@ body:deep(.round-3) { } .condition-each-resultList { .condition-each-resultList-each { - border-bottom: 1px solid #f8f8f8; .condition-each-result-main { display: flex; flex-direction: row; @@ -942,9 +946,16 @@ body:deep(.round-3) { flex-direction: row; align-items: center; justify-content: flex-start; - padding: 14px 0; + padding: 14px 20px; // background-color: #f3f3f3; border-radius: 4px; + cursor: pointer; + border-bottom: 1px solid #f8f8f8; + + &:hover { + background-color: rgba(70, 41, 157, 0.1) + } + .attachment-avatar { display: flex; flex-direction: row; @@ -1126,6 +1137,10 @@ body:deep(.round-3) { .image-container { width: 100% !important; height: 100% !important; + &:hover { + cursor: pointer; + border: 1px solid #46299d; + } } :deep(.n-image) { diff --git a/src/components/search/searchItem.vue b/src/components/search/searchItem.vue index 0398579..964a6f3 100644 --- a/src/components/search/searchItem.vue +++ b/src/components/search/searchItem.vue @@ -69,7 +69,43 @@ class="text-[12px] font-regular" :text="resultDetail" :searchText="props.searchText" + v-if="props.searchItem?.msg_type !== 3 && props.searchItem?.msg_type !== 6" /> +
+ +