项目详情,首页调整

This commit is contained in:
zhaoxiao
2021-09-26 13:54:42 +08:00
parent ff31c47e43
commit 57da4e34d0
10 changed files with 99 additions and 42 deletions
+13 -1
View File
@@ -226,6 +226,14 @@ const columns = [
]
export default {
name: 'ProjectDetailModal',
props: {
// 字段名称是否非id,适用于票据邮寄等页面id不是项目id的情况
notId: {
type: Boolean,
required: false,
default: false
}
},
data() {
return {
description: '项目详情模态框',
@@ -255,7 +263,11 @@ export default {
open(record) {
this.visible = true
// 记录当前项目id
this.currentProjectId = record.id
if (this.notId) {
this.currentProjectId = record.projectId
} else {
this.currentProjectId = record.id
}
// 通过id查询项目详情
queryCommonProjectById({id: this.currentProjectId}).then(res => {
if (res.success) {