|
@@ -12,8 +12,6 @@
|
|
:page-size="pageSize"
|
|
:page-size="pageSize"
|
|
:total-records="totalRecords"
|
|
:total-records="totalRecords"
|
|
@currentChange="pageHandle"
|
|
@currentChange="pageHandle"
|
|
- :isAdd="true"
|
|
|
|
- @add="openPopup"
|
|
|
|
:operationsDefaultLength="6"
|
|
:operationsDefaultLength="6"
|
|
/>
|
|
/>
|
|
<popup-edit
|
|
<popup-edit
|
|
@@ -42,7 +40,7 @@ export default {
|
|
mixins: [baseTable],
|
|
mixins: [baseTable],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- apiStr: 'other.admqalist2',
|
|
+ apiStr: 'user.admsaleuserlist',
|
|
searchForm: null,
|
|
searchForm: null,
|
|
isDtlShow: false,
|
|
isDtlShow: false,
|
|
curObj: {},
|
|
curObj: {},
|
|
@@ -51,7 +49,8 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
tableData2() {
|
|
tableData2() {
|
|
const arr = [...this.tableData]
|
|
const arr = [...this.tableData]
|
|
- arr.map(item => {})
|
|
+ arr.map(item => {
|
|
|
|
+ })
|
|
return arr
|
|
return arr
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -59,12 +58,21 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
this.listConfig = {
|
|
this.listConfig = {
|
|
rows: [
|
|
rows: [
|
|
- { label: '标签', prop: 'question_tag', type: 'flag', flags: arrToObj(this.$dictData.question_tag), width: 120 },
|
|
+ { label: '分类', prop: 'sale_type', type: 'flag', flags: arrToObj(this.$dictData.sale_type ) },
|
|
- { label: '问题', prop: 'question_cont', fullShow: true, minWidth: 200, align: 'left' },
|
|
+ { label: '置业经理', prop: 'sale_name' },
|
|
- { label: '答案', prop: 'answer_cont', fullShow: true, minWidth: 200, align: 'left' },
|
|
+ { label: '头像', prop: 'sale_avatar', type: 'img' },
|
|
- { label: '创建时间', prop: 'create_at' },
|
|
+ { label: '最新轮值', prop: 'aaaaaaaaaaa' },
|
|
- { label: '操作', width: 120, type: 'handle2', operations:
|
|
+ { label: '轮值总次数', prop: 'aaaaaaaaaaa' },
|
|
|
|
+ { label: '门店', prop: 'aaaaaaaaaaa' },
|
|
|
|
+ { label: '联系电话', prop: 'sale_phone' },
|
|
|
|
+ { label: '销售标签', prop: 'custom_tag'},
|
|
|
|
+ { label: '微信昵称', prop: 'nickname'},
|
|
|
|
+ { label: '微信头像', prop: 'avatar', type: 'img' },
|
|
|
|
+ { label: '微信电话', prop: 'phone' },
|
|
|
|
+ { label: '更新时间', prop: 'update_at' },
|
|
|
|
+ { label: '操作', width: 190, type: 'handle2', operations:
|
|
[
|
|
[
|
|
|
|
+ { label: '轮值记录', func: this.linkRecord, btnType: 'success' },
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
]
|
|
]
|
|
@@ -73,9 +81,12 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ linkRecord (row) {
|
|
|
|
+ this.$router.push(`/cust/lineUpRecord?id=${row.id}&name=${row.nickname}`)
|
|
|
|
+ },
|
|
delHandle(row) {
|
|
delHandle(row) {
|
|
- this.$msg(`您确定要删除该问题吗?`, 'confirm', () => {
|
|
+ this.$msg(`您确定要删除该规则吗?`, 'confirm', () => {
|
|
- this.$api.other.admqadel({
|
|
+ this.$api.user.admsaleuserdel({
|
|
id: row.id
|
|
id: row.id
|
|
}).then(data => {
|
|
}).then(data => {
|
|
this.$msgs(`已删除!`)
|
|
this.$msgs(`已删除!`)
|