fix BUG修改
This commit is contained in:
parent
555847aa78
commit
c36ab4e06e
@ -90,7 +90,7 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://182.90.224.147:15551/'//港投(成润)项目线上(1)
|
||||
// axios.defaults.baseURL = 'http://118.121.198.147:23232/'//港投(成润)正式
|
||||
// axios.defaults.baseURL ='http://182.90.224.147:100/' //演示平台/
|
||||
axios.defaults.baseURL ='http://192.168.34.221:8079' //郭圣雄本地
|
||||
axios.defaults.baseURL ='http://192.168.34.221:8070' //郭圣雄本地
|
||||
// axios.defaults.baseURL ='http://192.168.34.221:30001' //郭圣雄本地
|
||||
// axios.defaults.baseURL ='http://192.168.34.221:12350/' //金林湾本地
|
||||
// axios.defaults.baseURL ='http://61.145.163.135:12345' //坪山沙湖
|
||||
|
||||
@ -44,17 +44,19 @@ export default new Vuex.Store({
|
||||
|
||||
state: {
|
||||
PAGESIZRS: [10, 20, 30, 50],
|
||||
UPLOADURL:'http://192.168.34.221:8070/upload/image',// 郭正雄
|
||||
FILEURL:'http://192.168.34.221:8070/image/',//郭正雄
|
||||
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试
|
||||
// FILEURL:'http://10.0.1.43:6023/image/',//测试
|
||||
BASEURL: baseUrl
|
||||
? baseUrl
|
||||
: window.location.protocol + "//" + window.location.host + "/", //正式环境
|
||||
UPLOADURL:
|
||||
window.location.protocol +
|
||||
"//" +
|
||||
window.location.host +
|
||||
"/upload/image", //正式环境
|
||||
FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
|
||||
// UPLOADURL:
|
||||
// window.location.protocol +
|
||||
// "//" +
|
||||
// window.location.host +
|
||||
// "/upload/image", //正式环境
|
||||
// FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
|
||||
//---------------------------------------------------------------------------------------------
|
||||
// BASEURL: baseUrl
|
||||
// ? baseUrl
|
||||
@ -72,6 +74,8 @@ export default new Vuex.Store({
|
||||
// UPLOADURL: 'http://139.9.66.234:6324/upload/image',
|
||||
// FILEURL: 'http://139.9.66.234:6324/image/',
|
||||
|
||||
|
||||
|
||||
/* 2022-06-06 广西本地的*/ // FILEURL: 'http://182.90.224.237:7000/image/',
|
||||
// 邱平毅的
|
||||
// BASEURL:'http://192.168.34.116:6023/',
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
<div class="tableBtns">
|
||||
<el-button
|
||||
class="operationText"
|
||||
@click="downFn(scope.row.filePath)"
|
||||
@click="downFn(scope.row)"
|
||||
type="text"
|
||||
size="small"
|
||||
>下载附件</el-button
|
||||
@ -382,26 +382,26 @@ export default {
|
||||
},
|
||||
//下载文件
|
||||
downFn(item) {
|
||||
// console.log('http://182.90.224.147:30262/image/'+item);
|
||||
// console.log('http://182.90.224.147:30262/image/'+item.id);
|
||||
window.location.href = this.$store.state.FILEURL+item.id;
|
||||
// if (item) {
|
||||
// let arr = []
|
||||
// arr = JSON.parse(item)
|
||||
// arr.forEach(element => {
|
||||
window.location.href = this.$store.state.FILEURL+item;
|
||||
// });
|
||||
// });
|
||||
// } else {
|
||||
// this.$message.success('未查询到附件')
|
||||
// }
|
||||
// updateFileDownloadNumApi({ id: item.id }).then((res) => {
|
||||
// // window.open(this.$store.state.FILEURL+item.filePath)
|
||||
// // var a = document.createElement("a");
|
||||
// // a.href = this.$store.state.FILEURL + item.filePath
|
||||
// // a.download = item.fileName;
|
||||
// // a.click();
|
||||
// this.$message.error(res.message);
|
||||
// this.downloadUrl = this.$store.state.FILEURL + item.filePath
|
||||
updateFileDownloadNumApi({ id: item.id }).then((res) => {
|
||||
// window.open(this.$store.state.FILEURL+item.filePath)
|
||||
// var a = document.createElement("a");
|
||||
// a.href = this.$store.state.FILEURL + item.filePath
|
||||
// a.download = item.fileName;
|
||||
// a.click();
|
||||
// this.$message.succe(res.message);
|
||||
this.downloadUrl = this.$store.state.FILEURL + item.id
|
||||
|
||||
// })
|
||||
})
|
||||
},
|
||||
//查看条数
|
||||
handleSizeChange(val) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user