mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-07 05:03:26 +08:00
Add private items to storage location [SCI-10946]
This commit is contained in:
parent
d470a3a5ac
commit
f7e66f6190
1 changed files with 13 additions and 2 deletions
|
@ -121,7 +121,6 @@ export default {
|
|||
headerName: this.i18n.t('storage_locations.show.table.position'),
|
||||
sortable: true,
|
||||
notSelectable: true,
|
||||
cellRenderer: this.nameRenderer
|
||||
},
|
||||
{
|
||||
field: 'reminders',
|
||||
|
@ -136,7 +135,8 @@ export default {
|
|||
{
|
||||
field: 'row_name',
|
||||
headerName: this.i18n.t('storage_locations.show.table.row_name'),
|
||||
sortable: true
|
||||
sortable: true,
|
||||
cellRenderer: this.rowNameRenderer
|
||||
},
|
||||
{
|
||||
field: 'stock',
|
||||
|
@ -166,6 +166,17 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
rowNameRenderer(params) {
|
||||
const { row_name: rowName, hidden } = params.data;
|
||||
if (hidden) {
|
||||
return `
|
||||
<span class="text-sn-grey-700">
|
||||
<i class="sn-icon sn-icon-locked-task"></i> ${this.i18n.t('storage_locations.show.hidden')}
|
||||
</span>
|
||||
`;
|
||||
}
|
||||
return rowName;
|
||||
},
|
||||
handleTableReload(items) {
|
||||
this.reloadingTable = false;
|
||||
this.assignedItems = items;
|
||||
|
|
Loading…
Reference in a new issue