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 a1322830
authored
Mar 30, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
c25fab77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
41 deletions
src/views/clientManage/index.vue
src/views/clientManage/index.vue
View file @
a132283
...
...
@@ -4,34 +4,13 @@
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<!-- :style="
{ 'min-height': heightBox + 'px' }" -->
<div
class=
"pageContent"
>
<div
class=
"gpt_box"
>
<div
class=
"left"
>
<GLCombiForm
ref=
"combiForm"
:formObj=
"searchForm"
:formData=
"clientManageFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
</div>
<div
class=
"right"
>
<el-form
ref=
"orderform"
:model=
"orderform"
class=
"order-form"
>
<div
class=
"order"
>
<el-form-item
label=
"输入内容"
>
<el-input
type=
"textarea"
v-model=
"orderform.order"
rows=
"3"
:clearable=
"true"
:placeholder=
"`例如:$
{placeholder}`">
</el-input>
</el-form-item>
<el-form-item>
<el-button
size=
"small"
@
click=
"handleResetOrder"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleOrder"
:disabled=
"disabled"
>
{{
disabled
?
'解析中...'
:
'确定'
}}
</el-button>
</el-form-item>
</div>
<div
class=
"result"
>
<el-form-item
label=
"解析结果"
>
<el-input
type=
"textarea"
v-model=
"orderform.result"
rows=
"3"
></el-input>
</el-form-item>
</div>
</el-form>
</div>
</div>
<GLCombiForm
ref=
"combiForm"
:formObj=
"searchForm"
:formData=
"clientManageFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<div
class=
"leadList"
>
<div>
<span></span>
</div>
<GLButton
size=
"small"
@
click=
"handleExport"
fn=
"导出"
>
导出
</GLButton>
<!--
<GLButton
size=
"small"
@
click=
"handleExport"
fn=
"导出"
>
导出
</GLButton>
-->
<el-button
@
click=
"handleDrawer"
>
gpt
</el-button>
</div>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:noDataImg=
"url"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<span
slot=
"customerName"
slot-scope=
"scope"
>
...
...
@@ -91,6 +70,24 @@
</div>
</GLTable>
</div>
<el-drawer
title=
""
:visible
.
sync=
"drawer"
:with-header=
"false"
>
<el-form
ref=
"orderform"
:model=
"orderform"
class=
"order-form"
>
<div
class=
"order"
>
<el-form-item
label=
"输入内容"
>
<el-input
type=
"textarea"
v-model=
"orderform.order"
rows=
"3"
:clearable=
"true"
:placeholder=
"`例如:$
{placeholder}`">
</el-input>
</el-form-item>
<el-form-item>
<el-button
size=
"small"
@
click=
"handleResetOrder"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleOrder"
:disabled=
"disabled"
>
{{
disabled
?
'解析中...'
:
'确定'
}}
</el-button>
</el-form-item>
</div>
<div
class=
"result"
>
<el-form-item
label=
"解析结果"
>
<el-input
type=
"textarea"
v-model=
"orderform.result"
rows=
"3"
></el-input>
</el-form-item>
</div>
</el-form>
</el-drawer>
</div>
</div>
</
template
>
...
...
@@ -362,9 +359,10 @@ export default {
queryFlag
:
0
,
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
flushTime
:
false
,
orderform
:
{},
disabled
:
false
,
placeholder
:
'帮我创建一个人群名为BBA群,描述为名车车主群。有保养记录没有试驾记录,近两年购车的奥迪奔驰和宝马的男性车主。'
,
orderform
:
{
order
:
''
,
result
:
''
},
disabled
:
false
,
placeholder
:
'帮我针对车牌号为粤B开头的车主发一条5.1节日关怀'
,
drawer
:
false
}
},
created
()
{
...
...
@@ -565,6 +563,9 @@ export default {
return
curElement
.
label
},
handleDrawer
()
{
this
.
drawer
=
true
},
//导出
handleExport
()
{
let
params
=
this
.
getParams
()
...
...
@@ -635,14 +636,12 @@ export default {
const
order
=
this
.
orderform
.
order
// const content = '帮我查询从2023-3-29日至2023-04-05日期间西安飞广州或者深圳的机票,从上面一句话中提取出发日期,命名为date,出发地,命名为start,目的地,命名为end,输出json格式。'
const
content
=
`
${
order
}
,忽略之前的上下文,今年是2023年,针对上面这段文字,
提取出联系电话,命名为
p
hone;
提取出车牌号,命名为ca
s
;
提取出联系电话,命名为
customerP
hone;
提取出车牌号,命名为ca
rNumber,不用补全
;
提取出客户名称,命名为customerName;
提取车架号,命名为vin;
提取性别,命名为sex,取值范围:0,1,男代表0,女代表1;
提取是否有保养记录,命名为maintain,取值范围为:"'有记录','无记录'",用数组输出;
提取出年龄,命名为age,取值范围为:"'30岁以下','31-40岁','41-55岁'",用数组输出;
提取出试驾记录,命名为drive,取值范围为:"'有','无'"用数组输出;
提取出车架号,命名为carVin;
提取出性别,命名为customerSex,取值范围:"'0','1','2'",'0'表示未知,'1'表示男,'2'表示女;
提取出是否已加企微,命名为isJoin,取值范围为:"'','1','0'",''表示全部,'1'表示是,'0'表示否;
所有提取字段取值精确匹配。
所有提取的字段未精确匹配到的不提取和输出。
输出json格式`
...
...
@@ -664,15 +663,11 @@ export default {
}
//searchForm
this
.
searchForm
=
{...
data
};
this
.
searchForm
=
{
...
data
}
// 设置 searchForm
this
.
searchTable
()
// list
this
.
disabled
=
false
// list
}
else
{
this
.
disabled
=
false
this
.
$message
.
error
(
message
)
...
...
@@ -694,6 +689,13 @@ export default {
//
/
deep
/
.el-table
.el-table__header
tr
th
{
//
line-height
:
30px
;
//
}
/
deep
/
.el-drawer
{
&__body
{
.order-form
{
padding
:
0
30px
;
}
}
}
.expandImg
{
display
:
flex
;
//
justify-content
:
center
;
...
...
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