update 文档拆分
This commit is contained in:
@@ -119,7 +119,7 @@ export default {
|
||||
has: 'split:sarFileSplitInfo:withdraw',
|
||||
show: (record) => {
|
||||
// 创建人(更改权限更改的是这个字段)是当前登录人,且状态为已发布可以撤回
|
||||
return record.createBy === this.userInfo.username && record.splitStatus === SplitStatus.RELEASED.value
|
||||
return record.createBy === this.userInfo.id && record.splitStatus === SplitStatus.RELEASED.value
|
||||
}
|
||||
},
|
||||
// 查看
|
||||
@@ -135,7 +135,7 @@ export default {
|
||||
has: 'split:sarFileSplitItems:edit',
|
||||
show: (record) => {
|
||||
// 创建人(更改权限更改的是这个字段)是当前登录人,且状态为编辑中可以编辑
|
||||
return record.createBy === this.userInfo.username && record.splitStatus === SplitStatus.EDITING.value
|
||||
return record.createBy === this.userInfo.id && record.splitStatus === SplitStatus.EDITING.value
|
||||
}
|
||||
},
|
||||
// 删除
|
||||
@@ -145,7 +145,7 @@ export default {
|
||||
has: 'split:sarFileSplitInfo:delete',
|
||||
show: (record) => {
|
||||
// 创建人(更改权限更改的是这个字段)是当前登录人,且状态为编辑中可以删除
|
||||
return record.createBy === this.userInfo.username && record.splitStatus === SplitStatus.EDITING.value
|
||||
return record.createBy === this.userInfo.id && record.splitStatus === SplitStatus.EDITING.value
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -278,7 +278,7 @@ export default {
|
||||
},
|
||||
mounted () {
|
||||
this.operateColumn.scopedSlots.customRender = 'action'
|
||||
this.showAction = this.$route.query.createBy === this.userInfo.username || this.administrators
|
||||
this.showAction = this.$route.query.createBy === this.userInfo.id || this.administrators
|
||||
this.infoId = this.$route.query.infoId
|
||||
this.filters = {
|
||||
menu_id: this.menuId,
|
||||
|
||||
Reference in New Issue
Block a user