Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
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 5a40bca5
authored
Sep 05, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除体验申请代理申请页面,新建单选跟进专员组件
1 parent
fa2059ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
195 additions
and
24 deletions
src/components/selectEmpRadio/index.vue
src/views/businessCard/addCode.vue
src/views/businessCard/index.vue
src/components/selectEmpRadio/index.vue
0 → 100644
View file @
5a40bca
<
template
>
<div
class=
"square-main"
v-loading=
"loading"
>
<GLDialog
title=
"选择跟进专员"
:hasFooter=
"true"
:visible
.
sync=
"dialogVisible"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
>
<el-form-item
size=
"small"
label=
"员工:"
>
<el-input
v-model=
"tableSearchForm.staffName"
placeholder=
"请输入员工姓名"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
class=
"emp-form-btn"
>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form>
<GLTable
@
selection-change=
"handleSelectionChange"
v-if=
"dialogVisible"
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
></GLTable>
<span
slot=
"footer"
class=
"dialog-footer"
>
<a
class=
"dialog-jump"
@
click=
"jumpUrl"
>
新增专员
</a>
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click
.
native=
"handleSelect"
>
确 定
</el-button>
</span>
</GLDialog>
</div>
</
template
>
<
script
>
import
{
utils
}
from
'glsx-common'
import
util
from
'@/utils/util'
export
default
{
name
:
'selectEmp'
,
data
()
{
return
{
rareFollowStaff
:
false
,
loading
:
false
,
dialogVisible
:
false
,
tableSearchForm
:
{},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableParams
:
{
listName
:
'data'
,
tableOption
:
false
,
// 行数据的key
mutiSelectUniqueKey
:
'id'
,
// 多选ref的名称
mutiSelectName
:
'salelist'
,
tableColumns
:
[
{
label
:
'姓名'
,
prop
:
'staffName'
},
{
label
:
'部门'
,
prop
:
'departmentName'
},
{
label
:
'跟进专员类型'
,
prop
:
'followerTypeName'
}
]
},
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
tableData
:
[],
tableTotal
:
0
,
selectItem
:
[],
selectEmp
:
[]
}
},
methods
:
{
jumpUrl
()
{
util
.
openUrl
(
location
.
origin
+
'/settings/followUp/index'
)
},
handleSelectionChange
(
val
)
{
if
(
val
.
length
>
1
)
{
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
clearSelection
()
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
val
.
pop
())
}
else
{
this
.
selectItem
=
val
}
},
getFollower
()
{
var
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
)),
pageSize
:
this
.
$refs
.
table
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
table
.
page
.
pageNum
}
this
.
$apis
.
channel
.
getFollower
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
this
.
tableTotal
=
res
.
count
this
.
tableData
.
forEach
(
item
=>
{
this
.
selectEmp
.
forEach
((
itm
,
index
)
=>
{
if
(
itm
.
staffId
==
item
.
relationId
)
{
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
item
)
this
.
selectEmp
.
splice
(
index
,
1
)
}
})
})
})
},
init
(
item
)
{
this
.
tableSearchForm
=
{}
this
.
selectEmp
=
JSON
.
parse
(
JSON
.
stringify
(
item
))
this
.
dialogVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
table
.
page
.
pageNum
=
1
this
.
getFollower
()
})
},
handleSearch
()
{
this
.
getFollower
()
},
selectionTable
(
val
)
{
this
.
selectItem
=
val
},
handleClose
()
{
this
.
handleCancel
()
},
handleCancel
:
utils
.
debounce
(
function
()
{
this
.
dialogVisible
=
false
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
clearSelection
()
},
300
),
handleSelect
:
utils
.
debounce
(
function
()
{
this
.
loading
=
true
let
selectEmp
=
this
.
selectEmp
.
map
(
item
=>
{
return
{
relationId
:
item
.
staffId
,
staffName
:
item
.
staffName
}
})
const
selectItem
=
this
.
selectItem
.
concat
(
selectEmp
)
if
(
selectItem
.
length
==
0
)
{
this
.
$message
.
error
(
'请选择员工'
)
return
}
this
.
loading
=
false
this
.
dialogVisible
=
false
this
.
$emit
(
'selectTable'
,
this
.
selectItem
.
concat
(
selectEmp
))
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
clearSelection
()
},
300
)
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-table
>
.el-table__header-wrapper
>
.el-table__header
>
thead
>
tr
>
th
:nth-child
(
2
)
>
div
{
display
:
none
!important
;
}
.rareFollowStaff
{
position
:
absolute
;
right
:
24px
;
bottom
:
90px
;
}
.emp-form-btn
{
margin-left
:
20px
;
}
.dialog-jump
{
color
:
#5850ff
;
float
:
left
;
line-height
:
24px
;
text-decoration
:
underline
;
cursor
:
pointer
;
}
.square-main
{
/deep/
{
.el-table
{
height
:
40vh
;
overflow-y
:
auto
;
}
.el-table
::before
{
left
:
0
;
bottom
:
0
;
width
:
100%
;
height
:
0px
;
}
}
}
</
style
>
src/views/businessCard/addCode.vue
View file @
5a40bca
...
...
@@ -4,12 +4,12 @@
<div
class=
"chanel-form-title"
>
基本信息
</div>
<div
class=
"chanel-form-box gl-form-page"
>
<el-form
ref=
"codeForm"
:model=
"addCodeForm"
class=
"code-body-form"
label-width=
"154px"
:rules=
"codeRules"
>
<el-form-item
label=
"角色类型:"
prop=
"codeName"
>
<el-radio-group
v-model=
"addCodeForm.type"
>
<el-radio
:label=
"1"
>
内部人员
</el-radio
>
<el-radio
:label=
"2"
>
代理商
</el-radio
>
</el-radio-group
>
</el-form-item
>
<!--
<el-form-item
label=
"角色类型:"
prop=
"codeName"
>
--
>
<!--
<el-radio-group
v-model=
"addCodeForm.type"
>
--
>
<!--
<el-radio
:label=
"1"
>
内部人员
</el-radio>
--
>
<!--
<el-radio
:label=
"2"
>
代理商
</el-radio>
--
>
<!--
</el-radio-group>
--
>
<!--
</el-form-item>
--
>
<el-form-item
label=
"渠道名称:"
prop=
"codeName"
>
<el-input
size=
"small"
v-model
.
trim=
"addCodeForm.codeName"
placeholder=
"请输入渠道名称"
maxlength=
"30"
></el-input>
</el-form-item>
...
...
@@ -113,21 +113,20 @@
<el-button
@
click=
"goback"
>
取消
</el-button>
</GLFooter>
<GLDialog
title=
"提示"
@
onOk=
"handleSure"
@
onCancel=
"dialogVisible = false"
type=
"warning"
content=
"当前有内容信息未保存,是否继续返回?"
:visible
.
sync=
"dialogVisible"
mode=
"small"
></GLDialog>
<select-emp
@
selectTable=
"selectTable"
ref=
"selectEmpForm"
></select-emp
>
<select-emp
-radio
@
selectTable=
"selectTable"
ref=
"selectEmpForm"
></select-emp-radio
>
<select-tag
ref=
"selectTagForm"
@
tagSelected=
"tagSelected"
></select-tag>
</div>
</template>
<
script
>
import
{
utils
}
from
'glsx-common'
import
selectEmp
from
'@/components/selectEmp
'
import
selectEmp
Radio
from
'@/components/selectEmpRadio
'
import
selectTag
from
'@/components/selectTag'
import
word
from
'@/mixins/word'
import
upload
from
'@/mixins/upload'
export
default
{
mixins
:
[
word
,
upload
],
name
:
'addCode'
,
components
:
{
selectEmp
,
selectTag
},
components
:
{
selectEmp
Radio
,
selectTag
},
data
()
{
return
{
dialogVisible
:
false
,
...
...
src/views/businessCard/index.vue
View file @
5a40bca
...
...
@@ -14,15 +14,15 @@ const tabPaneList = [
{
label
:
'访问记录'
,
name
:
'2'
},
{
label
:
'体验申请'
,
name
:
'3'
},
{
label
:
'代理申请'
,
name
:
'4'
}
// {
// label: '体验申请',
// name: '3'
// },
// {
// label: '代理申请',
// name: '4'
// }
]
import
'./components'
export
default
{
...
...
@@ -43,12 +43,12 @@ export default {
case
'2'
:
sname
=
'recordList'
break
case
'3'
:
sname
=
'accountList'
break
case
'4'
:
sname
=
'proxyList'
break
//
case '3':
//
sname = 'accountList'
//
break
//
case '4':
//
sname = 'proxyList'
//
break
}
return
sname
}
...
...
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