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
}
}