|  | @@ -16,15 +16,15 @@
 | 
	
		
			
				|  |  |          <router-view v-if="!needKeep" :key="key" /> -->
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </transition>
 | 
	
		
			
				|  |  | -    <el-dialog :visible.sync="guideVisible" title="您需要完成以下设置" width="800px" :modal="false">
 | 
	
		
			
				|  |  | +    <el-dialog :visible.sync="guideVisible" title="您需要完成以下设置" width="800px" :modal="false" v-if="guideList.length>0">
 | 
	
		
			
				|  |  |        <div class="guideWrap">
 | 
	
		
			
				|  |  | -        <div class="guideItem">
 | 
	
		
			
				|  |  | +        <div class="guideItem" v-for="guide in guideList" :key="guide.name">
 | 
	
		
			
				|  |  |            <p>
 | 
	
		
			
				|  |  | -            <span class="guideTitle">分部</span>
 | 
	
		
			
				|  |  | -            <el-button type='text' @click="gotoSet('/sysBasics/branchSetting')">立即设置 >></el-button>
 | 
	
		
			
				|  |  | -            <span>您暂无此设置权限,请联系机构管理员</span>
 | 
	
		
			
				|  |  | +            <span class="guideTitle">{{guide.name}}</span>
 | 
	
		
			
				|  |  | +            <el-button type='text' @click="gotoSet(guide.path)" v-if="permission(guide.permission)">立即设置 >></el-button>
 | 
	
		
			
				|  |  | +            <span v-else>您暂无此设置权限,请联系机构管理员</span>
 | 
	
		
			
				|  |  |            </p>
 | 
	
		
			
				|  |  | -          <p>分部用于区分本机构下各校区,各分部员工只可查询和操作本分部数据</p>
 | 
	
		
			
				|  |  | +          <p>{{guide.desc}}</p>
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        </div>
 | 
	
	
		
			
				|  | @@ -36,7 +36,7 @@
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import notKeepAliveList from "@/router/notKeepAliveList";
 | 
	
		
			
				|  |  |  import { permission } from "@/utils/directivePage";
 | 
	
		
			
				|  |  | -import guide from '@/constant'
 | 
	
		
			
				|  |  | +import {guideList} from '@/constant/guide'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "AppMain",
 | 
	
		
			
				|  |  |    data() {
 | 
	
	
		
			
				|  | @@ -60,10 +60,14 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    mounted() {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    console.log(guideList,'111')
 | 
	
		
			
				|  |  |      this.$bus.$on('showguide',(obj)=>{
 | 
	
		
			
				|  |  | -      // console.log(obj)
 | 
	
		
			
				|  |  | -       console.log("bus", this.$bus);
 | 
	
		
			
				|  |  | +       this.guideList = []
 | 
	
		
			
				|  |  | +      obj.forEach(element => {
 | 
	
		
			
				|  |  | +        if(guideList[element]){
 | 
	
		
			
				|  |  | +          this.guideList.push(guideList[element])
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  |      this.guideVisible = true;
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |    },
 | 
	
	
		
			
				|  | @@ -72,7 +76,7 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  |      show(){
 | 
	
		
			
				|  |  | -      this.$bus.$emit ('showguide',[])
 | 
	
		
			
				|  |  | +      this.$bus.$emit('showguide',['organ','teamPayType'])
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      onResize(e) {
 | 
	
		
			
				|  |  |        console.log(e);
 | 
	
	
		
			
				|  | @@ -81,11 +85,14 @@ export default {
 | 
	
		
			
				|  |  |        this.isShow = !this.isShow;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      openIns() {
 | 
	
		
			
				|  |  | -      console.log("点击", this.$refs.portal);
 | 
	
		
			
				|  |  |        this.$refs.instructions.showInstructions();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      gotoSet(path){
 | 
	
		
			
				|  |  | -      this.$router.push({path,})
 | 
	
		
			
				|  |  | +      this.$router.push({path})
 | 
	
		
			
				|  |  | +      this.guideVisible = false;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    permission(str){
 | 
	
		
			
				|  |  | +      return permission(str)
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  };
 |