From a65112ecf7580c7d5a2ae60d05150cac34e59f5d Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 26 九月 2022 16:30:33 +0800
Subject: [PATCH] 1.工艺路线工艺设置下拉选中之后自动回车2.工序定义检验人员选中默认当前登录人员
---
src/views/jcsz/yhqd.vue | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/src/views/jcsz/yhqd.vue b/src/views/jcsz/yhqd.vue
index 4022e6e..5718c68 100644
--- a/src/views/jcsz/yhqd.vue
+++ b/src/views/jcsz/yhqd.vue
@@ -71,7 +71,7 @@
</el-select>
</el-form-item>
</div>
- <div style="display: flex;align-items: flex-start;margin-top: 3px">
+ <div class="bodySearchReset">
<el-button type="primary" icon="el-icon-search" @click="search">鏌ヨ</el-button>
<el-button type="info" icon="el-icon-refresh" @click="reset">閲嶇疆</el-button>
</div>
@@ -80,7 +80,9 @@
<div class="elTableDiv">
<el-table
+ ref="tableDataRef"
:data="tableData"
+ class="tableFixed"
:height="tableHeight+'px'"
highlight-current-row
:style="{width: 100+'%',height:tableHeight+'px'}"
@@ -396,7 +398,7 @@
show-checkbox
node-key="code"
default-expand-all
- style="height: 300px"
+ style="height: 300px;overflow-y: scroll"
:props="defaultPropsOfRoleTree"
@check="checkBoxClick"
/>
@@ -879,6 +881,7 @@
this.tableHeight = this.tableHeight - 40
}
this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367
+ this.$refs.tableDataRef.doLayout()
})
},
// 鍏宠仈瑙掕壊鐐瑰嚮浜嬩欢
@@ -890,10 +893,10 @@
this.dialogFormRoles.username = row.username
this.dialogFormRoles.usercode = row.usercode
const { data: res } = await UserAssociationRole({ usercode: row.usercode })
- this.rolesAll = res
+ this.rolesAll = res.filter(item => item.children.length !== 0)
const nodeKey = []// 鏍戝舰鍥炴樉key
- res.forEach((item, index) => {
+ this.rolesAll.forEach((item, index) => {
this.dialogFormRoles.rolesArr.push({
code: item.code,
name: item.name,
@@ -920,8 +923,6 @@
}
}
})
- console.log(this.dialogFormRoles.roleTreeSelectedArr, 11)
- console.log(this.dialogFormRoles.rolesArr, 888)
this.dialogFormRoles.rolesArr[0].isSelected1 = true// 榛樿閫変腑绗竴涓�
// this.dialogFormRoles.rolesArr[0].name = '鍏ㄩ儴'
@@ -1435,6 +1436,15 @@
margin-bottom: 0;
}
+.tableFixed{
+ ::v-deep .el-table__fixed-right{
+ height: 100% !important;
+ }
+ ::v-deep .el-table__fixed{
+ height: 100% !important;
+ }
+}
+
</style>
<style>
--
Gitblit v1.9.3