123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <template>
- <view class="content">
- <view class="item_box" style="background-color: #638BD5;" @click="go_production_report()">
- <view class="img">
- <image src="../t-p-icon/icon_2.png" mode=""></image>
- </view>
- <view class="text">
- <view class="name">生产报表</view>
- <view class="tip">当日产量{{days_output}}吨</view>
- </view>
- </view>
- <view class="item_box" style="background-color: #A3A2E4;" @click="go_personnel_orientation()">
- <view class="img">
- <image src="../t-p-icon/icon_3.png" mode=""></image>
- </view>
- <view class="text">
- <view class="name">人员定位</view>
- <view class="tip">井下人数{{mineall_people}}人</view>
- </view>
- </view>
- <view class="item_box" style="background-color: #8BC8DA;" @click="go_safety_monitoring()">
- <view class="img">
- <image src="../t-p-icon/icon_4.png" mode=""></image>
- </view>
- <view class="text">
- <view class="name">安全监测</view>
- <!-- <view class="tip">6268监测点</view> -->
- </view>
- </view>
- <view class="item_box" style="background-color: #FBB47B;" @click="go_video_monitor()">
- <view class="img">
- <image src="../t-p-icon/icon_6.png" mode=""></image>
- </view>
- <view class="text">
- <view class="name">视频监控</view>
- <view class="tip">工业视频</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: "t-p-lingxin",
- data() {
- return {
- mine:"640181B0011010037973",
- org_num:"1015",
- mine_code:"lingxin",
-
- mineall_people: "",
- days_output: ""
- };
- },
- created() {
- // 井下人数
- this.$p_api.personnel_people_now({
- mine: this.mine
- }).then((res) => {
- this.mineall_people = res.data.data.people_total
- })
-
- // 当日生产
- this.$p_api.coalmine_days_output({
- mine: this.mine,
- org_num: this.org_num
- }).then((res) => {
- this.days_output = res.data.data[0].total
- })
- },
- methods: {
- // 生产报表
- go_production_report() {
- uni.navigateTo({
- url: "../../production/production_report/production_report?mine=" + this.mine + "&org_num=" + this.org_num,
- })
- },
- // 安全监测
- go_safety_monitoring() {
- uni.navigateTo({
- url: "../../production/safety_monitoring/safety_monitoring?mine=" + this.mine
- })
- },
- //人员定位
- go_personnel_orientation() {
- uni.navigateTo({
- url:"../../production/personnel_orientation/personnel_orientation?mine=" + this.mine
- })
- },
- // 视频监控
- go_video_monitor(){
- uni.navigateTo({
- url:"../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .content {
- box-sizing: border-box;
- padding: 20rpx 25rpx 0;
- margin-bottom: 100rpx;
- overflow: hidden;
- .item_box {
- float: left;
- width: 220rpx;
- height: 280rpx;
- margin-right: 20rpx;
- margin-bottom: 20rpx;
- border-radius: 16rpx;
- .img {
- box-sizing: border-box;
- padding-top: 40rpx;
- text-align: center;
- image {
- width: 140rpx;
- height: 140rpx;
- }
- }
- .text {
- text-align: center;
- color: #FFFFFF;
- line-height: 40rpx;
- .name {
- font-size: 28rpx;
- }
- .tip {
- font-size: 24rpx;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- }
- .item_box:nth-child(3n) {
- margin-right: 0;
- }
- }
- </style>
|