Commit e8c7d61d authored by xiongjinke's avatar xiongjinke

修改

parent 73d0bc89
......@@ -133,6 +133,10 @@
type: String,
default: ""
},
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
},
datas:[],//数据源
},
name: 'gjjl',
......@@ -157,7 +161,7 @@
recordlist:[],//列表数据源
isdel:false,
delID:'',//删除记录的ID
projectId:parseInt(this.$route.query.id),//项目详情id
projectId:this.detailId ? this.detailId : parseInt(this.$route.query.id),//项目详情id
userId:this.$store.state.user.userId,//当前用户id
projectList:[],//关联项目
}
......
......@@ -123,6 +123,12 @@
import { getZLWD ,delZLWD} from "@/api/project/project";
export default {
name: 'zlwd',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){
return{
isupload:false,
......@@ -132,12 +138,12 @@
fileList: [],
headers: {
Authorization: "Bearer " + getToken(),
filePath:this.$route.query.id,
filePath:this.detailId ? this.detailId : this.$route.query.id,
},
param:{
pageNum:1,
pagesize:20,
filePath:this.$route.query.id,
filePath:this.detailId ? this.detailId : this.$route.query.id,
keyword:'',
},
fileDatas:[],
......@@ -151,9 +157,9 @@
},
methods:{
getall(){
this.param.filePath = this.$route.query.id
this.param.filePath = this.detailId ? this.detailId : this.$route.query.id
this.filename=''
this.headers.filePath = this.$route.query.id
this.headers.filePath = this.detailId ? this.detailId : this.$route.query.id
this.handleCurrentChange(1)
},
getList(){
......@@ -176,7 +182,7 @@
getFile(row){
if(row.type == 'file'){
this.filename = row.name
this.headers.filePath = this.$route.query.id+'/'+row.name
this.headers.filePath = this.detailId ? this.detailId : this.$route.query.id+'/'+row.name
this.param.filePath = row.filePath
this.handleCurrentChange(1)
......
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