feat(credit): 添加小程序端客户管理功能

- 创建小程序端客户数据模型和API接口
- 实现分页查询、新增、修改、删除等基础CRUD操作
- 添加小程序端客户管理页面和编辑弹窗组件
- 集成表格展示、搜索、批量操作等功能
- 配置开发环境API地址为http://127.0.0.1:9200/api
This commit is contained in:
2026-03-16 21:08:51 +08:00
parent a9d008fb90
commit 5182112b72
6 changed files with 854 additions and 1 deletions

View File

@@ -0,0 +1,42 @@
<!-- 搜索表单 -->
<template>
<a-space :size="10" style="flex-wrap: wrap">
<a-button type="primary" class="ele-btn-icon" @click="add">
<template #icon>
<PlusOutlined />
</template>
<span>添加</span>
</a-button>
</a-space>
</template>
<script lang="ts" setup>
import { PlusOutlined } from '@ant-design/icons-vue';
import type { GradeParam } from '@/api/user/grade/model';
import { watch } from 'vue';
const props = withDefaults(
defineProps<{
// 选中的角色
selection?: [];
}>(),
{}
);
const emit = defineEmits<{
(e: 'search', where?: GradeParam): void;
(e: 'add'): void;
(e: 'remove'): void;
(e: 'batchMove'): void;
}>();
// 新增
const add = () => {
emit('add');
};
watch(
() => props.selection,
() => {}
);
</script>