From ae5807029edabde0b1e1488c090bd830fccf75a7 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 18 九月 2023 16:13:07 +0800 Subject: [PATCH] 代码提交 --- Source/UBCS-WEB/src/views/work/start.vue | 38 +++++++++++++++++++++++--------------- 1 files changed, 23 insertions(+), 15 deletions(-) diff --git a/Source/UBCS-WEB/src/views/work/start.vue b/Source/UBCS-WEB/src/views/work/start.vue index a4baecd..7451c91 100644 --- a/Source/UBCS-WEB/src/views/work/start.vue +++ b/Source/UBCS-WEB/src/views/work/start.vue @@ -1,18 +1,19 @@ <template> <basic-container> <avue-crud :option="option" - :table-loading="loading" - :data="data" - :page.sync="page" - v-model="form" - ref="crud" - @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" + :page.sync="page" + v-model="form" + ref="crud" + @search-change="searchChange" + @search-reset="searchReset" + @selection-change="selectionChange" + @row-click="clickRowChange" + @current-change="currentChange" + @size-change="sizeChange" + @refresh-change="refreshChange" + @on-load="onLoad"> <template slot="menuLeft"> <el-radio-group v-model="mode" size="small"> <el-radio-button label="1">閫氱敤娴佺▼</el-radio-button> @@ -78,7 +79,7 @@ workBox: false, option: { height: 'auto', - calcHeight: 30, + calcHeight: 20, tip: false, searchShow: true, searchMenuSpan: 6, @@ -103,7 +104,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" @@ -171,15 +172,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(); }, handleStart(row) { - this.$router.push({path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/form/${row.id}`}); + this.$router.push({path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/form/${row.id}?name=` +row.categoryName}); }, handleImage(row) { this.processDefinitionId = row.id; -- Gitblit v1.9.3