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 5faad80e
authored
Jan 11, 2022
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改集团省代市代权限
1 parent
6bdeed38
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
19 deletions
package.json
src/views/clientManage/index.vue
src/views/tagsManage/index.vue
package.json
View file @
5faad80
...
@@ -47,4 +47,4 @@
...
@@ -47,4 +47,4 @@
"> 1%"
,
"> 1%"
,
"last 2 versions"
"last 2 versions"
]
]
}
\ No newline at end of file
\ No newline at end of file
}
src/views/clientManage/index.vue
View file @
5faad80
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
getTableList
,
getDictionaryFun
,
syncCustomer
,
clientManageExportApi
}
from
'@/api/modules/clientManage'
import
{
getTableList
,
getDictionaryFun
,
syncCustomer
,
clientManageExportApi
}
from
'@/api/modules/clientManage'
import
url
from
'@/assets/clientDataOverview/nodata.png'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
export
default
{
name
:
'clientManage'
,
name
:
'clientManage'
,
...
@@ -299,10 +299,10 @@ export default {
...
@@ -299,10 +299,10 @@ export default {
//
}
//
}
this
.
$refs
.
clientManage
.
data
.
length
?
(
this
.
$refs
.
clientManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientManage
.
setTableHeightFun
()
this
.
$refs
.
clientManage
.
data
.
length
?
(
this
.
$refs
.
clientManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientManage
.
setTableHeightFun
()
}
,
}
,
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
if
(
params
.
daterange
)
{
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
}
else
{
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
...
@@ -322,7 +322,7 @@ export default {
...
@@ -322,7 +322,7 @@ export default {
//
}
//
}
// resolve()
// resolve()
//
}
)
//
}
)
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
this
.
getParams
()
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
resolve
()
}
)
}
)
...
@@ -359,13 +359,13 @@ export default {
...
@@ -359,13 +359,13 @@ export default {
return
curElement
.
label
return
curElement
.
label
}
,
}
,
//导出
//导出
handleExport
(){
handleExport
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
clientManageExportApi
(
params
).
then
(
res
=>
{
clientManageExportApi
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
this
.
$Utils
.
exportFn
(
res
)
}
)
}
)
}
,
}
,
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
this
.
$refs
.
clientManage
.
refreshTable
()
this
.
$refs
.
clientManage
.
refreshTable
()
...
@@ -460,6 +460,9 @@ export default {
...
@@ -460,6 +460,9 @@ export default {
&-
tag
{
&-
tag
{
display
:
inline
-
block
;
display
:
inline
-
block
;
}
}
// /deep/ .entmicro-tag + .entmicro-tag
{
// margin-bottom: 4px;
//
}
&-
hover
{
&-
hover
{
max
-
height
:
214
px
;
max
-
height
:
214
px
;
overflow
:
auto
;
overflow
:
auto
;
...
@@ -470,6 +473,7 @@ export default {
...
@@ -470,6 +473,7 @@ export default {
}
}
}
}
}
}
.
el
-
tag
{
.
el
-
tag
{
// margin-right: 10px;
// margin-right: 10px;
max
-
width
:
110
px
;
max
-
width
:
110
px
;
...
...
src/views/tagsManage/index.vue
View file @
5faad80
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</span>
</span>
</span>
</span>
<div
class=
"initPanel"
v-if=
"isFirstShow"
>
<div
class=
"initPanel"
v-if=
"isFirstShow"
>
<
template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</
template
>
系统标签为通过大数据算法规则生成的标签
系统标签为通过大数据算法规则生成的标签
<img
src=
"@/assets/tagsManage/Shape.png"
alt=
""
/>
<img
src=
"@/assets/tagsManage/Shape.png"
alt=
""
/>
...
@@ -80,9 +80,9 @@
...
@@ -80,9 +80,9 @@
</el-select>
</el-select>
<!-- id="tagTipMsgRef" -->
<!-- id="tagTipMsgRef" -->
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup"
>
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup"
>
<
template
v-if=
"!(merchantModel == 1 &&
accountLevel == 4
)"
>
企业标签
</
template
>
<
template
v-if=
"!(merchantModel == 1 &&
(accountLevel == 2 || accountLevel == 3 || accountLevel==4)
)"
>
企业标签
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
<template
v-if=
"!(merchantModel == 1 &&
accountLevel == 4
)"
>
和
</
template
>
<template
v-if=
"!(merchantModel == 1 &&
(accountLevel == 2 || accountLevel == 3 || accountLevel==4)
)"
>
和
</
template
>
自店标签分别
自店标签分别
</template>
</template>
最多3000个
最多3000个
...
@@ -330,9 +330,9 @@ export default {
...
@@ -330,9 +330,9 @@ export default {
// if (this.merchantModel == 1) {
// if (this.merchantModel == 1) {
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
// }
// }
//1.0.1集团下的门店只能创建自店标签
//1.0.1集团下的
省代、市代,
门店只能创建自店标签
if
(
this
.
merchantModel
==
1
)
{
if
(
this
.
merchantModel
==
1
)
{
if
(
this
.
accountLevel
==
4
)
{
if
(
this
.
accountLevel
==
2
||
this
.
accountLevel
==
3
||
this
.
accountLevel
==
4
)
{
this
.
tagsGroupList
.
splice
(
0
,
1
)
//只能创建自店标签
this
.
tagsGroupList
.
splice
(
0
,
1
)
//只能创建自店标签
// this.tagsPartFormList[0].options.splice(0, 1)
// this.tagsPartFormList[0].options.splice(0, 1)
}
}
...
@@ -424,7 +424,7 @@ export default {
...
@@ -424,7 +424,7 @@ export default {
isShowEditBtn
(
row
)
{
isShowEditBtn
(
row
)
{
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//单店模式下,仅门店和员工可以编辑
//单店模式下,仅门店和员工可以编辑
if
(
row
.
labelType
==
'自店标签'
&&
!
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
))
{
if
(
row
.
labelType
==
'自店标签'
&&
!
(
this
.
merchantModel
==
1
&&
(
this
.
accountLevel
==
2
||
this
.
accountLevel
==
3
||
this
.
accountLevel
==
4
)
))
{
return
false
return
false
}
}
if
(
this
.
merchantModel
==
1
)
{
if
(
this
.
merchantModel
==
1
)
{
...
@@ -493,7 +493,7 @@ export default {
...
@@ -493,7 +493,7 @@ export default {
this
.
tagDialogTitle
=
'添加标签组'
this
.
tagDialogTitle
=
'添加标签组'
this
.
tagForm
.
tagsForm
=
''
this
.
tagForm
.
tagsForm
=
''
this
.
tagForm
.
initTagsGroup
=
1
//默认改成,企业标签
this
.
tagForm
.
initTagsGroup
=
1
//默认改成,企业标签
if
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
)
{
if
(
this
.
merchantModel
==
1
&&
(
this
.
accountLevel
==
2
||
this
.
accountLevel
==
3
||
this
.
accountLevel
==
4
)
)
{
this
.
tagForm
.
initTagsGroup
=
2
this
.
tagForm
.
initTagsGroup
=
2
}
}
...
@@ -583,7 +583,7 @@ export default {
...
@@ -583,7 +583,7 @@ export default {
if
(
!
this
.
tagVisible
&&
this
.
$refs
.
tagForm
)
{
if
(
!
this
.
tagVisible
&&
this
.
$refs
.
tagForm
)
{
this
.
$refs
.
tagForm
.
$children
[
0
].
resetFields
()
this
.
$refs
.
tagForm
.
$children
[
0
].
resetFields
()
this
.
tagForm
.
initTagsGroup
=
1
this
.
tagForm
.
initTagsGroup
=
1
if
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
)
{
if
(
this
.
merchantModel
==
1
&&
(
this
.
accountLevel
==
2
||
this
.
accountLevel
==
3
||
this
.
accountLevel
==
4
)
)
{
this
.
tagForm
.
initTagsGroup
=
2
this
.
tagForm
.
initTagsGroup
=
2
}
}
this
.
tagForm
.
tagsName
=
''
this
.
tagForm
.
tagsName
=
''
...
@@ -723,8 +723,8 @@ export default {
...
@@ -723,8 +723,8 @@ export default {
}
}
if
(
singleNum
+
doubleNum
>=
30
)
{
if
(
singleNum
+
doubleNum
>=
30
)
{
subLen
=
subLen1
+
subLen2
subLen
=
subLen1
+
subLen2
console
.
log
(
subLen1
,
subLen2
,
subLen
)
//
console.log(subLen1, subLen2, subLen)
console
.
log
(
singleNum
,
singleNum
,
'单双数'
)
//
console.log(singleNum, singleNum, '单双数')
break
break
}
}
}
}
...
...
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