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
a4a69c38
Commit
a4a69c38
authored
Nov 21, 2024
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bfc39a97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
course_action.go
server/model/course/course_action.go
+1
-0
courseAction.vue
web/src/view/courseAction/courseAction.vue
+3
-0
No files found.
server/model/course/course_action.go
View file @
a4a69c38
...
...
@@ -13,6 +13,7 @@ type CourseAction struct {
Cid
*
int
`json:"cid" form:"cid" gorm:"column:cid;comment:课程;size:10;"`
ActionBanner
string
`json:"actionBanner" form:"actionBanner" gorm:"column:action_banner;NOT NULL;comment:活动图;size:128;"`
ActionName
string
`json:"actionName" form:"actionName" gorm:"column:action_name;NOT NULL;comment:活动名称;size:128;"`
ActionDesc
string
`json:"actionDesc" form:"actionDesc" gorm:"column:action_desc;type:text;comment:活动描述;;"`
ActionStart
*
time
.
Time
`json:"actionStart" form:"actionStart" gorm:"column:action_start;NOT NULL;comment:活动开始时间;"`
ActionEnd
*
time
.
Time
`json:"actionEnd" form:"actionEnd" gorm:"column:action_end;NOT NULL;comment:活动结束时间;"`
IsShow
*
bool
`json:"isShow" form:"isShow" gorm:"column:is_show;comment:上下线;"`
...
...
web/src/view/courseAction/courseAction.vue
View file @
a4a69c38
...
...
@@ -98,6 +98,9 @@
<el-form-item
label=
"活动名称:"
prop=
"actionName"
>
<el-input
v-model=
"formData.actionName"
:clearable=
"true"
placeholder=
"请输入"
/>
</el-form-item>
<el-form-item
label=
"活动详情:"
prop=
"actionDesc"
>
<el-input
v-model=
"formData.actionDesc"
:clearable=
"true"
type=
"textarea"
placeholder=
"请输入"
/>
</el-form-item>
<el-form-item
label=
"开始时间:"
prop=
"actionStart"
>
<el-date-picker
v-model=
"formData.actionStart"
type=
"date"
style=
"width:100%"
placeholder=
"选择日期"
:clearable=
"true"
/>
</el-form-item>
...
...
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