|
@@ -33,12 +33,7 @@
|
|
|
<hc-drawer v-model="isDrawer" to-id="pdf-card-target" is-close>
|
|
|
<div class="drawer-content">
|
|
|
<div class="drawer-left">
|
|
|
- <hc-pdf v-if="currentPdfUrl" :src="currentPdfUrl" viewer />
|
|
|
- </div>
|
|
|
- <div class="drawer-right">
|
|
|
- <div v-for="(item, index) in pdfList" :key="index" class="rule-box-item" @click="switchPdf(item)">
|
|
|
- <div class="rule-box-item-title">{{ item.fileName }}</div>
|
|
|
- </div>
|
|
|
+ <hc-pdfs v-if="currentPdfUrl" :url="currentPdfUrl" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</hc-drawer>
|
|
@@ -96,16 +91,12 @@ const ruleDetailClick = (item)=>{
|
|
|
const isDrawer = ref(false)
|
|
|
const ruleDetailClick1 = (item)=>{
|
|
|
getFileDetail1(item.id)
|
|
|
+ currentPdfUrl.value = item.standardFile.standardFileUrl
|
|
|
isDrawer.value = true
|
|
|
|
|
|
}
|
|
|
const currentPdfUrl = ref('')
|
|
|
-const switchPdf = (item) => {
|
|
|
- console.log(item, 'item')
|
|
|
-
|
|
|
- // 假设这里通过某种方式获取了PDF的URL,并设置为currentPdfUrl
|
|
|
- currentPdfUrl.value = item.standardFileUrl // 替换为实际的PDF URL获取逻辑
|
|
|
-}
|
|
|
+
|
|
|
|
|
|
const getTableData = async () => {
|
|
|
const nodeId = nodeItemInfo.value.id
|