|
@@ -16,16 +16,23 @@
|
|
|
@add="openPopup"
|
|
|
:operationsDefaultLength="5"
|
|
|
/>
|
|
|
+ <popup-edit
|
|
|
+ :isShow="isDtlShow"
|
|
|
+ :curObj="curObj"
|
|
|
+ @close="closePopup"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { arrToObj } from '@/utils'
|
|
|
import SearchForm from './components/searchForm/ClickRecord'
|
|
|
+import PopupEdit from './components/popup/IndexEdit'
|
|
|
import baseTable from '_m/baseTable.js'
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
components: {
|
|
|
SearchForm,
|
|
|
+ PopupEdit,
|
|
|
},
|
|
|
provide() {
|
|
|
return {
|
|
@@ -57,9 +64,15 @@ export default {
|
|
|
{ label: '客户头像', prop: 'avatar', type: 'img' },
|
|
|
{ label: '点击类型', prop: 'click_type', type: 'flag', flags: arrToObj(this.$dictData.contact_click_type) },
|
|
|
// { label: '目标类型', prop: 'target_type', type: 'flag', flags: arrToObj(this.$dictData.contact_target_type) },
|
|
|
+ { label: '联系ID', prop: 'target_id', },
|
|
|
{ label: '置业经理', prop: 'sale_name' },
|
|
|
- // { label: '置业经理头像', prop: 'sale_avatar', type: 'img' },
|
|
|
+ { label: '置业经理头像', prop: 'sale_avatar', type: 'img' },
|
|
|
{ label: '创建时间', prop: 'create_at' },
|
|
|
+ { label: '操作', width: 120, type: 'handle2', operations:
|
|
|
+ [
|
|
|
+ { label: '查看咨询房源', func: this.openPopup, btnType: 'primary' },
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -85,10 +98,8 @@ export default {
|
|
|
}, null, true)
|
|
|
},
|
|
|
openPopup(row) {
|
|
|
- if (row && row.id) {
|
|
|
- this.curObj = row
|
|
|
- } else {
|
|
|
- this.curObj = {}
|
|
|
+ this.curObj = {
|
|
|
+ id: row.target_id
|
|
|
}
|
|
|
this.isDtlShow = true
|
|
|
},
|