|
|
@@ -179,24 +179,24 @@ export default {
|
|
|
this.getFile()
|
|
|
},
|
|
|
async getFile() {
|
|
|
- console.log(this.file, 'filefilefile')
|
|
|
+ // console.log(this.file, 'filefilefile')
|
|
|
// 1、获取文件数据 及下载流接口
|
|
|
// 下载地址
|
|
|
- const sql = `select * from t_ipcc where id_ = '1'`
|
|
|
- let ipccUrl = ''
|
|
|
- await this.$common.request(dbSqlConfig ? 'query' : 'sql', dbSqlConfig ? { key: 'getIpConfig', params: [null] } : sql).then(res => {
|
|
|
- const datas = res.variables.data
|
|
|
- const ip = datas[0].nei_rong_
|
|
|
- ipccUrl = ip + '/ibps'
|
|
|
- })
|
|
|
+ // const sql = `select * from t_ipcc where id_ = '1'`
|
|
|
+ // let ipccUrl = ''
|
|
|
+ // await this.$common.request(dbSqlConfig ? 'query' : 'sql', dbSqlConfig ? { key: 'getIpConfig', params: [null] } : sql).then(res => {
|
|
|
+ // const datas = res.variables.data
|
|
|
+ // const ip = datas[0].nei_rong_
|
|
|
+ // ipccUrl = ip + '/ibps'
|
|
|
+ // })
|
|
|
this.option.url =
|
|
|
- (BASE_API() === ipccUrl ? BASE_API() : ipccUrl) +
|
|
|
+ BASE_API() +
|
|
|
SYSTEM_URL() +
|
|
|
'/file/download?attachmentId=' +
|
|
|
this.file.id
|
|
|
// 回调接口url
|
|
|
this.option.editUrl =
|
|
|
- (BASE_API() === ipccUrl ? BASE_API() : ipccUrl) +
|
|
|
+ BASE_API() +
|
|
|
SYSTEM_URL() +
|
|
|
'/file/editCallback?fileName=' +
|
|
|
this.file.fileName +
|