|
@@ -1,6 +1,13 @@
|
|
|
<template>
|
|
|
<fs-page>
|
|
|
- <fs-crud ref="crudRef" v-bind="crudBinding"> </fs-crud>
|
|
|
+ <fs-crud ref="crudRef" v-bind="crudBinding">
|
|
|
+ <template #actionbar-right>
|
|
|
+ <el-button type="primary" @click="handleBatchImport">批量导入</el-button>
|
|
|
+ <el-button type="primary" @click="handleDownloadTemplate">下载模板</el-button>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </fs-crud>
|
|
|
+
|
|
|
</fs-page>
|
|
|
</template>
|
|
|
|
|
@@ -13,6 +20,15 @@ import { handleColumnPermission } from '/@/utils/columnPermission';
|
|
|
|
|
|
const { crudBinding, crudRef, crudExpose, crudOptions, resetCrudOptions } = useFs({ createCrudOptions });
|
|
|
|
|
|
+const handleBatchImport = () => {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+const handleDownloadTemplate = () => {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
// 页面打开后获取列表数据
|
|
|
onMounted(async () => {
|
|
|
// 设置列权限
|