diff --git a/public/static/tpl/import_country.xlsx b/public/static/tpl/import_country.xlsx new file mode 100644 index 00000000..ad3a78b9 Binary files /dev/null and b/public/static/tpl/import_country.xlsx differ diff --git a/src/api/emis/emisCountry.js b/src/api/emis/emisCountry.js index 38dafdab..a6d5bdf2 100644 --- a/src/api/emis/emisCountry.js +++ b/src/api/emis/emisCountry.js @@ -51,3 +51,12 @@ export function delEmisCountry(id) { method: 'delete' }) } + +//批量导入国家 +export function draftSubmitCountry(data) { + return request({ + url: '/emis/emisCountry/draftSubmitCountry', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/views/emis/emisCountry/batchImportCountry.vue b/src/views/emis/emisCountry/batchImportCountry.vue new file mode 100644 index 00000000..af22def4 --- /dev/null +++ b/src/views/emis/emisCountry/batchImportCountry.vue @@ -0,0 +1,400 @@ + + + + + + + + + + 选择文件 + 下载导入Excel模板 + + + + 批量发送 + + + 删除 + + + + + + + + 发送成功 + 待发送 + 发送异常 + + + + + {{ scope.row.errorInfo }} + 发送成功 + 待发送 + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/emis/emisCountry/index.vue b/src/views/emis/emisCountry/index.vue index 7c8d81fe..f416ca95 100644 --- a/src/views/emis/emisCountry/index.vue +++ b/src/views/emis/emisCountry/index.vue @@ -155,6 +155,16 @@ v-hasPermi="['emis:emisCountry:export']" >导出 + + 批量导入 + @@ -276,17 +286,22 @@ + + + + diff --git a/src/views/emis/emisSpecialCalcWeight/batchImportSpecialCalcWeight.vue b/src/views/emis/emisSpecialCalcWeight/batchImportSpecialCalcWeight.vue index e126276b..add4be08 100644 --- a/src/views/emis/emisSpecialCalcWeight/batchImportSpecialCalcWeight.vue +++ b/src/views/emis/emisSpecialCalcWeight/batchImportSpecialCalcWeight.vue @@ -36,7 +36,7 @@ :on-change="fileChange" :before-upload="beforeUpload"> 选择文件 - 下载导入Excel模板 + 下载导入Excel模板