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/system/tenant.vue | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Source/UBCS-WEB/src/views/system/tenant.vue b/Source/UBCS-WEB/src/views/system/tenant.vue index 8cfa8c9..96ce15c 100644 --- a/Source/UBCS-WEB/src/views/system/tenant.vue +++ b/Source/UBCS-WEB/src/views/system/tenant.vue @@ -13,6 +13,7 @@ @row-save="rowSave" @search-change="searchChange" @search-reset="searchReset" + @row-click="clickRowChange" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @@ -26,14 +27,6 @@ plain @click="handleDelete">鍒� 闄� </el-button> - <el-tooltip class="item" effect="dark" content="缁欑鎴烽厤缃处鍙烽搴︺�佽繃鏈熸椂闂寸瓑鎺堟潈淇℃伅" placement="top"> - <el-button size="small" - plain - v-if="userInfo.role_name.includes('administrator')" - icon="el-icon-setting" - @click="handleSetting">鎺堟潈閰嶇疆 - </el-button> - </el-tooltip> <el-tooltip class="item" effect="dark" content="缁欑鎴烽厤缃嫭绔嬫暟鎹簮浠ュ疄鐜版暟鎹簱闅旂" placement="top"> <el-button size="small" plain @@ -68,7 +61,7 @@ <el-tag>{{ row.expireTime ? row.expireTime : '涓嶉檺鍒�' }}</el-tag> </template> </avue-crud> - + <el-dialog title="绉熸埛鏁版嵁婧愰厤缃�" append-to-body :visible.sync="datasourceBox" @@ -135,6 +128,7 @@ viewBtn: true, dialogWidth: 900, dialogClickModal: false, + highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜� column: [ { label: "绉熸埛ID", @@ -359,7 +353,7 @@ message: "鎿嶄綔鎴愬姛!" }); done(); - console.log(done) + // console.log(done) }, error => { window.console.log(error); loading(); @@ -420,8 +414,15 @@ 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 = []; -- Gitblit v1.9.3