Commit 31c23412 by zhangzhen

功能优化

parent 4eea2003
......@@ -133,6 +133,7 @@
hostUrl:config.hostUrl,
id: '',
fileId:'',
projCode:'',
minDate: moment().subtract(1, 'M').format("YYYY-MM-DD"),
content: "",
addStatus: false,
......@@ -153,6 +154,9 @@
if (option && option.fileId) {
this.fileId = option.fileId
}
if (option && option.projCode) {
this.projCode = option.projCode
}
this.onLoading()
},
methods: {
......@@ -247,6 +251,7 @@
id:this.id,
docId: this.docId,
fileId: this.fileId,
projCode: this.projCode,
bizType: "WD"
}).then(res => {
if (res.data.__sys__.status === 0) {
......
......@@ -294,7 +294,8 @@
this.folderList.push({
code: option['code' + num],
name: option['name' + num],
leaf: option['leaf' + num]
leaf: option['leaf' + num],
projCode:this.$route.query['projCode' + num]
})
}
}
......@@ -309,7 +310,8 @@
this.folderList.push({
code: this.$route.query['code' + num],
name: this.$route.query['name' + num],
leaf: this.$route.query['leaf' + num]
leaf: this.$route.query['leaf' + num],
projCode:this.$route.query['projCode' + num]
})
}
}
......@@ -377,7 +379,8 @@
getList({
...this.queryData,
parentId: lastObj.code,
fileId: lastObj.code
fileId: lastObj.code,
projCode: lastObj.projCode
},{
...this.pageData,
orderBy: this.orderBy
......@@ -410,7 +413,7 @@
},
onNavToOrderInfo(val) {
uni.navigateTo({
url: `/pages/document/edit?id=${val.id}&docId=${val.docId}&fileId=${val.fileId}`
url: `/pages/document/edit?id=${val.id}&docId=${val.docId}&fileId=${val.fileId}&projCode=${val.projCode}`
})
},
onGetFolder() {
......@@ -430,11 +433,15 @@
this.folderList.push({
code: val.label,
name: val.text,
leaf: val.leaf
leaf: val.leaf,
projCode: val.projCode
})
console.log(this.folderList,99999)
let str='';
this.folderList.forEach((item,k) => {
str += `&code${k+1}=${item.code}&name${k+1}=${item.name}&leaf${k+1}=${item.leaf}`
str += `&code${k+1}=${item.code}&name${k+1}=${item.name}&leaf${k+1}=${item.leaf}&projCode${k+1}=${item.projCode||''}`
})
uni.navigateTo({
url:`/pages/document/files?level=${this.folderList.length}${str}`
......
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