2023-12-22 16:19:33 +08:00
|
|
|
<template>
|
2023-12-26 16:17:30 +08:00
|
|
|
<TableHeader>
|
|
|
|
|
<template v-slot:select>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="Activity name">
|
|
|
|
|
<el-input />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:operation>
|
|
|
|
|
<el-button type="primary">新增</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</TableHeader>
|
2023-12-22 16:19:33 +08:00
|
|
|
<Table ref="tableRef" :pagination="false" />
|
|
|
|
|
</template>
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { ref, onMounted, provide } from 'vue'
|
|
|
|
|
import TableStore from '@/utils/tableStore'
|
|
|
|
|
import Table from '@/components/table/index.vue'
|
2023-12-26 16:17:30 +08:00
|
|
|
import TableHeader from '@/components/table/header/index.vue'
|
|
|
|
|
|
2023-12-22 16:19:33 +08:00
|
|
|
defineOptions({
|
|
|
|
|
name: 'auth/menu'
|
|
|
|
|
})
|
|
|
|
|
const tableRef = ref()
|
|
|
|
|
const tableStore = new TableStore({
|
2023-12-26 16:17:30 +08:00
|
|
|
url: '/user-boot/function/functionTree',
|
2023-12-22 16:19:33 +08:00
|
|
|
column: [
|
|
|
|
|
{ type: 'selection', align: 'center', width: '60' },
|
2023-12-26 16:17:30 +08:00
|
|
|
{ label: '菜单名称', prop: 'title', align: 'left' },
|
2023-12-22 16:19:33 +08:00
|
|
|
{
|
|
|
|
|
label: '图标',
|
|
|
|
|
prop: 'icon',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: '60',
|
2023-12-26 16:17:30 +08:00
|
|
|
render: 'icon'
|
2023-12-22 16:19:33 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '操作',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: '130',
|
|
|
|
|
render: 'buttons',
|
|
|
|
|
buttons: [
|
|
|
|
|
{
|
|
|
|
|
name: 'edit',
|
|
|
|
|
title: '编辑',
|
|
|
|
|
type: 'primary',
|
|
|
|
|
icon: 'el-icon-EditPen',
|
|
|
|
|
render: 'tipButton'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
provide('tableStore', tableStore)
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
tableStore.table.ref = tableRef.value
|
|
|
|
|
tableStore.index()
|
|
|
|
|
})
|
|
|
|
|
</script>
|