update 文档拆分

This commit is contained in:
赵霄
2023-10-20 10:30:50 +08:00
parent cd4d84bfe6
commit 6bc8c5de5b
2 changed files with 4 additions and 4 deletions
@@ -119,7 +119,7 @@ export default {
has: 'split:sarFileSplitInfo:withdraw', has: 'split:sarFileSplitInfo:withdraw',
show: (record) => { 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', has: 'split:sarFileSplitItems:edit',
show: (record) => { 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', has: 'split:sarFileSplitInfo:delete',
show: (record) => { 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 () { mounted () {
this.operateColumn.scopedSlots.customRender = 'action' 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.infoId = this.$route.query.infoId
this.filters = { this.filters = {
menu_id: this.menuId, menu_id: this.menuId,