从简单到复杂完善组织架构

This commit is contained in:
2025-04-18 18:24:08 +08:00
parent e615aefaee
commit c73a7b48fa
14 changed files with 78 additions and 238 deletions

View File

@@ -28,17 +28,23 @@ onMounted(() => {
type: 'form',
api: {
method: 'post',
url: `${information.baseUrl}/graphql`,
dataType: 'application/json',
url: `${information.baseUrl}/jsonapi`,
data: {
// language=GraphQL
query: 'mutation {\n organization(op: UPSERT, data: {\n organizationName: "苹果"\n }) {\n edges {\n node {\n organizationId\n organizationName\n }\n }\n }\n}',
data: {
type: 'organization',
attributes: {
name: '${name}'
}
}
},
headers: {
'Content-Type': 'application/vnd.api+json'
}
},
body: [
{
type: 'input-text',
name: 'organizationName',
name: 'name',
label: '组织名称',
required: true,
},
@@ -47,6 +53,16 @@ onMounted(() => {
},
},
],
api: {
method: 'get',
url: `${information.baseUrl}/jsonapi/organization`,
data: {
page: {
size: '${perPage|default:undefined}',
number: '${page|default:undefined}',
}
},
},
columns: [
{
name: 'organizationId',