|
@@ -4,7 +4,7 @@
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"
|
|
|
class="search-form_container">
|
|
|
<el-form-item label="问题内容" prop="question">
|
|
|
- <el-input v-model="queryParams.question" placeholder="请输入问题内容" clearable @keyup.enter.native="handleQuery" />
|
|
|
+ <el-input v-model.trim="queryParams.question" placeholder="请输入问题内容" clearable @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item label="类型" prop="unknown">
|
|
|
<el-input v-model="queryParams.module" placeholder="请输入隶属哪个模块" clearable @keyup.enter.native="handleQuery" />
|
|
@@ -59,7 +59,7 @@
|
|
|
</el-card>
|
|
|
|
|
|
<el-dialog title="日报记录" v-model="recordVisible" width="900px" append-to-body class="chat-dialog_container" @opened="opened">
|
|
|
- <el-scrollbar height="600px">
|
|
|
+ <el-scrollbar height="600px" ref="scrollRef">
|
|
|
<div class="conversation-item" v-show="chatDataSource.length">
|
|
|
<div v-for="item in chatDataSource" :key="item.sessionId">
|
|
|
<ChatAsk :content="item.showVal" :sessionId="item.sessionId"></ChatAsk>
|
|
@@ -151,7 +151,8 @@ export default {
|
|
|
recordVisible: false,
|
|
|
chatDataSource: [],
|
|
|
echartData: [],
|
|
|
- whichWay: null
|
|
|
+ whichWay: null,
|
|
|
+ scrollRef: null
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -160,6 +161,7 @@ export default {
|
|
|
methods: {
|
|
|
|
|
|
opened() {
|
|
|
+ this.$refs['scrollRef'].scrollTo(0, 0);
|
|
|
this.echartData.length && this.createEchart(this.echartData, this.whichWay);
|
|
|
},
|
|
|
|