记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
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
董敬伟
liquidnet-bus-v1
Commits
8e9cd456
Commit
8e9cd456
authored
Jun 03, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员信息配置 修改提交
parent
63a0b483
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
190 additions
and
65 deletions
+190
-65
PerformanceMemberAuditParam.java
.../service/kylin/dto/param/PerformanceMemberAuditParam.java
+0
-1
TicketMemberAuditParam.java
...idnet/service/kylin/dto/param/TicketMemberAuditParam.java
+1
-1
KylinPerformancesController.java
...ontroller/zhengzai/kylin/KylinPerformancesController.java
+9
-0
details.html
...ources/templates/zhengzai/kylin/performances/details.html
+4
-2
memberInfo.html
...ces/templates/zhengzai/kylin/performances/memberInfo.html
+176
-61
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/PerformanceMemberAuditParam.java
View file @
8e9cd456
...
...
@@ -6,7 +6,6 @@ import lombok.Data;
import
java.util.List
;
@ApiModel
@Data
public
class
PerformanceMemberAuditParam
{
@ApiModelProperty
(
value
=
"演出id"
)
...
...
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/TicketMemberAuditParam.java
View file @
8e9cd456
...
...
@@ -11,7 +11,7 @@ import java.math.BigDecimal;
public
class
TicketMemberAuditParam
{
@ApiModelProperty
(
value
=
"票id"
)
private
String
ticketsId
;
@ApiModelProperty
(
value
=
"
演出
名称"
)
@ApiModelProperty
(
value
=
"
票
名称"
)
private
String
title
;
@ApiModelProperty
(
value
=
"会员优惠价格"
)
private
BigDecimal
priceDiscountMember
;
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/kylin/KylinPerformancesController.java
View file @
8e9cd456
...
...
@@ -8,6 +8,7 @@ import com.liquidnet.client.admin.zhengzai.kylin.service.impl.KylinPerformancesA
import
com.liquidnet.service.kylin.dao.PerformanceAdminListDao
;
import
com.liquidnet.service.kylin.dao.PerformanceMemberAuditDao
;
import
com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam
;
import
com.liquidnet.service.kylin.dto.param.PerformanceMemberAuditParam
;
import
com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -79,4 +80,12 @@ public class KylinPerformancesController extends BaseController {
mmap
.
put
(
"performanceMemberAuditDao"
,
result
);
return
prefix
+
"/memberInfo"
;
}
@RequiresPermissions
(
"kylin:performances:member:change"
)
@PostMapping
(
value
=
"/memberInfo/submit"
)
@ResponseBody
public
AjaxResult
memberInfo
(
PerformanceMemberAuditParam
performanceMemberAuditParam
)
{
boolean
result
=
kylinPerformancesService
.
performanceMemberChange
(
performanceMemberAuditParam
);
return
toAjax
(
result
);
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performances/details.html
View file @
8e9cd456
...
...
@@ -216,7 +216,7 @@
</div>
<div
id=
"tab-3"
class=
"tab-pane"
>
<div
class=
"panel-body"
>
<iframe
id=
"content_iframe"
name=
"content_iframe"
marginwidth=
0
marginheight=
0
width=
100%
height=
100%
frameborder=
0
></iframe>
<iframe
id=
"content_iframe"
name=
"content_iframe"
marginwidth=
0
marginheight=
0
width=
100%
height=
800px
frameborder=
0
></iframe>
</div>
</div>
</div>
...
...
@@ -269,6 +269,8 @@
"rejectTxt"
:
auditRejectTxt
};
$
.
operate
.
post
(
prefix
+
"/audit"
,
param
,
function
(
res
)
{
// $.modal.close();
$
.
table
.
refresh
();
});
}
}
...
...
@@ -279,7 +281,7 @@
//会员详情
function
memberInfo
()
{
document
.
getElementById
(
"content_iframe"
).
src
=
"../memberInfo/"
+
'[[${kylinPerformanceMisVo.performancesId}]]'
;
document
.
getElementById
(
"content_iframe"
).
src
=
"../memberInfo/"
+
'[[${kylinPerformanceMisVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
)
;
}
</script>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performances/memberInfo.html
View file @
8e9cd456
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('修改演出')"
/>
<th:block
th:include=
"include :: header('修改演出')"
/>
</head>
<style>
td
{
horiz-align
:
center
;
text-align
:
left
;
padding
:
10px
;
}
</style>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-performances
-edit"
th:object=
"${performanceMemberAuditDao}"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-member
-edit"
th:object=
"${performanceMemberAuditDao}"
>
<div
class=
"form-group"
>
<div
class=
"col-sm-8"
>
<input
name=
"performancesId"
th:field=
"*{performancesId}"
class=
"form-control"
type=
"hidden"
required
>
...
...
@@ -15,7 +23,7 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
演出名称:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"title"
th:field=
"*{title}"
class=
"form-control"
type=
"text"
required
>
<input
name=
"title"
th:field=
"*{title}"
class=
"form-control"
type=
"text"
required
readonly
>
</div>
</div>
<div
class=
"form-group"
>
...
...
@@ -41,41 +49,148 @@
<label
class=
"col-sm-3 control-label is-required"
>
该演出是否会员专属:
</label>
<div
class=
"col-sm-8"
th:if=
"*{isExclusive==1}"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
name=
"isExclusive"
checked
>
会员专属
</label>
<input
type=
"radio"
value=
1
name=
"isExclusive"
checked
>
会员专属
</label>
</div>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"0"
name=
"isExclusive"
>
不专属
</label>
<input
type=
"radio"
value=
0
name=
"isExclusive"
>
不专属
</label>
</div>
</div>
<div
class=
"col-sm-8"
th:if=
"*{isExclusive==0}"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
name=
"isExclusive"
>
会员专属
</label>
<input
type=
"radio"
value=
1
name=
"isExclusive"
>
会员专属
</label>
</div>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"0"
name=
"isExclusive"
checked
>
不专属
</label>
<input
type=
"radio"
value=
0
name=
"isExclusive"
checked
>
不专属
</label>
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
票种列表:(限购数量0为不限购):
</label>
</div>
<div
class=
"form-group"
>
<table
id=
"ticket-table"
th:border=
"1"
>
<tr>
<td
hidden
>
票种id
</td>
<td>
票种名
</td>
<td>
适用时间
</td>
<td>
售票状态
</td>
<td>
开售时间
</td>
<td>
普通票价
</td>
<td>
会员优惠
</td>
<td>
限购数
</td>
<td>
提前分钟
</td>
<td>
操作
</td>
<tr/>
<div
th:each=
"ticket : ${performanceMemberAuditDao.ticketMemberAudit}"
>
<tr
class=
"content-tr"
>
<td
style=
"text-align: left"
hidden
>
<input
name=
"ticketsId"
th:value=
"${ticket.ticketsId}"
class=
"form-control"
type=
"text"
readonly
>
</td>
<td
name=
"title"
th:value=
"${ticket.title}"
th:text=
"${ticket.title}"
>
</td>
<td
name=
"useStart"
th:value=
"${ticket.useStart}"
th:text=
"${ticket.useStart}"
>
</td>
<td
name=
"status"
th:if=
"${ticket.status == 1}"
>
审核中
</td>
<td
name=
"status"
th:if=
"${ticket.status == 3}"
>
审核通过
</td>
<td
name=
"status"
th:if=
"${ticket.status == 4}"
>
未通过
</td>
<td
name=
"status"
th:if=
"${ticket.status == 6}"
>
在售
</td>
<td
name=
"status"
th:if=
"${ticket.status == 7}"
>
下架
</td>
<td
name=
"status"
th:if=
"${ticket.status == 8}"
>
售罄
</td>
<td
name=
"status"
th:if=
"${ticket.status == 9}"
>
未开始
</td>
<td
name=
"status"
th:if=
"${ticket.status == 10}"
>
已结束
</td>
<td
name=
"timeStart"
th:value=
"${ticket.timeStart}"
th:text=
"${ticket.timeStart}"
>
</td>
<td
name=
"price"
th:value=
"${ticket.price}"
th:text=
"${ticket.price}"
>
</td>
<td>
<input
name=
"priceDiscountMember"
th:value=
"${ticket.priceDiscountMember}"
class=
"form-control"
type=
"text"
readonly
>
</td>
<td>
<input
name=
"memberLimitCount"
th:value=
"${ticket.memberLimitCount}"
class=
"form-control"
type=
"text"
readonly
/>
</td>
<td>
<input
name=
"advanceMinuteMember"
th:value=
"${ticket.advanceMinuteMember}"
class=
"form-control"
type=
"text"
readonly
/>
</td>
<td>
<button
type=
"button"
class=
"btn btn-w-m btn-success"
onclick=
"changeInfo(this)"
>
修改
</button>
</td>
</tr>
</div>
</table>
</div>
<button
type=
"button"
class=
"btn btn-w-m btn-success"
>
审核记录
</button>
<button
type=
"button"
class=
"btn btn-w-m btn-success"
th:if=
"*{isSubmit==0}"
onclick=
"submitHandler()"
>
提交审核
</button>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
// alert('[[${performanceMemberAuditDao.title}]]')
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"kylin/performances"
;
$
(
"#form-performances-edit"
).
validate
({
focusCleanup
:
true
});
//
// function submitHandler() {
// if ($.validate.form()) {
// $.operate.save(prefix + "/edit", $('#form-performances-edit').serialize());
// }
// }
function
submitHandler
()
{
var
performanceMemberAuditParam
=
{
"performancesId"
:
$
(
"input[name^='performancesId']"
).
val
(),
"title"
:
$
(
"input[name^='title']"
).
val
(),
"isMember"
:
parseInt
(
$
(
"input[name^='isMember']:checked"
).
val
()),
"isExclusive"
:
parseInt
(
$
(
"input[name^='isExclusive']:checked"
).
val
())
}
if
(
$
.
validate
.
form
())
{
$
(
"#ticket-table"
).
find
(
'.content-tr'
).
each
(
function
(
i
,
tr
)
{
$
(
tr
).
find
(
'td'
).
each
(
function
(
y
,
td
)
{
var
inputName
=
$
(
td
).
find
(
"input"
).
attr
(
"name"
);
var
inputValue
=
$
(
td
).
find
(
"input"
).
val
();
if
(
inputName
==
"priceDiscountMember"
)
{
//过滤修改列
performanceMemberAuditParam
[
"ticketMemberAudit["
+
i
+
"].priceDiscountMember"
]
=
parseFloat
(
inputValue
);
}
if
(
inputName
==
"memberLimitCount"
)
{
//过滤修改列
performanceMemberAuditParam
[
"ticketMemberAudit["
+
i
+
"].memberLimitCount"
]
=
parseInt
(
inputValue
);
}
if
(
inputName
==
"advanceMinuteMember"
)
{
performanceMemberAuditParam
[
"ticketMemberAudit["
+
i
+
"].advanceMinuteMember"
]
=
parseInt
(
inputValue
);
}
if
(
inputName
==
"ticketsId"
)
{
performanceMemberAuditParam
[
"ticketMemberAudit["
+
i
+
"].ticketsId"
]
=
inputValue
;
}
});
});
$
.
operate
.
post
(
prefix
+
"/memberInfo/submit"
,
performanceMemberAuditParam
,
function
(
res
)
{
location
.
reload
();
});
}
}
function
changeInfo
(
changeBtn
)
{
var
tr
=
$
(
changeBtn
).
parent
().
parent
();
//tr对象
tr
.
find
(
'td'
).
each
(
function
(
i
,
td
)
{
if
(
$
(
td
).
find
(
"input"
).
attr
(
"name"
)
==
"priceDiscountMember"
)
{
//过滤修改列
$
(
td
).
find
(
"input"
).
removeAttr
(
"readonly"
)
}
if
(
$
(
td
).
find
(
"input"
).
attr
(
"name"
)
==
"memberLimitCount"
)
{
//过滤修改列
$
(
td
).
find
(
"input"
).
removeAttr
(
"readonly"
)
}
if
(
$
(
td
).
find
(
"input"
).
attr
(
"name"
)
==
"advanceMinuteMember"
)
{
//过滤修改列
$
(
td
).
find
(
"input"
).
removeAttr
(
"readonly"
)
}
});
$
(
changeBtn
).
css
(
"visibility"
,
"hidden"
);
}
</script>
</script>
</body>
</html>
\ No newline at end of file
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