230320a303 8 ay önce
ebeveyn
işleme
2d76aa6ff2

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/index.html


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/chunk-d43c9a16.2e5286e7.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/chunk-d43c9a16.b7d0a4cd.js


+ 9 - 1
src/views/house/buildunit.vue

@@ -89,13 +89,21 @@ export default {
             { label: '一房一价编辑', func: this.openRPeditPopup, btnType: 'primary' },
             { label: '编辑', func: this.openPopup, btnType: 'primary' },
             { label: '删除', func: this.delHandle, btnType: 'danger' },
+            { label: '导出本单元', func: this.toExportExcel, btnType: 'primary' },
           ]
         }
       ]
     }
   },
   methods: {
-    
+    toExportExcel (row) {
+      const token = window.sessionStorage.getItem('fp_token')
+      if (row && row.id) {
+        window.open(`https://api.honglouplus.com/adm/new/house/price/export?token=${encodeURIComponent(token)}&estate_id=${this.searchForm.estate_id}&building_id=${row.id}`)
+      } else {
+        window.open(`https://api.honglouplus.com/adm/new/house/price/export?token=${encodeURIComponent(token)}&estate_id=${this.searchForm.estate_id}`)
+      }
+    },
     openRPPopup(str) {
       this.isRPShow = true
       this.priceType = str

+ 3 - 3
src/views/house/components/searchForm/Buildunit.vue

@@ -2,6 +2,7 @@
   <base-form slot="content" ref="ruleForm" :data="searchData">
     <div slot="footer">
       <el-button :loading="listLoading" icon="el-icon-search" class="xl-form-btn bgc1" @click="searchHandle">{{name}}的楼栋单元列表</el-button>
+      <el-button :loading="listLoading"  class="xl-form-btn bgc1" @click="toExportExcel">导出所有</el-button>
     </div>
   </base-form>
 </template>
@@ -27,9 +28,8 @@ export default {
     // this.getDef()
   },
   methods: {
-    addHandle () {
-      this.parentData.isDtlShow = true
-      this.parentData.curObj = {}
+    toExportExcel () {
+      this.parentData.toExportExcel()
     },
     pushToUser () {
       this.$msg(`您确定要推送给关注的用户吗?`, 'confirm', () => {

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor