Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
檀越@新空间
vue-kwan-admin
提交
27e8d5d4
V
vue-kwan-admin
项目概览
檀越@新空间
/
vue-kwan-admin
通知
40
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看板
提交
27e8d5d4
编写于
10月 07, 2023
作者:
檀越@新空间
🐭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Initial commit
上级
07c55de3
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
3267 addition
and
106 deletion
+3267
-106
dist/js/app.a42e9102.js
dist/js/app.a42e9102.js
+2339
-2
dist/js/app.a42e9102.js.map
dist/js/app.a42e9102.js.map
+372
-1
src/components/menus/MyAlgorithmic.vue
src/components/menus/MyAlgorithmic.vue
+452
-0
src/components/menus/MyChat.vue
src/components/menus/MyChat.vue
+89
-89
src/components/menus/MyInterview.vue
src/components/menus/MyInterview.vue
+5
-5
src/components/menus/MyPic.vue
src/components/menus/MyPic.vue
+1
-1
src/components/subcomponents/MyAside.vue
src/components/subcomponents/MyAside.vue
+4
-4
src/components/user/AddChatDetail.vue
src/components/user/AddChatDetail.vue
+1
-1
src/components/user/MyChatDetail.vue
src/components/user/MyChatDetail.vue
+1
-1
src/router/index.js
src/router/index.js
+3
-2
未找到文件。
dist/js/app.a42e9102.js
浏览文件 @
27e8d5d4
(
function
(
e
){
function
t
(
t
){
for
(
var
a
,
i
,
s
=
t
[
0
],
l
=
t
[
1
],
u
=
t
[
2
],
d
=
0
,
p
=
[];
d
<
s
.
length
;
d
++
)
i
=
s
[
d
],
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
i
)
&&
r
[
i
]
&&
p
.
push
(
r
[
i
][
0
]),
r
[
i
]
=
0
;
for
(
a
in
l
)
Object
.
prototype
.
hasOwnProperty
.
call
(
l
,
a
)
&&
(
e
[
a
]
=
l
[
a
]);
c
&&
c
(
t
);
while
(
p
.
length
)
p
.
shift
()();
return
o
.
push
.
apply
(
o
,
u
||
[]),
n
()}
function
n
(){
for
(
var
e
,
t
=
0
;
t
<
o
.
length
;
t
++
){
for
(
var
n
=
o
[
t
],
a
=!
0
,
s
=
1
;
s
<
n
.
length
;
s
++
){
var
l
=
n
[
s
];
0
!==
r
[
l
]
&&
(
a
=!
1
)}
a
&&
(
o
.
splice
(
t
--
,
1
),
e
=
i
(
i
.
s
=
n
[
0
]))}
return
e
}
var
a
=
{},
r
=
{
app
:
0
},
o
=
[];
function
i
(
t
){
if
(
a
[
t
])
return
a
[
t
].
exports
;
var
n
=
a
[
t
]
=
{
i
:
t
,
l
:
!
1
,
exports
:{}};
return
e
[
t
].
call
(
n
.
exports
,
n
,
n
.
exports
,
i
),
n
.
l
=!
0
,
n
.
exports
}
i
.
m
=
e
,
i
.
c
=
a
,
i
.
d
=
function
(
e
,
t
,
n
){
i
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
n
})},
i
.
r
=
function
(
e
){
"
undefined
"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"
Module
"
}),
Object
.
defineProperty
(
e
,
"
__esModule
"
,{
value
:
!
0
})},
i
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
i
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"
object
"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
n
=
Object
.
create
(
null
);
if
(
i
.
r
(
n
),
Object
.
defineProperty
(
n
,
"
default
"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"
string
"
!=
typeof
e
)
for
(
var
a
in
e
)
i
.
d
(
n
,
a
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
a
));
return
n
},
i
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"
default
"
]}:
function
(){
return
e
};
return
i
.
d
(
t
,
"
a
"
,
t
),
t
},
i
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
i
.
p
=
"
/
"
;
var
s
=
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[],
l
=
s
.
push
.
bind
(
s
);
s
.
push
=
t
,
s
=
s
.
slice
();
for
(
var
u
=
0
;
u
<
s
.
length
;
u
++
)
t
(
s
[
u
]);
var
c
=
l
;
o
.
push
([
0
,
"
chunk-vendors
"
]),
n
()})({
0
:
function
(
e
,
t
,
n
){
e
.
exports
=
n
(
"
56d7
"
)},
"
0157
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
808c
"
)},
"
022e
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
12df
"
)},
"
12df
"
:
function
(
e
,
t
,
n
){},
"
12ff
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
2597
"
)},
"
155e
"
:
function
(
e
,
t
,
n
){},
"
16b4
"
:
function
(
e
,
t
,
n
){},
"
248e
"
:
function
(
e
,
t
,
n
){},
2597
:
function
(
e
,
t
,
n
){},
"
2aba
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
248e
"
)},
4084
:
function
(
e
,
t
,
n
){},
5304
:
function
(
e
,
t
,
n
){},
"
56d7
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
.
r
(
t
);
n
(
"
e260
"
),
n
(
"
e6cf
"
),
n
(
"
cca6
"
),
n
(
"
a79d
"
),
n
(
"
4de4
"
);
var
a
=
n
(
"
2b0e
"
),
r
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
router-view
"
)},
o
=
[],
i
=
{
name
:
"
MyApp
"
},
s
=
i
,
l
=
n
(
"
2877
"
),
u
=
Object
(
l
[
"
a
"
])(
s
,
r
,
o
,
!
1
,
null
,
"
633dd7d9
"
,
null
),
c
=
u
.
exports
,
d
=
n
(
"
8c4f
"
),
p
=
[
"
/home
"
,
"
/home/users
"
,
"
/home/pic
"
],
m
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,{
staticClass
:
"
login-container
"
},[
n
(
"
div
"
,{
staticClass
:
"
login-box
"
},[
e
.
_m
(
0
),
n
(
"
div
"
,{
staticClass
:
"
form-login p-4
"
},[
n
(
"
div
"
,{
staticClass
:
"
form-group form-inline
"
},[
n
(
"
label
"
,{
attrs
:{
for
:
"
username
"
}},[
e
.
_v
(
"
登录名称
"
)]),
n
(
"
input
"
,{
directives
:[{
name
:
"
model
"
,
rawName
:
"
v-model.trim
"
,
value
:
e
.
username
,
expression
:
"
username
"
,
modifiers
:{
trim
:
!
0
}}],
staticClass
:
"
form-control ml-2
"
,
attrs
:{
type
:
"
text
"
,
id
:
"
username
"
,
placeholder
:
"
请输入登录名称
"
,
autocomplete
:
"
off
"
},
domProps
:{
value
:
e
.
username
},
on
:{
input
:
function
(
t
){
t
.
target
.
composing
||
(
e
.
username
=
t
.
target
.
value
.
trim
())},
blur
:
function
(
t
){
return
e
.
$forceUpdate
()}}})]),
n
(
"
div
"
,{
staticClass
:
"
form-group form-inline
"
},[
n
(
"
label
"
,{
attrs
:{
for
:
"
password
"
}},[
e
.
_v
(
"
登录密码
"
)]),
n
(
"
input
"
,{
directives
:[{
name
:
"
model
"
,
rawName
:
"
v-model.trim
"
,
value
:
e
.
password
,
expression
:
"
password
"
,
modifiers
:{
trim
:
!
0
}}],
staticClass
:
"
form-control ml-2
"
,
attrs
:{
type
:
"
password
"
,
id
:
"
password
"
,
placeholder
:
"
请输入登录密码
"
},
domProps
:{
value
:
e
.
password
},
on
:{
input
:
function
(
t
){
t
.
target
.
composing
||
(
e
.
password
=
t
.
target
.
value
.
trim
())},
blur
:
function
(
t
){
return
e
.
$forceUpdate
()}}})]),
n
(
"
div
"
,{
staticClass
:
"
form-group form-inline d-flex justify-content-end
"
},[
n
(
"
button
"
,{
staticClass
:
"
btn btn-secondary mr-2
"
,
attrs
:{
type
:
"
button
"
},
on
:{
click
:
e
.
reset
}},[
e
.
_v
(
"
重置
"
)]),
n
(
"
button
"
,{
staticClass
:
"
btn btn-primary
"
,
attrs
:{
type
:
"
button
"
},
on
:{
click
:
e
.
login
}},[
e
.
_v
(
"
登录
"
)])])])])])},
f
=
[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,{
staticClass
:
"
text-center avatar-box
"
},[
a
(
"
img
"
,{
staticClass
:
"
img-thumbnail avatar
"
,
attrs
:{
src
:
n
(
"
7678
"
),
alt
:
"
kwan的解忧杂货铺
"
}})])}],
g
=
{
name
:
"
MyLogin
"
,
data
:
function
(){
return
{
username
:
""
,
password
:
""
}},
methods
:{
reset
:
function
(){
this
.
username
=
""
,
this
.
password
=
""
},
login
:
function
(){
"
admin
"
===
this
.
username
&&
"
666666
"
===
this
.
password
?(
localStorage
.
setItem
(
"
token
"
,
"
Bearer xxxx
"
),
this
.
$router
.
push
(
"
/home
"
)):
localStorage
.
removeItem
(
"
token
"
)}}},
h
=
g
,
b
=
(
n
(
"
12ff
"
),
Object
(
l
[
"
a
"
])(
h
,
m
,
f
,
!
1
,
null
,
"
1be4e8ce
"
,
null
)),
v
=
b
.
exports
,
y
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,{
staticClass
:
"
home-container
"
},[
n
(
"
el-row
"
,[
n
(
"
el-col
"
,{
attrs
:{
span
:
24
}},[
n
(
"
MyHeader
"
)],
1
)],
1
),
n
(
"
el-row
"
,[
n
(
"
el-col
"
,{
attrs
:{
span
:
3
}},[
n
(
"
MyAside
"
)],
1
),
n
(
"
el-col
"
,{
attrs
:{
span
:
21
}},[
n
(
"
router-view
"
)],
1
)],
1
)],
1
)},
w
=
[],
_
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,{
staticClass
:
"
layout-header-container d-flex justify-content-between align-items-center p-3
"
},[
e
.
_m
(
0
),
n
(
"
el-row
"
,[
n
(
"
el-col
"
,{
attrs
:{
inline
:
!
0
,
span
:
24
}},[
n
(
"
el-button
"
,{
staticClass
:
"
el-button-header
"
,
attrs
:{
type
:
"
success
"
,
round
:
""
},
on
:{
click
:
e
.
myHome
}},[
e
.
_v
(
"
我的主页
"
)]),
n
(
"
el-button
"
,{
staticClass
:
"
el-button-header
"
,
attrs
:{
type
:
"
primary
"
,
round
:
""
},
on
:{
click
:
e
.
logout
}},[
e
.
_v
(
"
退出登录
"
)])],
1
)],
1
)],
1
)},
k
=
[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,{
staticClass
:
"
layout-header-left d-flex align-items-center user-select-none
"
},[
a
(
"
img
"
,{
staticClass
:
"
layout-header-left-img
"
,
attrs
:{
src
:
n
(
"
7678
"
),
alt
:
""
}}),
a
(
"
h4
"
,{
staticClass
:
"
layout-header-left-title ml-3
"
},[
e
.
_v
(
"
kwan的解忧杂货铺
"
)])])}],
x
=
{
name
:
"
MyHeader
"
,
methods
:{
logout
:
function
(){
localStorage
.
removeItem
(
"
token
"
),
this
.
$router
.
push
(
"
/login
"
)},
myHome
:
function
(){
window
.
open
(
"
http://qinyingjie.top/
"
)}}},
C
=
x
,
q
=
(
n
(
"
9d40
"
),
Object
(
l
[
"
a
"
])(
C
,
_
,
k
,
!
1
,
null
,
"
36ae6cf9
"
,
null
)),
I
=
q
.
exports
,
P
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
el-menu
"
,{
staticClass
:
"
layout-aside-container
"
,
attrs
:{
"
default-active
"
:
"
$route.path
"
,
"
background-color
"
:
"
#fff
"
,
"
text-color
"
:
"
#000
"
,
"
active-text-color
"
:
"
#42b983
"
}},[
n
(
"
router-link
"
,{
attrs
:{
to
:
"
/home/interview
"
}},[
n
(
"
el-menu-item
"
,{
staticClass
:
"
left-aside-item
"
,
attrs
:{
index
:
"
/interview
"
}},[
n
(
"
i
"
,{
staticClass
:
"
el-icon-question
"
}),
n
(
"
span
"
,{
attrs
:{
slot
:
"
title
"
},
slot
:
"
title
"
},[
e
.
_v
(
"
面试题管理
"
)])])],
1
),
n
(
"
router-link
"
,{
attrs
:{
to
:
"
/home/chat
"
}},[
n
(
"
el-menu-item
"
,{
staticClass
:
"
left-aside-item
"
,
attrs
:{
index
:
"
/chat
"
}},[
n
(
"
i
"
,{
staticClass
:
"
el-icon-chat-line-square
"
}),
n
(
"
span
"
,{
attrs
:{
slot
:
"
title
"
},
slot
:
"
title
"
},[
e
.
_v
(
"
CHAT管理
"
)])])],
1
),
n
(
"
router-link
"
,{
attrs
:{
to
:
"
/home/pic
"
}},[
n
(
"
el-menu-item
"
,{
staticClass
:
"
left-aside-item
"
,
attrs
:{
index
:
"
/pic
"
}},[
n
(
"
i
"
,{
staticClass
:
"
el-icon-setting
"
}),
n
(
"
span
"
,{
attrs
:{
slot
:
"
title
"
},
slot
:
"
title
"
},[
e
.
_v
(
"
图片管理
"
)])])],
1
),
n
(
"
router-link
"
,{
attrs
:{
to
:
"
/home/users
"
}},[
n
(
"
el-menu-item
"
,{
staticClass
:
"
left-aside-item
"
,
attrs
:{
index
:
"
/users
"
}},[
n
(
"
i
"
,{
staticClass
:
"
el-icon-user
"
}),
n
(
"
span
"
,{
attrs
:{
slot
:
"
title
"
},
slot
:
"
title
"
},[
e
.
_v
(
"
用户管理
"
)])])],
1
),
n
(
"
router-link
"
,{
attrs
:{
to
:
"
/home/goods
"
}},[
n
(
"
el-menu-item
"
,{
staticClass
:
"
left-aside-item
"
,
attrs
:{
index
:
"
/goods
"
}},[
n
(
"
i
"
,{
staticClass
:
"
el-icon-goods
"
}),
n
(
"
span
"
,{
attrs
:{
slot
:
"
title
"
},
slot
:
"
title
"
},[
e
.
_v
(
"
商品管理
"
)])])],
1
),
n
(
"
router-link
"
,{
attrs
:{
to
:
"
/home/orders
"
}},[
n
(
"
el-menu-item
"
,{
staticClass
:
"
left-aside-item
"
,
attrs
:{
index
:
"
/orders
"
}},[
n
(
"
i
"
,{
staticClass
:
"
el-icon-s-order
"
}),
n
(
"
span
"
,{
attrs
:{
slot
:
"
title
"
},
slot
:
"
title
"
},[
e
.
_v
(
"
订单管理
"
)])])],
1
),
n
(
"
router-link
"
,{
attrs
:{
to
:
"
/home/settings
"
}},[
n
(
"
el-menu-item
"
,{
staticClass
:
"
left-aside-item
"
,
attrs
:{
index
:
"
/settings
"
}},[
n
(
"
i
"
,{
staticClass
:
"
el-icon-setting
"
}),
n
(
"
span
"
,{
attrs
:{
slot
:
"
title
"
},
slot
:
"
title
"
},[
e
.
_v
(
"
系统设置
"
)])])],
1
)],
1
)},
T
=
[],
S
=
{
name
:
"
MyAside
"
},
$
=
S
,
O
=
(
n
(
"
2aba
"
),
Object
(
l
[
"
a
"
])(
$
,
P
,
T
,
!
1
,
null
,
"
3160d41c
"
,
null
)),
j
=
O
.
exports
,
M
=
{
name
:
"
MyHome
"
,
components
:{
MyHeader
:
I
,
MyAside
:
j
}},
V
=
M
,
R
=
(
n
(
"
9547
"
),
Object
(
l
[
"
a
"
])(
V
,
y
,
w
,
!
1
,
null
,
"
e41dbfec
"
,
null
)),
E
=
R
.
exports
,
D
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
h4
"
,{
staticClass
:
"
text-center
"
},[
e
.
_v
(
"
用户管理
"
)]),
n
(
"
table
"
,{
staticClass
:
"
table table-bordered table-striped table-hover
"
},[
e
.
_m
(
0
),
n
(
"
tbody
"
,
e
.
_l
(
e
.
userlist
,(
function
(
t
){
return
n
(
"
tr
"
,{
key
:
t
.
id
},[
n
(
"
td
"
,[
e
.
_v
(
e
.
_s
(
t
.
id
))]),
n
(
"
td
"
,[
e
.
_v
(
e
.
_s
(
t
.
name
))]),
n
(
"
td
"
,[
e
.
_v
(
e
.
_s
(
t
.
age
))]),
n
(
"
td
"
,[
e
.
_v
(
e
.
_s
(
t
.
position
))]),
n
(
"
td
"
,[
n
(
"
a
"
,{
attrs
:{
href
:
"
#
"
},
on
:{
click
:
function
(
n
){
return
n
.
preventDefault
(),
e
.
gotoDetail
(
t
.
id
)}}},[
e
.
_v
(
"
详情
"
)])])])})),
0
)])])},
L
=
[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
thead
"
,[
n
(
"
tr
"
,[
n
(
"
th
"
,[
e
.
_v
(
"
序号
"
)]),
n
(
"
th
"
,[
e
.
_v
(
"
姓名
"
)]),
n
(
"
th
"
,[
e
.
_v
(
"
年龄
"
)]),
n
(
"
th
"
,[
e
.
_v
(
"
头衔
"
)]),
n
(
"
th
"
,[
e
.
_v
(
"
操作
"
)])])])}],
F
=
{
name
:
"
MyUser
"
,
data
:
function
(){
return
{
userlist
:[{
id
:
1
,
name
:
"
嬴政
"
,
age
:
18
,
position
:
"
始皇帝
"
},{
id
:
2
,
name
:
"
李斯
"
,
age
:
35
,
position
:
"
丞相
"
},{
id
:
3
,
name
:
"
吕不韦
"
,
age
:
50
,
position
:
"
商人
"
},{
id
:
4
,
name
:
"
赵姬
"
,
age
:
48
,
position
:
"
王太后
"
}]}},
methods
:{
gotoDetail
:
function
(
e
){
this
.
$router
.
push
(
"
/home/userinfo/
"
+
e
)}}},
N
=
F
,
z
=
Object
(
l
[
"
a
"
])(
N
,
D
,
L
,
!
1
,
null
,
"
02f3073a
"
,
null
),
A
=
z
.
exports
,
Q
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
el-container
"
,[
n
(
"
el-main
"
,[
n
(
"
el-select
"
,{
attrs
:{
placeholder
:
"
请选择
"
},
on
:{
change
:
e
.
queryPic
},
model
:{
value
:
e
.
picType
,
callback
:
function
(
t
){
e
.
picType
=
t
},
expression
:
"
picType
"
}},
e
.
_l
(
e
.
options
,(
function
(
e
){
return
n
(
"
el-option
"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
1
),
n
(
"
el-table
"
,{
directives
:[{
name
:
"
loading
"
,
rawName
:
"
v-loading
"
,
value
:
e
.
loading
,
expression
:
"
loading
"
}],
attrs
:{
border
:
""
,
data
:
e
.
picList
}},[
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
id
"
,
label
:
"
序号
"
,
width
:
"
100
"
,
sortable
:
""
}}),
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
picName
"
,
label
:
"
图片名字
"
,
width
:
"
240
"
,
"
show-overflow-tooltip
"
:
""
}}),
n
(
"
el-table-column
"
,{
attrs
:{
align
:
"
center
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
n
(
"
img
"
,{
staticStyle
:{
cursor
:
"
pointer
"
},
attrs
:{
src
:
t
.
row
.
picUrl
,
alt
:
"
图片
"
,
height
:
"
100px
"
},
on
:{
click
:
function
(
n
){
return
e
.
showImageDialog
(
t
.
row
.
picUrl
,
t
.
$index
)}}})]}}])}),
n
(
"
el-table-column
"
,{
attrs
:{
label
:
"
创建时间
"
,
width
:
"
170
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
_f
(
"
dateFormat
"
)(
t
.
row
.
createTime
))
+
"
"
)]}}])})],
1
),
n
(
"
el-dialog
"
,{
attrs
:{
visible
:
e
.
imageDialogVisible
,
width
:
"
30%
"
},
on
:{
"
update:visible
"
:
function
(
t
){
e
.
imageDialogVisible
=
t
}}},[
n
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
space-between
"
}},[
n
(
"
button
"
,{
staticClass
:
"
arrow-button
"
,
class
:{
disabled
:
0
===
e
.
imageIndex
},
attrs
:{
disabled
:
0
===
e
.
imageIndex
},
on
:{
click
:
e
.
showBeforeImage
}},[
n
(
"
el-icon
"
,{
staticClass
:
"
custom-icon
"
,
attrs
:{
name
:
"
arrow-left
"
}})],
1
),
n
(
"
img
"
,{
staticStyle
:{
width
:
"
80%
"
},
attrs
:{
src
:
e
.
enlargedImageUrl
,
alt
:
"
放大图片
"
}}),
n
(
"
button
"
,{
staticClass
:
"
arrow-button
"
,
class
:{
disabled
:
e
.
imageIndex
===
e
.
picList
.
length
-
1
},
attrs
:{
disabled
:
e
.
imageIndex
===
e
.
picList
.
length
-
1
},
on
:{
click
:
e
.
showNextImage
}},[
n
(
"
el-icon
"
,{
staticClass
:
"
custom-icon
"
,
attrs
:{
name
:
"
arrow-right
"
}})],
1
)])]),
n
(
"
el-pagination
"
,{
key
:
e
.
elementui_page_component_key
,
staticClass
:
"
pagination
"
,
attrs
:{
background
:
""
,
"
current-page
"
:
e
.
currentPage
,
"
page-size
"
:
e
.
pageSize
,
total
:
e
.
total
},
on
:{
"
update:currentPage
"
:
function
(
t
){
e
.
currentPage
=
t
},
"
update:current-page
"
:
function
(
t
){
e
.
currentPage
=
t
},
"
current-change
"
:
e
.
handleCurrentChange
}})],
1
)],
1
)],
1
)},
U
=
[],
H
=
n
(
"
1da1
"
),
B
=
(
n
(
"
96cf
"
),
n
(
"
cee4
"
)),
W
=
{
name
:
"
MyPic
"
,
data
:
function
(){
return
{
picList
:[],
loading
:
!
1
,
elementui_page_component_key
:
0
,
currentPage
:
1
,
pageSize
:
6
,
total
:
0
,
imageDialogVisible
:
!
1
,
enlargedImageUrl
:
""
,
imageIndex
:
0
,
options
:[{
value
:
0
,
label
:
"
宝宝照片
"
},{
value
:
1
,
label
:
"
学习照片
"
},{
value
:
2
,
label
:
"
风景照片
"
},{
value
:
3
,
label
:
"
美女照片
"
},{
value
:
99
,
label
:
"
其他照片
"
}],
picType
:
0
}},
created
:
function
(){
this
.
queryPic
()},
methods
:{
showBeforeImage
:
function
(){
this
.
imageIndex
>
0
&&
(
this
.
imageIndex
--
,
this
.
enlargedImageUrl
=
this
.
picList
[
this
.
imageIndex
].
picUrl
,
this
.
imageDialogVisible
=!
0
)},
showNextImage
:
function
(){
this
.
imageIndex
<
this
.
picList
.
length
-
1
&&
(
this
.
imageIndex
++
,
this
.
enlargedImageUrl
=
this
.
picList
[
this
.
imageIndex
].
picUrl
,
this
.
imageDialogVisible
=!
0
)},
showImageDialog
:
function
(
e
,
t
){
this
.
enlargedImageUrl
=
e
,
this
.
imageDialogVisible
=!
0
,
this
.
imageIndex
=
t
},
queryPic
:
function
(){
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
(){
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
e
.
loading
=!
0
,
t
.
next
=
3
,
B
[
"
a
"
].
get
(
"
http://120.79.36.53:8888/picInfo/page
"
,{
params
:{
page
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
picType
:
e
.
picType
}});
case
3
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
&&
(
e
.
picList
=
a
.
result
.
records
,
e
.
total
=
a
.
result
.
total
),
e
.
loading
=!
1
;
case
7
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})))()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
queryPic
()}}},
Y
=
W
,
G
=
(
n
(
"
0157
"
),
Object
(
l
[
"
a
"
])(
Y
,
Q
,
U
,
!
1
,
null
,
"
15b8f4b2
"
,
null
)),
J
=
G
.
exports
,
K
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
h4
"
,{
staticClass
:
"
text-center
"
},[
e
.
_v
(
"
商品管理
"
)])},
X
=
[],
Z
=
{
name
:
"
MyGoods
"
},
ee
=
Z
,
te
=
Object
(
l
[
"
a
"
])(
ee
,
K
,
X
,
!
1
,
null
,
"
716085f0
"
,
null
),
ne
=
te
.
exports
,
ae
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
h4
"
,{
staticClass
:
"
text-center
"
},[
e
.
_v
(
"
订单管理
"
)])},
re
=
[],
oe
=
{
name
:
"
MyOrders
"
},
ie
=
oe
,
se
=
Object
(
l
[
"
a
"
])(
ie
,
ae
,
re
,
!
1
,
null
,
"
3275af60
"
,
null
),
le
=
se
.
exports
,
ue
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
el-container
"
,[
n
(
"
el-main
"
,[
n
(
"
el-form
"
,{
staticClass
:
"
demo-form-inline
"
,
attrs
:{
inline
:
!
0
,
model
:
e
.
formInline
}},[
n
(
"
el-form-item
"
,[
n
(
"
el-input
"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入问题
"
},
nativeOn
:{
keydown
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"
key
"
)
&&
e
.
_k
(
t
.
keyCode
,
"
enter
"
,
13
,
t
.
key
,
"
Enter
"
)?
null
:
e
.
initCartList
.
apply
(
null
,
arguments
)}},
model
:{
value
:
e
.
formInline
.
question
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formInline
,
"
question
"
,
t
)},
expression
:
"
formInline.question
"
}})],
1
),
n
(
"
el-form-item
"
,[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
initCartList
}},[
e
.
_v
(
"
查询
"
)])],
1
),
n
(
"
el-form-item
"
,[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
t
.
preventDefault
(),
e
.
addChat
.
apply
(
null
,
arguments
)}}},[
e
.
_v
(
"
新增
"
)])],
1
)],
1
),
n
(
"
el-table
"
,{
directives
:[{
name
:
"
loading
"
,
rawName
:
"
v-loading
"
,
value
:
e
.
loading
,
expression
:
"
loading
"
}],
attrs
:{
border
:
""
,
data
:
e
.
userlist
}},[
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
id
"
,
label
:
"
序号
"
,
width
:
"
100
"
,
sortable
:
""
}}),
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
question
"
,
label
:
"
问题
"
,
width
:
"
240
"
,
"
show-overflow-tooltip
"
:
""
}}),
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
response
"
,
label
:
"
答案
"
,
"
show-overflow-tooltip
"
:
""
}}),
n
(
"
el-table-column
"
,{
attrs
:{
label
:
"
创建时间
"
,
width
:
"
170
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
_f
(
"
dateFormat
"
)(
t
.
row
.
createTime
))
+
"
"
)]}}])}),
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
详情
"
,
label
:
"
详情
"
,
width
:
"
180
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
success
"
},
on
:{
click
:
function
(
n
){
return
n
.
preventDefault
(),
e
.
gotoDetail
(
t
.
row
.
id
)}}},[
e
.
_v
(
"
详情
"
)]),
n
(
"
el-button
"
,{
attrs
:{
type
:
"
danger
"
},
on
:{
click
:
function
(
n
){
return
e
.
onDelete
(
t
.
row
.
id
)}}},[
e
.
_v
(
"
删除
"
)])]}}])})],
1
),
n
(
"
el-pagination
"
,{
key
:
e
.
elementui_page_component_key
,
staticClass
:
"
pagination
"
,
attrs
:{
background
:
""
,
"
current-page
"
:
e
.
currentPage
,
"
page-size
"
:
e
.
pageSize
,
total
:
e
.
total
},
on
:{
"
update:currentPage
"
:
function
(
t
){
e
.
currentPage
=
t
},
"
update:current-page
"
:
function
(
t
){
e
.
currentPage
=
t
},
"
current-change
"
:
e
.
handleCurrentChange
}})],
1
),
n
(
"
el-backtop
"
,{
staticClass
:
"
backtop
"
})],
1
)],
1
)},
ce
=
[],
de
=
(
n
(
"
a9e3
"
),{
name
:
"
MyChat
"
,
data
:
function
(){
return
{
userlist
:[],
loading
:
!
1
,
elementui_page_component_key
:
0
,
currentPage
:
Number
(
localStorage
.
getItem
(
"
lastPage
"
))
||
1
,
pageSize
:
9
,
total
:
0
,
formInline
:{
question
:
""
}}},
watch
:{
"
formInline.question
"
:
function
(
e
){
""
===
e
&&
(
this
.
currentPage
=
1
,
localStorage
.
setItem
(
"
lastPage
"
,
this
.
currentPage
),
this
.
initCartList
())}},
created
:
function
(){
var
e
=
this
;
this
.
$nextTick
((
function
(){
var
t
=
e
.
$route
.
query
.
back
,
n
=
e
.
$route
.
query
.
add
;
"
back
"
===
t
&&
"
add
"
!=
n
?(
e
.
currentPage
=
Number
(
localStorage
.
getItem
(
"
lastPage
"
))
||
1
,
e
.
formInline
.
question
=
localStorage
.
getItem
(
"
lastQuestion
"
)
||
""
):(
localStorage
.
setItem
(
"
lastPage
"
,
1
),
localStorage
.
setItem
(
"
lastQuestion
"
,
""
),
e
.
currentPage
=
1
,
e
.
formInline
.
question
=
""
),
e
.
initCartList
()}))},
mounted
:
function
(){
this
.
currentPage
=
Number
(
localStorage
.
getItem
(
"
lastPage
"
))
||
1
,
this
.
formInline
.
question
=
localStorage
.
getItem
(
"
lastQuestion
"
),
this
.
elementui_page_component_key
++
},
methods
:{
onDelete
:
function
(
e
){
var
t
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
n
(){
var
a
;
return
regeneratorRuntime
.
wrap
((
function
(
n
){
while
(
1
)
switch
(
n
.
prev
=
n
.
next
){
case
0
:
return
t
.
loading
=!
0
,
n
.
next
=
3
,
B
[
"
a
"
].
get
(
"
http://120.79.36.53:8888/chatbot/delete
"
,{
params
:{
id
:
e
}});
case
3
:
a
=
n
.
sent
,
a
.
data
,
t
.
initCartList
(),
t
.
loading
=!
1
;
case
7
:
case
"
end
"
:
return
n
.
stop
()}}),
n
)})))()},
refreshPage
:
function
(){
location
.
reload
()},
gotoDetail
:
function
(
e
){
this
.
$router
.
push
(
"
/home/chatinfo/
"
+
e
)},
addChat
:
function
(){
this
.
$router
.
push
(
"
/home/addChat/
"
)},
initCartList
:
function
(){
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
(){
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
e
.
loading
=!
0
,
t
.
next
=
3
,
B
[
"
a
"
].
get
(
"
http://120.79.36.53:8888/chatbot/page
"
,{
params
:{
page
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
question
:
e
.
formInline
.
question
}});
case
3
:
n
=
t
.
sent
,
a
=
n
.
data
,
console
.
log
(
a
),
200
===
a
.
code
&&
(
e
.
userlist
=
a
.
result
.
content
,
e
.
total
=
a
.
result
.
totalElements
,
localStorage
.
setItem
(
"
lastPage
"
,
e
.
currentPage
),
localStorage
.
setItem
(
"
lastQuestion
"
,
e
.
formInline
.
question
)),
e
.
loading
=!
1
;
case
8
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})))()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
initCartList
()}}}),
pe
=
de
,
me
=
(
n
(
"
68db
"
),
Object
(
l
[
"
a
"
])(
pe
,
ue
,
ce
,
!
1
,
null
,
"
6e64ea6a
"
,
null
)),
fe
=
me
.
exports
,
ge
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
el-container
"
,[
n
(
"
el-main
"
,[
n
(
"
el-dialog
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
title
:
"
新增面试问题
"
,
visible
:
e
.
dialogFormVisible
},
on
:{
"
update:visible
"
:
function
(
t
){
e
.
dialogFormVisible
=
t
}}},[
n
(
"
el-form
"
,{
staticClass
:
"
custom-form
"
,
attrs
:{
model
:
e
.
form
}},[
n
(
"
el-form-item
"
,{
staticClass
:
"
form-item
"
,
attrs
:{
label
:
"
面试问题
"
,
"
label-width
"
:
e
.
formLabelWidth
}},[
n
(
"
el-input
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
autocomplete
:
"
off
"
},
model
:{
value
:
e
.
form
.
question
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"
question
"
,
t
)},
expression
:
"
form.question
"
}})],
1
),
n
(
"
br
"
),
n
(
"
el-form-item
"
,{
staticClass
:
"
form-item
"
,
attrs
:{
label
:
"
问题类型
"
,
"
label-width
"
:
e
.
formLabelWidth
}},[
n
(
"
el-select
"
,{
attrs
:{
placeholder
:
"
请选择活动区域
"
},
model
:{
value
:
e
.
form
.
questionType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"
questionType
"
,
t
)},
expression
:
"
form.questionType
"
}},
e
.
_l
(
e
.
options
,(
function
(
e
){
return
n
(
"
el-option
"
,{
key
:
e
.
questionType
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
questionType
}})})),
1
)],
1
)],
1
),
n
(
"
div
"
,{
staticClass
:
"
dialog-footer
"
,
attrs
:{
slot
:
"
footer
"
},
slot
:
"
footer
"
},[
n
(
"
el-button
"
,{
on
:{
click
:
function
(
t
){
e
.
dialogFormVisible
=!
1
}}},[
e
.
_v
(
"
取 消
"
)]),
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
handleConfirm
(
0
)}}},[
e
.
_v
(
"
确 定
"
)])],
1
)],
1
),
n
(
"
el-dialog
"
,{
staticClass
:
"
red-title
"
,
attrs
:{
visible
:
e
.
dialogMutiFormVisible
},
on
:{
"
update:visible
"
:
function
(
t
){
e
.
dialogMutiFormVisible
=
t
}}},[
n
(
"
div
"
,{
staticClass
:
"
red-title
"
,
attrs
:{
slot
:
"
title
"
},
slot
:
"
title
"
},[
e
.
_v
(
"
批量新增面试问题(多个问题换行填写)
"
)]),
n
(
"
el-form
"
,{
staticClass
:
"
custom-form
"
,
attrs
:{
model
:
e
.
form
}},[
n
(
"
el-form-item
"
,{
staticClass
:
"
form-item
"
,
attrs
:{
label
:
"
面试问题
"
,
"
label-width
"
:
e
.
formLabelWidth
}},[
n
(
"
el-input
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
textarea
"
,
autocomplete
:
"
off
"
,
rows
:
5
,
cols
:
30
},
model
:{
value
:
e
.
form
.
question
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"
question
"
,
t
)},
expression
:
"
form.question
"
}})],
1
)],
1
),
n
(
"
div
"
,{
staticClass
:
"
dialog-footer
"
,
attrs
:{
slot
:
"
footer
"
},
slot
:
"
footer
"
},[
n
(
"
el-button
"
,{
on
:{
click
:
function
(
t
){
e
.
dialogMutiFormVisible
=!
1
}}},[
e
.
_v
(
"
取 消
"
)]),
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
handleConfirm
(
1
)}}},[
e
.
_v
(
"
确 定
"
)])],
1
)],
1
),
n
(
"
el-form
"
,{
staticClass
:
"
demo-form-inline
"
,
attrs
:{
inline
:
!
0
,
model
:
e
.
formInline
}},[
n
(
"
el-form-item
"
,[
n
(
"
el-input
"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入问题
"
},
nativeOn
:{
keydown
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"
key
"
)
&&
e
.
_k
(
t
.
keyCode
,
"
enter
"
,
13
,
t
.
key
,
"
Enter
"
)?
null
:
e
.
interviewPage
.
apply
(
null
,
arguments
)}},
model
:{
value
:
e
.
formInline
.
question
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formInline
,
"
question
"
,
t
)},
expression
:
"
formInline.question
"
}})],
1
),
n
(
"
el-select
"
,{
attrs
:{
placeholder
:
"
请选择
"
},
on
:{
change
:
e
.
interviewPage
},
model
:{
value
:
e
.
questionType
,
callback
:
function
(
t
){
e
.
questionType
=
t
},
expression
:
"
questionType
"
}},
e
.
_l
(
e
.
options
,(
function
(
e
){
return
n
(
"
el-option
"
,{
key
:
e
.
questionType
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
questionType
}})})),
1
),
n
(
"
el-form-item
"
,[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
interviewPage
}},[
e
.
_v
(
"
查询
"
)])],
1
),
n
(
"
el-form-item
"
,[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
prepareAdd
}},[
e
.
_v
(
"
新增
"
)])],
1
),
n
(
"
el-form-item
"
,[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
prepareMutiAdd
}},[
e
.
_v
(
"
批量新增
"
)])],
1
)],
1
),
n
(
"
el-table
"
,{
directives
:[{
name
:
"
loading
"
,
rawName
:
"
v-loading
"
,
value
:
e
.
loading
,
expression
:
"
loading
"
}],
attrs
:{
border
:
""
,
data
:
e
.
userlist
}},[
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
id
"
,
label
:
"
序号
"
,
width
:
"
100
"
,
sortable
:
""
}}),
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
question
"
,
label
:
"
面试问题
"
,
"
show-overflow-tooltip
"
:
""
}}),
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
questionTypeName
"
,
label
:
"
问题类型
"
,
"
show-overflow-tooltip
"
:
""
,
align
:
"
center
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
n
(
"
span
"
,{
class
:
e
.
getClassForValue
(
t
.
row
.
questionTypeName
),
domProps
:{
innerHTML
:
e
.
_s
(
t
.
row
.
questionTypeName
)}})]}}])}),
n
(
"
el-table-column
"
,{
attrs
:{
label
:
"
创建时间
"
,
width
:
"
170
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
_f
(
"
dateFormat
"
)(
t
.
row
.
createTime
))
+
"
"
)]}}])}),
n
(
"
el-table-column
"
,{
attrs
:{
prop
:
"
操作
"
,
label
:
"
操作
"
,
width
:
"
180
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
success
"
,
width
:
"
200
"
},
on
:{
click
:
function
(
n
){
return
n
.
preventDefault
(),
e
.
preEdit
(
t
.
row
.
id
,
t
.
row
.
question
,
t
.
row
.
questionTypeName
)}}},[
e
.
_v
(
"
编辑
"
)]),
n
(
"
el-dialog
"
,{
attrs
:{
title
:
"
编辑面试问题
"
,
visible
:
e
.
editVisible
},
on
:{
"
update:visible
"
:
function
(
t
){
e
.
editVisible
=
t
}}},[
n
(
"
el-form
"
,{
attrs
:{
model
:
e
.
form
}},[
n
(
"
el-form-item
"
,{
attrs
:{
label
:
"
面试问题
"
,
"
label-width
"
:
e
.
formLabelWidth
}},[
n
(
"
el-input
"
,{
staticClass
:
"
custom-textarea
"
,
staticStyle
:{
"
text-align
"
:
"
left
"
},
attrs
:{
type
:
"
textarea
"
,
autocomplete
:
"
off
"
,
rows
:
5
,
cols
:
30
},
model
:{
value
:
e
.
form
.
question
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"
question
"
,
t
)},
expression
:
"
form.question
"
}})],
1
),
n
(
"
el-form-item
"
,{
attrs
:{
label
:
"
问题类型
"
,
"
label-width
"
:
e
.
formLabelWidth
}},[
n
(
"
el-select
"
,{
staticStyle
:{
"
text-align
"
:
"
left
"
},
attrs
:{
placeholder
:
"
请选择问题类型
"
},
model
:{
value
:
e
.
form
.
questionType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"
questionType
"
,
t
)},
expression
:
"
form.questionType
"
}},
e
.
_l
(
e
.
options
,(
function
(
e
){
return
n
(
"
el-option
"
,{
key
:
e
.
questionType
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
questionType
}})})),
1
)],
1
)],
1
),
n
(
"
div
"
,{
staticClass
:
"
dialog-footer
"
,
attrs
:{
slot
:
"
footer
"
},
slot
:
"
footer
"
},[
n
(
"
el-button
"
,{
on
:{
click
:
function
(
t
){
e
.
editVisible
=!
1
}}},[
e
.
_v
(
"
取 消
"
)]),
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
editConfirm
}},[
e
.
_v
(
"
确 定
"
)])],
1
)],
1
),
n
(
"
el-button
"
,{
attrs
:{
type
:
"
danger
"
},
on
:{
click
:
function
(
n
){
return
e
.
prepareDelete
(
t
.
row
.
id
)}}},[
e
.
_v
(
"
删除
"
)]),
n
(
"
el-dialog
"
,{
attrs
:{
title
:
"
提示
"
,
visible
:
e
.
dialogVisible
,
width
:
"
30%
"
,
"
before-close
"
:
e
.
handleClose
},
on
:{
"
update:visible
"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
n
(
"
span
"
,[
e
.
_v
(
"
确认删除吗
"
)]),
n
(
"
span
"
,{
staticClass
:
"
dialog-footer
"
,
attrs
:{
slot
:
"
footer
"
},
slot
:
"
footer
"
},[
n
(
"
el-button
"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"
取 消
"
)]),
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
t
.
preventDefault
(),
e
.
onDelete
(
e
.
currentRowId
)}}},[
e
.
_v
(
"
确 定
"
)])],
1
)])]}}])})],
1
),
n
(
"
el-pagination
"
,{
key
:
e
.
elementui_page_component_key
,
staticClass
:
"
pagination
"
,
attrs
:{
background
:
""
,
"
current-page
"
:
e
.
currentPage
,
"
page-size
"
:
e
.
pageSize
,
total
:
e
.
total
},
on
:{
"
update:currentPage
"
:
function
(
t
){
e
.
currentPage
=
t
},
"
update:current-page
"
:
function
(
t
){
e
.
currentPage
=
t
},
"
current-change
"
:
e
.
handleCurrentChange
}})],
1
),
n
(
"
el-backtop
"
,{
staticClass
:
"
backtop
"
})],
1
)],
1
)},
he
=
[],
be
=
(
n
(
"
159b
"
),
n
(
"
b0c0
"
),{
name
:
"
MyInterview
"
,
data
:
function
(){
return
{
userlist
:[],
loading
:
!
1
,
elementui_page_component_key
:
0
,
currentPage
:
Number
(
localStorage
.
getItem
(
"
lastPage
"
))
||
1
,
pageSize
:
9
,
total
:
0
,
formInline
:{
question
:
""
},
options
:[],
questionType
:
0
,
dialogFormVisible
:
!
1
,
dialogMutiFormVisible
:
!
1
,
form
:{
question
:
""
,
questionType
:
0
},
formLabelWidth
:
"
120px
"
,
dialogVisible
:
!
1
,
editVisible
:
!
1
,
currentRowId
:
null
}},
watch
:{
"
formInline.question
"
:
function
(
e
){
""
===
e
&&
(
this
.
currentPage
=
1
,
localStorage
.
setItem
(
"
lastPage
"
,
this
.
currentPage
),
this
.
interviewPage
())}},
created
:
function
(){
this
.
getQuestionType
(),
this
.
interviewPage
()},
mounted
:
function
(){},
methods
:{
prepareAdd
:
function
(){
this
.
form
.
question
=
""
,
this
.
form
.
questionType
=
0
,
this
.
dialogFormVisible
=!
0
},
prepareMutiAdd
:
function
(){
this
.
form
.
question
=
""
,
this
.
form
.
questionType
=
0
,
this
.
dialogMutiFormVisible
=!
0
},
prepareDelete
:
function
(
e
){
this
.
currentRowId
=
e
,
this
.
dialogVisible
=!
0
},
preEdit
:
function
(
e
,
t
,
n
){
this
.
form
.
question
=
t
;
var
a
=
{};
this
.
options
.
forEach
((
function
(
e
){
a
[
e
.
name
]
=
e
.
questionType
})),
this
.
form
.
questionType
=
a
[
n
],
this
.
currentRowId
=
e
,
this
.
editVisible
=!
0
},
handleClose
:
function
(
e
){
this
.
$confirm
(
"
确认关闭?
"
).
then
((
function
(
t
){
e
()})).
catch
((
function
(
e
){}))},
handleConfirm
:
function
(
e
){
this
.
dialogFormVisible
=!
1
,
this
.
dialogMutiFormVisible
=!
1
,
this
.
addQuestion
(
e
)},
addQuestion
:
function
(
e
){
var
t
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
n
(){
var
a
,
r
;
return
regeneratorRuntime
.
wrap
((
function
(
n
){
while
(
1
)
switch
(
n
.
prev
=
n
.
next
){
case
0
:
return
n
.
prev
=
0
,
t
.
loading
=!
0
,
n
.
next
=
4
,
B
[
"
a
"
].
post
(
"
http://120.79.36.53:8888/interviewQuestion/add
"
,{
addType
:
e
,
question
:
t
.
form
.
question
,
questionType
:
t
.
form
.
questionType
});
case
4
:
a
=
n
.
sent
,
r
=
a
.
data
,
200
===
r
.
code
?(
t
.
form
.
question
=
""
,
t
.
form
.
questionType
=
0
,
t
.
interviewPage
()):(
console
.
error
(
"
Received non-200 status code
"
,
r
),
t
.
errorMsg
(
r
.
message
)),
n
.
next
=
12
;
break
;
case
9
:
n
.
prev
=
9
,
n
.
t0
=
n
[
"
catch
"
](
0
),
console
.
error
(
"
An error occurred while adding the question:
"
,
n
.
t0
);
case
12
:
return
n
.
prev
=
12
,
t
.
loading
=!
1
,
n
.
finish
(
12
);
case
15
:
case
"
end
"
:
return
n
.
stop
()}}),
n
,
null
,[[
0
,
9
,
12
,
15
]])})))()},
errorMsg
:
function
(
e
){
this
.
$message
({
showClose
:
!
0
,
message
:
e
,
type
:
"
error
"
})},
editConfirm
:
function
(){
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
(){
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
t
.
prev
=
0
,
e
.
loading
=!
0
,
t
.
next
=
4
,
B
[
"
a
"
].
post
(
"
http://120.79.36.53:8888/interviewQuestion/update
"
,{
id
:
e
.
currentRowId
,
question
:
e
.
form
.
question
,
questionType
:
e
.
form
.
questionType
});
case
4
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
?(
e
.
form
.
question
=
""
,
e
.
form
.
questionType
=
0
,
e
.
editVisible
=!
1
,
e
.
interviewPage
()):
console
.
error
(
"
Received non-200 status code
"
,
a
),
t
.
next
=
12
;
break
;
case
9
:
t
.
prev
=
9
,
t
.
t0
=
t
[
"
catch
"
](
0
),
console
.
error
(
"
An error occurred while adding the question:
"
,
t
.
t0
);
case
12
:
return
t
.
prev
=
12
,
e
.
loading
=!
1
,
t
.
finish
(
12
);
case
15
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
null
,[[
0
,
9
,
12
,
15
]])})))()},
onDelete
:
function
(
e
){
var
t
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
n
(){
var
a
;
return
regeneratorRuntime
.
wrap
((
function
(
n
){
while
(
1
)
switch
(
n
.
prev
=
n
.
next
){
case
0
:
return
t
.
dialogVisible
=!
1
,
t
.
loading
=!
0
,
n
.
next
=
4
,
B
[
"
a
"
].
get
(
"
http://120.79.36.53:8888/interviewQuestion/delete
"
,{
params
:{
id
:
e
}});
case
4
:
a
=
n
.
sent
,
a
.
data
,
t
.
interviewPage
(),
t
.
loading
=!
1
;
case
8
:
case
"
end
"
:
return
n
.
stop
()}}),
n
)})))()},
refreshPage
:
function
(){
this
.
getQuestionType
(),
location
.
reload
()},
getQuestionType
:
function
(){
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
(){
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
t
.
next
=
2
,
B
[
"
a
"
].
get
(
"
http://120.79.36.53:8888/interviewQuestion/questionType
"
,{
params
:{}});
case
2
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
&&
(
e
.
options
=
a
.
result
);
case
5
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})))()},
interviewPage
:
function
(){
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
(){
var
n
,
a
,
r
;
return
regeneratorRuntime
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
e
.
loading
=!
0
,
t
.
next
=
3
,
B
[
"
a
"
].
get
(
"
http://120.79.36.53:8888/interviewQuestion/page
"
,{
params
:{
page
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
question
:
e
.
formInline
.
question
,
questionType
:
e
.
questionType
}});
case
3
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
&&
(
e
.
total
=
a
.
result
.
totalElements
,
r
=
{},
e
.
options
.
forEach
((
function
(
e
){
r
[
e
.
questionType
]
=
e
.
name
})),
a
.
result
.
content
.
forEach
((
function
(
e
){
e
.
questionTypeName
=
r
[
e
.
questionType
]
||
"
Unknown
"
})),
e
.
userlist
=
a
.
result
.
content
),
e
.
loading
=!
1
;
case
7
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})))()},
getClassForValue
:
function
(
e
){
return
"
基础知识
"
===
e
?
"
reddish-purple-value
"
:
"
集合
"
===
e
?
"
new-orange-value
"
:
"
JVM
"
===
e
?
"
clove-tea-value
"
:
"
并发编程
"
===
e
?
"
grassy-value
"
:
"
MySql
"
===
e
?
"
daylily-value
"
:
"
Redis
"
===
e
?
"
balloon-flower-value
"
:
"
中间件
"
===
e
?
"
pink-value
"
:
"
Spring
"
===
e
?
"
purple-value
"
:
"
微服务
"
===
e
?
"
sapphire-blue-value
"
:
"
分布式
"
===
e
?
"
green-value
"
:
"
项目
"
===
e
?
"
black-value
"
:
"
算法
"
===
e
?
"
rose-hermosa-value
"
:
"
反问环节
"
===
e
?
"
white-dress-value
"
:
"
设计模式
"
===
e
?
"
prunus-gracilis-value
"
:
"
其他
"
===
e
?
"
magenta-value
"
:
"
dark-blue-value
"
},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
interviewPage
()}}}),
ve
=
be
,
ye
=
(
n
(
"
bfaf
"
),
Object
(
l
[
"
a
"
])(
ve
,
ge
,
he
,
!
1
,
null
,
"
153268c2
"
,
null
)),
we
=
ye
.
exports
,
_e
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
h4
"
,{
staticClass
:
"
text-center
"
},[
e
.
_v
(
"
系统设置
"
)])},
ke
=
[],
xe
=
{
name
:
"
MySettings
"
},
Ce
=
xe
,
qe
=
Object
(
l
[
"
a
"
])(
Ce
,
_e
,
ke
,
!
1
,
null
,
"
accd7558
"
,
null
),
Ie
=
qe
.
exports
,
Pe
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
button
"
,{
staticClass
:
"
btn btn-light btn-sm
"
,
attrs
:{
type
:
"
button
"
},
on
:{
click
:
function
(
t
){
return
e
.
$router
.
back
()}}},[
e
.
_v
(
"
后退
"
)]),
n
(
"
h4
"
,{
staticClass
:
"
text-center
"
},[
e
.
_v
(
"
用户详情 ---
"
+
e
.
_s
(
e
.
id
))])])},
Te
=
[],
Se
=
{
name
:
"
MyUserDetail
"
,
props
:[
"
id
"
]},
$e
=
Se
,
Oe
=
Object
(
l
[
"
a
"
])(
$e
,
Pe
,
Te
,
!
1
,
null
,
"
bea9073a
"
,
null
),
je
=
Oe
.
exports
,
Me
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
,
plain
:
""
,
size
:
"
medium
"
},
on
:{
click
:
e
.
goBack
}},[
e
.
_v
(
"
后退
"
)]),
n
(
"
h4
"
,{
staticClass
:
"
text-center
"
},[
e
.
_v
(
"
ChatGpt问答详情 ---
"
+
e
.
_s
(
e
.
id
))]),
n
(
"
el-container
"
,[
n
(
"
el-main
"
,[
n
(
"
el-table
"
,{
attrs
:{
border
:
""
,
data
:
e
.
list
}},[
n
(
"
el-table-column
"
,{
attrs
:{
label
:
"
序号
"
,
width
:
"
50
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
n
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
id
))])]}}])}),
n
(
"
el-table-column
"
,{
attrs
:{
label
:
"
问题
"
,
width
:
"
240
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
n
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
question
))])]}}])}),
n
(
"
el-table-column
"
,{
attrs
:{
label
:
"
回答
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
n
(
"
span
"
,{
attrs
:{
id
:
"
td-response
"
}},[
e
.
_v
(
e
.
_s
(
t
.
row
.
response
))])]}}])}),
n
(
"
el-table-column
"
,{
attrs
:{
label
:
"
创建时间
"
,
width
:
"
170
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
default
"
,
fn
:
function
(
t
){
return
[
n
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"
dateFormat
"
)(
t
.
row
.
createTime
)))])]}}])})],
1
)],
1
)],
1
),
n
(
"
div
"
,{
staticClass
:
"
button-container
"
},[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
,
round
:
""
},
on
:{
click
:
e
.
copyCode
}},[
e
.
_v
(
"
复制回答
"
)])],
1
)],
1
)},
Ve
=
[],
Re
=
{
name
:
"
MyChatDetail
"
,
props
:[
"
id
"
],
data
:
function
(){
return
{
list
:[]}},
created
:
function
(){
this
.
initChatList
()},
methods
:{
goBack
:
function
(){
var
e
=
{
back
:
"
back
"
};
this
.
$router
.
push
({
path
:
"
/home/chat
"
,
query
:
e
})},
initChatList
:
function
(){
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
(){
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
t
.
next
=
2
,
B
[
"
a
"
].
get
(
"
http://120.79.36.53:8888/chatbot/
"
+
e
.
id
);
case
2
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
&&
(
e
.
list
=
[{
id
:
a
.
result
.
id
,
question
:
a
.
result
.
question
,
response
:
a
.
result
.
response
,
createTime
:
a
.
result
.
createTime
}]);
case
5
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})))()},
copyCode
:
function
(){
var
e
=
document
.
getElementById
(
"
td-response
"
),
t
=
document
.
createRange
();
t
.
selectNode
(
e
);
var
n
=
window
.
getSelection
();
n
.
removeAllRanges
(),
n
.
addRange
(
t
),
document
.
execCommand
(
"
copy
"
),
n
.
removeAllRanges
(),
this
.
$message
.
success
(
"
代码已复制到剪贴板
"
)}}},
Ee
=
Re
,
De
=
(
n
(
"
022e
"
),
Object
(
l
[
"
a
"
])(
Ee
,
Me
,
Ve
,
!
1
,
null
,
"
9d5d30a4
"
,
null
)),
Le
=
De
.
exports
,
Fe
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
,
plain
:
""
,
size
:
"
medium
"
},
on
:{
click
:
e
.
goBack
}},[
e
.
_v
(
"
后退
"
)]),
n
(
"
h4
"
,{
staticClass
:
"
text-center
"
},[
e
.
_v
(
"
新增ChatGpt问答
"
)]),
n
(
"
el-container
"
,{
staticClass
:
"
container
"
},[
n
(
"
el-form
"
,{
ref
:
"
form
"
,
attrs
:{
model
:
e
.
form
,
"
label-width
"
:
"
80px
"
}},[
n
(
"
el-form-item
"
,{
attrs
:{
label
:
"
问题
"
}},[
n
(
"
el-input
"
,{
model
:{
value
:
e
.
form
.
question
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"
question
"
,
t
)},
expression
:
"
form.question
"
}})],
1
),
n
(
"
el-form-item
"
,{
attrs
:{
label
:
"
答案
"
}},[
n
(
"
el-input
"
,{
attrs
:{
type
:
"
textarea
"
},
model
:{
value
:
e
.
form
.
response
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"
response
"
,
t
)},
expression
:
"
form.response
"
}})],
1
),
n
(
"
el-form-item
"
,[
n
(
"
el-button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"
立即创建
"
)]),
n
(
"
el-button
"
,{
on
:{
click
:
e
.
clearContent
}},[
e
.
_v
(
"
取消
"
)])],
1
)],
1
)],
1
)],
1
)},
Ne
=
[],
ze
=
{
name
:
"
AddChatDetail
"
,
data
:
function
(){
return
{
form
:{
question
:
""
,
response
:
""
}}},
methods
:{
clearContent
:
function
(){
this
.
form
.
question
=
""
,
this
.
form
.
response
=
""
},
onSubmit
:
function
(){
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
(){
var
n
;
return
regeneratorRuntime
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
n
=
{
question
:
e
.
form
.
question
,
response
:
e
.
form
.
response
},
B
[
"
a
"
].
post
(
"
http://120.79.36.53:8888/chatbot
"
,
n
).
then
((
function
(
t
){
200
===
t
.
data
.
code
&&
(
e
.
$message
.
success
({
message
:
"
问题和答案新增成功
"
,
duration
:
1
e3
}),
e
.
goBack
())})).
catch
((
function
(
t
){
e
.
$message
.
error
(
"
系统异常
"
)}));
case
2
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})))()},
goBack
:
function
(){
var
e
=
{
back
:
"
back
"
,
add
:
"
add
"
};
this
.
$router
.
push
({
path
:
"
/home/chat
"
,
query
:
e
})}}},
Ae
=
ze
,
Qe
=
(
n
(
"
66f9
"
),
Object
(
l
[
"
a
"
])(
Ae
,
Fe
,
Ne
,
!
1
,
null
,
"
ddc6c3e0
"
,
null
)),
Ue
=
Qe
.
exports
;
a
[
"
default
"
].
use
(
d
[
"
a
"
]);
var
He
=
new
d
[
"
a
"
]({
routes
:[{
path
:
"
/
"
,
redirect
:
"
/login
"
},{
path
:
"
/login
"
,
component
:
v
},{
path
:
"
/home
"
,
component
:
E
,
redirect
:
"
/home/interview
"
,
children
:[{
path
:
"
users
"
,
component
:
A
},{
path
:
"
pic
"
,
component
:
J
},{
path
:
"
goods
"
,
component
:
ne
},{
path
:
"
orders
"
,
component
:
le
},{
path
:
"
chat
"
,
component
:
fe
},{
path
:
"
interview
"
,
component
:
we
},{
path
:
"
settings
"
,
component
:
Ie
},{
path
:
"
userinfo/:id
"
,
component
:
je
,
props
:
!
0
},{
path
:
"
chatinfo/:id
"
,
component
:
Le
,
props
:
!
0
},{
path
:
"
addChat
"
,
component
:
Ue
}]}]});
He
.
beforeEach
((
function
(
e
,
t
,
n
){
if
(
-
1
!==
p
.
indexOf
(
e
.
path
)){
var
a
=
localStorage
.
getItem
(
"
token
"
);
a
?
n
():
n
(
"
/login
"
)}
else
n
()}));
var
Be
=
He
,
We
=
n
(
"
5c96
"
),
Ye
=
n
.
n
(
We
),
Ge
=
(
n
(
"
0fae
"
),
n
(
"
16b4
"
),
n
(
"
a766
"
),
n
(
"
5a0c
"
)),
Je
=
n
.
n
(
Ge
);
a
[
"
default
"
].
prototype
.
$dayjs
=
Je
.
a
,
a
[
"
default
"
].
filter
(
"
dateFormat
"
,(
function
(
e
){
var
t
=
Je
()(
e
).
format
(
"
YYYY-MM-DD HH:mm:ss
"
);
return
t
})),
a
[
"
default
"
].
use
(
Ye
.
a
),
a
[
"
default
"
].
config
.
productionTip
=!
1
,
new
a
[
"
default
"
]({
render
:
function
(
e
){
return
e
(
c
)},
router
:
Be
}).
$mount
(
"
#app
"
)},
"
66f9
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
155e
"
)},
"
68db
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
e918
"
)},
7678
:
function
(
e
,
t
,
n
){
e
.
exports
=
n
.
p
+
"
img/kwan.80e90605.png
"
},
"
7ee9
"
:
function
(
e
,
t
,
n
){},
"
808c
"
:
function
(
e
,
t
,
n
){},
9547
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
4084
"
)},
"
9d40
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
7ee9
"
)},
a766
:
function
(
e
,
t
,
n
){},
bfaf
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
5304
"
)},
e918
:
function
(
e
,
t
,
n
){}});
//# sourceMappingURL=app.a42e9102.js.map
\ No newline at end of file
(
function
(
e
)
{
function
t
(
t
)
{
for
(
var
a
,
i
,
s
=
t
[
0
],
l
=
t
[
1
],
u
=
t
[
2
],
d
=
0
,
p
=
[];
d
<
s
.
length
;
d
++
)
i
=
s
[
d
],
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
i
)
&&
r
[
i
]
&&
p
.
push
(
r
[
i
][
0
]),
r
[
i
]
=
0
;
for
(
a
in
l
)
Object
.
prototype
.
hasOwnProperty
.
call
(
l
,
a
)
&&
(
e
[
a
]
=
l
[
a
]);
c
&&
c
(
t
);
while
(
p
.
length
)
p
.
shift
()();
return
o
.
push
.
apply
(
o
,
u
||
[]),
n
()
}
function
n
()
{
for
(
var
e
,
t
=
0
;
t
<
o
.
length
;
t
++
)
{
for
(
var
n
=
o
[
t
],
a
=!
0
,
s
=
1
;
s
<
n
.
length
;
s
++
)
{
var
l
=
n
[
s
];
0
!==
r
[
l
]
&&
(
a
=!
1
)
}
a
&&
(
o
.
splice
(
t
--
,
1
),
e
=
i
(
i
.
s
=
n
[
0
]))
}
return
e
}
var
a
=
{},
r
=
{
app
:
0
},
o
=
[];
function
i
(
t
)
{
if
(
a
[
t
])
return
a
[
t
].
exports
;
var
n
=
a
[
t
]
=
{
i
:
t
,
l
:
!
1
,
exports
:
{}
};
return
e
[
t
].
call
(
n
.
exports
,
n
,
n
.
exports
,
i
),
n
.
l
=
!
0
,
n
.
exports
}
i
.
m
=
e
,
i
.
c
=
a
,
i
.
d
=
function
(
e
,
t
,
n
)
{
i
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,
{
enumerable
:
!
0
,
get
:
n
})
},
i
.
r
=
function
(
e
)
{
"
undefined
"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,
{
value
:
"
Module
"
}),
Object
.
defineProperty
(
e
,
"
__esModule
"
,
{
value
:
!
0
})
},
i
.
t
=
function
(
e
,
t
)
{
if
(
1
&
t
&&
(
e
=
i
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"
object
"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
n
=
Object
.
create
(
null
);
if
(
i
.
r
(
n
),
Object
.
defineProperty
(
n
,
"
default
"
,
{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"
string
"
!=
typeof
e
)
for
(
var
a
in
e
)
i
.
d
(
n
,
a
,
function
(
t
)
{
return
e
[
t
]
}.
bind
(
null
,
a
));
return
n
},
i
.
n
=
function
(
e
)
{
var
t
=
e
&&
e
.
__esModule
?
function
()
{
return
e
[
"
default
"
]
}
:
function
()
{
return
e
};
return
i
.
d
(
t
,
"
a
"
,
t
),
t
},
i
.
o
=
function
(
e
,
t
)
{
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)
},
i
.
p
=
"
/
"
;
var
s
=
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[],
l
=
s
.
push
.
bind
(
s
);
s
.
push
=
t
,
s
=
s
.
slice
();
for
(
var
u
=
0
;
u
<
s
.
length
;
u
++
)
t
(
s
[
u
]);
var
c
=
l
;
o
.
push
([
0
,
"
chunk-vendors
"
]),
n
()
})({
0
:
function
(
e
,
t
,
n
)
{
e
.
exports
=
n
(
"
56d7
"
)
},
"
0157
"
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
(
"
808c
"
)
},
"
022e
"
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
(
"
12df
"
)
},
"
12df
"
:
function
(
e
,
t
,
n
)
{},
"
12ff
"
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
(
"
2597
"
)
},
"
155e
"
:
function
(
e
,
t
,
n
)
{},
"
16b4
"
:
function
(
e
,
t
,
n
)
{},
"
248e
"
:
function
(
e
,
t
,
n
)
{},
2597
:
function
(
e
,
t
,
n
)
{},
"
2aba
"
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
(
"
248e
"
)
},
4084
:
function
(
e
,
t
,
n
)
{},
5304
:
function
(
e
,
t
,
n
)
{},
"
56d7
"
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
.
r
(
t
);
n
(
"
e260
"
),
n
(
"
e6cf
"
),
n
(
"
cca6
"
),
n
(
"
a79d
"
),
n
(
"
4de4
"
);
var
a
=
n
(
"
2b0e
"
),
r
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
router-view
"
)
},
o
=
[],
i
=
{
name
:
"
MyApp
"
},
s
=
i
,
l
=
n
(
"
2877
"
),
u
=
Object
(
l
[
"
a
"
])(
s
,
r
,
o
,
!
1
,
null
,
"
633dd7d9
"
,
null
),
c
=
u
.
exports
,
d
=
n
(
"
8c4f
"
),
p
=
[
"
/home
"
,
"
/home/users
"
,
"
/home/pic
"
],
m
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
{
staticClass
:
"
login-container
"
},
[
n
(
"
div
"
,
{
staticClass
:
"
login-box
"
},
[
e
.
_m
(
0
),
n
(
"
div
"
,
{
staticClass
:
"
form-login p-4
"
},
[
n
(
"
div
"
,
{
staticClass
:
"
form-group form-inline
"
},
[
n
(
"
label
"
,
{
attrs
:
{
for
:
"
username
"
}
},
[
e
.
_v
(
"
登录名称
"
)]
),
n
(
"
input
"
,
{
directives
:
[
{
name
:
"
model
"
,
rawName
:
"
v-model.trim
"
,
value
:
e
.
username
,
expression
:
"
username
"
,
modifiers
:
{
trim
:
!
0
}
}
],
staticClass
:
"
form-control ml-2
"
,
attrs
:
{
type
:
"
text
"
,
id
:
"
username
"
,
placeholder
:
"
请输入登录名称
"
,
autocomplete
:
"
off
"
},
domProps
:
{
value
:
e
.
username
},
on
:
{
input
:
function
(
t
)
{
t
.
target
.
composing
||
(
e
.
username
=
t
.
target
.
value
.
trim
())
},
blur
:
function
(
t
)
{
return
e
.
$forceUpdate
()
}
}
})]
),
n
(
"
div
"
,
{
staticClass
:
"
form-group form-inline
"
},
[
n
(
"
label
"
,
{
attrs
:
{
for
:
"
password
"
}
},
[
e
.
_v
(
"
登录密码
"
)]
),
n
(
"
input
"
,
{
directives
:
[
{
name
:
"
model
"
,
rawName
:
"
v-model.trim
"
,
value
:
e
.
password
,
expression
:
"
password
"
,
modifiers
:
{
trim
:
!
0
}
}
],
staticClass
:
"
form-control ml-2
"
,
attrs
:
{
type
:
"
password
"
,
id
:
"
password
"
,
placeholder
:
"
请输入登录密码
"
},
domProps
:
{
value
:
e
.
password
},
on
:
{
input
:
function
(
t
)
{
t
.
target
.
composing
||
(
e
.
password
=
t
.
target
.
value
.
trim
())
},
blur
:
function
(
t
)
{
return
e
.
$forceUpdate
()
}
}
})]
),
n
(
"
div
"
,
{
staticClass
:
"
form-group form-inline d-flex justify-content-end
"
},
[
n
(
"
button
"
,
{
staticClass
:
"
btn btn-secondary mr-2
"
,
attrs
:
{
type
:
"
button
"
},
on
:
{
click
:
e
.
reset
}
},
[
e
.
_v
(
"
重置
"
)]),
n
(
"
button
"
,
{
staticClass
:
"
btn btn-primary
"
,
attrs
:
{
type
:
"
button
"
},
on
:
{
click
:
e
.
login
}
},
[
e
.
_v
(
"
登录
"
)])
])])
])
])
},
f
=
[
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,
{
staticClass
:
"
text-center avatar-box
"
},
[
a
(
"
img
"
,
{
staticClass
:
"
img-thumbnail avatar
"
,
attrs
:
{
src
:
n
(
"
7678
"
),
alt
:
"
kwan的解忧杂货铺
"
}
})])
}
],
g
=
{
name
:
"
MyLogin
"
,
data
:
function
()
{
return
{
username
:
""
,
password
:
""
}
},
methods
:
{
reset
:
function
()
{
this
.
username
=
""
,
this
.
password
=
""
},
login
:
function
()
{
"
admin
"
===
this
.
username
&&
"
666666
"
===
this
.
password
?
(
localStorage
.
setItem
(
"
token
"
,
"
Bearer xxxx
"
),
this
.
$router
.
push
(
"
/home
"
))
:
localStorage
.
removeItem
(
"
token
"
)
}
}
},
h
=
g
,
b
=
(
n
(
"
12ff
"
),
Object
(
l
[
"
a
"
])(
h
,
m
,
f
,
!
1
,
null
,
"
1be4e8ce
"
,
null
)),
v
=
b
.
exports
,
y
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
{
staticClass
:
"
home-container
"
},
[
n
(
"
el-row
"
,
[
n
(
"
el-col
"
,
{
attrs
:
{
span
:
24
}
},
[
n
(
"
MyHeader
"
)],
1
)],
1
),
n
(
"
el-row
"
,
[
n
(
"
el-col
"
,
{
attrs
:
{
span
:
3
}
},
[
n
(
"
MyAside
"
)],
1
),
n
(
"
el-col
"
,
{
attrs
:
{
span
:
21
}
},
[
n
(
"
router-view
"
)],
1
)
],
1
)
],
1
)
},
w
=
[],
_
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
{
staticClass
:
"
layout-header-container d-flex justify-content-between align-items-center p-3
"
},
[
e
.
_m
(
0
),
n
(
"
el-row
"
,
[
n
(
"
el-col
"
,
{
attrs
:
{
inline
:
!
0
,
span
:
24
}
},
[
n
(
"
el-button
"
,
{
staticClass
:
"
el-button-header
"
,
attrs
:
{
type
:
"
success
"
,
round
:
""
},
on
:
{
click
:
e
.
myHome
}
},
[
e
.
_v
(
"
我的主页
"
)]),
n
(
"
el-button
"
,
{
staticClass
:
"
el-button-header
"
,
attrs
:
{
type
:
"
primary
"
,
round
:
""
},
on
:
{
click
:
e
.
logout
}
},
[
e
.
_v
(
"
退出登录
"
)])
],
1
)],
1
)
],
1
)
},
k
=
[
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,
{
staticClass
:
"
layout-header-left d-flex align-items-center user-select-none
"
},
[
a
(
"
img
"
,
{
staticClass
:
"
layout-header-left-img
"
,
attrs
:
{
src
:
n
(
"
7678
"
),
alt
:
""
}
}),
a
(
"
h4
"
,
{
staticClass
:
"
layout-header-left-title ml-3
"
},
[
e
.
_v
(
"
kwan的解忧杂货铺
"
)])
])
}
],
x
=
{
name
:
"
MyHeader
"
,
methods
:
{
logout
:
function
()
{
localStorage
.
removeItem
(
"
token
"
),
this
.
$router
.
push
(
"
/login
"
)
},
myHome
:
function
()
{
window
.
open
(
"
http://qinyingjie.top/
"
)
}
}
},
C
=
x
,
q
=
(
n
(
"
9d40
"
),
Object
(
l
[
"
a
"
])(
C
,
_
,
k
,
!
1
,
null
,
"
36ae6cf9
"
,
null
)),
I
=
q
.
exports
,
P
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
el-menu
"
,
{
staticClass
:
"
layout-aside-container
"
,
attrs
:
{
"
default-active
"
:
"
$route.path
"
,
"
background-color
"
:
"
#fff
"
,
"
text-color
"
:
"
#000
"
,
"
active-text-color
"
:
"
#42b983
"
}
},
[
n
(
"
router-link
"
,
{
attrs
:
{
to
:
"
/home/interview
"
}
},
[
n
(
"
el-menu-item
"
,
{
staticClass
:
"
left-aside-item
"
,
attrs
:
{
index
:
"
/interview
"
}
},
[
n
(
"
i
"
,
{
staticClass
:
"
el-icon-question
"
}),
n
(
"
span
"
,
{
attrs
:
{
slot
:
"
title
"
},
slot
:
"
title
"
},
[
e
.
_v
(
"
面试题管理
"
)])
])],
1
),
n
(
"
router-link
"
,
{
attrs
:
{
to
:
"
/home/chat
"
}
},
[
n
(
"
el-menu-item
"
,
{
staticClass
:
"
left-aside-item
"
,
attrs
:
{
index
:
"
/chat
"
}
},
[
n
(
"
i
"
,
{
staticClass
:
"
el-icon-chat-line-square
"
}),
n
(
"
span
"
,
{
attrs
:
{
slot
:
"
title
"
},
slot
:
"
title
"
},
[
e
.
_v
(
"
CHAT管理
"
)])
])],
1
),
n
(
"
router-link
"
,
{
attrs
:
{
to
:
"
/home/pic
"
}
},
[
n
(
"
el-menu-item
"
,
{
staticClass
:
"
left-aside-item
"
,
attrs
:
{
index
:
"
/pic
"
}
},
[
n
(
"
i
"
,
{
staticClass
:
"
el-icon-setting
"
}),
n
(
"
span
"
,
{
attrs
:
{
slot
:
"
title
"
},
slot
:
"
title
"
},
[
e
.
_v
(
"
图片管理
"
)])
])],
1
),
n
(
"
router-link
"
,
{
attrs
:
{
to
:
"
/home/users
"
}
},
[
n
(
"
el-menu-item
"
,
{
staticClass
:
"
left-aside-item
"
,
attrs
:
{
index
:
"
/users
"
}
},
[
n
(
"
i
"
,
{
staticClass
:
"
el-icon-user
"
}),
n
(
"
span
"
,
{
attrs
:
{
slot
:
"
title
"
},
slot
:
"
title
"
},
[
e
.
_v
(
"
用户管理
"
)])
])],
1
),
n
(
"
router-link
"
,
{
attrs
:
{
to
:
"
/home/goods
"
}
},
[
n
(
"
el-menu-item
"
,
{
staticClass
:
"
left-aside-item
"
,
attrs
:
{
index
:
"
/goods
"
}
},
[
n
(
"
i
"
,
{
staticClass
:
"
el-icon-goods
"
}),
n
(
"
span
"
,
{
attrs
:
{
slot
:
"
title
"
},
slot
:
"
title
"
},
[
e
.
_v
(
"
商品管理
"
)])
])],
1
),
n
(
"
router-link
"
,
{
attrs
:
{
to
:
"
/home/orders
"
}
},
[
n
(
"
el-menu-item
"
,
{
staticClass
:
"
left-aside-item
"
,
attrs
:
{
index
:
"
/orders
"
}
},
[
n
(
"
i
"
,
{
staticClass
:
"
el-icon-s-order
"
}),
n
(
"
span
"
,
{
attrs
:
{
slot
:
"
title
"
},
slot
:
"
title
"
},
[
e
.
_v
(
"
订单管理
"
)])
])],
1
),
n
(
"
router-link
"
,
{
attrs
:
{
to
:
"
/home/settings
"
}
},
[
n
(
"
el-menu-item
"
,
{
staticClass
:
"
left-aside-item
"
,
attrs
:
{
index
:
"
/settings
"
}
},
[
n
(
"
i
"
,
{
staticClass
:
"
el-icon-setting
"
}),
n
(
"
span
"
,
{
attrs
:
{
slot
:
"
title
"
},
slot
:
"
title
"
},
[
e
.
_v
(
"
系统设置
"
)])
])],
1
)
],
1
)
},
T
=
[],
S
=
{
name
:
"
MyAside
"
},
$
=
S
,
O
=
(
n
(
"
2aba
"
),
Object
(
l
[
"
a
"
])(
$
,
P
,
T
,
!
1
,
null
,
"
3160d41c
"
,
null
)),
j
=
O
.
exports
,
M
=
{
name
:
"
MyHome
"
,
components
:
{
MyHeader
:
I
,
MyAside
:
j
}
},
V
=
M
,
R
=
(
n
(
"
9547
"
),
Object
(
l
[
"
a
"
])(
V
,
y
,
w
,
!
1
,
null
,
"
e41dbfec
"
,
null
)),
E
=
R
.
exports
,
D
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
[
n
(
"
h4
"
,
{
staticClass
:
"
text-center
"
},
[
e
.
_v
(
"
用户管理
"
)]),
n
(
"
table
"
,
{
staticClass
:
"
table table-bordered table-striped table-hover
"
},
[
e
.
_m
(
0
),
n
(
"
tbody
"
,
e
.
_l
(
e
.
userlist
,
(
function
(
t
)
{
return
n
(
"
tr
"
,
{
key
:
t
.
id
},
[
n
(
"
td
"
,
[
e
.
_v
(
e
.
_s
(
t
.
id
))]),
n
(
"
td
"
,
[
e
.
_v
(
e
.
_s
(
t
.
name
))]),
n
(
"
td
"
,
[
e
.
_v
(
e
.
_s
(
t
.
age
))]),
n
(
"
td
"
,
[
e
.
_v
(
e
.
_s
(
t
.
position
))]),
n
(
"
td
"
,
[
n
(
"
a
"
,
{
attrs
:
{
href
:
"
#
"
},
on
:
{
click
:
function
(
n
)
{
return
n
.
preventDefault
(),
e
.
gotoDetail
(
t
.
id
)
}
}
},
[
e
.
_v
(
"
详情
"
)])])
])
})),
0
)
])
])
},
L
=
[
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
thead
"
,
[
n
(
"
tr
"
,
[
n
(
"
th
"
,
[
e
.
_v
(
"
序号
"
)]),
n
(
"
th
"
,
[
e
.
_v
(
"
姓名
"
)]),
n
(
"
th
"
,
[
e
.
_v
(
"
年龄
"
)]),
n
(
"
th
"
,
[
e
.
_v
(
"
头衔
"
)]),
n
(
"
th
"
,
[
e
.
_v
(
"
操作
"
)])
])])
}
],
F
=
{
name
:
"
MyUser
"
,
data
:
function
()
{
return
{
userlist
:
[
{
id
:
1
,
name
:
"
嬴政
"
,
age
:
18
,
position
:
"
始皇帝
"
},
{
id
:
2
,
name
:
"
李斯
"
,
age
:
35
,
position
:
"
丞相
"
},
{
id
:
3
,
name
:
"
吕不韦
"
,
age
:
50
,
position
:
"
商人
"
},
{
id
:
4
,
name
:
"
赵姬
"
,
age
:
48
,
position
:
"
王太后
"
}
]
}
},
methods
:
{
gotoDetail
:
function
(
e
)
{
this
.
$router
.
push
(
"
/home/userinfo/
"
+
e
)
}
}
},
N
=
F
,
z
=
Object
(
l
[
"
a
"
])(
N
,
D
,
L
,
!
1
,
null
,
"
02f3073a
"
,
null
),
A
=
z
.
exports
,
Q
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
[
n
(
"
el-container
"
,
[
n
(
"
el-main
"
,
[
n
(
"
el-select
"
,
{
attrs
:
{
placeholder
:
"
请选择
"
},
on
:
{
change
:
e
.
queryPic
},
model
:
{
value
:
e
.
picType
,
callback
:
function
(
t
)
{
e
.
picType
=
t
},
expression
:
"
picType
"
}
},
e
.
_l
(
e
.
options
,
(
function
(
e
)
{
return
n
(
"
el-option
"
,
{
key
:
e
.
value
,
attrs
:
{
label
:
e
.
label
,
value
:
e
.
value
}
})
})),
1
),
n
(
"
el-table
"
,
{
directives
:
[
{
name
:
"
loading
"
,
rawName
:
"
v-loading
"
,
value
:
e
.
loading
,
expression
:
"
loading
"
}
],
attrs
:
{
border
:
""
,
data
:
e
.
picList
}
},
[
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
id
"
,
label
:
"
序号
"
,
width
:
"
100
"
,
sortable
:
""
}
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
picName
"
,
label
:
"
图片名字
"
,
width
:
"
240
"
,
"
show-overflow-tooltip
"
:
""
}
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
align
:
"
center
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
n
(
"
img
"
,
{
staticStyle
:
{
cursor
:
"
pointer
"
},
attrs
:
{
src
:
t
.
row
.
picUrl
,
alt
:
"
图片
"
,
height
:
"
100px
"
},
on
:
{
click
:
function
(
n
)
{
return
e
.
showImageDialog
(
t
.
row
.
picUrl
,
t
.
$index
)
}
}
})]
}
}]
)
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
label
:
"
创建时间
"
,
width
:
"
170
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
_f
(
"
dateFormat
"
)(
t
.
row
.
createTime
))
+
"
"
)]
}
}]
)
})
],
1
),
n
(
"
el-dialog
"
,
{
attrs
:
{
visible
:
e
.
imageDialogVisible
,
width
:
"
30%
"
},
on
:
{
"
update:visible
"
:
function
(
t
)
{
e
.
imageDialogVisible
=
t
}
}
},
[
n
(
"
div
"
,
{
staticStyle
:
{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
space-between
"
}
},
[
n
(
"
button
"
,
{
staticClass
:
"
arrow-button
"
,
class
:
{
disabled
:
0
===
e
.
imageIndex
},
attrs
:
{
disabled
:
0
===
e
.
imageIndex
},
on
:
{
click
:
e
.
showBeforeImage
}
},
[
n
(
"
el-icon
"
,
{
staticClass
:
"
custom-icon
"
,
attrs
:
{
name
:
"
arrow-left
"
}
})],
1
),
n
(
"
img
"
,
{
staticStyle
:
{
width
:
"
80%
"
},
attrs
:
{
src
:
e
.
enlargedImageUrl
,
alt
:
"
放大图片
"
}
}),
n
(
"
button
"
,
{
staticClass
:
"
arrow-button
"
,
class
:
{
disabled
:
e
.
imageIndex
===
e
.
picList
.
length
-
1
},
attrs
:
{
disabled
:
e
.
imageIndex
===
e
.
picList
.
length
-
1
},
on
:
{
click
:
e
.
showNextImage
}
},
[
n
(
"
el-icon
"
,
{
staticClass
:
"
custom-icon
"
,
attrs
:
{
name
:
"
arrow-right
"
}
})],
1
)
])]),
n
(
"
el-pagination
"
,
{
key
:
e
.
elementui_page_component_key
,
staticClass
:
"
pagination
"
,
attrs
:
{
background
:
""
,
"
current-page
"
:
e
.
currentPage
,
"
page-size
"
:
e
.
pageSize
,
total
:
e
.
total
},
on
:
{
"
update:currentPage
"
:
function
(
t
)
{
e
.
currentPage
=
t
},
"
update:current-page
"
:
function
(
t
)
{
e
.
currentPage
=
t
},
"
current-change
"
:
e
.
handleCurrentChange
}
})
],
1
)],
1
)],
1
)
},
U
=
[],
H
=
n
(
"
1da1
"
),
B
=
(
n
(
"
96cf
"
),
n
(
"
cee4
"
)),
W
=
{
name
:
"
MyPic
"
,
data
:
function
()
{
return
{
picList
:
[],
loading
:
!
1
,
elementui_page_component_key
:
0
,
currentPage
:
1
,
pageSize
:
6
,
total
:
0
,
imageDialogVisible
:
!
1
,
enlargedImageUrl
:
""
,
imageIndex
:
0
,
options
:
[
{
value
:
0
,
label
:
"
宝宝照片
"
},
{
value
:
1
,
label
:
"
学习照片
"
},
{
value
:
2
,
label
:
"
风景照片
"
},
{
value
:
3
,
label
:
"
美女照片
"
},
{
value
:
99
,
label
:
"
其他照片
"
}
],
picType
:
0
}
},
created
:
function
()
{
this
.
queryPic
()
},
methods
:
{
showBeforeImage
:
function
()
{
this
.
imageIndex
>
0
&&
(
this
.
imageIndex
--
,
this
.
enlargedImageUrl
=
this
.
picList
[
this
.
imageIndex
].
picUrl
,
this
.
imageDialogVisible
=!
0
)
},
showNextImage
:
function
()
{
this
.
imageIndex
<
this
.
picList
.
length
-
1
&&
(
this
.
imageIndex
++
,
this
.
enlargedImageUrl
=
this
.
picList
[
this
.
imageIndex
].
picUrl
,
this
.
imageDialogVisible
=!
0
)
},
showImageDialog
:
function
(
e
,
t
)
{
this
.
enlargedImageUrl
=
e
,
this
.
imageDialogVisible
=
!
0
,
this
.
imageIndex
=
t
},
queryPic
:
function
()
{
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
()
{
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
)
{
while
(
1
)
switch
(
t
.
prev
=
t
.
next
)
{
case
0
:
return
e
.
loading
=
!
0
,
t
.
next
=
3
,
B
[
"
a
"
].
get
(
"
http://localhost:8888/picInfo/page
"
,
{
params
:
{
page
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
picType
:
e
.
picType
}
});
case
3
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
&&
(
e
.
picList
=
a
.
result
.
records
,
e
.
total
=
a
.
result
.
total
),
e
.
loading
=
!
1
;
case
7
:
case
"
end
"
:
return
t
.
stop
()
}
}),
t
)
})))()
},
handleCurrentChange
:
function
(
e
)
{
this
.
currentPage
=
e
,
this
.
queryPic
()
}
}
},
Y
=
W
,
G
=
(
n
(
"
0157
"
),
Object
(
l
[
"
a
"
])(
Y
,
Q
,
U
,
!
1
,
null
,
"
15b8f4b2
"
,
null
)),
J
=
G
.
exports
,
K
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
h4
"
,
{
staticClass
:
"
text-center
"
},
[
e
.
_v
(
"
商品管理
"
)])
},
X
=
[],
Z
=
{
name
:
"
MyGoods
"
},
ee
=
Z
,
te
=
Object
(
l
[
"
a
"
])(
ee
,
K
,
X
,
!
1
,
null
,
"
716085f0
"
,
null
),
ne
=
te
.
exports
,
ae
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
h4
"
,
{
staticClass
:
"
text-center
"
},
[
e
.
_v
(
"
订单管理
"
)])
},
re
=
[],
oe
=
{
name
:
"
MyOrders
"
},
ie
=
oe
,
se
=
Object
(
l
[
"
a
"
])(
ie
,
ae
,
re
,
!
1
,
null
,
"
3275af60
"
,
null
),
le
=
se
.
exports
,
ue
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
[
n
(
"
el-container
"
,
[
n
(
"
el-main
"
,
[
n
(
"
el-form
"
,
{
staticClass
:
"
demo-form-inline
"
,
attrs
:
{
inline
:
!
0
,
model
:
e
.
formInline
}
},
[
n
(
"
el-form-item
"
,
[
n
(
"
el-input
"
,
{
attrs
:
{
clearable
:
""
,
placeholder
:
"
请输入问题
"
},
nativeOn
:
{
keydown
:
function
(
t
)
{
return
!
t
.
type
.
indexOf
(
"
key
"
)
&&
e
.
_k
(
t
.
keyCode
,
"
enter
"
,
13
,
t
.
key
,
"
Enter
"
)
?
null
:
e
.
initCartList
.
apply
(
null
,
arguments
)
}
},
model
:
{
value
:
e
.
formInline
.
question
,
callback
:
function
(
t
)
{
e
.
$set
(
e
.
formInline
,
"
question
"
,
t
)
},
expression
:
"
formInline.question
"
}
})],
1
),
n
(
"
el-form-item
"
,
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
e
.
initCartList
}
},
[
e
.
_v
(
"
查询
"
)])],
1
),
n
(
"
el-form-item
"
,
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
function
(
t
)
{
return
t
.
preventDefault
(),
e
.
addChat
.
apply
(
null
,
arguments
)
}
}
},
[
e
.
_v
(
"
新增
"
)])],
1
)
],
1
),
n
(
"
el-table
"
,
{
directives
:
[
{
name
:
"
loading
"
,
rawName
:
"
v-loading
"
,
value
:
e
.
loading
,
expression
:
"
loading
"
}
],
attrs
:
{
border
:
""
,
data
:
e
.
userlist
}
},
[
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
id
"
,
label
:
"
序号
"
,
width
:
"
100
"
,
sortable
:
""
}
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
question
"
,
label
:
"
问题
"
,
width
:
"
240
"
,
"
show-overflow-tooltip
"
:
""
}
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
response
"
,
label
:
"
答案
"
,
"
show-overflow-tooltip
"
:
""
}
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
label
:
"
创建时间
"
,
width
:
"
170
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
_f
(
"
dateFormat
"
)(
t
.
row
.
createTime
))
+
"
"
)]
}
}]
)
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
详情
"
,
label
:
"
详情
"
,
width
:
"
180
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
success
"
},
on
:
{
click
:
function
(
n
)
{
return
n
.
preventDefault
(),
e
.
gotoDetail
(
t
.
row
.
id
)
}
}
},
[
e
.
_v
(
"
详情
"
)]),
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
danger
"
},
on
:
{
click
:
function
(
n
)
{
return
e
.
onDelete
(
t
.
row
.
id
)
}
}
},
[
e
.
_v
(
"
删除
"
)])
]
}
}]
)
})
],
1
),
n
(
"
el-pagination
"
,
{
key
:
e
.
elementui_page_component_key
,
staticClass
:
"
pagination
"
,
attrs
:
{
background
:
""
,
"
current-page
"
:
e
.
currentPage
,
"
page-size
"
:
e
.
pageSize
,
total
:
e
.
total
},
on
:
{
"
update:currentPage
"
:
function
(
t
)
{
e
.
currentPage
=
t
},
"
update:current-page
"
:
function
(
t
)
{
e
.
currentPage
=
t
},
"
current-change
"
:
e
.
handleCurrentChange
}
})
],
1
),
n
(
"
el-backtop
"
,
{
staticClass
:
"
backtop
"
})
],
1
)],
1
)
},
ce
=
[],
de
=
(
n
(
"
a9e3
"
),
{
name
:
"
MyChat
"
,
data
:
function
()
{
return
{
userlist
:
[],
loading
:
!
1
,
elementui_page_component_key
:
0
,
currentPage
:
Number
(
localStorage
.
getItem
(
"
lastPage
"
))
||
1
,
pageSize
:
9
,
total
:
0
,
formInline
:
{
question
:
""
}
}
},
watch
:
{
"
formInline.question
"
:
function
(
e
)
{
""
===
e
&&
(
this
.
currentPage
=
1
,
localStorage
.
setItem
(
"
lastPage
"
,
this
.
currentPage
),
this
.
initCartList
())
}
},
created
:
function
()
{
var
e
=
this
;
this
.
$nextTick
((
function
()
{
var
t
=
e
.
$route
.
query
.
back
,
n
=
e
.
$route
.
query
.
add
;
"
back
"
===
t
&&
"
add
"
!=
n
?
(
e
.
currentPage
=
Number
(
localStorage
.
getItem
(
"
lastPage
"
))
||
1
,
e
.
formInline
.
question
=
localStorage
.
getItem
(
"
lastQuestion
"
)
||
""
)
:
(
localStorage
.
setItem
(
"
lastPage
"
,
1
),
localStorage
.
setItem
(
"
lastQuestion
"
,
""
),
e
.
currentPage
=
1
,
e
.
formInline
.
question
=
""
),
e
.
initCartList
()
}))
},
mounted
:
function
()
{
this
.
currentPage
=
Number
(
localStorage
.
getItem
(
"
lastPage
"
))
||
1
,
this
.
formInline
.
question
=
localStorage
.
getItem
(
"
lastQuestion
"
),
this
.
elementui_page_component_key
++
},
methods
:
{
onDelete
:
function
(
e
)
{
var
t
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
n
()
{
var
a
;
return
regeneratorRuntime
.
wrap
((
function
(
n
)
{
while
(
1
)
switch
(
n
.
prev
=
n
.
next
)
{
case
0
:
return
t
.
loading
=
!
0
,
n
.
next
=
3
,
B
[
"
a
"
].
get
(
"
http://localhost:8888/chatbot/delete
"
,
{
params
:
{
id
:
e
}
});
case
3
:
a
=
n
.
sent
,
a
.
data
,
t
.
initCartList
(),
t
.
loading
=
!
1
;
case
7
:
case
"
end
"
:
return
n
.
stop
()
}
}),
n
)
})))()
},
refreshPage
:
function
()
{
location
.
reload
()
},
gotoDetail
:
function
(
e
)
{
this
.
$router
.
push
(
"
/home/chatinfo/
"
+
e
)
},
addChat
:
function
()
{
this
.
$router
.
push
(
"
/home/addChat/
"
)
},
initCartList
:
function
()
{
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
()
{
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
)
{
while
(
1
)
switch
(
t
.
prev
=
t
.
next
)
{
case
0
:
return
e
.
loading
=
!
0
,
t
.
next
=
3
,
B
[
"
a
"
].
get
(
"
http://localhost:8888/chatbot/page
"
,
{
params
:
{
page
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
question
:
e
.
formInline
.
question
}
});
case
3
:
n
=
t
.
sent
,
a
=
n
.
data
,
console
.
log
(
a
),
200
===
a
.
code
&&
(
e
.
userlist
=
a
.
result
.
content
,
e
.
total
=
a
.
result
.
totalElements
,
localStorage
.
setItem
(
"
lastPage
"
,
e
.
currentPage
),
localStorage
.
setItem
(
"
lastQuestion
"
,
e
.
formInline
.
question
)),
e
.
loading
=
!
1
;
case
8
:
case
"
end
"
:
return
t
.
stop
()
}
}),
t
)
})))()
},
handleCurrentChange
:
function
(
e
)
{
this
.
currentPage
=
e
,
this
.
initCartList
()
}
}
}),
pe
=
de
,
me
=
(
n
(
"
68db
"
),
Object
(
l
[
"
a
"
])(
pe
,
ue
,
ce
,
!
1
,
null
,
"
6e64ea6a
"
,
null
)),
fe
=
me
.
exports
,
ge
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
[
n
(
"
el-container
"
,
[
n
(
"
el-main
"
,
[
n
(
"
el-dialog
"
,
{
staticStyle
:
{
width
:
"
100%
"
},
attrs
:
{
title
:
"
新增面试问题
"
,
visible
:
e
.
dialogFormVisible
},
on
:
{
"
update:visible
"
:
function
(
t
)
{
e
.
dialogFormVisible
=
t
}
}
},
[
n
(
"
el-form
"
,
{
staticClass
:
"
custom-form
"
,
attrs
:
{
model
:
e
.
form
}
},
[
n
(
"
el-form-item
"
,
{
staticClass
:
"
form-item
"
,
attrs
:
{
label
:
"
面试问题
"
,
"
label-width
"
:
e
.
formLabelWidth
}
},
[
n
(
"
el-input
"
,
{
staticStyle
:
{
width
:
"
100%
"
},
attrs
:
{
autocomplete
:
"
off
"
},
model
:
{
value
:
e
.
form
.
question
,
callback
:
function
(
t
)
{
e
.
$set
(
e
.
form
,
"
question
"
,
t
)
},
expression
:
"
form.question
"
}
})],
1
),
n
(
"
br
"
),
n
(
"
el-form-item
"
,
{
staticClass
:
"
form-item
"
,
attrs
:
{
label
:
"
问题类型
"
,
"
label-width
"
:
e
.
formLabelWidth
}
},
[
n
(
"
el-select
"
,
{
attrs
:
{
placeholder
:
"
请选择活动区域
"
},
model
:
{
value
:
e
.
form
.
questionType
,
callback
:
function
(
t
)
{
e
.
$set
(
e
.
form
,
"
questionType
"
,
t
)
},
expression
:
"
form.questionType
"
}
},
e
.
_l
(
e
.
options
,
(
function
(
e
)
{
return
n
(
"
el-option
"
,
{
key
:
e
.
questionType
,
attrs
:
{
label
:
e
.
name
,
value
:
e
.
questionType
}
})
})),
1
)],
1
)
],
1
),
n
(
"
div
"
,
{
staticClass
:
"
dialog-footer
"
,
attrs
:
{
slot
:
"
footer
"
},
slot
:
"
footer
"
},
[
n
(
"
el-button
"
,
{
on
:
{
click
:
function
(
t
)
{
e
.
dialogFormVisible
=
!
1
}
}
},
[
e
.
_v
(
"
取 消
"
)]),
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
function
(
t
)
{
return
e
.
handleConfirm
(
0
)
}
}
},
[
e
.
_v
(
"
确 定
"
)])
],
1
)
],
1
),
n
(
"
el-dialog
"
,
{
staticClass
:
"
red-title
"
,
attrs
:
{
visible
:
e
.
dialogMutiFormVisible
},
on
:
{
"
update:visible
"
:
function
(
t
)
{
e
.
dialogMutiFormVisible
=
t
}
}
},
[
n
(
"
div
"
,
{
staticClass
:
"
red-title
"
,
attrs
:
{
slot
:
"
title
"
},
slot
:
"
title
"
},
[
e
.
_v
(
"
批量新增面试问题(多个问题换行填写)
"
)]),
n
(
"
el-form
"
,
{
staticClass
:
"
custom-form
"
,
attrs
:
{
model
:
e
.
form
}
},
[
n
(
"
el-form-item
"
,
{
staticClass
:
"
form-item
"
,
attrs
:
{
label
:
"
面试问题
"
,
"
label-width
"
:
e
.
formLabelWidth
}
},
[
n
(
"
el-input
"
,
{
staticStyle
:
{
width
:
"
100%
"
},
attrs
:
{
type
:
"
textarea
"
,
autocomplete
:
"
off
"
,
rows
:
5
,
cols
:
30
},
model
:
{
value
:
e
.
form
.
question
,
callback
:
function
(
t
)
{
e
.
$set
(
e
.
form
,
"
question
"
,
t
)
},
expression
:
"
form.question
"
}
})],
1
)],
1
),
n
(
"
div
"
,
{
staticClass
:
"
dialog-footer
"
,
attrs
:
{
slot
:
"
footer
"
},
slot
:
"
footer
"
},
[
n
(
"
el-button
"
,
{
on
:
{
click
:
function
(
t
)
{
e
.
dialogMutiFormVisible
=
!
1
}
}
},
[
e
.
_v
(
"
取 消
"
)]),
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
function
(
t
)
{
return
e
.
handleConfirm
(
1
)
}
}
},
[
e
.
_v
(
"
确 定
"
)])
],
1
)
],
1
),
n
(
"
el-form
"
,
{
staticClass
:
"
demo-form-inline
"
,
attrs
:
{
inline
:
!
0
,
model
:
e
.
formInline
}
},
[
n
(
"
el-form-item
"
,
[
n
(
"
el-input
"
,
{
attrs
:
{
clearable
:
""
,
placeholder
:
"
请输入问题
"
},
nativeOn
:
{
keydown
:
function
(
t
)
{
return
!
t
.
type
.
indexOf
(
"
key
"
)
&&
e
.
_k
(
t
.
keyCode
,
"
enter
"
,
13
,
t
.
key
,
"
Enter
"
)
?
null
:
e
.
interviewPage
.
apply
(
null
,
arguments
)
}
},
model
:
{
value
:
e
.
formInline
.
question
,
callback
:
function
(
t
)
{
e
.
$set
(
e
.
formInline
,
"
question
"
,
t
)
},
expression
:
"
formInline.question
"
}
})],
1
),
n
(
"
el-select
"
,
{
attrs
:
{
placeholder
:
"
请选择
"
},
on
:
{
change
:
e
.
interviewPage
},
model
:
{
value
:
e
.
questionType
,
callback
:
function
(
t
)
{
e
.
questionType
=
t
},
expression
:
"
questionType
"
}
},
e
.
_l
(
e
.
options
,
(
function
(
e
)
{
return
n
(
"
el-option
"
,
{
key
:
e
.
questionType
,
attrs
:
{
label
:
e
.
name
,
value
:
e
.
questionType
}
})
})),
1
),
n
(
"
el-form-item
"
,
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
e
.
interviewPage
}
},
[
e
.
_v
(
"
查询
"
)])],
1
),
n
(
"
el-form-item
"
,
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
e
.
prepareAdd
}
},
[
e
.
_v
(
"
新增
"
)])],
1
),
n
(
"
el-form-item
"
,
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
e
.
prepareMutiAdd
}
},
[
e
.
_v
(
"
批量新增
"
)])],
1
)
],
1
),
n
(
"
el-table
"
,
{
directives
:
[
{
name
:
"
loading
"
,
rawName
:
"
v-loading
"
,
value
:
e
.
loading
,
expression
:
"
loading
"
}
],
attrs
:
{
border
:
""
,
data
:
e
.
userlist
}
},
[
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
id
"
,
label
:
"
序号
"
,
width
:
"
100
"
,
sortable
:
""
}
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
question
"
,
label
:
"
面试问题
"
,
"
show-overflow-tooltip
"
:
""
}
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
questionTypeName
"
,
label
:
"
问题类型
"
,
"
show-overflow-tooltip
"
:
""
,
align
:
"
center
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
n
(
"
span
"
,
{
class
:
e
.
getClassForValue
(
t
.
row
.
questionTypeName
),
domProps
:
{
innerHTML
:
e
.
_s
(
t
.
row
.
questionTypeName
)
}
})]
}
}]
)
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
label
:
"
创建时间
"
,
width
:
"
170
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
e
.
_v
(
"
"
+
e
.
_s
(
e
.
_f
(
"
dateFormat
"
)(
t
.
row
.
createTime
))
+
"
"
)]
}
}]
)
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
prop
:
"
操作
"
,
label
:
"
操作
"
,
width
:
"
180
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
success
"
,
width
:
"
200
"
},
on
:
{
click
:
function
(
n
)
{
return
n
.
preventDefault
(),
e
.
preEdit
(
t
.
row
.
id
,
t
.
row
.
question
,
t
.
row
.
questionTypeName
)
}
}
},
[
e
.
_v
(
"
编辑
"
)]),
n
(
"
el-dialog
"
,
{
attrs
:
{
title
:
"
编辑面试问题
"
,
visible
:
e
.
editVisible
},
on
:
{
"
update:visible
"
:
function
(
t
)
{
e
.
editVisible
=
t
}
}
},
[
n
(
"
el-form
"
,
{
attrs
:
{
model
:
e
.
form
}
},
[
n
(
"
el-form-item
"
,
{
attrs
:
{
label
:
"
面试问题
"
,
"
label-width
"
:
e
.
formLabelWidth
}
},
[
n
(
"
el-input
"
,
{
staticClass
:
"
custom-textarea
"
,
staticStyle
:
{
"
text-align
"
:
"
left
"
},
attrs
:
{
type
:
"
textarea
"
,
autocomplete
:
"
off
"
,
rows
:
5
,
cols
:
30
},
model
:
{
value
:
e
.
form
.
question
,
callback
:
function
(
t
)
{
e
.
$set
(
e
.
form
,
"
question
"
,
t
)
},
expression
:
"
form.question
"
}
})],
1
),
n
(
"
el-form-item
"
,
{
attrs
:
{
label
:
"
问题类型
"
,
"
label-width
"
:
e
.
formLabelWidth
}
},
[
n
(
"
el-select
"
,
{
staticStyle
:
{
"
text-align
"
:
"
left
"
},
attrs
:
{
placeholder
:
"
请选择问题类型
"
},
model
:
{
value
:
e
.
form
.
questionType
,
callback
:
function
(
t
)
{
e
.
$set
(
e
.
form
,
"
questionType
"
,
t
)
},
expression
:
"
form.questionType
"
}
},
e
.
_l
(
e
.
options
,
(
function
(
e
)
{
return
n
(
"
el-option
"
,
{
key
:
e
.
questionType
,
attrs
:
{
label
:
e
.
name
,
value
:
e
.
questionType
}
})
})),
1
)],
1
)
],
1
),
n
(
"
div
"
,
{
staticClass
:
"
dialog-footer
"
,
attrs
:
{
slot
:
"
footer
"
},
slot
:
"
footer
"
},
[
n
(
"
el-button
"
,
{
on
:
{
click
:
function
(
t
)
{
e
.
editVisible
=
!
1
}
}
},
[
e
.
_v
(
"
取 消
"
)]),
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
e
.
editConfirm
}
},
[
e
.
_v
(
"
确 定
"
)])
],
1
)
],
1
),
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
danger
"
},
on
:
{
click
:
function
(
n
)
{
return
e
.
prepareDelete
(
t
.
row
.
id
)
}
}
},
[
e
.
_v
(
"
删除
"
)]),
n
(
"
el-dialog
"
,
{
attrs
:
{
title
:
"
提示
"
,
visible
:
e
.
dialogVisible
,
width
:
"
30%
"
,
"
before-close
"
:
e
.
handleClose
},
on
:
{
"
update:visible
"
:
function
(
t
)
{
e
.
dialogVisible
=
t
}
}
},
[
n
(
"
span
"
,
[
e
.
_v
(
"
确认删除吗
"
)]),
n
(
"
span
"
,
{
staticClass
:
"
dialog-footer
"
,
attrs
:
{
slot
:
"
footer
"
},
slot
:
"
footer
"
},
[
n
(
"
el-button
"
,
{
on
:
{
click
:
function
(
t
)
{
e
.
dialogVisible
=
!
1
}
}
},
[
e
.
_v
(
"
取 消
"
)]),
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
function
(
t
)
{
return
t
.
preventDefault
(),
e
.
onDelete
(
e
.
currentRowId
)
}
}
},
[
e
.
_v
(
"
确 定
"
)])
],
1
)
])
]
}
}]
)
})
],
1
),
n
(
"
el-pagination
"
,
{
key
:
e
.
elementui_page_component_key
,
staticClass
:
"
pagination
"
,
attrs
:
{
background
:
""
,
"
current-page
"
:
e
.
currentPage
,
"
page-size
"
:
e
.
pageSize
,
total
:
e
.
total
},
on
:
{
"
update:currentPage
"
:
function
(
t
)
{
e
.
currentPage
=
t
},
"
update:current-page
"
:
function
(
t
)
{
e
.
currentPage
=
t
},
"
current-change
"
:
e
.
handleCurrentChange
}
})
],
1
),
n
(
"
el-backtop
"
,
{
staticClass
:
"
backtop
"
})
],
1
)],
1
)
},
he
=
[],
be
=
(
n
(
"
159b
"
),
n
(
"
b0c0
"
),
{
name
:
"
MyInterview
"
,
data
:
function
()
{
return
{
userlist
:
[],
loading
:
!
1
,
elementui_page_component_key
:
0
,
currentPage
:
Number
(
localStorage
.
getItem
(
"
lastPage
"
))
||
1
,
pageSize
:
9
,
total
:
0
,
formInline
:
{
question
:
""
},
options
:
[],
questionType
:
0
,
dialogFormVisible
:
!
1
,
dialogMutiFormVisible
:
!
1
,
form
:
{
question
:
""
,
questionType
:
0
},
formLabelWidth
:
"
120px
"
,
dialogVisible
:
!
1
,
editVisible
:
!
1
,
currentRowId
:
null
}
},
watch
:
{
"
formInline.question
"
:
function
(
e
)
{
""
===
e
&&
(
this
.
currentPage
=
1
,
localStorage
.
setItem
(
"
lastPage
"
,
this
.
currentPage
),
this
.
interviewPage
())
}
},
created
:
function
()
{
this
.
getQuestionType
(),
this
.
interviewPage
()
},
mounted
:
function
()
{},
methods
:
{
prepareAdd
:
function
()
{
this
.
form
.
question
=
""
,
this
.
form
.
questionType
=
0
,
this
.
dialogFormVisible
=
!
0
},
prepareMutiAdd
:
function
()
{
this
.
form
.
question
=
""
,
this
.
form
.
questionType
=
0
,
this
.
dialogMutiFormVisible
=
!
0
},
prepareDelete
:
function
(
e
)
{
this
.
currentRowId
=
e
,
this
.
dialogVisible
=
!
0
},
preEdit
:
function
(
e
,
t
,
n
)
{
this
.
form
.
question
=
t
;
var
a
=
{};
this
.
options
.
forEach
((
function
(
e
)
{
a
[
e
.
name
]
=
e
.
questionType
})),
this
.
form
.
questionType
=
a
[
n
],
this
.
currentRowId
=
e
,
this
.
editVisible
=
!
0
},
handleClose
:
function
(
e
)
{
this
.
$confirm
(
"
确认关闭?
"
).
then
((
function
(
t
)
{
e
()
})).
catch
((
function
(
e
)
{}))
},
handleConfirm
:
function
(
e
)
{
this
.
dialogFormVisible
=
!
1
,
this
.
dialogMutiFormVisible
=
!
1
,
this
.
addQuestion
(
e
)
},
addQuestion
:
function
(
e
)
{
var
t
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
n
()
{
var
a
,
r
;
return
regeneratorRuntime
.
wrap
((
function
(
n
)
{
while
(
1
)
switch
(
n
.
prev
=
n
.
next
)
{
case
0
:
return
n
.
prev
=
0
,
t
.
loading
=
!
0
,
n
.
next
=
4
,
B
[
"
a
"
].
post
(
"
http://localhost:8888/interviewQuestion/add
"
,
{
addType
:
e
,
question
:
t
.
form
.
question
,
questionType
:
t
.
form
.
questionType
});
case
4
:
a
=
n
.
sent
,
r
=
a
.
data
,
200
===
r
.
code
?
(
t
.
form
.
question
=
""
,
t
.
form
.
questionType
=
0
,
t
.
interviewPage
())
:
(
console
.
error
(
"
Received non-200 status code
"
,
r
),
t
.
errorMsg
(
r
.
message
)),
n
.
next
=
12
;
break
;
case
9
:
n
.
prev
=
9
,
n
.
t0
=
n
[
"
catch
"
](
0
),
console
.
error
(
"
An error occurred while adding the question:
"
,
n
.
t0
);
case
12
:
return
n
.
prev
=
12
,
t
.
loading
=
!
1
,
n
.
finish
(
12
);
case
15
:
case
"
end
"
:
return
n
.
stop
()
}
}),
n
,
null
,
[[
0
,
9
,
12
,
15
]])
})))()
},
errorMsg
:
function
(
e
)
{
this
.
$message
({
showClose
:
!
0
,
message
:
e
,
type
:
"
error
"
})
},
editConfirm
:
function
()
{
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
()
{
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
)
{
while
(
1
)
switch
(
t
.
prev
=
t
.
next
)
{
case
0
:
return
t
.
prev
=
0
,
e
.
loading
=
!
0
,
t
.
next
=
4
,
B
[
"
a
"
].
post
(
"
http://localhost:8888/interviewQuestion/update
"
,
{
id
:
e
.
currentRowId
,
question
:
e
.
form
.
question
,
questionType
:
e
.
form
.
questionType
});
case
4
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
?
(
e
.
form
.
question
=
""
,
e
.
form
.
questionType
=
0
,
e
.
editVisible
=!
1
,
e
.
interviewPage
())
:
console
.
error
(
"
Received non-200 status code
"
,
a
),
t
.
next
=
12
;
break
;
case
9
:
t
.
prev
=
9
,
t
.
t0
=
t
[
"
catch
"
](
0
),
console
.
error
(
"
An error occurred while adding the question:
"
,
t
.
t0
);
case
12
:
return
t
.
prev
=
12
,
e
.
loading
=
!
1
,
t
.
finish
(
12
);
case
15
:
case
"
end
"
:
return
t
.
stop
()
}
}),
t
,
null
,
[[
0
,
9
,
12
,
15
]])
})))()
},
onDelete
:
function
(
e
)
{
var
t
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
n
()
{
var
a
;
return
regeneratorRuntime
.
wrap
((
function
(
n
)
{
while
(
1
)
switch
(
n
.
prev
=
n
.
next
)
{
case
0
:
return
t
.
dialogVisible
=
!
1
,
t
.
loading
=
!
0
,
n
.
next
=
4
,
B
[
"
a
"
].
get
(
"
http://localhost:8888/interviewQuestion/delete
"
,
{
params
:
{
id
:
e
}
});
case
4
:
a
=
n
.
sent
,
a
.
data
,
t
.
interviewPage
(),
t
.
loading
=
!
1
;
case
8
:
case
"
end
"
:
return
n
.
stop
()
}
}),
n
)
})))()
},
refreshPage
:
function
()
{
this
.
getQuestionType
(),
location
.
reload
()
},
getQuestionType
:
function
()
{
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
()
{
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
)
{
while
(
1
)
switch
(
t
.
prev
=
t
.
next
)
{
case
0
:
return
t
.
next
=
2
,
B
[
"
a
"
].
get
(
"
http://localhost:8888/interviewQuestion/questionType
"
,
{
params
:
{}});
case
2
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
&&
(
e
.
options
=
a
.
result
);
case
5
:
case
"
end
"
:
return
t
.
stop
()
}
}),
t
)
})))()
},
interviewPage
:
function
()
{
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
()
{
var
n
,
a
,
r
;
return
regeneratorRuntime
.
wrap
((
function
(
t
)
{
while
(
1
)
switch
(
t
.
prev
=
t
.
next
)
{
case
0
:
return
e
.
loading
=
!
0
,
t
.
next
=
3
,
B
[
"
a
"
].
get
(
"
http://localhost:8888/interviewQuestion/page
"
,
{
params
:
{
page
:
e
.
currentPage
,
pageSize
:
e
.
pageSize
,
question
:
e
.
formInline
.
question
,
questionType
:
e
.
questionType
}
});
case
3
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
&&
(
e
.
total
=
a
.
result
.
totalElements
,
r
=
{},
e
.
options
.
forEach
((
function
(
e
)
{
r
[
e
.
questionType
]
=
e
.
name
})),
a
.
result
.
content
.
forEach
((
function
(
e
)
{
e
.
questionTypeName
=
r
[
e
.
questionType
]
||
"
Unknown
"
})),
e
.
userlist
=
a
.
result
.
content
),
e
.
loading
=
!
1
;
case
7
:
case
"
end
"
:
return
t
.
stop
()
}
}),
t
)
})))()
},
getClassForValue
:
function
(
e
)
{
return
"
基础知识
"
===
e
?
"
reddish-purple-value
"
:
"
集合
"
===
e
?
"
new-orange-value
"
:
"
JVM
"
===
e
?
"
clove-tea-value
"
:
"
并发编程
"
===
e
?
"
grassy-value
"
:
"
MySql
"
===
e
?
"
daylily-value
"
:
"
Redis
"
===
e
?
"
balloon-flower-value
"
:
"
中间件
"
===
e
?
"
pink-value
"
:
"
Spring
"
===
e
?
"
purple-value
"
:
"
微服务
"
===
e
?
"
sapphire-blue-value
"
:
"
分布式
"
===
e
?
"
green-value
"
:
"
项目
"
===
e
?
"
black-value
"
:
"
算法
"
===
e
?
"
rose-hermosa-value
"
:
"
反问环节
"
===
e
?
"
white-dress-value
"
:
"
设计模式
"
===
e
?
"
prunus-gracilis-value
"
:
"
其他
"
===
e
?
"
magenta-value
"
:
"
dark-blue-value
"
},
handleCurrentChange
:
function
(
e
)
{
this
.
currentPage
=
e
,
this
.
interviewPage
()
}
}
}),
ve
=
be
,
ye
=
(
n
(
"
bfaf
"
),
Object
(
l
[
"
a
"
])(
ve
,
ge
,
he
,
!
1
,
null
,
"
153268c2
"
,
null
)),
we
=
ye
.
exports
,
_e
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
h4
"
,
{
staticClass
:
"
text-center
"
},
[
e
.
_v
(
"
系统设置
"
)])
},
ke
=
[],
xe
=
{
name
:
"
MySettings
"
},
Ce
=
xe
,
qe
=
Object
(
l
[
"
a
"
])(
Ce
,
_e
,
ke
,
!
1
,
null
,
"
accd7558
"
,
null
),
Ie
=
qe
.
exports
,
Pe
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
[
n
(
"
button
"
,
{
staticClass
:
"
btn btn-light btn-sm
"
,
attrs
:
{
type
:
"
button
"
},
on
:
{
click
:
function
(
t
)
{
return
e
.
$router
.
back
()
}
}
},
[
e
.
_v
(
"
后退
"
)]),
n
(
"
h4
"
,
{
staticClass
:
"
text-center
"
},
[
e
.
_v
(
"
用户详情 ---
"
+
e
.
_s
(
e
.
id
))])
])
},
Te
=
[],
Se
=
{
name
:
"
MyUserDetail
"
,
props
:
[
"
id
"
]
},
$e
=
Se
,
Oe
=
Object
(
l
[
"
a
"
])(
$e
,
Pe
,
Te
,
!
1
,
null
,
"
bea9073a
"
,
null
),
je
=
Oe
.
exports
,
Me
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
,
plain
:
""
,
size
:
"
medium
"
},
on
:
{
click
:
e
.
goBack
}
},
[
e
.
_v
(
"
后退
"
)]),
n
(
"
h4
"
,
{
staticClass
:
"
text-center
"
},
[
e
.
_v
(
"
ChatGpt问答详情 ---
"
+
e
.
_s
(
e
.
id
))]),
n
(
"
el-container
"
,
[
n
(
"
el-main
"
,
[
n
(
"
el-table
"
,
{
attrs
:
{
border
:
""
,
data
:
e
.
list
}
},
[
n
(
"
el-table-column
"
,
{
attrs
:
{
label
:
"
序号
"
,
width
:
"
50
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
n
(
"
span
"
,
[
e
.
_v
(
e
.
_s
(
t
.
row
.
id
))])]
}
}]
)
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
label
:
"
问题
"
,
width
:
"
240
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
n
(
"
span
"
,
[
e
.
_v
(
e
.
_s
(
t
.
row
.
question
))])]
}
}]
)
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
label
:
"
回答
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
n
(
"
span
"
,
{
attrs
:
{
id
:
"
td-response
"
}
},
[
e
.
_v
(
e
.
_s
(
t
.
row
.
response
))])]
}
}]
)
}),
n
(
"
el-table-column
"
,
{
attrs
:
{
label
:
"
创建时间
"
,
width
:
"
170
"
},
scopedSlots
:
e
.
_u
(
[{
key
:
"
default
"
,
fn
:
function
(
t
)
{
return
[
n
(
"
span
"
,
[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"
dateFormat
"
)(
t
.
row
.
createTime
)))])]
}
}]
)
})
],
1
)],
1
)],
1
),
n
(
"
div
"
,
{
staticClass
:
"
button-container
"
},
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
,
round
:
""
},
on
:
{
click
:
e
.
copyCode
}
},
[
e
.
_v
(
"
复制回答
"
)])],
1
)
],
1
)
},
Ve
=
[],
Re
=
{
name
:
"
MyChatDetail
"
,
props
:
[
"
id
"
],
data
:
function
()
{
return
{
list
:
[]}
},
created
:
function
()
{
this
.
initChatList
()
},
methods
:
{
goBack
:
function
()
{
var
e
=
{
back
:
"
back
"
};
this
.
$router
.
push
({
path
:
"
/home/chat
"
,
query
:
e
})
},
initChatList
:
function
()
{
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
()
{
var
n
,
a
;
return
regeneratorRuntime
.
wrap
((
function
(
t
)
{
while
(
1
)
switch
(
t
.
prev
=
t
.
next
)
{
case
0
:
return
t
.
next
=
2
,
B
[
"
a
"
].
get
(
"
http://localhost:8888/chatbot/
"
+
e
.
id
);
case
2
:
n
=
t
.
sent
,
a
=
n
.
data
,
200
===
a
.
code
&&
(
e
.
list
=
[{
id
:
a
.
result
.
id
,
question
:
a
.
result
.
question
,
response
:
a
.
result
.
response
,
createTime
:
a
.
result
.
createTime
}]);
case
5
:
case
"
end
"
:
return
t
.
stop
()
}
}),
t
)
})))()
},
copyCode
:
function
()
{
var
e
=
document
.
getElementById
(
"
td-response
"
),
t
=
document
.
createRange
();
t
.
selectNode
(
e
);
var
n
=
window
.
getSelection
();
n
.
removeAllRanges
(),
n
.
addRange
(
t
),
document
.
execCommand
(
"
copy
"
),
n
.
removeAllRanges
(),
this
.
$message
.
success
(
"
代码已复制到剪贴板
"
)
}
}
},
Ee
=
Re
,
De
=
(
n
(
"
022e
"
),
Object
(
l
[
"
a
"
])(
Ee
,
Me
,
Ve
,
!
1
,
null
,
"
9d5d30a4
"
,
null
)),
Le
=
De
.
exports
,
Fe
=
function
()
{
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
,
plain
:
""
,
size
:
"
medium
"
},
on
:
{
click
:
e
.
goBack
}
},
[
e
.
_v
(
"
后退
"
)]),
n
(
"
h4
"
,
{
staticClass
:
"
text-center
"
},
[
e
.
_v
(
"
新增ChatGpt问答
"
)]),
n
(
"
el-container
"
,
{
staticClass
:
"
container
"
},
[
n
(
"
el-form
"
,
{
ref
:
"
form
"
,
attrs
:
{
model
:
e
.
form
,
"
label-width
"
:
"
80px
"
}
},
[
n
(
"
el-form-item
"
,
{
attrs
:
{
label
:
"
问题
"
}
},
[
n
(
"
el-input
"
,
{
model
:
{
value
:
e
.
form
.
question
,
callback
:
function
(
t
)
{
e
.
$set
(
e
.
form
,
"
question
"
,
t
)
},
expression
:
"
form.question
"
}
})],
1
),
n
(
"
el-form-item
"
,
{
attrs
:
{
label
:
"
答案
"
}
},
[
n
(
"
el-input
"
,
{
attrs
:
{
type
:
"
textarea
"
},
model
:
{
value
:
e
.
form
.
response
,
callback
:
function
(
t
)
{
e
.
$set
(
e
.
form
,
"
response
"
,
t
)
},
expression
:
"
form.response
"
}
})],
1
),
n
(
"
el-form-item
"
,
[
n
(
"
el-button
"
,
{
attrs
:
{
type
:
"
primary
"
},
on
:
{
click
:
e
.
onSubmit
}
},
[
e
.
_v
(
"
立即创建
"
)]),
n
(
"
el-button
"
,
{
on
:
{
click
:
e
.
clearContent
}
},
[
e
.
_v
(
"
取消
"
)])
],
1
)
],
1
)],
1
)
],
1
)
},
Ne
=
[],
ze
=
{
name
:
"
AddChatDetail
"
,
data
:
function
()
{
return
{
form
:
{
question
:
""
,
response
:
""
}
}
},
methods
:
{
clearContent
:
function
()
{
this
.
form
.
question
=
""
,
this
.
form
.
response
=
""
},
onSubmit
:
function
()
{
var
e
=
this
;
return
Object
(
H
[
"
a
"
])(
regeneratorRuntime
.
mark
((
function
t
()
{
var
n
;
return
regeneratorRuntime
.
wrap
((
function
(
t
)
{
while
(
1
)
switch
(
t
.
prev
=
t
.
next
)
{
case
0
:
n
=
{
question
:
e
.
form
.
question
,
response
:
e
.
form
.
response
},
B
[
"
a
"
].
post
(
"
http://localhost:8888/chatbot
"
,
n
).
then
((
function
(
t
)
{
200
===
t
.
data
.
code
&&
(
e
.
$message
.
success
({
message
:
"
问题和答案新增成功
"
,
duration
:
1
e3
}),
e
.
goBack
())
})).
catch
((
function
(
t
)
{
e
.
$message
.
error
(
"
系统异常
"
)
}));
case
2
:
case
"
end
"
:
return
t
.
stop
()
}
}),
t
)
})))()
},
goBack
:
function
()
{
var
e
=
{
back
:
"
back
"
,
add
:
"
add
"
};
this
.
$router
.
push
({
path
:
"
/home/chat
"
,
query
:
e
})
}
}
},
Ae
=
ze
,
Qe
=
(
n
(
"
66f9
"
),
Object
(
l
[
"
a
"
])(
Ae
,
Fe
,
Ne
,
!
1
,
null
,
"
ddc6c3e0
"
,
null
)),
Ue
=
Qe
.
exports
;
a
[
"
default
"
].
use
(
d
[
"
a
"
]);
var
He
=
new
d
[
"
a
"
]({
routes
:
[
{
path
:
"
/
"
,
redirect
:
"
/login
"
},
{
path
:
"
/login
"
,
component
:
v
},
{
path
:
"
/home
"
,
component
:
E
,
redirect
:
"
/home/interview
"
,
children
:
[
{
path
:
"
users
"
,
component
:
A
},
{
path
:
"
pic
"
,
component
:
J
},
{
path
:
"
goods
"
,
component
:
ne
},
{
path
:
"
orders
"
,
component
:
le
},
{
path
:
"
chat
"
,
component
:
fe
},
{
path
:
"
interview
"
,
component
:
we
},
{
path
:
"
settings
"
,
component
:
Ie
},
{
path
:
"
userinfo/:id
"
,
component
:
je
,
props
:
!
0
},
{
path
:
"
chatinfo/:id
"
,
component
:
Le
,
props
:
!
0
},
{
path
:
"
addChat
"
,
component
:
Ue
}
]
}
]
});
He
.
beforeEach
((
function
(
e
,
t
,
n
)
{
if
(
-
1
!==
p
.
indexOf
(
e
.
path
))
{
var
a
=
localStorage
.
getItem
(
"
token
"
);
a
?
n
()
:
n
(
"
/login
"
)
}
else
n
()
}));
var
Be
=
He
,
We
=
n
(
"
5c96
"
),
Ye
=
n
.
n
(
We
),
Ge
=
(
n
(
"
0fae
"
),
n
(
"
16b4
"
),
n
(
"
a766
"
),
n
(
"
5a0c
"
)),
Je
=
n
.
n
(
Ge
);
a
[
"
default
"
].
prototype
.
$dayjs
=
Je
.
a
,
a
[
"
default
"
].
filter
(
"
dateFormat
"
,
(
function
(
e
)
{
var
t
=
Je
()(
e
).
format
(
"
YYYY-MM-DD HH:mm:ss
"
);
return
t
})),
a
[
"
default
"
].
use
(
Ye
.
a
),
a
[
"
default
"
].
config
.
productionTip
=
!
1
,
new
a
[
"
default
"
]({
render
:
function
(
e
)
{
return
e
(
c
)
},
router
:
Be
}).
$mount
(
"
#app
"
)
},
"
66f9
"
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
(
"
155e
"
)
},
"
68db
"
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
(
"
e918
"
)
},
7678
:
function
(
e
,
t
,
n
)
{
e
.
exports
=
n
.
p
+
"
img/kwan.80e90605.png
"
},
"
7ee9
"
:
function
(
e
,
t
,
n
)
{},
"
808c
"
:
function
(
e
,
t
,
n
)
{},
9547
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
(
"
4084
"
)
},
"
9d40
"
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
(
"
7ee9
"
)
},
a766
:
function
(
e
,
t
,
n
)
{},
bfaf
:
function
(
e
,
t
,
n
)
{
"
use strict
"
;
n
(
"
5304
"
)
},
e918
:
function
(
e
,
t
,
n
)
{}
}
);
// # sourceMappingURL=app.a42e9102.js.map
dist/js/app.a42e9102.js.map
浏览文件 @
27e8d5d4
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
src/components/menus/MyAlgorithmic.vue
0 → 100644
浏览文件 @
27e8d5d4
<
template
>
<div>
<el-container>
<el-main>
<el-dialog
title=
"新增算法问题"
:visible.sync=
"dialogFormVisible"
style=
"width: 100%"
>
<el-form
:model=
"form"
class=
"custom-form"
>
<el-form-item
label=
"算法问题"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-input
v-model=
"form.question"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<br
/>
<el-form-item
label=
"问题类型"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-select
v-model=
"form.questionType"
placeholder=
"请选择活动区域"
>
<el-option
v-for=
"item in options"
:key=
"item.questionType"
:label=
"item.name"
:value=
"item.questionType"
></el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"handleConfirm(0)"
>
确 定
</el-button>
</div>
</el-dialog>
<el-dialog
class=
"red-title"
:visible.sync=
"dialogMutiFormVisible"
>
<div
class=
"red-title"
slot=
"title"
>
批量新增算法问题(多个问题换行填写)
</div>
<el-form
:model=
"form"
class=
"custom-form"
>
<el-form-item
label=
"算法问题"
:label-width=
"formLabelWidth"
class=
"form-item"
>
<el-input
type=
"textarea"
v-model=
"form.question"
autocomplete=
"off"
:rows=
"5"
:cols=
"30"
style=
"width: 100%"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogMutiFormVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"handleConfirm(1)"
>
确 定
</el-button>
</div>
</el-dialog>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
>
<el-form-item>
<el-input
clearable
v-model=
"formInline.questionName"
placeholder=
"请输入问题"
@
keydown.enter.native=
"interviewPage"
></el-input>
</el-form-item>
<el-select
v-model=
"questionType"
placeholder=
"请选择"
@
change=
"interviewPage"
>
<el-option
v-for=
"item in options"
:key=
"item.questionType"
:label=
"item.name"
:value=
"item.questionType"
></el-option>
</el-select>
<el-form-item>
<el-button
type=
"primary"
@
click=
"interviewPage"
>
查询
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"prepareAdd"
>
新增
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"prepareMutiAdd"
>
批量新增
</el-button>
</el-form-item>
</el-form>
<el-table
border
:data=
"algorithmicList"
v-loading=
"loading"
>
<el-table-column
prop=
"id"
label=
"序号"
width=
"100"
sortable
></el-table-column>
<el-table-column
prop=
"questionName"
label=
"算法问题"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"questionTypeName"
label=
"问题类型"
show-overflow-tooltip
align=
"center"
>
<template
slot-scope=
"scope"
>
<span
:class=
"getClassForValue(scope.row.questionTypeName)"
v-html=
"scope.row.questionTypeName"
></span>
</
template
>
</el-table-column>
<el-table-column
prop=
"degreeOfImportance"
label=
"重要程度"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"degreeOfDifficulty"
label=
"难易程度"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"difficultyOfScore"
label=
"难易分数"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"leetcodeNumber"
label=
"力扣号"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"力扣链接"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<a
:href=
"scope.row.leetcodeLink"
target=
"_blank"
>
{{
scope
.
row
.
leetcodeLink
}}
</a>
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
width=
"170"
>
<
template
slot-scope=
"props"
>
{{
props
.
row
.
createTime
|
dateFormat
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"操作"
label=
"操作"
width=
"180"
>
<
template
slot-scope=
"props"
>
<el-button
type=
"success"
@
click.prevent=
"preEdit(props.row.id, props.row.question, props.row.questionTypeName)"
width=
"200"
>
编辑
</el-button>
<el-dialog
title=
"编辑算法问题"
:visible.sync=
"editVisible"
>
<el-form
:model=
"form"
>
<el-form-item
label=
"算法问题"
:label-width=
"formLabelWidth"
>
<el-input
class=
"custom-textarea"
type=
"textarea"
v-model=
"form.question"
autocomplete=
"off"
:rows=
"5"
:cols=
"30"
style=
"text-align: left"
></el-input>
</el-form-item>
<el-form-item
label=
"问题类型"
:label-width=
"formLabelWidth"
>
<el-select
v-model=
"form.questionType"
placeholder=
"请选择问题类型"
style=
"text-align: left"
>
<el-option
v-for=
"item in options"
:key=
"item.questionType"
:label=
"item.name"
:value=
"item.questionType"
></el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"editVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"editConfirm"
>
确 定
</el-button>
</div>
</el-dialog>
<el-button
type=
"danger"
@
click=
"prepareDelete(props.row.id)"
>
删除
</el-button>
<el-dialog
title=
"提示"
:visible.sync=
"dialogVisible"
width=
"30%"
:before-close=
"handleClose"
>
<span>
确认删除吗
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click.prevent=
"onDelete(currentRowId)"
>
确 定
</el-button>
</span>
</el-dialog>
</
template
>
</el-table-column>
</el-table>
<el-pagination
class=
"pagination"
background
:key=
"elementui_page_component_key"
:current-page.sync=
"currentPage"
:page-size=
"pageSize"
:total=
"total"
@
current-change=
"handleCurrentChange"
></el-pagination>
</el-main>
<el-backtop
class=
"backtop"
></el-backtop>
</el-container>
</div>
</template>
<
script
>
import
axios
from
'
axios
'
export
default
{
name
:
'
MyInterview
'
,
data
()
{
return
{
// 用户列表数据
algorithmicList
:
[],
loading
:
false
,
elementui_page_component_key
:
0
,
currentPage
:
Number
(
localStorage
.
getItem
(
'
lastPage
'
))
||
1
,
pageSize
:
9
,
total
:
0
,
formInline
:
{
questionName
:
''
,
},
options
:
[],
questionType
:
0
,
// 新增的内容
dialogFormVisible
:
false
,
dialogMutiFormVisible
:
false
,
form
:
{
question
:
''
,
questionType
:
0
,
},
formLabelWidth
:
'
120px
'
,
dialogVisible
:
false
,
editVisible
:
false
,
currentRowId
:
null
,
}
},
watch
:
{
'
formInline.question
'
(
newVal
)
{
if
(
newVal
===
''
)
{
this
.
currentPage
=
1
localStorage
.
setItem
(
'
lastPage
'
,
this
.
currentPage
)
this
.
interviewPage
()
}
},
},
created
()
{
//获取问题类型的枚举
this
.
getQuestionType
()
//获取问题列表
this
.
interviewPage
()
},
mounted
()
{},
methods
:
{
prepareAdd
()
{
this
.
form
.
question
=
''
this
.
form
.
questionType
=
0
this
.
dialogFormVisible
=
true
},
prepareMutiAdd
()
{
this
.
form
.
question
=
''
this
.
form
.
questionType
=
0
this
.
dialogMutiFormVisible
=
true
},
prepareDelete
(
id
)
{
this
.
currentRowId
=
id
this
.
dialogVisible
=
true
},
preEdit
(
id
,
question
,
questionTypeName
)
{
this
.
form
.
question
=
question
// 定义一个映射(map)来存储 questionType 到 name 的转换
const
questionTypeToNameMap
=
{}
this
.
options
.
forEach
((
option
)
=>
{
questionTypeToNameMap
[
option
.
name
]
=
option
.
questionType
})
this
.
form
.
questionType
=
questionTypeToNameMap
[
questionTypeName
]
this
.
currentRowId
=
id
this
.
editVisible
=
true
},
handleClose
(
done
)
{
this
.
$confirm
(
'
确认关闭?
'
)
.
then
((
_
)
=>
{
done
()
})
.
catch
((
_
)
=>
{})
},
handleConfirm
(
addType
)
{
this
.
dialogFormVisible
=
false
// 关闭对话框
this
.
dialogMutiFormVisible
=
false
this
.
addQuestion
(
addType
)
// 发送请求
},
async
addQuestion
(
addType
)
{
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://localhost:8888/algorithmicProblem/add
'
,
{
addType
:
addType
,
question
:
this
.
form
.
question
,
questionType
:
this
.
form
.
questionType
,
})
if
(
res
.
code
===
200
)
{
this
.
form
.
question
=
''
this
.
form
.
questionType
=
0
this
.
interviewPage
()
// 确保这个方法是有效的
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res
)
this
.
errorMsg
(
res
.
message
)
}
}
catch
(
error
)
{
console
.
error
(
'
An error occurred while adding the question:
'
,
error
)
// 异常处理逻辑
}
finally
{
this
.
loading
=
false
}
},
errorMsg
(
msg
)
{
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
'
error
'
,
})
},
async
editConfirm
()
{
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://localhost:8888/algorithmicProblem/update
'
,
{
id
:
this
.
currentRowId
,
question
:
this
.
form
.
question
,
questionType
:
this
.
form
.
questionType
,
})
if
(
res
.
code
===
200
)
{
this
.
form
.
question
=
''
this
.
form
.
questionType
=
0
this
.
editVisible
=
false
currentRowId
:
null
this
.
interviewPage
()
// 确保这个方法是有效的
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res
)
}
}
catch
(
error
)
{
console
.
error
(
'
An error occurred while adding the question:
'
,
error
)
// 异常处理逻辑
}
finally
{
this
.
loading
=
false
}
},
async
onDelete
(
id
)
{
this
.
dialogVisible
=
false
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://localhost:8888/algorithmicProblem/delete
'
,
{
params
:
{
id
:
id
,
},
})
this
.
interviewPage
()
this
.
loading
=
false
},
refreshPage
()
{
//获取问题类型的枚举
this
.
getQuestionType
()
location
.
reload
()
},
async
getQuestionType
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://localhost:8888/algorithmicProblem/questionType
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
this
.
options
=
res
.
result
}
},
async
interviewPage
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://localhost:8888/algorithmicProblem/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
questionName
:
this
.
formInline
.
questionName
,
questionType
:
this
.
questionType
,
},
})
if
(
res
.
code
===
200
)
{
this
.
total
=
res
.
result
.
totalElements
// 定义一个映射(map)来存储 questionType 到 name 的转换
const
questionTypeToNameMap
=
{}
this
.
options
.
forEach
((
option
)
=>
{
questionTypeToNameMap
[
option
.
questionType
]
=
option
.
name
})
console
.
log
(
res
.
result
.
content
)
console
.
log
(
questionTypeToNameMap
)
// 修改 algorithmicList 中的每一个元素,将 questionType 转换为 name
res
.
result
.
content
.
forEach
((
item
)
=>
{
item
.
questionTypeName
=
questionTypeToNameMap
[
item
.
questionType
]
||
'
Unknown
'
})
this
.
algorithmicList
=
res
.
result
.
content
}
this
.
loading
=
false
},
getClassForValue
(
value
)
{
if
(
value
===
'
链表
'
)
{
return
'
reddish-purple-value
'
}
// else if (value === '集合') {
// return 'new-orange-value'
// } else if (value === 'JVM') {
// return 'clove-tea-value'
// } else if (value === '并发编程') {
// return 'grassy-value'
// } else if (value === 'MySql') {
// return 'daylily-value'
// } else if (value === 'Redis') {
// return 'balloon-flower-value'
// } else if (value === '中间件') {
// return 'pink-value'
// } else if (value === 'Spring') {
// return 'purple-value'
// } else if (value === '微服务') {
// return 'sapphire-blue-value'
// } else if (value === '分布式') {
// return 'green-value'
// } else if (value === '项目') {
// return 'black-value'
// } else if (value === '算法') {
// return 'rose-hermosa-value'
// } else if (value === '反问环节') {
// return 'white-dress-value'
// } else if (value === '设计模式') {
// return 'prunus-gracilis-value'
// } else if (value === '其他') {
// return 'magenta-value'
// } else {
// return 'dark-blue-value'
// }
},
handleCurrentChange
(
currentPage
)
{
this
.
currentPage
=
currentPage
this
.
interviewPage
()
},
},
}
</
script
>
<
style
lang=
"less"
scoped
>
.el-header {
background-color: #b3c0d1;
color: #333;
line-height: 60px;
}
.el-aside {
color: #333;
}
.pagination {
margin-top: 16px;
text-align: right;
}
.header-button-item {
margin-right: 15px;
font-size: 20px;
}
.red-title {
line-height: 24px;
font-size: 18px;
color: red;
}
.backtop {
position: fixed;
bottom: 50px;
right: 50px;
height: 40px;
width: 40px;
line-height: 40px;
text-align: center;
border-radius: 20px;
background-color: #007aff;
color: #fff;
cursor: pointer;
z-index: 999;
}
.reddish-purple-value {
color: #eb6ea5; /* 相同值的颜色 */
}
.new-orange-value {
color: #59b9c6; /* 相同值的颜色 */
}
.clove-tea-value {
color: #b4866b; /* 不同值的颜色 */
}
.grassy-value {
color: #c3d825; /* 不同值的颜色 */
}
.daylily-value {
color: #f8b862; /* 不同值的颜色 */
}
.balloon-flower-value {
color: #4d5aaf; /* 不同值的颜色 */
}
.pink-value {
color: #f47983; /* 不同值的颜色 */
}
.purple-value {
color: #8d4bbb; /* 不同值的颜色 */
}
.sapphire-blue-value {
color: #4b5cc4; /* 不同值的颜色 */
}
.green-value {
// #7367F0
color: #ce9ffc; /* 不同值的颜色 */
}
.black-value {
color: #000000; /* 不同值的颜色 */
}
.magenta-value {
color: #ff0097; /* 不同值的颜色 */
}
.dark-blue-value {
color: #3eede7; /* 不同值的颜色 */
}
.rose-hermosa-value {
color: #ff6fd8; /* 不同值的颜色 */
}
.white-dress-value {
color: #83ccd2; /* 不同值的颜色 */
}
.prunus-gracilis-value {
color: #5a79ba; /* 不同值的颜色 */
}
.custom-textarea {
width: 100%;
text-align: left;
}
.backtop:hover {
background-color: #0050a0;
}
</
style
>
\ No newline at end of file
src/components/menus/MyChat.vue
浏览文件 @
27e8d5d4
...
...
@@ -39,98 +39,98 @@
<
script
>
import
axios
from
'
axios
'
export
default
{
name
:
'
MyChat
'
,
name
:
'
MyChat
'
,
data
()
{
return
{
// 用户列表数据
userlist
:
[],
loading
:
false
,
elementui_page_component_key
:
0
,
currentPage
:
Number
(
localStorage
.
getItem
(
'
lastPage
'
))
||
1
,
pageSize
:
9
,
total
:
0
,
formInline
:
{
question
:
''
,
},
}
},
watch
:
{
'
formInline.question
'
(
newVal
)
{
if
(
newVal
===
''
)
{
this
.
currentPage
=
1
localStorage
.
setItem
(
'
lastPage
'
,
this
.
currentPage
)
this
.
initCartList
()
}
},
},
created
()
{
this
.
$nextTick
(()
=>
{
const
foo
=
this
.
$route
.
query
.
back
const
add
=
this
.
$route
.
query
.
add
if
(
foo
===
'
back
'
&&
add
!=
'
add
'
)
{
this
.
currentPage
=
Number
(
localStorage
.
getItem
(
'
lastPage
'
))
||
1
this
.
formInline
.
question
=
localStorage
.
getItem
(
'
lastQuestion
'
)
||
''
}
else
{
localStorage
.
setItem
(
'
lastPage
'
,
1
)
localStorage
.
setItem
(
'
lastQuestion
'
,
''
)
this
.
currentPage
=
1
this
.
formInline
.
question
=
''
}
// 调用请求数据的方法
this
.
initCartList
()
})
},
mounted
()
{
this
.
currentPage
=
Number
(
localStorage
.
getItem
(
'
lastPage
'
))
||
1
this
.
formInline
.
question
=
localStorage
.
getItem
(
'
lastQuestion
'
)
this
.
elementui_page_component_key
++
},
methods
:
{
async
onDelete
(
id
)
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://120.79.36.53
:8888/chatbot/delete
'
,
{
params
:
{
id
:
id
,
},
})
this
.
initCartList
()
this
.
loading
=
false
},
refreshPage
()
{
location
.
reload
()
},
gotoDetail
(
id
)
{
this
.
$router
.
push
(
'
/home/chatinfo/
'
+
id
)
},
addChat
()
{
this
.
$router
.
push
(
'
/home/addChat/
'
)
},
data
()
{
return
{
// 用户列表数据
userlist
:
[],
loading
:
false
,
elementui_page_component_key
:
0
,
currentPage
:
Number
(
localStorage
.
getItem
(
'
lastPage
'
))
||
1
,
pageSize
:
9
,
total
:
0
,
formInline
:
{
question
:
''
,
},
}
},
watch
:
{
'
formInline.question
'
(
newVal
)
{
if
(
newVal
===
''
)
{
this
.
currentPage
=
1
localStorage
.
setItem
(
'
lastPage
'
,
this
.
currentPage
)
this
.
initCartList
()
}
},
},
created
()
{
this
.
$nextTick
(()
=>
{
const
foo
=
this
.
$route
.
query
.
back
const
add
=
this
.
$route
.
query
.
add
if
(
foo
===
'
back
'
&&
add
!=
'
add
'
)
{
this
.
currentPage
=
Number
(
localStorage
.
getItem
(
'
lastPage
'
))
||
1
this
.
formInline
.
question
=
localStorage
.
getItem
(
'
lastQuestion
'
)
||
''
}
else
{
localStorage
.
setItem
(
'
lastPage
'
,
1
)
localStorage
.
setItem
(
'
lastQuestion
'
,
''
)
this
.
currentPage
=
1
this
.
formInline
.
question
=
''
}
// 调用请求数据的方法
this
.
initCartList
()
})
},
mounted
()
{
this
.
currentPage
=
Number
(
localStorage
.
getItem
(
'
lastPage
'
))
||
1
this
.
formInline
.
question
=
localStorage
.
getItem
(
'
lastQuestion
'
)
this
.
elementui_page_component_key
++
},
methods
:
{
async
onDelete
(
id
)
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://localhost
:8888/chatbot/delete
'
,
{
params
:
{
id
:
id
,
},
})
this
.
initCartList
()
this
.
loading
=
false
},
refreshPage
()
{
location
.
reload
()
},
gotoDetail
(
id
)
{
this
.
$router
.
push
(
'
/home/chatinfo/
'
+
id
)
},
addChat
()
{
this
.
$router
.
push
(
'
/home/addChat/
'
)
},
async
initCartList
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://120.79.36.53
:8888/chatbot/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
question
:
this
.
formInline
.
question
,
},
})
console
.
log
(
res
)
if
(
res
.
code
===
200
)
{
this
.
userlist
=
res
.
result
.
content
this
.
total
=
res
.
result
.
totalElements
localStorage
.
setItem
(
'
lastPage
'
,
this
.
currentPage
)
localStorage
.
setItem
(
'
lastQuestion
'
,
this
.
formInline
.
question
)
}
this
.
loading
=
false
},
async
initCartList
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://localhost
:8888/chatbot/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
question
:
this
.
formInline
.
question
,
},
})
console
.
log
(
res
)
if
(
res
.
code
===
200
)
{
this
.
userlist
=
res
.
result
.
content
this
.
total
=
res
.
result
.
totalElements
localStorage
.
setItem
(
'
lastPage
'
,
this
.
currentPage
)
localStorage
.
setItem
(
'
lastQuestion
'
,
this
.
formInline
.
question
)
}
this
.
loading
=
false
},
handleCurrentChange
(
currentPage
)
{
this
.
currentPage
=
currentPage
this
.
initCartList
()
},
},
handleCurrentChange
(
currentPage
)
{
this
.
currentPage
=
currentPage
this
.
initCartList
()
},
},
}
</
script
>
...
...
src/components/menus/MyInterview.vue
浏览文件 @
27e8d5d4
...
...
@@ -195,7 +195,7 @@ export default {
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/interviewQuestion/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost
:8888/interviewQuestion/add
'
,
{
addType
:
addType
,
question
:
this
.
form
.
question
,
questionType
:
this
.
form
.
questionType
,
...
...
@@ -226,7 +226,7 @@ export default {
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/interviewQuestion/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost
:8888/interviewQuestion/update
'
,
{
id
:
this
.
currentRowId
,
question
:
this
.
form
.
question
,
questionType
:
this
.
form
.
questionType
,
...
...
@@ -251,7 +251,7 @@ export default {
async
onDelete
(
id
)
{
this
.
dialogVisible
=
false
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/interviewQuestion/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/interviewQuestion/delete
'
,
{
params
:
{
id
:
id
,
},
...
...
@@ -266,7 +266,7 @@ export default {
},
async
getQuestionType
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/interviewQuestion/questionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/interviewQuestion/questionType
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
this
.
options
=
res
.
result
}
...
...
@@ -274,7 +274,7 @@ export default {
async
interviewPage
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/interviewQuestion/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/interviewQuestion/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
...
...
src/components/menus/MyPic.vue
浏览文件 @
27e8d5d4
...
...
@@ -106,7 +106,7 @@ export default {
},
async
queryPic
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/picInfo/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/picInfo/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
...
...
src/components/subcomponents/MyAside.vue
浏览文件 @
27e8d5d4
...
...
@@ -24,10 +24,10 @@
<span
slot=
"title"
>
用户管理
</span>
</el-menu-item>
</router-link>
<router-link
to=
"/home/
goods
"
>
<el-menu-item
index=
"/
goods
"
class=
"left-aside-item"
>
<i
class=
"el-icon-
goods
"
></i>
<span
slot=
"title"
>
商品
管理
</span>
<router-link
to=
"/home/
algorithmic
"
>
<el-menu-item
index=
"/
algorithmic
"
class=
"left-aside-item"
>
<i
class=
"el-icon-
question
"
></i>
<span
slot=
"title"
>
算法题
管理
</span>
</el-menu-item>
</router-link>
<router-link
to=
"/home/orders"
>
...
...
src/components/user/AddChatDetail.vue
浏览文件 @
27e8d5d4
...
...
@@ -42,7 +42,7 @@ export default {
response
:
this
.
form
.
response
,
}
axios
.
post
(
'
http://
120.79.36.53
:8888/chatbot
'
,
data
)
.
post
(
'
http://
localhost
:8888/chatbot
'
,
data
)
.
then
((
response
)
=>
{
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if
(
response
.
data
.
code
===
200
)
{
...
...
src/components/user/MyChatDetail.vue
浏览文件 @
27e8d5d4
...
...
@@ -66,7 +66,7 @@ export default {
// 封装请求列表数据的方法
async
initChatList
()
{
// 调用 axios 的 get 方法,请求列表数据
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/chatbot/
'
+
this
.
id
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/chatbot/
'
+
this
.
id
)
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if
(
res
.
code
===
200
)
{
this
.
list
=
[
...
...
src/router/index.js
浏览文件 @
27e8d5d4
...
...
@@ -12,6 +12,7 @@ import Goods from '@/components/menus/MyGoods.vue'
import
Orders
from
'
@/components/menus/MyOrders.vue
'
import
Chat
from
'
@/components/menus/MyChat.vue
'
import
Interview
from
'
@/components/menus/MyInterview.vue
'
import
Algorithmic
from
'
@/components/menus/MyAlgorithmic.vue
'
import
Settings
from
'
@/components/menus/MySettings.vue
'
import
UserDetail
from
'
@/components/user/MyUserDetail.vue
'
import
MyChatDetail
from
'
@/components/user/MyChatDetail.vue
'
...
...
@@ -46,8 +47,8 @@ const router = new VueRouter({
component
:
Pic
},
{
path
:
'
goods
'
,
component
:
Goods
path
:
'
algorithmic
'
,
component
:
Algorithmic
},
{
path
:
'
orders
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录