wangting
2024-12-19 acecd2af0d71d980c741936637f29f008adaf88f
Source/plt-web/plt-web-ui/src/views/wel/components/UndoTaskPortlet.vue
@@ -1,5 +1,5 @@
<template>
  <basic-container title="待办流程任务">
  <basic-container title="待办流程任务" :style="'height:'+height+'px' ">
    <avue-crud ref="crud" :data="todoData" :option="todoOption" :page.sync="page"
               :table-loading="loading"
               @on-load="onLoad"
@@ -18,6 +18,17 @@
<script>
export default {
  name: "UndoTaskPortlet",
  props:{
    height:  {
      type: Number
    },
    title:  {
      type: String
    },
    icon:  {
      type: String
    }
  },
  data(){
    return {
      loading: false,
@@ -30,7 +41,7 @@
      todoData: [],
      // 代办流程任务option
      todoOption: {
        height: 500,
        height: 'auto',
        addBtn: false,
        header: false,
        align: 'center',
@@ -86,12 +97,12 @@
  },
  methods: {
    onLoad(page, params = {}) {
      this.loading = true;
      //this.loading = true;
      const query = {
        ...this.query,
        category: (params.category) ? flowCategory(params.category) : null
      };
      todoList(page.currentPage, page.pageSize, Object.assign(params, query)).then(res => {
      /*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;
@@ -100,6 +111,8 @@
        this.$message.error(error);
        this.loading = false;
      })
       */
    },
    cellHandle(row, column, cell, event) {
      if (column.property == 'taskName') {