Browse Source

优化

V1.0
ZhaoTongYao 3 years ago
parent
commit
b5fa8a7cc1
  1. 10
      src/views/modules/base/collect.vue
  2. 3
      src/views/modules/base/roomForm.vue

10
src/views/modules/base/collect.vue

@ -210,7 +210,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-image <el-image
style="max-height: 50px" style="max-height: 50px; max-width: 50px;"
:src="scope.row.faceImg" :src="scope.row.faceImg"
:preview-src-list="[scope.row.faceImg]"> :preview-src-list="[scope.row.faceImg]">
<div slot="error" class="image-slot"> <div slot="error" class="image-slot">
@ -417,7 +417,7 @@
@closed="addHouseShow = false"> @closed="addHouseShow = false">
<room-form ref="ref_form" <room-form ref="ref_form"
@dialogCancle="addHouseShow = false" @dialogCancle="addHouseShow = false"
@dialogOk="checkHandle('2')"></room-form> @dialogOk="roomFormOk"></room-form>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -731,7 +731,6 @@ export default {
}, },
// //
checkHandle (type) { checkHandle (type) {
console.log('xxxxx', this.dataForm)
const params = { const params = {
id: this.dataForm.id, id: this.dataForm.id,
checkState: type, // 0- 1- 2- checkState: type, // 0- 1- 2-
@ -789,6 +788,11 @@ export default {
}) })
}).catch(() => {}) }).catch(() => {})
}, },
roomFormOk (e) {
this.dataForm.buildingUnitId = e.buildingUnitId
this.dataForm.doorName = e.doorName
this.checkHandle('2')
}
}, },
}; };
</script> </script>

3
src/views/modules/base/roomForm.vue

@ -327,9 +327,8 @@ export default {
type: 'success', type: 'success',
message: '操作成功' message: '操作成功'
}) })
this.$emit('dialogOk', { doorName: this.dataForm.doorName, buildingUnitId: this.dataForm.buildingUnitId })
this.resetData() this.resetData()
this.$emit('dialogOk')
} else { } else {
this.$message.error(msg) this.$message.error(msg)

Loading…
Cancel
Save