Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TianGongKaiWu-20251203
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TianGongKaiWu-20251203
Commits
56481042
Commit
56481042
authored
Dec 09, 2025
by
王勇霞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 埋点
parent
68b210c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
index.jsx
src/panels/taskPanel/index.jsx
+0
-3
task.js
src/store/task.js
+3
-3
No files found.
src/panels/taskPanel/index.jsx
View file @
56481042
...
...
@@ -10,7 +10,6 @@ import { ModalCtrl } from "@/core/ctrls/ModalCtrl";
import
SignCom
from
'./signCom/signCom'
;
import
API
from
'@/api'
;
import
taskStore
from
'@/store/task'
;
import
{
handleTaskLogClick
}
from
'@/MD'
;
@
observer
class
TaskPanel
extends
React
.
Component
{
...
...
@@ -52,11 +51,9 @@ class TaskPanel extends React.Component {
<
span
className=
'taskTitle'
>
{
`${el.title}(${el.completeSize || 0}/${el.intervalLimit || 0})`
}
</
span
>
<
span
className=
'taskSubTitle'
>
{
el
.
subtitle
}
</
span
>
{
el
.
taskStatus
==
0
&&
<
Button
className=
'goToBtn'
onClick=
{
_asyncThrottle
(()
=>
{
handleTaskLogClick
(
28
,
el
.
code
,
1
);
taskStore
.
doComplete
(
el
)
})
}
></
Button
>
}
{
el
.
taskStatus
==
1
&&
<
Button
className=
'dailingqu'
onClick=
{
_asyncThrottle
(()
=>
{
handleTaskLogClick
(
28
,
el
.
code
,
2
);
taskStore
.
sendPrize
(
el
.
code
);
})
}
></
Button
>
}
{
el
.
taskStatus
==
2
&&
<
Button
className=
'completed'
></
Button
>
}
...
...
src/store/task.js
View file @
56481042
...
...
@@ -7,7 +7,7 @@ import HomePage from '@/pages/HomePage/HomePage';
import
{
windowJumpUrl
}
from
'@/utils/utils'
;
import
{
Toast
}
from
'@grace/ui'
;
import
shareStore
from
'./share'
;
import
{
handleTaskLogExposure
}
from
'@/MD'
;
//
import { handleTaskLogExposure } from '@/MD';
const
taskStore
=
makeAutoObservable
({
// 任务列表
taskInfo
:
{},
...
...
@@ -28,10 +28,10 @@ const taskStore = makeAutoObservable({
this
.
taskList
.
forEach
(
el
=>
{
const
{
code
}
=
el
;
if
(
el
.
taskStatus
==
0
)
{
handleTaskLogExposure
(
28
,
code
,
1
);
//
handleTaskLogExposure(28, code, 1);
}
if
(
el
.
taskStatus
==
1
)
{
handleTaskLogExposure
(
28
,
code
,
2
);
//
handleTaskLogExposure(28, code, 2);
}
});
}
...
...
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