102.174c24e47092908c076f.js 2.6 KB

1
  1. webpackJsonp([102],{"4ZOV":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),s=a.n(n),i=a("M9A7"),o=(a("TIfe"),{data:function(){return{userInfo:{},isCreator:!1,userData:{},newNav:this.plusStoGet("newNav"),appNavJx:!1,navList:[{image:"newNav1"},{image:"newNav2"}],navNew:0}},created:function(){this.$removeCache("addthePlan"),this.$removeCache("actionplanDetails"),this.$removeCache("actionplanList")},activated:function(){this.newNav=this.plusStoGet("newNav"),this.appNavJx=!1,this.setRouters()},methods:{login:function(t){var e=this;this.$store.dispatch("getUserInfo").then(function(t){e.userInfo=e.$getUserData_jx(),e.setRouters()}).catch(function(){e.$route_back()})},setRouters:function(){var t=this;Object(i.d)().then(function(e){if(1==e.data.code){var a={};e.data.data.list.forEach(function(t,e){2==t.status&&(t.name=t.name+"(已离职)"),a[t.id]=t}),t.plusStoSet("SET_EMPLOYEE_MAP_JX",s()(a)),t.newNav?t.$router.replace({name:"navigation",query:{index:t.$route.query.index}}):t.appNavJx=!0}}).catch(function(){t.$route_back()})},setRole:function(t){this.plusStoSet("role",t)},navPaths:function(){var t=this;this.plusStoSet("newNav","true",function(){t.$router.replace({name:"navigation",query:{index:t.$route.query.index}})})},plusStoGet:function(t){return window.plus?plus.storage.getItem(t):localStorage.getItem(t)},plusStoSet:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};window.plus?plus.storage.setItem(t,e):localStorage.setItem(t,e),a()}}}),r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"all"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.appNavJx,expression:"!appNavJx"}],staticClass:"noData flex-box-v flex-center-center"},[t._m(0)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.appNavJx,expression:"appNavJx"}],staticClass:"jxNav"},[a("img",{attrs:{src:"static/images/"+t.navList[t.navNew].image+".png"}}),t._v(" "),t.navNew<1?a("van-button",{attrs:{type:"primary",color:"rgb(125 171 255)",block:""},on:{click:function(e){t.navNew++}}},[t._v("下一步")]):a("van-button",{attrs:{type:"primary",color:"rgb(125 171 255)",block:""},on:{click:t.navPaths}},[t._v("进入")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-all"},[e("img",{staticClass:"appImg",attrs:{src:"static/images/init.gif"}}),this._v(" "),e("div",{staticStyle:{"font-size":".31rem"}},[this._v("管理执行难,就用功道云")])])}]};var c=a("VU/8")(o,r,!1,function(t){a("zdSM")},"data-v-74cb6722",null);e.default=c.exports},zdSM:function(t,e){}});