提交 b7b65aaa 编写于 作者: 傻拖

增加时间选择方式

上级 d557e65f
...@@ -9,7 +9,7 @@ o2.widget.Calendar = o2.Calendar = new Class({ ...@@ -9,7 +9,7 @@ o2.widget.Calendar = o2.Calendar = new Class({
"defaultView": "day", //day, month, year "defaultView": "day", //day, month, year
"baseDate": new Date(), "baseDate": new Date(),
"secondEnable" : false, "secondEnable" : false,
"secondSelectType" : "slider", "timeSelectType" : "slider",
"isTime": false, "isTime": false,
"isMulti": false, "isMulti": false,
"before": null, "before": null,
...@@ -963,7 +963,7 @@ o2.widget.Calendar = o2.Calendar = new Class({ ...@@ -963,7 +963,7 @@ o2.widget.Calendar = o2.Calendar = new Class({
//this.showMNode.set("text", sel.options[sel.selectedIndex].get("value")); //this.showMNode.set("text", sel.options[sel.selectedIndex].get("value"));
}else{ }else{
if(this.options.secondSelectType === "select"){ if(this.options.timeSelectType === "select"){
this.itmeHNode = this.contentTimeTable.getElement(".MWF_calendar_time_h").empty(); this.itmeHNode = this.contentTimeTable.getElement(".MWF_calendar_time_h").empty();
this.itmeMNode = this.contentTimeTable.getElement(".MWF_calendar_time_m").empty(); this.itmeMNode = this.contentTimeTable.getElement(".MWF_calendar_time_m").empty();
......
...@@ -50,10 +50,10 @@ ...@@ -50,10 +50,10 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="editTableTitle">{{$.lp.secondSelectType}}:</td> <td class="editTableTitle">{{$.lp.timeSelectType}}:</td>
<td class="editTableValue"> <td class="editTableValue">
<input type="radio" name="secondSelectType" value="slider" text{$.secondSelectType=='select'||!$.secondSelectType ?'checked':''}/>滑块 <input type="radio" name="timeSelectType" value="slider" text{$.timeSelectType=='select'||!$.timeSelectType ?'checked':''}/>滑块
<input type="radio" name="secondSelectType" value="select" text{$.secondSelectType=='slider' ?'checked':''}/>下拉 <input type="radio" name="timeSelectType" value="select" text{$.timeSelectType=='slider' ?'checked':''}/>下拉
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -522,7 +522,7 @@ MWF.xApplication.process.FormDesigner.LP = { ...@@ -522,7 +522,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"yearOnly": "YearOnly", "yearOnly": "YearOnly",
"timeOnly": "TimeOnly", "timeOnly": "TimeOnly",
"selectSecond": "Select Second", "selectSecond": "Select Second",
"secondSelectType": "Second Select Type", "timeSelectType": "Time Select Type",
"format": "Format", "format": "Format",
"selectStyle": "Select Style", "selectStyle": "Select Style",
......
...@@ -520,7 +520,7 @@ MWF.xApplication.process.FormDesigner.LP = { ...@@ -520,7 +520,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"yearOnly": "仅年度", "yearOnly": "仅年度",
"timeOnly": "仅时间", "timeOnly": "仅时间",
"selectSecond": "是否选择秒", "selectSecond": "是否选择秒",
"secondSelectType": "选择方式", "timeSelectType": "时间选择方式",
"format": "格式化", "format": "格式化",
"selectStyle": "Select样式", "selectStyle": "Select样式",
......
...@@ -127,7 +127,7 @@ MWF.xApplication.process.Xform.Calendar = MWF.APPCalendar = new Class( ...@@ -127,7 +127,7 @@ MWF.xApplication.process.Xform.Calendar = MWF.APPCalendar = new Class(
var options = { var options = {
"style": layout.mobile ? "xform_mobile" : "xform", "style": layout.mobile ? "xform_mobile" : "xform",
"secondEnable" : this.json.isSelectSecond, "secondEnable" : this.json.isSelectSecond,
"secondSelectType" : this.json.secondSelectType, "timeSelectType" : this.json.timeSelectType,
"isTime": (this.json.selectType==="datetime" || this.json.selectType==="time"), "isTime": (this.json.selectType==="datetime" || this.json.selectType==="time"),
"timeOnly": (this.json.selectType === "time"), "timeOnly": (this.json.selectType === "time"),
"monthOnly" : (this.json.selectType === "month"), "monthOnly" : (this.json.selectType === "month"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册