|
|
@ -48,7 +48,8 @@ |
|
|
|
@input="loadTableData" |
|
|
|
@input="loadTableData" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<csv-export-import |
|
|
|
<more-actions |
|
|
|
|
|
|
|
v-if="allowDownload" |
|
|
|
:is-view="isView" |
|
|
|
:is-view="isView" |
|
|
|
:query-params="{...queryParams, showFields, fieldsOrder}" |
|
|
|
:query-params="{...queryParams, showFields, fieldsOrder}" |
|
|
|
:public-view-id="$route.params.id" |
|
|
|
:public-view-id="$route.params.id" |
|
|
@ -132,12 +133,12 @@ import FieldsMenu from '../components/FieldsMenu' |
|
|
|
import SortListMenu from '../components/SortListMenu' |
|
|
|
import SortListMenu from '../components/SortListMenu' |
|
|
|
import ColumnFilterMenu from '../components/ColumnFilterMenu' |
|
|
|
import ColumnFilterMenu from '../components/ColumnFilterMenu' |
|
|
|
import XcGridView from '../views/GridView' |
|
|
|
import XcGridView from '../views/GridView' |
|
|
|
import CsvExportImport from '~/components/project/spreadsheet/components/MoreActions' |
|
|
|
import MoreActions from '~/components/project/spreadsheet/components/MoreActions' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'XcTable', |
|
|
|
name: 'XcTable', |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
CsvExportImport, |
|
|
|
MoreActions, |
|
|
|
XcGridView, |
|
|
|
XcGridView, |
|
|
|
ColumnFilterMenu, |
|
|
|
ColumnFilterMenu, |
|
|
|
SortListMenu, |
|
|
|
SortListMenu, |
|
|
@ -225,7 +226,8 @@ export default { |
|
|
|
}], |
|
|
|
}], |
|
|
|
rowContextMenu: null, |
|
|
|
rowContextMenu: null, |
|
|
|
modelName: null, |
|
|
|
modelName: null, |
|
|
|
tableMeta: null |
|
|
|
tableMeta: null, |
|
|
|
|
|
|
|
allowDownload: true, |
|
|
|
}), |
|
|
|
}), |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
concatenatedXWhere() { |
|
|
|
concatenatedXWhere() { |
|
|
@ -402,6 +404,7 @@ export default { |
|
|
|
this.sorts = this.viewMeta.sorts |
|
|
|
this.sorts = this.viewMeta.sorts |
|
|
|
this.viewName = this.viewMeta.title |
|
|
|
this.viewName = this.viewMeta.title |
|
|
|
this.client = this.viewMeta.client |
|
|
|
this.client = this.viewMeta.client |
|
|
|
|
|
|
|
this.allowDownload = this.viewMeta.download |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
if (e.response && e.response.status === 404) { |
|
|
|
if (e.response && e.response.status === 404) { |
|
|
|
this.notFound = true |
|
|
|
this.notFound = true |
|
|
|