wangting
2023-07-28 6cce1cce50dd3362e1a95727431f0482290c5d26
修改首页待办流程
已修改2个文件
24 ■■■■■ 文件已修改
Source/UBCS-WEB/src/api/system/user.js 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/wel/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/system/user.js
@@ -160,15 +160,3 @@
  })
}
// 首页代办流程任务查询
export const getUndoTaskList =(current, size, params) => {
  return request({
    url: '/api/ubcs-flow/work/send-list',
    method: 'get',
    params:{
      ...params,
      current,
      size
    }
  })
}
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}` });
      }
    }
  };