From 79d9fc857559982b00b68b2d709807bdc4cd286f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 11 Apr 2022 10:58:17 +0800
Subject: [PATCH] minio 地址修改

---
 src/views/trainExam/modifiedGrades.vue | 1545 +++++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 927 insertions(+), 618 deletions(-)

diff --git a/src/views/trainExam/modifiedGrades.vue b/src/views/trainExam/modifiedGrades.vue
index a5a25de..10f5f3e 100644
--- a/src/views/trainExam/modifiedGrades.vue
+++ b/src/views/trainExam/modifiedGrades.vue
@@ -1,639 +1,948 @@
-/*
- * @Author: Morpheus
- * @Date: 2021-07-05 16:31:54
- * @Last Modified by: Morpheus
- * @Last Modified time: 2021-11-04 18:54:44
- * menu-name 成绩修改管理
- */
+/* * @Author: Morpheus * @Date: 2021-07-05 16:31:54 * @Last Modified by: liu *
+@Last Modified time: 2021-11-23 13:55:09 * menu-name 成绩修改管理 */
 <template>
-    <el-row class="morpheus-box">
-        <el-col :span="24"
-                class="recruitmentManagement">
-            <el-card>
-                <div class="exam-card-body">
-                    <avue-crud v-model="obj"
-                               class="company-box"
-                               :option="questionBankOption"
-                               :search.sync="questionBankSearch"
-                               :table-loading="questionBankLoading"
-                               :data="questionBankData"
-                               :permission="permissionList"
-                               ref="questionBankCrud"
-                               :page.sync="questionBankPage"
-                               @on-load="questionBankOnLoad"
-                               @selection-change="questionBankSelectionChange"
-                               @search-change="questionBankSearchChange"
-                               @search-reset="questionBankSearchReset"
-                               @current-change="questionBankCurrentChange"
-                               @size-change="questionBankSizeChange"
-                               @row-update="questionBankRowUpdate"
-                               @refresh-change="refreshChange">
+  <basic-container
+    :class="[
+      'exam-card-body',
+      $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : ''
+    ]"
+  >
+    <avue-crud
+      v-model="obj"
+      class="company-box tablesss"
+      :option="questionBankOption"
+      :search.sync="questionBankSearch"
+      :table-loading="questionBankLoading"
+      :data="questionBankData"
+      :permission="permissionList"
+      ref="questionBankCrud"
+      :page.sync="questionBankPage"
+      @on-load="questionBankOnLoad"
+      @selection-change="selectionChange"
+      @search-change="questionBankSearchChange"
+      @search-reset="questionBankSearchReset"
+      @current-change="questionBankCurrentChange"
+      @size-change="questionBankSizeChange"
+      @row-update="questionBankRowUpdate"
+      @refresh-change="refreshChange"
+    >
+      <template slot-scope="{ row }" slot="status">
+        <el-tag class="dtype">
+          {{
+            row.status == 2
+              ? "审核通过"
+              : row.status == 3
+              ? "审核不通过"
+              : "待审核"
+          }}
+          <i class="zc" v-if="row.status == 2"></i>
+          <i class="yj" v-if="row.status == 3"></i>
+          <i class="gz" v-if="row.status == 1"></i>
+        </el-tag>
+      </template>
+      <!-- 自定义按钮 -->
+      <template slot="menuLeft">
+        <el-button
+          type="primary"
+          size="small"
+          plain
+          v-if="checks"
+          icon="el-icon-collection-tag"
+          @click="handleBatchAudit"
+          >批量审批
+        </el-button>
+        <!--图例 components-->
+        <span>
+          <Legend :datas="datalistLIU"></Legend>
+        </span>
+      </template>
 
