123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610 |
- <!-- 数据看板-安全隐患 -->
- <template>
- <view class="hazardSources">
- <view class="small-title">
- <view class="small-title-l">安全检查校级巡查计划标题标题标题标题标题</view>
- <img class="small-title-r" src="@/pages/images/dataBoard/icon_06.png">
- </view>
- <view class="chart">
- <view class="chart-t">
- <view class="chart-t-li" :class="chartIndex==index?'color-A':'color-B'" @click="chartClick(index)"
- v-for="(item,index) in chartTitle">{{item}}</view>
- </view>
- <view class="chart-b"></view>
- </view>
- <scroll-view scroll-x @scrolltolower="scrollGet">
- <view class="tabTitle_tow">
- <view class="tabTitle_tow_li" @tap="tabClickTow(item,index)" :key="index"
- v-for="(item,index) in tabTextTow">
- <view :class="{on:curTabTow==index}" class="tabTitle_tow_text">{{item}}</view>
- <view :class="{on:curTabTow==index}" class="tabTitle_tow_across"></view>
- </view>
- </view>
- </scroll-view>
- <!--安全隐患排行 -->
- <view class="table" v-if="chartType==1">
- <view class="table-border">
- <view class="table-th">
- <view class="table-th-li">
- <view>排行</view>
- <view>学院单位</view>
- <view>总隐患</view>
- <view>已整改</view>
- <view>未整改</view>
- <view>暂无法整改</view>
- </view>
- </view>
- <view class="table-tb">
- <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
- <view>{{index}}</view>
- <view>{{item.data1}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- </view>
- </view>
- </view>
- </view>
- <!-- 一级指标排行 -->
- <view class="table-tow" v-if="chartType==2">
- <view class="table-border">
- <view class="table-th">
- <view class="table-th-li">
- <view>序号</view>
- <view>一级指标</view>
- <view>隐患数</view>
- <view>占比</view>
- </view>
- </view>
- <view class="table-tb">
- <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
- <view>{{index}}</view>
- <view>{{item.data1}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- </view>
- </view>
- </view>
- </view>
- <!--学院单位 -->
- <view class="table-three" v-if="chartType==3">
- <view class="table-border">
- <view class="table-th">
- <view class="table-th-li">
- <view>排行</view>
- <view>学院单位</view>
- <view>总隐患</view>
- <view>实验场所</view>
- <view>安全设施</view>
- <view>化学安全</view>
- <view>基础安全</view>
- <view>生物安全</view>
- <view>特种与冷热设备</view>
- </view>
- </view>
- <view class="table-tb">
- <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
- <view>{{index}}</view>
- <view>{{item.data1}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- <view>{{item.data2}}</view>
- </view>
-
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- config
- } from '@/api/request/config.js'
- import {
- } from '@/pages_basics/api/index.js'
- export default {
- name: "hazardSources",
- components: {
- },
- data() {
- return {
- chartType:3,
- chartTitle: ['安全隐患排行', '一级指标排行', '暂无法整改'],
- chartIndex: 0,
- // 查询参数
- queryParams: {
- page: 1,
- pageSize: 10,
- },
- dataList: [{
- data1: '学院学院简称',
- data2: '666',
- },
- {
- data1: '学院学院简称',
- data2: '666',
- },
- {
- data1: '学院学院简称',
- data2: '666',
- },
- {
- data1: '学院学院简称',
- data2: '666',
- },
- ],
- total: 0,
- tabTextTow: ['一级指标', '学院单位'],
- curTabTow: 0,
- }
- },
- created() {
- },
- beforeMount() {
- },
- mounted() {},
- methods: {
- scrollGet(){
-
- },
- chartClick(index) {
- this.chartIndex = index;
- },
- //顶部tab点击
- tabClickTow(item, index) {
- this.curTabTow = index;
- },
- },
- }
- </script>
- <style lang="stylus" scoped>
- .hazardSources {
- height: 100%;
- width: 100%;
- background: #363744;
- .small-title {
- width: 750rpx;
- height: 80rpx;
- background: #3E414F;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 20rpx 0 30rpx;
- box-sizing: border-box;
- margin-top: 2rpx;
- .small-title-l {
- flex: 1;
- font-weight: 400;
- font-size: 30rpx;
- color: #FFFFFF;
- line-height: 42rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .small-title-r {
- width: 14rpx;
- height: 8rpx;
- }
- }
- .chart {
- width: 690rpx;
- height: 520rpx;
- background: #3E414F;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- margin: 20rpx 30rpx 0;
- overflow: hidden;
- .chart-t {
- width: 570rpx;
- height: 50rpx;
- display: flex;
- justify-content: flex-start;
- border: 1rpx solid #52545F;
- border-radius: 10rpx;
- margin: 30rpx 0 0 72rpx;
- .chart-t-li {
- width: 190rpx;
- font-weight: 400;
- font-size: 28rpx;
- line-height: 50rpx;
- text-align: center;
- background: none;
- }
- .chart-t-li:nth-of-type(1) {
- border-right: 1rpx solid #52545F;
- }
- .chart-t-li:nth-of-type(2) {
- border-right: 1rpx solid #52545F;
- }
- .color-A {
- color: #FFFFFF;
- background: #52545F;
- }
- .color-B {
- color: #999999;
- background: none;
- }
- }
- .chart-b {
- width: 630rpx;
- height: 440rpx;
- margin-left: 30rpx;
- }
- }
- .tabTitle_tow {
- width: 750rpx;
- height: 80rpx;
- white-space: nowrap;
- display: inline-flex;
- background: #3E414F;
- margin-top: 20rpx;
- padding-left: 35rpx;
- .tabTitle_tow_li {
- position: relative;
- width: 152rpx;
- height: 80rpx;
- text-align center;
- padding-top: 18rpx;
- box-sizing: border-box;
- .tabTitle_tow_text {
- display: inline-block;
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- line-height: 46rpx;
- position: relative;
- &.on {
- color: #0183FA;
- }
- }
- .tabTitle_tow_across {
- width: 50rpx;
- height: 4rpx;
- background: #0183FA;
- border-radius: 2rpx;
- margin-left: 33%;
- margin-top: 16rpx;
- display none;
- &.on {
- display block;
- }
- }
- }
- }
- .table {
- width: 720rpx;
- margin: 20rpx 0 0 30rpx;
- .table-border {
- width: auto;
- overflow: auto;
- .table-th {
- width: 860rpx;
- padding: 0 30rpx;
- box-sizing: border-box;
- background: rgba(162, 162, 162, 0.2);
- border-radius: 20rpx 20rpx 0rpx 0rpx;
- .table-th-li {
- height: 80rpx;
- display: flex;
- justify-content: flex-start;
- >view {
- font-weight: 400;
- font-size: 30rpx;
- color: #FFFFFF;
- line-height: 80rpx;
- text-align: center;
- margin-right: 38rpx;
- width: 120rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- >view:nth-of-type(1) {
- width: 116rpx;
- text-align: left;
- margin-right: 0;
- }
- >view:nth-of-type(2) {
- width: 168rpx;
- }
- >view:last-child {
- margin-right: 0;
- width: 228rpx;
- }
- }
- }
- .table-tb {
- width: 860rpx;
- background: #3E414F;
- padding: 0 30rpx;
- box-sizing: border-box;
- .table-tb-li {
- height: 80rpx;
- border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
- display: flex;
- justify-content: flex-start;
- >view {
- font-weight: 400;
- font-size: 28rpx;
- color: #FFFFFF;
- line-height: 80rpx;
- text-align: center;
- margin-right: 38rpx;
- width: 120rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- >view:nth-of-type(1) {
- width: 116rpx;
- text-align: left;
- margin-right: 0;
- }
- >view:nth-of-type(2) {
- width: 168rpx;
- }
- >view:last-child {
- margin-right: 0;
- width: 228rpx;
- }
- }
- }
- }
- }
- .table-tow {
- width: 690rpx;
- margin: 20rpx 0 0 30rpx;
- .table-border {
- width: auto;
- overflow: auto;
- .table-th {
- width: 690rpx;
- padding: 0 30rpx;
- box-sizing: border-box;
- background: rgba(162, 162, 162, 0.2);
- border-radius: 20rpx 20rpx 0rpx 0rpx;
- .table-th-li {
- height: 80rpx;
- display: flex;
- justify-content: flex-start;
- >view {
- font-weight: 400;
- font-size: 30rpx;
- color: #FFFFFF;
- line-height: 80rpx;
- text-align: center;
- margin-right: 38rpx;
- width: 120rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- >view:nth-of-type(1) {
- width: 64rpx;
- text-align: left;
- margin-right: 0;
- }
- >view:nth-of-type(2) {
- width: 270rpx;
- }
- >view:last-child {
- margin-right: 0;
-
- }
- }
- }
- .table-tb {
- width: 690rpx;
- background: #3E414F;
- padding: 0 30rpx;
- box-sizing: border-box;
- .table-tb-li {
- height: 80rpx;
- border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
- display: flex;
- justify-content: flex-start;
- >view {
- font-weight: 400;
- font-size: 28rpx;
- color: #FFFFFF;
- line-height: 80rpx;
- text-align: center;
- margin-right: 38rpx;
- width: 120rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- >view:nth-of-type(1) {
- width: 64rpx;
- text-align: left;
- margin-right: 0;
- }
-
- >view:nth-of-type(2) {
- width: 270rpx;
- }
- >view:last-child {
- margin-right: 0;
-
- }
- }
- }
- }
- }
- .table-three {
- width: 720rpx;
- margin: 20rpx 0 0 30rpx;
-
- .table-border {
- width: auto;
- overflow: auto;
-
- .table-th {
- width: 1510rpx;
- padding: 0 30rpx;
- box-sizing: border-box;
- background: rgba(162, 162, 162, 0.2);
- border-radius: 20rpx 20rpx 0rpx 0rpx;
- .table-th-li {
- height: 80rpx;
- display: flex;
- justify-content: flex-start;
-
- >view {
- font-weight: 400;
- font-size: 30rpx;
- color: #FFFFFF;
- line-height: 80rpx;
- text-align: center;
- margin-right: 38rpx;
- width: 120rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- >view:nth-of-type(1) {
- width: 116rpx;
- text-align: left;
- margin-right: 0;
- }
-
- >view:nth-of-type(2) {
- width: 168rpx;
- }
-
- >view:last-child {
- margin-right: 0;
- width: 228rpx;
- }
- }
-
- }
-
-
- .table-tb {
- width: 1510rpx;
- background: #3E414F;
- padding: 0 30rpx;
- box-sizing: border-box;
-
- .table-tb-li {
- height: 80rpx;
- border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
- display: flex;
- justify-content: flex-start;
-
- >view {
- font-weight: 400;
- font-size: 28rpx;
- color: #FFFFFF;
- line-height: 80rpx;
- text-align: center;
- margin-right: 38rpx;
- width: 120rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-
- }
-
- >view:nth-of-type(1) {
- width: 116rpx;
- text-align: left;
- margin-right: 0;
- }
-
- >view:nth-of-type(2) {
- width: 168rpx;
- }
-
- >view:last-child {
- margin-right: 0;
- width: 228rpx;
- }
- }
-
-
- }
- }
-
-
- }
- }
- </style>
|