Browse Source

update

main
wangshaoping 9 months ago
parent
commit
357005764b
  1. 11
      io.sc.platform.core.frontend/package.json
  2. 3
      io.sc.platform.system.frontend/src/views/shared/SelectMenuTreeGrid.vue
  3. 7
      io.sc.platform.system.frontend/src/views/shared/SelectUserGrid.vue

11
io.sc.platform.core.frontend/package.json

@ -111,6 +111,17 @@
"@codemirror/view": "6.26.3",
"@maxgraph/core": "0.10.0",
"@quasar/extras": "1.16.11",
"@univerjs/core":"0.1.13",
"@univerjs/design":"0.1.13",
"@univerjs/docs":"0.1.13",
"@univerjs/docs-ui":"0.1.13",
"@univerjs/engine-formula":"0.1.13",
"@univerjs/engine-render":"0.1.13",
"@univerjs/facade":"0.1.13",
"@univerjs/sheets":"0.1.13",
"@univerjs/sheets-formula":"0.1.13",
"@univerjs/sheets-ui":"0.1.13",
"@univerjs/ui":"0.1.13",
"@vueuse/core": "10.9.0",
"axios": "1.6.8",
"codemirror": "6.0.1",

3
io.sc.platform.system.frontend/src/views/shared/SelectMenuTreeGrid.vue

@ -22,7 +22,7 @@
:fetch-data-url="fetchDataUrl + '?' + foreignKey + '=' + foreignValue"
:auto-fetch-data="false"
:pageable="false"
:toolbar-configure="{ noIcon: true }"
:toolbar-configure="{ noIcon: false }"
:toolbar-actions="[
'refresh',
'separator',
@ -35,6 +35,7 @@
{
name: 'save',
label: $t('save'),
icon: 'bi-floppy',
enableIf: () => {
return foreignValue && treeGridRef?.getRows()?.length > 0;
},

7
io.sc.platform.system.frontend/src/views/shared/SelectUserGrid.vue

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

Loading…
Cancel
Save