调整左侧的位置

上级 f9e5b40c
......@@ -3,11 +3,12 @@
<el-container>
<el-main>
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="问题">
<el-form-item>
<el-input clearable v-model="formInline.question" placeholder="请输入问题" @keydown.enter.native="initCartList"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="initCartList">查询</el-button>
<!-- <el-button type="primary" circle icon="el-icon-search" @click="initCartList"></el-button> -->
</el-form-item>
<el-form-item>
<el-button type="primary" @click.prevent="addChat">新增</el-button>
......@@ -48,7 +49,7 @@ export default {
loading: false,
elementui_page_component_key: 0,
currentPage: Number(localStorage.getItem('lastPage')) || 1,
pageSize: 10,
pageSize: 9,
total: 0,
formInline: {
question: '',
......
<template>
<el-menu default-active="$route.path" class="layout-aside-container" background-color="#fff" text-color="#000" active-text-color="#42b983">
<router-link to="/home/users">
<el-menu-item index="/users" class="left-aside-item">
<i class="el-icon-user"></i>
<span slot="title">用户管理</span>
</el-menu-item>
</router-link>
<router-link to="/home/chat">
<el-menu-item index="/chat" class="left-aside-item">
<i class="el-icon-chat-line-square"></i>
<span slot="title">对话管理</span>
</el-menu-item>
</router-link>
<router-link to="/home/users">
<el-menu-item index="/users" class="left-aside-item">
<i class="el-icon-user"></i>
<span slot="title">用户管理</span>
</el-menu-item>
</router-link>
<router-link to="/home/rights">
<el-menu-item index="/rights" class="left-aside-item">
<i class="el-icon-setting"></i>
......
<template>
<div>
<el-button @click="goBack">后退</el-button>
<el-button type="primary" plain size="medium" @click="goBack">后退</el-button>
<h4 class="text-center">新增ChatGpt问答</h4>
<el-container class="container">
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="问题">
<el-input v-model="form.question"></el-input>
</el-form-item>
<el-form-item label="答案">
<el-input type="textarea" v-model="form.response"></el-input>
</el-form-item>
......
<template>
<div>
<!-- <el-button @click="$router.back()">后退</el-button> -->
<el-button @click="goBack()">后退</el-button>
<el-button type="primary" plain size="medium" @click="goBack">后退</el-button>
<h4 class="text-center">ChatGpt问答详情 --- {{ id }}</h4>
<el-container>
<el-main>
......@@ -30,7 +29,7 @@
</el-main>
</el-container>
<div class="button-container">
<el-button @click="copyCode">复制回答</el-button>
<el-button @click="copyCode" type="primary" round>复制回答</el-button>
</div>
</div>
</template>
......
......@@ -34,7 +34,7 @@ const router = new VueRouter({
{
path: '/home',
component: Home,
redirect: '/home/users',
redirect: '/home/chat',
children: [
{
path: 'users',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册