|
@@ -207,7 +207,10 @@
|
|
|
:data-source="leadsList"
|
|
|
:alert="false"
|
|
|
:rowSelection="rowSelection"
|
|
|
- showPagination="auto">
|
|
|
+ showPagination="auto"
|
|
|
+ :pagination="queryParam"
|
|
|
+ @change="onChange"
|
|
|
+ >
|
|
|
<!-- <template slot="babyName" slot-scope="text, record">
|
|
|
<span class="babyName cp" >{{ text }}</span>
|
|
|
</template> -->
|
|
@@ -232,6 +235,8 @@
|
|
|
<a @click="handlePre(record)" v-action:1004007>转为试听</a>
|
|
|
<a-divider type="vertical" />
|
|
|
<a @click="handleSub(record)" v-action:1004008>购课</a>
|
|
|
+ <a-divider type="vertical" />
|
|
|
+ <a @click="handleUpdate(record)" v-action:1004008>编辑</a>
|
|
|
</template>
|
|
|
</span>
|
|
|
</a-table>
|
|
@@ -277,6 +282,7 @@
|
|
|
:curData="curData"
|
|
|
:followerState="followerState"
|
|
|
:intention="INTENTION"
|
|
|
+ @success="getSaleLeadsList"
|
|
|
/>
|
|
|
<!-- /添加记录 -->
|
|
|
<!-- 转为试听 -->
|
|
@@ -289,7 +295,7 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import { getSaleLeadsList, getLeadsCount, getMarketActivityList, deleteLeads, sendbackLeads } from '@/api/markting'
|
|
|
+import { getSaleLeadsList, getLeadsCount, getMarketActivityList, deleteLeads, sendbackLeads, getLeadsDetail } from '@/api/markting'
|
|
|
import { searchUser } from '@/api/role'
|
|
|
import { getConfig } from '@/api/basics'
|
|
|
import { basicSellTab } from '@/utils/global'
|
|
@@ -342,7 +348,7 @@ const columns = [
|
|
|
dataIndex: 'followTime'
|
|
|
},
|
|
|
{
|
|
|
- title: '待回访时间',
|
|
|
+ title: '回访时间',
|
|
|
dataIndex: 'callbackTime'
|
|
|
},
|
|
|
{
|
|
@@ -502,7 +508,10 @@ export default {
|
|
|
'intentionId': '',
|
|
|
'label': '',
|
|
|
'orderId': '',
|
|
|
- 'state': ''
|
|
|
+ 'state': '',
|
|
|
+ page: 0,
|
|
|
+ total: 0,
|
|
|
+ pageSize: 10
|
|
|
},
|
|
|
leadsList: [],
|
|
|
loading: false,
|
|
@@ -548,6 +557,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ async handleUpdate (record) {
|
|
|
+ const { data } = await getLeadsDetail(record.id, 'leads')
|
|
|
+ this.$refs.createModal.visible = true
|
|
|
+ this.$refs.createModal.opraType = 'update'
|
|
|
+ this.$refs.createModal.formData = data
|
|
|
+ },
|
|
|
+ onChange ({ current }) {
|
|
|
+ console.log(current)
|
|
|
+ this.queryParam.curPage = current
|
|
|
+ this.getSaleLeadsList()
|
|
|
+ },
|
|
|
// 线索详情
|
|
|
goleadsDetailPage (records) {
|
|
|
this.$router.push({
|
|
@@ -616,6 +636,7 @@ export default {
|
|
|
console.log(data, 'hello world')
|
|
|
const { records } = data
|
|
|
this.leadsList = records
|
|
|
+ this.queryParam.total = data.total
|
|
|
}
|
|
|
},
|
|
|
toggleAdvanced () {
|
|
@@ -705,7 +726,7 @@ export default {
|
|
|
okType: 'danger',
|
|
|
okText: '删除',
|
|
|
cancelText: '取消',
|
|
|
- onOk () {
|
|
|
+ onOk: () => {
|
|
|
console.log('OK')
|
|
|
// 在这里调用删除接口
|
|
|
|
|
@@ -716,6 +737,7 @@ export default {
|
|
|
data ? this.$message.success('删除成功') : this.$message.success('删除失败')
|
|
|
resolve(data)
|
|
|
this.selectedRowKeys = []
|
|
|
+ this.getSaleLeadsList()
|
|
|
}
|
|
|
}).catch(() => console.log('Oops errors!'))
|
|
|
},
|
|
@@ -729,6 +751,7 @@ export default {
|
|
|
addLeads () {
|
|
|
console.log(this.$refs.createModal.$options.data().formData)
|
|
|
this.$refs.createModal.visible = true
|
|
|
+ this.$refs.createModal.opraType = 'add'
|
|
|
this.$refs.createModal.formData = this.$refs.createModal.$options.data().formData
|
|
|
},
|
|
|
// 退回公海池
|
|
@@ -741,7 +764,7 @@ export default {
|
|
|
content: `确定要将选择的线索退回公海池?`,
|
|
|
okText: '确定',
|
|
|
cancelText: '取消',
|
|
|
- onOk () {
|
|
|
+ onOk: () => {
|
|
|
console.log('OK')
|
|
|
// 在这里调用删除接口
|
|
|
|