Commit 02489d31 authored by jiaxu.yan's avatar jiaxu.yan

feat: gql修改文档

parent 92e32b67
...@@ -43,13 +43,17 @@ fragment ProjectBasicObject on Project { ...@@ -43,13 +43,17 @@ fragment ProjectBasicObject on Project {
status status
} }
# 新建文件检测项目 # 新建文件检测项目
mutation NewFileTestProject( fragment ProjectBasicObject on Project {
id
name
description
status
}
mutation FastTestProject(
$name: String! $name: String!
$lawId: ID!
$principalUserId: ID! $principalUserId: ID!
$systemTypeId: ID!
$systemTypeName: String!
$systemId: ID! $systemId: ID!
$caseIdList: [ID!]!
$fileList: [ID!]! $fileList: [ID!]!
) { ) {
projectMutation: teamProject(id: "team_items;1") { projectMutation: teamProject(id: "team_items;1") {
...@@ -57,11 +61,9 @@ mutation NewFileTestProject( ...@@ -57,11 +61,9 @@ mutation NewFileTestProject(
input: { input: {
testMethod: File testMethod: File
name: $name name: $name
lawId: $lawId caseIdList: $caseIdList
principalUserId: $principalUserId principalUserId: $principalUserId
autoPartsId: $systemTypeId
systemId: $systemId systemId: $systemId
systemType: $systemTypeName
fileList: $fileList fileList: $fileList
} }
) { ) {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</template> </template>
<script> <script>
import { NewFileTestProject } from '@/api/graphql/client.graphql' import { FastTestProject } from '@/api/graphql/client.graphql'
export default { export default {
name: 'Index', name: 'Index',
data() { data() {
...@@ -32,14 +32,12 @@ export default { ...@@ -32,14 +32,12 @@ export default {
this.$apollo this.$apollo
.mutate({ .mutate({
// fetchPolicy: 'no-cache', // fetchPolicy: 'no-cache',
mutation: NewFileTestProject, mutation: FastTestProject,
variables: { variables: {
name: 'test106', name: 'test108',
lawId: 'law_items;106', lawId: 'law_items;106',
principalUserId: 'user_items;2', principalUserId: 'user_items;2',
systemTypeId: 'autoParts;1', caseIdList: 'system;1',
systemTypeName: 'Linux',
systemId: 'system;1',
fileList: ['file_management_items;2'] fileList: ['file_management_items;2']
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment