| 
					
				 | 
			
			
				@@ -0,0 +1,108 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <div class="app-container"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!-- <search-form 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :list-loading="listLoading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @change="searchHandle" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <table-list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :list-loading="listLoading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :data="tableData2" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :columns="listConfig" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :current-page="currentPage" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :page-size="pageSize" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :total-records="totalRecords" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @currentChange="pageHandle" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :isAdd="true" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @add="openPopup" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <popup-edit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :isShow="isDtlShow" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :curObj="curObj" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @close="closePopup" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { arrToObj } from '@/utils' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import SearchForm from './components/searchForm/News' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import PopupEdit from './components/popup/NewsEdit' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import baseTable from '_m/baseTable.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  name: 'HouseNews', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  components: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    SearchForm, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    PopupEdit, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  provide() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      parentData: this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  mixins: [baseTable], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      apiStr: 'house.admestatenewslist', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      searchForm: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      isDtlShow: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // noCreated: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      curObj: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  computed: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tableData2() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const arr = [...this.tableData] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      arr.map(item => {}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return arr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  created() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    const query = this.$route.query 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.searchForm.estate_id = query.id || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  mounted() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.listConfig = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      rows: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '签约日期', prop: 'xxxx'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '面积(㎡)', prop: 'xxxx'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '总价(万元)', prop: 'xxxx'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '单价(万元)', prop: 'xxxx'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '签约中介', prop: 'xxxx'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '更新人', prop: 'update_by' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '更新时间', prop: 'update_at' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '操作', width: 120, type: 'handle2', operations: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { label: '编辑', func: this.openPopup, btnType: 'primary' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // { label: '删除', func: this.delHandle, btnType: 'danger' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    delHandle(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$api.house.admestatenewsdel({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          id: row.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).then(data => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$msgs(`已删除!`) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.fetchData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, null, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    openPopup(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (row && row.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.curObj = row 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.curObj = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.isDtlShow = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    closePopup(obj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.isDtlShow = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (obj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.fetchData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</script> 
			 |