修改进路 控制显示的条件
This commit is contained in:
parent
b400f78fe5
commit
fa73c7c365
@ -105,7 +105,7 @@ export default {
|
||||
title: '类别',
|
||||
prop: 'userId',
|
||||
type: 'tag',
|
||||
columnValue: (row) => { return row.hasOwnProperty('userId') ?'系统默认交路': '自定义'; },
|
||||
columnValue: (row) => { return row.hasOwnProperty('userId') ? '自定义': '系统默认交路'; },
|
||||
tagType: (row) => { return "primary"; }
|
||||
},
|
||||
{
|
||||
@ -130,13 +130,13 @@ export default {
|
||||
{
|
||||
name: this.$t('map.compile'),
|
||||
handleClick: this.editObj,
|
||||
showControl: (row) => { return row.hasOwnProperty('userId') && row.userId == this.$store.state.user.userId},
|
||||
showControl: (row) => { return row.hasOwnProperty('userId') && row.userId == this.$store.state.user.id},
|
||||
},
|
||||
{
|
||||
name: this.$t('map.deleteObj'),
|
||||
type: 'danger',
|
||||
handleClick: this.deleteObj,
|
||||
showControl: (row) => { return row.hasOwnProperty('userId')&& row.userId == this.$store.state.user.userId},
|
||||
showControl: (row) => { return row.hasOwnProperty('userId')&& row.userId == this.$store.state.user.id},
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user