Browse Source

Merge branch 'dev-220228' into test

shibei_master
jiangyy 4 years ago
parent
commit
7f0760a773
  1. 15
      src/views/modules/base/community/buildTable.vue
  2. 2
      src/views/modules/base/community/communityForm.vue
  3. 22
      src/views/modules/base/community/communityTable.vue
  4. 16
      src/views/modules/base/community/roomTable.vue

15
src/views/modules/base/community/buildTable.vue

@ -97,6 +97,7 @@
@select-all="selectAll"
@selection-change="selectionChange">
<el-table-column type="selection"
:selectable="checkSelect"
width="55">
</el-table-column>
<el-table-column prop="buildingName"
@ -244,6 +245,16 @@ export default {
this.loadTable()
},
checkSelect (row, index) {
let isChecked = false;
if (row.showBtn) { //
isChecked = true
} else {
isChecked = false
}
return isChecked
},
async loadTable (fromTree, treeObj) {
this.tableLoading = true
if (fromTree) {
@ -333,7 +344,9 @@ export default {
this.$refs.ref_table.clearSelection();
if (selectAllFlag) {
this.tableData.forEach(row => {
this.$refs.ref_table.toggleRowSelection(row);
if (row.showBtn) {
this.$refs.ref_table.toggleRowSelection(row);
}
});
}
},

2
src/views/modules/base/community/communityForm.vue

@ -385,7 +385,7 @@ export default {
if (code === 0) {
this.$message({
type: 'success',
message: '添加小区成功'
message: '操作成功'
})
this.resetData()
this.$emit('dialogOk')

22
src/views/modules/base/community/communityTable.vue

@ -119,6 +119,7 @@
@select-all="selectAll"
@selection-change="selectionChange">
<el-table-column type="selection"
:selectable="checkSelect"
width="55">
</el-table-column>
<el-table-column prop="neighborHoodName"
@ -324,6 +325,17 @@ export default {
this.tableLoading = false
},
checkSelect (row, index) {
let isChecked = false;
if (row.showBtn) { //
isChecked = true
} else {
isChecked = false
}
return isChecked
},
diaClose () {
this.$refs.ref_form.resetData()
this.formShow = false
@ -370,7 +382,9 @@ export default {
this.$refs.ref_table.clearSelection();
if (selectAllFlag) {
this.tableData.forEach(row => {
this.$refs.ref_table.toggleRowSelection(row);
if (row.showBtn) {
this.$refs.ref_table.toggleRowSelection(row);
}
});
}
},
@ -742,3 +756,9 @@ export default {
@import "@/assets/scss/buttonstyle.scss";
@import "@/assets/scss/modules/visual/communityManage.scss";
</style>
<style>
.el-message.is-closable .el-message__content {
line-height: 20px;
}
</style>

16
src/views/modules/base/community/roomTable.vue

@ -77,6 +77,7 @@
@select-all="selectAll"
@selection-change="selectionChange">
<el-table-column type="selection"
:selectable="checkSelect"
width="55">
</el-table-column>
<el-table-column prop="houseName"
@ -236,6 +237,16 @@ export default {
this.loadTable()
},
checkSelect (row, index) {
let isChecked = false;
if (row.showBtn) { //
isChecked = true
} else {
isChecked = false
}
return isChecked
},
async loadTable (fromTree, treeObj) {
this.tableLoading = true
if (fromTree) {
@ -327,7 +338,10 @@ export default {
this.$refs.ref_table.clearSelection();
if (selectAllFlag) {
this.tableData.forEach(row => {
this.$refs.ref_table.toggleRowSelection(row);
if (row.showBtn) {
this.$refs.ref_table.toggleRowSelection(row);
}
});
}
},

Loading…
Cancel
Save