From 86e9ecfa311ca00ed4fa7f9accad05dafabfbd5c Mon Sep 17 00:00:00 2001
From: qushutong <1976590620@qq.com>
Date: Fri, 25 Oct 2019 10:16:14 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=AF=BC=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/user/partymembers.vue | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/views/modules/user/partymembers.vue b/src/views/modules/user/partymembers.vue
index 954f5238..6ba2e9c4 100755
--- a/src/views/modules/user/partymembers.vue
+++ b/src/views/modules/user/partymembers.vue
@@ -106,6 +106,16 @@
{{ $t('export') }}
+
+
+ 点击上传
+
+
import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './partymembers-add-or-update'
+import Cookies from 'js-cookie'
export default {
mixins: [mixinViewModule],
data () {
@@ -227,7 +238,8 @@ export default {
gridOptions: [],
registOptions: [],
postOptions: [],
- timeRange: []
+ timeRange: [],
+ upLoadUrl: ''
}
},
components: {
@@ -237,6 +249,7 @@ export default {
this.getStreetList()
this.getRegistOptions()
this.getPostOptions()
+ this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/app-user/partymembers/importExcel?token=${Cookies.get('token')}`
},
methods: {
selectedTime () {
@@ -336,6 +349,12 @@ export default {
}).catch(() => {
this.dataListLoading = false
})
+ },
+ handleExceed (files, fileList) {
+ this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`)
+ },
+ beforeRemove (file, fileList) {
+ return this.$confirm(`确定移除 ${file.name}?`)
}
}
}