|
|
|
@ -37,7 +37,8 @@ |
|
|
|
|
<div class="grid-content bg-purple"> |
|
|
|
|
<el-row :gutter="20" style="margin-top: 8px;"> |
|
|
|
|
<el-col :span="18"> |
|
|
|
|
{{ analyseappinfo.version}} (Build {{ analyseappinfo.buildversion}}) {{ analyseappinfo.release_type_id|getiOStype}} |
|
|
|
|
{{ analyseappinfo.version}} (Build {{ analyseappinfo.buildversion}}) {{ |
|
|
|
|
analyseappinfo.release_type_id|getiOStype}} |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row :gutter="20" style="margin-top: 18px;"> |
|
|
|
@ -156,15 +157,17 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-progress :text-inside="true" :stroke-width="26" :percentage="uploadprocess" v-if="uploadflag === true"></el-progress> |
|
|
|
|
<el-button type="primary" plain @click="uploadcloud" v-else>开始上传</el-button> |
|
|
|
|
<el-progress :text-inside="true" :stroke-width="26" :percentage="uploadprocess" |
|
|
|
|
v-if="uploadflag === true"></el-progress> |
|
|
|
|
<el-button type="primary" plain @click="uploadcloud" v-else>{{ analyseappinfo.is_new|get_upload_text}}</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="4"> |
|
|
|
|
<el-radio-group v-model="searchfromtype"> |
|
|
|
|
<el-radio-button label="android" icon="el-icon-mobile-phone"><i class="iconfont icon-android2"/> |
|
|
|
|
<el-radio-button label="android" icon="el-icon-mobile-phone"><i |
|
|
|
|
class="iconfont icon-android2"/> |
|
|
|
|
</el-radio-button> |
|
|
|
|
<el-radio-button label="ios"><i class="iconfont icon-ios"/> |
|
|
|
|
</el-radio-button> |
|
|
|
@ -313,8 +316,6 @@ |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tbody> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
<td class="ng-binding">应用大小:</td> |
|
|
|
|
<td><span |
|
|
|
@ -334,15 +335,26 @@ |
|
|
|
|
<td><span class="ng-binding">{{ r.master_release.app_version }}(Build {{ r.master_release.build_version }})</span> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr v-if="r.type === 1"> |
|
|
|
|
<tr v-if="r.type === 1 && r.master_release.binary_url === ''"> |
|
|
|
|
<td class="ng-binding">打包类型:</td> |
|
|
|
|
<td><span class="ng-binding"> |
|
|
|
|
{{ r.master_release.release_type|getiOStype }} |
|
|
|
|
</span></td> |
|
|
|
|
</tr> |
|
|
|
|
<tr v-if=" r.master_release.binary_url !== ''"> |
|
|
|
|
<td>第三方平台下载:</td> |
|
|
|
|
<td> |
|
|
|
|
<span> |
|
|
|
|
<el-tooltip :content="r.master_release.binary_url" placement="top"> |
|
|
|
|
<a target="_blank" :href="r.master_release.binary_url">{{ r.master_release.binary_url| autoformat}}</a> |
|
|
|
|
</el-tooltip> |
|
|
|
|
</span> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
<div class="action"> |
|
|
|
|
<el-button @click="appInfos(r)"> |
|
|
|
|
<i class="icon-pen el-icon-edit"></i> 管理 |
|
|
|
@ -373,7 +385,16 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import {getapps, deleteapp, analyseApps, getuploadurl} from "../restful"; |
|
|
|
|
import {getScrollHeight,getScrollTop,getWindowHeight,getappinfo,uploadqiniuoss,dataURLtoFile,uploadaliyunoss,uploadlocalstorage} from "../utils"; |
|
|
|
|
import { |
|
|
|
|
getScrollHeight, |
|
|
|
|
getScrollTop, |
|
|
|
|
getWindowHeight, |
|
|
|
|
getappinfo, |
|
|
|
|
uploadqiniuoss, |
|
|
|
|
dataURLtoFile, |
|
|
|
|
uploadaliyunoss, |
|
|
|
|
uploadlocalstorage |
|
|
|
|
} from "../utils"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: "FirApps", |
|
|
|
@ -461,24 +482,60 @@ |
|
|
|
|
this.analyseappinfo.png_key = data.data.png_key; |
|
|
|
|
this.analyseappinfo.png_token = data.data.png_token; |
|
|
|
|
this.analyseappinfo.storage = data.data.storage; |
|
|
|
|
|
|
|
|
|
this.analyseappinfo.is_new = data.data.is_new; |
|
|
|
|
this.analyseappinfo.binary_url = data.data.binary_url; |
|
|
|
|
this.willuploadApp = true; |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("上传token获取失败,请刷新重试") |
|
|
|
|
} |
|
|
|
|
loading.close(); |
|
|
|
|
},{'methos':true,'data':{"bundleid":this.analyseappinfo.bundleid,"type":this.analyseappinfo.type}}) |
|
|
|
|
}, { |
|
|
|
|
'methos': true, |
|
|
|
|
'data': {"bundleid": this.analyseappinfo.bundleid, "type": this.analyseappinfo.type} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
uploadcloud() { |
|
|
|
|
if (this.analyseappinfo.binary_url !== '') { |
|
|
|
|
|
|
|
|
|
this.$confirm(`该应用存在第三方下载链接 <a target="_blank" href="${this.analyseappinfo.binary_url}"> ${this.analyseappinfo.binary_url} </a>更新之后,将不会自动跳转第三方下载;若您还需要第三方跳转,请在第三方平台更新该应用。`, '确定更新应用?', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
dangerouslyUseHTMLString: true, |
|
|
|
|
type: 'warning' |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '开始更新' |
|
|
|
|
}); |
|
|
|
|
this.uploadstorage() |
|
|
|
|
}).catch(() => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'info', |
|
|
|
|
message: '已取消更新' |
|
|
|
|
}); |
|
|
|
|
this.closeUpload(); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.uploadstorage() |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
uploadstorage() { |
|
|
|
|
this.uploadflag = true; |
|
|
|
|
this.uploading = true; |
|
|
|
|
|
|
|
|
|
let file = dataURLtoFile(this.analyseappinfo.icon, this.analyseappinfo.png_key); |
|
|
|
|
|
|
|
|
|
this.uploadtostorage(file,{'upload_key':this.analyseappinfo.png_key,'upload_token':this.analyseappinfo.png_token}); |
|
|
|
|
this.uploadtostorage(file, { |
|
|
|
|
'upload_key': this.analyseappinfo.png_key, |
|
|
|
|
'upload_token': this.analyseappinfo.png_token |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
file = this.currentfile; |
|
|
|
|
this.uploadtostorage(file,{'upload_key':this.analyseappinfo.upload_key,'upload_token':this.analyseappinfo.upload_token}); |
|
|
|
|
this.uploadtostorage(file, { |
|
|
|
|
'upload_key': this.analyseappinfo.upload_key, |
|
|
|
|
'upload_token': this.analyseappinfo.upload_token |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
closeUpload() { |
|
|
|
|
this.uploadsuccess = 0; |
|
|
|
@ -703,6 +760,13 @@ |
|
|
|
|
} else { |
|
|
|
|
return icon_url |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
get_upload_text(is_new) { |
|
|
|
|
if (is_new) { |
|
|
|
|
return '新应用上传' |
|
|
|
|
} else { |
|
|
|
|
return '应用更新' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, mounted() { |
|
|
|
@ -906,7 +970,7 @@ |
|
|
|
|
|
|
|
|
|
.page-apps .card.app .action { |
|
|
|
|
position: absolute; |
|
|
|
|
padding: 40px 0 40px 40px; |
|
|
|
|
padding: 20px 0 40px 40px; |
|
|
|
|
left: 0; |
|
|
|
|
bottom: 0; |
|
|
|
|
width: 100% |
|
|
|
|