This commit is contained in:
@@ -14,13 +14,18 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-checkbox v-model="doImport" :label="$ay.t('ImportNew')"></v-checkbox>
|
<v-checkbox v-model="doImport" :label="$ay.t('ImportNew')"></v-checkbox>
|
||||||
|
<v-checkbox
|
||||||
|
v-model="doUpdate"
|
||||||
|
:label="$ay.t('UpdateExisting')"
|
||||||
|
color="warning"
|
||||||
|
></v-checkbox>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<!-- <v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="doUpdate"
|
v-model="doUpdate"
|
||||||
:label="$ay.t('UpdateExisting')"
|
:label="$ay.t('UpdateExisting')"
|
||||||
></v-checkbox>
|
></v-checkbox>
|
||||||
</v-col>
|
</v-col> -->
|
||||||
|
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-file-input
|
<v-file-input
|
||||||
@@ -39,8 +44,7 @@
|
|||||||
>{{ $ay.t("Open") }}</v-btn
|
>{{ $ay.t("Open") }}</v-btn
|
||||||
>
|
>
|
||||||
</v-col>
|
</v-col>
|
||||||
importable
|
|
||||||
{{ importable }}
|
|
||||||
<v-col v-if="outputText != null" cols="12">
|
<v-col v-if="outputText != null" cols="12">
|
||||||
<v-textarea
|
<v-textarea
|
||||||
v-model="outputText"
|
v-model="outputText"
|
||||||
@@ -129,10 +133,10 @@ export default {
|
|||||||
//strip out any unsupported fields before transmission
|
//strip out any unsupported fields before transmission
|
||||||
cleanData(dat, this.ayaType);
|
cleanData(dat, this.ayaType);
|
||||||
|
|
||||||
console.log(
|
// console.log(
|
||||||
"The processed data AFTER cleaning is ",
|
// "The processed data AFTER cleaning is ",
|
||||||
JSON.stringify(dat)
|
// JSON.stringify(dat)
|
||||||
);
|
// );
|
||||||
|
|
||||||
// console.log(
|
// console.log(
|
||||||
// "if it was csv it should look like this:",
|
// "if it was csv it should look like this:",
|
||||||
@@ -140,7 +144,7 @@ export default {
|
|||||||
// );
|
// );
|
||||||
|
|
||||||
//upload the data
|
//upload the data
|
||||||
//await this.upload(dat);
|
await this.upload(dat);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
window.$gz.errorHandler.handleFormError(error);
|
window.$gz.errorHandler.handleFormError(error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user