洋浦学校八大中心 党建接口对接

init
gongdi 3 years ago
parent dd26362efb
commit 37e790c2ad

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

@ -0,0 +1,54 @@
<template>
<div class="img-preview-box-style">
<img :src="getImgURL()" style="width: 100%;height: 100%" @click="previewData">
<preview-box ref="previewBox"/>
</div>
</template>
<script>
/*
* 图片及预览处理业务组件
* */
import PreviewBox from '../../../components/common/preview/PreviewBox';
import PreviewManager from '../../../components/common/preview/previewManager';
export default{
props: {
imgObj: {
type: Object,
default: () => {
}
}
},
data(){
return {
img: this.$props.imgObj,
}
},
watch: {
imgObj:function (newVal) {
this.img = newVal;
}
},
methods: {
getImgURL: function () {
if (this.img && this.img.key && this.img.key !== "") {
return this.BaseConfig.url_path_down + this.img.key;
} else {
//
}
},
previewData: function () {
PreviewManager.analysisPreview(this.img, this.$refs.previewBox)
}
},
components: {
PreviewBox
}
}
</script>
<style scoped lang="scss">
.img-preview-box-style {
width: 100%;
height: 100%;
cursor: pointer;
}
</style>

@ -98,7 +98,7 @@ export const systemConfigData = [
export const systemCenterConfig = [ export const systemCenterConfig = [
{ {
id:'party-building', id:'dangjianyinling',
title:'党建引领', title:'党建引领',
menus:[ menus:[
{ {
@ -128,7 +128,7 @@ export const systemCenterConfig = [
] ]
}, },
{ {
id:"admin", id:"xingzhengguanli",
title:'行政管理', title:'行政管理',
menus:[ menus:[
{ {
@ -158,7 +158,7 @@ export const systemCenterConfig = [
] ]
}, },
{ {
id:"operationData", id:"yunxingshuju",
title:'运行数据', title:'运行数据',
menus:[ menus:[
{ {
@ -196,7 +196,7 @@ export const systemCenterConfig = [
] ]
}, },
{ {
id:"teaching", id:"jiaoxue",
title:'教学管理', title:'教学管理',
menus:[ menus:[
{ {
@ -226,7 +226,7 @@ export const systemCenterConfig = [
] ]
}, },
{ {
id:"moralEducation", id:"deyu",
title:'德育管理', title:'德育管理',
menus:[ menus:[
{ {
@ -384,7 +384,7 @@ export const systemCenterConfig = [
] ]
}, },
{ {
id:'imgText', id:'tuwen',
title:'图文管理', title:'图文管理',
menus:[ menus:[
{ {

@ -173,10 +173,38 @@
}, },
} }
}, },
mounted(){ mounted() {
// console.log(this.$refs.mySwiper.$swiper.$wrapperEl.style);
this.$refs.mySwiper.$swiper.$wrapperEl[0].style["transition-timing-function"] = "linear"; //csslinearmounted
},
methods: {
stopSwiper() {
// transform
this.nextTransForm = this.$refs.mySwiper.$swiper.$wrapperEl[0].style.transform;
//
let nextTransPosition = -1 * parseInt(this.nextTransForm.split("px")[0].split("translate3d(")[1]);
// //
let nowTransPosition = -1 * parseInt(window.getComputedStyle(this.$refs.mySwiper.$swiper.$wrapperEl[0], false)["transform"].split("1, ")[2].split(",")[0]);
// transform
let nowTransForm = window.getComputedStyle(this.$refs.mySwiper.$swiper.$wrapperEl[0], false)["transform"];
// 150slide
this.nextTime = 4000 * ((nextTransPosition - nowTransPosition) / 150);
// transform
this.$refs.mySwiper.$swiper.$wrapperEl[0].style.transform = nowTransForm;
this.$refs.mySwiper.$swiper.$wrapperEl[0].style.transitionDuration = "0ms";
this.$refs.mySwiper.$swiper.autoplay.stop();
},
startSwiper() {
//
this.$refs.mySwiper.$swiper.$wrapperEl[0].style.transform = this.nextTransForm;
this.$refs.mySwiper.$swiper.$wrapperEl[0].style.transitionDuration = this.nextTime + "ms";
this.$refs.mySwiper.$swiper.autoplay.start();
}
}, },
methods: {},
components: { components: {
CommonBox, CommonBox,
VueSeamlessScroll, VueSeamlessScroll,

@ -4,29 +4,35 @@
<a-row type="flex" justify="space-between" style="margin-bottom: 13px;"> <a-row type="flex" justify="space-between" style="margin-bottom: 13px;">
<a-col style="width: 48.8%;height: 160px"> <a-col style="width: 48.8%;height: 160px">
<!--<img src="./images/topBigPic1.png" class="rowImg" style="width: 100%;height: 100%">--> <!--<img src="./images/topBigPic1.png" class="rowImg" style="width: 100%;height: 100%">-->
<img :src="getImgURL(imgList[0])" class="rowImg" style="width: 100%;height: 100%" @click="previewData(imgList[0])"> <!--<img :src="getImgURL(imgList[0])" class="rowImg" style="width: 100%;height: 100%" @click="previewData(imgList[0])">-->
<img-preview :imgObj="imgList[0]"/>
</a-col> </a-col>
<a-col style="width: 48.8%;height: 160px"> <a-col style="width: 48.8%;height: 160px">
<!--<img src="./images/topBigPic2.png" class="rowImg" style="width: 100%;height: 100%">--> <!--<img src="./images/topBigPic2.png" class="rowImg" style="width: 100%;height: 100%">-->
<img :src="getImgURL(imgList[1])" class="rowImg" style="width: 100%;height: 100%"> <!--<img :src="getImgURL(imgList[1])" class="rowImg" style="width: 100%;height: 100%" @click="previewData(imgList[1])">-->
<img-preview :imgObj="imgList[1]"/>
</a-col> </a-col>
</a-row> </a-row>
<a-row type="flex" justify="space-between" style="margin-bottom: 25px;"> <a-row type="flex" justify="space-between" style="margin-bottom: 25px;">
<a-col style="width: 23.1%;height: 85px"> <a-col style="width: 23.1%;height: 85px">
<!--<img src="./images/topSmallPic1.png" class="rowImg">--> <!--<img src="./images/topSmallPic1.png" class="rowImg">-->
<img :src="getImgURL(imgList[2])" class="rowImg" style="width: 100%;height: 100%"> <!--<img :src="getImgURL(imgList[2])" class="rowImg" style="width: 100%;height: 100%" @click="previewData(imgList[2])">-->
<img-preview :imgObj="imgList[2]"/>
</a-col> </a-col>
<a-col style="width: 23.1%;height: 85px"> <a-col style="width: 23.1%;height: 85px">
<!--<img src="./images/topSmallPic2.png" class="rowImg">--> <!--<img src="./images/topSmallPic2.png" class="rowImg">-->
<img :src="getImgURL(imgList[3])" class="rowImg" style="width: 100%;height: 100%"> <!--<img :src="getImgURL(imgList[3])" class="rowImg" style="width: 100%;height: 100%" @click="previewData(imgList[3])">-->
<img-preview :imgObj="imgList[3]"/>
</a-col> </a-col>
<a-col style="width: 23.1%;height: 85px"> <a-col style="width: 23.1%;height: 85px">
<!--<img src="./images/topSmallPic3.png" class="rowImg">--> <!--<img src="./images/topSmallPic3.png" class="rowImg">-->
<img :src="getImgURL(imgList[4])" class="rowImg" style="width: 100%;height: 100%"> <!--<img :src="getImgURL(imgList[4])" class="rowImg" style="width: 100%;height: 100%" @click="previewData(imgList[4])">-->
<img-preview :imgObj="imgList[4]"/>
</a-col> </a-col>
<a-col style="width: 23.1%;height: 85px"> <a-col style="width: 23.1%;height: 85px">
<!--<img src="./images/topSmallPic4.png" class="rowImg">--> <!--<img src="./images/topSmallPic4.png" class="rowImg">-->
<img :src="getImgURL(imgList[5])" class="rowImg" style="width: 100%;height: 100%"> <!--<img :src="getImgURL(imgList[5])" class="rowImg" style="width: 100%;height: 100%" @click="previewData(imgList[5])">-->
<img-preview :imgObj="imgList[5]"/>
</a-col> </a-col>
</a-row> </a-row>
<div class="brandList"> <div class="brandList">
@ -44,6 +50,7 @@
</vue-scroll> </vue-scroll>
</div> </div>
</a-spin> </a-spin>
<preview-box ref="previewBox" />
</CommonBox> </CommonBox>
</template> </template>
<script> <script>
@ -55,6 +62,7 @@
import axios from 'axios'; import axios from 'axios';
const querystring = require('querystring'); const querystring = require('querystring');
import Upload from '../../../../components/common/uploader/Upload.vue'; import Upload from '../../../../components/common/uploader/Upload.vue';
import ImgPreview from '../../common/imgPreview.vue';
import PreviewBox from '../../../../components/common/preview/PreviewBox'; import PreviewBox from '../../../../components/common/preview/PreviewBox';
import PreviewManager from '../../../../components/common/preview/previewManager'; import PreviewManager from '../../../../components/common/preview/previewManager';
export default{ export default{
@ -196,7 +204,9 @@
AIcon: Icon, AIcon: Icon,
AModal: Modal, AModal: Modal,
ASpin:Spin, ASpin:Spin,
Upload Upload,
PreviewBox,
ImgPreview
}, },
} }
</script> </script>

@ -80,6 +80,7 @@
.party-center-team-help-style { .party-center-team-help-style {
width: 605px !important; width: 605px !important;
height: 400px !important; height: 400px !important;
.teamBoost { .teamBoost {
width: 100%; width: 100%;
height: 100%; height: 100%;

Loading…
Cancel
Save