Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
M
mo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abby Cin
mo
Commits
4444512c
Commit
4444512c
authored
Jun 04, 2020
by
abbycin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
ff8966d2
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
333 deletions
+14
-333
.gitignore
.gitignore
+2
-1
package-lock.json
frontend/package-lock.json
+0
-326
manage-db.vue
frontend/src/components/manage-db.vue
+12
-6
No files found.
.gitignore
View file @
4444512c
...
...
@@ -4,7 +4,7 @@ dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/
package-lock.json
package-lock.json
# Editor directories and files
.idea
...
...
@@ -19,3 +19,4 @@ yarn-error.log*
server.json
mo/
*.zip
mo-*
frontend/package-lock.json
deleted
100644 → 0
View file @
ff8966d2
This diff is collapsed.
Click to expand it.
frontend/src/components/manage-db.vue
View file @
4444512c
...
...
@@ -84,8 +84,8 @@
</a-form>
</a-modal>
</div>
<div
style=
"margin-top:20px"
>
<a-list
:grid=
"
{
gutter: 16
, column: 4 }" :data-source="data">
<div
style=
"margin-top:20px
;
"
>
<a-list
:grid=
"
{
gutter: 8
, column: 4 }" :data-source="data">
<a-list-item
slot=
"renderItem"
slot-scope=
"item, index"
>
<a-card
:title=
"item.title"
>
<a
slot=
"extra"
@
click=
"removeOne(index)"
>
...
...
@@ -94,9 +94,7 @@
<a
slot=
"extra"
@
click=
"editOne(index)"
>
<a-icon
type=
"edit"
></a-icon>
</a>
<pre>
{{
JSON
.
stringify
(
item
,
null
,
' '
)
}}
</pre>
<pre>
{{
JSON
.
stringify
(
item
,
null
,
' '
)
}}
</pre>
</a-card>
</a-list-item>
</a-list>
...
...
@@ -104,6 +102,13 @@
</div>
</
template
>
<
style
>
.ant-list
.ant-row
{
display
:
flex
;
flex-wrap
:
wrap
}
</
style
>
<
script
>
import
_
from
"lodash"
;
import
{
request
}
from
"@/js/req"
;
...
...
@@ -174,6 +179,7 @@ export default {
},
editOne
(
index
)
{
this
.
form
.
resetFields
();
this
.
currIndex
=
index
;
this
.
form
.
setFieldsValue
(
this
.
data
[
index
]);
this
.
editorVisible
=
true
;
...
...
@@ -281,7 +287,7 @@ export default {
resetChange
()
{
this
.
refresh
();
this
.
searchText
=
""
;
this
.
$message
.
info
(
"所
以
更改已回退"
);
this
.
$message
.
info
(
"所
有
更改已回退"
);
},
filterData
(
e
)
{
e
.
preventDefault
();
...
...
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