Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-middle-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-middle-front
Commits
d23ea9b2
Commit
d23ea9b2
authored
Aug 04, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
7a6969cd
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
0 deletions
+121
-0
src/api/system/report.js
+118
-0
src/store/modules/user.js
+3
-0
src/views/system/report/index.vue
+0
-0
No files found.
src/api/system/report.js
0 → 100644
View file @
d23ea9b2
import
request
from
'@/utils/request'
/**
* 查询报告列表(模拟接口)
* 若真实接口存在,替换 url 即可
*/
export
function
listReport
(
query
)
{
return
request
({
url
:
'/system/report/list'
,
method
:
'get'
,
params
:
query
})
}
/**
* 发起大屏讲解(创建协同会话)
*/
export
function
createCoSession
(
data
)
{
return
request
({
url
:
'/communication/api/coSession/create'
,
method
:
'post'
,
data
:
data
})
}
/**
* 结束协同会话
*/
export
function
endCoSession
(
data
)
{
return
request
({
url
:
'/communication/api/coSession/end'
,
method
:
'post'
,
data
:
data
})
}
/**
* 切换控制权(顾问调用)
*/
export
function
transferControl
(
data
)
{
return
request
({
url
:
'/communication/api/coSession/control/transfer'
,
method
:
'post'
,
data
:
data
})
}
/**
* 加入协同会话(顾问调用)
*/
export
function
joinCoSession
(
data
)
{
return
request
({
url
:
'/communication/api/coSession/join'
,
method
:
'post'
,
data
:
data
})
}
// ==================== 录制相关接口 ====================
/**
* 开始录制
* @param {Object} data - { bizType, bizId }
*/
export
function
startRecording
(
data
)
{
return
request
({
url
:
'/communication/api/recordingTask/start'
,
method
:
'post'
,
data
:
data
})
}
/**
* 停止录制并上传视频
* @param {string} taskId - 录制任务ID
* @param {File} file - 视频文件
*/
export
function
stopRecording
(
taskId
,
file
)
{
const
formData
=
new
FormData
()
formData
.
append
(
'taskId'
,
taskId
)
formData
.
append
(
'file'
,
file
)
return
request
({
url
:
'/communication/api/recordingTask/stop'
,
method
:
'post'
,
data
:
formData
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
})
}
/**
* 查询录制信息
* @param {string} taskId - 录制任务ID
*/
export
function
queryRecording
(
taskId
)
{
return
request
({
url
:
`/communication/api/recordingTask/query/
${
taskId
}
`
,
method
:
'get'
})
}
/**
* 获取生效的脱敏规则列表
* @param {string} resourceType - 资源类型,如 'report'
* @param {string} resourceId - 资源ID,如 'RPT-DEMO'
*/
export
function
getDesensitizationRules
(
resourceType
,
resourceId
)
{
return
request
({
url
:
'/communication/api/desensitization/enabled'
,
method
:
'get'
,
params
:
{
resourceType
:
resourceType
,
resourceBizId
:
resourceId
}
})
}
\ No newline at end of file
src/store/modules/user.js
View file @
d23ea9b2
...
@@ -10,6 +10,7 @@ const useUserStore = defineStore('user', {
...
@@ -10,6 +10,7 @@ const useUserStore = defineStore('user', {
state
:
()
=>
({
state
:
()
=>
({
token
:
getToken
(),
token
:
getToken
(),
id
:
''
,
id
:
''
,
userBizId
:
''
,
name
:
''
,
name
:
''
,
nickName
:
''
,
nickName
:
''
,
avatar
:
''
,
avatar
:
''
,
...
@@ -31,6 +32,7 @@ const useUserStore = defineStore('user', {
...
@@ -31,6 +32,7 @@ const useUserStore = defineStore('user', {
.
then
(
res
=>
{
.
then
(
res
=>
{
setToken
(
res
.
data
.
token
)
setToken
(
res
.
data
.
token
)
this
.
token
=
res
.
data
.
token
this
.
token
=
res
.
data
.
token
this
.
userBizId
=
res
.
data
.
userBizId
resolve
()
resolve
()
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
...
@@ -70,6 +72,7 @@ const useUserStore = defineStore('user', {
...
@@ -70,6 +72,7 @@ const useUserStore = defineStore('user', {
}
}
this
.
id
=
user
.
userId
this
.
id
=
user
.
userId
this
.
userBizId
=
user
.
userBizId
this
.
name
=
user
.
userName
this
.
name
=
user
.
userName
this
.
nickName
=
user
.
nickName
this
.
nickName
=
user
.
nickName
this
.
avatar
=
avatar
this
.
avatar
=
avatar
...
...
src/views/system/report/index.vue
0 → 100644
View file @
d23ea9b2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment