教学管理实训数据管理调整
This commit is contained in:
parent
0e1dcbb5fd
commit
4285249458
@ -75,6 +75,13 @@ export default {
|
||||
columnValue: (row) => { return this.covertData(row); },
|
||||
tagType: (row) => { return ''; }
|
||||
},
|
||||
{
|
||||
title: '是否共享',
|
||||
prop: 'shared',
|
||||
type: 'tag',
|
||||
columnValue: (row) => { return row.shared ? '是' : '否'; },
|
||||
tagType: (row) => { return ''; }
|
||||
},
|
||||
{
|
||||
title: this.$t('trainingManage.labelJson'),
|
||||
prop: 'labelJson',
|
||||
@ -97,18 +104,19 @@ export default {
|
||||
name: '上架',
|
||||
handleClick: this.handlerShelf,
|
||||
type: 'primary',
|
||||
showControl: row => row.state !== 1
|
||||
showControl: row => row.state !== 1 && row.orgId === this.orgId
|
||||
},
|
||||
{
|
||||
name: '下架',
|
||||
handleClick: this.handlerSoldOut,
|
||||
type: 'warning',
|
||||
showControl: row => row.state !== 2
|
||||
showControl: row => row.state !== 2 && row.orgId === this.orgId
|
||||
},
|
||||
{
|
||||
name: '删除',
|
||||
handleClick: this.handlerDelete,
|
||||
type: 'danger'
|
||||
type: 'danger',
|
||||
showControl: row => row.orgId === this.orgId
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -119,6 +127,9 @@ export default {
|
||||
computed: {
|
||||
project() {
|
||||
return getSessionStorage('project');
|
||||
},
|
||||
orgId() {
|
||||
return this.$store.state.user.companyId;
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
Loading…
Reference in New Issue
Block a user