设备总包项目管理剩余页面
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="rm-container">
|
||||
<div class="current-project-bar">当前项目:{{ currentProjectName }}</div>
|
||||
<div class="rm-panel">
|
||||
<div class="rm-panel-header">
|
||||
<span>图纸审查</span>
|
||||
@@ -98,6 +99,7 @@ export default {
|
||||
name: 'RmDrawingReview',
|
||||
data() {
|
||||
return {
|
||||
currentProjectName: this.$route.query.projectName || sessionStorage.getItem('rm_current_project_name') || '',
|
||||
loading: false,
|
||||
list: [],
|
||||
total: 0,
|
||||
@@ -113,14 +115,21 @@ export default {
|
||||
created() { this.loadCurrentProject() },
|
||||
methods: {
|
||||
loadCurrentProject() {
|
||||
listProject({ pageNum: 1, pageSize: 1 }).then(res => {
|
||||
const rows = res.rows || []
|
||||
if (rows.length > 0) {
|
||||
this.currentProjectId = rows[0].projectId
|
||||
this.query.projectId = rows[0].projectId
|
||||
this.loadList()
|
||||
}
|
||||
})
|
||||
const pid = this.$route.query.projectId || sessionStorage.getItem('rm_current_project_id')
|
||||
if (pid) {
|
||||
this.currentProjectId = pid
|
||||
this.query.projectId = pid
|
||||
this.loadList()
|
||||
} else {
|
||||
listProject({ pageNum: 1, pageSize: 1 }).then(res => {
|
||||
const rows = res.rows || []
|
||||
if (rows.length > 0) {
|
||||
this.currentProjectId = rows[0].projectId
|
||||
this.query.projectId = rows[0].projectId
|
||||
this.loadList()
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
loadList() {
|
||||
this.loading = true
|
||||
|
||||
Reference in New Issue
Block a user