소스 검색

客户批量导入

zerp 2 년 전
부모
커밋
12f879f3ff
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/views/client/record.vue

+ 9 - 0
src/views/client/record.vue

@@ -205,6 +205,7 @@
                   :action="BASE_API+'/customer/batch'"
                   :on-preview="handlePreview"
                   :on-change="handleChange"
+                  name="multipartFile"
                   :on-remove="handleRemove"
                   :before-remove="beforeRemove"
                   :on-exceed="handleExceed"
@@ -397,6 +398,7 @@
 <script>
 import { Listarea } from '@/api/dataForm'
 import { customerList, addCustomer, editCustomer, deleteCustomer,userRoles,apiFile } from '@/api/record'
+import { Notification, MessageBox } from 'element-ui'
 import { parseTime } from '@/utils/index'
 import { getUserInfo,vailUserName } from '@/api/user'
 
@@ -547,6 +549,13 @@ export default {
         console.log(file.response, 'file')
         if (file.response.code == '200') {
           // this.form.appendix = file.response.data
+          Notification({
+          title: '成功',
+          type: 'success'
+        });
+          this.fileList = []
+          this.batchVisible = false
+          this.getTenantList()
         } else {
           Notification.error({
             title: file.response.msg,