From ed52d8cb0db78eb8bff70329ac01a38d50d7f672 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期三, 04 十二月 2024 16:20:13 +0800 Subject: [PATCH] 数据授权 --- Source/plt-web/plt-web-ui/src/components/PLT-basic-component/transfer.vue | 27 +++++++++++++++++++++------ 1 files changed, 21 insertions(+), 6 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/transfer.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/transfer.vue index 65e61c2..646d117 100644 --- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/transfer.vue +++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/transfer.vue @@ -6,7 +6,7 @@ :visible.sync="visible" append-to-body="true" class="avue-dialog" - width="830px" + width="800px" @close="dialogClose"> <div style="height: 42px;line-height: 30px;margin-top: -5px;" v-if="topMethodsObj !== {} && topMethodsObj"> <div> @@ -27,6 +27,7 @@ :data="data" :filter-method="filterMethod" :render-content="renderFunc" + @change="handleChange" :titles="transferTitle" filter-placeholder="鍏抽敭璇嶆悳绱�" filterable @@ -82,8 +83,9 @@ this.data = []; newval.forEach((item) => { this.data.push({ + ...item, label: item.name, - key: item.oid, + key: item.oid }); }); this.loading = false; @@ -97,8 +99,8 @@ methods: { dialogClose() { this.visible = false; - this.data = []; - this.leftRoleData = []; + //this.data = []; + //this.rightRoleData = []; }, sendHandler() { if (func.isEmptyObject(this.topMethodsObj)) { @@ -117,6 +119,9 @@ this.visible = false; }, + handleChange(value, direction, movedKeys) { + console.log(value, direction, movedKeys); + } } } </script> @@ -124,13 +129,23 @@ <style lang="scss" scoped> /deep/ .el-transfer-panel { height: 450px; /* 宸﹀彸涓や釜绌挎妗嗙殑楂樺害鍜屽搴� */ - width: 300px; + width: 322px; } /deep/ .el-transfer-panel__list.is-filterable { height: 323px; /* 绌挎妗嗗垪琛ㄩ珮搴� */ } - +/deep/ .el-transfer__buttons .el-button{ + display: block; + margin: 30px 0; + padding: 8px 15px; +} +/deep/ .el-transfer__button:first-child{ + transform: translateY(200%); +} +/deep/ .el-transfer__button:nth-child(2){ + transform: translateY(-200%); +} .valueInfo { float: left; border: 1px solid #E9E7E7; -- Gitblit v1.9.3