修改进路 控制显示的条件

This commit is contained in:
ival 2021-03-15 10:43:08 +08:00
parent b400f78fe5
commit fa73c7c365

View File

@ -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},
}
]
}