|
@@ -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"
|
|
@@ -23,13 +23,14 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
|
+
|
|
|
<script>
|
|
|
import { arrToObj } from '@/utils'
|
|
|
-import SearchForm from './components/searchForm/News'
|
|
|
+import SearchForm from './components/searchForm/Sale'
|
|
|
import PopupEdit from './components/popup/SaleEdit'
|
|
|
import baseTable from '_m/baseTable.js'
|
|
|
export default {
|
|
|
- name: 'HouseNews',
|
|
|
+ name: 'sale',
|
|
|
components: {
|
|
|
SearchForm,
|
|
|
PopupEdit,
|
|
@@ -42,7 +43,7 @@ export default {
|
|
|
mixins: [baseTable],
|
|
|
data() {
|
|
|
return {
|
|
|
- apiStr: 'house.admestatesalelist',
|
|
|
+ apiStr: 'house.admestatecustoslist',
|
|
|
searchForm: {},
|
|
|
isDtlShow: false,
|
|
|
// noCreated: true,
|
|
@@ -52,7 +53,8 @@ export default {
|
|
|
computed: {
|
|
|
tableData2() {
|
|
|
const arr = [...this.tableData]
|
|
|
- arr.map(item => {})
|
|
|
+ arr.map(item => {
|
|
|
+ })
|
|
|
return arr
|
|
|
}
|
|
|
},
|
|
@@ -63,14 +65,13 @@ export default {
|
|
|
mounted() {
|
|
|
this.listConfig = {
|
|
|
rows: [
|
|
|
- { label: '分类', prop: 'sale_type', type: 'flag', flags: arrToObj(this.$dictData.sale_type ) },
|
|
|
- { label: '置业经理', prop: 'sale_name' },
|
|
|
- { label: '头像', prop: 'sale_avatar', type: 'img' },
|
|
|
- { label: '联系电话', prop: 'sale_phone' },
|
|
|
- { label: '销售标签', prop: 'custom_tag'},
|
|
|
+ { label: '姓名', prop: 'nickname'},
|
|
|
+ { label: '手机号', prop: 'phone'},
|
|
|
+ { label: '更新人', prop: 'update_by' },
|
|
|
+ { label: '更新时间', prop: 'update_at' },
|
|
|
{ label: '操作', width: 120, type: 'handle2', operations:
|
|
|
[
|
|
|
- { label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
|
+ // { label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
]
|
|
|
}
|
|
@@ -79,8 +80,8 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
delHandle(row) {
|
|
|
- this.$msg(`您确定要删除该置业顾问吗?`, 'confirm', () => {
|
|
|
- this.$api.house.admestatesaledel({
|
|
|
+ this.$msg(`您确定要删除该客服吗?`, 'confirm', () => {
|
|
|
+ this.$api.house.admestatecustosdel({
|
|
|
id: row.id,
|
|
|
}).then(data => {
|
|
|
this.$msgs(`已删除!`)
|