refactor(system): 重构系统组件服务结构

- 将产品线选择组件相关VO类从dal层移动到application层并重命名
- 新增CuteUserSelectVo、CuteBaseService、CuteFileUploadService等服务类
- 创建CuteProductLineSelectProService和CuteProductLineSelectService业务服务
- 新增CuteUserSelectService用户选择服务及对应的API接口
- 修改文件上传API使用新的服务类并添加权限控制
- 更新产品线选择API使用新服务类并移除旧的实现方法
- 删除系统用户服务中的旧用户元数据查询方法
- 更新前端用户选择组件调用新的API接口
- 移除旧的用户元数据选项查询API调用
This commit is contained in:
2026-01-17 06:38:38 +08:00
parent 89803b3908
commit 462abff607
20 changed files with 374 additions and 250 deletions
@@ -28,7 +28,7 @@
<script>
import UserService from '@/api/system/user'
import CuteUserSelectApi from '@/api/application/cute-user-select'
export default {
name: 'CuteSingleUserSelect',
@@ -57,15 +57,15 @@ export default {
this.loading = true
setTimeout(() => {
this.loading = false
this.queryUserMetadataOptions(query)
this.listMetadata(query)
}, 200)
} else {
this.options = []
}
},
queryUserMetadataOptions(query, options) {
listMetadata(query, options) {
const that = this
UserService.queryUserMetadataOptions(query).then(res => {
CuteUserSelectApi.listMetadata(query).then(res => {
that.options = res
})
},
@@ -28,7 +28,7 @@
<script>
import UserService from '@/api/system/user'
import CuteUserSelectApi from '@/api/application/cute-user-select'
export default {
name: 'CuteUserSelect',
@@ -67,15 +67,15 @@ export default {
this.loading = true
setTimeout(() => {
this.loading = false
this.queryUserMetadataOptions(query)
this.listMetadata(query)
}, 200)
} else {
this.options = []
}
},
queryUserMetadataOptions(query, options) {
listMetadata(query, options) {
const that = this
UserService.queryUserMetadataOptions(query).then(res => {
CuteUserSelectApi.listMetadata(query).then(res => {
that.options = res
})
},