|
@@ -6,11 +6,13 @@ import { forms } from '@/school/train-planning/create'
|
|
import { state } from '@/state'
|
|
import { state } from '@/state'
|
|
import { Cell, CellGroup, List } from 'vant'
|
|
import { Cell, CellGroup, List } from 'vant'
|
|
import { defineComponent, onMounted, reactive } from 'vue'
|
|
import { defineComponent, onMounted, reactive } from 'vue'
|
|
|
|
+import { useRouter } from 'vue-router'
|
|
import styles from './index.module.less'
|
|
import styles from './index.module.less'
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'help-center',
|
|
name: 'help-center',
|
|
setup() {
|
|
setup() {
|
|
|
|
+ const router = useRouter()
|
|
const form = reactive({
|
|
const form = reactive({
|
|
isClick: false,
|
|
isClick: false,
|
|
list: [] as any,
|
|
list: [] as any,
|
|
@@ -69,7 +71,7 @@ export default defineComponent({
|
|
getList()
|
|
getList()
|
|
})
|
|
})
|
|
return () => (
|
|
return () => (
|
|
- <>
|
|
|
|
|
|
+ <div class={styles.helpCenter}>
|
|
<OSticky position="top">
|
|
<OSticky position="top">
|
|
<OSearch onSearch={onSearch} />
|
|
<OSearch onSearch={onSearch} />
|
|
</OSticky>
|
|
</OSticky>
|
|
@@ -79,18 +81,30 @@ export default defineComponent({
|
|
v-model:loading={form.listState.loading}
|
|
v-model:loading={form.listState.loading}
|
|
finished={form.listState.finished}
|
|
finished={form.listState.finished}
|
|
finishedText=" "
|
|
finishedText=" "
|
|
- class={[styles.liveList]}
|
|
|
|
|
|
+ class={styles.container}
|
|
onLoad={getList}
|
|
onLoad={getList}
|
|
immediateCheck={false}
|
|
immediateCheck={false}
|
|
>
|
|
>
|
|
{form.list.map((item: any) => (
|
|
{form.list.map((item: any) => (
|
|
- <Cell titleClass={[styles.title, 'van-ellipsis']} title={'ijijii'} isLink></Cell>
|
|
|
|
|
|
+ <Cell
|
|
|
|
+ titleClass={[styles.title, 'van-ellipsis']}
|
|
|
|
+ title={item.title}
|
|
|
|
+ isLink
|
|
|
|
+ onClick={() => {
|
|
|
|
+ router.push({
|
|
|
|
+ path: 'help-detail',
|
|
|
|
+ query: {
|
|
|
|
+ id: item.id
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }}
|
|
|
|
+ ></Cell>
|
|
))}
|
|
))}
|
|
</List>
|
|
</List>
|
|
) : (
|
|
) : (
|
|
<OEmpty btnStatus={false} tips="暂无数据" />
|
|
<OEmpty btnStatus={false} tips="暂无数据" />
|
|
)}
|
|
)}
|
|
- </>
|
|
|
|
|
|
+ </div>
|
|
)
|
|
)
|
|
}
|
|
}
|
|
})
|
|
})
|