|
@ -32,6 +32,7 @@ import { useQuasar, exportFile } from 'quasar'; |
|
|
import { axios, Tools, t, NotifyManager } from '@/platform'; |
|
|
import { axios, Tools, t, NotifyManager } from '@/platform'; |
|
|
import { selectedMode, formStatus, editStatus } from './ts/grid'; |
|
|
import { selectedMode, formStatus, editStatus } from './ts/grid'; |
|
|
import GridConfig from './GridConfig.vue'; |
|
|
import GridConfig from './GridConfig.vue'; |
|
|
|
|
|
import { throws } from 'assert'; |
|
|
|
|
|
|
|
|
const $q = useQuasar(); |
|
|
const $q = useQuasar(); |
|
|
|
|
|
|
|
@ -607,7 +608,9 @@ const handleChildrenBtn = (arr, moreQueryShow) => { |
|
|
const tempArr = <any>[]; |
|
|
const tempArr = <any>[]; |
|
|
for (let i = 0; i < arr.length; i++) { |
|
|
for (let i = 0; i < arr.length; i++) { |
|
|
const btn = arr[i]; |
|
|
const btn = arr[i]; |
|
|
if (Array.isArray(btn) && btn.length > 0) { |
|
|
if (typeof btn === 'string' && !buttonObj[btn]) { |
|
|
|
|
|
throw new Error(`'` + btn + `'` + ' toolbar action NOT exits'); |
|
|
|
|
|
} else if (Array.isArray(btn) && btn.length > 0) { |
|
|
const handleResult = handleChildrenBtn(btn, moreQueryShow); |
|
|
const handleResult = handleChildrenBtn(btn, moreQueryShow); |
|
|
if (handleResult && handleResult.length > 0) { |
|
|
if (handleResult && handleResult.length > 0) { |
|
|
tempArr.push(handleResult); |
|
|
tempArr.push(handleResult); |
|
@ -652,7 +655,9 @@ const handleToolbarActions = () => { |
|
|
moreQueryShow = true; |
|
|
moreQueryShow = true; |
|
|
} |
|
|
} |
|
|
props.grid.props.toolbarActions.forEach((btn: any, index) => { |
|
|
props.grid.props.toolbarActions.forEach((btn: any, index) => { |
|
|
if (typeof btn === 'string' && buttonObj[btn]) { |
|
|
if (typeof btn === 'string' && !buttonObj[btn]) { |
|
|
|
|
|
throw new Error(`'` + btn + `'` + ' toolbar action NOT exits'); |
|
|
|
|
|
} else if (typeof btn === 'string' && buttonObj[btn]) { |
|
|
if (btn === buttonObj.query.name && moreQueryShow) { |
|
|
if (btn === buttonObj.query.name && moreQueryShow) { |
|
|
buttons_.value.push([buttonObj[btn], buttonObj[buttonObj.moreQuery.name]]); |
|
|
buttons_.value.push([buttonObj[btn], buttonObj[buttonObj.moreQuery.name]]); |
|
|
} else { |
|
|
} else { |
|
|