| | |
| | | highlight-current-row |
| | | > |
| | | <el-table-column prop="title" label="标题" width="300" fixed="left" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column prop="prompt" label="提示词" width="300" show-overflow-tooltip> </el-table-column> |
| | | |
| | | <el-table-column label="创建人" prop="creator" width="100" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="创建时间" prop="create_time" width="105" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="更新时间" prop="update_time" width="105" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="发布状态" prop="published" width="85" show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | <el-tag :type="scope.row.published === SupervisorPublished.Y ? 'primary' : 'info'">{{ |
| | |
| | | }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="prompt" label="提示词" width="300" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column prop="question" label="问题" width="300" show-overflow-tooltip> </el-table-column> |
| | | |
| | | <el-table-column label="创建人" prop="creator" width="100" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="创建时间" prop="create_time" width="105" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="更新时间" prop="update_time" width="105" show-overflow-tooltip> </el-table-column> |
| | | |
| | | <el-table-column label="备注" prop="note" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="操作" width="200" fixed="right" show-overflow-tooltip> |
| | |
| | | nextTick(() => { |
| | | chatRef.value.clear(); |
| | | setTimeout(() => { |
| | | chatRef.value.autoSend(row.prompt); |
| | | chatRef.value.autoSend(row.question); |
| | | }, 30); |
| | | }); |
| | | }; |