|
@@ -1,23 +1,21 @@
|
|
|
<template>
|
|
|
<div class="app-container home">
|
|
|
-
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="12" :sm="12" :md="12" :lg="12">
|
|
|
<el-carousel height="350px" style="margin-bottom: 20px;">
|
|
|
- <el-carousel-item v-for="item in urls" :key="item">
|
|
|
- <el-image :src="item"></el-image>
|
|
|
+ <el-carousel-item v-for="item in publicizeUrls" :key="item">
|
|
|
+ <el-image :src="item" style="width: 100%; height: 100%;"></el-image>
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</el-col>
|
|
|
<el-col :xs="12" :sm="12" :md="12" :lg="12">
|
|
|
<el-carousel height="350px" style="margin-bottom: 20px;">
|
|
|
- <el-carousel-item v-for="item in urls" :key="item">
|
|
|
- <el-image :src="item"></el-image>
|
|
|
+ <el-carousel-item v-for="item in demeanorUrls" :key="item">
|
|
|
+ <el-image :src="item" style="width: 100%; height: 100%;"></el-image>
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
-
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="24" :sm="24" :md="12" :lg="8">
|
|
|
<el-card class="update-log">
|
|
@@ -69,21 +67,38 @@
|
|
|
import BrithChart from "./dashboard/BrithChart";
|
|
|
import DemeanorChart from "./dashboard/DemeanorChart";
|
|
|
import NoticeChart from "./dashboard/NoticeChart";
|
|
|
+import { listPublicizeProfiles } from "@/api/branch/publicize";
|
|
|
+import { listDemeanorProfiles } from "@/api/branch/demeanor";
|
|
|
|
|
|
export default {
|
|
|
name: "Index",
|
|
|
components: { BrithChart, NoticeChart, DemeanorChart },
|
|
|
data() {
|
|
|
return {
|
|
|
- urls: [
|
|
|
- 'https://p5.img.cctvpic.com/photoworkspace/contentimg/2023/06/08/2023060807144929248.jpg',
|
|
|
- 'https://p1.img.cctvpic.com/photoworkspace/contentimg/2023/06/08/2023060821005989847.jpg',
|
|
|
- 'https://p4.img.cctvpic.com/photoAlbum/page/performance/img/2022/6/23/1655955351125_157.jpg'
|
|
|
- ],
|
|
|
+ // 支部园地宣传图片
|
|
|
+ publicizeUrls: [],
|
|
|
+ // 支部园地风采图片
|
|
|
+ demeanorUrls: [],
|
|
|
// 版本号
|
|
|
version: "3.8.5",
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ /** 查询支部园地宣传图片 */
|
|
|
+ listPublicizeProfiles().then(response => {
|
|
|
+ let profiles = response.data;
|
|
|
+ for (let i = 0; i < profiles.length; i++) {
|
|
|
+ this.publicizeUrls.push(process.env.VUE_APP_BASE_API + profiles[i].url);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ /** 查询支部园地风采图片 */
|
|
|
+ listDemeanorProfiles().then(response => {
|
|
|
+ let profiles = response.data;
|
|
|
+ for (let i = 0; i < profiles.length; i++) {
|
|
|
+ this.demeanorUrls.push(process.env.VUE_APP_BASE_API + profiles[i].url);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
methods: {
|
|
|
}
|
|
|
};
|