From 8199d1738e8b75ccad7f3465dfd88aac2bb1a160 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 04 八月 2023 14:56:11 +0800 Subject: [PATCH] 主题库切换树模板流程和阶段显示bug --- Source/UBCS-WEB/src/views/work/todo.vue | 38 +++++++++++++++++++++++--------------- 1 files changed, 23 insertions(+), 15 deletions(-) diff --git a/Source/UBCS-WEB/src/views/work/todo.vue b/Source/UBCS-WEB/src/views/work/todo.vue index cb65914..ca53516 100644 --- a/Source/UBCS-WEB/src/views/work/todo.vue +++ b/Source/UBCS-WEB/src/views/work/todo.vue @@ -1,17 +1,18 @@ <template> <basic-container> <avue-crud :option="option" - :table-loading="loading" - :data="data" - ref="crud" - v-model="form" - @search-change="searchChange" - @search-reset="searchReset" - @selection-change="selectionChange" - @current-change="currentChange" - @size-change="sizeChange" - @refresh-change="refreshChange" - @on-load="onLoad"> + :table-loading="loading" + :data="data" + ref="crud" + v-model="form" + @search-change="searchChange" + @search-reset="searchReset" + @selection-change="selectionChange" + @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" size="small" @@ -64,7 +65,7 @@ workBox: false, option: { height: 'auto', - calcHeight: 30, + calcHeight: 0, tip: false, simplePage: true, searchShow: true, @@ -84,7 +85,7 @@ label: "娴佺▼鍒嗙被", type: "select", row: true, - dicUrl: "/api/blade-system/dict/dictionary?code=flow", + dicUrl: "/api/ubcs-system/dict/dictionary?code=flow", props: { label: "dictValue", value: "dictKey" @@ -144,16 +145,23 @@ }, selectionChange(list) { this.selectionList = list; + this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); + }, + clickRowChange(row){ + this.$refs.crud.toggleSelection(); + this.selectionList = row; + this.$refs.crud.setCurrentRow(row); + this.$refs.crud.toggleRowSelection(row); //閫変腑褰撳墠琛� }, selectionClear() { this.selectionList = []; this.$refs.crud.toggleSelection(); }, handleWork(row) { - this.$router.push({ path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/handle/${row.taskId}/${row.processInstanceId}/${row.businessId}` }); + this.$router.push({ path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/handle/${row.taskId}/${row.processInstanceId}/${row.businessId}?name=`+'澶勭悊'+row.categoryName }); }, 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