소스 검색

流程新增操作人员预览

zhangjie 3 년 전
부모
커밋
e63052d9a8

+ 6 - 0
src/modules/exam/api.js

@@ -72,6 +72,12 @@ export const cancelOrRestartTaskApply = ({ id, status }) => {
 export const taskAllFlowSetups = flowId => {
   return $postParam("/api/admin/flow/task/all", { flowId });
 };
+export const taskAllApproverPeople = ({ taskId, courseCode }) => {
+  return $postParam("/api/admin/flow/task/approver/people_all", {
+    taskId,
+    courseCode
+  });
+};
 // 命题老师创建命题任务
 export const teacherCreateTaskApply = datas => {
   return $post("/api/admin/exam/task/save_task_apply", datas);

+ 1 - 1
src/modules/exam/components/ApplyAuditHistory.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="apply-audit-history">
+  <div class="apply-audit-history part-box part-box-pad part-box-border">
     <div v-if="auditHistory.length">
       <p class="tips-info mb-2" v-if="latestHistory">
         <span>审核结果:</span>

+ 292 - 228
src/modules/exam/components/ApplyContent.vue

@@ -1,227 +1,256 @@
 <template>
   <div class="apply-content task-detail">
-    <p class="tips-info tips-dark mb-2">
-      提示:多卷型试卷由于会绑定一个答题卡模板,因此试卷结构必须相同。多卷型试卷之间客观题要求试题内容相同,可允许大题内的小题题序不同。
-    </p>
-    <div class="task-body">
-      <div v-if="IS_APPLY" class="mb-2 text-right">
-        <el-button
-          type="primary"
-          icon="el-icon-circle-plus-outline"
-          @click="addAtachment"
-          >增加卷型</el-button
+    <div class="mb-4" v-if="flows.length">
+      <el-steps align-center>
+        <el-step
+          v-for="flow in flows"
+          :key="flow.taskKey"
+          :title="flow.taskName"
+          :status="flow.status"
         >
-      </div>
-      <table class="table">
-        <tr>
-          <th>试卷类型</th>
-          <th>试卷文件</th>
-          <th>答题卡创建方式</th>
-          <th>答题卡</th>
-          <th v-if="IS_APPLY">操作</th>
-        </tr>
-        <tr v-for="(attachment, index) in paperAttachments" :key="index">
-          <td>{{ attachment.name }}卷</td>
-          <td class="td-link">
-            <span
-              v-if="IS_APPLY"
-              @click="toUpload(attachment)"
-              title="点击上传试卷"
-            >
-              <i
-                :class="[
-                  'icon',
-                  attachment.attachmentId ? 'icon-files-act' : 'icon-files'
-                ]"
-              ></i
-              >{{
-                attachment.attachmentId
-                  ? attachment.filename
-                  : "点击上传试卷文件"
-              }}
-            </span>
-            <span
-              v-else
-              @click="downloadPaper(attachment)"
-              title="点击查看试卷"
-            >
-              <i
-                class="icon icon-download-act"
-                v-if="attachment.attachmentId"
-              ></i>
-              <i>{{ attachment.filename }}</i>
-            </span>
-          </td>
-          <td :rowspan="paperAttachments.length" v-if="index === 0">
-            {{ createCardTypeName }}
-          </td>
-          <td
-            class="td-link"
-            :rowspan="paperAttachments.length"
-            v-if="index === 0"
+          <div slot="description">
+            <p class="step-desc">{{ flow.desc }}</p>
+            <div class="step-info" v-if="flow.firstUser">
+              <span>{{ flow.firstUser }}</span>
+              <el-popover
+                v-if="flow.moreUser"
+                placement="top-start"
+                width="300"
+                trigger="hover"
+                :content="flow.moreUser"
+              >
+                <span class="color-primary" slot="reference">更多</span>
+              </el-popover>
+            </div>
+          </div>
+        </el-step>
+      </el-steps>
+    </div>
+
+    <div class="part-box part-box-pad part-box-border">
+      <p class="tips-info tips-dark mb-2">
+        提示:多卷型试卷由于会绑定一个答题卡模板,因此试卷结构必须相同。多卷型试卷之间客观题要求试题内容相同,可允许大题内的小题题序不同。
+      </p>
+      <div class="task-body">
+        <div v-if="IS_APPLY" class="mb-2 text-right">
+          <el-button
+            type="primary"
+            icon="el-icon-circle-plus-outline"
+            @click="addAtachment"
+            >增加卷型</el-button
           >
-            <span v-if="IS_APPLY" @click="toCreateOrViewCard"
-              ><i class="icon icon-plus-act"></i>{{ cardTodoName }}</span
-            >
-            <span v-else @click="toViewCard">
-              <i class="icon icon-circle-right"></i>
-              <i>查看题卡</i>
-            </span>
-            <el-button
-              v-if="curTaskApply.makeMethod && IS_APPLY"
-              size="mini"
-              type="primary"
-              @click="changeCreateCardType"
-              >切换题卡创建方式</el-button
+        </div>
+        <table class="table">
+          <tr>
+            <th>试卷类型</th>
+            <th>试卷文件</th>
+            <th>答题卡创建方式</th>
+            <th>答题卡</th>
+            <th v-if="IS_APPLY">操作</th>
+          </tr>
+          <tr v-for="(attachment, index) in paperAttachments" :key="index">
+            <td>{{ attachment.name }}卷</td>
+            <td class="td-link">
+              <span
+                v-if="IS_APPLY"
+                @click="toUpload(attachment)"
+                title="点击上传试卷"
+              >
+                <i
+                  :class="[
+                    'icon',
+                    attachment.attachmentId ? 'icon-files-act' : 'icon-files'
+                  ]"
+                ></i
+                >{{
+                  attachment.attachmentId
+                    ? attachment.filename
+                    : "点击上传试卷文件"
+                }}
+              </span>
+              <span
+                v-else
+                @click="downloadPaper(attachment)"
+                title="点击查看试卷"
+              >
+                <i
+                  class="icon icon-download-act"
+                  v-if="attachment.attachmentId"
+                ></i>
+                <i>{{ attachment.filename }}</i>
+              </span>
+            </td>
+            <td :rowspan="paperAttachments.length" v-if="index === 0">
+              {{ createCardTypeName }}
+            </td>
+            <td
+              class="td-link"
+              :rowspan="paperAttachments.length"
+              v-if="index === 0"
             >
