src/views/desk/notification.vue
@@ -1,5 +1,29 @@
<template>
  <basic-container class="desk1">
  <basic-container
    :class="[
      'desk1',
      $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
    ]"
  >
    <!--
:class="[
$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
]"
:class="[
'exam-card-body',
$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
]"
:class="[
'dispatchChildoperable',
$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
]"
:class="[
'securityUnit',
$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
]"
...this.$store.state.control.clearOtherBut,
...this.$store.state.control.changePageSize,
   -->
    <avue-crud
      :option="option"
      :table-loading="loading"
@@ -37,11 +61,11 @@
        <el-tag>{{ row.categoryName }}</el-tag>
      </template>
      <template slot-scope="{ type, size, row }" slot="menu">
        <el-button
        :size="size"
        :type="type"
        v-if="permission.notice_upload"
        @click="handleUploadPage(row)"
        <el-button
          :size="size"
          :type="type"
          v-if="permission.notice_upload"
          @click="handleUploadPage(row)"
          >附件上传
        </el-button>
        <!-- <el-button
@@ -60,7 +84,7 @@
import { getListPage, remove, update, add, getNotice } from "@/api/desk/notice";
import { getDept } from "@/api/system/dept";
import { mapGetters } from "vuex";
import { mapState } from 'vuex';
import { mapState } from "vuex";
export default {
  data() {
@@ -78,6 +102,7 @@
        pageSize: 10,
        currentPage: 1,
        total: 0,
        ...this.$store.state.control.changePageSize,
      },
      selectionList: [],
      option: {
@@ -99,6 +124,7 @@
        saveBtnText: "发布",
        menuWidth: 320,
        dialogClickModal: false,
        ...this.$store.state.control.clearOtherBut,
        column: [
          {
            label: "标题",
@@ -245,8 +271,8 @@
      return ids.join(",");
    },
    ...mapState({
        userInfo: state => state.user.userInfo
    })
      userInfo: (state) => state.user.userInfo,
    }),
  },
  mounted() {
    this.getDeptInfo(this.userInfo.dept_id);
@@ -260,7 +286,6 @@
        deptCategory == 1
          ? (that.deptCategory = true)
          : (that.deptCategory = false);
      });
    },
    //跳转到附件列表页面
@@ -274,7 +299,7 @@
      });
    },
    rowSave(row, done, loading) {
      row['type'] = 3;
      row["type"] = 3;
      row.deptId = this.deptId;
      add(row).then(
        () => {