|
|
@ -35,14 +35,17 @@ |
|
|
|
mdi-file-plus-outline |
|
|
|
mdi-file-plus-outline |
|
|
|
</x-icon> |
|
|
|
</x-icon> |
|
|
|
<p class="title mb-1 mt-2"> |
|
|
|
<p class="title mb-1 mt-2"> |
|
|
|
Select File to Upload |
|
|
|
<!-- Select File to Upload--> |
|
|
|
|
|
|
|
{{ $t('msg.info.upload') }} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<p class="grey--text mb-1"> |
|
|
|
<p class="grey--text mb-1"> |
|
|
|
or drag and drop file |
|
|
|
<!-- or drag and drop file--> |
|
|
|
|
|
|
|
{{ $t('msg.info.upload_sub') }} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
<p class="caption grey--text"> |
|
|
|
<p class="caption grey--text"> |
|
|
|
Supported: .xls, .xlsx, .xlsm, .ods, .ots |
|
|
|
<!-- Supported: .xls, .xlsx, .xlsm, .ods, .ots--> |
|
|
|
|
|
|
|
{{ $t('msg.info.excelSupport') }} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -52,18 +55,20 @@ |
|
|
|
<div class="pa-4 d-100 h-100"> |
|
|
|
<div class="pa-4 d-100 h-100"> |
|
|
|
<v-form ref="form" v-model="valid"> |
|
|
|
<v-form ref="form" v-model="valid"> |
|
|
|
<div class="d-flex"> |
|
|
|
<div class="d-flex"> |
|
|
|
|
|
|
|
<!--label="Enter excel file url"--> |
|
|
|
<v-text-field |
|
|
|
<v-text-field |
|
|
|
v-model="url" |
|
|
|
v-model="url" |
|
|
|
hide-details="auto" |
|
|
|
hide-details="auto" |
|
|
|
type="url" |
|
|
|
type="url" |
|
|
|
label="Enter excel file url" |
|
|
|
:label="$t('msg.info.excelURL')" |
|
|
|
class="caption" |
|
|
|
class="caption" |
|
|
|
outlined |
|
|
|
outlined |
|
|
|
dense |
|
|
|
dense |
|
|
|
:rules="[v => !!v || 'Required']" |
|
|
|
:rules="[v => !!v || $t('general.required') ]" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<v-btn class="ml-3" color="primary" @click="loadUrl"> |
|
|
|
<v-btn class="ml-3" color="primary" @click="loadUrl"> |
|
|
|
Load |
|
|
|
<!--Load--> |
|
|
|
|
|
|
|
{{ $t('general.load') }} |
|
|
|
</v-btn> |
|
|
|
</v-btn> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</v-form> |
|
|
|
</v-form> |
|
|
@ -75,20 +80,21 @@ |
|
|
|
<div class="px-4 pb-2"> |
|
|
|
<div class="px-4 pb-2"> |
|
|
|
<div class="d-flex"> |
|
|
|
<div class="d-flex"> |
|
|
|
<v-spacer /> |
|
|
|
<v-spacer /> |
|
|
|
<span class="caption pointer grey--text" @click="showMore = !showMore">{{ showMore ? 'Hide' : 'Show' }} more |
|
|
|
<span class="caption pointer grey--text" @click="showMore = !showMore"> |
|
|
|
|
|
|
|
{{ showMore ? $t('general.hideAll') : $t('general.showMore') }} |
|
|
|
<v-icon small color="grey lighten-1">mdi-menu-{{ showMore ? 'up' : 'down' }}</v-icon> |
|
|
|
<v-icon small color="grey lighten-1">mdi-menu-{{ showMore ? 'up' : 'down' }}</v-icon> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="mb-2 pt-2 nc-excel-import-options" :style="{ maxHeight: showMore ? '100px' : '0'}"> |
|
|
|
<div class="mb-2 pt-2 nc-excel-import-options" :style="{ maxHeight: showMore ? '100px' : '0'}"> |
|
|
|
<p /> |
|
|
|
<p /> |
|
|
|
|
|
|
|
<!--hint="# of rows to parse to infer data type"--> |
|
|
|
<v-text-field |
|
|
|
<v-text-field |
|
|
|
v-model="parserConfig.maxRowsToParse" |
|
|
|
v-model="parserConfig.maxRowsToParse" |
|
|
|
style="max-width: 250px" |
|
|
|
style="max-width: 250px" |
|
|
|
class="caption mx-auto" |
|
|
|
class="caption mx-auto" |
|
|
|
dense |
|
|
|
dense |
|
|
|
persistent-hint |
|
|
|
persistent-hint |
|
|
|
hint="# of rows to parse to infer data type" |
|
|
|
:hint="$t('msg.info.footMsg')" |
|
|
|
outlined |
|
|
|
outlined |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -118,7 +124,8 @@ |
|
|
|
<v-icon small class="mr-1"> |
|
|
|
<v-icon small class="mr-1"> |
|
|
|
mdi-file-excel-outline |
|
|
|
mdi-file-excel-outline |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
Import |
|
|
|
<!--Import--> |
|
|
|
|
|
|
|
{{ $t('activity.import') }} |
|
|
|
</v-btn> |
|
|
|
</v-btn> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<span class="caption">Create template from Excel</span> |
|
|
|
<span class="caption">Create template from Excel</span> |
|
|
@ -128,8 +135,9 @@ |
|
|
|
<v-card class="pa-6" min-width="500"> |
|
|
|
<v-card class="pa-6" min-width="500"> |
|
|
|
<template-editor :project-template.sync="templateData" excel-import> |
|
|
|
<template-editor :project-template.sync="templateData" excel-import> |
|
|
|
<template #toolbar="{valid}"> |
|
|
|
<template #toolbar="{valid}"> |
|
|
|
|
|
|
|
<!--Importing--> |
|
|
|
<h3 class="mt-2 grey--text"> |
|
|
|
<h3 class="mt-2 grey--text"> |
|
|
|
Importing : {{ filename }} |
|
|
|
{{ $t('activity.importExcel') }} : {{ filename }} |
|
|
|
</h3> |
|
|
|
</h3> |
|
|
|
<!-- <span class="grey--text">Importing 2 sheets</span>--> |
|
|
|
<!-- <span class="grey--text">Importing 2 sheets</span>--> |
|
|
|
|
|
|
|
|
|
|
@ -145,7 +153,8 @@ |
|
|
|
create-rest-text="Import as REST Project" |
|
|
|
create-rest-text="Import as REST Project" |
|
|
|
@success="$emit('success'),templateEditorModal = false" |
|
|
|
@success="$emit('success'),templateEditorModal = false" |
|
|
|
> |
|
|
|
> |
|
|
|
Import Excel |
|
|
|
<!--Import Excel--> |
|
|
|
|
|
|
|
{{ $t('activity.importExcel') }} |
|
|
|
</create-project-from-template-btn> |
|
|
|
</create-project-from-template-btn> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template-editor> |
|
|
|
</template-editor> |
|
|
|