调整左侧的位置

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