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