洋浦学校八大中心 德育管理前端

init
gongdi 3 years ago
parent fbc7dfd280
commit c3ef3a6395

@ -11,7 +11,7 @@
<div class="in-box-menu-list-style">
<menu-item v-for="item in menuAry" :menu="item" :key="item.id" @menuClick="menuClick"/>
</div>
<div class="show-box-style" @click="changeShowMenuFlag">
<div class="show-box-style" @click.stop="changeShowMenuFlag">
<a-icon :type="showMenuFlag?'caret-right':'caret-left'"
:class="{'icon-style':isDefault,'icon-style-red':!isDefault}"/>
</div>
@ -60,8 +60,9 @@
},
methods: {
getHref(){
let href = window.location.href
href = window.location.href.slice(window.location.href.indexOf('#') + 1)
let href = this.$route.path;
//let href = window.location.href
//href = window.location.href.slice(window.location.href.indexOf('#') + 1)
if (href === '/partyCenter/party') {
this.SlideBgImg = partyBuildSlideBgImg
this.isDefault = false

@ -15,7 +15,7 @@
<!--</BorderBox12>-->
</div>
<div v-if="!loading" class="content-right-style">
<MenuRight/>
<MenuRight />
</div>
</div>
</template>
@ -46,6 +46,16 @@
}
},
mounted(){
// let _this = this;
// document.addEventListener('click', function (e) {
// let menuDiv = document.getElementById("navigationMenuId");
// let path = _this.composedPath(e);
// if (!path.includes(menuDiv)) {
// if (_this.$refs.navigationMenu) {
// _this.$refs.navigationMenu.hiddenMenuFlag();
// }
// }
// });
this.cancelLoading();
},
methods:{
@ -54,6 +64,20 @@
this.loading = false
}, 1000)
},
composedPath:function (e) {
// return
if (e.path) { return e.path }
// target
let target = e.target
e.path = []
while (target.parentNode !== null) {
e.path.push(target)
target = target.parentNode
}
// documentwindow
e.path.push(document, window)
return e.path
}
},
components:{
BorderBox12,

@ -89,7 +89,7 @@
break;
case 4:
//
window.location.href = "https://www.edusoa.com/dsideal_yy/pro_integration/reactProject/smartCampusIntegratePlatformDS/wyms/YP-ZHDP/wyms-ds.html";
window.location.href = "https://www.edusoa.com/dsideal_yy/pro_integration/reactProject/ypSchoolPlatform/wyms/YP-ZHDP/wyms-ds.html";
break;
default:
break;

@ -52,8 +52,6 @@
today_total: 0,
reply_total: 0,
total: 0,
}
},
components: {
@ -92,9 +90,9 @@
if (result[0].data.result != '') {
let res = result[0].data.result
res = JSON.parse(res)[0]
this.reply_total = res.reply_total
this.today_total = res.today_total
this.total = res.total
this.reply_total = res.reply_total?res.reply_total:0;
this.today_total = res.today_total?res.today_total:0;
this.total = res.total?res.total:0;
}
//console.log('res', res)//res
}

@ -266,6 +266,9 @@
flex-direction: column;
margin-top: 15px;
overflow: hidden;
/*/deep/ .ant-list-empty-text {*/
/*color: white;*/
/*}*/
}
.ant-list-items {

@ -31,7 +31,8 @@
let _this = this;
document.addEventListener('click', function (e) {
let menuDiv = document.getElementById("navigationMenuId");
if (!e.path.includes(menuDiv)) {
let path = _this.composedPath(e);
if (!path.includes(menuDiv)) {
if (_this.$refs.navigationMenu) {
_this.$refs.navigationMenu.hiddenMenuFlag();
}
@ -72,6 +73,20 @@
},
modelChange: function (path) {
this.$router.replace({path: path});
},
composedPath:function (e) {
// return
if (e.path) { return e.path }
// target
let target = e.target
e.path = []
while (target.parentNode !== null) {
e.path.push(target)
target = target.parentNode
}
// documentwindow
e.path.push(document, window)
return e.path
}
},
components: {

@ -3,7 +3,7 @@
<!--<div class="back-style" title="回到首页" @click="toMainPage"><a-icon type="home" theme="filled" /></div>-->
<!-- <!--src="https://cloud.edusoa.com/DataCenter/TeachCenter.html"-->-->
<iframe class="iframe-style"
src="https://www.edusoa.com/dsideal_yy/DataCenter/TeachCenter.html"
src="https://www.edusoa.com/dsideal_yy/DataCenter_yp/TeachCenter.html"
width="100%" height="100%"
frameborder="0"
scrolling="auto"

@ -3,7 +3,7 @@
<!--<div class="back-style" title="回到首页" @click="toMainPage"><a-icon type="home" theme="filled" /></div>-->
<!--src="https://cloud.edusoa.com/DataCenter/ResourceCenter.html"-->
<iframe class="iframe-style"
src="https://www.edusoa.com/dsideal_yy/DataCenter/ResourceCenter.html"
src="https://www.edusoa.com/dsideal_yy/DataCenter_yp/ResourceCenter.html"
width="100%" height="100%"
frameborder="0"
scrolling="auto"

@ -25,17 +25,17 @@ const loginGuard = (to, from, next, options) => {
if (hasToken && user && user.personId) {
if(toPath === "/teachingCenter"){
//跳转教学中心
window.location.href="https://www.edusoa.com/dsideal_yy/DataCenter/TeachCenter.html";
window.location.href="https://www.edusoa.com/dsideal_yy/DataCenter_yp/TeachCenter.html";
return;
}
if(toPath === "/resourcesCenter"){
//跳转教学中心
window.location.href="https://www.edusoa.com/dsideal_yy/DataCenter/ResourceCenter.html";
window.location.href="https://www.edusoa.com/dsideal_yy/DataCenter_yp/ResourceCenter.html";
return;
}
if(toPath === "/monitorCenter/information"){
//跳转教学中心
window.location.href="https://www.edusoa.com/dsideal_yy/DataCenter/DataCenter.html";
window.location.href="https://www.edusoa.com/dsideal_yy/DataCenter_yp/DataCenter.html";
return;
}

Loading…
Cancel
Save