Commit 6943e963 by 前端

优化页面

1 parent 21c5ed70
......@@ -4,8 +4,7 @@
<!-- <p class="pageTitle">客户管理</p> -->
<!-- :style="{ 'min-height': heightBox + 'px' }" -->
<div class="pageContent">
<GLCombiForm ref="combiForm" :formObj="searchForm" :formData="clientManageFormList" @handleOk="searchTable"
@handleRest="resetTable"></GLCombiForm>
<GLCombiForm ref="combiForm" :formObj="searchForm" :formData="clientManageFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<div class="leadList">
<div>
<span></span>
......@@ -13,17 +12,13 @@
<!-- <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">
<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">
<GLFull :labelWidth="70" :identification="`node_${scope.scope.id}`">{{ scope.scope.customerName ?
scope.scope.customerName : '--' }}</GLFull>
<GLFull :labelWidth="70" :identification="`node_${scope.scope.id}`">{{ scope.scope.customerName ? scope.scope.customerName : '--' }}</GLFull>
</span>
<!-- <span slot="customerSex" slot-scope="scope" >-->
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex ==
2 ? '女' : '' }}</span>
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
</span>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
......@@ -31,18 +26,13 @@
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0">
<span>{{ list.nickName }}</span>
<span class="smallFontSize"
:class="[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{
list.corpName }}</span>
<span class="smallFontSize" :class="[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ list.corpName }}</span>
</div>
<span v-if="idx == 1">
<el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div v-for="(i, index) in scope.scope.nickNameList" :key="index" style="padding-bottom: 3px !important">
<span>{{ i.nickName }}</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>
<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>
<img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" />
</el-popover>
......@@ -54,8 +44,7 @@
</span>
<span slot="addWay" slot-scope="scope">
<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>
<span style="display: inline-block; max-width: 120px; text-align: left">{{ toLabel(scope.scope.addWay) }}</span>
</el-tooltip>
</span>
<!-- subscribe -->
......@@ -71,8 +60,7 @@
</span>
<span slot="status" slot-scope="scope">
<span class="statusText">
<span
:class="{ circleStatusGray: scope.scope.status === -1, circleStatusGreen: scope.scope.status == 0 }"></span>
<span :class="{ circleStatusGray: scope.scope.status === -1, circleStatusGreen: scope.scope.status == 0 }"></span>
<span>{{ statusText(scope.scope.status) }}</span>
</span>
</span>
......@@ -86,13 +74,11 @@
<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-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-button type="primary" size="small" @click="handleOrder" :disabled="disabled">{{ disabled ? '解析中...' : '确定' }}</el-button>
</el-form-item>
</div>
<div class="result">
......@@ -361,16 +347,18 @@ export default {
line: 1
},
{
label: '营销文案',
prop: 'test'
},
{
label: '购车时间',
prop: 'buyDate',
width: 250,
line: 1
},
{
label: '营销文案',
prop: 'test',
width: '400px',
fixed: 'right'
},
{
label: '操作',
prop: 'optionBtns',
width: '66px',
......@@ -730,7 +718,7 @@ export default {
})
for (let index = 0; index < list.length; 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')
this.$apis.crowdManage.gpt(content).then(result => {
// console.log(result)
......@@ -753,7 +741,7 @@ export default {
// })
}
},
mounted() { }
mounted() {}
}
</script>
......@@ -837,7 +825,7 @@ export default {
padding: 20px 20px 30px;
background-color: #fff;
.el-button+.el-button {
.el-button + .el-button {
margin-left: 10px;
}
......@@ -846,7 +834,6 @@ export default {
}
.glsx-table {
// /deep/ .el-table__fixed {
// height: 100% !important; //设置高优先,以覆盖内联样式
// }
......@@ -889,4 +876,5 @@ export default {
width: 400px;
margin-left: 40px;
}
}</style>
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!