|
@@ -13,6 +13,10 @@ export default defineComponent({
|
|
|
termTimes: {
|
|
|
type: Object,
|
|
|
default: {}
|
|
|
+ },
|
|
|
+ height: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: 0
|
|
|
}
|
|
|
},
|
|
|
setup(props) {
|
|
@@ -117,7 +121,7 @@ export default defineComponent({
|
|
|
return
|
|
|
}
|
|
|
const rows = result.rows || []
|
|
|
- state.list = state.list.concat(rows)
|
|
|
+ state.list = state.list.concat([])
|
|
|
state.listState.finished = result.current >= result.pages
|
|
|
state.params.page = result.current + 1
|
|
|
state.listState.dataShow = state.list.length > 0
|
|
@@ -142,8 +146,18 @@ export default defineComponent({
|
|
|
getList()
|
|
|
})
|
|
|
return () => (
|
|
|
- <div>
|
|
|
- <div style={{ padding: '12px 13px 16px', background: '#F8F8F8' }}>
|
|
|
+ <div
|
|
|
+ class={!state.listState.dataShow && 'emptyRootContainer'}
|
|
|
+ style={{ minHeight: `calc(100vh - ${props.height}px)` }}
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ style={{
|
|
|
+ padding: '12px 13px 16px',
|
|
|
+ background: '#F8F8F8',
|
|
|
+ width: '100%',
|
|
|
+ boxSizing: 'border-box'
|
|
|
+ }}
|
|
|
+ >
|
|
|
<div class={styles.searchBand} onClick={() => (state.timeShow = true)}>
|
|
|
{state.currentData[0]}年 <Icon name={state.showPopover ? 'arrow-up' : 'arrow-down'} />
|
|
|
</div>
|