From c8005d3f303be7241f5acdc10ad679e1bf8cd602 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 24 十月 2023 11:16:29 +0800 Subject: [PATCH] 横向滚动条固定列bug --- Source/UBCS-WEB/src/views/docking/info.vue | 30 ++++++++++++++++++++++++------ 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/Source/UBCS-WEB/src/views/docking/info.vue b/Source/UBCS-WEB/src/views/docking/info.vue index eb7c585..b29f9cf 100644 --- a/Source/UBCS-WEB/src/views/docking/info.vue +++ b/Source/UBCS-WEB/src/views/docking/info.vue @@ -12,7 +12,7 @@ <template slot="menu" slot-scope="{row,index}"> <el-button icon="el-icon-edit" size="small" type="text" @click="updateSave(row,index)" :disabled="row.usedFlag === 'true' ? false :true">缂栬緫</el-button> <el-button icon="el-icon-delete" size="small" type="text" @click="deleteSave(row,index)">鍒犻櫎</el-button> - <el-button v-if="row.usedflag=='false'" icon="el-icon-position" size="small" type="text" + <el-button v-if="row.usedFlag=='false' || row.usedFlag==''" icon="el-icon-position" size="small" type="text" @click="ENABLE(row,index)">鍚敤 </el-button> <el-button v-else icon="el-icon-finished" size="small" type="text" @click="DISABLE(row,index)">鍋滅敤 @@ -93,6 +93,7 @@ option: { height: "auto", calcHeight: 20, + columnBtn:false, tip: false, headerAlign: "center", border: true, @@ -109,7 +110,6 @@ addBtn: false, editBtn: false, delBtn: false, - columnBtn: false, column: [ { label: '鏄惁鍚敤', prop: 'usedFlag', @@ -174,8 +174,9 @@ },{ label: 'soapAction', prop: 'soapAction', + overHidden:true, sortable: true, - width: 150 + width: 200 }, { label: '璋冪敤鏂瑰紡', prop: 'cxfaxis', @@ -191,7 +192,8 @@ label: '璇锋眰鍦板潃', prop: 'requestUrl', sortable: true, - width: 150 + overHidden:true, + width: 200 }, { label: '鎺ュ彛鍑芥暟', prop: 'interfaceFunction', @@ -400,7 +402,7 @@ onLoad(page, params = {}) { this.loading = true; getList(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => { - console.log(res) + // console.log(res) const data = res.data.data; this.page.total = data.total; this.data = data.records; @@ -499,8 +501,24 @@ } </script> -<style lang="scss"> +<style lang="scss" scoped> .applyRangeTable > .el-card:nth-of-type(2) > .el-card__body > .avue-crud__menu { display: none !important; } + +// 婊氬姩鏉℃牱寮忎慨鏀� +// 婊氬姩鏉$殑瀹藉害 +/deep/ .el-table__body-wrapper::-webkit-scrollbar { + height: 15px; // 绾靛悜婊氬姩鏉� 蹇呭啓 + background: white; + border: white; + width: 10px; + +} +// 婊氬姩鏉$殑婊戝潡 +/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb { + background-color: #ececec; + border-radius: 20px; + border: #ececec; +} </style> -- Gitblit v1.9.3