-                        <!-- 自定义按钮 -->
-                        <template slot="menuLeft">
-                            <!-- <el-button type="danger"
-                                       size="mini"
-                                       icon="el-icon-delete"
-                                       plain
-                                       @click="handleDelete">新增
-                            </el-button> -->
-                            <!-- <el-button type="danger"
-                                       size="mini"
-                                       icon="el-icon-delete"
-                                       plain
-                                       @click="handleDelete">删除
-                            </el-button> -->
-
-                        </template>
-
-                        <template slot-scope="{ type, size, row }"
-                                  slot="menu">
-
-                            <el-button :type="type"
-                                       :size="size"
-                                       icon="el-icon-folder-checked"
-                                       v-if="permission.score_audit_check || check"
-                                       @click="handleAudit(row)">审核
-                            </el-button>
-                        </template>
-
-                    </avue-crud>
-
-                </div>
-            </el-card>
-        </el-col>
-
-        <el-dialog title="成绩修改审核"
-                   :visible.sync="dialogFormVisible"
-                   modal-append-to-body="false"
-                   append-to-body="true"
-                   :close-on-click-model="true">
-            <avue-form ref="formAudit"
-                       v-model="Audit"
-                       :option="optionAudit"
-                       @reset-change="emptytChange"
-                       @submit="submit"></avue-form>
-        </el-dialog>
-
-    </el-row>
+      <template slot-scope="{ type, size, row }" slot="menu">
+        <el-button
+          :type="type"
+          :size="size"
+          icon="el-icon-folder-checked"
+          v-if="permission.score_audit_check || check"
+          @click="handleAudit(row)"
+          >审核
+        </el-button>
+      </template>
+    </avue-crud>
+    <el-dialog
+      title="成绩修改审核"
+      :visible.sync="dialogFormVisible"
+      modal-append-to-body="false"
+      append-to-body="true"
+      :close-on-click-model="true"
+    >
+      <avue-form
+        ref="formAudit"
+        v-model="Audit"
+        :option="optionAudit"
+        @reset-change="emptytChange"
+        @submit="submit"
+      ></avue-form>
+    </el-dialog>
+    <el-dialog
+      title="批量审批"
+      append-to-body
+      :visible.sync="dialogBatchAudit"
+      width="900px"
+      @close="closeDialog"
+    >
+      <avue-form
+        ref="formBatchAudit"
+        v-model="batchAudit"
+        :option="optionBatchAudit"
+        @reset-change="emptytChange"
+        @submit="submitBatchAudit"
+      ></avue-form>
+    </el-dialog>
+  </basic-container>
 </template>
 
 <script>
-import { getList, update,applyAudit } from "@/api/examapi/modifiedGrades";
+import {
+  getList,
+  update,
+  applyAudit,
+  batchAudit
+} from "@/api/examapi/modifiedGrades";
 import { mapGetters } from "vuex";
 import { getRoleDetail } from "@/api/system/role";
