zhangli 1 year ago
parent
commit
a381078ded
  1. 9
      src/components/Annex/src/Annex.vue

9
src/components/Annex/src/Annex.vue

@ -9,8 +9,8 @@
<div class="list"> <div class="list">
<div class="item flex items-start" v-for="(item, index) in annexData.annexList" :key="index"> <div class="item flex items-start" v-for="(item, index) in annexData.annexList" :key="index">
<Icon icon="fa:file-text-o" color="#409eff" size="30" class="mt-4px" /> <Icon icon="fa:file-text-o" color="#409eff" size="30" class="mt-4px" />
<div class="item-center"> <div class="item-center" >
<div class="item-title">{{ item.name }}</div> <div class="item-title" @click="downFile(item)">{{ item.name }}</div>
<div class="info mt-6px"> <div class="info mt-6px">
<div class="info-txt"> <div class="info-txt">
<div>{{ item.size }}KB</div> <div>{{ item.size }}KB</div>
@ -63,7 +63,9 @@ const deleteAnnex = async (id) => {
} catch { } } catch { }
emit('deleteAnnexSuccess') emit('deleteAnnexSuccess')
} }
const downFile = (item)=>{
window.open(import.meta.env.VITE_BASE_URL + '/admin-api/infra/file/0/get/' + item.path,'222')
}
</script> </script>
@ -95,6 +97,7 @@ const deleteAnnex = async (id) => {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
cursor: pointer;
} }
.info { .info {

Loading…
Cancel
Save