This commit is contained in:
@@ -29,10 +29,6 @@
|
|||||||
>{{ $ay.t("Upload") }}</v-btn
|
>{{ $ay.t("Upload") }}</v-btn
|
||||||
>
|
>
|
||||||
</v-col>
|
</v-col>
|
||||||
type:
|
|
||||||
{{ ayaType }}
|
|
||||||
uploadFile:
|
|
||||||
{{ uploadFile }}
|
|
||||||
|
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
<v-textarea
|
<v-textarea
|
||||||
@@ -56,7 +52,7 @@ export default {
|
|||||||
importableAyaTypes: []
|
importableAyaTypes: []
|
||||||
},
|
},
|
||||||
uploadFile: [],
|
uploadFile: [],
|
||||||
ayaType: 0,
|
ayaType: 8, //<<<<<<<<<<<<<-----------------------------CHANGE THIS TO ZERO WHEN DONE TESTING
|
||||||
importResult: "",
|
importResult: "",
|
||||||
rights: window.$gz.role.defaultRightsObject(),
|
rights: window.$gz.role.defaultRightsObject(),
|
||||||
uploading: false
|
uploading: false
|
||||||
@@ -79,6 +75,8 @@ export default {
|
|||||||
if (this.uploadFile && this.uploadFile.name) {
|
if (this.uploadFile && this.uploadFile.name) {
|
||||||
console.log("Processing uploadfile");
|
console.log("Processing uploadfile");
|
||||||
papa.parse(this.uploadFile, {
|
papa.parse(this.uploadFile, {
|
||||||
|
header: true,
|
||||||
|
dynamicTyping: true,
|
||||||
worker: true,
|
worker: true,
|
||||||
step: function(row) {
|
step: function(row) {
|
||||||
console.log("Row:", row.data);
|
console.log("Row:", row.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user