webpackJsonp([15],{PuL1:function(e,t){},b9YQ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("oaqO"),o=a("P9l9"),s={name:"tableList",components:{navBread:r.a},data:function(){return{requestProject:"gic-bizdict",menuData:[{name:"android"==this.$route.query.activeTab?"安卓配置":"iOS配置",path:"/version?activeTab="+this.$route.query.activeTab+"&name="+this.$route.query.name+"&icon="+this.$route.query.icon+"&code="+this.$route.query.code+"&tabId="+this.$route.query.tabId},{name:"查看详情",path:""}],formData:{packageId:"",version:"",title:"",content:"",forcedUpdating:"",operatorName:"",updateTime:"",status:"",apkName:"",url:""},loading:!1}},mounted:function(){this.$emit("showTab","platform_version_haoban"),this.formData.packageId=this.$route.query.packageId,this.$route.query.activeTab,this.getData()},methods:{changeRoute:function(e){this.$router.push(e)},formatTime:function(e){var t=new Date(e),a=t.getMonth()+1,r=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a,s=t.getHours()<10?"0"+t.getHours():t.getHours(),n=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+r+" "+s+":"+n+":"+i},getData:function(){var e=this;e.loading=!0;var t={requestProject:e.requestProject,packageId:e.formData.packageId};Object(o.a)("/gic-platform-operation/app-package/"+e.formData.packageId,t).then(function(t){var a=t.data;if(e.loading=!1,0==a.errorCode){if(a.result.updateTime&&(a.result.updateTime=e.formatTime(a.result.updateTime)),e.formData=a.result?a.result:{},a.result.url){var r=a.result.url.split("/");e.formData.apkName=r[r.length-1]}}else e.$message.error(a.message)}).catch(function(t){e.loading=!1,e.$message.error(t)})}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-right-content border-box"},[a("nav-bread",{attrs:{menuData:e.menuData}}),e._v(" "),a("div",{staticClass:"detail-content"},[a("el-form",{ref:"form",attrs:{model:e.formData,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"版本号"}},[a("span",[e._v(e._s(e.formData.version))])]),e._v(" "),a("el-form-item",{attrs:{label:"标题"}},[a("span",[e._v(e._s(e.formData.title))])]),e._v(" "),a("el-form-item",{attrs:{label:"版本内容"}},[a("span",[e._v(e._s(e.formData.content))])]),e._v(" "),"android"==e.$route.query.activeTab?a("el-form-item",{attrs:{label:"安装包上传"}},[a("span",[e._v(e._s(e.formData.apkName))])]):e._e(),e._v(" "),"android"!=e.$route.query.activeTab?a("el-form-item",{attrs:{label:"url链接"}},[a("span",[e._v(e._s(e.formData.url))])]):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"强制更新"}},[a("span",[e._v(e._s(1==e.formData.forcedUpdating?"是":"否"))])]),e._v(" "),a("el-form-item",{attrs:{label:"状态"}},[a("span",[e._v(e._s(1==e.formData.status?"启用":"停用"))])]),e._v(" "),a("el-form-item",{attrs:{label:"最近编辑"}},[a("span",[e._v(e._s(e.formData.operatorName))])]),e._v(" "),a("el-form-item",{attrs:{label:"最近更新时间"}},[a("span",[e._v(e._s(e.formData.updateTime))])])],1)],1)],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("PuL1")},"data-v-4820b4ac",null);t.default=i.exports}});
//# sourceMappingURL=15.9778da99d2104e5bd2f6.1568216270415.js.map