webpackJsonp([7],{b9YQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("oaqO"),n=a("P9l9"),o={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(t){this.$router.push(t)},formatTime:function(t){var e=new Date(t),a=e.getMonth()+1,r=e.getDate()<10?"0"+e.getDate():e.getDate(),n=a<10?"0"+a:a,o=e.getHours()<10?"0"+e.getHours():e.getHours(),i=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return e.getFullYear()+"-"+n+"-"+r+" "+o+":"+i+":"+s},getData:function(){var t=this;t.loading=!0;var e={requestProject:t.requestProject,packageId:t.formData.packageId};Object(n.a)("/gic-platform-operation/app-package/"+t.formData.packageId,e).then(function(e){var a=e.data;if(t.loading=!1,0==a.errorCode){if(a.result.updateTime&&(a.result.updateTime=t.formatTime(a.result.updateTime)),t.formData=a.result?a.result:{},a.result.url){var r=a.result.url.split("/");t.formData.apkName=r[r.length-1]}}else t.$message.error(a.message)}).catch(function(e){t.loading=!1,t.$message.error(e)})}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-right-content border-box"},[a("nav-bread",{attrs:{menuData:t.menuData}}),t._v(" "),a("div",{staticClass:"detail-content"},[a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"版本号"}},[a("span",[t._v(t._s(t.formData.version))])]),t._v(" "),a("el-form-item",{attrs:{label:"标题"}},[a("span",[t._v(t._s(t.formData.title))])]),t._v(" "),a("el-form-item",{attrs:{label:"版本内容"}},[a("span",[t._v(t._s(t.formData.content))])]),t._v(" "),"android"==t.$route.query.activeTab?a("el-form-item",{attrs:{label:"安装包上传"}},[a("span",[t._v(t._s(t.formData.apkName))])]):t._e(),t._v(" "),"android"!=t.$route.query.activeTab?a("el-form-item",{attrs:{label:"url链接"}},[a("span",[t._v(t._s(t.formData.url))])]):t._e(),t._v(" "),a("el-form-item",{attrs:{label:"强制更新"}},[a("span",[t._v(t._s(1==t.formData.forcedUpdating?"是":"否"))])]),t._v(" "),a("el-form-item",{attrs:{label:"状态"}},[a("span",[t._v(t._s(1==t.formData.status?"启用":"停用"))])]),t._v(" "),a("el-form-item",{attrs:{label:"最近编辑"}},[a("span",[t._v(t._s(t.formData.operatorName))])]),t._v(" "),a("el-form-item",{attrs:{label:"最近更新时间"}},[a("span",[t._v(t._s(t.formData.updateTime))])])],1)],1)],1)},staticRenderFns:[]};var s=a("VU/8")(o,i,!1,function(t){a("ot/b")},"data-v-7ecf1276",null);e.default=s.exports},lOyr:function(t,e){},oaqO:function(t,e,a){"use strict";var r={name:"tableList",props:{menuData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{requestProject:"gic-bizdict",titleData:[]}},watch:{menuData:function(t){t&&(this.titleData=t)}},mounted:function(){this.menuData&&(this.titleData=this.menuData)},methods:{changeRoute:function(t){this.$router.push(t)},redirectRoute:function(t){t&&this.changeRoute(t)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"right-content-top border-box"},[a("div",{staticClass:"right-top-wrap flex flex-row flex-space-between flex-pack-center"},[a("div",{staticClass:"right-top-wrap_left flex flex-pack-center"},[a("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[t._l(t.titleData,function(e,r){return[a("span",{key:r,staticClass:"el-breadcrumb__item",on:{click:function(a){return t.redirectRoute(e.path)}}},[a("span",{class:["el-breadcrumb__inner",e.path?"is-link":""],attrs:{role:"link"}},[t._v(t._s(e.name))]),t._v(" "),a("i",{staticClass:"el-breadcrumb__separator el-icon-arrow-right"})])]})],2)])])])},staticRenderFns:[]};var o=a("VU/8")(r,n,!1,function(t){a("lOyr")},"data-v-a1fcae48",null);e.a=o.exports},"ot/b":function(t,e){}});
//# sourceMappingURL=7.296e4441b544a4f7a8fb.1560222899860.js.map