From fd0e3fd03817d6610c52b09fe27cccf0d3f96438 Mon Sep 17 00:00:00 2001 From: yaowanxin <3588231647@qq.com> Date: 星期二, 12 八月 2025 16:26:11 +0800 Subject: [PATCH] Merge branch 'dev_ai' of http://114.132.189.42:9002/r/product-inventory-management into ywx --- src/views/collaborativeApproval/approvalProcess/fileList.vue | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/src/views/collaborativeApproval/approvalProcess/fileList.vue b/src/views/collaborativeApproval/approvalProcess/fileList.vue new file mode 100644 index 0000000..da37db2 --- /dev/null +++ b/src/views/collaborativeApproval/approvalProcess/fileList.vue @@ -0,0 +1,43 @@ +<template> + <el-dialog v-model="dialogVisible" title="闄勪欢" width="40%" :before-close="handleClose"> + <el-table :data="tableData" border height="40vh"> + <el-table-column label="闄勪欢鍚嶇О" prop="name" min-width="400" show-overflow-tooltip /> + <el-table-column fixed="right" label="鎿嶄綔" width="100" align="center"> + <template #default="scope"> + <el-button link type="primary" size="small" @click="downLoadFile(scope.row)">涓嬭浇</el-button> + <el-button link type="primary" size="small" @click="lookFile(scope.row)">棰勮</el-button> + </template> + </el-table-column> + </el-table> + </el-dialog> + <filePreview ref="filePreviewRef" /> +</template> + +<script setup> +import { ref } from 'vue' +import filePreview from '@/components/filePreview/index.vue' + +const dialogVisible = ref(false) +const tableData = ref([]) +const { proxy } = getCurrentInstance(); +const filePreviewRef = ref() +const handleClose = () => { + dialogVisible.value = false +} +const open = (list) => { + dialogVisible.value = true + tableData.value = list +} +const downLoadFile = (row) => { + proxy.$download.name(row.url); + +} +const lookFile = (row) => { + filePreviewRef.value.open(row.url) +} +defineExpose({ + open +}) +</script> + +<style></style> \ No newline at end of file -- Gitblit v1.9.3