(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a316dc7"],{"054c":function(t,e,n){},2087:function(t,e,n){"use strict";var a={dynamicParameterGrammarTips:function(t){var e=this,n=t||this.projectValue;this.$http.queryAllDynamicVariables(n,{pageNum:1,pageSize:99999}).then((function(t){var n=t.data.data.records;e.$store.dispatch("changedynamicParameterPromptAct",n)})).catch((function(t){console.log(t)}))},getEnvironmentsStaticName:function(t){var e=this,n=t||this.projectValue;this.$http.getEnvironmentsStaticName({projectId:n}).then((function(t){var n=t.data;e.$store.dispatch("changeenvironmentSyntaxTipsAct",n)})).catch((function(t){console.log(t)}))},getMovesStaticName:function(t){var e=this,n=t||this.projectValue;this.$http.getMovesStaticName({projectId:n}).then((function(t){var n=t.data;e.$store.dispatch("changeactionGrammarTipsAct",n)})).catch((function(t){console.log(t)}))}};e["a"]=a},"2c1d":function(t,e,n){"use strict";n("054c")},"7db0":function(t,e,n){"use strict";var a=n("23e7"),i=n("b727").find,c=n("44d2"),o="find",r=!0;o in[]&&Array(1)[o]((function(){r=!1})),a({target:"Array",proto:!0,forced:r},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),c(o)},"889b":function(t,e,n){},b0c0:function(t,e,n){var a=n("83ab"),i=n("5e77").EXISTS,c=n("e330"),o=n("9bf2").f,r=Function.prototype,s=c(r.toString),l=/^\s*function ([^ (]*)/,u=c(l.exec),d="name";a&&!i&&o(r,d,{configurable:!0,get:function(){try{return u(l,s(this))[1]}catch(t){return""}}})},cf05:function(t,e,n){t.exports=n.p+"img/logo.606105e6.png"},e74a:function(t,e,n){"use strict";n("889b")},fcfc:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navPage"},[n("div",{staticClass:"header"},[t._m(0),n("el-menu",{staticClass:"el-menu-demo",attrs:{"default-active":t.activeIndex,mode:"horizontal","active-text-color":"#333"},on:{select:t.handleSelect}},[n("el-menu-item",{attrs:{index:"actuatorList"}},[t._v("执行器")]),n("el-menu-item",{attrs:{index:"case"}},[t._v("接口")]),n("el-menu-item",{attrs:{index:"behavior"}},[t._v("行为")]),n("el-menu-item",{attrs:{index:"dynamicParam"}},[t._v("动参")]),n("el-menu-item",{attrs:{index:"environment"}},[t._v("环境")]),n("el-menu-item",{attrs:{index:"sqlLink"}},[t._v("数据库连接")]),n("el-menu-item",{attrs:{index:"statisticalAnalysis"}},[t._v("统计分析")]),n("el-menu-item",{attrs:{index:"timingPlan"}},[t._v("定时计划")])],1),n("div",[n("span",{staticClass:"nowProject"},[t._v("当前项目  ")]),n("el-select",{attrs:{placeholder:"请选择当前项目"},on:{change:t.projectSelectChange},model:{value:t.projectValue,callback:function(e){t.projectValue=e},expression:"projectValue"}},t._l(t.projectOptions,(function(t){return n("el-option",{key:t.id,attrs:{label:t.id+":"+t.name,value:t.id}})})),1)],1),n("div",{staticStyle:{"margin-left":"10px",cursor:"pointer"}},[n("el-dropdown",{on:{command:t.handleCommand}},[n("i",{staticClass:"el-icon-user-solid"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"cancellation"}},[t._v("注销")])],1)],1)],1)],1),n("div",{staticClass:"breadCrumb"}),n("div",{staticClass:"main"},[n("router-view")],1)])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"logo"},[a("img",{attrs:{src:n("cf05"),alt:""}})])}],c=(n("b0c0"),n("7db0"),n("d3b7"),n("2087")),o={data:function(){return{activeIndex:"case",projectValue:null,projectOptions:[]}},watch:{$route:{handler:function(t,e){"actuatorList"!=t.name&&"case"!=t.name&&"behavior"!=t.name&&"dynamicParam"!=t.name&&"environment"!=t.name&&"sqlLink"!=t.name||(this.activeIndex=t.name)}}},mounted:function(){this.activeIndex=this.$route.name,this.getAllProject()},methods:{handleSelect:function(t){this.$router.push("./".concat(t))},getAllProject:function(){var t=this;this.$http.queryAllProject().then((function(e){var n=e.data.data;t.projectOptions=n,t.projectValue=t.projectOptions[0].id,t.projectSelectChange(t.projectOptions[0].id)}))},projectSelectChange:function(t){var e={},n="";e=this.projectOptions.find((function(e){return e.id===t})),n=e.name,this.$router.push({path:"./projectList"}),this.$store.dispatch("changeProjectIdAct",{id:t,name:n}),c["a"].dynamicParameterGrammarTips.apply(this),c["a"].getEnvironmentsStaticName.apply(this),c["a"].getMovesStaticName.apply(this)},handleCommand:function(t){"cancellation"==t&&(window.sessionStorage.clear(),this.$router.push("./login"))}}},r=o,s=(n("2c1d"),n("e74a"),n("2877")),l=Object(s["a"])(r,a,i,!1,null,"78c1dcec",null);e["default"]=l.exports}}]);