Commit 31c23412 by zhangzhen

功能优化

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