Commit 947f9675 by lxyang

feat:修改传参数方式

parent 93039060
...@@ -323,8 +323,8 @@ export default { ...@@ -323,8 +323,8 @@ export default {
routerTaskListDetails(row) { routerTaskListDetails(row) {
try { try {
this.$router.push({ this.$router.push({
path: '/documentManagement/taskListIndex', name: 'taskListIndex',
query: { params: {
id: row.docDocumentId, id: row.docDocumentId,
name: row.name name: row.name
} }
......
...@@ -77,9 +77,19 @@ export default { ...@@ -77,9 +77,19 @@ export default {
methods: { methods: {
// 初始化 // 初始化
init() { init() {
console.log(this.$route.query, 'this.$route.query') let name = this.$route.params.name
this.title = this.$route.query.name let id = this.$route.params.id
this.deleteId = this.$route.query.id let taskListIndexTitle = localStorage.getItem("taskListIndexTitle")
let taskListIndexId = localStorage.getItem("taskListIndexId")
if (name || id) {
this.title = name
this.deleteId = id
localStorage.setItem("taskListIndexTitle", name)
localStorage.setItem("taskListIndexId", id)
} else if (taskListIndexTitle || taskListIndexId) {
this.title = taskListIndexTitle
this.deleteId = taskListIndexId
}
this.searchCustomer() this.searchCustomer()
}, },
// 返回跟踪文档 // 返回跟踪文档
......
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