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