NoticeAnnouncement.vue 5.5 KB
Newer Older
1
<template>
潘际乾 committed
2 3
  <CellWrapper title="通知公告" :cellContentHeight="cellContentHeight">
    <template v-slot:header>
潘际乾 committed
4
      <span class="el-icon-refresh" title="刷新"></span>
5
      <span class="el-icon-more" title="操作" @click="opening"></span>
潘际乾 committed
6
    </template>
潘际乾 committed
7

潘际乾 committed
8
    <div class="notice-container">
潘际乾 committed
9 10 11 12 13 14 15 16 17 18 19 20 21
      <el-scrollbar style="height: 100%">
        <div style="padding-right: 10px">
          <div class="notice-item" v-for="(item, idx) in testData" :key="idx">
            <div class="notice-title" :class="{ active: idx === 0 }">
              <a :href="item.url" target="_blank" rel="noopener noreferrer">
                <!-- <router-link :to="'/Display/'+item.tid"> -->
                {{ item.title }}
                <!-- </router-link> -->
              </a>
            </div>
            <div class="notice-date">
              {{ item.date }}
            </div>
潘际乾 committed
22
          </div>
23
        </div>
潘际乾 committed
24 25 26
      </el-scrollbar>
    </div>
  </CellWrapper>
27 28 29
</template>

<script>
潘际乾 committed
30
import CellWrapper from "../common/CellWrapper.vue";
31 32 33

export default {
  name: "NoticeAnnouncement",
潘际乾 committed
34
  props: ["cellContentHeight"],
潘际乾 committed
35
  components: { CellWrapper },
36 37
  data() {
    return {
潘际乾 committed
38 39
      noticeList: [],
      testData: [
40
        {
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
          title: "中国国际货物和服务贸易数据(BPM6,2015年以后)",
          url: "https://www.safe.gov.cn/safe/2018/0427/8886.html",
          date: "2021-12-30",
        },
        {
          title: "中国银行业对外金融资产和负债(2021年9月末)",
          url: "https://www.safe.gov.cn/safe/2021/1230/20403.html",
          date: "2021-12-30",
        },
        {
          title: "银行代客涉外收付款数据",
          url: "https://www.safe.gov.cn/safe/2018/0419/8806.html",
          date: "2021-12-24",
        },
        {
          title: "银行结售汇数据(按交易项目)——2021年",
          url: "https://www.safe.gov.cn/safe/2021/0220/18308.html",
          date: "2021-12-24",
        },
        {
          title: "中国人民银行 国家外汇管理局关于支持新型离岸国际贸易发展...",
          url: "https://www.safe.gov.cn/safe/2021/1224/20380.html",
          date: "2021-12-24",
        },
        {
          title: "官方储备资产(2021年)",
          url: "https://www.safe.gov.cn/safe/2021/0202/18180.html",
          date: "2021-12-07",
        },
        {
          title: "国家外汇管理局关于印发《外汇市场交易行为规范指引》的通知...",
          url: "https://www.safe.gov.cn/safe/2021/1203/20296.html",
          date: "2021-12-03",
        },
        {
          title: "国家外汇管理局关于印发《对外金融资产负债及交易统计制度》...",
          url: "https://www.safe.gov.cn/safe/2021/1203/20291.html",
78 79
          date: "2021-12-03",
        },
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
        {
          title: "国家外汇管理局关于印发《贸易信贷统计调查制度》的通知",
          url: "https://www.safe.gov.cn/safe/2021/1130/20271.html",
          date: "2021-11-30",
        },
        {
          title: "国家外汇管理局综合司关于开展第二批非金融企业对外金融资产...",
          url: "https://www.safe.gov.cn/safe/2021/1117/20208.html",
          date: "2021-11-17",
        },
        {
          title: "外汇管理行政罚款裁量办法",
          url: "https://www.safe.gov.cn/safe/2021/1105/20154.html",
          date: "2021-11-05",
        },
        {
          title: "国家外汇管理局综合司关于印发《银行外汇业务合规与审慎经营...",
          url: "https://www.safe.gov.cn2021-10-14",
          date: "2021-10-14",
        },
        {
          title: "现行有效外汇管理主要法规目录(截至2021年6月30日)...",
          url: "https://www.safe.gov.cn/safe/2021/0720/19437.html",
          date: "2021-07-20",
        },
潘际乾 committed
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
        {
          title: "现行有效外汇管理主要法规目录(截至2021年6月30日)...",
          url: "https://www.safe.gov.cn/safe/2021/0720/19437.html",
          date: "2021-07-20",
        },
        {
          title: "现行有效外汇管理主要法规目录(截至2021年6月30日)...",
          url: "https://www.safe.gov.cn/safe/2021/0720/19437.html",
          date: "2021-07-20",
        },
        {
          title: "现行有效外汇管理主要法规目录(截至2021年6月30日)...",
          url: "https://www.safe.gov.cn/safe/2021/0720/19437.html",
          date: "2021-07-20",
        },
120 121 122
      ],
    };
  },
潘际乾 committed
123 124 125 126 127 128 129 130 131
  mounted() {
    this.$nextTick(() => {
      this.loadNoticeData();
    });
  },
  methods: {
    loadNoticeData() {
      // 查询加载数据
      this.noticeList = this.testData;
liu committed
132
    },
潘际乾 committed
133 134 135
    opening() {
      window.location.href = "#/business/notice";
    },
潘际乾 committed
136
  },
137 138 139 140
};
</script>

<style scoped>
潘际乾 committed
141 142
.notice-container {
  height: 100%;
143
  margin: 0 20px;
潘际乾 committed
144
  box-sizing: border-box;
145
}
潘际乾 committed
146
.notice-item {
147 148 149 150 151 152
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 15px;
}
潘际乾 committed
153
.notice-item .notice-title {
154 155 156
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
潘际乾 committed
157
  flex: 1;
158
}
潘际乾 committed
159
.notice-item .notice-title a {
160 161 162
  color: #4e4e4e;
  text-decoration: none;
}
潘际乾 committed
163
.notice-item .notice-title::before {
164 165 166 167
  content: "";
  display: inline-block;
  width: 8px;
}
潘际乾 committed
168
.notice-item .notice-title.active::before {
169 170 171 172 173 174 175 176 177 178
  content: "";
  background: rgb(255, 0, 0);
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
  margin-right: 2px;
  margin-bottom: 2px;
}
潘际乾 committed
179
.notice-item .notice-date {
180 181 182 183
  /* width: 20%; */
  margin-right: 6px;
}
</style>