-          </td>
-          <td v-if="IS_APPLY">
-            <el-button
-              class="btn-table-icon"
-              type="text"
-              icon="icon icon-delete"
-              title="删除"
-              @click="deleteAttachment(index)"
-            ></el-button>
-          </td>
-        </tr>
-      </table>
+              <span v-if="IS_APPLY" @click="toCreateOrViewCard"
+                ><i class="icon icon-plus-act"></i>{{ cardTodoName }}</span
+              >
+              <span v-else @click="toViewCard">
+                <i class="icon icon-circle-right"></i>
+                <i>查看题卡</i>
+              </span>
+              <el-button
+                v-if="curTaskApply.makeMethod && IS_APPLY"
+                size="mini"
+                type="primary"
+                @click="changeCreateCardType"
+                >切换题卡创建方式</el-button
+              >
+            </td>
+            <td v-if="IS_APPLY">
+              <el-button
+                class="btn-table-icon"
+                type="text"
+                icon="icon icon-delete"
+                title="删除"
+                @click="deleteAttachment(index)"
+              ></el-button>
+            </td>
+          </tr>
+        </table>
 
-      <el-form>
-        <el-form-item label="单次抽卷卷型数量:" label-width="150">
-          <el-input-number
-            v-model="curTaskApply.drawCount"
-            :min="1"
-            :max="maxFetchCount"
-            :step="1"
-            step-strictly
-            :controls="false"
-            :disabled="!IS_APPLY"
-          ></el-input-number>
-        </el-form-item>
-      </el-form>
+        <el-form>
+          <el-form-item label="单次抽卷卷型数量:" label-width="150">
+            <el-input-number
+              v-model="curTaskApply.drawCount"
+              :min="1"
+              :max="maxFetchCount"
+              :step="1"
+              step-strictly
+              :controls="false"
+              :disabled="!IS_APPLY"
+            ></el-input-number>
+          </el-form-item>
+        </el-form>
 
