|
@@ -1,11 +1,33 @@
|
|
|
<script setup lang="ts">
|
|
|
import { use{{upperCase name}}Service } from '@/domain/{{name}}/service'
|
|
|
+import type { BasicForm, ICRUD } from '@/types/form'
|
|
|
|
|
|
const {{camelCase name}}Service = use{{upperCase name}}Service()
|
|
|
+
|
|
|
+const CRUD: ICRUD = {
|
|
|
+ create(data: any) {
|
|
|
+ return {{camelCase name}}Service.create(data)
|
|
|
+ },
|
|
|
+ update(data: any) {
|
|
|
+ return {{camelCase name}}Service.update(data)
|
|
|
+ },
|
|
|
+ getList(data: any) {
|
|
|
+ return {{camelCase name}}Service.getList(data)
|
|
|
+ },
|
|
|
+ delete(data: any) {
|
|
|
+ return {{camelCase name}}Service.del(data)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+const formConfig = reactive<BasicForm>({
|
|
|
+ formItems: []
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
-
|
|
|
+ <pro-table :crud="CRUD" :formConfig="formConfig">
|
|
|
+ <vxe-column field="" title=""></vxe-column>
|
|
|
+ </pro-table>
|
|
|
</template>
|
|
|
|
|
|
<style lang="scss" scoped></style>
|