Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
cxt104926
Stusystem Web
提交
c6c46558
S
Stusystem Web
项目概览
cxt104926
/
Stusystem Web
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Stusystem Web
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c6c46558
编写于
6月 15, 2021
作者:
cxt104926
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
聊天
上级
88b33ca6
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
83 addition
and
8 deletion
+83
-8
src/router/index.js
src/router/index.js
+6
-3
src/views/Service/chat/index.vue
src/views/Service/chat/index.vue
+65
-0
src/views/Service/stuIframe/index.vue
src/views/Service/stuIframe/index.vue
+0
-0
src/views/login.vue
src/views/login.vue
+8
-1
src/views/system/stuMenu/index.vue
src/views/system/stuMenu/index.vue
+4
-4
未找到文件。
src/router/index.js
浏览文件 @
c6c46558
...
...
@@ -3,7 +3,6 @@ import Router from 'vue-router'
import
login
from
'
../views/login
'
import
register
from
'
../views/register/register
'
import
manager
from
'
../views/manager/index
'
import
de
from
"
element-ui/src/locale/lang/de
"
;
Vue
.
use
(
Router
)
...
...
@@ -36,10 +35,9 @@ const router = new Router({
component
:
()
=>
import
(
"
../views/system/welcome
"
)
},
{
// 嵌入页面
path
:
'
/system/stuIframe
'
,
name
:
'
stuIframe
'
,
component
:
()
=>
import
(
"
../views/s
ystem
/stuIframe
"
)
component
:
()
=>
import
(
"
../views/s
ervice
/stuIframe
"
)
},
{
path
:
'
/system/stuMenu
'
,
...
...
@@ -50,6 +48,11 @@ const router = new Router({
path
:
'
/system/stuClass
'
,
name
:
'
stuClass
'
,
component
:
()
=>
import
(
"
../views/system/stuClass
"
)
},
{
path
:
'
/service/chat
'
,
name
:
'
chat
'
,
component
:
()
=>
import
(
"
../views/service/chat
"
)
}
]
},
...
...
src/views/Service/chat/index.vue
0 → 100644
浏览文件 @
c6c46558
<
template
>
<section>
<div
class=
"leftDiv"
>
<ul
class=
"infinite-list"
>
<!--
<li
v-for=
"item in friends"
:key=
"item"
class=
"infinite-list-item"
>
111
<el-divider
content-position=
"left"
></el-divider></li>
-->
<li
class=
"infinite-list-item"
@
click=
"chat(1)"
><img
src=
"favicon.ico"
/>
巴扎黑
</li>
<li
class=
"infinite-list-item"
@
click=
"chat(2)"
>
吾皇
</li>
<li
class=
"infinite-list-item"
@
click=
"chat(3)"
>
吾皇1
</li>
</ul>
</div>
</section>
</
template
>
<
script
>
export
default
{
name
:
"
chat
"
,
data
()
{
return
{
friends
:
[],
}
},
created
()
{
// this.getFriends();
},
methods
:
{
chat
(
va
){
console
.
log
(
va
)
// console.log(this)
},
async
getFriends
()
{
await
this
.
api
.
getApi
(
""
).
then
(
res
=>
{
this
.
friends
=
res
.
data
;
})
},
}
}
</
script
>
<
style
scoped
>
.leftDiv
{
width
:
200px
;
background-color
:
white
;
}
.infinite-list
{
padding
:
0
;
margin
:
0
;
color
:
white
;
list-style-type
:
none
;
}
.infinite-list-item
{
cursor
:
pointer
;
/*鼠标放上变手*/
height
:
50px
;
margin-top
:
1px
;
padding
:
10px
;
display
:
flex
;
justify-content
:
center
;
/*水平居中*/
align-items
:
center
;
/*垂直居中*/
background-color
:
#3d3d3d
;
}
</
style
>
src/views/
system
/stuIframe/index.vue
→
src/views/
Service
/stuIframe/index.vue
浏览文件 @
c6c46558
文件已移动
src/views/login.vue
浏览文件 @
c6c46558
...
...
@@ -65,7 +65,14 @@
}
};
},
created
()
{},
created
()
{
let
item
=
localStorage
.
getItem
(
"
Authorization
"
);
if
(
item
!==
null
){
this
.
$router
.
push
({
path
:
"
/manager
"
});
}
},
methods
:
{
getVerification
()
{
this
.
imgSrc
=
"
/api/getVerify?temp=
"
+
+
new
Date
();
...
...
src/views/system/stuMenu/index.vue
浏览文件 @
c6c46558
...
...
@@ -326,11 +326,11 @@ export default {
this
.
$refs
[
formName
].
validate
(
async
valid
=>
{
if
(
valid
)
{
let
formData
=
this
.
addAndEditFormData
;
if
(
formData
.
id
===
formData
.
pid
){
this
.
$message
.
error
(
'
出现错误,父级不可以是自己
'
);
return
;
}
if
(
this
.
isEditable
)
{
if
(
formData
.
id
===
formData
.
pid
){
this
.
$message
.
error
(
'
出现错误,父级不可以是自己
'
);
return
;
}
this
.
api
.
putApi
(
"
/menu/update
"
,
formData
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
this
.
getList
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录