+import Legend from "@/components/liu-legend/Legend";
 export default {
-
-    data () {
-
-        return {
-            Audit: {},
-            dialogFormVisible: false,
-            optionAudit: {
-                height: "auto",
-                calcHeight: 30,
-                dialogWidth: 1000,
-                tip: false,
-                searchShow: true,
-                searchMenuSpan: 6,
-                border: true, //liu
-                index: true,
-                stripe: true,
-                viewBtn: false,
-                addBtn: false,
-                editBtn: false,
-                selection: true,
-                excelBtn: false,
-                menuWidth: 230,
-                dialogClickModal: false,
-                column: [{
-                    label: "审核状态",
-                    search: true,
-                    searchSpan: 5,
-                    span: 24,
-                    prop: "status",
-                    slot: true,
-                    editDisplay: false,
-                    addDisplay: false,
-                    type: "select",
-                    rules: [{
-                        required: true,
-                        message: "请选择审核类型",
-                        trigger: "blur"
-                    }],
-                    dicData: [{
-                        label: "待审核",
-                        value: 1,
-                    },
-                    {
-                        label: "审核通过",
-                        value: 2,
-                    },
-                    {
-                        label: "审核不通过",
-                        value: 3,
-                    }
-                    ]
-                },
-                {
-                    label: "审核明细",
-                    span: 24,
-                    type: "textarea",
-                    prop: "auditDetail"
-                }
-                ],
-            },
-            obj: {
-                name: "张三",
-            },
-            questionBankOption: {
-                // 操作栏多余按钮去除
-                delBtn: false,
-                editBtn: true,
-                addBtn: false,
-                selection: false,
-                check:false,
-                // 导出按钮
-                // excelBtn: true,
-                // excelBtnText: "成绩导出",
-                viewBtn: true,
-                // title: '成绩',
-                align: "center",
-                height: "auto",
-                calcHeight: 80,
-                tip: false,
-                searchShow: true,
-                searchMenuSpan: 4,
-                index: true,
-                indexLabel: "序号",
-                //dialogType: 'drawer',
-                dialogClickModal: false,
-                // 操作栏宽度
-                menu: true,
-                menuWidth: 295,
-                labelWidth: 120,
-                column: [
-                    {
-                        label: "考试名称",
-                        prop: "examName",
-                        search: true,
-                        searchSpan: 5,
-                        slot: true,
-                        viewDisplay: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        viewDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入试卷名称",
-                                trigger: "blur",
-                            },
-                        ],
-                        width: 210,
-                        // overHidden:true,
-                    },
-
-                    {
-                        label: "姓名",
-                        prop: "realName",
-                        search: true,
-                        searchSpan: 3,
-                        slot: true,
-                        viewDisplay: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        viewDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入试卷名称",
-                                trigger: "blur",
-                            },
-                        ],
-                        width: 80,
-                        // overHidden:true,
-                    },
-
-                    {
-                        label: "所属公司",
-                        prop: "deptName",
-                        search: true,
-                        searchSpan: 4,
-                        // dicUrl: '/api/blade-system/dept/tree',
-                        // props: {
-                        //     label: "title",
-                        //     value: "id",
-                        // },
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入所属公司",
-                                trigger: "blur",
-                            },
-                        ],
-                        width: 230,
-                    },
-
-                    {
-                        label: "身份证号",
-                        prop: "idCardNo",
-                        search: true,
-                        searchSpan: 4,
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入保安姓名",
-                                trigger: "blur",
-                            },
-                        ],
-                        width: 140,
-                    },
-
-                    {
-                        label: "原理论成绩",
-                        prop: "oldScore",
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        width: 88
-                    },
-
-                    {
-                        label: "修改后理论成绩",
-                        prop: "newScore",
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: false,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        width: 88
-                    },
-
-                    {
-                        label: "申请理由",
-                        prop: "applyCause",
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                    },
-
-                    {
-                        label: "修改申请时间",
-                        prop: "createTime",
-                        type: "date",
-                        format: "yyyy-MM-dd",
-                        valueFormat: "yyyy-MM-dd",
-                        slot: true,
-                        searchSpan: 4,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: false,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: false,
-                        // 表单编辑时是否可见
-                        editDisplay: false,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        viewDisplay: false,
-                        width: 120
-                    },
-
-                    {
-                        label: "审核时间",
-                        prop: "auditTime",
-                        type: "date",
-                        format: "yyyy-MM-dd",
-                        valueFormat: "yyyy-MM-dd",
-                        slot: true,
-                        searchSpan: 4,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: false,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: false,
-                        // 表单编辑时是否可见
-                        editDisplay: false,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        viewDisplay: false,
-                        width: 120
-                    },
-
-                    {
-                        label: "审核状态",
-                        prop: "status",
-                        type: "select",
-                        slot: true,
-                        search: true,
-                        searchSpan: 3,
-                        dicData: [
-                            {
-                                label: "待审核",
-                                value: 1,
-                            },
-                            {
-                                label: "审核通过",
-                                value: 2,
-                            },
-                            {
-                                label: "审核不通过",
-                                value: 3,
-                            }
-                        ],
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        width: 96
-                    },
-
-                    {
-                        label: "审核明细",
-                        prop: "auditDetail",
-                        slot: true,
-                        // 表单新增时是否禁止
-                        addDisabled: false,
-                        // 表单新增时是否可见
-                        addDisplay: true,
-                        // 表单新增时是否为查看模式
-                        addDetail: false,
-                        // 表单编辑时是否禁止
-                        editDisabled: true,
-                        // 表单编辑时是否可见
-                        editDisplay: true,
-                        // 表单编辑时是否为查看模式
-                        editDetail: false,
-                        width: 68,
-                    }
-                ],
-            },
-            questionBankSearch: {},
-            questionBankLoading: true,
-            questionBankData: [],
-            questionBankPage: {
-                pageSize: 10,
-                currentPage: 1,
-                total: 16,
-            },
-            questionBankQuery: {},
-            questionBankSelectionList: [],
-
-        };
-    },
-    created(){
-      if (this.userInfo.role_name == "公安管理员") {
-        //判断是否为市局管理员
-        if(this.userInfo.jurisdiction=="1372091709474910209"){
-            this.check = true;
-        }else{
-            this.check = false;
+  components: {
+    Legend
+  },
+  data() {
+    return {
+      //legend-liu数据
+      datalistLIU: [
+        {
+          color: "#29C093",
+          text: "审核通过"
+        },
+        {
+          color: "#F34A4A",
+          text: "审核不通过"
+        },
+        {
+          color: "#F48F57",
+          text: "待审核"
         }
+      ],
+      Audit: {},
+      dialogFormVisible: false,
+      dialogBatchAudit: false,
+      batchAudit: {
+        number: 0
+      },
+      optionBatchAudit: {
+        height: "auto",
+        filterBtn: true,
+        calcHeight: 30,
+        dialogWidth: 950,
+        tip: false,
+        searchShow: true,
+        searchMenuSpan: 6,
+        border: true, //liu
+        index: true,
+        stripe: true,
+        viewBtn: true,
+        selection: false,
+        excelBtn: false,
+        menuWidth: 380,
+        dialogClickModal: false,
+        ...this.$store.state.control.clearOtherBut,
+        column: [
+          {
+            label: "所选保安人数",
+            prop: "number",
+            span: 24,
+            value: 0,
+            disabled: true,
+            labelWidth: 110
+          },
+          {
+            label: "审核状态",
+            search: true,
+            searchSpan: 5,
+            span: 24,
+            prop: "status",
+            slot: true,
+            editDisplay: false,
+            addDisplay: false,
+            type: "select",
+            rules: [
+              {
+                required: true,
+                message: "请选择审核类型",
+                trigger: "blur"
+              }
+            ],
+            dicData: [
+              {
+                label: "待审核",
+                value: 1
+              },
+              {
+                label: "审核通过",
+                value: 2
+              },
+              {
+                label: "审核不通过",
+                value: 3
+              }
+            ]
+          },
+          {
+            label: "审核明细",
+            span: 24,
+            type: "textarea",
+            prop: "auditDetail"
+          }
+        ]
+      },
+      choiceList: [],
+      optionAudit: {
+        height: "auto",
+        calcHeight: 30,
+        dialogWidth: 1000,
+        tip: false,
+        searchShow: true,
+        searchMenuSpan: 6,
+        border: true, //liu
+        index: true,
+        stripe: true,
+        viewBtn: false,
+        addBtn: false,
+        editBtn: false,
+        selection: true,
+        excelBtn: false,
+        menuWidth: 230,
+        dialogClickModal: false,
+        ...this.$store.state.control.clearOtherBut,
+        column: [
+          {
+            label: "审核状态",
+            search: true,
+            searchSpan: 5,
+            span: 24,
+            prop: "status",
+            slot: true,
+            editDisplay: false,
+            addDisplay: false,
+            type: "select",
+            rules: [
+              {
+                required: true,
+                message: "请选择审核类型",
+                trigger: "blur"
+              }
+            ],
+            dicData: [
+              {
+                label: "待审核",
+                value: 1
+              },
+              {
+                label: "审核通过",
+                value: 2
+              },
+              {
+                label: "审核不通过",
+                value: 3
+              }
+            ]
+          },
+          {
+            label: "审核明细",
+            span: 24,
+            type: "textarea",
+            prop: "auditDetail"
+          }
+        ]
+      },
+      obj: {
+        name: "张三"
+      },
+      questionBankOption: {
+        // 操作栏多余按钮去除
+        delBtn: false,
+        editBtn: true,
+        addBtn: false,
+        check: false,
+        checks: false,
+        selection: true,
+        reserveSelection: true,
+        tip: false,
+        viewBtn: false,
+        // title: '成绩',
+        align: "center",
+        height: "auto",
+        calcHeight: 80,
+        searchShow: true,
+        searchMenuSpan: 4,
+        index: true,
+        indexLabel: "序号",
+        //dialogType: 'drawer',
+        dialogClickModal: false,
+        // 操作栏宽度
+        menu: true,
+        menuWidth: 160,
+        labelWidth: 120,
+        ...this.$store.state.control.clearOtherBut,
+        column: [
+          {
+            label: "考试时间",
+            prop: "examTime",
+            search: true,
+            searchSpan: 4,
+            type: "date",
+            format: "yyyy-MM-dd",
+            valueFormat: "yyyy-MM-dd",
+            viewDisplay: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            viewDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请输入试卷名称",
+                trigger: "blur"
+              }
+            ],
+            width: 90,
+            overHidden: true
+          },
+          {
+            label: "姓名",
+            prop: "realName",
+            search: true,
+            searchSpan: 3,
+            slot: true,
+            viewDisplay: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            viewDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请输入试卷名称",
+                trigger: "blur"
+              }
+            ],
+            width: 80
+            // overHidden:true,
+          },
+
+          {
+            label: "所属公司",
+            prop: "deptName",
+            search: true,
+            searchSpan: 4,
+            // dicUrl: '/api/blade-system/dept/tree',
+            // props: {
+            //     label: "title",
+            //     value: "id",
+            // },
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请输入所属公司",
+                trigger: "blur"
+              }
+            ],
+            width: 200,
+            overHidden: true
+          },
+
+          {
+            label: "身份证号",
+            prop: "idCardNo",
+            search: true,
+            searchSpan: 4,
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请输入保安姓名",
+                trigger: "blur"
+              }
+            ],
+            width: 140
+          },
+
+          {
+            label: "原理论成绩",
+            prop: "oldScore",
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            width: 88
+          },
+
+          {
+            label: "修改后理论成绩",
+            width: 110,
+            prop: "newScore",
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: false,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            rules: [
+              {
+                required: true,
+                message: "请输入修改后理论成绩",
+                trigger: "blur"
+              }
+            ]
+          },
+
+          {
+            label: "笔试答题图片",
+            prop: "url",
+            labelWidth: 110,
+            type: "upload",
+            dataType: "string",
+            width: 98,
+            span: 24,
+            limit: 5,
+            listType: "picture-card",
+            disabled: true,
+            tip: "只能上传jpg/png文件,最多上传5张",
+            propsHttp: {
+              res: "data",
+              url: "url"
+            },
+            action: "/api/blade-resource/oss/endpoint/put-files"
+          },
+
+          {
+            label: "申请人所在单位",
+            prop: "applyUnitName",
+            search: true,
+            searchLabelWidth: 120,
+            searchSpan: 4,
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            width: 200,
+            editDetail: false,
+            overHidden: true
+          },
+          {
+            label: "申请理由",
+            prop: "applyCause",
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            minWidth: 70,
+            overHidden: true
+          },
+
+          {
+            label: "修改申请时间",
+            prop: "createTime",
+            type: "date",
+            format: "yyyy-MM-dd HH:mm:ss",
+            valueFormat: "yyyy-MM-dd  HH:mm:ss",
+            slot: true,
+            searchSpan: 4,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: false,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: false,
+            // 表单编辑时是否可见
+            editDisplay: false,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            viewDisplay: false,
+            width: 130
+          },
+
+          {
+            label: "审核时间",
+            prop: "auditTime",
+            type: "date",
+            format: "yyyy-MM-dd HH:mm:ss",
+            valueFormat: "yyyy-MM-dd  HH:mm:ss",
+            slot: true,
+            searchSpan: 4,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: false,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: false,
+            // 表单编辑时是否可见
+            editDisplay: false,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            viewDisplay: false,
+            width: 130
+          },
+
+          {
+            label: "审核状态",
+            prop: "status",
+            type: "select",
+            slot: true,
+            search: true,
+            searchSpan: 3,
+            dicData: [
+              {
+                label: "待审核",
+                value: 1
+              },
+              {
+                label: "审核通过",
+                value: 2
+              },
+              {
+                label: "审核不通过",
+                value: 3
+              }
+            ],
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            width: 110
+          },
+
+          {
+            label: "审核明细",
+            prop: "auditDetail",
+            slot: true,
+            // 表单新增时是否禁止
+            addDisabled: false,
+            // 表单新增时是否可见
+            addDisplay: true,
+            // 表单新增时是否为查看模式
+            addDetail: false,
+            // 表单编辑时是否禁止
+            editDisabled: true,
+            // 表单编辑时是否可见
+            editDisplay: true,
+            // 表单编辑时是否为查看模式
+            editDetail: false,
+            width: 68
+          }
+        ]
+      },
+      questionBankSearch: {},
+      questionBankLoading: true,
+      questionBankData: [],
+      questionBankPage: {
+        pageSize: 10,
+        currentPage: 1,
+        total: 16,
+        ...this.$store.state.control.changePageSize
+      },
+      questionBankQuery: {},
+      questionBankSelectionList: []
+    };
+  },
+  created() {
+    if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
+      //判断是否为市局管理员
+      if (this.userInfo.jurisdiction == "1372091709474910209") {
+        this.check = true;
+      } else {
+        this.check = false;
+      }
+    }
+    //批量审批
+    //判断是否为超级管理员
+    if (this.userInfo.role_name == "administrator") {
+      this.checks = true;
+      this.questionBankOption.tip = true;
+    }
+  },
+  mounted() {
+    this.$store.commit("setWindowSizeHeightAdd");
+  },
+  computed: {
+    ...mapGetters(["userInfo", "permission"]),
+    permissionList() {
+      return {
+        addBtn: this.vaildData(null, false),
+        viewBtn: this.vaildData(this.permission.score_audit_view, false),
+        delBtn: this.vaildData(null, false),
+        editBtn: this.vaildData(this.permission.score_audit_edit, false)
+      };
+    }
+  },
+  methods: {
+    getNewTime() {
+      var nowTime = new Date();
+
+      var oneHoursAgo = new Date(
+        new Date(nowTime).getTime() - 1 * 60 * 60 * 1000
+      );
+      var oneHoursAgoY = oneHoursAgo.getFullYear();
+      var oneHoursAgoM =
+        oneHoursAgo.getMonth() + 1 < 10
+          ? "0" + (oneHoursAgo.getMonth() + 1)
+          : oneHoursAgo.getMonth() + 1;
+      var oneHoursAgoD =
+        oneHoursAgo.getDate() < 10
+          ? "0" + oneHoursAgo.getDate()
+          : oneHoursAgo.getDate();
+      var oneHoursAgoH =
+        oneHoursAgo.getHours() < 10
+          ? "0" + oneHoursAgo.getHours()
+          : oneHoursAgo.getHours();
+      var oneHoursAgom =
+        oneHoursAgo.getMinutes() < 10
+          ? "0" + oneHoursAgo.getMinutes()
+          : oneHoursAgo.getMinutes();
+      var oneHoursAgos =
+        oneHoursAgo.getSeconds() < 10
+          ? "0" + oneHoursAgo.getSeconds()
+          : oneHoursAgo.getSeconds();
+
+      /**
+       * @return 返回1小时,2小时,3小时,4小时,24小时
+       */
+      return (
+        oneHoursAgoY +
+        "-" +
+        oneHoursAgoM +
+        "-" +
+        oneHoursAgoD +
+        " " +
+        oneHoursAgoH +
+        ":" +
+        oneHoursAgom +
+        ":" +
+        oneHoursAgos
+      );
+    },
+
+    handleAudit(row) {
+      this.dialogFormVisible = true;
+      this.Audit = row;
+    },
+    //审核
+    submit(row, done, loading) {
+      row.auditTime = this.getNewTime();
+      const data = {
+        id: row.id,
+        status: row.status,
+        auditDetail: row.auditDetail,
+        auditUser: this.userInfo.Id
+      };
+
+      applyAudit(data).then(
+        () => {
+          this.dialogFormVisible = false;
+          this.questionBankOnLoad(this.questionBankPage);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        },
+        error => {
+          window.console.log(error);
+          loading();
+        }
+      );
+    },
+    //成绩修改批量审核
+    handleBatchAudit() {
+      if (this.choiceList.length == 0) {
+        this.$message({
+          message: "未选择考试的人员",
+          type: "warning"
+        });
+        return;
+      }
+      this.dialogBatchAudit = true;
+      this.batchAudit.number = this.choiceList.length;
+    },
+    selectionChange(list) {
+      // this.selectionList = list;
+      this.choiceList = [];
+      for (let k in list) {
+        this.choiceList.push({
+          id: list[k].id
+        });
       }
     },
-    mounted () { },
-    computed: {
-        ...mapGetters(["userInfo", "permission"]),
-        permissionList () {
-            return {
-                addBtn: this.vaildData(null, false),
-                viewBtn: this.vaildData(
-                    this.permission.score_audit_view,
-                    false
-                ),
-                delBtn: this.vaildData(null, false),
-                editBtn: this.vaildData(
-                    this.permission.score_audit_edit,
-                    false
-                ),
-            };
-        },
+    questionBankOnLoad(page, params = {}) {
+      //判断角色,如果是保安公司管理员或保安,只能查看当前公司的考试成绩
+      var that = this;
+      //获取当前登录人员的角色信息
+      var roleIds = this.userInfo.role_id.split(",");
+      roleIds.forEach(roleId => {
+        getRoleDetail(roleId).then(res => {
+          var roleAlias = res.data.data.roleAlias;
+          if (roleAlias == "保安公司管理员" || roleAlias == "保安") {
+            //如果是保安公司管理员
+            params["deptId"] = that.userInfo.dept_id;
+          }
+          if (roleAlias == "培训公司管理员") {
+            //如果是培训公司管理员
+            params["trainUnitId"] = that.userInfo.dept_id;
+          }
+          if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
+            //如果是公安管理员
+            params["jurisdiction"] = this.userInfo.jurisdiction;
+          }
+          that.questionBankLoading = false;
+          getList(
+            page.currentPage,
+            page.pageSize,
+            Object.assign(params, this.questionBankQuery)
+          ).then(res => {
+            const data = res.data.data;
+            that.questionBankPage.total = data.total;
+            that.questionBankData = data.records;
+            that.questionBankLoading = false;
+            this.$store.commit("setWindowSizeHeightAdd");
+            that.questionBankSelectionClear();
+          });
+        });
+      });
     },
-    methods: {
-        getNewTime () {
-            var nowTime = new Date()
 
-            var oneHoursAgo = new Date(new Date(nowTime).getTime() - 1 * 60 * 60 * 1000)
-            var oneHoursAgoY = oneHoursAgo.getFullYear()
-            var oneHoursAgoM = oneHoursAgo.getMonth() + 1 < 10 ? '0' + (oneHoursAgo.getMonth() + 1) : oneHoursAgo.getMonth() + 1
-            var oneHoursAgoD = oneHoursAgo.getDate() < 10 ? '0' + oneHoursAgo.getDate() : oneHoursAgo.getDate()
-            var oneHoursAgoH = oneHoursAgo.getHours() < 10 ? '0' + oneHoursAgo.getHours() : oneHoursAgo.getHours()
-            var oneHoursAgom = oneHoursAgo.getMinutes() < 10 ? '0' + oneHoursAgo.getMinutes() : oneHoursAgo.getMinutes()
-            var oneHoursAgos = oneHoursAgo.getSeconds() < 10 ? '0' + oneHoursAgo.getSeconds() : oneHoursAgo.getSeconds()
-
-            /**
-             * @return 返回1小时,2小时,3小时,4小时,24小时
-             */
-            return oneHoursAgoY + '-' + oneHoursAgoM + '-' + oneHoursAgoD + ' ' + oneHoursAgoH + ':' + oneHoursAgom + ':' + oneHoursAgos
-        },
-
-        handleAudit (row) {
-            this.dialogFormVisible = true;
-            this.Audit = row;
-        },
-        //审核
-        submit (row, done, loading) {
-
-            row.auditTime = this.getNewTime()
-            const data  = {
-                id:row.id,
-                status:row.status,
-                auditDetail:row.auditDetail,
-                auditUser:this.userInfo.Id
-            }
-
-            applyAudit(data).then(
-                () => {
-                    this.dialogFormVisible = false;
-                    this.questionBankOnLoad(this.questionBankPage);
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!",
-                    });
-                    done();
-                },
-                (error) => {
-                    window.console.log(error);
-                    loading();
-                }
-            );
-        },
-
-        questionBankOnLoad (page, params = {}) {
-            //判断角色,如果是保安公司管理员或保安,只能查看当前公司的考试成绩
-            var that = this;
-            //获取当前登录人员的角色信息
-            var roleIds = this.userInfo.role_id.split(",");
-            roleIds.forEach((roleId) => {
-                getRoleDetail(roleId).then((res) => {
-                    var roleAlias = res.data.data.roleAlias;
-                    if (roleAlias == "保安公司管理员" || roleAlias == "保安") {
-                        //如果是保安公司管理员
-                        params["deptId"] = that.userInfo.dept_id;
-                    }
-                    if (roleAlias == "培训公司管理员") {
-                        //如果是培训公司管理员
-                        params["trainUnitId"] = that.userInfo.dept_id;
-                    }
-                    that.questionBankLoading = false;
-                    params["examType"] = 2;
-                    getList(
-                        page.currentPage,
-                        page.pageSize,
-                        Object.assign(params, this.questionBankQuery)
-                    ).then((res) => {
-                        const data = res.data.data;
-                        that.questionBankPage.total = data.total;
-                        that.questionBankData = data.records;
-                        that.questionBankLoading = false;
-                        that.questionBankSelectionClear();
-                    });
-                });
-            });
-        },
-
-        questionBankSelectionClear () {
-            this.questionBankSelectionList = [];
-            this.$refs.questionBankCrud.toggleSelection();
-        },
-        questionBankSelectionChange (list) {
-            this.questionBankSelectionList = list;
-        },
-        questionBankSearchChange (params, done) {
-            this.questionBankQuery = params;
-            this.questionBankPage.currentPage = 1;
-            this.questionBankOnLoad(this.questionBankPage, params);
-            done();
-        },
-        questionBankSearchReset () {
-            this.questionBankQuery = {};
-            this.questionBankOnLoad(this.questionBankPage);
-        },
-        questionBankCurrentChange (currentPage) {
-            this.questionBankPage.currentPage = currentPage;
-        },
-        questionBankSizeChange (pageSize) {
-            this.questionBankPage.pageSize = pageSize;
-        },
-
-        questionBankRowUpdate (row, index, done, loading) {
-            update({
-                id: row.id,
-                newScore: row.newScore
-            }).then(
-                () => {
-                    this.questionBankOnLoad(this.questionBankPage);
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!",
-                    });
-                    done();
-                },
-                (error) => {
-                    window.console.log(error);
-                    loading();
-                }
-            );
-        },
-
-        refreshChange () {
-            this.questionBankOnLoad(this.questionBankPage, this.questionBankQuery);
-        },
-
+    questionBankSelectionClear() {
+      this.questionBankSelectionList = [];
+      // this.$refs.questionBankCrud.toggleSelection();
     },
