diff --git a/src/views/business/comps/template/comps/yp/YP003.vue b/src/views/business/comps/template/comps/yp/YP003.vue index 605d9a5..f5d02af 100644 --- a/src/views/business/comps/template/comps/yp/YP003.vue +++ b/src/views/business/comps/template/comps/yp/YP003.vue @@ -34,6 +34,10 @@ + + {{ $t('template.common.importTemplate') + }} + @@ -48,10 +52,11 @@ import { EventBus } from "@/utils/eventBus"; import { uniqeResource } from "@/utils/calUnitTools"; import { debounce } from 'lodash-es' import TableOpertaionDelete from "@/components/Template/operation/TableOpertaionDelete.vue" +import ImportExcelDialog from '../../dialog/ImportExcelDialog' export default { name: "YP003", - components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete }, + components: { ImportExcelDialog,BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable,TableOpertaionDelete }, mixins: [templateMixin], props: { fillType: { @@ -209,6 +214,18 @@ export default { tableRef.deleteRow(rowIndex); } }, + + + showImportExcelDialog() { + this.$refs.ImportExcelDialog.show() + }, + onLoadExcelData(excelData) { + console.log(excelData) + this.$refs.ImportExcelDialog.cancel() + }, + downloadExcelTemplate(arr){ + this.exportExcel(arr) + } } };