Commit 52885140 authored by 张伯涛's avatar 张伯涛

预览

parent 1558561d
......@@ -2,7 +2,7 @@
ENV = 'development'
# base api
VUE_APP_BASE_API = 'http://10.19.100.58:8090'
VUE_APP_BASE_API = 'http://117.122.212.101:8090'
# workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow'
# login地址
......
......@@ -1528,6 +1528,11 @@
</el-form-item>
</el-form>
</el-dialog>
<el-dialog :close-on-click-modal="false" title="附件预览" :visible.sync="filePreviewDialog">
<div>
<el-image :src="fileUrl" />
</div>
</el-dialog>
<div class="step-content">
<el-table :data="form.FJXX">
<el-table-column
......@@ -1571,6 +1576,7 @@
</el-link>
<!-- <el-link v-if="scope.row.FILENAME === '' " type="success" :underline="false" @click="downLoadFile(scope.row)">下载</el-link>-->
<el-link type="danger" :underline="false" @click="delFile(scope.$index,scope.row)">删除</el-link>
<el-link v-if="scope.row.FILENAME !== ''" type="success" style="margin-left: 15px" :underline="false" @click="filePreview(scope.row)">预览</el-link>
</template>
</el-table-column>
</el-table></div>
......@@ -1589,6 +1595,8 @@ export default {
name: 'ContractDetail',
data() {
return {
filePreviewDialog: false,
fileUrl: '',
HTTPApi: process.env.VUE_APP_BASE_API,
// 上传的文件列表
fileList: [],
......@@ -2005,6 +2013,19 @@ export default {
return false
}
},
filePreview(row) {
console.log('数据', row)
this.filePreviewDialog = true
this.$axios.get(this.HTTPApi + '/contractjxx/contract-fjxx/preview/' + row.BUSINESSID).then(res => {
if (!res.errno) {
this.fileUrl = res.data.data
}
console.log('数据aaaa', this.fileUrl)
})
.catch(function(error) {
console.log(error)
})
},
uploadF2(file) {
console.log(file, 'file')
const formData = new FormData()
......
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