feat: project from excel

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2021-11-17 17:16:39 +05:30
parent e8cc5192cb
commit 63d8f4a164
13 changed files with 450 additions and 190 deletions

View File

@@ -0,0 +1,20 @@
import ExcelTemplateAdapter from '~/components/import/templateParsers/ExcelTemplateAdapter'
export default class ExcelUrlTemplateAdapter extends ExcelTemplateAdapter {
constructor(url, $store) {
const name = url.split('/').pop()
super(name, null)
this.url = url
this.$store = $store
}
async init() {
const res = await this.$store.dispatch('sqlMgr/ActSqlOp', [null, 'handleAxiosCall',
[{
url: this.url,
responseType: 'arraybuffer'
}]])
this.excelData = res.data
await super.init()
}
}