diff --git a/src/App.vue b/src/App.vue index dbd953b1..4b5a899c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -120,4 +120,52 @@ export default { z-index: 200000; } } +.search-card { + .el-card__body { + padding: 20px 20px 0 20px; + } +} +.dialog-h { + .el-dialog__body { + position: relative; + height: 72vh; + box-sizing: border-box; + padding: 0 10px 20px !important; + .dialog-h-content { + height: calc(72vh - 80px); + box-sizing: border-box; + overflow: auto; + } + } +} +.scroll-h { + &::-webkit-scrollbar { + // display: none; + width: 8px; + height: 8px; + // background: linear-gradient(270deg, #0063FE, #0095FF); + } + + &::-webkit-scrollbar-corner, + /* 滚动条角落 */ + &::-webkit-scrollbar-thumb, + &::-webkit-scrollbar-track { /*滚动条的轨道*/ + border-radius: 4px; + } + + &::-webkit-scrollbar-corner, + &::-webkit-scrollbar-track { + /* 滚动条轨道 */ + + // background: rgba(12, 129, 254, .24); + box-shadow: inset 0 0 1px rgba(180, 160, 120, 0.5); + } + + &::-webkit-scrollbar-thumb { + /* 滚动条手柄 */ + + background:rgba(0,0,0,0.3); + // background: linear-gradient(270deg, #0063FE, #0095FF); + } +} diff --git a/src/views/components/editResi.vue b/src/views/components/editResi.vue index ed807fd9..d7afc877 100644 --- a/src/views/components/editResi.vue +++ b/src/views/components/editResi.vue @@ -38,7 +38,7 @@
@@ -54,7 +58,10 @@ :show-overflow-tooltip="true" :width="item.itemType === 'radio' ? computedWidth(item.label) : 180"> @@ -119,32 +126,36 @@ :visible.sync="dialogVisible" width="80%" append-to-body + class="dialog-h" :close-on-click-modal="false" :before-close="handlerCancle"> - + -
-
其他
-
- - - - - +
+
其他
+
+ + + + + +
+
取消 @@ -159,9 +170,11 @@ :visible.sync="dialogEditVisible" width="80%" append-to-body + class="dialog-h" :close-on-click-modal="false" :before-close="handlerEditCancle"> - + -
-
其他
-
- - - - - +
+
其他
+
+ + + + + +
@@ -235,6 +249,7 @@ import resiSearch from '../../components/resiSearch.vue' import resiForm from '../../components/resiForm.vue' import editResi from '../../components/editResi.vue' import axios from 'axios' +import { mapGetters } from 'vuex' import resiTransfer from '../../components/resiTransfer.vue' import resiChangeRecord from '../../components/resiChangeRecord.vue' @@ -265,6 +280,7 @@ export default { currentPage: 1, pageSize: 20, total: null, + tableHeight: 0, conditions: [], activeName: '', tableData: [], @@ -315,13 +331,23 @@ export default { await this.getTableHeader() // console.log('this.$refs.resiSearch', this) this.$refs.resiSearch.handleSearch() + // this.handleSearch() // this.getTableData() this.pageLoading = true console.log('storeoooo----0000', this.$store) + console.log('resiSearch', this.$refs.resiSearch.$el.offsetHeight) + this.tableHeight = document.documentElement.clientHeight - this.$refs.resiSearch.$el.offsetHeight - 280 + 'px' + }, + mounted() { + + console.log('document.documentElement.clientWidth', document.documentElement.clientHeight) }, methods: { - + checkSelect (row, index) { + + return row.isChecked + }, //调动 async handleTransfer (row) { this.tranferShow = true @@ -378,7 +404,10 @@ export default { this.$refs.ref_table.clearSelection(); if (selectAllFlag) { this.tableData.forEach(row => { - this.$refs.ref_table.toggleRowSelection(row); + // this.$refs.ref_table.toggleRowSelection(row); + if (row.isChecked) { + this.$refs.ref_table.toggleRowSelection(row); + } }); } }, @@ -820,7 +849,12 @@ export default { if (res.code !== 0) { return this.$message.error(res.msg) } else { - this.tableData = res.data.list + this.tableData = res.data.list.map(item => { + return { + ...item, + isChecked: this.filterEdit(item.ORG_ID) + } + }) this.total = res.data.total } }) @@ -1084,6 +1118,9 @@ export default { color: rgba(0, 167, 169, 1); } } +.name-a { + cursor: pointer; +}