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

feat: gql修改文档

parent 92e32b67
......@@ -43,13 +43,17 @@ fragment ProjectBasicObject on Project {
status
}
# 新建文件检测项目
mutation NewFileTestProject(
fragment ProjectBasicObject on Project {
id
name
description
status
}
mutation FastTestProject(
$name: String!
$lawId: ID!
$principalUserId: ID!
$systemTypeId: ID!
$systemTypeName: String!
$systemId: ID!
$caseIdList: [ID!]!
$fileList: [ID!]!
) {
projectMutation: teamProject(id: "team_items;1") {
......@@ -57,11 +61,9 @@ mutation NewFileTestProject(
input: {
testMethod: File
name: $name
lawId: $lawId
caseIdList: $caseIdList
principalUserId: $principalUserId
autoPartsId: $systemTypeId
systemId: $systemId
systemType: $systemTypeName
fileList: $fileList
}
) {
......
......@@ -13,7 +13,7 @@
</template>
<script>
import { NewFileTestProject } from '@/api/graphql/client.graphql'
import { FastTestProject } from '@/api/graphql/client.graphql'
export default {
name: 'Index',
data() {
......@@ -32,14 +32,12 @@ export default {
this.$apollo
.mutate({
// fetchPolicy: 'no-cache',
mutation: NewFileTestProject,
mutation: FastTestProject,
variables: {
name: 'test106',
name: 'test108',
lawId: 'law_items;106',
principalUserId: 'user_items;2',
systemTypeId: 'autoParts;1',
systemTypeName: 'Linux',
systemId: 'system;1',
caseIdList: 'system;1',
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