Administrator
2021-11-14 d221c4c7a0b06e73ce89f8d65207a3ec69a70ae5
权限修改
3 files modified
53 ■■■■ changed files
src/views/accreditationRecords/accreditationRecords.vue 15 ●●●●● patch | view | raw | blame | history
src/views/accreditationRecords/accreditationRecordsPaper.vue 24 ●●●●● patch | view | raw | blame | history
src/views/trainExam/modifiedGrades.vue 14 ●●●● patch | view | raw | blame | history
src/views/accreditationRecords/accreditationRecords.vue
@@ -38,7 +38,7 @@
          size="small"
          plain
          icon="el-icon-download"
          v-if="permission.accreditationRecords_export"
          v-if="permission.accreditationRecords_export || check"
          @click="handleExport"
          >保安员证信息导出
        </el-button>
@@ -91,6 +91,7 @@
export default {
  data() {
    return {
      check:false,
      form: {},
      query: {},
      questionBankSearch: {},
@@ -317,6 +318,18 @@
  mounted() {
    this.getDeptInfo(this.userInfo.dept_id);
  },
  created(){
      if (this.userInfo.role_name == "公安管理员") {
      //判断是否为市局管理员
      if(this.userInfo.jurisdiction=="1372091709474910209"){
          this.check = true;
          // this.vaildData(this.permission.accreditationRecords_paper_delete, false);
      }else{
        this.check = false;
        // this.vaildData(null, false);
      }
    }
  },
  methods: {
    //获取当前用户部门信息
    getDeptInfo(deptId) {
src/views/accreditationRecords/accreditationRecordsPaper.vue
@@ -24,11 +24,11 @@
    >
      <template slot="menuLeft">
        <el-button
          style="display: none"
          style="display:none"
          type="danger"
          size="small"
          icon="el-icon-delete"
          v-if="permission.notice_delete"
          v-if="permission.accreditationRecords_paper_delete || check"
          plain
          @click="handleDelete"
          >删 除
@@ -46,7 +46,7 @@
              type="primary"
              size="small"
              plain
              v-if="permission.accreditationRecords_batch_audit"
              v-if="permission.accreditationRecords_batch_audit  || check"
              icon="el-icon-collection-tag"
              @click="handleSecurityAudit"
              >批量审批
@@ -79,7 +79,7 @@
        <el-button
          :type="type"
          :size="size"
          v-if="permission.accreditationRecords_audit"
          v-if="permission.accreditationRecords_audit || check"
          icon="el-icon-folder-checked"
          @click="handleAudit(row)"
          >审核
@@ -197,6 +197,7 @@
export default {
  data() {
    return {
      check:false,
      certificateYear: null,
      certificateMonth: null,
      certificateFlag: false,
@@ -576,10 +577,7 @@
    permissionList() {
      return {
        addBtn: this.vaildData(null, false),
        viewBtn: this.vaildData(
          this.permission.accreditationRecords_paper_view,
          false
        ),
        viewBtn: this.vaildData(this.permission.accreditationRecords_paper_view, false),
        delBtn: this.vaildData(null, false),
        editBtn: this.vaildData(null, false),
      };
@@ -606,6 +604,16 @@
      this.questionBankSearch["userType"] = 7;
      this.questionBankSearch["auditStatus"] = 2;
    }
    if (this.userInfo.role_name == "公安管理员") {
      //判断是否为市局管理员
      if(this.userInfo.jurisdiction=="1372091709474910209"){
          this.check = true;
          // this.vaildData(this.permission.accreditationRecords_paper_delete, false);
      }else{
        this.check = false;
        // this.vaildData(null, false);
      }
    }
  },
  methods: {
    //获取当前用户部门信息
src/views/trainExam/modifiedGrades.vue
@@ -52,7 +52,7 @@
                            <el-button :type="type"
                                       :size="size"
                                       icon="el-icon-folder-checked"
                                       v-if="permission.score_audit_check"
                                       v-if="permission.score_audit_check || check"
                                       @click="handleAudit(row)">审核
                            </el-button>
                        </template>
@@ -152,6 +152,7 @@
                editBtn: true,
                addBtn: false,
                selection: false,
                check:false,
                // 导出按钮
                // excelBtn: true,
                // excelBtnText: "成绩导出",
@@ -468,7 +469,16 @@
        };
    },
    created () { },
    created(){
      if (this.userInfo.role_name == "公安管理员") {
        //判断是否为市局管理员
        if(this.userInfo.jurisdiction=="1372091709474910209"){
            this.check = true;
        }else{
            this.check = false;
        }
      }
    },
    mounted () { },
    computed: {
        ...mapGetters(["userInfo", "permission"]),