电子资料库详情页处理

init
zhusiyu 3 years ago
parent 3549d93619
commit b36561673a

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

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

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

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

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

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

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

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

Loading…
Cancel
Save