电子资料库详情页处理

init
zhusiyu 3 years ago
parent 3549d93619
commit b36561673a

@ -140,8 +140,8 @@
</div>
<div class="classManage-event-scroll">
<carousel-3d width="320" height="100" space="80">
<slide v-for="(slide, i) in carousel3dData" :index="i" :key="i">
<img :src="slide" alt="">
<slide v-for="(item, i) in carousel3dData" :index="i" :key="i">
<img :src="item" alt="" style="display:block;">
<!--<img-preview :imgObj="slide"/>-->
</slide>
</carousel-3d>
@ -412,8 +412,8 @@
// this.BaseConfig.person_info_my.bureau_id + ""
// ]
"query_param": [
//this.BaseConfig.person_info_my.bureau_id + ""
"900008135"
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
]
},
"query_cache": 0,
@ -458,8 +458,8 @@
// this.BaseConfig.person_info_my.bureau_id + ""
// ]
"query_param": [
//this.BaseConfig.person_info_my.bureau_id + ""
"900008135"
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
]
},
"query_cache": 0,

@ -27,13 +27,14 @@
import {Spin, Empty} from 'ant-design-vue';
import ImgPreview from '../../../../common/imgPreview.vue';
import CommonInfo from '../../../../common/centerCommonInfo.vue';
export default{
export default {
props: {
infoId: {
type: Number,
}
},
data(){
data() {
return {
showData: false,
spinning: false,
@ -49,19 +50,19 @@
// this.getDataexReport(newVal);
// }
},
mounted(){
mounted() {
this.getDataexReport(this.$props.infoId);
},
methods: {
getDataexReport: function (infoId) {
let queryId = "";
if(infoId === 1){
if (infoId === 1) {
queryId = "query_deyu_laodong";
}else if(infoId === 2){
} else if (infoId === 2) {
queryId = "query_deyu_suzhi";
}else if(infoId === 3){
} else if (infoId === 3) {
queryId = "query_deyu_aiguo";
}else if(infoId === 4){
} else if (infoId === 4) {
queryId = "query_deyu_daode";
}
let param = {
@ -70,6 +71,7 @@
"query_id": queryId,
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
]
},
"query_cache": 0,
@ -85,6 +87,7 @@
params: param,
method: "post",
}], (result) => {
// console.log('', result)
this.showData = true;
this.spinning = false;
if (result[0].data.success) {

@ -79,7 +79,7 @@
{{"+" + (item.member_number > 99 ? '99' : item.member_number)}}
</div>
</swiper-slide>
<div class="swiper-pagination" slot="pagination"></div>
<!--<div class="swiper-pagination" slot="pagination"></div>-->
</swiper>
</div>
</div>
@ -96,12 +96,13 @@
import CommonBox from '../../secondPages/commonBox.vue';
import VueSeamlessScroll from 'vue-seamless-scroll';
import {swiper, swiperSlide} from "vue-awesome-swiper";
import "swiper/dist/css/swiper.css";
// import "swiper/dist/css/swiper.css";
import ImgPreview from '../../../common/imgPreview.vue';
import CommonInfo from '../../../common/centerCommonInfo.vue';
import CommonClubInfo from '../../../common/commonClubInfo.vue';
export default{
data(){
export default {
data() {
return {
spinning: false,
beautifulShow: [],
@ -210,7 +211,8 @@
"query": {
"query_id": "query_deyu_meiyu",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// this.BaseConfig.person_info_my.bureau_id + ""
"900008135"
]
},
"query_cache": 0,
@ -226,17 +228,30 @@
params: param,
method: "post",
}], (result) => {
//console.log('', JSON.parse(result[0].data.result))
if (result[0].data.success) {
let res = result[0].data.result;
if (res !== "") {
let dataList = JSON.parse(res);
if (dataList && dataList.length > 0) {
for (let i = 0; i < 5; i++) {
this.beautifulShow.push(dataList[i] ? dataList[i] : null);
}
}
dataList.forEach(item => {
item.attachment_json = item.attachment_json.substr(1)
item.attachment_json = JSON.parse(item.attachment_json)
this.beautifulShow.push(item.attachment_json)
})
// console.log('datadata', this.beautifulShow)
}
}
// if (result[0].data.success) {
// let res = result[0].data.result;
// if (res !== "") {
// let dataList = JSON.parse(res);
// if (dataList && dataList.length > 0) {
// for (let i = 0; i < 5; i++) {
// this.beautifulShow.push(dataList[i] ? dataList[i] : null);
// }
// }
// }
// }
})
},
getDataexReport02: function () {
@ -287,6 +302,7 @@
"query_id": "query_deyu_shetuan",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
]
},
"query_cache": 0,
@ -300,6 +316,7 @@
params: param,
method: "post",
}], (result) => {
// console.log('', JSON.parse(result[0].data.result))
this.spinning = false;
if (result[0].data.success) {
let res = result[0].data.result;
@ -406,6 +423,13 @@
width: 600px !important;
height: 450px !important;
display: flex;
> > > .banner {
.swiper-wrapper {
width: calc(100% - 50px) !important;
display: flex !important;
overflow: hidden !important;
}
}
.art-work-content-style {
width: 100%;
height: 415px;
@ -504,7 +528,8 @@
}
.community-storm-content {
display: flex;
justify-content: space-between;
/*justify-content: space-between;*/
overflow: hidden;
.club-box-style {
width: 90px !important;
height: 100%;
@ -514,6 +539,7 @@
border-radius: 5px;
position: relative;
cursor: pointer;
float: left;
.img-box-style {
width: 100%;
height: 90px;

@ -6,8 +6,8 @@
<div v-if="showAttendanceDate && attendanceList.length > 0" class="info-list-style">
<swiper v-if="attendanceList.length > 4" class="banner" :options="swiperOption" ref="mySwiper">
<swiper-slide v-for="(item, index) in attendanceList" :key="'attendance_' + index"
class="attendance-info-row-style">
<a-row class="info-row-style">
class="">
<a-row class="attendance-info-row-style">
<a-col :span="3" class="border-right-style">{{item.student_name}}</a-col>
<a-col :span="6" class="border-right-style" style="padding-left: 5px">
{{item.class_name}}
@ -135,11 +135,12 @@
import CommonBox from '../../secondPages/commonBox.vue';
import {row, col, Divider, 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 ImgPreview from '../../../common/imgPreview.vue';
import CommonInfo from '../../../common/commonInfo.vue';
export default{
data(){
export default {
data() {
return {
spinning: false,
showAttendanceDate: false,
@ -175,7 +176,7 @@
infoObj: {}
}
},
mounted(){
mounted() {
this.getAttendanceInfo();
this.getTwoCasesNineSystems();
this.getDiseasesPreventionInfo();
@ -189,6 +190,7 @@
"query_id": "query_deyu_chuqin",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
]
},
"query_cache": 0,
@ -197,18 +199,18 @@
"query_group": []
}
this.showAttendanceDate = false;
this.attendanceList = [];
this.DataexReportInterface.callInterface([{
params: param,
method: "post",
}], (result) => {
//console.log('-', JSON.parse(result[0].data.result))
this.showAttendanceDate = true;
if (result[0].data.success) {
let res = result[0].data.result;
if (res !== "") {
let dataList = JSON.parse(res);
if (dataList && dataList.length > 0) {
this.attendanceList.push(...dataList);
this.attendanceList = dataList
}
}
}
@ -353,7 +355,7 @@
.health-work-content-style {
width: 100%;
height: 415px;
/deep/ .ant-spin-container{
/deep/ .ant-spin-container {
width: 100%;
height: 100%;
display: flex;

@ -77,8 +77,9 @@
import {Divider, Tabs} from "ant-design-vue";
import LaborEducation from './activityTab/laborEducation.vue';
import ImgPreview from '../../../common/imgPreview.vue';
export default{
data(){
export default {
data() {
return {
menuId: 1,
menuList: [
@ -103,10 +104,10 @@
title: "道德教育"
}
],
topImgList: [null, null, null, null, null, null],//
topImgList: [],//
}
},
mounted(){
mounted() {
this.getDataexReport01();
},
methods: {
@ -119,6 +120,10 @@
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
]
// "query_param": [
// //this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
// ]
},
"query_cache": 0,
"query_count": [],
@ -130,17 +135,18 @@
params: param,
method: "post",
}], (result) => {
//console.log(",", JSON.parse(result[0].data.result));
this.spinning = false;
if (result[0].data.success) {
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 < 6;i ++){
this.topImgList[i] = dataList[i];
}
}
dataList.forEach(item => {
item.attachment_json = item.attachment_json.substr(1)
item.attachment_json = JSON.parse(item.attachment_json)
this.topImgList.push(item.attachment_json)
})
// console.log('datadata', this.topImgList)
}
}
})

@ -121,14 +121,19 @@
</a-tab-pane>
<a-tab-pane :key="2" tab="Tab 2">
<div class="selected-content-style">
<div v-if="showSelectedData && selectedDataList.length > 0" class="copywriting-list-style">
<div v-if="showSelectedData && selectedDataList.length > 0"
class="copywriting-list-style">
<a-row class="table-row-style" v-for="item,index in selectedDataList"
:key="'selectednews_'+index">
<a-col class="header-box-style" :span="24" @click="showInfo(item)">{{' ' + item.info_title}}</a-col>
<a-col class="header-box-style" :span="24" @click="showInfo(item)">{{' ' +
item.info_title}}
</a-col>
</a-row>
</div>
<div v-if="showSelectedData && selectedImgDataList.length > 0" class="copywriting-img-style">
<div class="img-box-style" v-for="item,index in selectedImgDataList" :key="'selected_img_'+ index">
<div v-if="showSelectedData && selectedImgDataList.length > 0"
class="copywriting-img-style">
<div class="img-box-style" v-for="item,index in selectedImgDataList"
:key="'selected_img_'+ index">
<div class="img-style">
<img-preview :imgObj="item.imgObj"/>
<!--<img src="../../../assets/images/moralEducationWork/u4203.svg"-->
@ -160,12 +165,13 @@
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';
export default{
data(){
export default {
data() {
return {
spinning: false,
selectType: 1,//1 2
@ -195,14 +201,14 @@
psychicClassroomList: [],
showPsychicActivity: false,
psychicActivityList: [],
showSelectedData:false,
showSelectedData: false,
selectedDataList: [],
selectedImgDataList:[],
selectedImgDataList: [],
visible: false,
infoObj: {},
}
},
mounted(){
mounted() {
//
this.getPsychologyCounsellingRoom();
//
@ -216,11 +222,12 @@
swiper() {
return this.$refs.mySwiper.$swiper
},
classRoomSwiper(){
classRoomSwiper() {
return this.$refs.classRoomSwiper.$swiper
}
},
methods: {
//
getPsychologyCounsellingRoom: function () {
let param = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
@ -228,6 +235,7 @@
"query_id": "query_deyu_xinli",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
]
},
"query_cache": 0,
@ -241,6 +249,7 @@
params: param,
method: "post",
}], (result) => {
// console.log('', result)
this.showCounsellingRoom = true;
if (result[0].data.success) {
let res = result[0].data.result;
@ -253,6 +262,7 @@
}
})
},
//
getPsychologyClassroom: function () {
let param = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
@ -260,6 +270,7 @@
"query_id": "query_deyu_xinli2",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
]
},
"query_cache": 0,
@ -273,6 +284,7 @@
params: param,
method: "post",
}], (result) => {
// console.log('', result)
this.showPsychicClassroom = true;
if (result[0].data.success) {
let res = result[0].data.result;
@ -347,7 +359,7 @@
if (dataList && dataList.length > 0) {
for (let i = 0; i < 5; i++) {
let dataInfo = dataList[i];
if(dataInfo){
if (dataInfo) {
let cover_json = dataList[i].cover_json;
if (cover_json !== "") {
let imgObj = JSON.parse(cover_json);
@ -358,7 +370,7 @@
}
for (let i = 5; i < 7; i++) {
let dataInfo = dataList[i];
if(dataInfo){
if (dataInfo) {
let cover_json = dataList[i].cover_json;
if (cover_json !== "") {
let imgObj = JSON.parse(cover_json);
@ -375,7 +387,7 @@
prev() {
this.swiper.slidePrev();
},
next(){
next() {
this.classRoomSwiper.slideNext();
},
changeType: function () {
@ -460,7 +472,7 @@
.psychic-build-content-style {
width: 100%;
height: 345px;
/deep/ .ant-spin-container{
/deep/ .ant-spin-container {
width: 100%;
height: 100%;
display: flex;
@ -666,8 +678,8 @@
flex-direction: column;
justify-content: space-between;
color: $color-default-bright;
.table-row-style{
.header-box-style{
.table-row-style {
.header-box-style {
cursor: pointer;
}
}

@ -103,10 +103,11 @@
import Upload from '../../../../../components/common/uploader/Upload.vue';
import ImgPreview from '../../../common/imgPreview.vue';
import CommonInfo from '../../../common/commonInfo.vue';
export default{
data(){
export default {
data() {
return {
spinning:false,
spinning: false,
listScroll: this.StaticParams.scrollOption,
studentPhysiqueList: [],
showDocument: false,
@ -126,7 +127,7 @@
infoObj: {}
}
},
mounted(){
mounted() {
this.getBodyMonitorInfo();
this.getPolicyFile();
this.getGamesData();
@ -141,6 +142,7 @@
"query_id": "query_deyu_tizhi",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
// "900008135"
]
},
"query_cache": 0,
@ -477,7 +479,7 @@
.sports-work-content-style {
width: 100%;
height: 345px;
/deep/ .ant-spin-container{
/deep/ .ant-spin-container {
width: 100%;
height: 100%;
display: flex;

@ -217,6 +217,9 @@
height: 100%;
display: flex;
flex-direction: column;
.timeLine-empty {
margin-top: 40px;
}
.content-title-style {
width: 100%;
height: 20px;

Loading…
Cancel
Save