From acecd2af0d71d980c741936637f29f008adaf88f Mon Sep 17 00:00:00 2001 From: wangting <wangting@vci-tech.com> Date: 星期四, 19 十二月 2024 18:12:08 +0800 Subject: [PATCH] 首页配置,业务模块展示不同首页 --- Source/plt-web/plt-web-ui/src/views/wel/components/UndoTaskPortlet.vue | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/wel/components/UndoTaskPortlet.vue b/Source/plt-web/plt-web-ui/src/views/wel/components/UndoTaskPortlet.vue index c0d691a..35eb19d 100644 --- a/Source/plt-web/plt-web-ui/src/views/wel/components/UndoTaskPortlet.vue +++ b/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: [], // 浠e姙娴佺▼浠诲姟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') { -- Gitblit v1.9.3