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

list附件link

parent 464909f7
......@@ -2,7 +2,7 @@
ENV = 'development'
# base api
VUE_APP_BASE_API = 'http://117.122.212.102:8090'
VUE_APP_BASE_API = 'http://10.19.103.15:8090'
# workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow'
# login地址
......
......@@ -304,7 +304,6 @@
<el-table-column label="附件名称">
<template slot-scope="scope">
<span>{{ scope.row.FILENAME }}</span>
<span v-if="showError === true" style="color:#f52929;">请上传文件</span>
</template>
</el-table-column>
<el-table-column label="操作">
......@@ -434,29 +433,9 @@ export default {
}
})
},
created() {
if (this.$store.getters.searchParams[this.$route.path]) {
const { searchParams } = this.$store.getters; const { path } = this.$route
const param = JSON.parse(searchParams[path]) // 保留着的查询条件
this.serchForm = { ...param }
this.page = param.page
this.rows = param.rows
}
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave(to, from, next) {
this.$store.dispatch('searchSave/searchParamsSet', {
path: this.$route.path,
param: {
...this.serchForm,
page: this.page,
rows: this.rows
}
})
next()
},
data() {
return {
FJXXfromId: '',
headers: {
'constnet-type': 'multipart/form-data'
},
......@@ -827,6 +806,27 @@ export default {
statusEnum
}
},
created() {
if (this.$store.getters.searchParams[this.$route.path]) {
const { searchParams } = this.$store.getters; const { path } = this.$route
const param = JSON.parse(searchParams[path]) // 保留着的查询条件
this.serchForm = { ...param }
this.page = param.page
this.rows = param.rows
}
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave(to, from, next) {
this.$store.dispatch('searchSave/searchParamsSet', {
path: this.$route.path,
param: {
...this.serchForm,
page: this.page,
rows: this.rows
}
})
next()
},
mounted() {
this.findMap()
this.findContract() // 个人列表
......@@ -843,6 +843,7 @@ export default {
})
},
updateFJXX(row) {
this.FJXXfromId = row.FROMID
const FROMID = row.FROMID
this.$axios.get(this.HTTPApi + '/contract/contract/detail/' + FROMID).then(res => {
this.FJXXForm = res.data.data.FJXX
......@@ -871,7 +872,7 @@ export default {
formData.append('file', file.file)
this.$axios({
method: 'post',
url: this.HTTPApi + '/contractjxx/contract-fjxx/upload',
url: this.HTTPApi + '/contractjxx/contract-fjxx/upload/' + this.FJXXfromId,
data: formData })
.then((res) => {
if (!res.errno) {
......@@ -911,7 +912,7 @@ export default {
console.log('参数参数', formData)
this.$axios({
method: 'post',
url: this.HTTPApi + '/contractjxx/contract-fjxx/upload',
url: this.HTTPApi + '/contractjxx/contract-fjxx/upload/' + this.FJXXfromId,
data: formData })
.then((res) => {
if (!res.errno) {
......@@ -941,6 +942,9 @@ export default {
this.FJXXForm.splice(i, 1)
}
},
FJXXBtnChcheck() {
this.FJXXDialog = false
},
filePreview(row) {
const fileType = row.FILENAME.split('.')[row.FILENAME.split('.').length - 1]
console.log('数据', row, fileType)
......
......@@ -42,7 +42,7 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: {
// target: `http://10.5.87.231:10010/`,
// target: `http://zt.51newsoftware.com:10184/`,
target: 'http://117.122.212.102:8090/',
target: 'http://10.19.103.15:8090/',
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
......
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