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

init
gongdi 3 years ago
parent a924eb7a89
commit fbc7dfd280

@ -20,7 +20,7 @@
</div>
<div class="add-record-row-style">
<div class="li-box li-left"><span class="must-option-style">*</span>正文</div>
<div class="li-box li-right">
<div class="li-box li-right li-right-editor">
<!--<rich-editor editorId="defaultValueEditor" ref="editor" :content="infoContent"/>-->
<!--<wang-editor></wang-editor>-->
<my-editor ref="myEditor" :content="infoContent"></my-editor>
@ -178,6 +178,9 @@
border-right: 0 !important;
}
}
.li-right-editor{
min-height: 20rem;
}
}
.button-row-style {
width: 50%;

@ -33,7 +33,7 @@
},
watch: {
$route: {
handler(val, oldval){
handler: function (val, oldval) {
if (val.path === '/partyCenter/party') {
this.isPartyPage = true;
} else {
@ -41,6 +41,7 @@
}
this.changeMenu();
},
deep: true
}
},
props: {
@ -50,37 +51,43 @@
}
},
mounted(){
this.changeMenu();
let path = this.$route.path;
if (path === '/partyCenter/party') {
this.isPartyPage = true;
} else {
this.isPartyPage = false;
}
this.changeMenu();
},
methods: {
menuClick: function () {
this.$emit("menuClick", this.menu)
},
changeMenu:function () {
changeMenu: function () {
switch (this.$props.menu.name) {
case "partyCenterPage":
this.imgUrl = this.isPartyPage?this.partyRedImg:this.partyImg;
this.imgUrl = this.isPartyPage ? this.partyRedImg : this.partyImg;
break;
case "adminCenterPage":
this.imgUrl = this.isPartyPage?this.adminRedImg:this.adminImg;
this.imgUrl = this.isPartyPage ? this.adminRedImg : this.adminImg;
break;
case "safeCenterPage":
this.imgUrl = this.isPartyPage?this.safeRedImg:this.safeImg;
this.imgUrl = this.isPartyPage ? this.safeRedImg : this.safeImg;
break;
case "teachingCenterPage":
this.imgUrl = this.isPartyPage?this.teachingRedImg:this.teachingImg;
this.imgUrl = this.isPartyPage ? this.teachingRedImg : this.teachingImg;
break;
case "moralEducationCenterPage":
this.imgUrl = this.isPartyPage?this.deyuRedImg:this.deyuImg;
this.imgUrl = this.isPartyPage ? this.deyuRedImg : this.deyuImg;
break;
case "teacherAdminCenterPage":
this.imgUrl = this.isPartyPage?this.teacherRedImg:this.teacherImg;
this.imgUrl = this.isPartyPage ? this.teacherRedImg : this.teacherImg;
break;
case "monitorCenterPage":
this.imgUrl = this.isPartyPage?this.dataRedImg:this.dataImg;
this.imgUrl = this.isPartyPage ? this.dataRedImg : this.dataImg;
break;
case "serviceCenterPage":
this.imgUrl = this.isPartyPage?this.serviceRedImg:this.serviceImg;
this.imgUrl = this.isPartyPage ? this.serviceRedImg : this.serviceImg;
break;
default:
break;

@ -37,7 +37,7 @@
</a-row>
<div class="brandList">
<vue-scroll :ops="listScroll" :style="showPage?'height:35rem':'height:35rem'" class="score-list-div">
<a-list item-layout="horizontal" :data-source="dataList">
<a-list item-layout="horizontal" :data-source="dataList" :locale="{emptyText:'暂无数据'}">
<a-list-item slot="renderItem" slot-scope="item" class="listItem" @click="showInfo(item)">
<a-avatar :src="getImgURL(item.imgObj)"/>
<p class="p1">

@ -16,7 +16,7 @@
<div class="botText">
<vue-scroll :ops="listScroll" :style="showPage?'height:14rem':'height:14rem'"
class="score-list-div">
<a-list item-layout="horizontal" :data-source="dataList">
<a-list item-layout="horizontal" :data-source="dataList" :locale="{emptyText:'暂无数据'}">
<a-list-item slot="renderItem" slot-scope="item" class="teamListLi" @click="showInfo(item)">
<p class="contentText">
<span style="width: 7px;height: 7px;margin-right:5px;border-radius: 50%;background: #fff;margin-left: -5px;display: inline-block;"></span>

@ -4,7 +4,7 @@
<div class="leftList">
<vue-scroll :ops="listScroll" :style="showPage?'height:21rem':'height:22rem'"
class="score-list-div">
<a-list item-layout="horizontal" :data-source="dataList">
<a-list item-layout="horizontal" :data-source="dataList" :locale="{emptyText:'暂无数据'}">
<a-list-item slot="renderItem" slot-scope="item" class="teamListLi" @click="showInfo(item)">
<p class="contentText">
<span style="width: 7px;height: 7px;margin-right:5px;border-radius: 50%;background: #fff;margin-left: -5px;display: inline-block;"></span>

@ -102,14 +102,15 @@
watch: {
$route: {
handler(val, oldval){
console.log("val:",val)
this.emitRouteChange(val.path);
if (val.path === '/partyCenter/party') {
this.topImgUrl = topImgPartyBuild
this.isPartyCenter = true
} else {
this.topImgUrl = topImg01
this.isPartyCenter = false
}
// if (val.path === '/partyCenter/party') {
// this.topImgUrl = topImgPartyBuild
// this.isPartyCenter = true
// } else {
// this.topImgUrl = topImg01
// this.isPartyCenter = false
// }
},
//
deep: true,
@ -137,6 +138,7 @@
methods: {
getHref(){
this.href = window.location.hash
console.log(this.$route.path)
if (this.href === '#/partyCenter/party') {
this.topImgUrl = topImgPartyBuild
this.isPartyCenter = true
@ -196,10 +198,12 @@
}
},
changeBackImg: function (path) {
if (this.href === '#/partyCenter/party') {
if (path === '/partyCenter/party') {
this.topImgUrl = topImgPartyBuild
this.isPartyCenter = true
this.isPartyCenter = true;
this.showWorkBenchButton = false;
} else {
this.isPartyCenter = false;
if (path.indexOf("workBench") > 0) {
//
if (path === "/workBench/application") {

@ -4,5 +4,21 @@
export default [
require('../assets/images/secondPageTop01.png'),
require('../assets/images/secondPageTop02.png'),
require('../assets/images/topImgPartyBuild.png')
require('../assets/images/topImgPartyBuild.png'),
require('../assets/images/partyImage/party-building.png'),
require('../assets/images/partyImage/party-building-red.png'),
require('../assets/images/partyImage/admin.png'),
require('../assets/images/partyImage/admin-red.png'),
require('../assets/images/partyImage/safe.png'),
require('../assets/images/partyImage/safe-red.png'),
require('../assets/images/partyImage/teaching.png'),
require('../assets/images/partyImage/teaching-red.png'),
require('../assets/images/partyImage/de-yu.png'),
require('../assets/images/partyImage/de-yu-red.png'),
require('../assets/images/partyImage/teacher.png'),
require('../assets/images/partyImage/teacher-red.png'),
require('../assets/images/partyImage/data.png'),
require('../assets/images/partyImage/data-red.png'),
require('../assets/images/partyImage/service.png'),
require('../assets/images/partyImage/service-red.png'),
];

Loading…
Cancel
Save