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

init
gongdi 3 years ago
parent fbc7dfd280
commit c3ef3a6395

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

@ -15,7 +15,7 @@
<!--</BorderBox12>--> <!--</BorderBox12>-->
</div> </div>
<div v-if="!loading" class="content-right-style"> <div v-if="!loading" class="content-right-style">
<MenuRight/> <MenuRight />
</div> </div>
</div> </div>
</template> </template>
@ -46,6 +46,16 @@
} }
}, },
mounted(){ 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(); this.cancelLoading();
}, },
methods:{ methods:{
@ -54,6 +64,20 @@
this.loading = false this.loading = false
}, 1000) }, 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:{ components:{
BorderBox12, BorderBox12,

@ -89,7 +89,7 @@
break; break;
case 4: 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; break;
default: default:
break; break;

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

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

@ -31,7 +31,8 @@
let _this = this; let _this = this;
document.addEventListener('click', function (e) { document.addEventListener('click', function (e) {
let menuDiv = document.getElementById("navigationMenuId"); let menuDiv = document.getElementById("navigationMenuId");
if (!e.path.includes(menuDiv)) { let path = _this.composedPath(e);
if (!path.includes(menuDiv)) {
if (_this.$refs.navigationMenu) { if (_this.$refs.navigationMenu) {
_this.$refs.navigationMenu.hiddenMenuFlag(); _this.$refs.navigationMenu.hiddenMenuFlag();
} }
@ -72,6 +73,20 @@
}, },
modelChange: function (path) { modelChange: function (path) {
this.$router.replace({path: 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: { components: {

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

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

@ -25,17 +25,17 @@ const loginGuard = (to, from, next, options) => {
if (hasToken && user && user.personId) { if (hasToken && user && user.personId) {
if(toPath === "/teachingCenter"){ 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; return;
} }
if(toPath === "/resourcesCenter"){ 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; return;
} }
if(toPath === "/monitorCenter/information"){ 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; return;
} }

Loading…
Cancel
Save