Commit 31c5a5cb authored by 张伯涛's avatar 张伯涛

预览

parent 52885140
......@@ -3,5 +3,5 @@ ENV = 'test'
NODE_ENV= 'production'
# 测试环境
# base api
VUE_APP_BASE_API = 'http://10.19.100.58:8090'
VUE_APP_BASE_API = 'http://117.122.212.101:8090'
......@@ -2014,7 +2014,9 @@ export default {
}
},
filePreview(row) {
console.log('数据', row)
const fileType = row.FILENAME.split('.')[row.FILENAME.split('.').length - 1]
console.log('数据', row, fileType)
if (fileType === 'pdf') {
this.filePreviewDialog = true
this.$axios.get(this.HTTPApi + '/contractjxx/contract-fjxx/preview/' + row.BUSINESSID).then(res => {
if (!res.errno) {
......@@ -2025,6 +2027,9 @@ export default {
.catch(function(error) {
console.log(error)
})
} else {
this.$message.warning('只有附件类型为PDF的附件可以预览!')
}
},
uploadF2(file) {
console.log(file, 'file')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment