Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
deploy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouzihao
deploy-ui
Commits
81cb29c0
Commit
81cb29c0
authored
Mar 31, 2020
by
zhouzihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev-添加Json编辑
parent
faedebf7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
package-lock.json
package-lock.json
+8
-0
package.json
package.json
+1
-0
src/views/ProjectList.vue
src/views/ProjectList.vue
+12
-3
No files found.
package-lock.json
View file @
81cb29c0
...
@@ -11596,6 +11596,14 @@
...
@@ -11596,6 +11596,14 @@
"integrity"
:
"sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog=="
,
"integrity"
:
"sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog=="
,
"dev"
:
true
"dev"
:
true
},
},
"vue-json-editor"
:
{
"version"
:
"1.4.0"
,
"resolved"
:
"https://registry.npmjs.org/vue-json-editor/-/vue-json-editor-1.4.0.tgz"
,
"integrity"
:
"sha512-HejLwRk4TYpjehvEWVPpiwg+Wmh2E7XAtiT43PVKElTSaqdyytuyTNrzgJ1xRFhGCnYwyh1xyGsZulcpNF/wwg=="
,
"requires"
:
{
"vue"
:
"^2.2.6"
}
},
"vue-loader"
:
{
"vue-loader"
:
{
"version"
:
"15.4.2"
,
"version"
:
"15.4.2"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-15.4.2.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-15.4.2.tgz"
,
...
...
package.json
View file @
81cb29c0
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
"
iview
"
:
"
^3.1.5
"
,
"
iview
"
:
"
^3.1.5
"
,
"
lodash
"
:
"
^4.17.15
"
,
"
lodash
"
:
"
^4.17.15
"
,
"
vue
"
:
"
^2.5.17
"
,
"
vue
"
:
"
^2.5.17
"
,
"
vue-json-editor
"
:
"
^1.4.0
"
,
"
vue-router
"
:
"
^3.0.1
"
"
vue-router
"
:
"
^3.0.1
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
...
src/views/ProjectList.vue
View file @
81cb29c0
...
@@ -62,9 +62,10 @@
...
@@ -62,9 +62,10 @@
<Input
v-model=
"showData.version"
></Input>
<Input
v-model=
"showData.version"
></Input>
</FormItem>
</FormItem>
<FormItem
label=
"项目源数据"
>
<FormItem
label=
"项目源数据"
>
<
Input
v-model=
"showData.meta_data"
type=
"textarea"
:autosize=
"true"
></Input
>
<
!--
<Input
v-model=
"showData.meta_data"
type=
"textarea"
:autosize=
"true"
></Input>
--
>
</FormItem>
</FormItem>
</Form>
</Form>
<vue-json-editor
v-model=
"meta_data"
exapndedOnStart=
"true"
@
json-change=
"onJsonChange"
></vue-json-editor>
</div>
</div>
<div
class=
"demo-drawer-footer"
>
<div
class=
"demo-drawer-footer"
>
<Button
style=
"margin-right: 8px"
@
click=
"isShow= false"
>
取消
</Button>
<Button
style=
"margin-right: 8px"
@
click=
"isShow= false"
>
取消
</Button>
...
@@ -104,10 +105,12 @@ import MasterPage from "@/components/Master";
...
@@ -104,10 +105,12 @@ import MasterPage from "@/components/Master";
import
axios
from
"
axios
"
;
import
axios
from
"
axios
"
;
import
config
from
"
@/config/configs
"
;
import
config
from
"
@/config/configs
"
;
import
_
from
"
lodash
"
;
import
_
from
"
lodash
"
;
import
vueJsonEditor
from
"
vue-json-editor
"
;
export
default
{
export
default
{
components
:
{
components
:
{
MasterPage
MasterPage
,
vueJsonEditor
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -225,7 +228,8 @@ export default {
...
@@ -225,7 +228,8 @@ export default {
showBuild
:
false
,
showBuild
:
false
,
buildData
:
{},
buildData
:
{},
envlist
:
[],
envlist
:
[],
spinShow
:
false
spinShow
:
false
,
meta_data
:
null
};
};
},
},
methods
:
{
methods
:
{
...
@@ -267,6 +271,7 @@ export default {
...
@@ -267,6 +271,7 @@ export default {
show
:
function
(
index
)
{
show
:
function
(
index
)
{
this
.
isShow
=
true
;
this
.
isShow
=
true
;
this
.
showData
=
this
.
data1
[
index
];
this
.
showData
=
this
.
data1
[
index
];
this
.
meta_data
=
JSON
.
parse
(
this
.
showData
.
meta_data
);
},
},
goConfigs
:
function
(
index
)
{
goConfigs
:
function
(
index
)
{
this
.
$router
.
push
({
path
:
"
/configList
"
,
query
:
this
.
data1
[
index
]
});
this
.
$router
.
push
({
path
:
"
/configList
"
,
query
:
this
.
data1
[
index
]
});
...
@@ -309,6 +314,10 @@ export default {
...
@@ -309,6 +314,10 @@ export default {
console
.
log
(
this
.
buildData
);
console
.
log
(
this
.
buildData
);
this
.
showBuild
=
true
;
this
.
showBuild
=
true
;
},
},
onJsonChange
:
function
(
value
)
{
this
.
showData
.
meta_data
=
JSON
.
stringify
(
value
);
console
.
log
(
value
);
},
build
:
function
()
{
build
:
function
()
{
this
.
spinShow
=
true
;
this
.
spinShow
=
true
;
axios
axios
...
...
Write
Preview
Markdown
is supported
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