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

list附件link

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