Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 845947dd
authored
May 11, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户类型
1 parent
e00b982a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
22 deletions
src/views/expert/detail.vue
src/views/expert/index.vue
src/views/expert/detail.vue
View file @
845947d
...
@@ -7,9 +7,7 @@
...
@@ -7,9 +7,7 @@
<div
class=
"detail-wrap"
>
<div
class=
"detail-wrap"
>
<el-form
class=
"form"
ref=
"form"
:model=
"basicForm"
label-width=
"128px"
>
<el-form
class=
"form"
ref=
"form"
:model=
"basicForm"
label-width=
"128px"
>
<el-form-item
label=
"客户类型"
>
<el-form-item
label=
"客户类型"
>
<el-select
v-model=
"basicForm.condition"
placeholder=
"请选择客户类型"
>
<span>
{{
clientType
==
1
?
'升级客户'
:
'战败客户'
}}
</span>
<el-option
v-for=
"item in menberType"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"轻改专家"
>
<el-form-item
label=
"轻改专家"
>
<el-button
size=
"small"
icon=
"el-icon-plus"
@
click=
"openMembers"
>
<el-button
size=
"small"
icon=
"el-icon-plus"
@
click=
"openMembers"
>
...
@@ -56,16 +54,7 @@ export default {
...
@@ -56,16 +54,7 @@ export default {
return
{
return
{
size
:
'small'
,
size
:
'small'
,
eventBus
:
new
Vue
(),
eventBus
:
new
Vue
(),
menberType
:
[
clientType
:
1
,
{
value
:
'1'
,
label
:
'升级客户'
},
{
value
:
'2'
,
label
:
'战败客户'
}
],
btnList
:
[
btnList
:
[
{
{
id
:
1
,
id
:
1
,
...
@@ -112,6 +101,12 @@ export default {
...
@@ -112,6 +101,12 @@ export default {
selectPerson
:
null
selectPerson
:
null
}
}
},
},
mounted
()
{
const
urlParam
=
this
.
$route
.
params
console
.
log
(
urlParam
,
79
)
let
param
=
JSON
.
parse
(
urlParam
.
id
)
this
.
clientType
=
param
.
clientType
},
methods
:
{
methods
:
{
addConfig
()
{},
addConfig
()
{},
// 成员弹窗
// 成员弹窗
...
...
src/views/expert/index.vue
View file @
845947d
...
@@ -20,18 +20,18 @@
...
@@ -20,18 +20,18 @@
<el-button
:size=
"size"
class=
"resetBtn"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
class=
"resetBtn"
@
click=
"handleReset"
>
重置
</el-button>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
<GLTable
ref=
"expertTable"
:pageConf=
"batchPageConf"
:searchForm=
"batchListSearch"
:tableParams=
"batchTableParams"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"expertTable"
@
hook:mounted=
"setTabelHeight"
:pageConf=
"batchPageConf"
:searchForm=
"batchListSearch"
:tableParams=
"batchTableParams"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<GLButton
fn=
"编辑"
type=
"text"
@
click=
"addConfig(2)"
>
编辑
</GLButton>
<GLButton
fn=
"编辑"
type=
"text"
@
click=
"addConfig(2)"
>
编辑
</GLButton>
<el-button
type=
"text"
@
click=
"addConfig(3)"
>
{{
scope
.
scope
.
status
==
1
?
'禁用'
:
'启用'
}}
</el-button>
<el-button
type=
"text"
@
click=
"addConfig(3)"
>
{{
scope
.
scope
.
status
==
1
?
'禁用'
:
'启用'
}}
</el-button>
<GLButton
fn=
"编辑"
type=
"text"
@
click=
"addConfig(2)"
>
删除
</GLButton>
<GLButton
fn=
"编辑"
type=
"text"
@
click=
"addConfig(2)"
>
删除
</GLButton>
</div>
</div>
<div
slot=
"additionalContent"
class=
"default-box"
>
<img
class=
"default-img"
:src=
"imagBaseURL + 'serviceser.png'"
alt=
""
/>
<span
class=
"tip"
>
用于「精品升级」客户线上化,配置轻改专家成员,可通过精品升级的质保卡活码拉新。
</span>
<GLButton
:size=
"size"
fn=
"新增配置"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"addConfig(1)"
>
配置门店轻改专家
</GLButton>
</div>
</GLTable>
</GLTable>
<div
class=
"default-box"
>
<img
class=
"default-img"
:src=
"imagBaseURL + 'serviceser.png'"
alt=
""
/>
<span
class=
"tip"
>
用于「精品升级」客户线上化,配置轻改专家成员,可通过精品升级的质保卡活码拉新。
</span>
<GLButton
:size=
"size"
fn=
"新增配置"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"addConfig(1)"
>
配置门店轻改专家
</GLButton>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -159,12 +159,22 @@ export default {
...
@@ -159,12 +159,22 @@ export default {
addConfig
()
{
addConfig
()
{
this
.
showClientType
=
true
this
.
showClientType
=
true
},
},
setTabelHeight
()
{
this
.
$refs
.
expertTable
.
tableHeightValues
=
'455'
},
goDetail
()
{
goDetail
()
{
this
.
$router
.
push
({
path
:
'/expert/detail/5'
})
this
.
$router
.
push
({
path
:
'/expert/detail/5'
})
},
},
selectClientType
(
type
)
{
selectClientType
(
type
,
id
)
{
this
.
showClientType
=
false
this
.
showClientType
=
false
this
.
$router
.
push
({
path
:
'/expert/detail/5'
})
let
paraFormat
=
{
clientType
:
type
}
if
(
id
)
{
paraFormat
.
expertId
=
id
}
const
urlpara
=
JSON
.
stringify
(
paraFormat
)
this
.
$router
.
push
({
path
:
'/expert/detail/'
+
urlpara
})
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
@@ -178,7 +188,7 @@ export default {
...
@@ -178,7 +188,7 @@ export default {
params
.
commitTimeStart
=
util
.
dateFormat
(
this
.
batchListSearch
.
activeTime
[
0
])
+
' 00:00:00'
params
.
commitTimeStart
=
util
.
dateFormat
(
this
.
batchListSearch
.
activeTime
[
0
])
+
' 00:00:00'
params
.
commitTimeEnd
=
util
.
dateFormat
(
this
.
batchListSearch
.
activeTime
[
1
])
+
' 23:59:59'
params
.
commitTimeEnd
=
util
.
dateFormat
(
this
.
batchListSearch
.
activeTime
[
1
])
+
' 23:59:59'
}
}
params
.
searchText
=
''
params
.
searchText
=
'
dasda
'
return
params
return
params
},
},
handleSearch
()
{
handleSearch
()
{
...
...
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