|
|
@ -1424,6 +1424,7 @@ |
|
|
this.authIssue = this.isAuth(this.menuId + ':issue') |
|
|
this.authIssue = this.isAuth(this.menuId + ':issue') |
|
|
this.checkSuperAdmin() |
|
|
this.checkSuperAdmin() |
|
|
this.fetchNodeOptions() |
|
|
this.fetchNodeOptions() |
|
|
|
|
|
this.handleRouteQuery() |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
//this.height = window.innerHeight - 520; |
|
|
//this.height = window.innerHeight - 520; |
|
|
this.height = window.innerHeight / 2 - 50 |
|
|
this.height = window.innerHeight / 2 - 50 |
|
|
@ -2308,13 +2309,55 @@ |
|
|
return true |
|
|
return true |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleRouteQuery () { |
|
|
|
|
|
const routeParams = this.$route.params || {} |
|
|
|
|
|
const isTokenLogin = routeParams.type === 'tokenLogin' |
|
|
|
|
|
const projectId = String(routeParams.docNo || routeParams.projectId || '').trim() |
|
|
|
|
|
if (isTokenLogin) { |
|
|
|
|
|
if (!projectId) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.addOrUpdateVisible && this.currentRow && String(this.currentRow.projectId || '').trim() === projectId) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.searchData.projectId = projectId |
|
|
|
|
|
this.searchData.limit = this.pageSize |
|
|
|
|
|
this.searchData.page = this.pageIndex |
|
|
|
|
|
this.searchData.userId = this.$store.state.user.id |
|
|
|
|
|
this.searchData.menuId = this.menuId |
|
|
|
|
|
projectInfoSearch(this.searchData).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.dataList1 = data.page.list |
|
|
|
|
|
this.pageIndex = data.page.currPage |
|
|
|
|
|
this.pageSize = data.page.pageSize |
|
|
|
|
|
this.totalPage = data.page.totalCount |
|
|
|
|
|
if (this.dataList1 && this.dataList1.length > 0) { |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
if (this.$refs.mainTable) { |
|
|
|
|
|
this.$refs.mainTable.setCurrentRow(this.dataList1[0]) |
|
|
|
|
|
} |
|
|
|
|
|
this.changeData(this.dataList1[0]) |
|
|
|
|
|
this.addOrUpdateVisible = true |
|
|
|
|
|
this.addOrUpdate = 'update' |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.addOrUpdate.init(this.dataList1[0].id) |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
this.dataListLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (projectId) { |
|
|
|
|
|
this.searchData.projectId = projectId |
|
|
|
|
|
this.search() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
activated() { |
|
|
activated() { |
|
|
if (this.$route.params.projectId){ |
|
|
|
|
|
this.searchData.projectId = this.$route.params.projectId |
|
|
|
|
|
this.search(); |
|
|
|
|
|
} |
|
|
|
|
|
// this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
|
|
|
|
|
|
this.handleRouteQuery() |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|