diff --git a/app/view/page/taskHistory.html b/app/view/page/taskHistory.html
index 51a3b62..43b8946 100644
--- a/app/view/page/taskHistory.html
+++ b/app/view/page/taskHistory.html
@@ -16,7 +16,6 @@
-
@@ -41,30 +40,22 @@
checkbox-color="success"
fixed-header
class="jh-fixed-table-height elevation-0 mt-0 mb-xs-4">
-
+
{{item.taskTitle}}
+
-
+
{{item.taskStatus}}
-
+
{{item.taskStatus}}
-
+
mdi-text-box-outline
查看
@@ -108,12 +99,12 @@
-
+
审核申请信息
-
+
@@ -129,8 +120,7 @@
-
+
@@ -171,17 +161,10 @@
data: {
// 面包屑
breadcrumbs: [
- {
- text: '首页',
- disabled: true,
- },
- {
- text: '全部任务列表',
- disabled: true,
- }
+ {text: '首页', disabled: true,},
+ {text: '全部任务列表', disabled: true,}
],
isHelpPageDrawerShown: false,
-
// 表格相关数据
isTableZebraLineShown: true,
// 生日日期选择
@@ -193,9 +176,8 @@
searchInput: null,
isTableLoading: true,
tableData: [],
- historyData: [],
headers: [
- { text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed' },
+ { text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' },
{ text: "审批项", value: "taskTitle" },
{ text: "审核状态", value: "taskStatus" },
{ text: "操作者", value: "operationByUser", width: 120 },
@@ -203,9 +185,7 @@
],
isViewDrawerShown: false,
- updateItem: {},
- workflowType: 'todo', // todo, history
- lineTypeList: [],
+ viewItem: {},
userId: '<$ ctx.userInfo.userId $>'
},
// 计算
@@ -226,8 +206,8 @@
await this.openDataPicker(uiActionData);
break;
case 'startUpdateItem':
- await this.prepareUpdateFormData(uiActionData);
- await this.openUpdateDrawer();
+ await this.prepareViewItemData(uiActionData);
+ await this.openViewDrawer();
break;
default:
console.error("[doUiAction] uiActionId not find", { uiActionId });
@@ -261,20 +241,15 @@
this.tableData = rows;
this.isTableLoading = false;
},
- // ---------- 审核、查看 uiAction >>>>>>>>>>>> --------
- async prepareUpdateFormData(funObj) {
- this.updateItem = _.cloneDeep(funObj);
- console.log(this.updateItem)
+ // ---------- 查看 uiAction >>>>>>>>>>>> --------
+ async prepareViewItemData(funObj) {
+ this.viewItem = _.cloneDeep(funObj);
},
- async closeSubmitDrawer() {
- this.isViewDrawerShown = false;
- },
-
- async openUpdateDrawer() {
+ async openViewDrawer() {
this.isViewDrawerShown = true;
},
- // ---------- 审核、查看 uiAction >>>>>>>>>>>> --------
+ // ---------- 查看 uiAction >>>>>>>>>>>> --------
}
})