This commit is contained in:
2022-03-24 23:56:55 +00:00
parent 2d1283ac96
commit e4f6d45962

View File

@@ -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);
} }