diff --git a/src/App.vue b/src/App.vue index 93cfe79..3a5c284 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,7 +5,7 @@ - - \ No newline at end of file diff --git a/src/components/gmhExcel/DataSourceImport.vue b/src/components/gmhExcel/DataSourceImport.vue new file mode 100644 index 0000000..49a2a33 --- /dev/null +++ b/src/components/gmhExcel/DataSourceImport.vue @@ -0,0 +1,135 @@ + + + + + + 1️⃣导入名单 + + + + + 点击上传 + + + 更多设置👇 + + + 自动识别姓名 + 全部导入 + + + + + + + + + + + + + + + + diff --git a/src/components/gmhExcel/DataSourceImportDialog.vue b/src/components/gmhExcel/DataSourceImportDialog.vue new file mode 100644 index 0000000..b485967 --- /dev/null +++ b/src/components/gmhExcel/DataSourceImportDialog.vue @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + {{item.sheetName}} 一共有{{item.nameList.length}}个人,请检查一下对不对 + 有{{item.repeatCount}}个重复的帮你去掉了 + + + + + + 取 消 + 下一步 + + + + + + + diff --git a/src/components/gmhExcel/ImportSteps.vue b/src/components/gmhExcel/ImportSteps.vue new file mode 100644 index 0000000..e71f2fa --- /dev/null +++ b/src/components/gmhExcel/ImportSteps.vue @@ -0,0 +1,76 @@ + + + + + + + + + + + + + diff --git a/src/components/gmhExcel/NewVue.vue b/src/components/gmhExcel/NewVue.vue new file mode 100644 index 0000000..d518e18 --- /dev/null +++ b/src/components/gmhExcel/NewVue.vue @@ -0,0 +1,86 @@ + + + + + + + + + + diff --git a/src/components/gmhExcel/TemplateImport.vue b/src/components/gmhExcel/TemplateImport.vue new file mode 100644 index 0000000..d9e324e --- /dev/null +++ b/src/components/gmhExcel/TemplateImport.vue @@ -0,0 +1,179 @@ + + + + 2️⃣模板导入与处理 + + + + + + + + 点击上传 + + + + + + + + + + + + + + + + + + + 去下载文件 + 生成Excel + + + + + + + diff --git a/src/components/gmhExcel/index.vue b/src/components/gmhExcel/index.vue new file mode 100644 index 0000000..ad48973 --- /dev/null +++ b/src/components/gmhExcel/index.vue @@ -0,0 +1,81 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/utils/loading.js b/src/utils/loading.js new file mode 100644 index 0000000..48c8560 --- /dev/null +++ b/src/utils/loading.js @@ -0,0 +1,34 @@ +import { Loading } from 'element-ui'; + +let loadingCount = 0; +let loading; + +const startLoading = () => { + loading = Loading.service({ + lock: true, + text: '拼命加载中...',//可以自定义文字 + spinner: 'el-icon-loading',//自定义加载图标类名 + background: 'rgba(0, 0, 0, 0.7)'//遮罩层背景色 + }); +}; + +const endLoading = () => { + loading.close(); +}; + +export const showLoading = () => { + if (loadingCount === 0) { + startLoading(); + } + loadingCount += 1; +}; + +export const hideLoading = () => { + if (loadingCount <= 0) { + return; + } + loadingCount -= 1; + if (loadingCount === 0) { + endLoading(); + } +}; \ No newline at end of file