diff --git a/fir_client/src/components/FirAppInfostimeline.vue b/fir_client/src/components/FirAppInfostimeline.vue index dca835e..f95af8b 100644 --- a/fir_client/src/components/FirAppInfostimeline.vue +++ b/fir_client/src/components/FirAppInfostimeline.vue @@ -10,7 +10,7 @@
- + {{app.app_version}} (Build {{app.build_version}})
  ·   {{app.release_type|getiOStype}} - - - - - -

{{app.changelog}}

@@ -52,7 +46,7 @@ + placeholder="下载地址,默认本服务器,填写第三方可以 自动跳转到第三方平台">
@@ -81,7 +75,7 @@ - {{app.binary_size}} + {{app.binary_size}} @@ -90,7 +84,7 @@ 下载地址 + class="el-icon-link"> 下载地址 @@ -130,30 +124,34 @@ release_apps: [], currentapp: {}, activity: { - editing: {'changelog':false,'binary_url':false} + editing: {'changelog': false, 'binary_url': false} }, - updatas:{}, + updatas: {}, } }, methods: { - downloadPackage(app){ - getdownloadurl(res=>{ - if(res.code === 1000){ - window.location.href=res.data.download_url; + downloadPackage(app) { + getdownloadurl(res => { + if (res.code === 1000) { + window.location.href = res.data.download_url; } }, { 'data': { 'token': app.download_token, 'short': this.currentapp.short, 'release_id': app.release_id, - "isdownload":true + "isdownload": true }, 'app_id': this.currentapp.app_id }) }, - previewRelase(app){ - this.$router.push({name: 'FirDownload', params: { short: this.currentapp.short },query:{release_id:app.release_id}}) + previewRelase(app) { + this.$router.push({ + name: 'FirDownload', + params: {short: this.currentapp.short}, + query: {release_id: app.release_id} + }) }, getapptimelineFun() { @@ -236,19 +234,19 @@ }); }, - endEdit(app,type) { - if(type==='changelog'){ + endEdit(app, type) { + if (type === 'changelog') { app.editing.changelog = false; - }else if(type === 'binary_url'){ + } else if (type === 'binary_url') { app.editing.binary_url = false; } }, - updateChangelog(app,type) { - if(type==='changelog'){ + updateChangelog(app, type) { + if (type === 'changelog') { this.activity.editing.changelog = false; this.updatas = {"changelog": app.changelog} - }else if(type === 'binary_url') { + } else if (type === 'binary_url') { this.activity.editing.binary_url = false; this.updatas = {"binary_url": app.binary_url} } @@ -257,9 +255,9 @@ "release_id": app.release_id, "data": this.updatas }); - this.updatas={} + this.updatas = {} }, - startEdit(app,type) { + startEdit(app, type) { if (type === 'changelog') { app.editing.changelog = true; @@ -275,10 +273,10 @@ this.$store.dispatch('doappInfoIndex', [[5, 5], [5, 5]]); this.getapptimelineFun(); }, filters: { - downcontent(content){ - if(content){ + downcontent(content) { + if (content) { return content - }else{ + } else { return "修改下载地址" } }, @@ -292,7 +290,7 @@ let ftype = ''; if (type === 1) { ftype = '内测版' - } else if(type === 2) { + } else if (type === 2) { ftype = '企业版' } return ftype diff --git a/fir_client/src/components/FirApps.vue b/fir_client/src/components/FirApps.vue index af79605..3286f6e 100644 --- a/fir_client/src/components/FirApps.vue +++ b/fir_client/src/components/FirApps.vue @@ -1,6 +1,6 @@