Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
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 aae287a0
authored
Apr 13, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交角色、跟进专员、地址逆解析
1 parent
79298eba
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
121 additions
and
81 deletions
src/assets/css/demo.scss
src/components/mapView/index.vue
src/views/account/index.vue
src/views/followUp/index.vue
src/views/role/index.vue
src/assets/css/demo.scss
View file @
aae287a
...
@@ -27,3 +27,11 @@
...
@@ -27,3 +27,11 @@
color
:
#5850FF
;
color
:
#5850FF
;
border-color
:
#5850FF
;
border-color
:
#5850FF
;
}
}
.emptyBg
{
width
:
100%
;
img
{
width
:
64px
;
}
}
\ No newline at end of file
\ No newline at end of file
src/components/mapView/index.vue
View file @
aae287a
...
@@ -25,7 +25,8 @@ export default {
...
@@ -25,7 +25,8 @@ export default {
return
{
return
{
input
:
''
,
input
:
''
,
address
:
''
,
address
:
''
,
lnglat
:
[]
lnglat
:
[],
geocoderAddress
:
{}
}
}
},
},
...
@@ -76,8 +77,8 @@ export default {
...
@@ -76,8 +77,8 @@ export default {
position
:
position
,
position
:
position
,
offset
:
new
AMap
.
Pixel
(
-
10
,
-
10
)
offset
:
new
AMap
.
Pixel
(
-
10
,
-
10
)
})
})
map
.
add
(
marker
)
;
map
.
add
(
marker
)
map
.
setFitView
()
;
map
.
setFitView
()
},
},
getAddress
(
e
)
{
getAddress
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
...
@@ -99,6 +100,11 @@ export default {
...
@@ -99,6 +100,11 @@ export default {
geocoder
.
getAddress
(
lnglat
,
(
status
,
result
)
=>
{
geocoder
.
getAddress
(
lnglat
,
(
status
,
result
)
=>
{
self
.
lnglat
=
lnglat
self
.
lnglat
=
lnglat
self
.
address
=
result
.
regeocode
.
formattedAddress
self
.
address
=
result
.
regeocode
.
formattedAddress
geocoder
.
getLocation
(
self
.
address
,
(
status
,
result
)
=>
{
if
(
status
===
'complete'
&&
result
.
info
===
'OK'
)
{
this
.
geocoderAddress
=
result
.
geocodes
[
0
]
}
})
})
})
})
})
},
},
...
...
src/views/account/index.vue
View file @
aae287a
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</span>
</span>
</div>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
:buttonNum=
"2"
></GLTableButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<!--
<GLButton
type=
"text"
@
click=
"handleLook(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<!--
<GLButton
type=
"text"
@
click=
"handleLook(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
<GLButton
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
fn=
"创建子商户/门店"
mode=
"el-button"
>
创建商户
</GLButton>
-->
<GLButton
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
fn=
"创建子商户/门店"
mode=
"el-button"
>
创建商户
</GLButton>
-->
...
@@ -160,7 +160,7 @@ export default {
...
@@ -160,7 +160,7 @@ export default {
},
},
attrs
:
{
attrs
:
{
type
:
'text'
,
type
:
'text'
,
fn
:
'
查看
'
fn
:
'
修改
'
},
},
listeners
:
{
listeners
:
{
click
:
this
.
handleEdit
click
:
this
.
handleEdit
...
...
src/views/followUp/index.vue
View file @
aae287a
...
@@ -10,32 +10,16 @@
...
@@ -10,32 +10,16 @@
</p>
</p>
</div>
</div>
<div
class=
"follow-form"
:style=
"
{ 'min-height': formHeight + 'px' }">
<div
class=
"follow-form"
:style=
"
{ 'min-height': formHeight + 'px' }">
<!--
<el-form
:inline=
"true"
:model=
"searchForm"
class=
"follow-form-item"
>
<el-form-item
label=
"跟进专员类型"
>
<el-select
size=
"small"
v-model=
"searchForm.followerTypeId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in optionsType"
:key=
"item.id"
:label=
"item.followName"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"员工搜索"
>
<el-input
size=
"small"
v-model=
"searchForm.staffName"
placeholder=
"请输入员工姓名"
></el-input>
</el-form-item>
<el-form-item>
<el-button
@
click=
"handleReset"
size=
"small"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
size=
"small"
>
查询
</el-button>
</el-form-item>
<el-form-item
class=
"follow-form-jump"
>
-->
<!--
<GLButton
fn=
"新增"
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"openDrawer"
>
跟进专员
</GLButton>
-->
<!--
<el-button
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"openDrawer"
>
跟进专员
</el-button>
</el-form-item>
</el-form>
-->
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
:inline=
"true"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
:inline=
"true"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"follow-btn"
>
<div
class=
"follow-btn"
>
<
!--
<GLButton
fn=
"新增"
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"openDrawer"
>
跟进专员
</GLButton>
--
>
<
GLButton
fn=
"新增"
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"openDrawer"
>
跟进专员
</GLButton
>
<el-button
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"openDrawer"
>
跟进专员
</el-button>
<el-button
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"openDrawer"
>
跟进专员
</el-button>
</div>
</div>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn=
"删除"
type=
"text"
@
click=
"handleDele(scope.scope)"
>
删除
</GLButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<!--
<GLButton
fn=
"删除"
type=
"text"
@
click=
"handleDele(scope.scope)"
>
删除
</GLButton>
<el-button
fn=
"删除"
type=
"text"
@
click=
"handleDele(scope.scope)"
>
删除
</el-button>
-->
</
template
>
</
template
>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -87,7 +71,9 @@ export default {
...
@@ -87,7 +71,9 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
tableOption
:
true
,
tableOption
:
{
width
:
80
},
mutiSelectName
:
'user'
,
mutiSelectName
:
'user'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
tableColumns
:
[
tableColumns
:
[
...
@@ -97,23 +83,28 @@ export default {
...
@@ -97,23 +83,28 @@ export default {
},
},
{
{
label
:
'部门'
,
label
:
'部门'
,
prop
:
'departmentName'
prop
:
'departmentName'
,
minWidth
:
100
},
},
{
{
label
:
'跟进专员类型'
,
label
:
'跟进专员类型'
,
prop
:
'followerTypeName'
prop
:
'followerTypeName'
,
minWidth
:
150
},
},
{
{
label
:
'手机号'
,
label
:
'手机号'
,
prop
:
'staffPhone'
prop
:
'staffPhone'
,
minWidth
:
150
},
},
{
{
label
:
'首次开通时间'
,
label
:
'首次开通时间'
,
prop
:
'followerCreatedTime'
prop
:
'followerCreatedTime'
,
minWidth
:
150
},
},
{
{
label
:
'是否有外部联系人权限'
,
label
:
'是否有外部联系人权限'
,
prop
:
'isAddOutsider'
,
prop
:
'isAddOutsider'
,
width
:
'200'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
{
return
{
0
:
'是'
,
0
:
'是'
,
...
@@ -123,6 +114,24 @@ export default {
...
@@ -123,6 +114,24 @@ export default {
}
}
]
]
},
},
buttonList
:
[
{
type
:
'el-button'
,
name
:
row
=>
{
return
'删除'
},
attrs
:
{
type
:
'text'
,
fn
:
'删除'
},
condition
:
row
=>
{
return
true
},
listeners
:
{
click
:
this
.
handleDele
}
}
],
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
tableData
:
[],
tableData
:
[],
tableTotal
:
0
tableTotal
:
0
...
...
src/views/role/index.vue
View file @
aae287a
<
template
>
<
template
>
<div
class=
"role-home-page"
>
<div
class=
"role-home-page"
>
<div
class=
"top_widget"
>
<div
class=
"top_widget"
>
<
GLButton
size=
"small"
fn=
"创建角色"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"toCreatePage"
>
创建角色
</GLButton
>
<
!--
<GLButton
size=
"small"
fn=
"创建角色"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"toCreatePage"
>
创建角色
</GLButton>
--
>
<
!--
<el-button
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"toCreatePage"
>
创建角色
</el-button>
--
>
<
el-button
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"toCreatePage"
>
创建角色
</el-button
>
</div>
</div>
<div
class=
"table_widget"
>
<div
class=
"table_widget"
>
<div>
<div>
<!--
<div
class=
"left_wrap"
>
-->
<!--
<div
v-if=
"accountLevel != 4"
class=
"top_select"
>
<span
class=
"select_label"
>
商户名称
</span>
<el-select
size=
"small"
clearable
filterable
v-model=
"searchForm.merchantId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in merchantList"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.id"
></el-option>
</el-select>
</div>
<div
class=
"top_select"
>
<span
class=
"select_label"
>
状态
</span>
<el-select
size=
"small"
v-model=
"searchForm.delFlag"
placeholder=
"请选择"
>
<el-option
v-for=
"item in optionData"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"top_select"
>
<span
class=
"select_label"
>
角色名称
</span>
<el-input
style=
"width: 76%"
size=
"small"
v-model=
"searchForm.roleName"
clearable
placeholder=
"请输入"
></el-input>
</div>
</div>
<div
class=
"btn_wrapper"
>
<el-button
size=
"small"
@
click=
"reSetFindData"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"toFindData"
>
查询
</el-button>
</div>
-->
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
:inline=
"true"
@
handleOk=
"toFindData"
@
handleRest=
"reSetFindData"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
:inline=
"true"
@
handleOk=
"toFindData"
@
handleRest=
"reSetFindData"
></GLCombiForm>
</div>
</div>
<GLTable
v-if=
"distoryTable"
ref=
"table"
:
layout=
"layout"
:
tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"getTableData"
>
<GLTable
v-if=
"distoryTable"
ref=
"table"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"getTableData"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
type=
"text"
@
click=
"toLookPage(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<GLButton
v-if=
"!scope.scope.defalutRole"
fn=
"修改"
type=
"text"
@
click=
"toEditPage(scope.scope)"
>
修改
</GLButton>
<!--
<GLButton
type=
"text"
@
click=
"toLookPage(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<GLButton
v-if=
"!scope.scope.defalutRole"
fn=
"修改"
type=
"text"
@
click=
"toEditPage(scope.scope)"
>
修改
</GLButton>
-->
<!--
<el-button
type=
"text"
@
click=
"toLookPage(scope.scope)"
>
查看
</el-button>
<!--
<el-button
type=
"text"
@
click=
"toLookPage(scope.scope)"
>
查看
</el-button>
<el-button
v-if=
"scope.scope.roleName
!='超级管理员'"
type=
"text"
@
click=
"toEditPage(scope.scope)"
>
修改
</el-button>
--
>
<el-button
v-if=
"scope.scope.roleName
!= '超级管理员'"
type=
"text"
@
click=
"toEditPage(scope.scope)"
>
修改
</el-button
>
<el-button
v-if=
"scope.scope.delFlag"
type=
"text"
@
click=
"todelete(scope.scope)"
>
删除
</el-button>
<el-button
v-if=
"scope.scope.delFlag"
type=
"text"
@
click=
"todelete(scope.scope)"
>
删除
</el-button>
-->
</
template
>
</
template
>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -95,49 +74,38 @@ export default {
...
@@ -95,49 +74,38 @@ export default {
type
:
'input'
type
:
'input'
}
}
],
],
// optionData: [
// {
// value: 2,
// label: '全部'
// },
// {
// value: 1,
// label: '草稿'
// },
// {
// value: 0,
// label: '启用'
// }
// ],
//表格配置
//表格配置
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableParams
:
{
tableParams
:
{
tableOption
:
true
,
tableOption
:
{
width
:
'150'
},
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'角色名称'
,
label
:
'角色名称'
,
prop
:
'roleName'
prop
:
'roleName'
,
minWidth
:
'200'
},
},
{
{
label
:
'角色号'
,
label
:
'角色号'
,
prop
:
'roleCode'
prop
:
'roleCode'
,
minWidth
:
'200'
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'statusName'
,
prop
:
'statusName'
width
:
'100px'
},
},
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createdTime'
,
prop
:
'createdTime'
,
width
:
'1
60px
'
width
:
'1
80
'
},
},
{
{
label
:
'更新时间'
,
label
:
'更新时间'
,
prop
:
'updatedTime'
,
prop
:
'updatedTime'
,
width
:
'1
60px
'
,
width
:
'1
80
'
,
formatter
:
val
=>
{
formatter
:
val
=>
{
if
(
!
val
.
updatedTime
)
{
if
(
!
val
.
updatedTime
)
{
return
'--'
return
'--'
...
@@ -148,6 +116,55 @@ export default {
...
@@ -148,6 +116,55 @@ export default {
}
}
]
]
},
},
buttonList
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'查看'
},
attrs
:
{
type
:
'text'
,
fn
:
'查看'
},
condition
:
row
=>
{
return
true
},
listeners
:
{
click
:
this
.
toLookPage
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'修改'
},
condition
:
row
=>
{
return
!
row
.
defalutRole
},
attrs
:
{
type
:
'text'
,
fn
:
'修改'
},
listeners
:
{
click
:
this
.
toEditPage
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'删除'
},
condition
:
row
=>
{
return
row
.
delFlag
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
this
.
todelete
}
}
],
tableData
:
[],
tableData
:
[],
merchantList
:
[],
merchantList
:
[],
tableTotal
:
0
,
tableTotal
:
0
,
...
@@ -272,7 +289,7 @@ export default {
...
@@ -272,7 +289,7 @@ export default {
let
accountLevel
=
session
.
accountLevel
let
accountLevel
=
session
.
accountLevel
console
.
log
(
accountLevel
)
console
.
log
(
accountLevel
)
if
(
accountLevel
!=
4
)
{
if
(
accountLevel
!=
4
)
{
this
.
tableParams
.
tableColumns
.
splice
(
2
,
0
,
{
label
:
'所属商户名'
,
prop
:
'merchantName'
})
this
.
tableParams
.
tableColumns
.
splice
(
2
,
0
,
{
label
:
'所属商户名'
,
prop
:
'merchantName'
,
width
:
'300'
,
line
:
1
})
this
.
getMerchantName
()
this
.
getMerchantName
()
let
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
'merchantId'
)
let
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
'merchantId'
)
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
searchFormData
[
idx
].
isHide
=
false
...
...
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