From ddd17a7643ca777f70389ae9eacb75b8dba6beab Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 19 六月 2023 18:07:03 +0800 Subject: [PATCH] 联调物品主数据剩余功能,处理相似项查询 --- Source/UBCS-WEB/src/views/work/todo.vue | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 deletions(-) diff --git a/Source/UBCS-WEB/src/views/work/todo.vue b/Source/UBCS-WEB/src/views/work/todo.vue index cb65914..688fb27 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" @@ -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,6 +145,13 @@ }, 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 = []; -- Gitblit v1.9.3