/
SIC.vue
43 lines (33 loc) · 958 Bytes
/
SIC.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<script setup>
import { useSICsStore } from "@/store/sics";
import { useI18n } from "vue-i18n";
import ConfigTable from "@/components/ConfigTable.vue";
import ImportCsvSic from "@/views/ImportCSV-SIC";
const { t } = useI18n();
const COLUMNS = [
{ key: "code", type: "text", head: t("Code") },
{ key: "description", type: "text", head: t("Description") },
];
const store = useSICsStore();
</script>
<template>
<h1 class="listtop">{{ t("Configure Standard Industry Codes (SIC)") }}</h1>
<ConfigTable
:columns="COLUMNS"
:store="store"
storeId="code"
editRole="sic_edit"
createRole="sic_create" />
<div class="import-section">
<h2 class="listheading">{{ t("Import") }}</h2>
<ImportCsvSic @upload-success="store.initialize()" />
</div>
</template>
<style scoped>
.import-section {
margin-top: 3em;
}
.import-section h2 {
text-align: left;
}
</style>