三项制度库,显示文件名

pet-人员中台对接-xuyifeng-7.24
liujun 2024-07-30 13:58:06 +08:00
parent 5082d741d3
commit f699d2c125
2 changed files with 1 additions and 31 deletions

View File

@ -95,6 +95,7 @@
align="center"/> align="center"/>
<el-table-column type="index" label="序号" width="50" align="center" /> <el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column align="center" prop="TYPE_NAME" label="文件类型" /> <el-table-column align="center" prop="TYPE_NAME" label="文件类型" />
<el-table-column align="center" prop="FILE_NAME" label="文件名称" />
<el-table-column align="center" prop="TYPE_TWO_NAME" label="部门分类" /> <el-table-column align="center" prop="TYPE_TWO_NAME" label="部门分类" />
<el-table-column align="center" prop="UPLOAD_TIME" label="上传时间" /> <el-table-column align="center" prop="UPLOAD_TIME" label="上传时间" />
<el-table-column align="center" prop="UPLOAD_USER_NAME" label="上传人" /> <el-table-column align="center" prop="UPLOAD_USER_NAME" label="上传人" />

View File

@ -626,37 +626,6 @@ export default {
}, },
// excel // excel
exportExcelHandler(ids, head) { exportExcelHandler(ids, head) {
// return new Promise((resolve, reject) => {
// axios
// .post(
// config.httpurl + '/xgf/user/exportExcel?' + `ids=${ids}&head=${head}`,
// {},
// {
// responseType: 'blob'
// }
// )
// .then(res => {
// setTimeout(() => {
// const blob = new Blob([res.data], {
// type: 'application/vnd.ms-excel'
// })
// const downloadElement = document.createElement('a')
// const href = window.URL.createObjectURL(blob)
// downloadElement.style.display = 'none'
// downloadElement.href = href
// downloadElement.download = moment().format('YYYY-MM-DD HH:mm:ss')
// document.body.appendChild(downloadElement)
// downloadElement.click()
// document.body.removeChild(downloadElement)
// window.URL.revokeObjectURL(href)
// resolve(res)
// }, 2000)
// })
// .catch(e => {
// reject(e)
// this.$message.error(',')
// })
// })
window.open(`${this.config.httpurl}/xgf/user/exportExcel?ids=${ids}&head=${head}`) window.open(`${this.config.httpurl}/xgf/user/exportExcel?ids=${ids}&head=${head}`)
}, },
// //