Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-message
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-message
Commits
6dd63cd2
提交
6dd63cd2
authored
2月 24, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
59178fba
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
66 行增加
和
8 行删除
+66
-8
.config.dev.js
.config.dev.js
+1
-1
.config.pro.js
.config.pro.js
+1
-1
.config.test.js
.config.test.js
+1
-1
app.vue
src/app.vue
+23
-0
header.vue
src/components/layout/header.vue
+12
-1
index.vue
src/pages/log/index.vue
+9
-4
index.vue
src/pages/msgTemplate/index.vue
+9
-0
index.vue
src/pages/userGroup/index.vue
+10
-0
没有找到文件。
.config.dev.js
浏览文件 @
6dd63cd2
...
...
@@ -33,6 +33,6 @@ module.exports = {
},
ProvidePlugin
:
{},
others
:
{
loginUrl
:
'https://login2.ezijing.com/
xtraining/login/index
'
loginUrl
:
'https://login2.ezijing.com/'
}
}
.config.pro.js
浏览文件 @
6dd63cd2
...
...
@@ -14,6 +14,6 @@ module.exports = {
},
ProvidePlugin
:
{},
others
:
{
loginUrl
:
'https://login.ezijing.com/
xtraining/login/index
'
loginUrl
:
'https://login.ezijing.com/'
}
}
.config.test.js
浏览文件 @
6dd63cd2
...
...
@@ -14,6 +14,6 @@ module.exports = {
},
ProvidePlugin
:
{},
others
:
{
loginUrl
:
'https://login2.ezijing.com/
xtraining/login/index
'
loginUrl
:
'https://login2.ezijing.com/'
}
}
src/app.vue
浏览文件 @
6dd63cd2
...
...
@@ -3,3 +3,26 @@
<router-view
/>
</div>
</
template
>
<
script
>
import
*
as
api
from
'@/api/common.js'
export
default
{
mounted
()
{
if
(
!
parseInt
(
window
.
sessionStorage
.
isLogin
))
{
window
.
sessionStorage
.
isLogin
=
1
this
.
addLogs
(
'登录'
)
}
console
.
log
(
111
)
},
methods
:
{
addLogs
(
msg
)
{
api
.
addLog
({
description
:
msg
})
.
then
(
response
=>
{
})
.
finally
(()
=>
{
})
}
}
}
</
script
>
src/components/layout/header.vue
浏览文件 @
6dd63cd2
...
...
@@ -25,6 +25,7 @@
<
script
>
import
defaultAvatar
from
'@/assets/images/avatar.png'
import
*
as
api
from
'@/api/common.js'
export
default
{
name
:
'AppHeader'
,
...
...
@@ -44,8 +45,18 @@ export default {
methods
:
{
// 退出登录
logout
()
{
this
.
addLogs
(
'退出登录'
)
},
addLogs
(
msg
)
{
api
.
addLog
({
description
:
msg
})
.
then
(
response
=>
{
this
.
$store
.
dispatch
(
'logout'
).
then
(()
=>
{
window
.
location
.
href
=
webConf
.
others
.
loginUrl
window
.
sessionStorage
.
isLogin
=
0
window
.
location
.
href
=
`
${
webConf
.
others
.
loginUrl
}
?rd=
${
window
.
location
.
href
}
`
})
})
.
finally
(()
=>
{
})
}
}
...
...
src/pages/log/index.vue
浏览文件 @
6dd63cd2
...
...
@@ -17,7 +17,7 @@
</div>
<div
class=
"table-box"
>
<el-table
:data=
"tableData"
:data=
"tableData
.data
"
style=
"width: 100%"
>
<el-table-column
align=
"center"
...
...
@@ -44,7 +44,9 @@
<div
class=
"page-box"
>
<el-pagination
layout=
"prev, pager, next"
:total=
"1"
>
:page-size=
9
@
current-change=
"changePage"
:total=
"tableData.total"
>
</el-pagination>
</div>
</div>
...
...
@@ -64,14 +66,17 @@ export default {
}
},
mounted
()
{
this
.
getLogList
()
this
.
getLogList
(
{
page
:
1
,
limit
:
9
}
)
},
methods
:
{
changePage
(
n
)
{
this
.
getLogList
({
page
:
n
,
limit
:
9
})
},
getLogList
(
param
)
{
api
.
getLogList
(
param
)
.
then
(
response
=>
{
this
.
tableData
=
response
.
data
.
data
this
.
tableData
=
response
.
data
})
.
finally
(()
=>
{
})
...
...
src/pages/msgTemplate/index.vue
浏览文件 @
6dd63cd2
...
...
@@ -157,6 +157,14 @@ export default {
this
.
page
.
page
--
this
.
getMsgTempList
(
this
.
page
)
},
addLogs
(
msg
)
{
api
.
addLog
({
description
:
msg
})
.
then
(
response
=>
{
})
.
finally
(()
=>
{
})
},
deleteTampList
()
{
const
arr
=
[]
this
.
selectItem
.
map
(
item
=>
{
...
...
@@ -166,6 +174,7 @@ export default {
.
deleteTampList
({
ids
:
arr
.
toString
()
})
.
then
(
response
=>
{
this
.
getMsgTempList
()
this
.
addLogs
(
'删除模板'
)
})
.
finally
(()
=>
{
})
...
...
src/pages/userGroup/index.vue
浏览文件 @
6dd63cd2
...
...
@@ -172,6 +172,7 @@ export default {
.
addGroup
({
name
:
this
.
addGrounpInput
})
.
then
(
response
=>
{
if
(
response
.
code
===
0
)
{
this
.
addLogs
(
'添加用户组'
)
this
.
getGroupList
({
page
:
1
,
limit
:
9
})
this
.
addGrounpInput
=
''
this
.
addGroupPop
=
false
...
...
@@ -216,11 +217,20 @@ export default {
})
}
},
addLogs
(
msg
)
{
api
.
addLog
({
description
:
msg
})
.
then
(
response
=>
{
})
.
finally
(()
=>
{
})
},
delGroup
(
id
)
{
api
.
delGroup
(
id
)
.
then
(
response
=>
{
this
.
getGroupList
()
this
.
addLogs
(
'删除用户组'
)
})
.
finally
(()
=>
{
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论