优化代码,针对增改场景使用传统方式实现

This commit is contained in:
2025-04-20 17:04:27 +08:00
parent c73a7b48fa
commit 878b5f144c
19 changed files with 274 additions and 19 deletions

View File

@@ -28,18 +28,10 @@ onMounted(() => {
type: 'form',
api: {
method: 'post',
url: `${information.baseUrl}/jsonapi`,
url: `${information.baseUrl}/organization/save`,
data: {
data: {
type: 'organization',
attributes: {
name: '${name}'
}
}
name: '${name}',
},
headers: {
'Content-Type': 'application/vnd.api+json'
}
},
body: [
{
@@ -60,7 +52,7 @@ onMounted(() => {
page: {
size: '${perPage|default:undefined}',
number: '${page|default:undefined}',
}
},
},
},
columns: [