|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <!-- <search-form
|
|
|
+ <search-form
|
|
|
:list-loading="listLoading"
|
|
|
@change="searchHandle"
|
|
|
- /> -->
|
|
|
+ />
|
|
|
<table-list
|
|
|
:list-loading="listLoading"
|
|
|
:data="tableData2"
|
|
@@ -24,11 +24,11 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { arrToObj } from '@/utils'
|
|
|
-import SearchForm from './components/searchForm/News'
|
|
|
-import PopupEdit from './components/popup/NewsEdit'
|
|
|
+import SearchForm from './components/searchForm/Price'
|
|
|
+import PopupEdit from './components/popup/PriceEdit'
|
|
|
import baseTable from '_m/baseTable.js'
|
|
|
export default {
|
|
|
- name: 'HouseNews',
|
|
|
+ name: 'price',
|
|
|
components: {
|
|
|
SearchForm,
|
|
|
PopupEdit,
|
|
@@ -41,7 +41,7 @@ export default {
|
|
|
mixins: [baseTable],
|
|
|
data() {
|
|
|
return {
|
|
|
- apiStr: 'house.admestatenewslist',
|
|
|
+ apiStr: 'house.admpricelist',
|
|
|
searchForm: {},
|
|
|
isDtlShow: false,
|
|
|
// noCreated: true,
|
|
@@ -62,17 +62,17 @@ export default {
|
|
|
mounted() {
|
|
|
this.listConfig = {
|
|
|
rows: [
|
|
|
- { label: '签约日期', prop: 'xxxx'},
|
|
|
- { label: '面积(㎡)', prop: 'xxxx'},
|
|
|
- { label: '总价(万元)', prop: 'xxxx'},
|
|
|
- { label: '单价(万元)', prop: 'xxxx'},
|
|
|
- { label: '签约中介', prop: 'xxxx'},
|
|
|
+ { label: '签约日期', prop: 'sign_at'},
|
|
|
+ { label: '面积(㎡)', prop: 'area'},
|
|
|
+ { label: '总价(万元)', prop: 'price'},
|
|
|
+ { label: '单价(元)', prop: 'unit_price'},
|
|
|
+ { label: '签约中介', prop: 'company'},
|
|
|
{ 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' },
|
|
|
+ { label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
]
|
|
|
}
|
|
|
]
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
methods: {
|
|
|
delHandle(row) {
|
|
|
this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
|
|
|
- this.$api.house.admestatenewsdel({
|
|
|
+ this.$api.house.admpricedel({
|
|
|
id: row.id,
|
|
|
}).then(data => {
|
|
|
this.$msgs(`已删除!`)
|