Commit 83296cf8 authored by 于广洋's avatar 于广洋

申报月份永远能点

parent 01f44073
...@@ -96,20 +96,21 @@ ...@@ -96,20 +96,21 @@
if (companyInfo.returnCode == "00") { if (companyInfo.returnCode == "00") {
companyInfo.content.config = config companyInfo.content.config = config
initpage = initPage(companyInfo.content); initpage = initPage(companyInfo.content);
$("#getInputValue").on("focus", function() {
WdatePicker({
isShowClear:false,
dateFmt: 'yyyy-MM',
onpicking: function(dp){
initpage.changeDate(this, dp);
}
});
});
} else { } else {
hideLoading(); hideLoading();
alertWarning(companyInfo.returnMessage); alertWarning(companyInfo.returnMessage);
// 弹出错误对话框 // 弹出错误对话框
} }
$("#getInputValue").on("focus", function() {
WdatePicker({
isShowClear:false,
dateFmt: 'yyyy-MM',
onpicking: function(dp){
initpage.changeDate(this, dp);
}
});
});
}, },
error: function(xhr){ error: function(xhr){
//jsonp 方式此方法不被触发 //jsonp 方式此方法不被触发
......
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
// alertWarning("请求失败!"); // alertWarning("请求失败!");
// // 弹出错误对话框 // // 弹出错误对话框
// } // }
var initpage; var initpage;
$(function(){ $(function(){
// //
...@@ -145,7 +146,7 @@ ...@@ -145,7 +146,7 @@
if (companyInfo.success) { if (companyInfo.success) {
companyInfo.bean.config = config companyInfo.bean.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
$("#getInputValue").on("focus", function() { /*$("#getInputValue").on("focus", function() {
WdatePicker({ WdatePicker({
isShowClear:false, isShowClear:false,
dateFmt: 'yyyy-MM', dateFmt: 'yyyy-MM',
...@@ -153,11 +154,20 @@ ...@@ -153,11 +154,20 @@
initpage.changeDate(this, dp); initpage.changeDate(this, dp);
} }
}); });
}); });*/
} else { } else {
alertWarning(companyInfo.returnMessage); alertWarning(companyInfo.returnMessage);
// 弹出错误对话框 // 弹出错误对话框
} }
$("#getInputValue").on("focus", function() {
WdatePicker({
isShowClear:false,
dateFmt: 'yyyy-MM',
onpicking: function(dp){
initpage.changeDate(this, dp);
}
});
});
}, },
error: function(xhr){ error: function(xhr){
hideLoading(); hideLoading();
......
...@@ -140,20 +140,21 @@ ...@@ -140,20 +140,21 @@
if (companyInfo.success) { if (companyInfo.success) {
companyInfo.bean.config = config companyInfo.bean.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
$("#getInputValue").on("focus", function() {
WdatePicker({
isShowClear:false,
dateFmt: 'yyyy-MM',
onpicking: function(dp){
initpage.changeDate(this, dp);
}
});
});
} else { } else {
hideLoading(); hideLoading();
alertWarning(companyInfo.returnMessage); alertWarning(companyInfo.returnMessage);
// 弹出错误对话框 // 弹出错误对话框
} }
$("#getInputValue").on("focus", function() {
WdatePicker({
isShowClear:false,
dateFmt: 'yyyy-MM',
onpicking: function(dp){
initpage.changeDate(this, dp);
}
});
});
}, },
error: function(xhr){ error: function(xhr){
//jsonp 方式此方法不被触发 //jsonp 方式此方法不被触发
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment