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
def5af6e
Commit
def5af6e
authored
Jul 14, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cbd7d503
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
backend/controller/apps_manager.py
backend/controller/apps_manager.py
+1
-1
frontend/src/views/system/apps.vue
frontend/src/views/system/apps.vue
+8
-4
No files found.
backend/controller/apps_manager.py
View file @
def5af6e
...
@@ -62,7 +62,7 @@ class AppsManager(object):
...
@@ -62,7 +62,7 @@ class AppsManager(object):
# 在EPK目录下生成JSON文件
# 在EPK目录下生成JSON文件
with
open
(
os
.
sep
.
join
([
os
.
path
.
dirname
(
epk_path
),
"epk.json"
]),
"w"
)
as
f
:
with
open
(
os
.
sep
.
join
([
os
.
path
.
dirname
(
epk_path
),
"epk.json"
]),
"w"
)
as
f
:
data
.
update
({
'uuid'
:
str
(
app
.
uuid
)
})
data
.
update
({
'uuid'
:
str
(
app
.
uuid
)
})
json
.
dump
(
data
,
f
)
json
.
dump
(
app
.
to_dict
(
exclude
=
[
"uuid"
,
"create_at"
,
"update_at"
,
"delete_at"
])
,
f
)
for
a
in
app_files
:
for
a
in
app_files
:
Annex
(
app
=
app
,
title
=
os
.
path
.
basename
(
a
),
path
=
a
,
size
=
os
.
path
.
getsize
(
a
),
create_by
=
editor
,
create_at
=
datetime
.
now
(),
update_by
=
editor
,
update_at
=
datetime
.
now
())
Annex
(
app
=
app
,
title
=
os
.
path
.
basename
(
a
),
path
=
a
,
size
=
os
.
path
.
getsize
(
a
),
create_by
=
editor
,
create_at
=
datetime
.
now
(),
update_by
=
editor
,
update_at
=
datetime
.
now
())
...
...
frontend/src/views/system/apps.vue
View file @
def5af6e
...
@@ -144,10 +144,9 @@
...
@@ -144,10 +144,9 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"打包算法"
prop=
"algorithm"
>
<el-form-item
label=
"打包算法"
prop=
"algorithm"
>
<el-input
<el-select
v-model=
"post.algorithm"
>
v-model=
"post.algorithm"
<el-option
v-for=
"(item, index) in aList"
:label=
"item.name"
:value=
"item.value"
:key=
"index"
></el-option>
autocomplete=
"off"
</el-select>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"应用名称"
prop=
"app_name"
>
<el-form-item
label=
"应用名称"
prop=
"app_name"
>
<el-input
<el-input
...
@@ -251,6 +250,10 @@ export default {
...
@@ -251,6 +250,10 @@ export default {
imageUrl
:
""
,
imageUrl
:
""
,
total
:
0
,
total
:
0
,
list
:
[],
list
:
[],
aList
:
[
{
name
:
"
zlib
"
,
value
:
"
z
"
},
{
name
:
"
eheatshrink
"
,
value
:
"
h
"
}
],
selectList
:
[],
selectList
:
[],
categoryList
:
[],
categoryList
:
[],
isLoading
:
false
,
isLoading
:
false
,
...
@@ -258,6 +261,7 @@ export default {
...
@@ -258,6 +261,7 @@ export default {
uuid
:
null
,
uuid
:
null
,
name
:
null
,
name
:
null
,
category
:
null
,
category
:
null
,
algorithm
:
null
,
pagesize
:
15
,
pagesize
:
15
,
pagenum
:
1
,
pagenum
:
1
,
},
},
...
...
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