| | |
| | | <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" |
| | |
| | | <script> |
| | | export default { |
| | | name: "UndoTaskPortlet", |
| | | props:{ |
| | | height: { |
| | | type: Number |
| | | }, |
| | | title: { |
| | | type: String |
| | | }, |
| | | icon: { |
| | | type: String |
| | | } |
| | | }, |
| | | data(){ |
| | | return { |
| | | loading: false, |
| | |
| | | todoData: [], |
| | | // 代办流程任务option |
| | | todoOption: { |
| | | height: 500, |
| | | height: 'auto', |
| | | addBtn: false, |
| | | header: false, |
| | | align: 'center', |
| | |
| | | }, |
| | | 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; |
| | |
| | | this.$message.error(error); |
| | | this.loading = false; |
| | | }) |
| | | |
| | | */ |
| | | }, |
| | | cellHandle(row, column, cell, event) { |
| | | if (column.property == 'taskName') { |