设备总包项目管理剩余页面

This commit is contained in:
jhd
2026-06-17 09:29:22 +08:00
parent 690729e266
commit 2f92ef57de
171 changed files with 7592 additions and 113 deletions

View File

@@ -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