This commit is contained in:
@@ -431,9 +431,10 @@ export default {
|
|||||||
//emit event to parent form of selected rows
|
//emit event to parent form of selected rows
|
||||||
//this.$emit("update:selected", this.selected);
|
//this.$emit("update:selected", this.selected);
|
||||||
//Note vm this bubbles up all the columns of all the selected rows
|
//Note vm this bubbles up all the columns of all the selected rows
|
||||||
|
console.log("gzdatatable:handleSelectChange emitting ", this.selected);
|
||||||
|
|
||||||
//so, to be more efficient for now will just send the ID's until I see a need for other shit
|
//so, to be more efficient for now will just send the ID's until I see a need for other shit
|
||||||
this.$emit("input", window.$gz._.map(this.selected, "id"));
|
this.$emit("selection-change", window.$gz._.map(this.selected, "id"));
|
||||||
},
|
},
|
||||||
editListView() {
|
editListView() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
|
|||||||
@@ -6,12 +6,13 @@
|
|||||||
:dataListKey="dataListKey"
|
:dataListKey="dataListKey"
|
||||||
:dataListFilter="dataListFilter"
|
:dataListFilter="dataListFilter"
|
||||||
:dataListSort="dataListSort"
|
:dataListSort="dataListSort"
|
||||||
:showSelect="false"
|
:showSelect="true"
|
||||||
:singleSelect="false"
|
:singleSelect="false"
|
||||||
:reload="reload"
|
:reload="reload"
|
||||||
v-on:update:selected="handleSelected"
|
v-on:selection-change="handleSelected"
|
||||||
>
|
>
|
||||||
</gz-data-table>
|
</gz-data-table>
|
||||||
|
{{ selectedItems }}
|
||||||
<template v-if="jobActive">
|
<template v-if="jobActive">
|
||||||
<v-progress-circular
|
<v-progress-circular
|
||||||
indeterminate
|
indeterminate
|
||||||
@@ -38,6 +39,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
jobActive: false,
|
jobActive: false,
|
||||||
reload: false,
|
reload: false,
|
||||||
|
selectedItems: [],
|
||||||
currentListViewId: 1,
|
currentListViewId: 1,
|
||||||
dataListKey: "AttachmentDataList",
|
dataListKey: "AttachmentDataList",
|
||||||
dataListFilter: "",
|
dataListFilter: "",
|
||||||
@@ -46,8 +48,9 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSelected(selectedItems) {
|
handleSelected(selected) {
|
||||||
console.log(selectedItems);
|
console.log(selected);
|
||||||
|
this.selectedItems = selected;
|
||||||
},
|
},
|
||||||
|
|
||||||
async startMaintenanceJob() {
|
async startMaintenanceJob() {
|
||||||
|
|||||||
Reference in New Issue
Block a user