Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lwby_copyright_book_data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
maliang
lwby_copyright_book_data
Commits
12568f50
Commit
12568f50
authored
Jun 11, 2020
by
maliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传bug修复
parent
1ad7fdab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
3 deletions
+63
-3
CopyrightBookController.java
...t/security/server/controller/CopyrightBookController.java
+4
-0
PageTableRequest.java
...com/boot/security/server/page/table/PageTableRequest.java
+10
-0
copyrightDeductionConfig.html
...tic/pages/copyrightBookData/copyrightDeductionConfig.html
+49
-3
No files found.
src/main/java/com/boot/security/server/controller/CopyrightBookController.java
View file @
12568f50
...
...
@@ -52,6 +52,10 @@ public class CopyrightBookController {
@ApiOperation
(
value
=
"获取总的未结算数据"
)
@ResponseBody
public
String
getDeductionConfig
(
@RequestBody
PageTableRequest
request
){
List
<
BaseSettlement
>
array
=
request
.
getArray
();
for
(
BaseSettlement
baseSettlement
:
array
)
{
System
.
out
.
println
(
baseSettlement
.
getContext
());
}
List
<
BaseSettlement
>
deductionConfig
=
copyrightDao
.
getDeductionConfig
(
request
.
getPage
(),
request
.
getLimit
());
List
<
BaseSettlement
>
deductionConfigs
=
copyrightDao
.
getDeductionConfig
(
0
,
1000
);
JSONObject
jsonObject
=
new
JSONObject
();
...
...
src/main/java/com/boot/security/server/page/table/PageTableRequest.java
View file @
12568f50
...
...
@@ -4,6 +4,7 @@ import com.boot.security.server.model.AdvertiserData;
import
com.boot.security.server.model.BaseSettlement
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -33,6 +34,15 @@ public class PageTableRequest implements Serializable {
private
Integer
type
;
private
String
typeName
;
private
Integer
copyrightId
;
private
List
<
BaseSettlement
>
array
;
public
List
<
BaseSettlement
>
getArray
()
{
return
array
;
}
public
void
setArray
(
List
<
BaseSettlement
>
array
)
{
this
.
array
=
array
;
}
public
Integer
getCopyrightId
()
{
return
copyrightId
;
...
...
src/main/resources/static/pages/copyrightBookData/copyrightDeductionConfig.html
View file @
12568f50
...
...
@@ -12,7 +12,20 @@
<div
class=
"layui-form"
>
<div
class=
"layui-row"
>
<div
class=
"layui-col-md3"
>
<button
id=
"updateDeductionConfig"
type=
"button"
class=
"layui-btn layui-btn-warm"
>
修改
</button>
</div>
<form
class=
"layui-form"
action=
""
>
<div
class=
"layui-col-md3"
style=
"width: 160px"
>
<select
name=
"deductionSelect"
lay-verify=
""
id=
"deductionSelect"
>
<option
value=
"阶梯比例"
>
阶梯比例
</option>
<option
value=
"固定比例"
>
固定比例
</option>
</select>
</div>
<div
class=
"layui-col-md3"
style=
"width: 400px"
>
<input
id=
"deductionInput"
type=
"text"
name=
"deductionInput"
placeholder=
"请输入扣量比例"
autocomplete=
"off"
class=
"layui-input"
>
</div>
</form>
</div>
<div
class=
"layui-row"
>
<table
class=
"layui-table"
id=
"copyrightConfig_table"
lay-filter=
"test"
>
...
...
@@ -46,11 +59,13 @@
var
form
;
var
copyrights
;
var
tableIns
;
var
table
;
var
form
;
function
table1
(){
function
table1
(){
layui
.
use
(
'table'
,
function
()
{
var
table
=
layui
.
table
;
table
=
layui
.
table
;
tableIns
=
table
.
render
({
elem
:
'#copyrightConfig_table'
,
id
:
'idTest'
...
...
@@ -64,6 +79,7 @@
,
limits
:[
20
,
30
,
40
,
50
,
60
,
70
,
80
,
90
]
,
height
:
500
,
cols
:
[[
{
type
:
"checkbox"
}
,{
field
:
'copyrightId'
,
title
:
'版权费id'
,
hide
:
true
}
,{
field
:
'copyrightName'
,
title
:
'版权方名称'
}
,{
field
:
'typeName'
,
title
:
'扣量方式'
,
edit
:
"text"
}
...
...
@@ -103,9 +119,39 @@
});
});
}
layui
.
use
(
'form'
,
function
(){
form
=
layui
.
form
;
});
$
(
"#updateDeductionConfig"
).
bind
(
"click"
,
function
(){
var
checkStatus
=
table
.
checkStatus
(
'idTest'
);
var
typeName
=
$
(
"#deductionSelect"
).
val
();
var
context
=
$
(
"#deductionInput"
).
val
();
console
.
log
(
checkStatus
.
data
);
console
.
log
(
typeName
);
console
.
log
(
context
);
var
list
=
{
typeName
:
typeName
,
context
:
context
,
array
:
checkStatus
.
data
}
$
.
ajax
({
//请求方式
type
:
"post"
,
//请求的媒体类型
contentType
:
"application/json;charset=UTF-8"
,
//请求地址
url
:
"/copyrightBookController/updateDeductionConfig"
,
async
:
false
,
//数据,json字符串
data
:
JSON
.
stringify
(
list
),
//ajax controller有请求参数必须传参写data
//请求成功
success
:
function
(
result
)
{
}
});
});
function
reload
(
data
)
{
...
...
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