Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 90d1bbf3
authored
Nov 29, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改重置方法,客户数据概览做权限控制
1 parent
f9a02d95
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
46 deletions
src/views/clientDataOverview/index.vue
src/views/clientGroupManage/index.vue
src/views/clientManage/index.vue
src/views/tagsManage/index.vue
src/views/clientDataOverview/index.vue
View file @
90d1bbf
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
<span
class=
"person-text"
>
人
</span>
<span
class=
"person-text"
>
人
</span>
</span>
</span>
<span>
未加企微的潜在(意向)客户
</span>
<span>
未加企微的潜在(意向)客户
</span>
<button
class=
"btn"
@
click=
"toGuideCompanyWechat"
>
引流企微
>>
</button>
<button
class=
"btn"
@
click=
"toGuideCompanyWechat"
v-if=
"accountLevel==4"
>
引流企微
>>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<span
class=
"person-text"
>
人
</span>
<span
class=
"person-text"
>
人
</span>
</span>
</span>
<span>
未加企微的购买(存档)客户
</span>
<span>
未加企微的购买(存档)客户
</span>
<button
class=
"btn"
@
click=
"toGuideCompanyWechat"
>
引流企微
>>
</button>
<button
class=
"btn"
@
click=
"toGuideCompanyWechat"
v-if=
"accountLevel==4"
>
引流企微
>>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -259,7 +259,9 @@ export default {
...
@@ -259,7 +259,9 @@ export default {
timeGap
:
7
,
timeGap
:
7
,
sevenDayStorage
:
{},
sevenDayStorage
:
{},
thirtyDayStorage
:
{},
thirtyDayStorage
:
{},
dialogVisible
:
false
dialogVisible
:
false
,
//只有门店可以引流企微
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
}
}
},
},
...
@@ -286,15 +288,18 @@ export default {
...
@@ -286,15 +288,18 @@ export default {
}
}
},
},
async
created
()
{
async
created
()
{
//引流过企微魔方的数据
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
// if (!this.isHasCustomerCountBanner) {
//运行在qiankun容器中
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
// 掉两个数据接口
// 掉两个数据接口
// await this.getDataOverviewFun()
// await this.getDataOverviewFun()
await
this
.
getLoginCountFun
()
await
this
.
getLoginCountFun
()
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
this
.
getDataOverviewBarMapFun
()
this
.
getDataOverviewBarMapFun
()
// }
},
},
methods
:
{
methods
:
{
...
@@ -318,14 +323,15 @@ export default {
...
@@ -318,14 +323,15 @@ export default {
toGuideCompanyWechat
()
{
toGuideCompanyWechat
()
{
// window.open('https://www.baidu.com', '_blank')
// window.open('https://www.baidu.com', '_blank')
// $('.subtitle').hide()
// $('.subtitle').hide()
this
.
dialogVisible
=
true
this
.
$history
.
push
(
'/drainage/square/drainage'
)
let
timer
=
3
// this.dialogVisible = true
setInterval
(()
=>
{
// let timer = 3
timer
--
// setInterval(() => {
if
(
timer
==
0
)
{
// timer--
this
.
dialogVisible
=
false
// if (timer == 0) {
}
// this.dialogVisible = false
},
1000
)
// }
// }, 1000)
},
},
showModalLayer
()
{
showModalLayer
()
{
var
baseNavEle
=
document
.
querySelector
(
'.scrm-base-nav'
)
var
baseNavEle
=
document
.
querySelector
(
'.scrm-base-nav'
)
...
@@ -408,8 +414,8 @@ export default {
...
@@ -408,8 +414,8 @@ export default {
this
.
isBuyUp
=
res
.
purchaseUp
this
.
isBuyUp
=
res
.
purchaseUp
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
console
.
log
(
this
.
isShowModal
,
this
.
topDataObj
.
customerCount
,
'myData'
)
console
.
log
(
this
.
accountLevel
,
this
.
isShowModal
,
this
.
topDataObj
.
customerCount
,
'myData'
)
if
(
this
.
isShowModal
)
{
if
(
this
.
isShowModal
&&
this
.
accountLevel
==
4
)
{
this
.
isHasCustomerCountBanner
=
true
this
.
isHasCustomerCountBanner
=
true
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
$
(
'img[usemap]'
).
rwdImageMaps
()
$
(
'img[usemap]'
).
rwdImageMaps
()
...
@@ -420,7 +426,7 @@ export default {
...
@@ -420,7 +426,7 @@ export default {
},
1000
)
},
1000
)
}
else
if
(
!
this
.
isShowModal
&&
this
.
topDataObj
.
customerCount
>
0
)
{
}
else
if
(
!
this
.
isShowModal
&&
this
.
topDataObj
.
customerCount
>
0
)
{
this
.
isHasCustomerCountBanner
=
false
this
.
isHasCustomerCountBanner
=
false
}
else
if
(
!
this
.
isShowModal
&&
this
.
topDataObj
.
customerCount
<=
0
)
{
}
else
if
(
!
this
.
isShowModal
&&
this
.
topDataObj
.
customerCount
<=
0
&&
this
.
accountLevel
==
4
)
{
this
.
isHasCustomerCountBanner
=
true
this
.
isHasCustomerCountBanner
=
true
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
$
(
'img[usemap]'
).
rwdImageMaps
()
$
(
'img[usemap]'
).
rwdImageMaps
()
...
...
src/views/clientGroupManage/index.vue
View file @
90d1bbf
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)"允许所有人同步 -->
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)"允许所有人同步 -->
<el-button
type=
"primary"
@
click=
"syncClick"
:loading=
"sloading"
>
同步数据
</el-button>
<el-button
type=
"primary"
@
click=
"syncClick"
:loading=
"sloading"
>
同步数据
</el-button>
</span>
</span>
</search-form>
</search-form>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
ref=
"clientGroupManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:noDataImg=
"url"
:pageConf=
"pageConf"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientGroupManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:noDataImg=
"url"
:pageConf=
"pageConf"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<span
slot=
"status"
slot-scope=
"scope"
>
<span
slot=
"status"
slot-scope=
"scope"
>
<!--
<span
class=
"dot"
:class=
"scope.scope.enableStatus ? DICTSTATUS[scope.scope.enableStatus].split(',')[1] : ''"
></span>
-->
<!--
<span
class=
"dot"
:class=
"scope.scope.enableStatus ? DICTSTATUS[scope.scope.enableStatus].split(',')[1] : ''"
></span>
-->
<span
class=
"statusText"
:class=
"scope.scope.status ? CLIENTSTATUS[scope.scope.status].split(',')[1] : ''"
>
{{
scope
.
scope
.
status
?
CLIENTSTATUS
[
scope
.
scope
.
status
].
split
(
','
)[
0
]
:
'--'
}}
</span>
<span
class=
"statusText"
:class=
"scope.scope.status ? CLIENTSTATUS[scope.scope.status].split(',')[1] : ''"
>
{{
scope
.
scope
.
status
?
CLIENTSTATUS
[
scope
.
scope
.
status
].
split
(
','
)[
0
]
:
'--'
}}
</span>
...
@@ -35,6 +35,7 @@ export default {
...
@@ -35,6 +35,7 @@ export default {
// inject: ['reload'],
// inject: ['reload'],
data
()
{
data
()
{
return
{
return
{
isReload
:
true
,
url
:
url
,
url
:
url
,
sloading
:
false
,
sloading
:
false
,
titles
:
[
titles
:
[
...
@@ -84,22 +85,22 @@ export default {
...
@@ -84,22 +85,22 @@ export default {
{
{
label
:
'客户群名称'
,
label
:
'客户群名称'
,
prop
:
'custGroupName'
,
prop
:
'custGroupName'
,
width
:
180
width
:
180
},
},
{
{
label
:
'当前客户数'
,
label
:
'当前客户数'
,
prop
:
'totalCount'
,
prop
:
'totalCount'
,
width
:
100
width
:
100
},
},
{
{
label
:
'新增入群客户数'
,
label
:
'新增入群客户数'
,
prop
:
'newCustomerCount'
,
prop
:
'newCustomerCount'
,
width
:
120
width
:
120
},
},
{
{
label
:
'新增退群客户数'
,
label
:
'新增退群客户数'
,
prop
:
'delCustomerCount'
,
prop
:
'delCustomerCount'
,
width
:
120
width
:
120
},
},
{
{
label
:
'群主'
,
label
:
'群主'
,
...
@@ -201,8 +202,12 @@ export default {
...
@@ -201,8 +202,12 @@ export default {
},
},
resetTable
()
{
resetTable
()
{
this
.
isReload
=
false
this
.
searchForm
=
{}
this
.
searchForm
=
{}
this
.
$refs
.
clientGroupManage
.
refreshTable
()
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
// this.$refs.clientGroupManage.refreshTable()
},
},
btnClick
(
ptype
,
scope
)
{},
btnClick
(
ptype
,
scope
)
{},
goDetail
(
id
,
name
)
{
goDetail
(
id
,
name
)
{
...
...
src/views/clientManage/index.vue
View file @
90d1bbf
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</span>
</span>
</search-form>
</search-form>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
ref=
"clientManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:noDataImg=
"url"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:noDataImg=
"url"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<span
slot=
"customerName"
slot-scope=
"scope"
>
<span
slot=
"customerName"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
...
@@ -58,6 +58,7 @@ export default {
...
@@ -58,6 +58,7 @@ export default {
// inject: ['reload'],
// inject: ['reload'],
data
()
{
data
()
{
return
{
return
{
isReload
:
true
,
url
:
url
,
url
:
url
,
sloading
:
false
,
sloading
:
false
,
CLIENTSTATUS
:
this
.
$Constants
.
CLIENT_STATUS
,
CLIENTSTATUS
:
this
.
$Constants
.
CLIENT_STATUS
,
...
@@ -335,8 +336,12 @@ export default {
...
@@ -335,8 +336,12 @@ export default {
},
},
//重置表格
//重置表格
resetTable
()
{
resetTable
()
{
this
.
isReload
=
false
this
.
searchForm
=
{}
this
.
searchForm
=
{}
this
.
$refs
.
clientManage
.
refreshTable
()
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
// this.$refs.clientManage.refreshTable()
// 点击之后强制页面刷新
// 点击之后强制页面刷新
// this.reload()
// this.reload()
// this.$forceUpdate() // 没用
// this.$forceUpdate() // 没用
...
...
src/views/tagsManage/index.vue
View file @
90d1bbf
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</span>
</span>
</search-form>
</search-form>
<!-- noDataText="你当前还没有添加的标签" -->
<!-- noDataText="你当前还没有添加的标签" -->
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
ref=
"tagsManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"tagsManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<span
slot=
"labelGroup"
slot-scope=
"scope"
>
<span
slot=
"labelGroup"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
labelGroup
.
name
}}
</span>
<span>
{{
scope
.
scope
.
labelGroup
.
name
}}
</span>
</span>
</span>
...
@@ -149,6 +149,7 @@ export default {
...
@@ -149,6 +149,7 @@ export default {
}
}
}
}
return
{
return
{
isReload
:
true
,
isAllowCloseDialog
:
false
,
isAllowCloseDialog
:
false
,
isHasSameTag
:
false
,
isHasSameTag
:
false
,
tagNameRules
:
false
,
tagNameRules
:
false
,
...
@@ -338,9 +339,10 @@ export default {
...
@@ -338,9 +339,10 @@ export default {
},
},
closeInitPanel
()
{
closeInitPanel
()
{
this
.
isFirstShow
=
false
this
.
isFirstShow
=
false
setTimeout
(()
=>
{
//不用算高度
this
.
$refs
.
tagsManage
.
setTableHeightFun
()
// setTimeout(() => {
},
200
)
// this.$refs.tagsManage.setTableHeightFun()
// }, 200)
},
},
setTableHeightEvent
()
{
setTableHeightEvent
()
{
this
.
$refs
.
tagsManage
.
setTableHeightFun
()
this
.
$refs
.
tagsManage
.
setTableHeightFun
()
...
@@ -352,24 +354,9 @@ export default {
...
@@ -352,24 +354,9 @@ export default {
item
.
expande
=
true
item
.
expande
=
true
item
.
needShowExpande
=
false
item
.
needShowExpande
=
false
})
})
// this.$refs.tagsManage.tableHeightValues = null
}
else
{
}
else
{
this
.
$refs
.
tagsManage
.
setTableHeightFun
()
this
.
$refs
.
tagsManage
.
setTableHeightFun
()
}
}
// this.$nextTick(() => {
// let lineHeight = 65
// console.log('6666')
// if (document.getElementById('allTagsWrap').offsetHeight > lineHeight * 2) {
// console.log('gg')
// console.log('包含该行标签的div的高度:', document.getElementById('allTagsWrap').offsetHeight)
// this.expande = false
// this.needShowExpande = true
// } else {
// this.needShowExpande = false
// this.expande = true
// }
// })
},
},
getLoginCountFun
()
{
getLoginCountFun
()
{
//loginType:3是查客户数据概览浏览次数
//loginType:3是查客户数据概览浏览次数
...
@@ -393,8 +380,12 @@ export default {
...
@@ -393,8 +380,12 @@ export default {
},
},
//重置表格
//重置表格
resetTable
()
{
resetTable
()
{
this
.
isReload
=
false
this
.
searchForm
=
{
'labelTreeReq.shopId'
:
this
.
merchantId
,
'labelTreeReq.edition'
:
this
.
merchantModel
}
this
.
searchForm
=
{
'labelTreeReq.shopId'
:
this
.
merchantId
,
'labelTreeReq.edition'
:
this
.
merchantModel
}
this
.
$refs
.
tagsManage
.
refreshTable
()
// this.$refs.tagsManage.refreshTable()
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
},
},
btnClick
(
pType
,
rowData
)
{
btnClick
(
pType
,
rowData
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment