| New file |
| | |
| | | <template> |
| | | <div> |
| | | <el-dialog :title="dialogTile" :modal="true" :visible.sync="dialogVisible" :before-close="beforClose" |
| | | :close-on-click-modal="true" class="equiment-details-box"> |
| | | <el-table :data="tableData" style="width: 100%" |
| | | :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" |
| | | :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }"> |
| | | <el-table-column label="序号" type="index" :index="indexMethod" align="center"> |
| | | </el-table-column> |
| | | |
| | | <el-table-column :show-overflow-tooltip="true" prop="name" label="设备名称" min-width="320%"></el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="channelId" label="通道编号" |
| | | min-width="160%"></el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="policeStationName" label="所属派出所" |
| | | min-width="140%"></el-table-column> |
| | | <el-table-column label="设备状态"> |
| | | <template slot-scope="scope"> |
| | | <i class="status-box" :class="{ online: Number(scope.row.status) === 1 }"></i> |
| | | </template> |
| | | </el-table-column>z |
| | | <el-table-column label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="play(scope.row)" type="text" size="small" title="播放视频"> |
| | | <i class="el-icon-video-play"></i> |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <div class="pages"> |
| | | <el-pagination background layout="prev, pager, next, total" :total="pages.total" :page-size="pages.size" |
| | | pager-count="3" :current-page="pages.current" @current-change="handleCurrentChange"></el-pagination> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'assembleBOX', |
| | | |
| | | data () { |
| | | return { |
| | | dialogTile: '', |
| | | dialogVisible: false, |
| | | tableData: [], |
| | | pages: { |
| | | total: 0, |
| | | size: 10, |
| | | current: 1 |
| | | } |
| | | } |
| | | }, |
| | | |
| | | mounted () { |
| | | global.viewer.on(global.DC.MouseEventType.CLICK, this.viewerClick) |
| | | }, |
| | | |
| | | methods: { |
| | | /** |
| | | * @description: 计算下标 |
| | | * @param {*} index |
| | | * @return {*} |
| | | */ |
| | | indexMethod (index) { |
| | | return index * 2 |
| | | }, |
| | | |
| | | /** |
| | | * @description: viewer点击 |
| | | * @param {*} e |
| | | * @return {*} |
| | | */ |
| | | viewerClick (e) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * @description: 弹窗关闭 |
| | | * @return {*} |
| | | */ |
| | | beforClose () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * @description: 视频播放 |
| | | * @return {*} |
| | | */ |
| | | play () { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * @description: 分页切换 |
| | | * @return {*} |
| | | */ |
| | | handleCurrentChange () { |
| | | |
| | | } |
| | | }, |
| | | |
| | | destory () { |
| | | global.viewer.off(global.DC.MouseEventType.CLICK, this.viewerClick) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped></style> |