+    // questionBankSelectionChange(list) {
+    //   this.questionBankSelectionList = list;
+    // },
+    questionBankSearchChange(params, done) {
+      this.questionBankQuery = params;
+      this.questionBankPage.currentPage = 1;
+      this.questionBankOnLoad(this.questionBankPage, params);
+      done();
+    },
+    questionBankSearchReset() {
+      this.questionBankQuery = {};
+      this.questionBankOnLoad(this.questionBankPage);
+    },
+    questionBankCurrentChange(currentPage) {
+      this.questionBankPage.currentPage = currentPage;
+    },
+    questionBankSizeChange(pageSize) {
+      this.questionBankPage.pageSize = pageSize;
+    },
+
+    questionBankRowUpdate(row, index, done, loading) {
+      update({
+        id: row.id,
+        newScore: row.newScore
+      }).then(
+        () => {
+          this.questionBankOnLoad(this.questionBankPage);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        },
+        error => {
+          window.console.log(error);
+          loading();
+        }
+      );
+    },
+    //批量审批
+    submitBatchAudit(row, done, loading) {
+      var that = this;
+      let cho = this.choiceList;
+      let str = "";
+      for (let k in cho) {
+        str += cho[k].id;
+        if (k != cho.length - 1) {
+          str += ",";
+        }
+      }
+      const data = {
+        ids: str,
+        status: row.status,
+        auditDetail: row.auditDetail,
+        auditUser: this.userInfo.Id
+      };
+      //提交申请
+      batchAudit(data).then(
+        () => {
+          this.questionBankOnLoad(this.page);
+          that.$refs.formBatchAudit.resetFields();
+          that.dialogBatchAudit = false;
+          this.$message({
+            type: "success",
+            message: "操作成功"
+          });
+          //清除选项
+          that.$refs.questionBankCrud.toggleSelection();
+          done();
+        },
+        error => {
+          window.console.log(error);
+          loading();
+        }
+      );
+    },
+    refreshChange() {
+      this.questionBankOnLoad(this.questionBankPage, this.questionBankQuery);
+    }
+  }
 };
 </script>
 
 <style lang="scss" scoped>
 .morpheus-box {
-    position: relative;
+  position: relative;
+}
+
+.dtype {
+  width: 100%;
+  padding-left: 0px;
+}
+
+.dx {
+  position: absolute;
+  top: 50%;
+  margin-top: -5px;
+  margin-left: 6px;
+  width: 10px;
+  height: 10px;
+  border-radius: 30%;
+  background: #dfdfdf;
+}
+.zc {
+  position: absolute;
+  top: 50%;
+  margin-top: -5px;
+  margin-left: 4px;
+  width: 10px;
+  height: 10px;
+  border-radius: 30%;
+  background: #29c093;
+}
+.yj {
+  position: absolute;
+  top: 50%;
+  margin-top: -5px;
+  margin-left: 4px;
+  width: 10px;
+  height: 10px;
+  border-radius: 30%;
+  background: #f34a4a;
+}
+.gz {
+  position: absolute;
+  top: 50%;
+  margin-top: -5px;
+  margin-left: 4px;
+  width: 10px;
+  height: 10px;
+  border-radius: 30%;
+  background: #f48f57;
 }
 </style>

--
Gitblit v1.9.3