-      <h4 class="mb-2">备注说明:</h4>
-      <el-input
-        class="mb-2"
-        v-model="curTaskApply.remark"
-        type="textarea"
-        resize="none"
-        :rows="2"
-        :maxlength="100"
-        clearable
-        show-word-limit
-        placeholder="建议不超过100个字"
-        :disabled="!IS_APPLY"
-      ></el-input>
+        <h4 class="mb-2">备注说明:</h4>
+        <el-input
+          class="mb-2"
+          v-model="curTaskApply.remark"
+          type="textarea"
+          resize="none"
+          :rows="2"
+          :maxlength="100"
+          clearable
+          show-word-limit
+          placeholder="建议不超过100个字"
+          :disabled="!IS_APPLY"
+        ></el-input>
 
-      <h4 class="mb-2">上传入库审核表(最多4张)</h4>
-      <div class="image-list">
-        <div
-          class="image-item"
-          v-for="(img, index) in paperConfirmAttachments"
-          :key="index"
-        >
-          <img
-            :src="img.url"
-            :alt="img.filename"
-            title="点击查看大图"
-            @click="toPreview(index)"
-          />
-          <div v-if="IS_APPLY" class="image-delete">
-            <i
-              class="el-icon-delete-solid"
-              @click="deletePaperConfirmAttachment(index)"
-            ></i>
+        <h4 class="mb-2">上传入库审核表(最多4张)</h4>
+        <div class="image-list">
+          <div
+            class="image-item"
+            v-for="(img, index) in paperConfirmAttachments"
+            :key="index"
+          >
+            <img
+              :src="img.url"
+              :alt="img.filename"
+              title="点击查看大图"
+              @click="toPreview(index)"
+            />
+            <div v-if="IS_APPLY" class="image-delete">
+              <i
+                class="el-icon-delete-solid"
+                @click="deletePaperConfirmAttachment(index)"
+              ></i>
+            </div>
+          </div>
+          <div
+            v-if="paperConfirmAttachments.length < 4 && IS_APPLY"
+            class="image-item image-add"
+            title="上传入库审核表"
+            @click="toUploadPaperConfirm"
+          >
+            <i class="el-icon-plus"></i>
           </div>
         </div>
-        <div
-          v-if="paperConfirmAttachments.length < 4 && IS_APPLY"
-          class="image-item image-add"
-          title="上传入库审核表"
-          @click="toUploadPaperConfirm"
+
+        <!-- audit -->
+        <el-form
+          v-if="IS_AUDIT"
+          ref="auditModalComp"
+          :model="auditModal"
+          :rules="auditRules"
+          label-width="90px"
         >
