|
@@ -0,0 +1,208 @@
|
|
|
+<template>
|
|
|
+ <el-row class="news animate__animated animate__backInLeft">
|
|
|
+ <el-col :span="24" class="top">
|
|
|
+ <dividerIndex :info="{ title: '集团新闻', enTitle: 'GROUP NEWS' }" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="bottom">
|
|
|
+ <el-col :span="8" class="left">
|
|
|
+ <el-image class="images" :src="leftUrl"></el-image>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="16" class="right">
|
|
|
+ <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
+ <el-tab-pane label="党建天地" name="first">
|
|
|
+ <el-row class="info animate__animated animate__backInLeft">
|
|
|
+ <el-col :span="24" class="list" v-for="item in list" :key="item">
|
|
|
+ <el-col :span="8" class="imgs">
|
|
|
+ <el-image class="images" :src="item.url"></el-image>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="18" class="mess">
|
|
|
+ <el-col :span="24" class="title textOver">{{ item.title
|
|
|
+ }}</el-col>
|
|
|
+ <el-col :span="24" class="brief">{{ item.brief }}</el-col>
|
|
|
+ <el-col :span="24" class="date">{{ item.date }}</el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="政策法规" name="second">
|
|
|
+ <el-row class="info animate__animated animate__backInRight">
|
|
|
+ <el-col :span="24" class="list" v-for="item in list" :key="item">
|
|
|
+ <el-col :span="8" class="imgs">
|
|
|
+ <el-image class="images" :src="item.url"></el-image>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="18" class="mess">
|
|
|
+ <el-col :span="24" class="title textOver">{{ item.title
|
|
|
+ }}</el-col>
|
|
|
+ <el-col :span="24" class="brief">{{ item.brief }}</el-col>
|
|
|
+ <el-col :span="24" class="date">{{ item.date }}</el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="招标采购" name="third">
|
|
|
+ <el-row class="info animate__animated animate__backInLeft">
|
|
|
+ <el-col :span="24" class="list" v-for="item in list" :key="item">
|
|
|
+ <el-col :span="8" class="imgs">
|
|
|
+ <el-image class="images" :src="item.url"></el-image>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="18" class="mess">
|
|
|
+ <el-col :span="24" class="title textOver">{{ item.title
|
|
|
+ }}</el-col>
|
|
|
+ <el-col :span="24" class="brief">{{ item.brief }}</el-col>
|
|
|
+ <el-col :span="24" class="date">{{ item.date }}</el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="集团要闻" name="fourth">
|
|
|
+ <el-row class="info animate__animated animate__backInRight">
|
|
|
+ <el-col :span="24" class="list" v-for="item in list" :key="item">
|
|
|
+ <el-col :span="8" class="imgs">
|
|
|
+ <el-image class="images" :src="item.url"></el-image>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="18" class="mess">
|
|
|
+ <el-col :span="24" class="title textOver">{{ item.title
|
|
|
+ }}</el-col>
|
|
|
+ <el-col :span="24" class="brief">{{ item.brief }}</el-col>
|
|
|
+ <el-col :span="24" class="date">{{ item.date }}</el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="ts">
|
|
|
+defineOptions({ name: 'newsIndex' })
|
|
|
+// 基础
|
|
|
+import { ref } from 'vue';
|
|
|
+import type { TabsPaneContext } from 'element-plus'
|
|
|
+
|
|
|
+import dividerIndex from '../../components/windows/dividerIndex.vue'
|
|
|
+
|
|
|
+const leftUrl = ref('/src/assets/fendoubg1.png')
|
|
|
+
|
|
|
+const activeName = ref('first')
|
|
|
+
|
|
|
+const list = ref([
|
|
|
+ {
|
|
|
+ title: '集团召开2021年度安全生产委员会第一次全体(扩大)视频会议集团召开2021年度安全生产委员会第一次全体(扩大)视频会议',
|
|
|
+ url: '/src/assets/fendoubg1.png',
|
|
|
+ brief: '1月29日,集团召开2021年度安全生产委员会第一次全体(扩大)视频会议,会议由集团总经理王爽主持。会上,集团副总经理于懿通1月29日,集团召开2021年度安全生产委员会第一次全体(扩大)视频会议,会议由集团总经理王爽主持。会上,集团副总经理于懿通',
|
|
|
+ date: '2024-12-22'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '集团召开2021年度安全生产委员会第一次全体(扩大)视频会议',
|
|
|
+ url: '/src/assets/fendoubg1.png',
|
|
|
+ brief: '1月29日,集团召开2021年度安全生产委员会第一次全体(扩大)视频会议,会议由集团总经理王爽主持。会上,集团副总经理于懿通1月29日,集团召开2021年度安全生产委员会第一次全体(扩大)视频会议,会议由集团总经理王爽主持。会上,集团副总经理于懿通',
|
|
|
+ date: '2024-12-22'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '集团召开2021年度安全生产委员会第一次全体(扩大)视频会议',
|
|
|
+ url: '/src/assets/fendoubg1.png',
|
|
|
+ brief: '1月29日,集团召开2021年度安全生产委员会第一次全体(扩大)视频会议,会议由集团总经理王爽主持。会上,集团副总经理于懿通1月29日,集团召开2021年度安全生产委员会第一次全体(扩大)视频会议,会议由集团总经理王爽主持。会上,集团副总经理于懿通',
|
|
|
+ date: '2024-12-22'
|
|
|
+ }
|
|
|
+])
|
|
|
+
|
|
|
+/* 选项卡切换,换数据 */
|
|
|
+const handleClick = (tab: TabsPaneContext, event: Event) => {
|
|
|
+ console.log(tab, event)
|
|
|
+}
|
|
|
+
|
|
|
+</script>
|
|
|
+<style scoped lang="scss">
|
|
|
+.news {
|
|
|
+ .top {
|
|
|
+ margin: 0 0 20px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bottom {
|
|
|
+ display: flex;
|
|
|
+ gap: 10px;
|
|
|
+
|
|
|
+ .left {
|
|
|
+ height: 400px;
|
|
|
+
|
|
|
+ .images {
|
|
|
+ width: 100%;
|
|
|
+ height: 400px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .right {
|
|
|
+ max-width: 65.3%;
|
|
|
+ height: 400px;
|
|
|
+ overflow: hidden;
|
|
|
+ padding: 0 10px;
|
|
|
+ background-color: #ffffff;
|
|
|
+
|
|
|
+ .info {
|
|
|
+ .list {
|
|
|
+ display: flex;
|
|
|
+ margin: 0 0 10px 0;
|
|
|
+
|
|
|
+ .imgs {
|
|
|
+ .images {
|
|
|
+ width: 100%;
|
|
|
+ height: 106px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .mess {
|
|
|
+ max-width: 67%;
|
|
|
+ padding: 0 10px;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ font-size: 18px;
|
|
|
+ font-family: '楷体';
|
|
|
+ font-weight: 600;
|
|
|
+ margin: 0 0 5px 0;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+
|
|
|
+ .brief {
|
|
|
+ font-size: 16px;
|
|
|
+ font-family: '楷体';
|
|
|
+ color: #666666;
|
|
|
+ font-weight: 600;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ word-break: break-all;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .date {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: '楷体';
|
|
|
+ font-weight: 600;
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .list:last-child {
|
|
|
+ margin: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+::v-deep(.el-tabs__nav-wrap:after) {
|
|
|
+ background-color: transparent;
|
|
|
+}
|
|
|
+
|
|
|
+::v-deep(.el-tabs__header) {
|
|
|
+ margin: 0 0 10px 0;
|
|
|
+}
|
|
|
+</style>
|