|
@ -7,13 +7,14 @@ |
|
|
:checkbox-selection="true" |
|
|
:checkbox-selection="true" |
|
|
:fetch-data-url="fetchDataUrl + '?' + foreignKey + '=' + foreignValue" |
|
|
:fetch-data-url="fetchDataUrl + '?' + foreignKey + '=' + foreignValue" |
|
|
:auto-fetch-data="false" |
|
|
:auto-fetch-data="false" |
|
|
:toolbar-configure="{ noIcon: true }" |
|
|
:toolbar-configure="{ noIcon: false }" |
|
|
:toolbar-actions="[ |
|
|
:toolbar-actions="[ |
|
|
'refresh', |
|
|
'refresh', |
|
|
'separator', |
|
|
'separator', |
|
|
{ |
|
|
{ |
|
|
name: 'selectIn', |
|
|
name: 'selectIn', |
|
|
label: $t('system.shared.selectUser.grid.toolbar.selectIn'), |
|
|
label: $t('system.shared.selectUser.grid.toolbar.selectIn'), |
|
|
|
|
|
icon: 'bi-download', |
|
|
enableIf: () => { |
|
|
enableIf: () => { |
|
|
return foreignValue ? true : false; |
|
|
return foreignValue ? true : false; |
|
|
}, |
|
|
}, |
|
@ -24,6 +25,7 @@ |
|
|
{ |
|
|
{ |
|
|
name: 'selectOut', |
|
|
name: 'selectOut', |
|
|
label: $t('system.shared.selectUser.grid.toolbar.selectOut'), |
|
|
label: $t('system.shared.selectUser.grid.toolbar.selectOut'), |
|
|
|
|
|
icon: 'bi-upload', |
|
|
enableIf: () => { |
|
|
enableIf: () => { |
|
|
return foreignValue && gridRef?.getSelectedRows()?.length > 0; |
|
|
return foreignValue && gridRef?.getSelectedRows()?.length > 0; |
|
|
}, |
|
|
}, |
|
@ -38,6 +40,7 @@ |
|
|
{ |
|
|
{ |
|
|
name: 'selectAllIn', |
|
|
name: 'selectAllIn', |
|
|
label: $t('system.shared.selectUser.grid.toolbar.selectAllIn'), |
|
|
label: $t('system.shared.selectUser.grid.toolbar.selectAllIn'), |
|
|
|
|
|
icon: 'bi-box-arrow-in-down', |
|
|
enableIf: () => { |
|
|
enableIf: () => { |
|
|
return foreignValue ? true : false; |
|
|
return foreignValue ? true : false; |
|
|
}, |
|
|
}, |
|
@ -50,6 +53,7 @@ |
|
|
{ |
|
|
{ |
|
|
name: 'selectAllOut', |
|
|
name: 'selectAllOut', |
|
|
label: $t('system.shared.selectUser.grid.toolbar.selectAllOut'), |
|
|
label: $t('system.shared.selectUser.grid.toolbar.selectAllOut'), |
|
|
|
|
|
icon: 'bi-box-arrow-up', |
|
|
enableIf: () => { |
|
|
enableIf: () => { |
|
|
return foreignValue && gridRef?.getRows()?.length > 0; |
|
|
return foreignValue && gridRef?.getRows()?.length > 0; |
|
|
}, |
|
|
}, |
|
@ -151,7 +155,6 @@ const refresh = () => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
onUpdated(() => { |
|
|
onUpdated(() => { |
|
|
console.log('onUpdated....'); |
|
|
|
|
|
gridRef.value.refresh(); |
|
|
gridRef.value.refresh(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|