LAPTOP-FO2T5SIU\35838 9 miesięcy temu
rodzic
commit
065f74e162
1 zmienionych plików z 9 dodań i 13 usunięć
  1. 9 13
      src/views/parkAssets/parkBuild/index.vue

+ 9 - 13
src/views/parkAssets/parkBuild/index.vue

@@ -40,6 +40,7 @@
           <el-col :span="20">
             <el-input v-model="queryParam.ldmc" size="small" placeholder="请输入楼栋号" class="ch-input-size" @keyup.enter.native="handleSearch()" />
             <el-button size="small" class="ch-button-export" style="float: right;margin-top: 4px" @click="handleExcel()"><i class="el-icon-menu" />&nbsp;导出Excel</el-button>
+            <el-button size="small" class="ch-button-export" style="float: right;margin-top: 4px" @click="handleImport()"><i class="el-icon-menu" />&nbsp;批量导入</el-button>
             <el-button size="small" class="ch-button-add" style="float: right; margin-right: 10px; margin-top: 4px" @click="handleAdd()"><i class="el-icon-menu" />&nbsp;新增楼栋</el-button>
             <el-button size="small" class="ch-button" style="float: right;margin-top: 4px" @click="handleSearch()"><i class="el-icon-menu" />&nbsp;查询</el-button>
             <el-button size="small" class="ch-button-warning" style="float: right;margin-top: 4px" @click="handleReset()"><i class="el-icon-menu" />&nbsp;重置</el-button>
@@ -364,20 +365,15 @@ export default {
             this.dialogVisible = true
             this.dialogTitle = '新增楼栋'
         },
+        // 导入
+        handleImport() {
 
-        // handleExcel: function() {
-        //     this.baseRequest('excelList', this.queryParam).then((res) => {
-        //         console.log(res)
-        //         window.location.href = constant.BASE_URI + '/' + res.data.msg
-        //     }).catch(() => {
-        //     })
-        // },
-
+        },
         // 导出
         handleExcel: function() {
             const _this = this
             this.OutData = []
-            const title = ['园区', '楼盘', '楼栋号', '类型', '面积']
+            const title = ['楼盘/小区名称', '分期名称', '单元号/楼栋号', '总面积(㎡)', '套数']
             this.OutData.push(title)
             const temp = []
             this.baseRequest('excelListAll', _this.queryParam).then(res => {
@@ -389,10 +385,10 @@ export default {
                 temp.forEach(function(item) {
                     const jsonArray = []
                     jsonArray.push(item.groupName)
-                    jsonArray.push(item.lpmc)
-                    jsonArray.push(item.ldmc)
-                    jsonArray.push(item.type)
-                    jsonArray.push(item.mj)
+                    jsonArray.push(item.discName)
+                    jsonArray.push(item.buildNum)
+                    jsonArray.push(item.area)
+                    jsonArray.push(item.numberInfo)
                     _this.OutData.push(jsonArray)
                 })
                 const OutSize = [{ wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }]