| | |
| | | <template> |
| | | <div class="table-box-w"> |
| | | <div class="list-box"> |
| | | <el-table :data="dataList.records" style="width: 100%" @cell-click="cellClick"> |
| | | <el-table :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" |
| | | :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" v-loading="residentLoading" |
| | | element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" |
| | | element-loading-background="rgba(17, 38, 163, 1)" :empty-text="residentNoDataText" :data="dataList.records" |
| | | style="width: 100%" @cell-click="cellClick"> |
| | | <!-- 包含了姓名、性别、民族、身份证号码、手机号、现居住地、岗位、从业人员照片等。 --> |
| | | <el-table-column align="center" prop="policeName" label="民警"> </el-table-column> |
| | | <el-table-column align="center" prop="pcsName" label="单位"> </el-table-column> |
| | |
| | | return { |
| | | row: {}, |
| | | detailBox: false, |
| | | residentLoading: false, |
| | | residentNoDataText: '暂无数据', |
| | | dataList: { |
| | | total: 1, |
| | | records: [] |
| | |
| | | |
| | | }, |
| | | init () { |
| | | this.residentLoading = true |
| | | getPoliceAlarmRecordsPage(123456, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | | }).catch((err) => { |
| | | this.residentLoading = false |
| | | }) |
| | | }, |
| | | cellClick (row, column, cell, event) { |