From b4c7c6a738f44afadbc388bb774ac044e7fafe38 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 12 十月 2023 11:24:21 +0800 Subject: [PATCH] 修改列显隐 --- Source/UBCS-WEB/src/views/work/done.vue | 95 +++++++++++++++++++++++++++-------------------- 1 files changed, 55 insertions(+), 40 deletions(-) diff --git a/Source/UBCS-WEB/src/views/work/done.vue b/Source/UBCS-WEB/src/views/work/done.vue index 56ef30c..3f4a3ea 100644 --- a/Source/UBCS-WEB/src/views/work/done.vue +++ b/Source/UBCS-WEB/src/views/work/done.vue @@ -12,6 +12,7 @@ @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" + @row-click="clickRowChange" @on-load="onLoad"> <template slot-scope="scope" slot="menu"> <el-button type="text" @@ -59,8 +60,9 @@ workBox: false, option: { height: 'auto', - calcHeight: 30, + calcHeight: 0, tip: false, + columnBtn:false, searchShow: true, searchMenuSpan: 6, border: true, @@ -73,44 +75,50 @@ dialogWidth: 900, menuWidth: 150, dialogClickModal: false, - column: [ - { - label: "娴佺▼鍒嗙被", - type: "select", - row: true, - dicUrl: "/api/ubcs-system/dict/dictionary?code=flow", - props: { - label: "dictValue", - value: "dictKey" - }, - dataType: "number", - slot: true, - prop: "category", - search: true, - hide: true, - width: 100, - }, - { - label: '娴佺▼鍚嶇О', - prop: 'processDefinitionName', - search: true, - }, - { - label: '褰撳墠姝ラ', - prop: 'taskName', - }, - { - label: '娴佺▼鐗堟湰', - prop: 'processDefinitionVersion', - slot: true, - width: 80, - }, - { - label: '鐢宠鏃堕棿', - prop: 'createTime', - width: 165, - }, - ] + align: 'center', + column: [{ + label: '娴佺▼鍚嶇О', + prop: 'processName', + search: true, + headerAlign: 'center', + align: 'left', + sortable: true, + overHidden:true, + width:300, + formatter: (val) => { + return val.variables.processName + } + }, { + label: '鍙戣捣浜�', + prop: 'createUser', + sortable: true, + width:150, + formatter: (val) => { + return val.variables.createUser + } + }, { + label: '鍙戣捣鏃堕棿', + sortable: true, + width:180, + prop: 'processDefinitionStartTime' + }, { + label: '瀹屾垚鏃堕棿', + sortable: true, + width:180, + prop: 'createTime' + }, { + label: '鎵�灞炴祦绋嬫ā鏉�', + sortable: true, + width:200, + prop: 'categoryName' + }, { + label: '娴佺▼鍚姩鏃舵弿杩�', + prop: 'processDesc', + overHidden:true, + formatter: (val) => { + return val.variables.processDesc + } + }] }, data: [] }; @@ -136,15 +144,22 @@ this.onLoad(this.page, params); done(); }, + clickRowChange(row){ + this.$refs.crud.toggleSelection(); + this.selectionList = row; + this.$refs.crud.setCurrentRow(row); + this.$refs.crud.toggleRowSelection(row); //閫変腑褰撳墠琛� + }, selectionChange(list) { this.selectionList = list; + this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); }, selectionClear() { this.selectionList = []; this.$refs.crud.toggleSelection(); }, handleDetail(row) { - this.$router.push({path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/detail/${row.processInstanceId}/${row.businessId}`}); + this.$router.push({path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/detail/${row.processInstanceId}/${row.businessId}?name=` +row.categoryName+'璇︽儏'}); }, handleImage(row) { this.processInstanceId = row.processInstanceId; -- Gitblit v1.9.3