|
@@ -1313,6 +1313,7 @@ export default {
|
|
|
if (field.common === 'N') return
|
|
if (field.common === 'N') return
|
|
|
columns.push(this.buildSearchForm(field))
|
|
columns.push(this.buildSearchForm(field))
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
return columns
|
|
return columns
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
@@ -1431,7 +1432,6 @@ export default {
|
|
|
if (fieldType === 'currentUser' || fieldType === 'currentOrg' || fieldType === 'currentPosition') {
|
|
if (fieldType === 'currentUser' || fieldType === 'currentOrg' || fieldType === 'currentPosition') {
|
|
|
fieldType = 'selector'
|
|
fieldType = 'selector'
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
column['field_type'] = fieldType
|
|
column['field_type'] = fieldType
|
|
|
column['field_options'] = fieldOptions
|
|
column['field_options'] = fieldOptions
|
|
|
column['data_type'] = dataType
|
|
column['data_type'] = dataType
|
|
@@ -1509,7 +1509,16 @@ export default {
|
|
|
fieldType: 'date',
|
|
fieldType: 'date',
|
|
|
dateType: fieldOptions.datefmt_type ? fieldOptions.datefmt_type : 'date'
|
|
dateType: fieldOptions.datefmt_type ? fieldOptions.datefmt_type : 'date'
|
|
|
})
|
|
})
|
|
|
- } else if (fieldType === 'datePicker' || fieldType.toLowerCase() === 'daterange') {
|
|
|
|
|
|
|
+ } else if (fieldType === 'datePicker') {
|
|
|
|
|
+ const datefmt = fieldOptions.datefmt || ''
|
|
|
|
|
+ const dateDealFmt = DateFormatUtil.dealFmt(fieldOptions.datefmt)
|
|
|
|
|
+ searchColumn = Object.assign(searchColumn, {
|
|
|
|
|
+ prop: `Q^${field.name}^SL`,
|
|
|
|
|
+ modelValue: `Q^${field.name}^SL`,
|
|
|
|
|
+ fieldType: 'datePicker',
|
|
|
|
|
+ field_options: fieldOptions
|
|
|
|
|
+ })
|
|
|
|
|
+ } else if (fieldType.toLowerCase() === 'daterange') {
|
|
|
const datefmt = fieldOptions.datefmt || ''
|
|
const datefmt = fieldOptions.datefmt || ''
|
|
|
const dateDealFmt = DateFormatUtil.dealFmt(fieldOptions.datefmt)
|
|
const dateDealFmt = DateFormatUtil.dealFmt(fieldOptions.datefmt)
|
|
|
searchColumn = Object.assign(searchColumn, {
|
|
searchColumn = Object.assign(searchColumn, {
|