|
@@ -53,28 +53,28 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 二级导航 -->
|
|
<!-- 二级导航 -->
|
|
- <div class="ulTCopy" v-if="isShow && barCopy.length != 0" >
|
|
|
|
- <div class="ulTCopyTit">
|
|
|
|
- <span>教学中心</span>
|
|
|
|
- <span @click="closeCopy" class="cha" style="color: #6B7280;font-size: 23px;cursor: pointer;">⨯</span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="ulTCopy" v-if="isShow && barCopy.length != 0" >
|
|
|
|
+ <div class="ulTCopyTit">
|
|
|
|
+ <span>{{ barCopyTit }}</span>
|
|
|
|
+ <span @click="closeCopy" class="cha" style="color: #6B7280;font-size: 23px;cursor: pointer;">⨯</span>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div style="padding: 16px;box-sizing: border-box;">
|
|
|
|
- <div class="ulTCopyTxt" v-for="(i,ind) in appSignL(barCopy)" @click="levTwo(i)" :key="ind+'a'">
|
|
|
|
- <div>
|
|
|
|
- <div style="display: flex;justify-content: space-between;align-items: center;" v-for="(p,pin) in AppCon(i.url)" :key="pin+'p'">
|
|
|
|
- <div>
|
|
|
|
- <img style="width: 30px;object-fit: contain;margin-right: 5px;"
|
|
|
|
- :src="p.icon"
|
|
|
|
- alt="">
|
|
|
|
|
|
+ <div style="padding: 16px;box-sizing: border-box;">
|
|
|
|
+ <div class="ulTCopyTxt" v-for="(i,ind) in appSignL(barCopy)" @click="levTwo(i)" :key="ind+'a'">
|
|
|
|
+ <div>
|
|
|
|
+ <div style="display: flex;justify-content: space-between;align-items: center;" v-for="(p,pin) in AppCon(i.url)" :key="pin+'p'">
|
|
|
|
+ <div>
|
|
|
|
+ <img style="width: 30px;object-fit: contain;margin-right: 5px;"
|
|
|
|
+ :src="p.icon"
|
|
|
|
+ alt="">
|
|
|
|
+ </div>
|
|
|
|
+ <span>{{ p.name }}</span>
|
|
</div>
|
|
</div>
|
|
- <span>{{ p.name }}</span>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
-
|
|
|
|
<div v-if="isShow" @click="closeCopy" style="width: 100vw;height: 100vh;position: absolute;left: 0;top: 0;z-index: 1;"></div>
|
|
<div v-if="isShow" @click="closeCopy" style="width: 100vw;height: 100vh;position: absolute;left: 0;top: 0;z-index: 1;"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -85,6 +85,7 @@ import { loginOut } from '@/api/user';
|
|
import store from '../store'
|
|
import store from '../store'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
+ props:['urlAddress'],
|
|
computed: {
|
|
computed: {
|
|
...mapGetters(['userinfo','fromL','appSign']),
|
|
...mapGetters(['userinfo','fromL','appSign']),
|
|
// 如果hk,com没有图标,默认使用cn的
|
|
// 如果hk,com没有图标,默认使用cn的
|
|
@@ -110,7 +111,7 @@ import store from '../store'
|
|
// 筛选是否为管理员可见,是否被删除
|
|
// 筛选是否为管理员可见,是否被删除
|
|
appSignL(){
|
|
appSignL(){
|
|
return function(val){
|
|
return function(val){
|
|
- console.log(val);
|
|
|
|
|
|
+ // console.log(val);
|
|
|
|
|
|
let data = []
|
|
let data = []
|
|
if (this.userinfo.type == 1 && this.userinfo.role == 1) {
|
|
if (this.userinfo.type == 1 && this.userinfo.role == 1) {
|
|
@@ -138,7 +139,7 @@ import store from '../store'
|
|
activeL:0,
|
|
activeL:0,
|
|
// 二级分类
|
|
// 二级分类
|
|
barCopy:[],
|
|
barCopy:[],
|
|
-
|
|
|
|
|
|
+ barCopyTit:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -173,7 +174,7 @@ import store from '../store'
|
|
},
|
|
},
|
|
// 点击一级导航
|
|
// 点击一级导航
|
|
async goto(index,val = null){
|
|
async goto(index,val = null){
|
|
- console.log('goto',val);
|
|
|
|
|
|
+ // console.log('goto',val);
|
|
|
|
|
|
// val = null 就是点击了首页
|
|
// val = null 就是点击了首页
|
|
if (val) {
|
|
if (val) {
|
|
@@ -181,7 +182,8 @@ import store from '../store'
|
|
}else{
|
|
}else{
|
|
// 点击首页清空内容,并把标识去除
|
|
// 点击首页清空内容,并把标识去除
|
|
await store.commit('user/SET_AppSIGN', '')
|
|
await store.commit('user/SET_AppSIGN', '')
|
|
- document.querySelector('#pageCon').innerHTML = '';
|
|
|
|
|
|
+ this.$emit('update:urlAddress','')
|
|
|
|
+
|
|
this.$emit('getPer')
|
|
this.$emit('getPer')
|
|
|
|
|
|
this.isShow = false
|
|
this.isShow = false
|
|
@@ -192,11 +194,10 @@ import store from '../store'
|
|
|
|
|
|
// 有二级导航的显示二级导航.无二级则进行判断
|
|
// 有二级导航的显示二级导航.无二级则进行判断
|
|
if (val.children) {
|
|
if (val.children) {
|
|
|
|
+ this.barCopyTit = val.menuName
|
|
this.barCopy = JSON.parse(JSON.stringify(val.children))
|
|
this.barCopy = JSON.parse(JSON.stringify(val.children))
|
|
this.isShow = true
|
|
this.isShow = true
|
|
|
|
|
|
- // this.appSign = ''
|
|
|
|
- // document.querySelector('#pageCon').innerHTML = '';
|
|
|
|
}else{
|
|
}else{
|
|
this.isShow = false
|
|
this.isShow = false
|
|
|
|
|
|
@@ -213,15 +214,42 @@ import store from '../store'
|
|
url = e.url
|
|
url = e.url
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ let _userinfo = this.userinfo, //登录用户信息
|
|
|
|
+ { userid: _userid, organizeid: _oid, type: _type, org: _org, role: _role, classid: _classId } = _userinfo; // 解构赋值获取用户信息
|
|
|
|
+ const _TscreenType = 1, _SscreenType = 3; // 常量定义
|
|
|
|
+ let queryString = ''
|
|
|
|
+ if(val.argumentList && val.argumentList.length){
|
|
|
|
+ const paramsMap = {
|
|
|
|
+ userid: _userid,
|
|
|
|
+ org: _org,
|
|
|
|
+ oid: _oid,
|
|
|
|
+ type: _type,
|
|
|
|
+ role: _role,
|
|
|
|
+ classId: _classId,
|
|
|
|
+ TscreenType: _TscreenType,
|
|
|
|
+ SscreenType: _SscreenType
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ const canshu = val.argumentList
|
|
|
|
+ .filter(param => paramsMap[param] !== undefined)
|
|
|
|
+ .map(param => `${param}=${paramsMap[param]}`);
|
|
|
|
|
|
- let dom = document.querySelector('#pageCon')
|
|
|
|
|
|
+ queryString = canshu.length ? (url.includes('?') ? '&' : '?') + canshu.join('&') : ''; // 生成查询字符串
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ let _url = url + queryString
|
|
|
|
+ this.$emit('update:urlAddress',_url)
|
|
|
|
+
|
|
|
|
+ console.log('_url',_url);
|
|
|
|
+
|
|
|
|
+ // let dom = document.querySelector('#pageCon')
|
|
|
|
|
|
- document.querySelector('#pageCon').innerHTML = '';
|
|
|
|
- console.log('val',val);
|
|
|
|
|
|
+ // document.querySelector('#pageCon').innerHTML = '';
|
|
|
|
+ // console.log(val.toolId, url, dom,val.argumentList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- window.topU.U.MD.D.I.openApplicationWai(val.toolId, url, dom,val.argumentList)
|
|
|
|
|
|
+ // window.topU.U.MD.D.I.openApplicationWai(val.toolId, url, dom,val.argumentList)
|
|
|
|
|
|
// 应用标识,url,存储dom
|
|
// 应用标识,url,存储dom
|
|
}
|
|
}
|
|
@@ -242,11 +270,39 @@ import store from '../store'
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
- let dom = document.querySelector('#pageCon')
|
|
|
|
|
|
+ let _userinfo = this.userinfo, //登录用户信息
|
|
|
|
+ { userid: _userid, organizeid: _oid, type: _type, org: _org, role: _role, classid: _classId } = _userinfo; // 解构赋值获取用户信息
|
|
|
|
+ const _TscreenType = 1, _SscreenType = 3; // 常量定义
|
|
|
|
+ let queryString = ''
|
|
|
|
+ if(val.argumentList && val.argumentList.length){
|
|
|
|
+ const paramsMap = {
|
|
|
|
+ userid: _userid,
|
|
|
|
+ org: _org,
|
|
|
|
+ oid: _oid,
|
|
|
|
+ type: _type,
|
|
|
|
+ role: _role,
|
|
|
|
+ classId: _classId,
|
|
|
|
+ TscreenType: _TscreenType,
|
|
|
|
+ SscreenType: _SscreenType
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ const canshu = val.argumentList
|
|
|
|
+ .filter(param => paramsMap[param] !== undefined)
|
|
|
|
+ .map(param => `${param}=${paramsMap[param]}`);
|
|
|
|
+
|
|
|
|
+ queryString = canshu.length ? (url.includes('?') ? '&' : '?') + canshu.join('&') : ''; // 生成查询字符串
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ let _url = url + queryString
|
|
|
|
+ this.$emit('update:urlAddress',_url)
|
|
|
|
+
|
|
|
|
+ console.log('_url',_url);
|
|
|
|
+
|
|
|
|
+ // let dom = document.querySelector('#pageCon')
|
|
|
|
|
|
- document.querySelector('#pageCon').innerHTML = '';
|
|
|
|
|
|
+ // document.querySelector('#pageCon').innerHTML = '';
|
|
|
|
|
|
- window.topU.U.MD.D.I.openApplicationWai(val.toolId, url, dom)
|
|
|
|
|
|
+ // window.topU.U.MD.D.I.openApplicationWai(val.toolId, url, dom ,val.argumentList)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -255,6 +311,7 @@ import store from '../store'
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
|
+
|
|
.logo{
|
|
.logo{
|
|
width: 80px;
|
|
width: 80px;
|
|
height: 68px;
|
|
height: 68px;
|