-          <i class="el-icon-plus"></i>
-        </div>
+          <el-form-item prop="approvePass" label="审批操作:">
+            <el-radio-group v-model="auditModal.approvePass">
+              <el-radio
+                v-for="(val, key) in TASK_AUDIT_RESULT"
+                :key="key"
+                :label="key"
+                >{{ val }}</el-radio
+              >
+            </el-radio-group>
+          </el-form-item>
+          <el-form-item
+            v-if="auditModal.approvePass === 'REJECT'"
+            prop="setup"
+            label="驳回节点:"
+          >
+            <el-select v-model="auditModal.setup" placeholder="请选择">
+              <el-option
+                v-for="item in setups"
+                :key="item.taskKey"
+                :value="item.setup"
+                :label="item.taskName"
+              >
+              </el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item
+            v-if="auditModal.approvePass === 'REJECT'"
+            prop="remark"
+            label="审批意见:"
+          >
+            <el-input
+              class="mb-2"
+              v-model="auditModal.remark"
+              type="textarea"
+              resize="none"
+              :rows="5"
+              :maxlength="1000"
+              clearable
+              show-word-limit
+              placeholder="建议不超过1000个字"
+              ref="ReasonInput"
+            ></el-input>
+          </el-form-item>
+        </el-form>
       </div>
-
-      <!-- audit -->
-      <el-form
-        v-if="IS_AUDIT"
-        ref="auditModalComp"
-        :model="auditModal"
-        :rules="auditRules"
-        label-width="90px"
-      >
-        <el-form-item prop="approvePass" label="审批操作:">
-          <el-radio-group v-model="auditModal.approvePass">
-            <el-radio
-              v-for="(val, key) in TASK_AUDIT_RESULT"
-              :key="key"
-              :label="key"
-              >{{ val }}</el-radio
-            >
-          </el-radio-group>
-        </el-form-item>
-        <el-form-item
-          v-if="auditModal.approvePass === 'REJECT'"
-          prop="setup"
-          label="驳回节点:"
+      <div class="task-action">
+        <el-button
+          v-if="IS_APPLY"
+          type="primary"
+          :disabled="isSubmit"
+          @click="submit"
+          >确认提交</el-button
         >
-          <el-select v-model="auditModal.setup" placeholder="请选择">
-            <el-option
-              v-for="item in setups"
-              :key="item.taskKey"
-              :value="item.setup"
-              :label="item.taskName"
-            >
-            </el-option>
-          </el-select>
-        </el-form-item>
-        <el-form-item
-          v-if="auditModal.approvePass === 'REJECT'"
-          prop="remark"
-          label="审批意见:"
+        <el-button
+          v-if="IS_APPLY"
+          type="primary"
+          :disabled="isSubmit"
+          style="width:88px;"
+          @click="toSave"
+          >暂存</el-button
         >
-          <el-input
-            class="mb-2"
-            v-model="auditModal.remark"
-            type="textarea"
-            resize="none"
-            :rows="5"
-            :maxlength="1000"
-            clearable
-            show-word-limit
-            placeholder="建议不超过1000个字"
-            ref="ReasonInput"
-          ></el-input>
-        </el-form-item>
-      </el-form>
-    </div>
-    <div class="task-action">
-      <el-button
-        v-if="IS_APPLY"
-        type="primary"
-        :disabled="isSubmit"
-        @click="submit"
-        >确认提交</el-button
-      >
-      <el-button
-        v-if="IS_APPLY"
-        type="primary"
-        :disabled="isSubmit"
-        style="width:88px;"
-        @click="toSave"
-        >暂存</el-button
-      >
-      <el-button
-        v-if="IS_AUDIT"
-        type="primary"
-        :disabled="isSubmit"
-        @click="toAuditApply"
-        >确定</el-button
-      >
-      <el-button type="danger" @click="cancel" plain>取消</el-button>
+        <el-button
+          v-if="IS_AUDIT"
+          type="primary"
+          :disabled="isSubmit"
+          @click="toAuditApply"
+          >确定</el-button
+        >
+        <el-button type="danger" @click="cancel" plain>取消</el-button>
+      </div>
     </div>
 
     <!-- upload-paper-dialog -->
@@ -256,7 +285,9 @@ import {
   taskApplyDetail,
   updateTaskApply,
   updateTaskReview,
-  switchCardCreateMethod
+  switchCardCreateMethod,
+  taskAllFlowSetups,
+  taskAllApproverPeople
 } from "../api";
 import { attachmentPreview } from "../../login/api";
 import SimpleImagePreview from "@/components/SimpleImagePreview";
