This commit is contained in:
2019-10-31 19:18:08 +00:00
parent cf85aaa18e
commit 71b2cad7c1
2 changed files with 34 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
/* eslint-disable */ /* Xeslint-disable */
var devModeShowErrors = false; var devModeShowErrors = false;
@@ -15,7 +15,7 @@ function dealWithError(msg, vm) {
} }
window.$gz.store.commit("logItem", msg); window.$gz.store.commit("logItem", msg);
if (devModeShowErrors) { if (devModeShowErrors) {
debugger; //debugger;
var errMsg = var errMsg =
"DEV ERROR errorHandler::devShowUnknownError - unexpected error: \r\n" + "DEV ERROR errorHandler::devShowUnknownError - unexpected error: \r\n" +
msg; msg;

View File

@@ -49,35 +49,37 @@
itemsPerPageText: lt('RowsPerPage') itemsPerPageText: lt('RowsPerPage')
}" }"
> >
<template slot="items" slot-scope="props"> <template slot="item" slot-scope="props">
<td> <tr>
<v-checkbox <td>
v-model="props.selected" <v-checkbox
primary v-model="props.selected"
hide-details primary
></v-checkbox> hide-details
</td> ></v-checkbox>
<td class="text-xs-left" @click="editItem(props.item)"> </td>
{{ props.item.name | capitalize }} <td class="text-xs-left" @click="editItem(props.item)">
</td> {{ props.item.name | capitalize }}
<td class="text-xs-left" @click="editItem(props.item)"> </td>
{{ props.item.serial }} <td class="text-xs-left" @click="editItem(props.item)">
</td> {{ props.item.serial }}
<td class="text-xs-left" @click="editItem(props.item)"> </td>
{{ props.item.dollarAmount | currency }} <td class="text-xs-left" @click="editItem(props.item)">
</td> {{ props.item.dollarAmount | currency }}
<td class="text-xs-left" @click="editItem(props.item)"> </td>
{{ props.item.active | boolastext }} <td class="text-xs-left" @click="editItem(props.item)">
</td> {{ props.item.active | boolastext }}
<td class="text-xs-left" @click="editItem(props.item)"> </td>
{{ props.item.roles }} <td class="text-xs-left" @click="editItem(props.item)">
</td> {{ props.item.roles }}
<td class="text-xs-left" @click="editItem(props.item)"> </td>
{{ props.item.startDate | shortdate }} <td class="text-xs-left" @click="editItem(props.item)">
</td> {{ props.item.startDate | shortdate }}
<td class="text-xs-left" @click="editItem(props.item)"> </td>
{{ props.item.endDate | shortdate }} <td class="text-xs-left" @click="editItem(props.item)">
</td> {{ props.item.endDate | shortdate }}
</td>
</tr>
</template> </template>
</v-data-table> </v-data-table>
</div> </div>
@@ -272,7 +274,6 @@ Actual in inspector browser code:
that.Items = res.data; that.Items = res.data;
that.totalItems = res.paging.count; that.totalItems = res.paging.count;
}); });
}, },
editItem(item) { editItem(item) {
this.$router.push({ this.$router.push({