wangting
2023-07-28 6cce1cce50dd3362e1a95727431f0482290c5d26
Source/UBCS-WEB/src/views/wel/index.vue
@@ -114,12 +114,13 @@
<script>
  import {mapGetters} from "vuex";
  import  {getUndoTaskList,check,updatePassword} from "@/api/system/user"
  import  {check,updatePassword} from "@/api/system/user"
  import md5 from "js-md5";
  import {removeToken} from "@/util/auth";
  import Statistic from './Statistic.vue';
  import {validatenull} from "@/util/validate";
  import {flowCategory,flowRoute} from "@/util/flow";
  import {todoList} from "@/api/work/work";
  export default {
    name: "wel",
@@ -261,7 +262,11 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        getUndoTaskList(page.currentPage, page.pageSize, Object.assign(params)).then(res => {
        const query = {
          ...this.query,
          category: (params.category) ? flowCategory(params.category) : null
        };
        todoList(page.currentPage, page.pageSize, Object.assign(params, query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
          this.todoData = data.records;
@@ -277,8 +282,7 @@
        }
      },
      gotodo(row, index) {
        //this.$router.push({ path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/handle/${row.taskId}/${row.processInstanceId}/${row.businessId}` });
        this.$router.push({ path: `/work/todo` });
        this.$router.push({ path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/handle/${row.taskId}/${row.processInstanceId}/${row.businessId}` });
      }
    }
  };