|
@@ -7,12 +7,22 @@
|
|
|
<div class="main-container h380">
|
|
<div class="main-container h380">
|
|
|
<template v-if="noticeList.length > 0">
|
|
<template v-if="noticeList.length > 0">
|
|
|
<div class="img-txt" v-if="noticeList.length > 0" @click="toSee(noticeList[0])">
|
|
<div class="img-txt" v-if="noticeList.length > 0" @click="toSee(noticeList[0])">
|
|
|
- <el-image class="img" :src="noticeList[0].images"></el-image>
|
|
|
|
|
|
|
+ <template v-if="noticeList[0].images != null">
|
|
|
|
|
+ <el-image class="img" :src="noticeList[0].images"></el-image>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else>
|
|
|
|
|
+ <el-image class="img" :src="defaultImg" ></el-image>
|
|
|
|
|
+ </template>
|
|
|
<div class="txt">{{ noticeList[0].announcementName }}</div>
|
|
<div class="txt">{{ noticeList[0].announcementName }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="list" v-for="item in noticeDataList" :key="item.id">
|
|
<div class="list" v-for="item in noticeDataList" :key="item.id">
|
|
|
<div class="left">
|
|
<div class="left">
|
|
|
- <el-image :src="item.images" class="img"></el-image>
|
|
|
|
|
|
|
+ <template v-if="item.images != null">
|
|
|
|
|
+ <el-image :src="item.images" class="img"></el-image>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else>
|
|
|
|
|
+ <el-image :src="defaultSmallImg" class="img"></el-image>
|
|
|
|
|
+ </template>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="right">
|
|
<div class="right">
|
|
|
<div class="title">{{ item.announcementName }}</div>
|
|
<div class="title">{{ item.announcementName }}</div>
|
|
@@ -118,6 +128,8 @@ import moment from 'moment'
|
|
|
import BasePanelLeft from '@/components/base-panel/base-panel-left'
|
|
import BasePanelLeft from '@/components/base-panel/base-panel-left'
|
|
|
import BaseMain from '@/components/base-main/base-main.vue'
|
|
import BaseMain from '@/components/base-main/base-main.vue'
|
|
|
import {getAnnouncementList} from '@/api/announcementApi'
|
|
import {getAnnouncementList} from '@/api/announcementApi'
|
|
|
|
|
+import ImgUrl from '@/assets/image/comprehensive/bg1.png'
|
|
|
|
|
+import ImgUrl2 from '@/assets/image/comprehensive/bg2.png'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
BaseMain,
|
|
BaseMain,
|
|
@@ -127,6 +139,8 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
noticeList: [],
|
|
noticeList: [],
|
|
|
noticeDataList: [],
|
|
noticeDataList: [],
|
|
|
|
|
+ defaultImg:ImgUrl,
|
|
|
|
|
+ defaultSmallImg:ImgUrl2,
|
|
|
tableInfo: [
|
|
tableInfo: [
|
|
|
{
|
|
{
|
|
|
id: 1,
|
|
id: 1,
|