Commit 5909ebec by 前端

fixed

1 parent 073c7cef
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-12 09:30:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-19 14:07:55
* @FilePath: \scrm-micro-drainage\src\api\modules\businessCard.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/** /**
* 新增参数sign 判断接口是否需要sign签名 * 新增参数sign 判断接口是否需要sign签名
*/ */
...@@ -69,6 +77,50 @@ const getaccessToRecordsPage = params => { ...@@ -69,6 +77,50 @@ const getaccessToRecordsPage = params => {
sign: true sign: true
}) })
} }
// 智能名片活动跟进
const activityFollow = params => {
params.method = 'entmicro.api.business.card.activity.follow'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 分页查询活动申请记录
const activityRecord = params => {
params.method = 'entmicro.api.business.card.activity.record'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 智能名片活动申请
const activityApply = params => {
params.method = 'entmicro.api.business.card.activity.apply'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 智能名片活动页面访问记录
const pagerecord = params => {
params.method = 'entmicro.api.business.card.activity.pagerecord'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getBussinessCardListApi, getBussinessCardListApi,
...@@ -76,5 +128,9 @@ export default { ...@@ -76,5 +128,9 @@ export default {
getBussinessCardDetail, getBussinessCardDetail,
addBussinessCard, addBussinessCard,
updateBussinessCard, updateBussinessCard,
getaccessToRecordsPage getaccessToRecordsPage,
activityFollow,
activityRecord,
activityApply,
pagerecord
} }
...@@ -18,8 +18,9 @@ ...@@ -18,8 +18,9 @@
<el-form-item size="small" label="添加时间" v-if="timeStatus"> <el-form-item size="small" label="添加时间" v-if="timeStatus">
<el-date-picker :picker-options="pickerOptions" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> <el-date-picker :picker-options="pickerOptions" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right; margin-right: 0px"> <el-form-item size="small">
<el-button type="primary" @click="handleSearch">查询</el-button> <el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- <GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> --> <!-- <GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> -->
...@@ -34,7 +35,7 @@ ...@@ -34,7 +35,7 @@
<template slot="customerName" slot-scope="scope"> <template slot="customerName" slot-scope="scope">
<div class="form-row"> <div class="form-row">
<img :src="scope.scope.avatar" v-if="scope.scope.avatar" /> <img :src="scope.scope.avatar" v-if="scope.scope.avatar" />
{{ scope.scope.customerName }} {{ scope.scope.nickNameList[0].nickName }}
<span style="color: #5850ff">{{ scope.scope.type == 1 ? '@微信' : '@企微' }}</span> <span style="color: #5850ff">{{ scope.scope.type == 1 ? '@微信' : '@企微' }}</span>
</div> </div>
</template> </template>
...@@ -198,7 +199,7 @@ export default { ...@@ -198,7 +199,7 @@ export default {
...JSON.parse(JSON.stringify(this.tableSearchForm)), ...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize, pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum, pageNum: this.$refs.table.page.pageNum,
custState: this.selectRow.codeState, custState: this.selectRow.codeState ? this.selectRow.codeState : this.selectRow.state,
staffIds: this.staffId ? [this.staffId] : null staffIds: this.staffId ? [this.staffId] : null
} }
if (this.createTime && this.createTime.length > 0) { if (this.createTime && this.createTime.length > 0) {
...@@ -222,7 +223,7 @@ export default { ...@@ -222,7 +223,7 @@ export default {
var params = { var params = {
pageSize: 1000, pageSize: 1000,
pageNum: 1, pageNum: 1,
codeState: this.selectRow.codeState codeState: this.selectRow.codeState ? this.selectRow.codeState : this.selectRow.state
} }
this.$apis.channel.getChannelCodeStaffList(params).then(res => { this.$apis.channel.getChannelCodeStaffList(params).then(res => {
this.staffName = [{ staffName: '全部', staffId: null }].concat(res.data) this.staffName = [{ staffName: '全部', staffId: null }].concat(res.data)
...@@ -276,6 +277,10 @@ export default { ...@@ -276,6 +277,10 @@ export default {
handleSearch() { handleSearch() {
this.getFollower() this.getFollower()
}, },
handleReset() {
this.tableSearchForm = {}
this.getFollower()
},
selectionTable(val) { selectionTable(val) {
this.selectItem = val this.selectItem = val
}, },
...@@ -304,7 +309,7 @@ export default { ...@@ -304,7 +309,7 @@ export default {
/deep/ { /deep/ {
.el-date-editor, .el-date-editor,
.el-input { .el-input {
width: 215px; width: 212px;
} }
} }
} }
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: * @version:
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2021-09-07 14:38:52 * @LastEditTime: 2022-10-26 15:54:49
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
......
/* /*
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2022-08-30 10:21:19 * @Date: 2022-08-30 10:21:19
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-08-30 10:32:08 * @LastEditTime: 2022-10-28 15:21:03
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js * @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
......
...@@ -12,6 +12,14 @@ ...@@ -12,6 +12,14 @@
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div> </div>
<div slot="joinEntToday" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day')" v-if="scope.scope.joinEntToday">{{ scope.scope.joinEntToday }}</div>
<div v-else>0</div>
</div>
<div slot="joinEntTotal" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope)" v-if="scope.scope.joinEntTotal">{{ scope.scope.joinEntTotal }}</div>
<div v-else>0</div>
</div>
<div slot="visitCont" slot-scope="scope"> <div slot="visitCont" slot-scope="scope">
<div class="visitCont" @click="visitCisitCont(scope.scope)">{{ scope.scope.visitCont || '--' }}</div> <div class="visitCont" @click="visitCisitCont(scope.scope)">{{ scope.scope.visitCont || '--' }}</div>
</div> </div>
...@@ -54,15 +62,16 @@ ...@@ -54,15 +62,16 @@
</GLTable> </GLTable>
</div> </div>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleDel = false" type="error" content="删除该智能名片将失去该名片统计数据,是否删除?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog> <GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleDel = false" type="error" content="删除该智能名片将失去该名片统计数据,是否删除?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog>
<!-- <emp-detail ref="empDetailForm"></emp-detail>--> <emp-detail ref="empDetailForm"></emp-detail>
</div> </div>
</template> </template>
<script> <script>
import util from '@/utils/util' import util from '@/utils/util'
import empDetail from '@/components/empDetail'
export default { export default {
name: 'cardList', name: 'cardList',
components: { empDetail },
data() { data() {
return { return {
dialogVisibleDel: false, dialogVisibleDel: false,
...@@ -142,12 +151,14 @@ export default { ...@@ -142,12 +151,14 @@ export default {
{ {
label: '今日新增客户', label: '今日新增客户',
prop: 'joinEntToday', prop: 'joinEntToday',
width: '140px' width: '140px',
addHtml: 'joinEntToday'
}, },
{ {
label: '总新增客户', label: '总新增客户',
prop: 'joinEntTotal', prop: 'joinEntTotal',
width: '130px' width: '130px',
addHtml: 'joinEntTotal'
}, },
{ {
label: '名片地址', label: '名片地址',
...@@ -181,6 +192,10 @@ export default { ...@@ -181,6 +192,10 @@ export default {
} }
}, },
methods: { methods: {
//员工详情
handleEmpDetail(scope, status) {
this.$refs.empDetailForm.init(scope, status)
},
// 跳转访问量 // 跳转访问量
visitCisitCont(scope) { visitCisitCont(scope) {
const { cardName, visitCont, id: cardId, staffName } = scope const { cardName, visitCont, id: cardId, staffName } = scope
...@@ -261,6 +276,10 @@ export default { ...@@ -261,6 +276,10 @@ export default {
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.visitCont { .visitCont {
cursor: pointer; cursor: pointer;
color: #5850ff; color: #5850ff;
......
<template> <template>
<div class="channel-main scrm-box-f"> <div class="channel-main scrm-box-f">
<div class="scrm-flex"> <div class="scrm-GLCombiForm">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="130px"> <GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- <el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="130px">
<el-form-item size="small" label="访问时间:"> <el-form-item size="small" label="访问时间:">
<el-date-picker :picker-options="pickerOptions" @change="handleTime" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> <el-date-picker :picker-options="pickerOptions" @change="handleTime" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
...@@ -15,7 +16,7 @@ ...@@ -15,7 +16,7 @@
<el-button type="primary" @click="handleSearch">查询</el-button> <el-button type="primary" @click="handleSearch">查询</el-button>
<el-button @click="handleReset" class="resetBtn">重置</el-button> <el-button @click="handleReset" class="resetBtn">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form> -->
</div> </div>
<div class="titleAndTime"> <div class="titleAndTime">
<div class="listTitle">访问列表</div> <div class="listTitle">访问列表</div>
...@@ -64,8 +65,35 @@ export default { ...@@ -64,8 +65,35 @@ export default {
} }
}, },
channel: [], channel: [],
createTime: [], tableSearchForm: {
tableSearchForm: {}, createTime: '',
cardName: '',
staffName: ''
},
searchFormData: [
{
label: '访问时间',
name: 'createTime',
type: 'datePicker',
placeholder: '',
isClear: true,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
}
},
{
label: '渠道名称',
name: 'cardName',
type: 'input'
},
{
label: '名片来源',
name: 'staffName',
type: 'input'
}
],
tableParams: { tableParams: {
listName: 'data', listName: 'data',
tableOption: false, tableOption: false,
...@@ -164,14 +192,17 @@ export default { ...@@ -164,14 +192,17 @@ export default {
this.codeSearch() this.codeSearch()
}, },
codeSearch() { codeSearch() {
if (this.tableSearchForm.createTime) {
this.tableSearchForm.startDate = new Date(this.tableSearchForm.createTime[0]).toLocaleDateString().replace(/\//g, '-')
this.tableSearchForm.endDate = new Date(this.tableSearchForm.createTime[1]).toLocaleDateString().replace(/\//g, '-')
}
let params = { let params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)), ...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize, pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum, pageNum: this.$refs.table.page.pageNum,
startDate: this.startDate,
endDate: this.endDate,
dateInterval: this.dateInterval dateInterval: this.dateInterval
} }
delete params.createTime
this.sendPageListApi(params) this.sendPageListApi(params)
}, },
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-12 09:30:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-18 16:03:33
* @FilePath: \scrm-micro-drainage\src\views\businessCard\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template> <template>
<div class="channel-main"> <div class="channel-main">
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" class="tabs-panel"></GLTabs> <GLTabs v-model="activeName" :tabPaneList="tabPaneList" class="tabs-panel"></GLTabs>
...@@ -14,12 +22,12 @@ const tabPaneList = [ ...@@ -14,12 +22,12 @@ const tabPaneList = [
{ {
label: '访问记录', label: '访问记录',
name: '2' name: '2'
},
{
label: '活动申请',
name: '3'
} }
// { // {
// label: '体验申请',
// name: '3'
// },
// {
// label: '代理申请', // label: '代理申请',
// name: '4' // name: '4'
// } // }
...@@ -43,9 +51,9 @@ export default { ...@@ -43,9 +51,9 @@ export default {
case '2': case '2':
sname = 'recordList' sname = 'recordList'
break break
// case '3': case '3':
// sname = 'accountList' sname = 'activityList'
// break break
// case '4': // case '4':
// sname = 'proxyList' // sname = 'proxyList'
// break // break
......
...@@ -303,9 +303,9 @@ export default { ...@@ -303,9 +303,9 @@ export default {
jumpDetail(status) { jumpDetail(status) {
let url let url
if (status) { if (status) {
url = `/custom/clientManage/index?isJoin=${status}&addWay=企微魔方` url = `/custom/clientManage/index?isJoin=${status}&addWay=数据魔方`
} else { } else {
url = `/custom/clientManage/index?addWay=企微魔方` url = `/custom/clientManage/index?addWay=数据魔方`
} }
this.$history.push(url) this.$history.push(url)
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!