@@ -276,6 +307,7 @@ const initTaskApply = {
   drawCount: 1,
   // 流程
   flowId: "",
+  setup: 0,
   // 工作台任务id
   flowTaskId: "",
   // 题卡状态
@@ -300,12 +332,6 @@ export default {
       type: String,
       default: "APPLY",
       validator: val => ["APPLY", "PREVIEW", "AUDIT"].includes(val)
-    },
-    flows: {
-      type: Array,
-      default() {
-        return [];
-      }
     }
   },
   data() {
@@ -323,6 +349,7 @@ export default {
       reason: "",
       // audit
       TASK_AUDIT_RESULT,
+      flows: [],
       setups: [],
       auditModal: {
         approvePass: "PASS",
@@ -406,16 +433,6 @@ export default {
   },
   methods: {
     async initData() {
-      if (!this.examTask.id) {
-        this.curTaskApply = this.$objAssign(initTaskApply, {
-          courseCode: this.examTask.courseCode,
-          courseName: this.examTask.courseName,
-          cardRuleId: this.examTask.cardRuleId,
-          customCard: this.examTask.customCard
-        });
-        return;
-      }
-
       const data = await taskApplyDetail(
         this.examTask.id,
         this.examTask.source
@@ -426,6 +443,7 @@ export default {
       this.curTaskApply.courseName = this.examTask.courseName;
       this.curTaskApply.cardRuleId = this.examTask.cardRuleId;
       this.curTaskApply.customCard = this.examTask.customCard;
+      this.curTaskApply.setup = this.examTask.setup;
       this.paperAttachments = this.curTaskApply.paperAttachmentIds
         ? JSON.parse(this.curTaskApply.paperAttachmentIds)
         : [];
@@ -433,10 +451,56 @@ export default {
         ? JSON.parse(this.curTaskApply.paperConfirmAttachmentIds)
         : [];
 
+      this.buildSteps();
+    },
+    async buildSteps() {
+      if (!this.curTaskApply.flowId) return;
+
+      const flowStatus = {
+        wait: "待进行",
+        process: "进行中",
+        success: "已完成"
+      };
+      const approveData = await taskAllApproverPeople({
+        taskId: this.curTaskApply.flowTaskId
+      });
+      let approvePeople = {};
+      approveData.approveUserList.forEach(item => {
+        item.users = item.approveUser.map(
+          user => `${user.realName}(${user.orgName})`
+        );
+        item.firstUser = item.users[0];
+        item.moreUser = item.users.length > 1 ? item.users.join(",") : null;
+        approvePeople[item.setup] = item;
+      });
+
+      const flowData = await taskAllFlowSetups(this.curTaskApply.flowId);
+      const curSetup = this.curTaskApply.setup;
+      this.flows = flowData.map(item => {
+        item.status =
+          curSetup > item.setup
+            ? "success"
+            : curSetup === item.setup
+            ? "process"
+            : "wait";
+        item.desc = flowStatus[item.status];
+        item.isCurrent = curSetup === item.setup;
+        item = { ...item, ...approvePeople[item.setup] };
+        return item;
+      });
+
       if (this.flows.length) {
         const curFlow = this.flows.find(item => item.isCurrent);
         if (curFlow)
-          this.setups = this.flows.filter(item => item.setup < curFlow.setup);
+          this.setups = this.flows
+            .filter(item => item.setup < curFlow.setup)
+            .map(item => {
+              return {
+                taskKey: item.taskKey,
+                setup: item.setup,
+                taskName: item.taskName
+              };
+            });
       }
     },
     addAtachment() {

+ 76 - 3
src/modules/exam/components/CreateTaskApply.vue

@@ -83,6 +83,33 @@
       </el-form>
     </div>
 
+    <div class="mb-4" v-if="flows.length">
+      <el-steps align-center>
+        <el-step
+          v-for="flow in flows"
+          :key="flow.taskKey"
+          :title="flow.taskName"
+          :status="flow.status"
+        >
+          <div slot="description">
+            <p class="step-desc">{{ flow.desc }}</p>
+            <div class="step-info" v-if="flow.firstUser">
+              <span>{{ flow.firstUser }}</span>
+              <el-popover
+                v-if="flow.moreUser"
+                placement="top-start"
+                width="300"
+                trigger="hover"
+                :content="flow.moreUser"
+              >
+                <span slot="reference">更多</span>
+              </el-popover>
+            </div>
+          </div>
+        </el-step>
+      </el-steps>
+    </div>
+
     <div
       class="part-box part-box-pad part-box-border apply-content task-detail"
       v-if="modalIsShow"
@@ -256,7 +283,8 @@ import { examRuleDetail } from "../../base/api";
 import {
   teacherCreateTaskApply,
   teacherCancelTaskApply,
-  switchCardCreateMethod
+  switchCardCreateMethod,
+  taskAllApproverPeople
 } from "../api";
 import UploadPaperDialog from "./UploadPaperDialog";
 import CardOptionDialog from "./CardOptionDialog";
@@ -302,8 +330,32 @@ export default {
       needReview: false,
       task: {},
       examRule: {},
-      steps: [],
-      actStep: "",
+      flows: [
+        {
+          flowId: "160684605807001600",
+          taskName: "提交试卷(命题老师)",
+          taskKey: "usertask1",
+          setup: 1,
+          status: "process",
+          desc: "进行中"
+        },
+        {
+          flowId: "160684605807001600",
+          taskName: "审核试卷(教研室主任)",
+          taskKey: "usertask2",
+          setup: 2,
+          status: "wait",
+          desc: "待进行"
+        },
+        {
+          flowId: "160684605807001600",
+          taskName: "审核试卷(教学院长)",
+          taskKey: "usertask3",
+          setup: 3,
+          status: "wait",
+          desc: "待进行"
+        }
+      ],
       rules: {
         teachingRoomId: [
           {
@@ -543,10 +595,31 @@ export default {
     courseChange(val) {
       this.examTask.courseName = val.name;
       this.clearCard();
+      this.updateApproverPeople();
     },
     clearCard() {
       this.clearMakeMethod();
     },
+    async updateApproverPeople() {
+      const data = await taskAllApproverPeople({
+        courseCode: this.examTask.courseCode
+      });
+      let approvePeople = {};
+      data.approveUserList.forEach(item => {
+        item.users = item.approveUser.map(
+          user => `${user.realName}(${user.orgName})`
+        );
+        item.firstUser = item.users[0];
+        item.moreUser = item.users.length > 1 ? item.users.join(",") : null;
+        approvePeople[item.setup] = item;
+      });
+      this.flows = this.flows.map(flow => {
+        return {
+          ...flow,
+          ...approvePeople[flow.setup]
+        };
+      });
+    },
     getTaskDetailData() {
       let data = { ...this.examTaskDetail };
       data.paperType = this.paperAttachments.map(item => item.name).join(",");

+ 4 - 75
src/modules/exam/components/ModifyTaskApply.vue

@@ -73,8 +73,7 @@
               <el-button
                 v-if="
                   instance.auditStatus === 'NOT_AUDITED' &&
-                    instance.status === 'SUBMIT' &&
-                    IS_QUESTION_TEACHER
+                    instance.status === 'SUBMIT'
                 "
                 type="text"
                 class="btn-table-icon ml-2"
@@ -92,18 +91,6 @@
       </el-form>
     </div>
 
-    <div class="mb-4" v-if="flows.length">
-      <el-steps align-center>
-        <el-step
-          v-for="flow in flows"
-          :key="flow.taskKey"
-          :title="flow.taskName"
-          :description="flow.desc"
-          :status="flow.status"
-        ></el-step>
-      </el-steps>
-    </div>
-
     <div class="mb-2" v-if="needReview">
       <el-button
         v-for="item in menus"
@@ -113,14 +100,12 @@
         >{{ item.name }}</el-button
       >
     </div>
-    <div class="part-box part-box-pad part-box-border" v-if="modalIsShow">
+    <div v-if="modalIsShow">
       <apply-content
-        v-if="dataReady"
         v-show="curMenu.id === '1'"
         ref="ApplyContent"
         :exam-task="modalForm"
         :edit-type="editType"
-        :flows="flows"
         @cancel="cancel"
         @modified="modified"
       ></apply-content>
@@ -140,7 +125,7 @@
 import ApplyContent from "./ApplyContent";
 import ApplyAuditHistory from "./ApplyAuditHistory";
 import { examRuleDetail } from "../../base/api";
-import { cancelOrRestartTaskApply, taskAllFlowSetups } from "../api";
+import { cancelOrRestartTaskApply } from "../api";
 
 const initModalForm = {
   id: null,
@@ -193,19 +178,14 @@ export default {
   data() {
     return {
       modalIsShow: false,
-      dataReady: false,
       modalForm: {},
       needReview: false,
       examRule: {},
-      flows: [],
       menus: [
         { id: "1", name: "命题处理", component: "apply-content" },
         { id: "2", name: "审核意见", component: "apply-audit-history" }
       ],
-      curMenu: {},
-      IS_QUESTION_TEACHER: this.$ls
-        .get("user", { roleList: [] })
-        .roleList.includes("QUESTION_TEACHER")
+      curMenu: {}
     };
   },
   created() {
@@ -222,57 +202,6 @@ export default {
       this.modalForm.includePaper = this.examRule.includePaper;
       this.modalForm.review = this.examRule.review;
       this.modalForm.customCard = this.examRule.customCard;
-      this.buildSteps(this.modalForm.flowId);
-    },
-    async buildSteps() {
-      if (!this.modalForm.flowId) {
-        this.dataReady = true;
-        return;
-      }
-
-      const flowStatus = {
-        wait: "待进行",
-        process: "进行中",
-        success: "已完成"
-      };
-
-      const data = await taskAllFlowSetups(this.modalForm.flowId);
-      const curSetup = this.modalForm.setup;
-      // if (data.length) {
-      //   data.push({
-      //     flowId: this.modalForm.flowId,
-      //     setup: data.length + 1,
-      //     taskKey: this.$randomCode(),
-      //     taskName: "入库"
-      //   });
-      // }
-      this.flows = data.map(item => {
-        item.status =
-          curSetup > item.setup
-            ? "success"
-            : curSetup === item.setup
-            ? "process"
-            : "wait";
-        item.desc = flowStatus[item.status];
-        item.isCurrent = curSetup === item.setup;
-        return item;
-      });
-
-      this.dataReady = true;
-      // const curStatus = this.instance.status;
-      // 构建steps
-      // const stepList = this.needReview ? STEPS : [STEPS[0], STEPS[2]];
-      // this.steps = stepList.map(step => {
-      //   const validStepStatus = Object.keys(step.status).find(key =>
-      //     step.status[key].range.includes(curStatus)
-      //   );
-
-      //   return {
-      //     title: step.title,
-      //     status: validStepStatus,
-      //     desc: step.status[validStepStatus].desc
-      //   };
-      // });
     },
     visibleChange() {
       this.initData(this.instance);

+ 0 - 1
src/modules/login/views/Login.vue

@@ -183,7 +183,6 @@ export default {
       // }
 
       this.$ls.set("token", data.accessToken, this.GLOBAL.authTimeout);
-      // this.$store.commit("setUser", data);
 
       if (data.roleList && data.roleList.includes("ADMIN")) {
         this.$router.push({