Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
courseSign
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
courseSign
Commits
76313cb2
Commit
76313cb2
authored
Nov 26, 2024
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ea0677a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
course_action_users.go
server/service/course/course_action_users.go
+9
-1
courseActionUsers.vue
web/src/view/courseActionUsers/courseActionUsers.vue
+4
-4
No files found.
server/service/course/course_action_users.go
View file @
76313cb2
...
...
@@ -97,11 +97,19 @@ func (courseActionUsersService *CourseActionUsersService)GetCourseActionUsersInf
}
var
actionInfo
course
.
CourseAction
err
=
global
.
GVA_DB
.
Model
(
&
course
.
CourseAction
{})
.
Where
(
"id = ?"
,
v
.
Aid
)
.
First
(
&
actionInfo
)
.
Error
if
err
!=
nil
{
if
err
!=
nil
&&
err
!=
gorm
.
ErrRecordNotFound
{
return
}
else
if
err
!=
nil
&&
err
==
gorm
.
ErrRecordNotFound
{
continue
}
var
user
course
.
CourseUsers
err
=
global
.
GVA_DB
.
Model
(
&
course
.
CourseUsers
{})
.
Where
(
"id = ?"
,
v
.
Uid
)
.
First
(
&
user
)
.
Error
if
err
!=
nil
&&
err
!=
gorm
.
ErrRecordNotFound
{
return
}
else
if
err
!=
nil
&&
err
==
gorm
.
ErrRecordNotFound
{
continue
}
courseActionUserss
[
k
]
.
Addr
=
user
.
Address
courseActionUserss
[
k
]
.
CourseName
=
courseInfo
.
CourseName
courseActionUserss
[
k
]
.
ActionName
=
actionInfo
.
ActionName
courseActionUserss
[
k
]
.
ActionStart
=
actionInfo
.
ActionStart
...
...
web/src/view/courseActionUsers/courseActionUsers.vue
View file @
76313cb2
...
...
@@ -73,9 +73,9 @@
<el-table-column
align=
"left"
label=
"日期"
width=
"180"
>
<
template
#
default=
"scope"
>
{{
formatDate
(
scope
.
row
.
CreatedAt
)
}}
</
template
>
</el-table-column>
<el-table-column
align=
"left"
label=
"用户"
prop=
"
uid
"
width=
"120"
/>
<el-table-column
align=
"left"
label=
"课程"
prop=
"c
id
"
width=
"120"
/>
<el-table-column
align=
"left"
label=
"活动
编号"
prop=
"aid
"
width=
"120"
/>
<el-table-column
align=
"left"
label=
"用户"
prop=
"
addr
"
width=
"120"
/>
<el-table-column
align=
"left"
label=
"课程"
prop=
"c
ourseName
"
width=
"120"
/>
<el-table-column
align=
"left"
label=
"活动
"
prop=
"actionName
"
width=
"120"
/>
<!-- <el-table-column align="left" label="签到 0 未签到 1 已签到" prop="isSign" width="120">-->
<!-- <template #default="scope">{{ formatBoolean(scope.row.isSign) }}</template>-->
<!-- </el-table-column>-->
...
...
@@ -84,7 +84,7 @@
</el-table-column>
<el-table-column
align=
"left"
label=
"按钮组"
>
<
template
#
default=
"scope"
>
<el-button
type=
"primary"
link
icon=
"edit"
class=
"table-button"
@
click=
"updateCourseActionUsersFunc(scope.row)"
>
变更
</el-button
>
<!--
<el-button
type=
"primary"
link
icon=
"edit"
class=
"table-button"
@
click=
"updateCourseActionUsersFunc(scope.row)"
>
变更
</el-button>
--
>
<el-button
type=
"primary"
link
icon=
"delete"
@
click=
"deleteRow(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
...
...
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