Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
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
wanli
evm-store
Commits
e3765ee1
Commit
e3765ee1
authored
Mar 13, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
31711b57
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
9 deletions
+13
-9
backend/app-store.db
backend/app-store.db
+0
-0
backend/app/setting.py
backend/app/setting.py
+1
-1
backend/model/dictionary.py
backend/model/dictionary.py
+0
-4
frontend/src/views/app-store/build.vue
frontend/src/views/app-store/build.vue
+9
-2
frontend/src/views/app-store/index.vue
frontend/src/views/app-store/index.vue
+3
-2
No files found.
backend/app-store.db
View file @
e3765ee1
No preview for this file type
backend/app/setting.py
View file @
e3765ee1
...
@@ -23,7 +23,7 @@ config = dict(
...
@@ -23,7 +23,7 @@ config = dict(
'filename'
:
"../{}"
.
format
(
conf
.
get
(
'database'
,
'filename'
)),
'filename'
:
"../{}"
.
format
(
conf
.
get
(
'database'
,
'filename'
)),
'create_db'
:
True
,
'create_db'
:
True
,
},
},
TABLE_PREFIX
=
'
klx
_'
,
TABLE_PREFIX
=
'
evm_store
_'
,
MD5_SALT
=
"EhuqUkwV"
,
MD5_SALT
=
"EhuqUkwV"
,
UPLOAD_SERVER
=
"{}://{}:{}/"
.
format
(
conf
.
get
(
'uploads'
,
'protocol'
),
conf
.
get
(
'uploads'
,
'host'
),
conf
.
get
(
'uploads'
,
'port'
)),
UPLOAD_SERVER
=
"{}://{}:{}/"
.
format
(
conf
.
get
(
'uploads'
,
'protocol'
),
conf
.
get
(
'uploads'
,
'host'
),
conf
.
get
(
'uploads'
,
'port'
)),
UPLOAD_PATH
=
conf
.
get
(
'uploads'
,
'upload_path'
),
UPLOAD_PATH
=
conf
.
get
(
'uploads'
,
'upload_path'
),
...
...
backend/model/dictionary.py
View file @
e3765ee1
...
@@ -16,10 +16,6 @@ class Dict(db.Entity):
...
@@ -16,10 +16,6 @@ class Dict(db.Entity):
label
=
Required
(
str
)
label
=
Required
(
str
)
value
=
Required
(
str
)
value
=
Required
(
str
)
category
=
Required
(
str
)
category
=
Required
(
str
)
# project_type = Optional("Project", reverse="type") # Project的type字段引用Dict模型,一对一关系
# project_status = Optional("Project", reverse="status") # Project的status字段引用Dict模型,一对一关系
# flow_status = Optional("Flow", reverse="status") # 流程节点状态
# payback_status = Optional("Payback", reverse="status") # 回款节点状态
is_system
=
Required
(
bool
,
default
=
False
)
# 能否删除
is_system
=
Required
(
bool
,
default
=
False
)
# 能否删除
create_at
=
Required
(
datetime
,
default
=
datetime
.
now
)
create_at
=
Required
(
datetime
,
default
=
datetime
.
now
)
create_by
=
Required
(
"User"
,
reverse
=
'dict_creator'
)
# Dict与User一对一关系
create_by
=
Required
(
"User"
,
reverse
=
'dict_creator'
)
# Dict与User一对一关系
...
...
frontend/src/views/app-store/build.vue
View file @
e3765ee1
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"
success
"
type=
"
primary
"
@
click=
"handleDownload(scope.$index, scope.row)"
@
click=
"handleDownload(scope.$index, scope.row)"
>
下载
</el-button
>
下载
</el-button
>
>
...
@@ -230,7 +230,14 @@ export default {
...
@@ -230,7 +230,14 @@ export default {
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
},
},
handleDownload
(
index
,
row
)
{
handleDownload
(
index
,
row
)
{
console
.
log
(
index
,
row
);
console
.
log
(
index
);
const
body
=
document
.
getElementsByTagName
(
"
body
"
)[
0
];
const
link
=
document
.
createElement
(
"
a
"
);
body
.
appendChild
(
link
);
link
.
href
=
row
.
app_path
;
link
.
download
=
`
${
row
.
app_name
}
.epk`
;
link
.
click
();
document
.
body
.
removeChild
(
link
);
},
},
handleSizeChange
(
e
)
{
handleSizeChange
(
e
)
{
this
.
form
.
pagesize
=
e
;
this
.
form
.
pagesize
=
e
;
...
...
frontend/src/views/app-store/index.vue
View file @
e3765ee1
...
@@ -219,11 +219,12 @@ export default {
...
@@ -219,11 +219,12 @@ export default {
this
.
fetchData
(
mapTrim
(
this
.
form
));
this
.
fetchData
(
mapTrim
(
this
.
form
));
},
},
handleBuild
(
index
,
row
)
{
handleBuild
(
index
,
row
)
{
console
.
log
(
index
,
row
)
console
.
log
(
index
)
buildApp
(
row
.
uuid
).
then
(
res
=>
{
buildApp
(
row
.
uuid
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
$message
.
success
(
res
.
message
)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
this
.
$message
.
error
(
err
.
message
)
})
})
},
},
handleEdit
(
index
,
row
)
{
handleEdit
(
index
,
row
)
{
...
...
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