|
|
@ -92,7 +92,7 @@ class FimsFormFields extends FormFields {
|
|
|
|
const fmtType = input.dataset.fmtType;
|
|
|
|
const fmtType = input.dataset.fmtType;
|
|
|
|
switch (fmtType) {
|
|
|
|
switch (fmtType) {
|
|
|
|
case 'dt' :
|
|
|
|
case 'dt' :
|
|
|
|
value = dateTimeFormat.format(value);
|
|
|
|
value = datetimeFormat.format(value);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'day' :
|
|
|
|
case 'day' :
|
|
|
|
value = dateFormat.format(value);
|
|
|
|
value = dateFormat.format(value);
|
|
|
@ -136,7 +136,7 @@ class FimsFormFields extends FormFields {
|
|
|
|
} else if("checkbox" == input.type) {
|
|
|
|
} else if("checkbox" == input.type) {
|
|
|
|
if(input.checked){
|
|
|
|
if(input.checked){
|
|
|
|
if(obj[property]){
|
|
|
|
if(obj[property]){
|
|
|
|
obj[property] += ","+value;
|
|
|
|
obj[property] += ","+value;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
obj[property] = value;
|
|
|
|
obj[property] = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -174,10 +174,10 @@ class FimsFormFields extends FormFields {
|
|
|
|
$.fn.getHeaderInfo = function() {
|
|
|
|
$.fn.getHeaderInfo = function() {
|
|
|
|
var excelTitle = [];
|
|
|
|
var excelTitle = [];
|
|
|
|
var excelTitleWidth = [];
|
|
|
|
var excelTitleWidth = [];
|
|
|
|
|
|
|
|
|
|
|
|
this.each(function(){
|
|
|
|
this.each(function(){
|
|
|
|
var title = $(this).text();
|
|
|
|
var title = $(this).text();
|
|
|
|
|
|
|
|
|
|
|
|
if(title != ""){
|
|
|
|
if(title != ""){
|
|
|
|
excelTitle.push(title);
|
|
|
|
excelTitle.push(title);
|
|
|
|
var titleWidth = $(this).outerWidth();
|
|
|
|
var titleWidth = $(this).outerWidth();
|
|
|
@ -185,7 +185,7 @@ $.fn.getHeaderInfo = function() {
|
|
|
|
excelTitleWidth.push(titleWidth);
|
|
|
|
excelTitleWidth.push(titleWidth);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
excelTitle : excelTitle.join(","),
|
|
|
|
excelTitle : excelTitle.join(","),
|
|
|
|
excelTitleWidth : excelTitleWidth.join(",")
|
|
|
|
excelTitleWidth : excelTitleWidth.join(",")
|
|
|
|