|
|
|
@ -34,6 +34,10 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <button @click="onSave">保存</button> --> |
|
|
|
|
|
|
|
<el-button type="primary" @click="showImportExcelDialog">{{ $t('template.common.importTemplate') |
|
|
|
}}</el-button> |
|
|
|
<ImportExcelDialog ref="ImportExcelDialog" @onLoadData="onLoadExcelData" :downloadArr="['动物编号']" @downloadExcelTemplate="downloadExcelTemplate" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -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) |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|