|
@@ -11,6 +11,7 @@ import styles from './index.module.less'
|
|
import request from '@/helpers/request'
|
|
import request from '@/helpers/request'
|
|
import { state as globalState } from '@/state'
|
|
import { state as globalState } from '@/state'
|
|
import StudentCell from './modals/student-cell'
|
|
import StudentCell from './modals/student-cell'
|
|
|
|
+import OSticky from '@/components/o-sticky'
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'student-att-day',
|
|
name: 'student-att-day',
|
|
setup() {
|
|
setup() {
|
|
@@ -95,42 +96,52 @@ export default defineComponent({
|
|
return () => (
|
|
return () => (
|
|
<>
|
|
<>
|
|
{/* </OSticky> */}
|
|
{/* </OSticky> */}
|
|
- <OHeader border={false}>
|
|
|
|
- {{
|
|
|
|
- title: () => (
|
|
|
|
- <div class={styles.NavTitle} onClick={() => (state.showPopoverTime = true)}>
|
|
|
|
- {forms.timeName}{' '}
|
|
|
|
- <img
|
|
|
|
- class={[styles.sanIcons, state.showPopoverTime ? styles.isReversal : '']}
|
|
|
|
- src={sanIcon}
|
|
|
|
- alt=""
|
|
|
|
- />
|
|
|
|
- </div>
|
|
|
|
- )
|
|
|
|
|
|
+ <OSticky
|
|
|
|
+ position="top"
|
|
|
|
+ onGetHeight={(height: any) => {
|
|
|
|
+ document.documentElement.style.setProperty('--header-height', height + 'px')
|
|
}}
|
|
}}
|
|
- </OHeader>
|
|
|
|
- <OSearch
|
|
|
|
- placeholder="请输入学生姓名"
|
|
|
|
- // inputBackground="white"
|
|
|
|
- // background="#f6f6f6"
|
|
|
|
- onSearch={(val: any) => {
|
|
|
|
- forms.nickName = val
|
|
|
|
- refreshing.value = true
|
|
|
|
- getList()
|
|
|
|
- }}
|
|
|
|
- modelValue={forms.nickName}
|
|
|
|
- ></OSearch>
|
|
|
|
|
|
+ >
|
|
|
|
+ <OHeader border={false}>
|
|
|
|
+ {{
|
|
|
|
+ title: () => (
|
|
|
|
+ <div class={styles.NavTitle} onClick={() => (state.showPopoverTime = true)}>
|
|
|
|
+ {forms.timeName}{' '}
|
|
|
|
+ <img
|
|
|
|
+ class={[styles.sanIcons, state.showPopoverTime ? styles.isReversal : '']}
|
|
|
|
+ src={sanIcon}
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ )
|
|
|
|
+ }}
|
|
|
|
+ </OHeader>
|
|
|
|
+ <OSearch
|
|
|
|
+ placeholder="请输入学生姓名"
|
|
|
|
+ // inputBackground="white"
|
|
|
|
+ // background="#f6f6f6"
|
|
|
|
+ onSearch={(val: any) => {
|
|
|
|
+ forms.nickName = val
|
|
|
|
+ refreshing.value = true
|
|
|
|
+ getList()
|
|
|
|
+ }}
|
|
|
|
+ modelValue={forms.nickName}
|
|
|
|
+ ></OSearch>
|
|
|
|
+ </OSticky>
|
|
{showContact.value ? (
|
|
{showContact.value ? (
|
|
<OFullRefresh
|
|
<OFullRefresh
|
|
v-model:modelValue={refreshing.value}
|
|
v-model:modelValue={refreshing.value}
|
|
onRefresh={onRefresh}
|
|
onRefresh={onRefresh}
|
|
- style="min-height: 100vh;"
|
|
|
|
|
|
+ style="min-height: calc(100vh - var(--header-height));"
|
|
>
|
|
>
|
|
<List
|
|
<List
|
|
loading-text=" "
|
|
loading-text=" "
|
|
// v-model:loading={loading.value}
|
|
// v-model:loading={loading.value}
|
|
finished={finished.value}
|
|
finished={finished.value}
|
|
finished-text="没有更多了"
|
|
finished-text="没有更多了"
|
|
|
|
+ style={{
|
|
|
|
+ paddingTop: '12px'
|
|
|
|
+ }}
|
|
onLoad={getList}
|
|
onLoad={getList}
|
|
>
|
|
>
|
|
{list.value.map((item: any) => (
|
|
{list.value.map((item: any) => (
|