webpackJsonp([4],{DNIR:function(t,s){},hPZY:function(t,s,a){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=a("v4YQ"),n=a("OTnH"),i=a("U3p9"),o={data:function(){return{step:2,showTop:!1,software:"",msgtime:3e3,env:{},auth:{},pass:""}},created:function(){this.$watch("showTop",function(t,s){var a=this;1==this.showTop&&setTimeout(function(){a.showTop=!1},3e3)}),this.getInfo()},methods:{goPage:function(t){this.$router.push({name:t})},getInfo:function(){var t=this;this.software=JSON.parse(localStorage.getItem("softinfo")),this.$axios.get(this.api.softwareInfo+"?step=1").then(function(s){1==s.data.code?(t.pass=1,t.env=s.data.data.env,t.auth=s.data.data.auth):0==s.data.code&&(t.env=s.data.data.env,t.auth=s.data.data.auth,t.pass=0)}).catch(function(){})},msgShow:function(){this.showTop=!0}},components:{Topbar:e.a,Stepbar:n.a,alert:i.alert}},c={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("section",[a("Topbar",{attrs:{software:t.software}}),t._v(" "),a("div",{staticClass:"container"},[a("Stepbar",{attrs:{step:t.step}}),t._v(" "),a("div",{staticClass:"panel"},[a("h3",[t._v("环境检测")]),t._v(" "),a("table",{staticClass:"table table-condensed table-bordered"},[t._m(0),t._v(" "),a("tbody",t._l(t.env,function(s){return a("tr",{key:s.id},[a("td",[t._v("\n                            "+t._s(s.name)+"\n                        ")]),t._v(" "),a("td",[t._v("\n                            "+t._s(s.request)+"\n                        ")]),t._v(" "),1==s.status?a("td",{staticClass:"text-success"},[a("i",{staticClass:"fa fa-check fa-2x"})]):a("td",{staticClass:"text-danger"},[a("i",{staticClass:"fa fa-close fa-2x"})])])}))]),t._v(" "),a("h3",[t._v("目录检测")]),t._v(" "),a("table",{staticClass:"table table-condensed table-bordered"},[t._m(1),t._v(" "),a("tbody",t._l(t.auth,function(s){return a("tr",{key:s.id},[a("td",[t._v("\n                            "+t._s(s.path)+"\n                        ")]),t._v(" "),a("td",[t._v("\n                            "+t._s(s.request)+"\n                        ")]),t._v(" "),1==s.status?a("td",{staticClass:"text-success"},[a("i",{staticClass:"fa fa-check fa-2x"})]):a("td",{staticClass:"text-danger"},[a("i",{staticClass:"fa fa-close fa-2x"})])])}))])]),t._v(" "),a("div",{staticClass:"text-center action"},[a("form",{attrs:{method:"post"}},[a("input",{attrs:{type:"hidden",name:"step",value:"3"}}),t._v(" "),a("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button"},on:{click:function(s){t.goPage("step1")}}},[t._v("返回上一步")]),t._v(" "),0==t.pass?a("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button"},on:{click:function(s){t.msgShow()}}},[t._v("下一步，数据库配置")]):t._e(),t._v(" "),1==t.pass?a("button",{staticClass:"btn btn-yellow btn-sm",attrs:{type:"button"},on:{click:function(s){t.goPage("step3")}}},[t._v("下一步，数据库配置")]):t._e()])])],1),t._v(" "),a("alert",{attrs:{show:t.showTop,placement:"top",duration:t.msgtime,type:"danger",width:"400px",dismissable:""},on:{"update:show":function(s){t.showTop=s}}},[a("span",{staticClass:"icon-info-circled alert-icon-float-left"}),t._v(" "),a("strong",[t._v("系统提示!")]),t._v(" "),a("p",[t._v("安装环境检测未通过，请检查")])])],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("thead",[s("tr",[s("th",{attrs:{width:"166"}},[this._v("检查项目")]),this._v(" "),s("th",{attrs:{width:"206"}},[this._v("最低要求")]),this._v(" "),s("th",[this._v("当前环境")])])])},function(){var t=this.$createElement,s=this._self._c||t;return s("thead",[s("tr",[s("th",{attrs:{width:"166"}},[this._v("文件路径")]),this._v(" "),s("th",{attrs:{width:"206"}},[this._v("所需状态")]),this._v(" "),s("th",[this._v("当前状态")])])])}]};var r=a("Mz/3")(o,c,!1,function(t){a("DNIR")},null,null);s.default=r.exports}});