From 64f3c0b0c6ff134e53918a8a5f1fa20f6f7d4c8d Mon Sep 17 00:00:00 2001
From: gongdi <410827992@qq.com>
Date: Tue, 10 May 2022 16:24:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B4=8B=E6=B5=A6=E5=AD=A6=E6=A0=A1=20?=
=?UTF-8?q?=E5=85=AB=E5=A4=A7=E4=B8=AD=E5=BF=83=E6=95=B0=E6=8D=AE=E5=AF=BC?=
=?UTF-8?q?=E5=85=A5=E9=80=9A=E7=94=A8=E7=BB=84=E4=BB=B6=E5=B0=81=E8=A3=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/importExcel/importExcel.vue | 119 ++++++++++++++++++
.../moralEducation/physicalList.vue | 32 ++++-
2 files changed, 147 insertions(+), 4 deletions(-)
create mode 100644 src/components/common/importExcel/importExcel.vue
diff --git a/src/components/common/importExcel/importExcel.vue b/src/components/common/importExcel/importExcel.vue
new file mode 100644
index 0000000..c0b77c9
--- /dev/null
+++ b/src/components/common/importExcel/importExcel.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/physicalList.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/physicalList.vue
index 8fb3bdc..1718b66 100644
--- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/physicalList.vue
+++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/physicalList.vue
@@ -17,8 +17,10 @@
@click="search"/>
-
新增
-
清空
+
下载模板
+
导入
+
新增
+
清空
@@ -40,8 +42,9 @@
@cancel="handleCancel">
{{isClear?'是否确定删除全部信息?':'是否确定删除此条信息?'}}
+
-
+
@@ -49,6 +52,7 @@
import InterConfig from '../interConfig';
import {Table, Button, Select, Modal, Divider, Cascader, Icon, Input, Pagination} from 'ant-design-vue';
import PhysicalInfo from './physicalInfo.vue';
+ import ImportExcel from '../../../../../../components/common/importExcel/importExcel.vue';
const tableColumn = [
{
dataIndex: 'index',
@@ -120,6 +124,7 @@
totalPage: 0,
totalNum: 0,
isClear:false,//false 仅仅删除数据 true 清除全部数据
+ showImport:false,//是否显示导入框
}
},
created(){
@@ -188,6 +193,24 @@
this.isClear = true;
this.visible = true;
},
+ //下载模板
+ toDownload:function () {
+ //window.location.href = window.location.protocol + "//" + window.location.host + "/dsideal_yy/pro_integration/reactProject/screenAdaptation/template/centerStudentPhysicalTemplate.xls";
+ //BaseConfig._action_path
+ window.location.href = window.location.protocol + "//" + "10.10.14.199"+ "/dsideal_yy/pro_integration/reactProject/screenAdaptation/template/centerStudentPhysicalTemplate.xls"
+ },
+ //弹出导入
+ toImport:function () {
+ this.showImport = true;
+ },
+ //开始导入
+ startImport:function (file) {
+ this.loading = true;
+ },
+ //取消导入
+ cancelImport:function () {
+ this.showImport = false;
+ },
//确定删除
handleOk: function () {
let param = {
@@ -241,7 +264,8 @@
AIcon: Icon,
AInput: Input,
APagination: Pagination,
- PhysicalInfo
+ PhysicalInfo,
+ ImportExcel
}
}