详情文件预览

This commit is contained in:
zhujiyan
2024-06-06 22:14:20 +08:00
parent 5722259cc1
commit b3fbb68881
15 changed files with 238 additions and 77 deletions

View File

@@ -17,6 +17,7 @@
<Link />
</el-icon>
<a :href="problemDetail.problemPath" target="_blank">{{ problemDetail.problemName }}</a>
<span @click="openFile(problemDetail.problemName )">预览</span>
</el-form-item>
<el-form-item label="采取的措施:" prop="takeStep">
@@ -63,6 +64,9 @@ import TableStore from '@/utils/tableStore' // 若不是列表页面弹框可删
import { getFileNameAndFilePath, uploadFile } from '@/api/system-boot/file'
import { addFeedback, updateFeedback } from '@/api/supervision-boot/leaflet'
import { Link } from '@element-plus/icons-vue'
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?' + name)
}
//.doc,.docx,.xlsx,.xls,.pdf
const acceptType = ref('')
//下拉数据源