src/assets/icons/setting.png | 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/permission.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/screen/components/screen-table/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/screen/components/screen-wrapper/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/screen/components/select-item/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/screen/components/wrapper-title/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/assets/icons/setting.png
src/permission.js
@@ -8,7 +8,7 @@ NProgress.configure({ showSpinner: false }) const whiteList = ['/login', '/register'] const whiteList = ['/login', '/register', '/screen'] router.beforeEach((to, from, next) => { NProgress.start() src/views/screen/components/screen-table/index.vue
@@ -1,71 +1,81 @@ <template> <div class="table-container"> <wrapper-title :title="'区域设备数据'" :path="'/monitorServe/face'"></wrapper-title> <div class="table-content" ref="tabContent"> <el-table :data="tableData" border :height="tableHeight" :max-height="tableHeight" class="rank-table"> <el-table-column prop="name" label="地区" align="center" width="100"> </el-table-column> <div class="table-wrapper"> <el-table :data="tableData" border :height="tableHeight" :max-height="tableHeight" class="rank-table"> <el-table-column prop="name" label="地区" align="center" width="100"> </el-table-column> <el-table-column label="人脸设备正常率" align="center"> <template slot-scope="scope"> <el-tooltip placement="top"> <div slot="content"> <div class="tip-item"> <div class="tip-label">设备正常数:</div> <div class="tip-info tip-success">12</div> <el-table-column label="人脸设备正常率" align="center"> <template slot-scope="scope"> <el-tooltip placement="top"> <div slot="content"> <div class="tip-item"> <div class="tip-label">设备正常数:</div> <div class="tip-info tip-success">12</div> </div> <div class="tip-item"> <div class="tip-label">设备异常数:</div> <div class="tip-info tip-danger">4</div> </div> </div> <div class="tip-item"> <div class="tip-label">设备异常数:</div> <div class="tip-info tip-danger">4</div> </div> </div> <div class="tip-num">75%</div> </el-tooltip> </template> </el-table-column> <div class="tip-num">75%</div> </el-tooltip> </template> </el-table-column> <el-table-column label="车辆设备正常率" align="center"> <template slot-scope="scope"> <el-tooltip placement="top"> <div slot="content"> <div class="tip-item"> <div class="tip-label">设备正常数:</div> <div class="tip-info tip-success">12</div> <el-table-column label="车辆设备正常率" align="center"> <template slot-scope="scope"> <el-tooltip placement="top"> <div slot="content"> <div class="tip-item"> <div class="tip-label">设备正常数:</div> <div class="tip-info tip-success">12</div> </div> <div class="tip-item"> <div class="tip-label">设备异常数:</div> <div class="tip-info tip-danger">4</div> </div> </div> <div class="tip-item"> <div class="tip-label">设备异常数:</div> <div class="tip-info tip-danger">4</div> </div> </div> <div class="tip-num">75%</div> </el-tooltip> </template> </el-table-column> <div class="tip-num">75%</div> </el-tooltip> </template> </el-table-column> <el-table-column label="视频设备正常率" align="center"> <template slot-scope="scope"> <el-tooltip placement="top"> <div slot="content"> <div class="tip-item"> <div class="tip-label">设备正常数:</div> <div class="tip-info tip-success">12</div> <el-table-column label="视频设备正常率" align="center"> <template slot-scope="scope"> <el-tooltip placement="top"> <div slot="content"> <div class="tip-item"> <div class="tip-label">设备正常数:</div> <div class="tip-info tip-success">12</div> </div> <div class="tip-item"> <div class="tip-label">设备异常数:</div> <div class="tip-info tip-danger">4</div> </div> </div> <div class="tip-item"> <div class="tip-label">设备异常数:</div> <div class="tip-info tip-danger">4</div> </div> </div> <div class="tip-num">75%</div> </el-tooltip> </template> </el-table-column> </el-table> <div class="tip-num">75%</div> </el-tooltip> </template> </el-table-column> </el-table> </div> </div> </div> </template> <script> import WrapperTitle from '../wrapper-title/index'; export default { name: 'ScreenTable', components: { WrapperTitle }, data() { return { tableHeight: 40, @@ -137,14 +147,18 @@ // flex: 1; height: 350px; position: relative; background: rgba(67, 102, 155, 0.3); border: 1px solid rgba(47, 91, 157, 0.8); display: flex; flex-direction: column; .table-content { position: absolute; width: 100%; top: 0; bottom: 0; flex: 1; background: rgba(67, 102, 155, 0.3); border: 1px solid rgba(47, 91, 157, 0.8); // position: absolute; // width: 100%; // top: 0; // bottom: 0; } } src/views/screen/components/screen-wrapper/index.vue
@@ -1,8 +1,8 @@ <template> <div class="wrapper-container"> <select-item></select-item> <div class="return-button"> <el-button type="primary" @click="returnPath">管理系统</el-button> <div class="return-button" @click="returnPath"> 返回 </div> <div class="wrapper-content"> <div class="left-container wrapper"> @@ -25,8 +25,8 @@ <script> import SelectItem from '../select-item/index'; import ScreenFace from '../screen-face/index'; import ScreenExamine from '../screen-examine/index'; import ScreenFace from '../screen-face/index'; import ScreenVideo from '../screen-video/index'; import ScreenCar from '../screen-car/index'; import ScreenMap from '../screen-map/index'; @@ -35,12 +35,12 @@ name: 'ScreenWrapper', components: { SelectItem, ScreenFace, ScreenExamine, ScreenVideo, ScreenCar, ScreenMap, ScreenTable ScreenTable, ScreenFace, ScreenVideo, ScreenCar }, methods: { returnPath() { @@ -54,7 +54,13 @@ .return-button { position: absolute; right: 20px; top: 40px; top: 10px; border-radius: 4px; border: 1px solid #4481DD; background-color: rgba(67, 102, 155, 0.4); color: #4481DD; padding: 5px 20px; cursor: pointer; } .wrapper-container { @@ -67,8 +73,8 @@ .wrapper-content { width: 100%; height: calc(100% - 100px); margin-top: 100px; height: calc(100% - 60px); margin-top: 60px; position: relative; box-sizing: border-box; padding: 20px; @@ -79,7 +85,7 @@ } .wrapper { width: 20%; width: 23%; height: 100%; box-sizing: border-box; padding: 0 10px; @@ -97,7 +103,7 @@ } .center-wrapper { width: 60%; width: 54%; height: 100%; box-sizing: border-box; padding: 0 10px; src/views/screen/components/select-item/index.vue
@@ -87,7 +87,7 @@ <style lang="scss" scoped> .select-container { position: absolute; top: 40px; top: 10px; left: 20px; display: flex; align-items: center; src/views/screen/components/wrapper-title/index.vue
@@ -3,11 +3,12 @@ <span class="title">{{ title }}</span> <div class="more-button" v-if="path" @click="toPath"> <dv-border-box-12> <div class="button-text"> 详情 </div> </dv-border-box-12> <div class="icon"> <img src="@/assets/icons/setting.png" alt=""> </div> <div class="button-text"> 查看更多 </div> </div> </div> </template> @@ -26,7 +27,7 @@ } }, methods: { toPath () { toPath() { this.$router.push(this.path); } } @@ -56,9 +57,19 @@ } .more-button { width: 100px; height: 40px; cursor: pointer; display: flex; align-items: center; .icon { width: 20px; margin-top: 4px; margin-right: 2px; img { width: 100%; display: block; } } .button-text { width: 100%; @@ -67,7 +78,7 @@ justify-content: center; align-items: center; color: #ffffff81; font-size: 20px; font-size: 16px; } } }