Commit 5f694c0a authored by hanfeng's avatar hanfeng

增加app更新管理

parent ebd8e868
...@@ -39,3 +39,10 @@ export function getAppVersion(id) { ...@@ -39,3 +39,10 @@ export function getAppVersion(id) {
method: 'get', method: 'get',
}); });
} }
export function uploadInstallationPackage(id) {
return fetch({
url: '/api/app/version/upload/installationPackage',
method: 'post',
});
}
...@@ -163,7 +163,8 @@ ...@@ -163,7 +163,8 @@
<el-upload <el-upload
multiple="false" multiple="false"
class="upload-demo" class="upload-demo"
action="" :action="BASE_API+'/api/app/version/upload/installationPackage'"
:headers="getHeaderWithToken"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:file-list="fileList"> :file-list="fileList">
...@@ -213,6 +214,7 @@ ...@@ -213,6 +214,7 @@
}, },
data() { data() {
return { return {
BASE_API: process.env.BASE_API,
versionRow: { versionRow: {
sysType: 0, sysType: 0,
version: undefined, version: undefined,
......
...@@ -141,7 +141,6 @@ ...@@ -141,7 +141,6 @@
listLoading: true, listLoading: true,
tableKey: 0, tableKey: 0,
addMembershipGrade: false, addMembershipGrade: false,
BASE_API: process.env.BASE_API,
add: { add: {
level: undefined, level: undefined,
name: undefined, name: undefined,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment