[update] 修改bug87406
This commit is contained in:
@@ -217,7 +217,7 @@ export default {
|
|||||||
has: '',
|
has: '',
|
||||||
// 已发布状态不显示发布按钮,只有作者和管理员可以发布
|
// 已发布状态不显示发布按钮,只有作者和管理员可以发布
|
||||||
show: (record) => {
|
show: (record) => {
|
||||||
return record.manifestStatus !== ListState.RELEASED.value && (this.isAdmin || this.userInfo.id === record.createBy)
|
return record.manifestStatus !== ListState.RELEASED.value && (this.isAdmin || this.userInfo.id === record.author)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
@@ -227,7 +227,7 @@ export default {
|
|||||||
has: 'marketStandard:edit',
|
has: 'marketStandard:edit',
|
||||||
// 只有作者和管理员可以编辑
|
// 只有作者和管理员可以编辑
|
||||||
show: (record) => {
|
show: (record) => {
|
||||||
return this.isAdmin || this.userInfo.id === record.createBy
|
return this.isAdmin || this.userInfo.id === record.author
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
@@ -237,7 +237,7 @@ export default {
|
|||||||
has: 'marketStandard:deleteBatch',
|
has: 'marketStandard:deleteBatch',
|
||||||
// 只有作者和管理员可以删除
|
// 只有作者和管理员可以删除
|
||||||
show: (record) => {
|
show: (record) => {
|
||||||
return this.isAdmin || this.userInfo.id === record.createBy
|
return this.isAdmin || this.userInfo.id === record.author
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user