test
This commit is contained in:
@@ -209,7 +209,7 @@ const initTable = async () => {
|
||||
menu: false,
|
||||
addBtn: false,
|
||||
height: isHeight ? 'auto' : undefined,
|
||||
calcHeight: isHeight ? 160 : '',
|
||||
calcHeight: isHeight ? 10 : '',
|
||||
index: reportVo.tableConfig.includes('index'),
|
||||
border: reportVo.tableConfig.includes('border'),
|
||||
stripe: reportVo.tableConfig.includes('stripe'),
|
||||
@@ -281,6 +281,11 @@ const initTable = async () => {
|
||||
tableSearch.value[config.prop]=item.searchDefaultValue
|
||||
}
|
||||
}
|
||||
if(['年','年度','年份','月','月度','月份','年月'].includes(item.fieldName)){
|
||||
config.searchSpan=3
|
||||
config.searchLabelWidth=60
|
||||
|
||||
}
|
||||
if(!!item.isAmount){
|
||||
index==0?amountFieds.value.fistField=config.prop:''
|
||||
amountFieds.value[item.isAmount]=config
|
||||
@@ -349,7 +354,7 @@ const initTableLayout = () => {
|
||||
|
||||
if (tableInfo.value.isHeight || props.calcHeight) {
|
||||
const calcH = props.calcHeight
|
||||
let calcHeight = calcH || 160
|
||||
let calcHeight = calcH || 10
|
||||
if (calcH) tableOption.value.height = 'auto'
|
||||
tableOption.value.calcHeight = calcHeight
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user