123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- <!-- 数据看板-预警处置 -->
- <template>
- <view class="warningDispose">
- <view class="chart">
- <img class="chart-bg" src="@/pages/images/dataBoard/dataBoard-icon4.png">
- <view class="chart-n">
- <view class="chart-t">
- <view class="chart-t-li" @click="dateClick(index)" :class="dateIndex==index?'color-A':'color-B'"
- v-for="(item,index) in dateList">
- <view class="chart-t-li-t">{{item.num}}</view>
- <view class="chart-t-li-b">{{item.letterNUm}}</view>
- </view>
- </view>
- <view class="chart-b">
- <view class="chart-b-li" v-for="(item,index) in deptList" :key="index"
- :style="'top:'+item.top+'rpx;left:'+item.left+'rpx;'">
- <view>{{item.name}}</view>
- <img src="@/pages/images/dataBoard/img_xyzc_bg.png">
- </view>
- </view>
- </view>
- </view>
- <view class="statistics">
- <view class="statistics-b">
- <view class="statistics-b-li">
- <view class="statistics-b-li-t">13</view>
- <view class="statistics-b-li-b">昨日预警处置数</view>
- </view>
- <view class="line"></view>
- <view class="statistics-b-li">
- <view class="statistics-b-li-t">9</view>
- <view class="statistics-b-li-b">今日预警处置数</view>
- </view>
- <view class="line"></view>
- <view class="statistics-b-li">
- <view class="statistics-b-li-t-tow">
- <text class="color-B">0.9%</text>
- <img src="@/pages/images/dataBoard/dataBoard-icon3.png">
- </view>
- <view class="statistics-b-li-b">环比增长</view>
- </view>
- </view>
- </view>
- <view class="table">
- <uni-card>
- <view style="height: 200px">
- <zb-table :columns="column" :stripe="false" :border="false" :data="dataList"></zb-table>
- </view>
- </uni-card>
- </view>
- </view>
- </template>
- <script>
- import {
- config
- } from '@/api/request/config.js'
- import {
- } from '@/pages_basics/api/index.js'
- export default {
- name: "warningDispose",
- components: {
- },
- data() {
- return {
- dateList: [{
- num: '1',
- letterNUm: 'Mon',
- },
- {
- num: '2',
- letterNUm: 'Tue',
- },
- {
- num: '3',
- letterNUm: 'Wed',
- },
- {
- num: '4',
- letterNUm: 'Thur',
- },
- {
- num: '5',
- letterNUm: 'Fri',
- },
- {
- num: '6',
- letterNUm: 'Sat',
- },
- {
- num: '7',
- letterNUm: 'Sun',
- },
- ],
- dateIndex: 0,
- deptList: [{
- name: "农学院",
- value: "0",
- top: 18,
- left: 46,
- },
- {
- name: "理学院",
- value: "0",
- top: 18,
- left: 508,
- },
- {
- name: "化学与药物",
- value: "0",
- top: 100,
- left: 136,
- },
- {
- name: "生命科学",
- value: "0",
- top: 85,
- left: 370,
- },
- {
- name: "园林艺术",
- value: "0",
- top: 146,
- left: 546,
- },
- {
- name: "植物保护",
- value: "0",
- top: 271,
- left: 533,
- },
- {
- name: "资源环境",
- value: "0",
- top: 208,
- left: 42,
- },
- {
- name: "国重楼",
- value: "0",
- top: 200,
- left: 333,
- },
- ],
- // 查询参数
- queryParams: {
- page: 1,
- pageSize: 10,
- },
- column: [{
- type: 'index',
- label: '排行',
- fixed: true,
- width: 60,
- align: 'center',
- },
- {
- name: 'data1',
- label: '学院单位',
- fixed: true,
- width: 80,
- align: 'center',
- },
- {
- name: 'data2',
- label: '总数',
- align: 'center',
- },
- {
- name: 'data3',
- label: '昨日',
- align: 'center',
- },
- {
- name: 'data4',
- label: '今日',
- align: 'center',
- },
- {
- name: 'data5',
- label: '环比',
- align: 'center',
- },
- ],
- dataList: [{
- data1: '植物保护',
- data2: '102',
- data3: '47',
- data4: '22',
- data5: '13',
- },
- {
- data1: '资源环境',
- data2: '74',
- data3: '8',
- data4: '32',
- data5: '18',
- },
- {
- data1: '生命科学',
- data2: '66',
- data3: '28',
- data4: '10',
- data5: '8',
- },
- {
- data1: '园林艺术',
- data2: '56',
- data3: '23',
- data4: '17',
- data5: '5',
- },
- {
- data1: '化学与药物',
- data2: '34',
- data3: '12',
- data4: '11',
- data5: '21',
- },
- ],
- total: 0,
- }
- },
- created() {
- },
- beforeMount() {
- },
- mounted() {},
- methods: {
- dateClick(index) {
- this.dateIndex = index;
- },
- },
- }
- </script>
- <style lang="stylus" scoped>
- .warningDispose {
- height: 100%;
- width: 100%;
- background: #363744;
- padding: 20rpx 0rpx 36rpx;
- box-sizing: border-box;
- .chart {
- width: 750rpx;
- height: 500rpx;
- position: relative;
- .chart-bg {
- width: 750rpx;
- height: 500rpx;
- position: absolute;
- z-index: 100;
- }
- .chart-n {
- padding: 34rpx 0rpx 26rpx;
- box-sizing: border-box;
- position: absolute;
- z-index: 200;
- .chart-t {
- display: flex;
- justify-content: space-between;
- margin: 0 50rpx;
- width: 650rpx;
- .chart-t-li {
- width: 76rpx;
- height: 100rpx;
- .chart-t-li-t {
- font-weight: 400;
- font-size: 30rpx;
- line-height: 42rpx;
- text-align: center;
- margin-top: 8rpx;
- }
- .chart-t-li-b {
- font-weight: 400;
- font-size: 28rpx;
- line-height: 39rpx;
- text-align: center;
- margin-top: 4rpx;
- }
- }
- .color-A {
- background: #0183FA;
- border-radius: 10rpx 10rpx 10rpx 10rpx;
- .chart-t-li-t {
- color: #FFFFFF;
- }
- .chart-t-li-b {
- color: #FFFFFF;
- }
- }
- .color-B {
- background: none;
- .chart-t-li-t {
- color: #FFFFFF;
- }
- .chart-t-li-b {
- color: #FFFFFF;
- }
- }
- }
- .chart-b {
- width: 690rpx;
- height: 350rpx;
- position: absolute;
- .chart-b-li {
- position: absolute;
- z-index: 300;
- width: 200rpx;
- height: 46rpx;
- >img {
- width: 200rpx;
- height: 46rpx;
- position: absolute;
- z-index: 400;
- }
- >view {
- padding-left: 16rpx;
- box-sizing: border-box;
- width: 200rpx;
- height: 46rpx;
- position: absolute;
- z-index: 500;
- font-weight: 400;
- font-size: 24rpx;
- color: #FFFFFF;
- line-height: 46rpx;
- text-align: left;
- }
- }
- }
- }
- }
- .statistics {
- width: 750rpx;
- height: 120rpx;
- background: #3E414F;
- .statistics-b {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .statistics-b-li {
- flex: 1;
- text-align: center;
- .statistics-b-li-t {
- font-weight: 400;
- font-size: 36rpx;
- color: #FFFFFF;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
- .statistics-b-li-t-tow {
- margin-top: 10rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- >text {
- font-weight: 400;
- font-size: 28rpx;
- line-height: 50rpx;
- }
- >img {
- width: 22rpx;
- height: 28rpx;
- }
- }
- .color-A {
- color: #FF0000;
- }
- .color-B {
- color: #2EA805;
- }
- .statistics-b-li-b {
- font-weight: 400;
- font-size: 24rpx;
- color: #FFFFFF;
- line-height: 34rpx;
- margin-top: 9rpx;
- }
- }
- .line {
- width: 2rpx;
- height: 30rpx;
- background: #D8D8D8;
- }
- }
- }
- .table {
- width: 690rpx;
- margin-top: 20rpx;
- border-radius: 20rpx 20rpx 0 0;
- overflow: hidden;
- margin-left: 30rpx;
- }
- }
- </style>
|