src/views/desk/notice.vue
@@ -1,6 +1,13 @@
<template>
  <basic-container class="notice">
  <basic-container
    :class="[
      'notice',
      $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
    ]"
  >
    <avue-crud
      class="tablesss"
      :option="option"
      :table-loading="loading"
      :data="data"
@@ -37,11 +44,11 @@
        <el-tag>{{ row.categoryName }}</el-tag>
      </template>
      <template slot-scope="{ type, size, row }" slot="menu">
        <el-button
        :size="size"
        :type="type"
        @click="handleUploadPage(row)"
        v-if="permission.notice_upload"
        <el-button
          :size="size"
          :type="type"
          @click="handleUploadPage(row)"
          v-if="permission.notice_upload"
          >附件上传
        </el-button>
      </template>
@@ -70,6 +77,7 @@
        pageSize: 10,
        currentPage: 1,
        total: 0,
        ...this.$store.state.control.changePageSize,
      },
      selectionList: [],
      option: {
@@ -88,9 +96,10 @@
        excelBtn: false,
        menuWidth: 380,
        dialogClickModal: false,
        addBtnText:"发布",
        addTitle:"发布",
        saveBtnText:'发布',
        addBtnText: "发布",
        addTitle: "发布",
        saveBtnText: "发布",
        ...this.$store.state.control.clearOtherBut,
        column: [
          {
            label: "通知标题",
@@ -182,6 +191,7 @@
                trigger: "click",
              },
            ],
            width: 155,
          },
          {
            label: "通知内容",
@@ -221,7 +231,9 @@
      return ids.join(",");
    },
  },
  mounted() {},
  mounted() {
    this.$store.commit("setWindowSizeHeightAdd");
  },
  methods: {
    //跳转到附近列表页面
    handleUploadPage(row) {
@@ -229,14 +241,14 @@
        path: `/resource/uploadNotice`,
        query: {
          deptId: row.deptId,
          noticeId:row.id,
          noticeId: row.id,
        },
      });
    },
    rowSave(row, done, loading) {
      row.category = 2;
      row.deptId = this.deptId;
      row['type'] = 1;
      row["type"] = 1;
      add(row).then(
        () => {
          this.onLoad(this.page);
@@ -375,6 +387,7 @@
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        this.$store.commit("setWindowSizeHeightAdd");
        this.loading = false;
        this.selectionClear();
      });
@@ -383,5 +396,4 @@
};
</script>
<style>
</style>
<style></style>