张延森 пре 4 година
родитељ
комит
cee61bc374
1 измењених фајлова са 4 додато и 5 уклоњено
  1. 4
    5
      src/pages/property/building/BatchImport.jsx

+ 4
- 5
src/pages/property/building/BatchImport.jsx Прегледај датотеку

@@ -6,9 +6,8 @@ import { fetch, apis } from '@/utils/request'
6 6
 const { Column } = Table
7 7
 const spaceStyle = { marginLeft: '16px' }
8 8
 
9
-const buildingDownloadExcel = fetch(apis.buildingOwnerInfo.buildingDownloadExcel)
10
-const uploadBuildingExcel = fetch(apis.buildingOwnerInfo.uploadBuildingExcel)
11
-const submitBuildingExcel = fetch(apis.buildingOwnerInfo.submitBuildingExcel)
9
+const uploadBuildingTreeExcel = fetch(apis.buildingOwnerInfo.uploadBuildingTreeExcel)
10
+const submitBuildingTreeExcel = fetch(apis.buildingOwnerInfo.submitBuildingTreeExcel)
12 11
 
13 12
 export default props => {
14 13
   const [loading, setLoading] = useState(false)
@@ -35,7 +34,7 @@ export default props => {
35 34
         formData.append('file', excelRef.current)
36 35
         
37 36
         setLoading(true)
38
-        uploadBuildingExcel({ data: formData }).then(res => {
37
+        uploadBuildingTreeExcel({ data: formData }).then(res => {
39 38
           setDataList(res.list)
40 39
           setPagenavi({
41 40
             ...pagenavi,
@@ -61,7 +60,7 @@ export default props => {
61 60
     formData.append('file', excelRef.current)
62 61
 
63 62
     setLoading(true)
64
-    submitBuildingExcel({ data: formData }).then(res => {
63
+    submitBuildingTreeExcel({ data: formData }).then(res => {
65 64
       notification.success({ message: '提交成功' })
66 65
 
67 66
       setLoading(false)