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

init
gongdi 3 years ago
parent 25e0f5f46f
commit 18b77b1c38

@ -239,8 +239,16 @@
for (let i = 0, len = dataList.length; i < len; i++) {
let imgJson = dataList[i].attachment_json;
if (imgJson !== "") {
if(imgJson[0] != "{"){
imgJson = imgJson.substring(1);
}
let imgArr = JSON.parse(imgJson);
this.imgList.push(imgArr);
if(Array.isArray(imgArr)){
this.imgList.push(...imgArr);
}else {
this.imgList.push(imgArr);
}
}
}
}

@ -16,7 +16,7 @@
<div class="system-name-style">{{system.title}}</div>
</div>
</template>
<div v-else class="tips-style">您的当前角色暂未被开放任何系统功能请联系管理</div>
<div v-if="systemList.length === 0 && systemCenterList.length === 0" class="tips-style"></div>
</div>
</template>
@ -29,12 +29,14 @@
data: function () {
return {
systemList: _.cloneDeep(systemConfigData),
systemCenterList: systemCenterConfig,
systemCenterList: [],
crm: this.crmData,
}
},
mounted() {
this.calculateData()
//
this.calulateCenterData()
},
methods: {
accessSubsystem: function (system) {
@ -85,6 +87,22 @@
} else {
this.systemList = [];
}
},
calulateCenterData:function () {
let roles = this.BaseConfig.person_info_my.roles;
let centerSourceData = _.cloneDeep(systemCenterConfig);
if(roles && roles.length > 0){
for(let i = 0,len = roles.length;i < len;i ++){
let role_code = roles[i].role_code;
for(let j = 0,mLen = centerSourceData.length;j < mLen;j ++){
let roleCode = centerSourceData[j].roleCode;
if(role_code === roleCode){
this.systemCenterList.push(centerSourceData[j]);
break
}
}
}
}
}
},
watch: {

@ -156,6 +156,7 @@ export const systemCenterConfig = [
{
id: 'dangjianyinling',
title: '党建引领',
roleCode:"partyBuildAdmin",//党建引领中心管理员
menus: [
{
id: "1",
@ -186,6 +187,7 @@ export const systemCenterConfig = [
{
id: "xingzhengguanli",
title: '行政管理',
roleCode:"administrationAdmin",//行政管理中心管理员
menus: [
{
id: "admin-1",
@ -216,6 +218,7 @@ export const systemCenterConfig = [
{
id: "yunxingshuju",
title: '运行数据',
roleCode:"runDataAdmin",//运行数据中心管理员
menus: [
{
id: "operationData-1",
@ -254,6 +257,7 @@ export const systemCenterConfig = [
{
id: "jiaoxue",
title: '教学管理',
roleCode:"teachingManageAdmin",//教学管理中心管理员
menus: [
{
id: "teaching-1",
@ -324,6 +328,7 @@ export const systemCenterConfig = [
{
id: "deyu",
title: '德育管理',
roleCode:"moralEducationAdmin",//德育管理中心管理员
menus: [
{
id: "moralEducation-1",

@ -109,6 +109,36 @@
return
}
this.isLogining = true;
// //199
// this.InterfaceConfig.callInterface([{
// url: CommonInter.checkLoginStatus.url,
// params: {user: this.account, pwd: this.password},
// method: CommonInter.checkLoginStatus.method,
// isTestLogin: CommonInter.checkLoginStatus.isTestLogin,
// }], (result) => {
// if (result[0].status === 200) {
// let data = result[0].data;
// if (data.success) {
// //cookie
// this.Cookie.set("person_id", data.person_id);
// this.Cookie.set("identity_id", data.identity_id);
// this.Cookie.set("token", "48d7648c7d2c281d01d1efe9dbee0d76");
//
// //BaseConfig
// this.buildBaseInfo();
// } else {
// this.passwordErrorTips = result[0].data.info?result[0].data.info:"";
// this.isLogining = false;
// this.closePanel();
// }
// } else {
// this.isLogining = false;
// this.closePanel();
// }
// })
//190
this.InterfaceConfig.callInterface([{
url: CommonInter.localLogin.url,
params: {login_name: Base64.encode(this.account), login_pwd: Base64.encode(this.password)},
@ -125,20 +155,6 @@
//BaseConfig
this.buildBaseInfo();
// console.log(this.BaseConfig)
//
// //
// //storerouter
// new Promise(function (resolve, reject) {
// _this.getPersonInfo(resolve);
// }).then(function (res) {
// if (res[0].status === 200 && res[0].data.success) {
// _this.setUserStore(res[0].data.table_List);
// }else {
// this.isLogining = false;
// }
// })
} else {
this.passwordErrorTips = result[0].data.info?result[0].data.info:"";
this.isLogining = false;

@ -13,17 +13,19 @@
</a-col>
<!--队组建设----时间轴-->
<a-col style="width: 300px;margin-top: 5px;" class="timeLine">
<vue-scroll :ops="listScroll" style="height:100%">
<a-empty description="暂无数据" v-if="teamBuildDataEmpty" class="timeLine-empty"/>
<a-timeline reverse ref="timeLineUl" v-if="teamBuildData.length != 0">
<a-timeline reverse ref="timeLineUl" v-if="teamBuildData.length !== 0">
<a-timeline-item
v-for="(item,i) in teamBuildData" :key="i" @mouseenter="enter(i)"
@mouseleave="leave(i)" @click="showTeamBuildInfo(item)"
>
<p style="color:#80FFFF;font-size: 12px;margin-bottom: 0;">{{item.time}}</p>
<p style="color:#80FFFF;font-size: 12px;margin-bottom: 0;">{{item.create_time.substring(0,10)}}</p>
<p style="font-size: 14px;color: #fff;margin-bottom: 0;overflow:hidden; text-overflow:ellipsis;white-space: nowrap;">
{{item.content}}</p>
{{item.info_title}}</p>
</a-timeline-item>
</a-timeline>
</vue-scroll>
</a-col>
<!--队伍建设----图片-->
<a-col class="teamBuildPic">
@ -69,14 +71,17 @@
</a-col>
<!--班主任培训----列表内容-->
<a-col class="masterList">
<vue-scroll :ops="listScroll" style="height:100%">
<a-empty description="暂无数据" v-if="headMasterTrainDataEmpty" class="timeLine-empty"/>
<a-collapse :activeKey="masterListActiveKey" accordion v-if="headMasterTrainData.length != 0">
<a-collapse-panel :key="i" :header="item.titleText" v-for="(item,i) in headMasterTrainData"
<a-collapse :activeKey="masterListActiveKey" accordion v-if="headMasterTrainData.length !== 0">
<a-collapse-panel :key="i" :header="item.info_title" v-for="(item,i) in headMasterTrainData"
@click="showTrainInfo(item)">
<span class="masterList-span"> {{item.time}}</span>
<img v-for="(item2,i2) in item.picData" :src="item2.src" alt="" :key="i2">
<span class="masterList-span"> {{item.create_time.substring(0,10)}}</span>
<!--<img v-for="(item2,i2) in item.picData" :src="item2.src" alt="" :key="i2">-->
<img-preview v-for="(item2,i2) in item.imgs" :key="'banzhuren-px-'+i2" :imgObj="item2" style="width: 30%"/>
</a-collapse-panel>
</a-collapse>
</vue-scroll>
</a-col>
<a-col style="width: 1px;height: 215px;border-right: 1px dashed #fff;margin-left: 10px;margin-right: 10px;"></a-col>
<!--班主任评优----标题-->
@ -103,25 +108,39 @@
</a-row>
</a-carousel>
<a-empty description="暂无数据" v-if="bestHeadMaster1Empty" class="timeLine-empty"/>
<swiper class="masterBest-row" id="mySwiper1" :options="swiperOption1" ref="mySwiper"
v-if="bestHeadMaster1.length!=0">
<swiper-slide v-for="(item,i) in bestHeadMaster1" :key="i" class="masterBest-Col">
<img :src="item.src" alt=""
style="width: 35px;height: 35px;margin-top: 10px;border-radius: 50%;">
<p style="margin: 0;margin-top: 5px;margin-bottom:4px;">{{item.name}}</p>
<p style="color: #01F6F9;font-size: 12px;margin: 0;">{{item.class}}</p>
</swiper-slide>
</swiper>
<a-empty description="暂无数据" v-if="bestHeadMaster2Empty" class="timeLine-empty"/>
<swiper class="masterBest-row" id="mySwiper2" :options="swiperOption2" ref="mySwiper"
v-if="bestHeadMaster2.length!=0">
<swiper-slide v-for="(item,i) in bestHeadMaster2" :key="i" class="masterBest-Col">
<img :src="item.src" alt=""
style="width: 35px;height: 35px;margin-top: 10px;border-radius: 50%;">
<p style="margin: 0;margin-top: 5px;margin-bottom:4px;">{{item.name}}</p>
<p style="color: #01F6F9;font-size: 12px;margin: 0;">{{item.class}}</p>
</swiper-slide>
</swiper>
<div class="teacher-py-box-style">
<vue-scroll :ops="listScroll" style="height:100%">
<div class="content-style">
<div class="teacher-box-style" v-for="(item,i) in bestHeadMaster1" :key="i">
<img src="../../../assets/images/teacher.svg" alt=""
style="width: 35px;height: 35px;margin-top: 10px;border-radius: 50%;">
<!--<p style="margin: 0;margin-top: 5px;margin-bottom:4px;"></p>-->
<div class="item-title-style">{{item.teacher_name}}</div>
<div class="item-title-style">{{item.class_names}}</div>
<!--<p style="margin: 0;margin-top: 5px;margin-bottom:4px;">{{item.class_names}}</p>-->
</div>
</div>
</vue-scroll>
</div>
<!--<swiper class="masterBest-row" id="mySwiper1" :options="swiperOption1" ref="mySwiper"-->
<!--v-if="bestHeadMaster1.length!=0">-->
<!--<swiper-slide v-for="(item,i) in bestHeadMaster1" :key="i" class="masterBest-Col">-->
<!--<img :src="item.src" alt=""-->
<!--style="width: 35px;height: 35px;margin-top: 10px;border-radius: 50%;">-->
<!--<p style="margin: 0;margin-top: 5px;margin-bottom:4px;">{{item.teacher_name}}</p>-->
<!--&lt;!&ndash;<p style="color: #01F6F9;font-size: 12px;margin: 0;">{{item.class}}</p>&ndash;&gt;-->
<!--</swiper-slide>-->
<!--</swiper>-->
<!--<a-empty description="暂无数据" v-if="bestHeadMaster2Empty" class="timeLine-empty"/>-->
<!--<swiper class="masterBest-row" id="mySwiper2" :options="swiperOption2" ref="mySwiper"-->
<!--v-if="bestHeadMaster2.length!=0">-->
<!--<swiper-slide v-for="(item,i) in bestHeadMaster2" :key="i" class="masterBest-Col">-->
<!--<img :src="item.src" alt=""-->
<!--style="width: 35px;height: 35px;margin-top: 10px;border-radius: 50%;">-->
<!--<p style="margin: 0;margin-top: 5px;margin-bottom:4px;">{{item.name}}</p>-->
<!--<p style="color: #01F6F9;font-size: 12px;margin: 0;">{{item.class}}</p>-->
<!--</swiper-slide>-->
<!--</swiper>-->
</a-col>
</a-row>
</div>
@ -136,7 +155,7 @@
import {Carousel, Timeline, Table, Spin, Row, Col, Collapse, Empty} from 'ant-design-vue';
import {swiper, swiperSlide} from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import ImgPreview from '../../../common/imgPreview.vue';
export default {
data() {
return {
@ -235,6 +254,7 @@
swiper,
swiperSlide,
CommonInfo,
ImgPreview
},
created() {
},
@ -271,6 +291,7 @@
"query": {
"query_id": "query_deyu_duiwu",
"query_param": [
//"900008135",
this.BaseConfig.person_info_my.bureau_id + ""
]
},
@ -284,10 +305,19 @@
params: param,
method: "post",
}], (result) => {
console.log("队伍建设:",result)
this.spinning = false;
if (result[0].data.result.length != 0) {
this.teamBuildData = JSON.parse(result[0].data.result)
} else {
if(result[0].data.success){
let res = result[0].data.result;
if(res && res !== ""){
let arr = JSON.parse(res);
if(arr && arr.length > 0){
this.teamBuildData.push(...arr)
}
}else {
this.teamBuildDataEmpty = true
}
}else {
this.teamBuildDataEmpty = true
}
})
@ -328,6 +358,7 @@
"query_id": "query_deyu_peixun",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
//"900008135",
]
},
"query_cache": 0,
@ -341,9 +372,28 @@
method: "post",
}], (result) => {
this.spinning = false;
if (result[0].data.result.length != 0) {
this.headMasterTrainData = JSON.parse(result[0].data.result)
} else {
if(result[0].data.success){
let res = result[0].data.result;
if(res && res !== ""){
let arr = JSON.parse(res);
if(arr && arr.length > 0){
this.headMasterTrainData.push(...arr)
console.log("班主任培训数据",this.headMasterTrainData)
for(let i = 0,len = this.headMasterTrainData.length;i < len;i ++){
let json = this.headMasterTrainData[i].cover_json;
if(json && json !== ""){
let arr = JSON.parse(json);
if(arr.length > 3){
arr = arr.slice(0,3)
}
this.headMasterTrainData[i]["imgs"] = arr;
}
}
}
}else {
this.headMasterTrainDataEmpty = true
}
}else {
this.headMasterTrainDataEmpty = true
}
})
@ -356,6 +406,7 @@
"query_id": "query_deyu_pingyou",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
//"900008135"
]
},
"query_cache": 0,
@ -369,13 +420,23 @@
method: "post",
}], (result) => {
this.spinning = false;
if (result[0].data.result.length != 0) {
this.titleData = JSON.parse(result[0].data.result)
this.excellent_id = this.titleData[0].excellent_id
}
if(this.excellent_id !== ""){
this.getMasterBextData2()//2
if(result[0].data.success){
let res = result[0].data.result;
if(res && res !== ""){
let arr = JSON.parse(res);
if(arr && arr.length > 0){
if(arr && arr.length > 0){
this.titleData.push(...arr);
console.log("this.titleData:",this.titleData)
this.excellent_id = this.titleData[0].excellent_id
if(this.excellent_id !== ""){
this.getMasterBextData2()//2
}
}
}
}
}
})
},
//2
@ -386,6 +447,7 @@
"query_id": "query_deyu_pingyou2",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + "",
//"900008135",
this.excellent_id + ""
]
},
@ -400,14 +462,20 @@
method: "post",
}], (result) => {
this.spinning = false;
if (result[0].data.result.length != 0) {
this.masterListData = JSON.parse(result[0].data.result)
} else {
this.bestHeadMaster1Empty = true
this.bestHeadMaster2Empty = true
}
(this.bestHeadMaster2.length == 0)
{
if(result[0].data.success) {
let res = result[0].data.result;
if (res && res !== "") {
let arr = JSON.parse(res);
console.log("班主任评优数据:",arr)
if (arr && arr.length > 0) {
if (arr && arr.length > 0) {
this.bestHeadMaster1.push(...arr);
}
} else {
this.bestHeadMaster1Empty = true
this.bestHeadMaster2Empty = true
}
}
}
})
},
@ -568,7 +636,7 @@
}
.timeLine {
height: 200px;
.ant-timeline, .ant-timeline-reverse {
margin-top: -10px;
@ -576,6 +644,9 @@
padding: 10px 0 0;
border-radius: 5px;
cursor: pointer;
.ant-timeline-item-content{
top: 0 !important;
}
.ant-timeline-item-tail {
border-left: 2px dashed #80FFFF;
@ -589,6 +660,7 @@
}
/deep/ .ant-timeline-item-content {
top: 0 !important;
min-height: 0 !important;
}
@ -678,6 +750,7 @@
width: 100%;
/deep/ .ant-timeline-item-last > .ant-timeline-item-content {
top: 0 !important;
min-height: 0 !important;
}
}
@ -686,6 +759,9 @@
padding: 15px 0 0;
border-bottom: 1px solid #80FFFF;
width: 100%;
.ant-timeline-item-content{
top: 0 !important;
}
.ant-timeline-item-tail {
height: 0;
@ -720,6 +796,39 @@
height: 20px;
text-align: center;
}
.teacher-py-box-style{
width: 100%;
height: 200px;
/deep/ .content-style{
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
.teacher-box-style{
border: 1px solid #4e9fb4;
border-radius: 5px;
height: 94px;
width: 67px !important;
margin-right: 5px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
.item-title-style{
width: 100%;
height: 20px;
font-size: 12px;
display: flex;
justify-content: center;
align-items: center;
padding: 0 2px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
.masterBest-row {
height: 95px;
@ -756,7 +865,7 @@
.masterList {
width: 359px;
height: 100%;
height: 220px;
border: none;
/deep/ .ant-collapse {
@ -800,10 +909,10 @@
}
.ant-collapse-item > .ant-collapse-header {
padding: 9px 122px;
width: 50%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
white-space: nowrap;
padding-left: 8px;
color: #fff;
line-height: 10px;

@ -693,7 +693,7 @@
.studentManageBox {
width: 100%;
height: 100%;
height: 550px;
display: flex;
justify-content: space-between;

@ -69,8 +69,9 @@
<swiper class="banner" :options="swiperOption" ref="mySwiper">
<swiper-slide v-for="(item, index) in communityImgList" :key="index"
class="club-box-style">
<div class="img-box-style" @click="showClubInfo(item)">
<div class="img-box-style">
<!--<img :src="item.imgUrl"/>-->
<img-preview :imgObj="item.imgs[0]"/>
</div>
<div class="title-box-style" @click="showClubInfo(item)">
{{item.club_name}}
@ -302,7 +303,7 @@
"query_id": "query_deyu_shetuan",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
//"900008135"
]
},
"query_cache": 0,
@ -322,9 +323,24 @@
let res = result[0].data.result;
if (res !== "") {
let dataList = JSON.parse(res);
console.log("社团数据",dataList)
if (dataList && dataList.length > 0) {
for (let i = 0; i < dataList.length; i++) {
dataList[i]["imgs"] = [];
let attachment_json = dataList[i].attachment_json;
if(attachment_json && attachment_json !== ""){
if(attachment_json[0] !== "{"){
attachment_json = attachment_json.substring(1);
let jsonArr = JSON.parse(attachment_json);
if(Array.isArray(jsonArr)){
dataList[i]["imgs"].push(jsonArr[0])
}else {
dataList[i]["imgs"].push(jsonArr)
}
}
}
this.communityImgList.push(dataList[i]);
console.log("this.communityImgList:",this.communityImgList)
}
}
}

@ -17,11 +17,12 @@
<swiper-slide v-for="(item, index) in counsellingRoomList" :key="index"
class="community-box-style">
<div class="img-box-style">
<img :src="item.imgUrl"/>
<!--<img :src="item.imgUrl"/>-->
<img-preview :imgObj="item"/>
</div>
</swiper-slide>
</swiper>
<div v-if="showCounsellingRoom && counsellingRoomList.length === 0"
<div v-if="counsellingRoomList.length === 0"
class="no-data-content-style">
<!--<a-empty description="暂无数据"/>-->
暂无数据~
@ -29,14 +30,14 @@
</div>
<div class="img-change-style">
<!--<a-icon type="right" :style="{fontSize: '30px', color: '#31a8fa'}"/>-->
<div v-if="counsellingRoomList.length > 0" class="swiper-button-next" slot="button-next"
@click="prev"></div>
<div v-if="counsellingRoomList.length > 0" class="swiper-button-next"
@click="next"></div>
</div>
</div>
<div class="img-change-box-style">
<div class="img-change-style">
<div v-if="psychicClassroomList.length > 0" class="swiper-button-prev" slot="button-next"
@click="next"></div>
<div v-if="psychicClassroomList.length > 0" class="swiper-button-prev"
@click="prev"></div>
</div>
<div class="img-list-style">
<swiper v-if="showPsychicClassroom && psychicClassroomList.length > 0" class="banner"
@ -45,11 +46,11 @@
<swiper-slide v-for="(item, index) in psychicClassroomList" :key="index"
class="community-box-style">
<div class="img-box-style">
<img :src="item.imgUrl"/>
<img-preview :imgObj="item"/>
</div>
</swiper-slide>
</swiper>
<div v-if="showPsychicClassroom && psychicClassroomList.length === 0"
<div v-if="psychicClassroomList.length === 0"
class="no-data-content-style">
<!--<a-empty description="暂无数据"/>-->
暂无数据~
@ -165,7 +166,7 @@
import CommonBox from '../../secondPages/commonBox.vue';
import {Icon, Tabs, row, col, Empty, Spin} from 'ant-design-vue';
import {swiper, swiperSlide} from "vue-awesome-swiper";
// import "swiper/dist/css/swiper.css";
import "swiper/dist/css/swiper.css";
import moment from 'moment';
import ImgPreview from '../../../common/imgPreview.vue';
import CommonInfo from '../../../common/commonInfo.vue';
@ -177,6 +178,7 @@
selectType: 1,//1 2
paneKey: 1,
listScroll: this.StaticParams.scrollOption,
//mySwiper:{},
swiperOption01: {
speed: 1000,
loop: true,
@ -209,6 +211,10 @@
}
},
mounted() {
// this.$nextTick(()=>{
// console.log("mySwiper:",this.$refs.mySwiper)
// this.mySwiper = this.$refs.mySwiper.$swiper;
// })
//
this.getPsychologyCounsellingRoom();
//
@ -219,11 +225,11 @@
this.getMentalEducationSelected();
},
computed: {
swiper() {
return this.$refs.mySwiper.$swiper
mySwiper() {
return this.$refs.mySwiper.swiper
},
classRoomSwiper() {
return this.$refs.classRoomSwiper.$swiper
return this.$refs.classRoomSwiper.swiper
}
},
methods: {
@ -235,7 +241,7 @@
"query_id": "query_deyu_xinli",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
//"900008135"
]
},
"query_cache": 0,
@ -255,8 +261,22 @@
let res = result[0].data.result;
if (res !== "") {
let dataList = JSON.parse(res);
console.log("获取心理咨询室数据:",dataList)
if (dataList && dataList.length > 0) {
this.counsellingRoomList.push(...dataList);
for(let i = 0,len = dataList.length;i < len;i ++){
let photoJson = dataList[i].attachment_json;
if(photoJson && photoJson !== ""){
if(photoJson[0] !== "{"){
photoJson = photoJson.substring(1)
}
let obj = JSON.parse(photoJson);
if(Array.isArray(obj)){
this.counsellingRoomList.push(...obj);
}else {
this.counsellingRoomList.push(obj);
}
}
}
}
}
}
@ -270,7 +290,7 @@
"query_id": "query_deyu_xinli2",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
//"900008135"
]
},
"query_cache": 0,
@ -291,7 +311,20 @@
if (res !== "") {
let dataList = JSON.parse(res);
if (dataList && dataList.length > 0) {
this.psychicClassroomList.push(...dataList);
for(let i = 0,len = dataList.length;i < len;i ++){
let photoJson = dataList[i].attachment_json;
if(photoJson && photoJson !== ""){
if(photoJson[0] !== "{"){
photoJson = photoJson.substring(1)
}
let obj = JSON.parse(photoJson);
if(Array.isArray(obj)){
this.psychicClassroomList.push(...obj);
}else {
this.psychicClassroomList.push(obj);
}
}
}
}
}
}
@ -384,11 +417,11 @@
}
})
},
prev() {
this.swiper.slidePrev();
next(){
this.mySwiper.slideNext();
},
next() {
this.classRoomSwiper.slideNext();
prev() {
this.classRoomSwiper.slidePrev();
},
changeType: function () {
this.timing = setInterval(() => {
@ -483,9 +516,10 @@
height: calc(50% - 5px);
display: flex;
flex-direction: column;
justify-content: space-between;
.img-change-box-style {
width: 100%;
height: 50%;
height: calc(50% - 2.5px);
display: flex;
.title-box-style {
width: 80px;
@ -509,12 +543,17 @@
height: 100%;
display: flex;
justify-content: space-between;
position: relative;
.banner {
.community-box-style {
display: flex;
justify-content: center;
align-items: center;
}
.swiper-button-next{
position: absolute;
right: 0;
}
}
.no-data-content-style {
width: 100%;

@ -21,6 +21,7 @@
<div class="text-style">政策文件</div>
</div>
<div class="list-style">
<div v-if="showDocument && documentList.length > 0" class="policy-file-content-style">
<!--<a-row class="document-row-style" v-for="item,index in documentList"-->
<!--:key="'document_'+index">-->
@ -28,12 +29,16 @@
<!--{{item.title}}-->
<!--</a-col>-->
<!--</a-row>-->
<Upload :type="1" :multiple="false" :option="{}" :canDownload="false"
:fileData="documentList"
:canUpload="false"
ref="fileUpload"
/>
<vue-scroll class="document-list-scroll-style"
:ops="listScroll" style="width:100%;height:100%">
<Upload :type="1" :multiple="false" :option="{}" :canDownload="false"
:fileData="documentList"
:canUpload="false"
ref="fileUpload"
/>
</vue-scroll>
</div>
<div v-if="showDocument && documentList.length === 0" class="no-data-content-style">
<a-empty description="暂无数据" style="font-size: 10px"/>
</div>
@ -294,6 +299,7 @@
"query": {
"query_id": "query_deyu_zhengce",
"query_param": [
//"900008135"
this.BaseConfig.person_info_my.bureau_id + ""
]
},
@ -313,11 +319,15 @@
let res = result[0].data.result;
if (res !== "") {
let dataArr = JSON.parse(res);
console.log("政策文件:", dataArr)
if (dataArr && dataArr.length > 0) {
for (let i = 0; i < 5; i++) {
if (dataArr[i]) {
let attachment_json = dataArr[i].attachment_json;
if (attachment_json !== "") {
if (attachment_json[0] !== "{") {
attachment_json = attachment_json.substring(1)
}
let file = JSON.parse(attachment_json);
this.documentList.push(file)
}
@ -556,24 +566,33 @@
display: flex;
flex-direction: column;
justify-content: space-between;
.upload-container-style {
.document-list-scroll-style{
width: 100%;
height: 100%;
.file-style {
width: 100%;
height: 27px !important;
.file-name-style {
display: block;
.__panel .__view{
width: 100% !important;
height: 100% !important;
.upload-container-style {
width: 100%;
height: 27px;
line-height: 27px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: $color-default-bright;
height: 100%;
.file-style {
width: 100%;
height: 27px !important;
.file-name-style {
display: block;
width: 100%;
height: 27px;
line-height: 27px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: $color-default-bright;
}
}
}
}
}
.document-row-style {
width: 100%;
overflow: hidden;

@ -49,29 +49,29 @@
dataList: [],
imgList: [],
//-
imgArr: [
{src: require("./images/listPic1.png")},
{src: require("./images/listPic6.png")},
{src: require("./images/listPic3.png")},
],
// imgArr: [
// {src: require("./images/listPic1.png")},
// {src: require("./images/listPic6.png")},
// {src: require("./images/listPic3.png")},
// ],
//
showPage: true,
listScroll: this.StaticParams.scrollOption,
teamBuildList: [
{
content: '【红心向党·凝聚动力】“青春向党·奋斗强国” ——洋浦学校2021入团仪式暨“青年之家”揭牌仪式纪实'
}, {
content: '【和谐经开·智慧洋浦】凝聚青春力量 筑牢青春底色 --洋浦学校团支部成立大会纪实'
}, {
content: '【和谐经开·智慧洋浦】 “童年再见·青春你好” ——洋浦学校团委、少工委庆祝建党百年系列活动暨2019级离队仪式'
}, {
content: '【和谐经开·智慧洋浦】凝聚青春力量 筑牢青春底色 --洋浦学校团支部成立大会纪实'
}, {
content: '【红心向党·凝聚动力】“青春向党·奋斗强国” ——洋浦学校2021入团仪式暨“青年之家”揭牌仪式纪实'
}, {
content: '【和谐经开·智慧洋浦】凝聚青春力量 筑牢青春底色 --洋浦学校团支部成立大会纪实'
},
],
// teamBuildList: [
// {
// content: '·· 2021'
// }, {
// content: '· --'
// }, {
// content: '· · 2019'
// }, {
// content: '· --'
// }, {
// content: '·· 2021'
// }, {
// content: '· --'
// },
// ],
visible: false,
modalTitle: '查看详情',
infoId: "",

Loading…
Cancel
Save