From f2a44bae17300adf473b89d30c85d399b5d050fd Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期六, 23 九月 2023 10:33:44 +0800 Subject: [PATCH] 9.21 --- src/components/view/standard-table/target.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/view/standard-table/target.vue b/src/components/view/standard-table/target.vue index 30d27b7..bc836e1 100644 --- a/src/components/view/standard-table/target.vue +++ b/src/components/view/standard-table/target.vue @@ -1,12 +1,12 @@ <template> <div class="standard"> - <div> - <el-table ref="multipleTable" :data="tableData" row-key="rowId" border max-height="675" + <div style="width: 100%;height: 68vh;overflow-x: auto;"> + <el-table ref="multipleTable" :data="tableData" row-key="rowId" border height="calc(90vh - 200px)" @select-all="selectAll" @select="selectTr" @selection-change="handleSelectionChange" default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> - <el-table-column type="selection" width="55"></el-table-column> - <el-table-column type="index" width="60" label="搴忓彿"></el-table-column> + <el-table-column type="selection" width="55"></el-table-column> + <el-table-column type="index" width="60" label="搴忓彿"></el-table-column> <el-table-column prop="tfather" label="宸ュ簭" width="200" :resizable="false"> <template slot-scope="scope"> <el-tag class="tag" type="primary" v-if="scope.row.tfather != null">01</el-tag> @@ -79,6 +79,7 @@ }, //閫夋嫨鏌愯 selectTr(selection, row) { + console.log("sss---",selection,row); this.$set(row, "isChecked", !row.isChecked); this.$nextTick(() => { this.isAllSelect = row.isChecked; @@ -87,6 +88,7 @@ }, //閫掑綊瀛愮骇 toggleSelect(data, flag, type) { + console.log("閫掑綊瀛愮骇---",data,flag,type); if (type === "all") { if (data.length > 0) { data.forEach((item) => { @@ -108,6 +110,7 @@ }, //鏀瑰彉閫変腑 toggleSelection(row, flag) { + console.log("鏀瑰彉閫変腑---",row,flag); this.$set(row, "isChecked", flag); this.$nextTick(() => { if (flag) { -- Gitblit v1.9.3