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 6943e963
authored
Apr 03, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化页面
1 parent
21c5ed70
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
33 deletions
src/views/clientManage/index.vue
src/views/clientManage/index.vue
View file @
6943e96
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<!-- :style="
{ 'min-height': heightBox + 'px' }" -->
<!-- :style="
{ 'min-height': heightBox + 'px' }" -->
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
<GLCombiForm
ref=
"combiForm"
:formObj=
"searchForm"
:formData=
"clientManageFormList"
@
handleOk=
"searchTable"
<GLCombiForm
ref=
"combiForm"
:formObj=
"searchForm"
:formData=
"clientManageFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
@
handleRest=
"resetTable"
></GLCombiForm>
<div
class=
"leadList"
>
<div
class=
"leadList"
>
<div>
<div>
<span></span>
<span></span>
...
@@ -13,17 +12,13 @@
...
@@ -13,17 +12,13 @@
<!--
<GLButton
size=
"small"
@
click=
"handleExport"
fn=
"导出"
>
导出
</GLButton>
-->
<!--
<GLButton
size=
"small"
@
click=
"handleExport"
fn=
"导出"
>
导出
</GLButton>
-->
<el-button
@
click=
"handleDrawer"
>
gpt
</el-button>
<el-button
@
click=
"handleDrawer"
>
gpt
</el-button>
</div>
</div>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientManage"
:hasNum=
"true"
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:noDataImg=
"url"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:noDataImg=
"url"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<span
slot=
"customerName"
slot-scope=
"scope"
>
<span
slot=
"customerName"
slot-scope=
"scope"
>
<GLFull
:labelWidth=
"70"
:identification=
"`node_$
{scope.scope.id}`">
{{
scope
.
scope
.
customerName
?
<GLFull
:labelWidth=
"70"
:identification=
"`node_$
{scope.scope.id}`">
{{
scope
.
scope
.
customerName
?
scope
.
scope
.
customerName
:
'--'
}}
</GLFull>
scope
.
scope
.
customerName
:
'--'
}}
</GLFull>
</span>
</span>
<!--
<span
slot=
"customerSex"
slot-scope=
"scope"
>
-->
<!--
<span
slot=
"customerSex"
slot-scope=
"scope"
>
-->
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</span>
2
?
'女'
:
''
}}
</span>
</span>
</span>
<!-- 企微名称 -->
<!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
...
@@ -31,18 +26,13 @@
...
@@ -31,18 +26,13 @@
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
<div
v-if=
"idx == 0"
>
<div
v-if=
"idx == 0"
>
<span>
{{
list
.
nickName
}}
</span>
<span>
{{
list
.
nickName
}}
</span>
<span
class=
"smallFontSize"
<span
class=
"smallFontSize"
:class=
"[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
list
.
corpName
}}
</span>
:class=
"[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
list
.
corpName
}}
</span>
</div>
</div>
<span
v-if=
"idx == 1"
>
<span
v-if=
"idx == 1"
>
<el-popover
placement=
"right-start"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<el-popover
placement=
"right-start"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<div
v-for=
"(i, index) in scope.scope.nickNameList"
:key=
"index"
style=
"padding-bottom: 3px !important"
>
<div
v-for=
"(i, index) in scope.scope.nickNameList"
:key=
"index"
style=
"padding-bottom: 3px !important"
>
<span>
{{
i
.
nickName
}}
</span>
<span>
{{
i
.
nickName
}}
</span>
<span
<span
style=
"height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400; margin-left: 2px"
:class=
"[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
i
.
corpName
}}
</span>
style=
"height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400; margin-left: 2px"
:class=
"[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
i
.
corpName
}}
</span>
</div>
</div>
<img
class=
"imgEll"
src=
"@/assets/tagsManage/ellipsis.png"
alt=
""
slot=
"reference"
/>
<img
class=
"imgEll"
src=
"@/assets/tagsManage/ellipsis.png"
alt=
""
slot=
"reference"
/>
</el-popover>
</el-popover>
...
@@ -54,8 +44,7 @@
...
@@ -54,8 +44,7 @@
</span>
</span>
<span
slot=
"addWay"
slot-scope=
"scope"
>
<span
slot=
"addWay"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"toLabel(scope.scope.addWay)"
placement=
"top"
>
<el-tooltip
effect=
"dark"
:content=
"toLabel(scope.scope.addWay)"
placement=
"top"
>
<span
style=
"display: inline-block; max-width: 120px; text-align: left"
>
{{
toLabel
(
scope
.
scope
.
addWay
)
<span
style=
"display: inline-block; max-width: 120px; text-align: left"
>
{{
toLabel
(
scope
.
scope
.
addWay
)
}}
</span>
}}
</span>
</el-tooltip>
</el-tooltip>
</span>
</span>
<!-- subscribe -->
<!-- subscribe -->
...
@@ -71,8 +60,7 @@
...
@@ -71,8 +60,7 @@
</span>
</span>
<span
slot=
"status"
slot-scope=
"scope"
>
<span
slot=
"status"
slot-scope=
"scope"
>
<span
class=
"statusText"
>
<span
class=
"statusText"
>
<span
<span
:class=
"
{ circleStatusGray: scope.scope.status === -1, circleStatusGreen: scope.scope.status == 0 }">
</span>
:class=
"
{ circleStatusGray: scope.scope.status === -1, circleStatusGreen: scope.scope.status == 0 }">
</span>
<span>
{{
statusText
(
scope
.
scope
.
status
)
}}
</span>
<span>
{{
statusText
(
scope
.
scope
.
status
)
}}
</span>
</span>
</span>
</span>
</span>
...
@@ -86,13 +74,11 @@
...
@@ -86,13 +74,11 @@
<el-form
ref=
"orderform"
:model=
"orderform"
class=
"order-form"
>
<el-form
ref=
"orderform"
:model=
"orderform"
class=
"order-form"
>
<div
class=
"order"
>
<div
class=
"order"
>
<el-form-item
label=
"输入内容"
>
<el-form-item
label=
"输入内容"
>
<el-input
type=
"textarea"
v-model=
"orderform.order"
rows=
"3"
:clearable=
"true"
<el-input
type=
"textarea"
v-model=
"orderform.order"
rows=
"3"
:clearable=
"true"
:placeholder=
"`例如:$
{placeholder}`">
</el-input>
:placeholder=
"`例如:$
{placeholder}`">
</el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
size=
"small"
@
click=
"handleResetOrder"
>
重置
</el-button>
<el-button
size=
"small"
@
click=
"handleResetOrder"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleOrder"
:disabled=
"disabled"
>
{{
disabled
?
'解析中...'
:
<el-button
type=
"primary"
size=
"small"
@
click=
"handleOrder"
:disabled=
"disabled"
>
{{
disabled
?
'解析中...'
:
'确定'
}}
</el-button>
'确定'
}}
</el-button>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"result"
>
<div
class=
"result"
>
...
@@ -361,16 +347,18 @@ export default {
...
@@ -361,16 +347,18 @@ export default {
line
:
1
line
:
1
},
},
{
{
label
:
'营销文案'
,
prop
:
'test'
},
{
label
:
'购车时间'
,
label
:
'购车时间'
,
prop
:
'buyDate'
,
prop
:
'buyDate'
,
width
:
250
,
width
:
250
,
line
:
1
line
:
1
},
},
{
{
label
:
'营销文案'
,
prop
:
'test'
,
width
:
'400px'
,
fixed
:
'right'
},
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
'optionBtns'
,
prop
:
'optionBtns'
,
width
:
'66px'
,
width
:
'66px'
,
...
@@ -730,7 +718,7 @@ export default {
...
@@ -730,7 +718,7 @@ export default {
})
})
for
(
let
index
=
0
;
index
<
list
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
list
.
length
;
index
++
)
{
let
k
=
list
[
index
]
let
k
=
list
[
index
]
const
content
=
`忽略之前的上下文,对姓名为
${
k
.
customerName
}
客户,
${
k
.
customerName
}
是一个人,性别为
${{
'1'
:
'男'
,
'2'
:
'女'
}
[k.customerSex] || '先生/女士'},客户手机号为
${
k
.
customerPhone
}
,
${
k
.
customerPhone
}
是客户的电话不是客服电话;生成一条最少100字的4s店新车营销文案,字段命名为content。只需content一个字段即可;输出json格式`
const
content
=
`忽略之前的上下文,对姓名为
${
k
.
customerName
}
客户,
${
k
.
customerName
}
是一个人,性别为
${{
1
:
'男'
,
2
:
'女'
}
[k.customerSex] || '先生/女士'},客户手机号为
${
k
.
customerPhone
}
,
${
k
.
customerPhone
}
是客户的电话不是客服电话;生成一条最少100字的4s店新车营销文案,字段命名为content。只需content一个字段即可;输出json格式`
// console.log(content, 'content')
// console.log(content, 'content')
this
.
$apis
.
crowdManage
.
gpt
(
content
).
then
(
result
=>
{
this
.
$apis
.
crowdManage
.
gpt
(
content
).
then
(
result
=>
{
// console.log(result)
// console.log(result)
...
@@ -753,7 +741,7 @@ export default {
...
@@ -753,7 +741,7 @@ export default {
// })
// })
}
}
},
},
mounted
()
{
}
mounted
()
{}
}
}
</
script
>
</
script
>
...
@@ -837,7 +825,7 @@ export default {
...
@@ -837,7 +825,7 @@ export default {
padding
:
20px
20px
30px
;
padding
:
20px
20px
30px
;
background-color
:
#fff
;
background-color
:
#fff
;
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
10px
;
margin-left
:
10px
;
}
}
...
@@ -846,7 +834,6 @@ export default {
...
@@ -846,7 +834,6 @@ export default {
}
}
.glsx-table
{
.glsx-table
{
//
/deep/
.el-table__fixed
{
//
/deep/
.el-table__fixed
{
//
height
:
100%
!important
;
//设置高优先,以覆盖内联样式
//
height
:
100%
!important
;
//设置高优先,以覆盖内联样式
//
}
//
}
...
@@ -889,4 +876,5 @@ export default {
...
@@ -889,4 +876,5 @@ export default {
width
:
400px
;
width
:
400px
;
margin-left
:
40px
;
margin-left
:
40px
;
}
}
}
</
style
>
}
</
style
>
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