| | |
| | | <head> |
| | | <meta charset="UTF-8" /> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| | | <title>WCS AI 诊断</title> |
| | | <title>WCS AI 助手</title> |
| | | <link rel="stylesheet" href="../../static/vue/element/element.css" /> |
| | | <style> |
| | | body { background: #f5f7fa; } |
| | |
| | | <body> |
| | | <div id="app" class="container"> |
| | | <el-card shadow="hover"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>WCS AI 诊断</span> |
| | | <div slot="header" class="clearfix" style="display: flex; align-items: center;"> |
| | | <div v-html="headerIcon" style="margin-right: 10px; display: flex;"></div> |
| | | <span>WCS AI 助手</span> |
| | | </div> |
| | | |
| | | <div class="actions"> |
| | | <el-button type="primary" :loading="loading" :disabled="streaming" @click="start">开始诊断</el-button> |
| | | <el-button type="primary" :loading="loading" :disabled="streaming" @click="start">一键诊断系统</el-button> |
| | | <el-button type="warning" :disabled="!streaming" @click="stop">停止</el-button> |
| | | <el-button @click="clear">清空</el-button> |
| | | <span class="status">{{ statusText }}</span> |
| | |
| | | el: '#app', |
| | | data: function() { |
| | | return { |
| | | headerIcon: getAiIconHtml(50, 50), |
| | | loading: false, |
| | | streaming: false, |
| | | source: null, |