|
@@ -26,6 +26,11 @@
|
|
:curObj="curObj"
|
|
:curObj="curObj"
|
|
@close="closeUpdatePopup"
|
|
@close="closeUpdatePopup"
|
|
/>
|
|
/>
|
|
|
|
+ <popup-record
|
|
|
|
+ :isShow="isQShow"
|
|
|
|
+ :curObj="curObj"
|
|
|
|
+ @close="closeQPopup"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -33,6 +38,7 @@ import { arrToObj } from '@/utils'
|
|
import SearchForm from './components/searchForm/Trend'
|
|
import SearchForm from './components/searchForm/Trend'
|
|
import PopupEdit from './components/popup/TrendEdit'
|
|
import PopupEdit from './components/popup/TrendEdit'
|
|
import PopupUpdate from './components/popup/TrendUpdate'
|
|
import PopupUpdate from './components/popup/TrendUpdate'
|
|
|
|
+import PopupRecord from './components/popup/TrendRecord'
|
|
import baseTable from '_m/baseTable.js'
|
|
import baseTable from '_m/baseTable.js'
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
@@ -40,6 +46,7 @@ export default {
|
|
SearchForm,
|
|
SearchForm,
|
|
PopupEdit,
|
|
PopupEdit,
|
|
PopupUpdate,
|
|
PopupUpdate,
|
|
|
|
+ PopupRecord,
|
|
},
|
|
},
|
|
provide() {
|
|
provide() {
|
|
return {
|
|
return {
|
|
@@ -54,6 +61,7 @@ export default {
|
|
isDtlShow: false,
|
|
isDtlShow: false,
|
|
curObj: {},
|
|
curObj: {},
|
|
isUpdateShow: false,
|
|
isUpdateShow: false,
|
|
|
|
+ isQShow: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -68,7 +76,7 @@ export default {
|
|
this.listConfig = {
|
|
this.listConfig = {
|
|
rows: [
|
|
rows: [
|
|
// minWidth: 150, align: 'left'
|
|
// minWidth: 150, align: 'left'
|
|
- { label: '更新时间', prop: 'update_at' },
|
|
|
|
|
|
+ { label: '更新时间', prop: 'update_re' },
|
|
{ label: '楼盘名称', prop: 'estate_name' },
|
|
{ label: '楼盘名称', prop: 'estate_name' },
|
|
{ label: '所属区域', prop: 'area_type', type: 'flag', flags: arrToObj(this.$dictData.area_type) },
|
|
{ label: '所属区域', prop: 'area_type', type: 'flag', flags: arrToObj(this.$dictData.area_type) },
|
|
{ label: '产品类型', prop: 'product_type', type: 'flag', flags: arrToObj(this.$dictData.product_type) },
|
|
{ label: '产品类型', prop: 'product_type', type: 'flag', flags: arrToObj(this.$dictData.product_type) },
|
|
@@ -79,9 +87,10 @@ export default {
|
|
{ label: '实际折扣', prop: 'actual_discount' },
|
|
{ label: '实际折扣', prop: 'actual_discount' },
|
|
{ label: '最新动态', prop: 'dynamic' },
|
|
{ label: '最新动态', prop: 'dynamic' },
|
|
{ label: '更新人', prop: 'update_by' },
|
|
{ label: '更新人', prop: 'update_by' },
|
|
- { label: '操作', width: 200, type: 'handle2', operations:
|
|
|
|
|
|
+ { label: '操作', width: 220, type: 'handle2', operations:
|
|
[
|
|
[
|
|
- { label: '更新动态', func: this.openUpdatePopup, btnType: 'success' },
|
|
|
|
|
|
+ { label: '去更新', func: this.openUpdatePopup, btnType: 'success' },
|
|
|
|
+ { label: '更新记录', func: this.openQPopup, btnType: 'primary' },
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
]
|
|
]
|
|
@@ -100,6 +109,20 @@ export default {
|
|
})
|
|
})
|
|
}, null, true)
|
|
}, null, true)
|
|
},
|
|
},
|
|
|
|
+ openQPopup (row) {
|
|
|
|
+ if (row && row.id) {
|
|
|
|
+ this.curObj = row
|
|
|
|
+ } else {
|
|
|
|
+ this.curObj = {}
|
|
|
|
+ }
|
|
|
|
+ this.isQShow = true
|
|
|
|
+ },
|
|
|
|
+ closeQPopup (obj) {
|
|
|
|
+ this.isQShow = false
|
|
|
|
+ if (obj) {
|
|
|
|
+ this.fetchData()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
openPopup(row) {
|
|
openPopup(row) {
|
|
if (row && row.id) {
|
|
if (row && row.id) {
|
|
this.curObj = row
|
|
this.curObj = row
|