This commit is contained in:
2020-05-23 20:19:48 +00:00
parent 74e3c79453
commit c29c11de05
2 changed files with 3 additions and 21 deletions

View File

@@ -86,7 +86,7 @@
//NOTE: This is a simple form with no need for business rules or validation so stripped out any extraneous code related to all that //NOTE: This is a simple form with no need for business rules or validation so stripped out any extraneous code related to all that
// //
const FORM_KEY = "adm-global-select-templates"; const FORM_KEY = "adm-global-select-templates";
const API_BASE_URL = "picklist/template/"; const API_BASE_URL = "pick-list/template/";
export default { export default {
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
//let vm = this; //let vm = this;
@@ -247,7 +247,7 @@ export default {
//get available fields //get available fields
window.$gz.api window.$gz.api
.get(API_BASE_URL + "ListFields/" + vm.templateId) .get(API_BASE_URL + "listfields/" + vm.templateId)
.then(res => { .then(res => {
if (res.error) { if (res.error) {
vm.formState.serverError = res.error; vm.formState.serverError = res.error;

View File

@@ -7,25 +7,7 @@
<v-btn @click="getDataFromApi" class="mt-1 mb-n6"> <v-btn @click="getDataFromApi" class="mt-1 mb-n6">
<v-icon>fa-sync</v-icon> <v-icon>fa-sync</v-icon>
</v-btn> </v-btn>
<v-simple-table> <v-textarea v-model="logText" full-width readonly auto-grow></v-textarea>
<template v-slot:default>
<thead>
<tr>
<th class="text-left"></th>
<th class="text-left"></th>
<th class="text-left"></th>
</tr>
</thead>
<tbody>
<tr v-for="item in obj" :key="item.id">
<td>{{ item.created }}</td>
<td>{{ item.jobId }}</td>
<td>{{ item.status }}</td>
</tr>
</tbody>
</template>
</v-simple-table>
<!-- </v-col> -->
</v-col> </v-col>
</v-row> </v-row>
</template> </template>