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签名
*/
......@@ -69,6 +77,50 @@ const getaccessToRecordsPage = params => {
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 {
getBussinessCardListApi,
......@@ -76,5 +128,9 @@ export default {
getBussinessCardDetail,
addBussinessCard,
updateBussinessCard,
getaccessToRecordsPage
getaccessToRecordsPage,
activityFollow,
activityRecord,
activityApply,
pagerecord
}
......@@ -18,8 +18,9 @@
<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-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="handleReset">重置</el-button>
</el-form-item>
</el-form>
<!-- <GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> -->
......@@ -34,7 +35,7 @@
<template slot="customerName" slot-scope="scope">
<div class="form-row">
<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>
</div>
</template>
......@@ -198,7 +199,7 @@ export default {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
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
}
if (this.createTime && this.createTime.length > 0) {
......@@ -222,7 +223,7 @@ export default {
var params = {
pageSize: 1000,
pageNum: 1,
codeState: this.selectRow.codeState
codeState: this.selectRow.codeState ? this.selectRow.codeState : this.selectRow.state
}
this.$apis.channel.getChannelCodeStaffList(params).then(res => {
this.staffName = [{ staffName: '全部', staffId: null }].concat(res.data)
......@@ -276,6 +277,10 @@ export default {
handleSearch() {
this.getFollower()
},
handleReset() {
this.tableSearchForm = {}
this.getFollower()
},
selectionTable(val) {
this.selectItem = val
},
......@@ -304,7 +309,7 @@ export default {
/deep/ {
.el-date-editor,
.el-input {
width: 215px;
width: 212px;
}
}
}
......
......@@ -3,8 +3,8 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-09-07 14:38:52
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-26 15:54:49
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-08-30 10:21:19
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-08-30 10:32:08
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-28 15:21:03
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......
......@@ -12,6 +12,14 @@
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</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 class="visitCont" @click="visitCisitCont(scope.scope)">{{ scope.scope.visitCont || '--' }}</div>
</div>
......@@ -54,15 +62,16 @@
</GLTable>
</div>
<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>
</template>
<script>
import util from '@/utils/util'
import empDetail from '@/components/empDetail'
export default {
name: 'cardList',
components: { empDetail },
data() {
return {
dialogVisibleDel: false,
......@@ -142,12 +151,14 @@ export default {
{
label: '今日新增客户',
prop: 'joinEntToday',
width: '140px'
width: '140px',
addHtml: 'joinEntToday'
},
{
label: '总新增客户',
prop: 'joinEntTotal',
width: '130px'
width: '130px',
addHtml: 'joinEntTotal'
},
{
label: '名片地址',
......@@ -181,6 +192,10 @@ export default {
}
},
methods: {
//员工详情
handleEmpDetail(scope, status) {
this.$refs.empDetailForm.init(scope, status)
},
// 跳转访问量
visitCisitCont(scope) {
const { cardName, visitCont, id: cardId, staffName } = scope
......@@ -261,6 +276,10 @@ export default {
}
</style>
<style lang="scss" scoped>
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.visitCont {
cursor: pointer;
color: #5850ff;
......
<template>
<div class="channel-main scrm-box-f">
<div class="scrm-flex">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="130px">
<div class="scrm-GLCombiForm">
<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-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>
......@@ -15,7 +16,7 @@
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button @click="handleReset" class="resetBtn">重置</el-button>
</el-form-item>
</el-form>
</el-form> -->
</div>
<div class="titleAndTime">
<div class="listTitle">访问列表</div>
......@@ -64,8 +65,35 @@ export default {
}
},
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: {
listName: 'data',
tableOption: false,
......@@ -164,14 +192,17 @@ export default {
this.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 = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
startDate: this.startDate,
endDate: this.endDate,
dateInterval: this.dateInterval
}
delete params.createTime
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>
<div class="channel-main">
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" class="tabs-panel"></GLTabs>
......@@ -14,12 +22,12 @@ const tabPaneList = [
{
label: '访问记录',
name: '2'
},
{
label: '活动申请',
name: '3'
}
// {
// label: '体验申请',
// name: '3'
// },
// {
// label: '代理申请',
// name: '4'
// }
......@@ -43,9 +51,9 @@ export default {
case '2':
sname = 'recordList'
break
// case '3':
// sname = 'accountList'
// break
case '3':
sname = 'activityList'
break
// case '4':
// sname = 'proxyList'
// break
......
......@@ -303,9 +303,9 @@ export default {
jumpDetail(status) {
let url
if (status) {
url = `/custom/clientManage/index?isJoin=${status}&addWay=企微魔方`
url = `/custom/clientManage/index?isJoin=${status}&addWay=数据魔方`
} else {
url = `/custom/clientManage/index?addWay=企微魔方`
url = `/custom/clientManage/index?addWay=数据魔方`
}
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!