| | |
| | | <template> |
| | | <div> |
| | | <a-card> |
| | | {{answer}} |
| | | </a-card> |
| | | <a-input-search placeholder="input search text" enter-button @search="onSearch"/> |
| | | <div class="page-container"> |
| | | <div class="page-container-top"> |
| | | <div v-for="(item,index) in gifList" :key="index" class="single-gif-container"> |
| | | <img :src="item.gifUrl"> |
| | | <div>{{item.gifContent}}</div> |
| | | </div> |
| | | </div> |
| | | <div class="container-split-line"></div> |
| | | <div class="page-container-bottom"> |
| | | <img src="@/assets/page/index/eng-label.png"> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getDataAfterSearchByApi } from '@/api/AI' |
| | | |
| | | export default { |
| | | name: 'Analysis', |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | answer: '' |
| | | gifList: [ |
| | | { |
| | | gifUrl: require('@/assets/page/index/gif1.gif'), |
| | | gifContent: '机床在现代工业生产中扮演着至关重要的角色。它们是制造业的核心设备,为金属、塑料、木材等材料的加工提供了坚实的基础。无论是汽车、飞机、家用电器还是建筑材料,几乎所有的制成品都需要经过机床的加工和制造。可以说,现代社会的方方面面都离不开机床的贡献。' |
| | | }, |
| | | { |
| | | gifUrl: require('@/assets/page/index/gif2.gif'), |
| | | gifContent: '由于机床设备的复杂性和长期运行,维护和保养工作显得尤为重要。定期的保养和维修可以确保机床的高效稳定运行,延长使用寿命,避免昂贵的设备故障和生产线停工。同时,及时解决机床故障也是维护生产效率的关键所在。' |
| | | }, |
| | | { |
| | | gifUrl: require('@/assets/page/index/gif3.gif'), |
| | | gifContent: '传统的机床维修模式存在一些痛点,例如依赖有限的维修人员经验、查阅笨重的维修手册、难以覆盖所有故障情况等。而利用自然语言大模型结合电子说明书的方式,可以为机床维修带来全新的解决方案和优势。' |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | methods: { |
| | | onSearch() { |
| | | const param = { |
| | | 'id': '683a65fd-8feb-4446-ad32-714c4785f667', |
| | | 'messages': [ |
| | | { |
| | | 'role': 'user', |
| | | 'content': '给我讲个故事?' |
| | | } |
| | | ], |
| | | 'stream': false, |
| | | 'max_tokens': 500 |
| | | } |
| | | getDataAfterSearchByApi() |
| | | .then(res => { |
| | | console.log('res', res) |
| | | this.answer = res.result |
| | | }) |
| | | methods: {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | .page-container { |
| | | color: #fff; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | .page-container-top { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 100px 250px 0; |
| | | |
| | | .single-gif-container { |
| | | width: 400px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | font-size: 20px; |
| | | text-align: justify; |
| | | text-align-last: left; |
| | | |
| | | img { |
| | | width: 100%; |
| | | margin-bottom: 20px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .container-split-line { |
| | | height: 1px; |
| | | background: #fff; |
| | | width: 80%; |
| | | align-self: flex-end; |
| | | -webkit-justify-content: flex-end; |
| | | margin-top: 50px; |
| | | } |
| | | |
| | | .page-container-bottom { |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | -webkit-justify-content: flex-end; |
| | | padding: 0 300px; |
| | | |
| | | img { |
| | | height: 280px; |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | </style> |