Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-live
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-live
Commits
eacaf934
提交
eacaf934
authored
8月 06, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 接口迁移至v3
上级
e48a8334
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
60 行增加
和
55 行删除
+60
-55
common.js
src/api/common.js
+39
-39
system.js
src/api/system.js
+9
-9
tencent.js
src/api/tencent.js
+4
-4
index.vue
src/pages/calendar/day/index.vue
+4
-2
index.vue
src/pages/system/account/index.vue
+1
-1
index.vue
src/pages/system/role/index.vue
+3
-0
没有找到文件。
src/api/common.js
浏览文件 @
eacaf934
...
@@ -14,55 +14,55 @@ export function operateLog(params) {
...
@@ -14,55 +14,55 @@ export function operateLog(params) {
* 模糊搜索
* 模糊搜索
*/
*/
export
function
searchUserList
(
params
)
{
export
function
searchUserList
(
params
)
{
return
httpRequest
.
get
(
'/api/live/common/v
1
/sso-user/search'
,
{
params
})
return
httpRequest
.
get
(
'/api/live/common/v
3
/sso-user/search'
,
{
params
})
}
}
/**
/
/ /
**
* 创建腾讯用户
//
* 创建腾讯用户
*/
//
*/
export
function
createAccount
(
data
)
{
//
export function createAccount(data) {
return
httpRequest
.
post
(
'/api/live/admin/v2/tencent/user'
,
data
)
//
return httpRequest.post('/api/live/admin/v2/tencent/user', data)
}
//
}
/**
/
/ /
**
* 获取腾讯用户列表(分页)
//
* 获取腾讯用户列表(分页)
*/
//
*/
export
function
getAccountList
(
params
)
{
//
export function getAccountList(params) {
return
httpRequest
.
get
(
'/api/live/admin/v3/tencent/users'
,
{
params
})
//
return httpRequest.get('/api/live/admin/v3/tencent/users', { params })
}
//
}
/**
/**
* 获取腾讯用户列表(不分页)
* 获取腾讯用户列表(不分页)
*/
*/
export
function
getAllAccountList
()
{
//
export function getAllAccountList() {
return
httpRequest
.
get
(
'/api/live/admin/v2/tencent/user/list'
)
//
return httpRequest.get('/api/live/admin/v2/tencent/user/list')
}
//
}
/**
/
/ /
**
* 更新腾讯用户
//
* 更新腾讯用户
*/
//
*/
export
function
updateAccount
(
data
)
{
//
export function updateAccount(data) {
return
httpRequest
.
put
(
`/api/live/admin/v2/tencent/user/
${
data
.
userid
}
/update`
,
data
)
//
return httpRequest.put(`/api/live/admin/v2/tencent/user/${data.userid}/update`, data)
}
//
}
/**
/
/ /
**
* 删除腾讯用户
//
* 删除腾讯用户
*/
//
*/
export
function
deleteAccount
(
params
)
{
//
export function deleteAccount(params) {
return
httpRequest
.
delete
(
`/api/live/admin/v2/tencent/user/
${
params
.
userid
}
/delete`
,
params
)
//
return httpRequest.delete(`/api/live/admin/v2/tencent/user/${params.userid}/delete`, params)
}
//
}
/**
/**
* 创建会议
* 创建会议
*/
*/
export
function
createMeeting
(
data
)
{
export
function
createMeeting
(
data
)
{
return
httpRequest
.
post
(
'/api/live/admin/v
2
/tencent/meeting'
,
data
)
return
httpRequest
.
post
(
'/api/live/admin/v
3
/tencent/meeting'
,
data
)
}
}
/**
/**
*
创建
会议
*
更新
会议
*/
*/
export
function
updateMeeting
(
data
)
{
export
function
updateMeeting
(
data
)
{
return
httpRequest
.
put
(
`/api/live/admin/v
2
/tencent/meeting/
${
data
.
meeting_id
}
/update`
,
data
)
return
httpRequest
.
put
(
`/api/live/admin/v
3
/tencent/meeting/
${
data
.
meeting_id
}
/update`
,
data
)
}
}
/**
/**
* 获取腾讯会议列表
* 获取腾讯会议列表
*/
*/
export
function
getMeetingList
(
params
)
{
export
function
getMeetingList
(
params
)
{
return
httpRequest
.
get
(
'/api/live/admin/v
2
/tencent/meetings'
,
{
params
})
return
httpRequest
.
get
(
'/api/live/admin/v
3
/tencent/meetings'
,
{
params
})
}
}
/**
/**
* 获取腾讯会议列表(不分页)
* 获取腾讯会议列表(不分页)
...
@@ -74,38 +74,38 @@ export function getNonpagedMeetingList(params) {
...
@@ -74,38 +74,38 @@ export function getNonpagedMeetingList(params) {
* 获取腾讯会议详情
* 获取腾讯会议详情
*/
*/
export
function
getMeetingDetails
(
params
)
{
export
function
getMeetingDetails
(
params
)
{
return
httpRequest
.
get
(
`/api/live/admin/v
2
/tencent/meeting/
${
params
.
meeting_id
}
/detail`
,
{
params
})
return
httpRequest
.
get
(
`/api/live/admin/v
3
/tencent/meeting/
${
params
.
meeting_id
}
/detail`
,
{
params
})
}
}
/**
/**
* 通过会议code获取腾讯会议详情
* 通过会议code获取腾讯会议详情
*/
*/
export
function
getMeetingDetailsByCode
(
params
)
{
export
function
getMeetingDetailsByCode
(
params
)
{
return
httpRequest
.
get
(
`/api/live/admin/v
2
/tencent/meeting/
${
params
.
meeting_code
}
/detail-code`
,
{
params
})
return
httpRequest
.
get
(
`/api/live/admin/v
3
/tencent/meeting/
${
params
.
meeting_code
}
/detail-code`
,
{
params
})
}
}
/**
/**
* 取消(删除)会议
* 取消(删除)会议
*/
*/
export
function
cancelMeeting
(
params
)
{
export
function
cancelMeeting
(
params
)
{
return
httpRequest
.
post
(
`/api/live/admin/v
2
/tencent/meeting/
${
params
.
meeting_id
}
/cancel`
,
params
)
return
httpRequest
.
post
(
`/api/live/admin/v
3
/tencent/meeting/
${
params
.
meeting_id
}
/cancel`
,
params
)
}
}
/**
/**
* 终止会议
* 终止会议
*/
*/
export
function
stopMeeting
(
params
)
{
export
function
stopMeeting
(
params
)
{
return
httpRequest
.
post
(
`/api/live/admin/v
2
/tencent/meeting/
${
params
.
meeting_id
}
/dimiss`
,
params
)
return
httpRequest
.
post
(
`/api/live/admin/v
3
/tencent/meeting/
${
params
.
meeting_id
}
/dimiss`
,
params
)
}
}
/**
/**
* 获取回放地址
* 获取回放地址
*/
*/
export
function
getMeetingRecordAddr
(
params
)
{
export
function
getMeetingRecordAddr
(
params
)
{
return
httpRequest
.
post
(
`/api/live/admin/v
2
/tencent/meeting/
${
params
.
meeting_id
}
/records/address`
,
params
)
return
httpRequest
.
post
(
`/api/live/admin/v
3
/tencent/meeting/
${
params
.
meeting_id
}
/records/address`
,
params
)
}
}
/**
/**
* 导出参会人员
* 导出参会人员
*/
*/
export
function
exportParticipants
(
params
)
{
export
function
exportParticipants
(
params
)
{
return
httpRequest
({
return
httpRequest
({
url
:
`/api/live/admin/v
2
/tencent/meeting/
${
params
.
meeting_id
}
/participants/export`
,
url
:
`/api/live/admin/v
3
/tencent/meeting/
${
params
.
meeting_id
}
/participants/export`
,
method
:
'get'
,
method
:
'get'
,
params
,
params
,
responseType
:
'blob'
responseType
:
'blob'
...
...
src/api/system.js
浏览文件 @
eacaf934
...
@@ -24,19 +24,19 @@ export function searchUserList(params) {
...
@@ -24,19 +24,19 @@ export function searchUserList(params) {
* 创建角色
* 创建角色
*/
*/
export
function
createRole
(
data
)
{
export
function
createRole
(
data
)
{
return
httpRequest
.
post
(
'/api/live/admin/v
2
/role'
,
data
)
return
httpRequest
.
post
(
'/api/live/admin/v
3/system
/role'
,
data
)
}
}
/**
/**
* 更新角色
* 更新角色
*/
*/
export
function
updateRole
(
id
,
params
)
{
export
function
updateRole
(
id
,
params
)
{
return
httpRequest
.
put
(
`/api/live/admin/v
2
/role/
${
id
}
/update`
,
params
)
return
httpRequest
.
put
(
`/api/live/admin/v
3/system
/role/
${
id
}
/update`
,
params
)
}
}
/**
/**
* 获取角色详情
* 获取角色详情
*/
*/
export
function
getRoleDetails
(
params
)
{
export
function
getRoleDetails
(
params
)
{
return
httpRequest
.
get
(
`/api/live/admin/v
2
/role/
${
params
.
role_id
}
/detail`
,
{
params
})
return
httpRequest
.
get
(
`/api/live/admin/v
3/system
/role/
${
params
.
role_id
}
/detail`
,
{
params
})
}
}
/**
/**
* 删除角色
* 删除角色
...
@@ -48,7 +48,7 @@ export function deleteRole(id) {
...
@@ -48,7 +48,7 @@ export function deleteRole(id) {
* 获取角色列表
* 获取角色列表
*/
*/
export
function
getRoles
(
params
)
{
export
function
getRoles
(
params
)
{
return
httpRequest
.
get
(
'/api/live/admin/v
2
/roles'
,
{
params
})
return
httpRequest
.
get
(
'/api/live/admin/v
3/system
/roles'
,
{
params
})
}
}
/**
/**
* 分配角色给用户
* 分配角色给用户
...
@@ -114,7 +114,7 @@ export function getAllPermissions() {
...
@@ -114,7 +114,7 @@ export function getAllPermissions() {
* 分配权限给角色
* 分配权限给角色
*/
*/
export
function
permissionToRole
(
data
)
{
export
function
permissionToRole
(
data
)
{
return
httpRequest
.
post
(
'/api/live/admin/v
2
/assign/permission-to-role'
,
data
)
return
httpRequest
.
post
(
'/api/live/admin/v
3/system
/assign/permission-to-role'
,
data
)
}
}
/* ----------------------------系统用户管理---------------------------- */
/* ----------------------------系统用户管理---------------------------- */
...
@@ -122,25 +122,25 @@ export function permissionToRole(data) {
...
@@ -122,25 +122,25 @@ export function permissionToRole(data) {
* 创建系统用户
* 创建系统用户
*/
*/
export
function
createAccount
(
data
)
{
export
function
createAccount
(
data
)
{
return
httpRequest
.
post
(
'/api/live/admin/v
2
/user/create'
,
data
)
return
httpRequest
.
post
(
'/api/live/admin/v
3/system
/user/create'
,
data
)
}
}
/**
/**
* 删除系统用户
* 删除系统用户
*/
*/
export
function
deleteAccount
(
data
)
{
export
function
deleteAccount
(
data
)
{
return
httpRequest
.
post
(
'/api/live/admin/v
2
/user/batch-delete'
,
data
)
return
httpRequest
.
post
(
'/api/live/admin/v
3/system
/user/batch-delete'
,
data
)
}
}
/**
/**
* 获取系统用户列表(分页)
* 获取系统用户列表(分页)
*/
*/
export
function
getAccountList
(
params
)
{
export
function
getAccountList
(
params
)
{
return
httpRequest
.
get
(
'/api/live/admin/v
2
/users'
,
{
params
})
return
httpRequest
.
get
(
'/api/live/admin/v
3/system
/users'
,
{
params
})
}
}
/**
/**
* 获取当前用户的角色
* 获取当前用户的角色
*/
*/
export
function
getUserRoles
()
{
export
function
getUserRoles
()
{
return
httpRequest
.
get
(
'/api/live/admin/v
2
/user/roles'
)
return
httpRequest
.
get
(
'/api/live/admin/v
3/system
/user/roles'
)
}
}
/**
/**
* 获取当前用户的权限
* 获取当前用户的权限
...
...
src/api/tencent.js
浏览文件 @
eacaf934
...
@@ -3,25 +3,25 @@ import httpRequest from '@/utils/axios'
...
@@ -3,25 +3,25 @@ import httpRequest from '@/utils/axios'
* 创建腾讯用户
* 创建腾讯用户
*/
*/
export
function
createTxAccount
(
data
)
{
export
function
createTxAccount
(
data
)
{
return
httpRequest
.
post
(
'/api/live/admin/v
2-2
/tencent/user/create'
,
data
)
return
httpRequest
.
post
(
'/api/live/admin/v
3
/tencent/user/create'
,
data
)
}
}
/**
/**
* 更新腾讯用户
* 更新腾讯用户
*/
*/
export
function
updateTxAccount
(
id
,
data
)
{
export
function
updateTxAccount
(
id
,
data
)
{
return
httpRequest
.
put
(
`/api/live/admin/v
2-2
/tencent/user/
${
id
}
/update`
,
data
)
return
httpRequest
.
put
(
`/api/live/admin/v
3
/tencent/user/
${
id
}
/update`
,
data
)
}
}
/**
/**
* 删除腾讯用户
* 删除腾讯用户
*/
*/
export
function
deleteTxAccount
(
data
)
{
export
function
deleteTxAccount
(
data
)
{
return
httpRequest
.
post
(
'/api/live/admin/v
2-2
/tencent/user/batch-delete'
,
data
)
return
httpRequest
.
post
(
'/api/live/admin/v
3
/tencent/user/batch-delete'
,
data
)
}
}
/**
/**
* 获取腾讯用户列表(分页)
* 获取腾讯用户列表(分页)
*/
*/
export
function
getTxAccountList
(
params
)
{
export
function
getTxAccountList
(
params
)
{
return
httpRequest
.
get
(
'/api/live/admin/v
2-2
/tencent/users'
,
{
params
})
return
httpRequest
.
get
(
'/api/live/admin/v
3
/tencent/users'
,
{
params
})
}
}
/**
/**
* 获取所有腾讯用户列表(分页)
* 获取所有腾讯用户列表(分页)
...
...
src/pages/calendar/day/index.vue
浏览文件 @
eacaf934
...
@@ -18,7 +18,8 @@ import Schedule from '@/components/Schedule'
...
@@ -18,7 +18,8 @@ import Schedule from '@/components/Schedule'
import
ScheduleContent
from
'./components/ScheduleContent'
import
ScheduleContent
from
'./components/ScheduleContent'
import
DetailsPopover
from
'./components/DetailsPopover'
import
DetailsPopover
from
'./components/DetailsPopover'
import
NewPopover
from
'./components/NewPopover'
import
NewPopover
from
'./components/NewPopover'
import
{
getAllAccountList
,
getNonpagedMeetingList
}
from
'@api/common'
import
{
getNonpagedMeetingList
}
from
'@api/common'
import
{
getAllTxAccountList
}
from
'@api/tencent'
import
{
dateFormat
}
from
'@/utils/dateAlgs'
import
{
dateFormat
}
from
'@/utils/dateAlgs'
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
...
@@ -149,7 +150,8 @@ export default {
...
@@ -149,7 +150,8 @@ export default {
},
},
fetchAccountList
()
{
fetchAccountList
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getAllAccountList
().
then
((
res
)
=>
{
getAllTxAccountList
().
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
0
&&
res
.
data
.
list
)
{
if
(
res
.
code
===
0
&&
res
.
data
.
list
)
{
resolve
(
res
.
data
.
list
)
resolve
(
res
.
data
.
list
)
}
else
{
}
else
{
...
...
src/pages/system/account/index.vue
浏览文件 @
eacaf934
...
@@ -229,7 +229,7 @@ export default {
...
@@ -229,7 +229,7 @@ export default {
sso_id
:
form
.
user_id
sso_id
:
form
.
user_id
}
}
createAccount
(
params
).
then
((
res
)
=>
{
createAccount
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
===
0
&&
res
.
data
.
sso_
id
)
{
if
(
res
.
code
===
0
&&
res
.
data
.
id
)
{
this
.
$message
.
success
(
'创建用户成功'
)
this
.
$message
.
success
(
'创建用户成功'
)
this
.
fetchAccountList
()
this
.
fetchAccountList
()
operateLog
({
type
:
`创建系统用户,被创建账户userid:
${
form
.
userid
}
`
,
user
:
this
.
user
.
nickname
})
operateLog
({
type
:
`创建系统用户,被创建账户userid:
${
form
.
userid
}
`
,
user
:
this
.
user
.
nickname
})
...
...
src/pages/system/role/index.vue
浏览文件 @
eacaf934
...
@@ -95,6 +95,9 @@ export default {
...
@@ -95,6 +95,9 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
user
()
{
return
this
.
$store
.
state
.
user
.
user
},
_permissions
()
{
_permissions
()
{
return
this
.
$store
.
state
.
user
.
permissions
||
[]
return
this
.
$store
.
state
.
user
.
permissions
||
[]
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论