mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 08:12:33 +00:00
[Update] 修改generic list page
This commit is contained in:
@@ -1,10 +1,26 @@
|
||||
<template>
|
||||
|
||||
<Page>
|
||||
<el-alert v-if="helpMessage" type="success"> {{ helpMessage }} </el-alert>
|
||||
<ListTable :table-config="tableConfig" :header-actions="headerActions" />
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Page } from '@/layout/components'
|
||||
import ListTable from '@/components/ListTable'
|
||||
export default {
|
||||
name: 'index'
|
||||
name: 'GenericListPage',
|
||||
components: {
|
||||
Page, ListTable
|
||||
},
|
||||
props: {
|
||||
...ListTable.props,
|
||||
helpMessage: {
|
||||
type: String,
|
||||
default: null
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@@ -7,3 +7,4 @@ export { default as BaseDetailPage } from './BaseDetailPage'
|
||||
export { default as SubMenuPage } from './SubMenuPage'
|
||||
export { default as Footer } from './Footer'
|
||||
export { default as IBox } from './IBox'
|
||||
export { default as GenericListPage } from './GenericListPage'
|
||||
|
@@ -1,19 +1,14 @@
|
||||
<template>
|
||||
<Page>
|
||||
<el-alert type="success"> 这里是一个成功的文案 </el-alert>
|
||||
<ListTable :table-config="tableConfig" :header-actions="headerActions" />
|
||||
</Page>
|
||||
<GenericListPage :table-config="tableConfig" :header-actions="headerActions" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Page } from '@/layout/components'
|
||||
import ListTable from '@/components/ListTable'
|
||||
import { GenericListPage } from '@/layout/components'
|
||||
import DetailFormatter from '@/components/DataTable/formatters/DetailFormatter'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Page,
|
||||
ListTable
|
||||
GenericListPage
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
Reference in New Issue
Block a user