| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2022-09-20 14:38:38 |
| | | * @LastEditTime: 2022-09-20 17:57:24 |
| | | * @FilePath: \srs-police-affairs\src\views\house\index.vue |
| | | * @Description: 小区-栋-层-房屋 |
| | | * |
| | |
| | | </div> |
| | | |
| | | <div class="floor-content"> |
| | | <div class="ridgepole-list"></div> |
| | | <div class="ridgepole-list"> |
| | | <div v-for="(item, index) in 10" :key="index">{{item}}栋</div> |
| | | </div> |
| | | <div class="ridgepole-info"> |
| | | <div class="title">楼栋信息</div> |
| | | |
| | |
| | | <!-- 选择单元 --> |
| | | <div class="condo"> |
| | | <div class="type">选择单元</div> |
| | | <div class="type-val"></div> |
| | | <div class="type-val"> |
| | | <el-select size="mini" v-model="apartmentValue" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in apartmentOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="legend"> |
| | | <div class="type">人口图例</div> |
| | |
| | | <div> |
| | | <div class="title">1层:</div> |
| | | <div class="detail"> |
| | | <div> |
| | | 101 |
| | | <div class="flow"></div> |
| | | <div class="focus"></div> |
| | | <div class="warning"></div> |
| | | </div> |
| | | <div> |
| | | 102 |
| | | <div class="flow"></div> |
| | | <div class="focus"></div> |
| | | <div class="warning"></div> |
| | | </div> |
| | | <div> |
| | | 103 |
| | | <div class="flow"></div> |
| | | <div class="focus"></div> |
| | | <div class="warning"></div> |
| | | </div> |
| | | <div> |
| | | 104 |
| | | <div |
| | | v-for="item,i in 4" |
| | | :key="i" |
| | | @click="residentDetailsClick(item)" |
| | | > |
| | | 10{{item}} |
| | | <div class="flow"></div> |
| | | <div class="focus"></div> |
| | | <div class="warning"></div> |
| | |
| | | |
| | | <div class="warning-info" v-show="navType == 2"></div> |
| | | </div> |
| | | |
| | | <el-dialog |
| | | :title="residentDetailsTitle" |
| | | :modal="true" |
| | | :visible.sync="residentDetailsShow" |
| | | :before-close="residentDetailsClose" |
| | | :close-on-click-modal="true" |
| | | class="resident-details-box" |
| | | > |
| | | <div |
| | | style="display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; height: 100%;" |
| | | > |
| | | <div |
| | | style="width: 100%; flex: 1; display: flex; align-items: center; justify-content: space-between;" |
| | | > |
| | | <div>户主</div> |
| | | <div>XXX</div> |
| | | </div> |
| | | <div |
| | | style="width: 100%; flex: 1; display: flex; align-items: center; justify-content: space-between;" |
| | | > |
| | | <div>联系方式</div> |
| | | <div>173xxxxxxxx</div> |
| | | </div> |
| | | <div |
| | | style="width: 100%; flex: 1; display: flex; align-items: center; justify-content: space-between;" |
| | | > |
| | | <div>人口数量</div> |
| | | <div>4</div> |
| | | </div> |
| | | <div |
| | | style="width: 100%; flex: 1; display: flex; align-items: center; justify-content: space-between;" |
| | | > |
| | | <div>上班所在地</div> |
| | | <div>xx区xx路xxxx有限公司</div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | arr: [{ 'name': '物品遗失', 'time': '2022-1-2', 'type': '入室盗窃', '属性1': '值1', '属性2': '值2', '属性3': '值3', '属性4': '值4', '属性5': '值5' }, { 'name': '连环追尾', 'time': '2022-2-3', 'type': '交通事故', '属性1': '值1', '属性2': '值2', '属性3': '值3', '属性4': '值4', '属性5': '值5' }, { 'name': '打群架', 'time': '2022-3-4', 'type': '打架斗殴', '属性1': '值1', '属性2': '值2', '属性3': '值3', '属性4': '值4', '属性5': '值5' }], |
| | | dialogVisible: false, |
| | | JWdetails: {}, |
| | | |
| | | apartmentOptions: [{ |
| | | value: '1', |
| | | label: '1单元' |
| | | }, { |
| | | value: '2', |
| | | label: '2单元' |
| | | }, { |
| | | value: '3', |
| | | label: '3单元' |
| | | }, { |
| | | value: '4', |
| | | label: '4单元' |
| | | }, { |
| | | value: '5', |
| | | label: '5单元' |
| | | }], |
| | | apartmentValue: '1', |
| | | residentDetailsTitle: '', |
| | | residentDetailsShow: false |
| | | } |
| | | }, |
| | | created () { |
| | | |
| | | }, |
| | | mounted () { |
| | | |
| | | this.$nextTick(() => { |
| | | this.searchHouse = this.$route.query.searchName |
| | | }) |
| | | }, |
| | | updated () { |
| | | |
| | |
| | | clickData (row) { |
| | | this.dialogVisible = true |
| | | this.JWdetails = this.arr[row.index] |
| | | }, |
| | | |
| | | residentDetailsClick (params) { |
| | | this.residentDetailsTitle = `10${params}住户` |
| | | this.residentDetailsShow = true |
| | | }, |
| | | |
| | | residentDetailsClose () { |
| | | this.residentDetailsShow = false |
| | | }, |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | & > .floor-content { |
| | | .ridgepole-list { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: center; |
| | | |
| | | & > div { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin: 6px 8px; |
| | | width: 54px; |
| | | height: 36px; |
| | | border: 1px solid #ccc; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | |
| | | .ridgepole-info { |
| | | .content { |
| | | display: flex; |
| | |
| | | width: 68px; |
| | | height: 36px; |
| | | border: 1px solid #ccc; |
| | | cursor: pointer; |
| | | |
| | | .flow, |
| | | .focus, |