|
|
|
@ -2,18 +2,25 @@
|
|
|
|
|
<CommonBox title="队建风采" class="party-center-team-building-style">
|
|
|
|
|
<div class="teamBuild">
|
|
|
|
|
<div class="topPic">
|
|
|
|
|
<div class="swiperBox">
|
|
|
|
|
<img class="swiperImg" v-for="(item,i) in imgArr" :src="item.src" :key="i" alt="">
|
|
|
|
|
<!--<div class="swiperBox">-->
|
|
|
|
|
<!--<img class="swiperImg" v-for="(item,i) in imgArr" :src="item.src" :key="i" alt="">-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<div class="swiperBox" v-if="imgList.length > 3">
|
|
|
|
|
<!--<img class="swiperImg" v-for="(item,i) in imgArr" :src="item.src" :key="i">-->
|
|
|
|
|
<img-preview class="swiperImg" v-for="(item,i) in imgList" :key="'team-building-'+i" :imgObj="item" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="img-no-swiper-box" v-else>
|
|
|
|
|
<img-preview class="swiperImg" v-for="(item,i) in imgList" :key="'team-building-'+i" :imgObj="item" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="botText">
|
|
|
|
|
<vue-scroll :ops="listScroll" :style="showPage?'height:14rem':'height:14rem'"
|
|
|
|
|
class="score-list-div">
|
|
|
|
|
<a-list item-layout="horizontal" :data-source="teamBuildList">
|
|
|
|
|
<a-list item-layout="horizontal" :data-source="dataList">
|
|
|
|
|
<a-list-item slot="renderItem" slot-scope="item" class="teamListLi">
|
|
|
|
|
<p class="contentText">
|
|
|
|
|
<span style="width: 7px;height: 7px;margin-right:5px;border-radius: 50%;background: #fff;margin-left: -5px;display: inline-block;"></span>
|
|
|
|
|
{{item.content}}</p>
|
|
|
|
|
{{item.info_title}}</p>
|
|
|
|
|
</a-list-item>
|
|
|
|
|
</a-list>
|
|
|
|
|
</vue-scroll>
|
|
|
|
@ -27,9 +34,12 @@
|
|
|
|
|
* */
|
|
|
|
|
import CommonBox from '../secondPages/commonBox.vue';
|
|
|
|
|
import {List, Icon, Avatar, Row, Col} from 'ant-design-vue';
|
|
|
|
|
import ImgPreview from '../../common/imgPreview.vue';
|
|
|
|
|
export default{
|
|
|
|
|
data(){
|
|
|
|
|
return {
|
|
|
|
|
dataList:[],
|
|
|
|
|
imgList:[],
|
|
|
|
|
//轮播图图片
|
|
|
|
|
imgArr: [
|
|
|
|
|
{src: require("./images/listPic1.png")},
|
|
|
|
@ -59,6 +69,9 @@
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
|
this.getDataexReport();
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
CommonBox,
|
|
|
|
|
ARow: Row,
|
|
|
|
@ -66,8 +79,48 @@
|
|
|
|
|
AList: List,
|
|
|
|
|
AListItem: List.Item,
|
|
|
|
|
AAvatar: Avatar,
|
|
|
|
|
ImgPreview
|
|
|
|
|
},
|
|
|
|
|
methods: {}
|
|
|
|
|
methods: {
|
|
|
|
|
getDataexReport: function () {
|
|
|
|
|
let param = {
|
|
|
|
|
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
|
|
|
|
|
"query": {
|
|
|
|
|
"query_id": "query_dangjian_duijian",
|
|
|
|
|
"query_param": [
|
|
|
|
|
this.BaseConfig.person_info_my.bureau_id + ""
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"query_cache": 0,
|
|
|
|
|
"query_count": [],
|
|
|
|
|
"query_format": "json",
|
|
|
|
|
"query_group": []
|
|
|
|
|
}
|
|
|
|
|
this.spinning = true;
|
|
|
|
|
this.DataexReportInterface.callInterface([{
|
|
|
|
|
params: param,
|
|
|
|
|
method: "post",
|
|
|
|
|
}], (result) => {
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
if (result[0].data.success) {
|
|
|
|
|
this.dataList = [];
|
|
|
|
|
this.imgList = [];
|
|
|
|
|
let dataList = JSON.parse(result[0].data.result);
|
|
|
|
|
console.log("队建数据:",dataList);
|
|
|
|
|
this.dataList.push(...dataList);
|
|
|
|
|
for (let i = 0, len = dataList.length; i < len; i++) {
|
|
|
|
|
let item = dataList[i];
|
|
|
|
|
let coverJson = JSON.parse(item.cover_json);
|
|
|
|
|
if (coverJson && coverJson.length > 0) {
|
|
|
|
|
for (let j = 0, jLen = coverJson.length; j < jLen; j++) {
|
|
|
|
|
this.imgList.push(coverJson[j])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped lang="scss" type="text/scss">
|
|
|
|
@ -96,11 +149,21 @@
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
animation: mySwiper 6s ease infinite;
|
|
|
|
|
.swiperImg {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 30%;
|
|
|
|
|
margin-right: 38px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.swiperImg {
|
|
|
|
|
.img-no-swiper-box {
|
|
|
|
|
display: inherit;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 30%;
|
|
|
|
|
margin-right: 38px;
|
|
|
|
|
.swiperImg {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 30%;
|
|
|
|
|
margin-right: 38px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/*文字*/
|
|
|
|
|