Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
X
xplayer
Project
Project
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
xplayer
Commits
27f75f9e
Commit
27f75f9e
authored
May 28, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
92445f78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
PlayerController.java
...va/com/egolm/xplayer/web/api/player/PlayerController.java
+6
-6
vlist.html
src/main/resources/page/admin/vlist.html
+5
-5
mvlist.html
src/main/resources/page/mvlist.html
+2
-2
No files found.
src/main/java/com/egolm/xplayer/web/api/player/PlayerController.java
View file @
27f75f9e
...
...
@@ -42,22 +42,22 @@ public class PlayerController {
@ResponseBody
@RequestMapping
(
"getMvList"
)
public
Rjx
getMvList
(
String
keyword
,
String
year
,
String
[]
country
,
String
[]
category
,
Page
page
)
{
public
Rjx
getMvList
(
String
keyword
,
String
video_
year
,
String
[]
country
,
String
[]
category
,
Page
page
)
{
if
(
page
==
null
)
{
page
=
new
Page
();
}
Integer
year_start
=
null
;
Integer
year_end
=
null
;
if
(
StringUtil
.
isNotBlank
(
year
)
&&
!
"全部"
.
equals
(
year
))
{
if
(
year
.
contains
(
"-"
))
{
String
[]
years
=
year
.
split
(
"-"
);
if
(
StringUtil
.
isNotBlank
(
video_year
)
&&
!
"全部"
.
equals
(
video_
year
))
{
if
(
video_
year
.
contains
(
"-"
))
{
String
[]
years
=
video_
year
.
split
(
"-"
);
year_start
=
Integer
.
valueOf
(
years
[
0
]);
year_end
=
Integer
.
valueOf
(
years
[
1
]);
}
else
{
year_start
=
year_end
=
Integer
.
valueOf
(
year
);
year_start
=
year_end
=
Integer
.
valueOf
(
video_
year
);
}
}
SqlWhere
where
=
new
SqlWhere
().
eq
(
"is_sales"
,
1
).
ge
(
"
year"
,
year_start
).
le
(
"
year"
,
year_end
).
lk
(
new
String
[]{
"video_name"
},
keyword
);
SqlWhere
where
=
new
SqlWhere
().
eq
(
"is_sales"
,
1
).
ge
(
"
video_year"
,
year_start
).
le
(
"video_
year"
,
year_end
).
lk
(
new
String
[]{
"video_name"
},
keyword
);
String
sql
=
"select * from t_video"
+
StringUtil
.
join
(
" and "
,
" where "
,
where
.
getStringList
());
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
limit
(
sql
,
page
,
where
.
getObjectArray
());
return
Rjx
.
jsonOk
().
setData
(
list
);
...
...
src/main/resources/page/admin/vlist.html
View file @
27f75f9e
...
...
@@ -45,14 +45,14 @@
<a
href=
"javascript:void(0);"
@
click=
"toEdit(scope.row)"
>
{{scope.row.name}}
</a>
</template>
</el-table-column>
<el-table-column
prop=
"desc"
label=
"简介"
></el-table-column>
<el-table-column
prop=
"
video_
desc"
label=
"简介"
></el-table-column>
<el-table-column
label=
"是否收费"
width=
"100"
>
<template
scope=
"scope"
>
<el-button
round
v-if=
"scope.row.is_free == 0"
size=
"mini"
type=
"danger"
>
收费
</el-button>
<el-button
round
v-if=
"scope.row.is_free == 1"
size=
"mini"
type=
"success"
>
免费
</el-button>
</template>
</el-table-column>
<el-table-column
prop=
"year"
label=
"年代"
></el-table-column>
<el-table-column
prop=
"
video_
year"
label=
"年代"
></el-table-column>
<el-table-column
prop=
"country"
label=
"国家"
></el-table-column>
<el-table-column
prop=
"base_score"
label=
"基础分"
></el-table-column>
<el-table-column
width=
"230"
>
...
...
@@ -81,7 +81,7 @@
<el-input
v-model=
"videoForm.name"
placeholder=
"请输入档案名称"
></el-input>
</el-form-item>
<el-form-item
label=
"一句话简介"
label-width=
"90px"
>
<el-input
v-model=
"videoForm.desc"
placeholder=
"请输入简短描述"
></el-input>
<el-input
v-model=
"videoForm.
video_
desc"
placeholder=
"请输入简短描述"
></el-input>
</el-form-item>
<el-form-item
label=
"国家"
label-width=
"90px"
>
<el-select
v-model=
"videoForm.country"
filterable
:filter-method=
"searchCountry"
placeholder=
"请选择国家"
>
...
...
@@ -97,11 +97,11 @@
</el-radio-group>
</el-form-item>
<el-form-item
label=
"年代/评分"
label-width=
"90px"
>
<el-input
v-model=
"videoForm.year"
placeholder=
"例如:2019"
style=
"width:49%;"
></el-input>
<el-input
v-model=
"videoForm.
video_
year"
placeholder=
"例如:2019"
style=
"width:49%;"
></el-input>
<el-input
v-model=
"videoForm.base_score"
placeholder=
"基础分"
style=
"width:50%;"
></el-input>
</el-form-item>
<el-form-item
label=
"视频简介"
label-width=
"90px"
>
<el-input
type=
"textarea"
:rows=
"8"
v-model=
"videoForm.profiles"
resize=
"none"
placeholder=
"请输视频简介"
></el-input>
<el-input
type=
"textarea"
:rows=
"8"
v-model=
"videoForm.
video_
profiles"
resize=
"none"
placeholder=
"请输视频简介"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
src/main/resources/page/mvlist.html
View file @
27f75f9e
...
...
@@ -33,7 +33,7 @@
</el-radio-group>
</el-form-item>
<el-form-item
label=
"年份"
>
<el-radio-group
v-model=
"searchForm.year"
size=
"mini"
@
change=
"loadData(false)"
>
<el-radio-group
v-model=
"searchForm.
video_
year"
size=
"mini"
@
change=
"loadData(false)"
>
<el-radio-button
label=
"全部"
></el-radio-button>
<el-radio-button
v-for=
"year in years"
:label=
"year"
></el-radio-button>
</el-radio-group>
...
...
@@ -77,9 +77,9 @@
searchForm
:
{
keyword
:
""
,
sort
:
"好评"
,
year
:
"全部"
,
type
:
"全部"
,
country
:
"全部"
,
video_year
:
"全部"
,
index
:
1
,
limit
:
40
,
},
...
...
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