|
@@ -204,6 +204,36 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-dialog v-model="pdfviewshow" :title="`文件预览`" width="60vw" >
|
|
|
+
|
|
|
+
|
|
|
+ <div style="position: relative;">
|
|
|
+ <el-affix :offset="400" style="width: 100%;">
|
|
|
+ <div style="position: absolute;">
|
|
|
+ <el-button type="primary" icon="DArrowLeft"></el-button>
|
|
|
+ </div>
|
|
|
+ <div style="float: right;">
|
|
|
+ <el-button type="primary" icon="DArrowRight"></el-button>
|
|
|
+ </div>
|
|
|
+ </el-affix>
|
|
|
+ <pdfview :src="currentfile.url"></pdfview>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <!-- <div><el-affix :offset="120" position="bottom"><el-button type="text" icon="DArrowRight"></el-button></el-affix></div>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button @click="pdfviewshow = false">关闭</el-button>
|
|
|
+
|
|
|
+ <el-button type="primary" @click="downloadfile">
|
|
|
+ 下载
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
<el-dialog v-model="shvisable" :title="`项目审核`" width="40vw">
|
|
|
<el-input
|
|
@@ -309,7 +339,7 @@
|
|
|
<template #default="scope">
|
|
|
<div style="display: flex;gap:5px">
|
|
|
<div> <el-button type="text" >删除</el-button></div>
|
|
|
- <div> <el-button type="text" >预览</el-button></div>
|
|
|
+ <div> <el-button type="text" @click="filepreview(scope.row)" >预览</el-button></div>
|
|
|
<div> <el-button type="text" >下载</el-button></div>
|
|
|
</div>
|
|
|
|
|
@@ -321,7 +351,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { ref } from "vue";
|
|
|
+import { ref,onMounted } from "vue";
|
|
|
import {
|
|
|
listArchives,
|
|
|
addArchives,
|
|
@@ -337,6 +367,7 @@ const { sys_area, sys_project_status } = toRefs<any>(
|
|
|
);
|
|
|
const drawer = ref(false)
|
|
|
const shvisable = ref(false);
|
|
|
+const pdfviewshow = ref(false);
|
|
|
|
|
|
const searchForm = ref({
|
|
|
area: "",
|
|
@@ -371,7 +402,10 @@ const getnextdata = (page: number) => {
|
|
|
totalnum.value = res.total;
|
|
|
});
|
|
|
};
|
|
|
-getnextdata(1);
|
|
|
+onMounted(() => {
|
|
|
+ getnextdata(1);
|
|
|
+})
|
|
|
+
|
|
|
|
|
|
const dialogVisible = ref(false);
|
|
|
const currenttype = ref(1);
|
|
@@ -502,6 +536,18 @@ const handleClose = (done) => {
|
|
|
})
|
|
|
};
|
|
|
|
|
|
+const currentfile = ref();
|
|
|
+
|
|
|
+const filepreview = (file) => {
|
|
|
+ currentfile.value = file;
|
|
|
+ pdfviewshow.value = true;
|
|
|
+}
|
|
|
+const downloadfile = (file) => {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
import txticon from '@/assets/icons/svg/txt.svg'
|
|
|
import picicon from '@/assets/icons/svg/pic.svg'
|
|
|
import pdficon from '@/assets/icons/svg/pdf1.svg'
|