|
@@ -22,7 +22,7 @@
|
|
|
<el-table-column prop='lb' label='文件目录' width='400' show-overflow-tooltip resizable>
|
|
|
<template slot-scope='{row}'>{{row.fullPath || '--'}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop='sl' label='文件名' width='250' show-overflow-tooltip resizable>
|
|
|
+ <el-table-column prop='sl' label='文件名' width='250' show-overflow-tooltip resizable>
|
|
|
<template slot-scope='{row}'>{{row.pathName || '--'}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='assetnum' label='文件类型' width='100' show-overflow-tooltip resizable>
|
|
@@ -145,9 +145,6 @@ export default {
|
|
|
getParams.keywords = keywords
|
|
|
}
|
|
|
let res = await queryPicList({ getParams })
|
|
|
- console.log('===========')
|
|
|
- console.log(res)
|
|
|
- console.log('===========')
|
|
|
this.tableData = res?.data || []
|
|
|
this.total = res?.count || 0
|
|
|
},
|
|
@@ -155,13 +152,21 @@ export default {
|
|
|
* 预览
|
|
|
*/
|
|
|
handlePreview(fileId) {
|
|
|
- window.open(`http://szhyj.wanda.cn/dwg/index.html?fileId=${fileId}`)
|
|
|
+ let url = 'http://szhyj.wanda.cn/dwg/index.html?fileId='
|
|
|
+ if (['serve', 'aly_dev'].includes(process.env.NODE_ENV)) {
|
|
|
+ url = 'http://39.106.116.51:8081/dwg/index.html?fileId='
|
|
|
+ }
|
|
|
+ window.open(url + fileId)
|
|
|
},
|
|
|
/**
|
|
|
* 下载
|
|
|
*/
|
|
|
handleDown(fileUrl) {
|
|
|
- window.open(fileUrl)
|
|
|
+ let url = 'http://szhyj.wanda.cn/upload'
|
|
|
+ if (['serve', 'aly_dev'].includes(process.env.NODE_ENV)) {
|
|
|
+ url = 'http://39.106.116.51:8088/upload/'
|
|
|
+ }
|
|
|
+ window.open(url + fileUrl)
|
|
|
},
|
|
|
/**
|
|
|
* 页面窗口变化,更新 size值
|