|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="left">
|
|
<div class="left">
|
|
<!-- <div > -->
|
|
<!-- <div > -->
|
|
- <div class="logo2">
|
|
|
|
|
|
+ <div class="logo2" @click="gotoKanban">
|
|
<img :src="fromL.basics.logo ? fromL.basics.logo : require('../assets/img/moren.png')" alt="">
|
|
<img :src="fromL.basics.logo ? fromL.basics.logo : require('../assets/img/moren.png')" alt="">
|
|
</div>
|
|
</div>
|
|
<!-- <div class="ulT"> -->
|
|
<!-- <div class="ulT"> -->
|
|
@@ -9,9 +9,7 @@
|
|
<!-- 默认首页 -->
|
|
<!-- 默认首页 -->
|
|
<div class="ulTOne" @click.stop="goto(0)">
|
|
<div class="ulTOne" @click.stop="goto(0)">
|
|
<div class="menu_left">
|
|
<div class="menu_left">
|
|
- <div class="iconW">
|
|
|
|
- <img class="logo" :src="activeL === 0 ? require('../assets/img/sy.svg') : require('../assets/img/sy1.svg')" alt="">
|
|
|
|
- </div>
|
|
|
|
|
|
+ <img class="logo" :src="activeL === 0 ? require('../assets/img/sy.svg') : require('../assets/img/sy1.svg')" alt="">
|
|
<span class="barT" :style="{color : activeL === 0 ? '#0051D7' :''}">首页</span>
|
|
<span class="barT" :style="{color : activeL === 0 ? '#0051D7' :''}">首页</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -43,9 +41,7 @@
|
|
</div>
|
|
</div>
|
|
</transition>
|
|
</transition>
|
|
<div class="menu_left">
|
|
<div class="menu_left">
|
|
- <div class="iconW">
|
|
|
|
- <img :src="activeL === (index +1) ? item.menuActiveIcon : item.menuIcon" class="logo" alt="">
|
|
|
|
- </div>
|
|
|
|
|
|
+ <img :src="activeL === (index +1) ? item.menuActiveIcon : item.menuIcon" class="logo" alt="">
|
|
<span class="barT">{{ item.menuName }}</span>
|
|
<span class="barT">{{ item.menuName }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -65,13 +61,13 @@
|
|
<span>CocoFlow</span>
|
|
<span>CocoFlow</span>
|
|
</div>
|
|
</div>
|
|
<div class="ulTCopyHei" >
|
|
<div class="ulTCopyHei" >
|
|
- <span v-if="cocoFlowList[0].length" style="color: #00000066;">最近使用</span>
|
|
|
|
|
|
+ <span v-if="cocoFlowList[0] && cocoFlowList[0].length" style="color: #00000066;">最近使用</span>
|
|
<div class="ulTCopyTxt"
|
|
<div class="ulTCopyTxt"
|
|
v-for="(i,ind) in cocoFlowList[0]"
|
|
v-for="(i,ind) in cocoFlowList[0]"
|
|
@click="openNewWindow(i.url)" :key="ind+'ab'">
|
|
@click="openNewWindow(i.url)" :key="ind+'ab'">
|
|
<div class="ulTCopyConT">{{ i.name }}</div>
|
|
<div class="ulTCopyConT">{{ i.name }}</div>
|
|
</div>
|
|
</div>
|
|
- <span v-if="cocoFlowList[1].length" style="color: #00000066;">我的收藏</span>
|
|
|
|
|
|
+ <span v-if="cocoFlowList[0] && cocoFlowList[1].length" style="color: #00000066;">我的收藏</span>
|
|
|
|
|
|
<div class="ulTCopyTxt"
|
|
<div class="ulTCopyTxt"
|
|
v-for="(i,ind) in cocoFlowList[1]" @click="openNewWindow(i.url)" :key="ind+'a'">
|
|
v-for="(i,ind) in cocoFlowList[1]" @click="openNewWindow(i.url)" :key="ind+'a'">
|
|
@@ -81,11 +77,9 @@
|
|
</div>
|
|
</div>
|
|
</transition>
|
|
</transition>
|
|
<div class="menu_left" >
|
|
<div class="menu_left" >
|
|
- <div class="iconW">
|
|
|
|
- <img class="logo"
|
|
|
|
- :src="activeL === (index +1) ? p.activeIcon : p.defaultIcon"
|
|
|
|
- alt="">
|
|
|
|
- </div>
|
|
|
|
|
|
+ <img class="logo"
|
|
|
|
+ :src="activeL === (index +1) ? p.activeIcon : p.defaultIcon"
|
|
|
|
+ alt="">
|
|
<span class="barT" :style="{color : activeL === (index +1) ? '#0051D7' :''}">
|
|
<span class="barT" :style="{color : activeL === (index +1) ? '#0051D7' :''}">
|
|
{{ p.name }}
|
|
{{ p.name }}
|
|
</span>
|
|
</span>
|
|
@@ -107,13 +101,13 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
export default {
|
|
export default {
|
|
props:['urlAddress'],
|
|
props:['urlAddress'],
|
|
computed: {
|
|
computed: {
|
|
- ...mapGetters(['userinfo','fromL','appSign']),
|
|
|
|
|
|
+ ...mapGetters(['userinfo','userinfo2','fromL','appSign']),
|
|
// 如果hk,com没有图标,默认使用cn的
|
|
// 如果hk,com没有图标,默认使用cn的
|
|
AppCon(){
|
|
AppCon(){
|
|
return function(c) {
|
|
return function(c) {
|
|
let k = JSON.parse(JSON.stringify(c))
|
|
let k = JSON.parse(JSON.stringify(c))
|
|
let data = k.filter(e=>{
|
|
let data = k.filter(e=>{
|
|
- return e.region == this.userinfo.schoolArea || e.region == this.userinfo.orgArea
|
|
|
|
|
|
+ return e.region == this.roleUser.schoolArea || e.region == this.roleUser.orgArea
|
|
})
|
|
})
|
|
|
|
|
|
let data2 = k.filter(e=>{
|
|
let data2 = k.filter(e=>{
|
|
@@ -134,7 +128,7 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
// console.log('appSignL',val);
|
|
// console.log('appSignL',val);
|
|
|
|
|
|
let data = []
|
|
let data = []
|
|
- if (this.userinfo.type == 1 && this.userinfo.role == 1) {
|
|
|
|
|
|
+ if (this.roleUser.type == 1 && this.roleUser.role == 1) {
|
|
val.forEach( e =>{
|
|
val.forEach( e =>{
|
|
if (e.menuName || e.status == 0) {
|
|
if (e.menuName || e.status == 0) {
|
|
data.push(e)
|
|
data.push(e)
|
|
@@ -149,6 +143,9 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
}
|
|
}
|
|
return data
|
|
return data
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ roleUser(){
|
|
|
|
+ return this.userinfo.role == 1 && this.userinfo.rrole == 1 && this.userinfo.type == 1&& this.userinfo2 !== "" ? this.userinfo2 : this.userinfo
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
@@ -166,7 +163,16 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
...mapActions({
|
|
...mapActions({
|
|
logout: 'user/logout'
|
|
logout: 'user/logout'
|
|
}),
|
|
}),
|
|
-
|
|
|
|
|
|
+ // 跳转到看板
|
|
|
|
+ gotoKanban(){
|
|
|
|
+ let num = this.userinfo.type == 1 && this.userinfo.role == 1 && this.userinfo.rrole == 1 ? 1 : 2
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/KanBan',
|
|
|
|
+ query: {
|
|
|
|
+ index: num,
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
mouGet(val){
|
|
mouGet(val){
|
|
if(val != 'appStore') return
|
|
if(val != 'appStore') return
|
|
console.log('666')
|
|
console.log('666')
|
|
@@ -203,12 +209,12 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
let url = ''
|
|
let url = ''
|
|
// 查出对应账号的应用区域地址
|
|
// 查出对应账号的应用区域地址
|
|
val.url.forEach(e => {
|
|
val.url.forEach(e => {
|
|
- // if (e.region == this.userinfo.schoolArea || e.region == this.userinfo.orgArea) {
|
|
|
|
|
|
+ // if (e.region == this.roleUser.schoolArea || e.region == this.roleUser.orgArea) {
|
|
if (e.region == this.$region) {
|
|
if (e.region == this.$region) {
|
|
url = e.url
|
|
url = e.url
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- let _userinfo = this.userinfo, //登录用户信息
|
|
|
|
|
|
+ let _userinfo = this.roleUser, //登录用户信息
|
|
{ userid: _userid, organizeid: _oid, type: _type, org: _org, role: _role, classid: _classId } = _userinfo; // 解构赋值获取用户信息
|
|
{ userid: _userid, organizeid: _oid, type: _type, org: _org, role: _role, classid: _classId } = _userinfo; // 解构赋值获取用户信息
|
|
const _TscreenType = 1, _SscreenType = 3; // 常量定义
|
|
const _TscreenType = 1, _SscreenType = 3; // 常量定义
|
|
let queryString = ''
|
|
let queryString = ''
|
|
@@ -234,7 +240,6 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
let _url = url + queryString
|
|
let _url = url + queryString
|
|
|
|
|
|
let kpl = ` <iframe
|
|
let kpl = ` <iframe
|
|
- v-if="appSign && urlAddress"
|
|
|
|
allow= "camera *; microphone *;display-capture;midi;encrypted-media;"
|
|
allow= "camera *; microphone *;display-capture;midi;encrypted-media;"
|
|
frameborder="no"
|
|
frameborder="no"
|
|
border="0"
|
|
border="0"
|
|
@@ -252,10 +257,11 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
|
|
|
|
// 获取cocoFlow收藏与历史使用记录
|
|
// 获取cocoFlow收藏与历史使用记录
|
|
getData(){
|
|
getData(){
|
|
|
|
+ this.cocoFlowList = []
|
|
let params = [
|
|
let params = [
|
|
{
|
|
{
|
|
functionName: API_CONFIG.ajax_appStoreSave.functionName,
|
|
functionName: API_CONFIG.ajax_appStoreSave.functionName,
|
|
- uid: this.userinfo.userid,
|
|
|
|
|
|
+ uid: this.roleUser.userid,
|
|
},
|
|
},
|
|
];
|
|
];
|
|
|
|
|
|
@@ -267,7 +273,7 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
console.log(err);
|
|
console.log(err);
|
|
- this.$message.error("获取常见应用失败");
|
|
|
|
|
|
+ this.$message.error("获取cocoFlow收藏与历史失败");
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 点击二级导航
|
|
// 点击二级导航
|
|
@@ -285,13 +291,13 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
|
|
|
|
let url = ''
|
|
let url = ''
|
|
val.url.forEach(e => {
|
|
val.url.forEach(e => {
|
|
- // if (e.region == this.userinfo.schoolArea || e.region == this.userinfo.orgArea) {
|
|
|
|
|
|
+ // if (e.region == this.roleUser.schoolArea || e.region == this.roleUser.orgArea) {
|
|
if (e.region == this.$region) {
|
|
if (e.region == this.$region) {
|
|
url = e.url
|
|
url = e.url
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
- let _userinfo = this.userinfo, //登录用户信息
|
|
|
|
|
|
+ let _userinfo = this.roleUser, //登录用户信息
|
|
{ userid: _userid, organizeid: _oid, type: _type, org: _org, role: _role, classid: _classId } = _userinfo; // 解构赋值获取用户信息
|
|
{ userid: _userid, organizeid: _oid, type: _type, org: _org, role: _role, classid: _classId } = _userinfo; // 解构赋值获取用户信息
|
|
const _TscreenType = 1, _SscreenType = 3; // 常量定义
|
|
const _TscreenType = 1, _SscreenType = 3; // 常量定义
|
|
let queryString = ''
|
|
let queryString = ''
|
|
@@ -372,8 +378,8 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
|
|
|
|
.logo{
|
|
.logo{
|
|
margin: auto;
|
|
margin: auto;
|
|
- width: 21px;
|
|
|
|
- max-height: 24px;
|
|
|
|
|
|
+ width: 24px;
|
|
|
|
+ height: 24px;
|
|
}
|
|
}
|
|
|
|
|
|
.iconW{
|
|
.iconW{
|
|
@@ -386,16 +392,15 @@ import { API_CONFIG } from "@/common/apiConfig";
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
.logo2 {
|
|
.logo2 {
|
|
- padding: 8px;
|
|
|
|
|
|
+ cursor: pointer;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- height: 48px;
|
|
|
|
width: 100%;
|
|
width: 100%;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
.logo2 img{
|
|
.logo2 img{
|
|
- width: 30px;
|
|
|
|
- height: 30px;
|
|
|
|
|
|
+ width: 60px;
|
|
|
|
+ height: 60px;
|
|
}
|
|
}
|
|
|
|
|
|
.userInfo{
|
|
.userInfo{
|