三项制度库,显示文件名
parent
5082d741d3
commit
f699d2c125
|
@ -95,6 +95,7 @@
|
|||
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="FILE_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_USER_NAME" label="上传人" />
|
||||
|
|
|
@ -626,37 +626,6 @@ export default {
|
|||
},
|
||||
// 导出指定数据项至 excel 表格
|
||||
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}`)
|
||||
},
|
||||
// 点击操作打开菜单选择框
|
||||
|
|
Loading…
Reference in New Issue