保安服务企业管理项目备份
liuyg
2021-08-19 cb81eef3d9aabe280e506fc7971c539542cf13f7
src/views/desk/notice.vue
@@ -55,6 +55,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';
export default {
  data() {
@@ -223,8 +224,13 @@
      });
      return ids.join(",");
    },
    ...mapState({
        userInfo: state => state.user.userInfo
    })
  },
  mounted() {},
  mounted() {
    this.getDeptInfo(this.userInfo.dept_id);
  },
  methods: {
    //获取当前用户部门信息
    getDeptInfo(deptId) {
@@ -254,7 +260,11 @@
      });
    },
    rowSave(row, done, loading) {
      row.category = 1;
      if (this.deptCategory) {
        row.category = 1;
      }else{
        row.category = 2;
      }
      row.deptId = this.deptId;
      add(row).then(
        () => {
@@ -384,7 +394,7 @@
        const { releaseTimeRange } = this.query;
        // if (that.deptCategory) {
        params["deptId"] = this.deptId;
        // params["deptId"] = this.deptId;
        params["jurisdiction"] = this.jurisdiction;
        // }
        let values = {