Browse Source

合并分支

test
曲树通 3 years ago
parent
commit
0dea1510fe
  1. 2
      src/views/modules/base/community/community.vue
  2. 5
      src/views/modules/base/community/roomForm.vue
  3. 63
      src/views/modules/base/community/roomTable.vue

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

@ -48,6 +48,7 @@
<div class="resi-cell-label">房主手机</div> <div class="resi-cell-label">房主手机</div>
<div class="resi-cell-value"> <div class="resi-cell-value">
<el-input v-model="ownerPhone" <el-input v-model="ownerPhone"
class="resi-cell-input"
size="small" size="small"
clearable clearable
placeholder="请输入内容"> placeholder="请输入内容">
@ -99,7 +100,6 @@
</div> </div>
</div> </div>
<el-button style="margin-left:10px" <el-button style="margin-left:10px"
class="diy-button--search" class="diy-button--search"
size="small" size="small"

5
src/views/modules/base/community/roomForm.vue

@ -115,6 +115,7 @@
label-width="150px" label-width="150px"
style="display: block"> style="display: block">
<el-input class="item_width_1" <el-input class="item_width_1"
maxlength="30"
placeholder="请输入备注" placeholder="请输入备注"
v-model="dataForm.remark"> v-model="dataForm.remark">
</el-input> </el-input>
@ -163,7 +164,7 @@
ownerPhone: '', // ownerPhone: '', //
ownerName: '', // ownerName: '', //
ownerIdCard: '', // ownerIdCard: '', //
remark: '' // remark: ''
}, },
keyWords: '', keyWords: '',
@ -381,7 +382,7 @@
], ],
remark: [ remark: [
{ required: false } { required: false }
] ],
} }
}, },

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

@ -209,11 +209,7 @@ export default {
// showImportBtn: false,// // showImportBtn: false,//
agencyObj: {},// agencyObj: {},//
ownerName: '',
ownerPhone: '',
rentFlag: '',
purpose: '',
remark: '',
validTableDataNum: 0,// validTableDataNum: 0,//
selection: [], selection: [],
@ -264,13 +260,13 @@ export default {
return index + 1; return index + 1;
}, },
handleSortOrderChange (value) { handleSortOrderChange (value) {
console.log(value.column, value.prop, value.order)
this.sortType = value.order === 'ascending' ? 'asc' : 'desc' this.sortType = value.order === 'ascending' ? 'asc' : 'desc'
this.loadTable() this.loadTable()
}, },
handleSortChange (value) { handleSortChange (value) {
console.log(value.column, value.prop, value.order)
this.sortType = value.order === 'ascending' ? 'asc' : 'desc' this.sortType = value.order === 'ascending' ? 'asc' : 'desc'
this.loadTable() this.loadTable()
@ -285,7 +281,7 @@ export default {
async handleChangeSort (row, index) { async handleChangeSort (row, index) {
// row.isChange = false // row.isChange = false
console.log(row.sort)
let params = { let params = {
id: row.houseId, id: row.houseId,
sort: row.sort, sort: row.sort,
@ -325,7 +321,7 @@ export default {
}, },
async loadTable (source, treeObj, ownerName, ownerPhone, rentFlag, purpose, remark) { async loadTable (source, treeObj) {
this.source = source this.source = source
this.tableLoading = true this.tableLoading = true
@ -333,18 +329,10 @@ export default {
if (source === 'tree') {//tree if (source === 'tree') {//tree
this.sortType = 'asc' this.sortType = 'asc'
this.agencyObj = treeObj this.agencyObj = treeObj
this.ownerName = null
this.ownerPhone = null
this.rentFlag = null
this.purpose = null
this.remark = null
} else if (source === 'search') {// } else if (source === 'search') {//
this.agencyObj = treeObj this.agencyObj = treeObj
this.ownerName = ownerName
this.ownerPhone = ownerPhone
this.rentFlag = rentFlag
this.purpose = purpose
this.remark = remark
} }
// if (fromTree) { // if (fromTree) {
@ -359,9 +347,9 @@ export default {
ownerName: this.ownerName, ownerName: this.ownerName,
ownerPhone: this.ownerPhone, ownerPhone: this.ownerPhone,
rentFlag: this.rentFlag, rentFlag: this.rentFlag,
sortType: this.sortType,
purpose: this.purpose, purpose: this.purpose,
remark: this.remark remark: this.remark,
sortType: this.sortType,
} }
const url = "/gov/org/house/houselist" const url = "/gov/org/house/houselist"
@ -411,7 +399,7 @@ export default {
this.formTitle = '新增房屋' this.formTitle = '新增房屋'
this.formShow = true this.formShow = true
this.$nextTick(() => { this.$nextTick(() => {
console.log(this.agencyObj)
this.$refs.ref_form.initForm('add', null, this.agencyObj) this.$refs.ref_form.initForm('add', null, this.agencyObj)
}) })
}, },
@ -628,15 +616,40 @@ export default {
let url = "/gov/org/house/exportHouseUser" let url = "/gov/org/house/exportHouseUser"
let params = { let params = {
agencyId: '', agencyId: '',
gridId: '', gridId: '',
ownerName: this.ownerName, ownerName: this.ownerName,
ownerPhone: this.ownerPhone, ownerPhone: this.ownerPhone,
rentFlag: this.rentFlag,
purpose: this.purpose, purpose: this.purpose,
remark: this.remark, remark: this.remark,
buildingId: this.agencyObj.id rentFlag: this.rentFlag,
buildingId: '',
neighborHoodId: ''
}
if (this.agencyObj.level === 'grid') {
params.gridId = this.agencyObj.id
params.agencyId = ''
params.buildingId = ''
params.neighborHoodId = ''
} else if (this.agencyObj.level === 'neighborHood') {
params.neighborHoodId = this.agencyObj.id
params.agencyId = ''
params.buildingId = ''
params.gridId = ''
} else if (this.agencyObj.level === 'building') {
params.buildingId = this.agencyObj.id
params.agencyId = ''
params.neighborHoodId = ''
params.gridId = ''
} else {
params.agencyId = this.agencyObj.id
params.buildingId = ''
params.neighborHoodId = ''
params.gridId = ''
} }
app.ajax.exportFilePost( app.ajax.exportFilePost(
@ -799,7 +812,7 @@ export default {
remark: { remark: {
type: String, type: String,
default: '', default: '',
} },
} }
} }
</script> </script>

Loading…
Cancel
Save