Commit 947f9675 by lxyang

feat:修改传参数方式

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