Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cbe81e4b
authored
Jan 17, 2018
by
Huang Linyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复点击编辑时 定价页面不能正常显示的bug,修复点击库存时,库存设置页面不能正常显示定价时间的bug
parent
fc37aa2c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
src/main/java/com/ctrip/fun/admin/controller/golf/CourseResourceController.java
src/main/webapp/WEB-INF/templates/golf/resourceInventoryForm.ftl
src/main/webapp/WEB-INF/templates/golf/resourcePriceForm.ftl
src/main/java/com/ctrip/fun/admin/controller/golf/CourseResourceController.java
View file @
cbe81e4b
...
...
@@ -441,13 +441,16 @@ public class CourseResourceController {
if
(
null
!=
priceId
)
{
ResourcePriceBean
bean
=
service
.
getPrice
(
""
,
priceId
);
BeanConverter
.
copyProperties
(
form
,
bean
);
Date
[]
theDate
=
new
Date
[
1
];
theDate
[
0
]=
bean
.
getPriceDate
();
form
.
setTheDate
(
theDate
);
// Date[] theDate = new Date[1];
// theDate[0]=bean.getPriceDate();
// form.setTheDate(theDate);
model
.
put
(
"theDate"
,
bean
.
getPriceDate
());
}
CourseResourceBean
bean
=
service
.
get
(
""
,
resourceId
);
int
paymentType
=
bean
.
getPaymentType
();
model
.
put
(
"form"
,
form
);
model
.
put
(
"paymentType"
,
paymentType
);
model
.
put
(
"id"
,
priceId
);
model
.
put
(
"action"
,
"/golf/course-resource/price/edit"
);
...
...
@@ -478,7 +481,8 @@ public class CourseResourceController {
ResourceInventoryBean
bean
=
service
.
getInventory
(
""
,
inventoryId
);
BeanConverter
.
copyProperties
(
form
,
bean
);
form
.
setTheDate
(
bean
.
getTheDate
());
// form.setTheDate(bean.getTheDate());
model
.
put
(
"theDate"
,
bean
.
getTheDate
()[
0
]);
}
...
...
src/main/webapp/WEB-INF/templates/golf/resourceInventoryForm.ftl
View file @
cbe81e4b
...
...
@@ -55,8 +55,17 @@
<div class="long_content_div control-group ">
<label class="control-label" for="theDate">时间</label>
<div class="controls" style="">
<input id="theDate" name="theDate" value="" placeholder="时间" class="datepicker input-medium" required="" type="text" />
<#if id??>
<input id="theDate" name="theDate" value='${(theDate?string("yyyy-MM-dd"))!}' placeholder="时间" title="时间" class="datepicker input-medium" required="" type="text" />
<div class="pp" style="background-image:url(${staticServer}/pic/calendar.jpg);width: 40px;height: 30px;">
<#else>
<input id="theDate" name="theDate" value='' placeholder="时间" title="时间" class="datepicker input-medium" required="" type="text" />
<div class="pp" style="background-image:url(${staticServer}/pic/calendar.jpg);width: 40px;height: 30px;">
</#if>
<!--
<input id="theDate" name="theDate" value="${(theDate?string("yyyy-MM-dd"))!}" placeholder="时间" class="datepicker input-medium" required="" type="text" />
<div class="pp" style="background-image:url(${staticServer}/pic/calendar.jpg);width: 40px;height: 30px;"> -->
</div>
</div>
</div>
...
...
src/main/webapp/WEB-INF/templates/golf/resourcePriceForm.ftl
View file @
cbe81e4b
...
...
@@ -82,10 +82,11 @@ $(function () {
<label class="control-label" for="theDate">时间</label>
<div class="controls" style="">
<#if id??>
<input id="theDate" name="theDate" value=
"" placeholder
="时间" class="datepicker input-medium" required="" type="text" />
<input id="theDate" name="theDate" value=
'${(theDate?string("yyyy-MM-dd"))!}' placeholder="时间" title
="时间" class="datepicker input-medium" required="" type="text" />
<div class="pp" style="background-image:url(${staticServer}/pic/calendar.jpg);width: 40px;height: 30px;">
<#else>
<input id="theDate" name="theDate" value="${form.theDate??}" placeholder="时间" class="datepicker input-medium" required="" type="text" />
<input id="theDate" name="theDate" value='' placeholder="时间" title="时间" class="datepicker input-medium" required="" type="text" />
<div class="pp" style="background-image:url(${staticServer}/pic/calendar.jpg);width: 40px;height: 30px;">
</#if>
</div>
...
...
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