123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- <template>
- <!-- 螺纹头 -->
- <view class="equipmentDtl">
- <commons-header title="螺纹头"></commons-header>
- <view class="equ-img">
- <image src="../../static/images/icon_dqwd.png" mode=""></image>
- <view class="err-modal">
- <image src="../../static/images/icon_dqwd.png" mode=""></image>
- </view>
- </view>
- <view class="state">
- <view class="state-box">
- <image src="../../static/icon_sbzt.png" mode=""></image>
- <view class="text">
- <view class="label">
- 设备状态
- </view>
- <view class="state-text">
- 正常
- </view>
- </view>
- </view>
- <view class="state-box">
- <image src="../../static/icon_gzms.png" mode=""></image>
- <view class="text">
- <view class="label">
- 设备状态
- </view>
- <view class="state-text">
- 正常
- </view>
- </view>
- </view>
- </view>
- <view class="echarts">
- <view class="title">
- <image src="../../static/icon_clsj@2x.png" mode=""></image>
- <span>产量数据</span>
- </view>
- <view class="content">
- <view class="text">
- 12小时产量
- </view>
- <qiun-data-charts type="line" :opts="opts" :chartData="chartData" />
- </view>
- </view>
- <view class="parts-list">
- <ul>
- <li>
- <image src="../../static/icon_bpq.png" mode=""></image>
- <view>
- 变频器启动
- </view>
- <view class="before succes">
- </view>
- </li>
- <li>
- <image src="../../static/icon_yskqzf.png" mode=""></image>
- <view>
- 压缩空气总阀
- </view>
- <view class="before">
- </view>
- </li>
- <li>
-
- <image src="../../static/icon_flp.png" mode=""></image>
- <view>
- 分离盘
- </view>
- <view class="before">
- </view>
- </li>
- </ul>
- </view>
- <view class="parts-list-2">
- <view class="parts-list-2-box">
- <image src="../../static/icon_mjzt.png" mode=""></image>
- <view class="">
- 1#喷油阀
- </view>
- <view class="before">
- </view>
- </view>
- <view class="parts-list-2-box">
- <image src="../../static/icon_mjzt.png" mode=""></image>
- <view class="text">
- 2喷油阀
- </view>
- <view class="before">
- </view>
- </view>
- <view class="parts-list-2-box">
- <image src="../../static/icon_mjzt.png" mode=""></image>
- <view class="">
- 3#喷油阀
- </view>
- <view class="before">
- </view>
- </view>
- <view class="parts-list-2-box">
- <image src="../../static/icon_mjzt.png" mode=""></image>
- <view class="text">
- 4#喷油阀
- </view>
- <view class="before">
- </view>
- </view>
- <view class="parts-list-2-box">
- <image src="../../static/icon_pl.png" mode=""></image>
- <view class="">
- 2#工位振动盘
- </view>
- <view class="before">
- </view>
- </view>
- <view class="parts-list-2-box">
- <image src="../../static/icon_pl.png" mode=""></image>
- <view class="text">
- 3#工位振动盘
- </view>
- <view class="before">
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- getInfo
- } from "@/util/api.js";
- import Vue from 'vue'
- import commonsHeader from '../../components/commons-header/index.vue'
- export default {
- components: {
- commonsHeader
- },
- data() {
- return {
- userInfoData: [],
- notificationData: [],
- opts: {
- color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
- "#ea7ccc"
- ],
- padding: [15, 10, 0, 15],
- legend: {},
- xAxis: {
- disableGrid: true
- },
- yAxis: {
- gridType: "dash",
- dashLength: 2
- },
- extra: {
- line: {
- type: "straight",
- width: 2
- }
- }
- },
- chartData: {
- categories: ["2016", "2017", "2018", "2019", "2020", "2021"],
- series: [{
- name: "产量A",
- data: [35, 8, 25, 37, 4, 20]
- },
- {
- name: "产量B",
- data: [70, 40, 65, 100, 44, 68]
- }
- ]
- }
- }
- },
- onLoad() {
- const v = this
- // v.$post('/wx/login/getUserInfo').then(res => {
- // v.userInfoData = res.data
- // Vue.prototype.$userInfo = res.data
- // uni.setStorage({
- // key: "userInfo",
- // data: res.data,
- // success(res) {
- // },
- // fail(res) {}
- // })
- // })
- // v.$post('/wx/message/notification',{}).then(res=>{
- // v.notificationData = res.data
- // })
- },
- methods: {
- toRouter(j) {
- console.log(j)
- uni.navigateTo({
- url: '/pages/' + j.menuKey + '/' + j.menuKey
- })
- },
- },
- }
- </script>
- <style lang="less">
- .equipmentDtl {
- background-color: #f0f0f0;
- min-height: 100vh;
- margin-top: 128rpx;
- .parts-list-2{
- padding: 20rpx 24rpx;
- display: flex;
- justify-content: space-between;
- flex-flow: row wrap;
- .parts-list-2-box{
- width: 49%;
- height: 140rpx;
- background-color: #fff;
- border-radius: 10rpx;
- display: flex;
- padding: 20rpx 24rpx;
- line-height: 90rpx;
- box-sizing: border-box;
- position: relative;
- margin-bottom: 20rpx;
- font-size: 28rpx;
- image{
- width: 100rpx;
- height: 100rpx;
- margin-right: 20rpx;
- }
- }
- .before{
- width: 30rpx;
- height: 30rpx;
- border-radius: 50%;
- background-color: rgba(204,204,204,0.2);
-
- display: block;
- position: absolute;
- right: 16rpx;
- top: 16rpx;
-
- }
- .before::before{
- position: absolute;
- display: block;
- top: 7rpx;
- left: 7rpx;
- width: 19rpx;
- height: 19rpx;
- border-radius: 50%;
- content:" ";
- background: #cccccc;
-
- }
- .before.succes{
- background-color: rgba(63,191,49,0.2);
- }
- .before.succes::before{
- background: #3FBF31;
- }
- }
- .parts-list{
- padding: 0 24rpx;
- margin-top: 24rpx;
- ul{
- display: flex;
- justify-content: space-between;
- }
- li{
- width: 32%;
- padding: 30rpx 0;
- text-align: center;
- position: relative;
- background-color: #fff;
- image{
- width: 60rpx;
- height: 60rpx;
- display: block;
- margin: 0 auto 20rpx;
- }
- }
- .before{
- width: 30rpx;
- height: 30rpx;
- border-radius: 50%;
- background-color: rgba(204,204,204,0.2);
-
- display: block;
- position: absolute;
- right: 16rpx;
- top: 16rpx;
-
- }
- .before::before{
- position: absolute;
- display: block;
- top: 7rpx;
- left: 7rpx;
- width: 19rpx;
- height: 19rpx;
- border-radius: 50%;
- content:" ";
- background: #cccccc;
-
- }
- .before.succes{
- background-color: rgba(63,191,49,0.2);
- }
- .before.succes::before{
- background: #3FBF31;
- }
- }
- .echarts {
- background: #fff;
- margin: 24rpx 24rpx 0;
- .content{
-
- .text{
- font-size: 28rpx;
- font-weight: 700;
- color: #333;
- text-align: center;
- margin-bottom: 40rpx;
- }
- }
- .title{
- font-size: 28rpx;
- height: 90rpx;
- line-height: 90rpx;
- display: flex;
- padding: 0 24rpx;
- font-weight: 500;
- image{
- width: 40rpx;
- height: 40rpx;
- margin-top: 25rpx;
- margin-right: 16rpx;
- }
- }
- }
- .parts-list {}
- .equ-img {
- padding: 24rpx;
- background-color: #ffffff;
- position: relative;
- image {
- width: 100%;
- height: 395rpx;
- }
- .err-modal{
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- background: rgba(0,0,0,0.60);
- text-align: center;
- display: flex;
- align-items: center;
-
- image{
- width: 160rpx;
- height: 160rpx;
- margin: 0 auto;
- }
- }
- }
- .state {
- display: flex;
- justify-content: space-between;
- margin: 24rpx 24rpx 0;
- .state-box {
- padding: 20rpx;
- width: 48%;
- background-color: #fff;
- display: flex;
- box-sizing: border-box;
- border-radius: 10rpx;
- .text{
- padding: 12rpx 0;
- }
- .state-text{
- font-size: 32rpx;
- font-weight: bold;
- margin-top: 5rpx;
- }
- .label{
- font-weight: 400;
- font-size: 28rpx;
- }
- image {
- width: 110rpx;
- height: 110rpx;
- }
- }
- }
- }
- </style>
|