Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
d4a55d12
Commit
d4a55d12
authored
3 years ago
by
fit2-zhao
Committed by
fit2-zhao
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(场景自动化): 修复JSON-SCHEMA插件取值问题。
parent
3e839b22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/business/components/common/json-schema/JsonSchemaEditor.vue
+9
-0
...siness/components/common/json-schema/JsonSchemaEditor.vue
frontend/src/business/components/common/json-schema/schema/editor/mock/MockComplete.vue
+8
-0
...ts/common/json-schema/schema/editor/mock/MockComplete.vue
with
17 additions
and
0 deletions
+17
-0
frontend/src/business/components/common/json-schema/JsonSchemaEditor.vue
+
9
-
0
View file @
d4a55d12
...
...
@@ -21,6 +21,7 @@
<
script
>
import
{
schemaToJson
}
from
'
./common
'
;
import
MsImportJson
from
'
./import/ImportJson
'
;
const
Convert
=
require
(
'
./convert/convert.js
'
);
const
MsConvert
=
new
Convert
();
...
...
@@ -40,6 +41,14 @@
}
this
.
body
.
jsonSchema
=
this
.
schema
.
root
;
},
watch
:
{
schema
:
{
handler
(
newValue
,
oldValue
)
{
this
.
body
.
jsonSchema
=
this
.
schema
.
root
;
},
deep
:
true
}
},
data
()
{
return
{
schema
:
...
...
This diff is collapsed.
Click to expand it.
frontend/src/business/components/common/json-schema/schema/editor/mock/MockComplete.vue
+
8
-
0
View file @
d4a55d12
...
...
@@ -47,6 +47,14 @@
this
.
$delete
(
this
.
schema
,
'
mock
'
)
}
},
watch
:
{
schema
:
{
handler
(
newValue
,
oldValue
)
{
this
.
schema
.
mock
=
this
.
mock
;
},
deep
:
true
}
},
mounted
()
{
},
methods
:
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help