| | |
| | | |
| | | NProgress.configure({ showSpinner: false }) |
| | | |
| | | const whiteList = ['/login', '/register'] |
| | | const whiteList = ['/login', '/register', '/screen'] |
| | | |
| | | router.beforeEach((to, from, next) => { |
| | | NProgress.start() |
| | |
| | | <template> |
| | | <div class="table-container"> |
| | | <wrapper-title :title="'区域设备数据'" :path="'/monitorServe/face'"></wrapper-title> |
| | | <div class="table-content" ref="tabContent"> |
| | | <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> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import WrapperTitle from '../wrapper-title/index'; |
| | | |
| | | export default { |
| | | name: 'ScreenTable', |
| | | |
| | | components: { |
| | | WrapperTitle |
| | | }, |
| | | data() { |
| | | return { |
| | | tableHeight: 40, |
| | |
| | | // 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; |
| | | } |
| | | } |
| | | |
| | |
| | | <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"> |
| | |
| | | |
| | | <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'; |
| | |
| | | name: 'ScreenWrapper', |
| | | components: { |
| | | SelectItem, |
| | | ScreenFace, |
| | | ScreenExamine, |
| | | ScreenVideo, |
| | | ScreenCar, |
| | | ScreenMap, |
| | | ScreenTable |
| | | ScreenTable, |
| | | ScreenFace, |
| | | ScreenVideo, |
| | | ScreenCar |
| | | }, |
| | | methods: { |
| | | returnPath() { |
| | |
| | | .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 { |
| | |
| | | |
| | | .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; |
| | |
| | | } |
| | | |
| | | .wrapper { |
| | | width: 20%; |
| | | width: 23%; |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | padding: 0 10px; |
| | |
| | | } |
| | | |
| | | .center-wrapper { |
| | | width: 60%; |
| | | width: 54%; |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | padding: 0 10px; |
| | |
| | | <style lang="scss" scoped> |
| | | .select-container { |
| | | position: absolute; |
| | | top: 40px; |
| | | top: 10px; |
| | | left: 20px; |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | <span class="title">{{ title }}</span> |
| | | |
| | | <div class="more-button" v-if="path" @click="toPath"> |
| | | <dv-border-box-12> |
| | | <div class="button-text"> |
| | | 详情 |
| | | <div class="icon"> |
| | | <img src="@/assets/icons/setting.png" alt=""> |
| | | </div> |
| | | </dv-border-box-12> |
| | | <div class="button-text"> |
| | | 查看更多 |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | } |
| | | |
| | | .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%; |
| | |
| | | justify-content: center; |
| | | align-items: center; |
| | | color: #ffffff81; |
| | | font-size: 20px; |
| | | font-size: 16px; |
| | | } |
| | | } |
| | | } |