Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
vue-kwan-admin
提交
17d22bce
V
vue-kwan-admin
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
vue-kwan-admin
通知
38
Star
6
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-kwan-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
17d22bce
编写于
7月 14, 2023
作者:
Kwan的解忧杂货铺@新空间代码工作室
🐭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整左侧的位置
上级
f9e5b40c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
14 deletion
+13
-14
src/components/menus/MyChat.vue
src/components/menus/MyChat.vue
+3
-2
src/components/subcomponents/MyAside.vue
src/components/subcomponents/MyAside.vue
+6
-6
src/components/user/AddChatDetail.vue
src/components/user/AddChatDetail.vue
+1
-2
src/components/user/MyChatDetail.vue
src/components/user/MyChatDetail.vue
+2
-3
src/router/index.js
src/router/index.js
+1
-1
未找到文件。
src/components/menus/MyChat.vue
浏览文件 @
17d22bce
...
@@ -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
:
''
,
...
...
src/components/subcomponents/MyAside.vue
浏览文件 @
17d22bce
<
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>
...
...
src/components/user/AddChatDetail.vue
浏览文件 @
17d22bce
<
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>
...
...
src/components/user/MyChatDetail.vue
浏览文件 @
17d22bce
<
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>
...
...
src/router/index.js
浏览文件 @
17d22bce
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录