下载处理追加

main
yangzhicheng 12 months ago
parent 3e808823a1
commit 914e33a24e
  1. 6
      src/views/leger/equipmentledgerDetail.vue

@ -37,6 +37,9 @@
@row-update="document_rowUpdate"
@row-save="document_rowSave"
@row-del="document_rowDel">
<template #menu="{row,index,size}">
<el-button size="small" type="text" @click="handleDownload(row)">下载</el-button>
</template>
</avue-crud>
</span>
<div class="container">
@ -881,6 +884,9 @@
this.document_data = res.data.data;
this.loading = false;
});
},
handleDownload(row) {
window.open(`/api/system/file/download?daf-auth=${getToken()}&fileName=${row.accessoryName}`);
}
}
}

Loading…
Cancel
Save