123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- <!-- 委员会公文列表 -->
- <template>
- <div class="autoBox box1" style="position: relative; background: #f5f5f5">
- <div class="center" style="display: flex; margin-top: -20px">
- <div class="left">
- <div class="centerLeft1">
- <div class="top">
- <div class="top1"></div>
- <div class="top2"></div>
- <div class="allApplication">
- <span>{{ $t("common.document") }}</span>
- </div>
- <div @click="back" class="more mouse">
- <span>{{ "<" }}{{ $t("common.return") }}</span>
- </div>
- </div>
- <div class="tab">
- <div class="leftTitle">
- <span style="font-size: 14px; font-weight: 700"
- >{{ $t("common.name") }}:</span
- >
- </div>
- <div class="input">
- <el-input
- style="width: 261px; margin-left: 8px; margin-top: 6px"
- v-model="search"
- :placeholder="$t('common.pleaseInput')"
- >
- <!--<i slot="prefix" class="el-input__icon el-icon-search"></i>-->
- </el-input>
- </div>
- <div class="time" style="margin-left: 40px">
- <span
- style="font-size: 14px; font-weight: 700; margin-right: 10px"
- >{{ $t("common.time") }}:</span
- >
- <el-date-picker
- v-model="value1"
- type="daterange"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- :range-separator="$t('common.to')"
- :start-placeholder="$t('common.startTime')"
- :end-placeholder="$t('common.endTime')"
- >
- </el-date-picker>
- </div>
- <div
- class="noticeButton"
- style="margin-left: 20px; margin-top: 5px"
- >
- <el-button
- @click="searchTitle"
- style="width: 90px"
- type="primary"
- >{{ $t("common.search") }}</el-button
- >
- <el-button @click="reset" style="width: 90px">{{ $t("common.reset") }}</el-button>
- </div>
- </div>
- <div v-if="showNav" class="nav">
- <div
- style="padding: 5px 0 0 0"
- class="cursor"
- v-show="islogin && titleIndex == 0"
- >
- <div style="width: 100%">
- <div
- style="
- color: #333;
- font-size: 16px;
- margin-bottom: 10px;
- line-height: 29px;
- "
- >
- <ul>
- <li
- @click="officialDocumentDetail(item)"
- v-for="(item, index) in documentList"
- :key="index"
- class="content"
- >
- <el-card>
- <div class="list">
- <span class="title">{{ item.title }}</span>
- <p class="center">{{ item.content }}</p>
- <span>{{item.releasePeopleName}}</span>
- <span style="color: rgba(0, 0, 0, 0.65);padding-left: 20px;">
- {{ item.releaseTime }}
- </span>
- </div>
- </el-card>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div v-else style="margin-left: 43%; margin-top: 15%" class="nav">
- <div>
- <el-empty :description="$t('common.noData')"></el-empty>
- </div>
- </div>
- <!-- 分页 -->
- <div class="pag">
- <el-pagination
- type="index"
- background
- layout="prev, pager, next"
- :page-size="3"
- :total="total - 0"
- @current-change="handleCurrentChange"
- ></el-pagination>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { getNotificationList } from "@/api/committee/committeeWorkSpace";
- import Screen from "@/components/screen";
- export default {
- name: "CommitteeOfficialDocumentList",
- props: ["isDistinguish"],
- components: {
- Screen,
- },
- data() {
- return {
- value1: "",
- titleIndex: 0,
- islogin: true,
- search: "",
- screen1s: {
- value: "common.type",
- item: [],
- },
- screen1def: null,
- screen2Item: null,
- documentList: [],
- total: "",
- pageNo: "",
- showNav: null,
- startTime: "",
- endTime: "",
- };
- },
- watch: {
- value1: {
- handler: function () {
- this.startTime = this.value1[0];
- this.endTime = this.value1[1];
- },
- deep: true,
- },
- },
- mounted() {
- window.scrollTo(0, 0);
- this.initData();
- },
- destroyed() {},
- methods: {
- initData() {
- this.accessToDocumentsList();
- },
- // 获取公文列表
- accessToDocumentsList() {
- var params = "1";
- var query = this.pageNo ? this.pageNo : "1";
- var queryConditions = this.search ? this.search : "";
- // var start = this.startTime?this.startTime:""
- // var end = this.endTime?this.endTime:""
- getNotificationList(params, query, queryConditions).then((res) => {
- var data = res.data;
- if (JSON.stringify(data) !== "{}") {
- this.documentList = res.data.nrcCommitteeDocumentAnnouncements;
- this.total = res.data.page.totalCount;
- this.showNav = true;
- } else {
- this.showNav = false;
- }
- });
- },
- handleCurrentChange(val) {
- this.pageNo = val;
- this.accessToDocumentsList();
- },
- // 公文详情
- officialDocumentDetail(item) {
- var params = {
- name: "noticeDetail",
- type: false,
- category: "1",
- id: item.id,
- };
- this.$emit("applicationType", params);
- },
- // 查询
- searchTitle() {
- this.accessToDocumentsList();
- console.log(this.value1);
- },
- // 清空
- reset() {
- this.search = "";
- this.value1 = "";
- this.accessToDocumentsList();
- },
- back() {
- var params = {
- name: "workspace",
- type: false,
- };
- this.$emit("applicationType", params);
- },
- screenBack() {},
- changeTitle(i) {
- this.titleIndex = i;
- },
- },
- };
- </script>
- <style scoped>
- .mouse {
- cursor: pointer;
- }
- .newsTitle {
- display: inline-block;
- /* width: 46%; */
- width: 100px;
- padding: 0 5px;
- height: 40px;
- text-align: center;
- line-height: 40px;
- border-radius: 5px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .title1 {
- background: #286fcf;
- color: #fff;
- }
- .title2 {
- background: #e9eef2;
- color: #286fcf;
- }
- .box1 {
- padding: 0 0 20px 0;
- position: absolute;
- }
- .center {
- display: flex;
- }
- .topImg img {
- display: inline-block;
- width: 1200px;
- height: 324px;
- }
- .centerLeft1 {
- height: 900px;
- width: 1200px;
- border-radius: 0px;
- background: #fff;
- }
- .centerLeft1 .tab {
- position: absolute;
- left: 57px;
- top: 79px;
- display: flex;
- align-items: center;
- }
- .centerLeft1 .nav {
- position: absolute;
- top: 139px;
- left: 19px;
- }
- .nav .content {
- width: 1160px;
- /* height: 187px; */
- margin: 30px 0;
- }
- .list .title {
- display: inline-block;
- width: 804px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-family: "PingFang SC";
- font-style: normal;
- font-weight: 700;
- font-size: 20px;
- line-height: 22px;
- align-items: center;
- color: rgba(0, 0, 0, 0.85);
- font-feature-settings: "tnum" on, "lnum" on;
- }
- .list .center {
- font-weight: 400;
- color: rgba(0, 0, 0, 0.85);
- font-size: 14px;
- text-indent: 2em;
- width: 1115px;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .left {
- position: relative;
- }
- .top .top1 {
- position: absolute;
- width: 5.5px;
- height: 10.5px;
- left: 20px;
- top: 35px;
- background: #376ac7;
- z-index: 1;
- }
- .top .top2 {
- position: absolute;
- width: 5.5px;
- height: 15px;
- left: 20px;
- top: 35px;
- background: #83bd50;
- }
- .top .allApplication {
- position: absolute;
- height: 22px;
- left: 34px;
- top: 31px;
- }
- .top .allApplication span {
- font-family: "PingFang SC";
- font-style: normal;
- font-weight: 600;
- font-size: 16px;
- line-height: 22px;
- color: #375586;
- }
- .top .notice {
- position: absolute;
- height: 22px;
- left: 160px;
- top: 32px;
- }
- .top .notice span {
- font-family: "PingFang SC";
- font-style: normal;
- font-weight: 600;
- font-size: 16px;
- line-height: 22px;
- color: rgba(10, 10, 10, 0.85);
- }
- .top .more {
- position: absolute;
- height: 16px;
- right: 21px;
- top: 31px;
- }
- .top .more span {
- font-family: "Roboto";
- font-style: normal;
- font-weight: 500;
- font-size: 14px;
- line-height: 16px;
- color: #4790f7;
- }
- .pag {
- position: absolute;
- bottom: 0;
- right: 45%;
- }
- </style>
|