1、新增MDC车间看板入口以及看板页面
2、新增大屏插件dataV和拖拽插件vue-drag-resize
| | |
| | | "dependencies": { |
| | | "@antv/data-set": "^0.11.4", |
| | | "@jeecg/antd-online-mini": "3.4.3-beta2", |
| | | "@jiaminghi/data-view": "^2.10.0", |
| | | "@tinymce/tinymce-vue": "2.1.0", |
| | | "@toast-ui/editor": "^2.1.2", |
| | | "ant-design-vue": "^1.7.2", |
| | |
| | | "vue-area-linkage": "^5.1.0", |
| | | "vue-calendar-component": "^2.8.2", |
| | | "vue-cropper": "^0.5.4", |
| | | "vue-drag-resize": "^1.5.4", |
| | | "vue-i18n": "^8.7.0", |
| | | "vue-loader": "^15.7.0", |
| | | "vue-ls": "^3.2.0", |
| | |
| | | "@vue/cli-service": "^3.3.0", |
| | | "@vue/eslint-config-standard": "^4.0.0", |
| | | "babel-eslint": "7.2.3", |
| | | "compression-webpack-plugin": "^3.1.0", |
| | | "eslint": "^5.16.0", |
| | | "eslint-plugin-vue": "^5.1.0", |
| | | "html-webpack-plugin": "^4.2.0", |
| | | "less": "^3.9.0", |
| | | "less-loader": "^4.1.0", |
| | | "vue-template-compiler": "^2.6.10", |
| | | "html-webpack-plugin": "^4.2.0", |
| | | "compression-webpack-plugin": "^3.1.0" |
| | | "vue-template-compiler": "^2.6.10" |
| | | }, |
| | | "eslintConfig": { |
| | | "root": true, |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/MdcWorkshopSignage/:id', |
| | | component: () => import('@/views/mdc/base/MdcWorkshopSignage.vue') |
| | | }, |
| | | { |
| | | path: '/404', |
| | | component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404') |
| | | }, |
| | |
| | | import { rules } from '@/utils/rules' |
| | | import * as echarts from 'echarts' |
| | | |
| | | // å°èªå¨æ³¨åææç»ä»¶ä¸ºå
¨å±ç»ä»¶ |
| | | import dataV from '@jiaminghi/data-view' |
| | | Vue.use(dataV) |
| | | |
| | | import VueDragResize from "vue-drag-resize" |
| | | Vue.component('vue-drag-resize', VueDragResize) |
| | | |
| | | Vue.prototype.$echarts = echarts |
| | | Vue.prototype.rules = rules |
| | | Vue.config.productionTip = false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <dv-full-screen-container class="full-screen-container"> |
| | | <div> |
| | | <!--页头åºå--> |
| | | <header class="page-header" :style="{height: pageHeaderHeight+'px'}"> |
| | | <a-row style="height: 100%"> |
| | | <a-col :span="7" class="header-left"> |
| | | <a-space> |
| | | <span v-if="!isSwitchChecked">å¼å¯åè½</span> |
| | | <span v-else>å
³éåè½</span> |
| | | <a-switch |
| | | checked-children="å¼" |
| | | un-checked-children="å
³" |
| | | @change="handleSwitchChange" |
| | | v-model="isSwitchChecked" |
| | | :disabled="isSwitchChecked" |
| | | /> |
| | | <a-button type="primary" icon="save" size="large" @click="saveDevicePositionAndSizeByApi">ä¿åä½ç½®</a-button> |
| | | </a-space> |
| | | </a-col> |
| | | |
| | | <a-col :span="10" class="workshop-name">{{ workshopDetails.workshopName }}</a-col> |
| | | |
| | | <a-col :span="7" class="device-status-info"> |
| | | <!--<a-space v-for="item in deviceStatusList" :key="item.value" class="single-status-info"--> |
| | | <!--@click="handleScreenDevive(item)">--> |
| | | <!--<div :style="{color:item.checked?'#1890FF':'#fff'}">{{ item.label }}</div>--> |
| | | <!--<div class="status-square" :style="{ backgroundColor: item.color }"></div>--> |
| | | <!--<!–<a-checkbox :checked="item.checked" @change="checkboxChange(item)"></a-checkbox>–>--> |
| | | <!--<div>{{getDeviceNumberByStatus(item.value) }}</div>--> |
| | | <!--</a-space>--> |
| | | <a-space v-for="item in deviceStatusList" :key="item.value" class="single-status-info"> |
| | | <div :style="{color:item.checked?'#1890FF':'#fff'}">{{ item.label }}</div> |
| | | <div class="status-square" :style="{ backgroundColor: item.color }"></div> |
| | | <!--<a-checkbox :checked="item.checked" @change="checkboxChange(item)"></a-checkbox>--> |
| | | <div>{{getDeviceNumberByStatus(item.value) }}</div> |
| | | </a-space> |
| | | </a-col> |
| | | </a-row> |
| | | </header> |
| | | |
| | | <!--ææ½è®¾å¤åºå--> |
| | | <div class="content-container" ref="deviceContainerRef" style="overflow: auto"> |
| | | <img :src="imgSrc" width="1920" height="900"> |
| | | <div class="guideline guidelineX" :style="{top:guidelineXTop+'px',display:showGuideline}"></div> |
| | | <div class="guideline guidelineY" :style="{left:guidelineYLeft+'px',display:showGuideline}"></div> |
| | | <VueDragResize |
| | | v-for="(item, index) in deviceList" |
| | | :key="item.equipmentId" |
| | | :w="item.vw" |
| | | :h="item.vh" |
| | | :x="item.coordinateLeft" |
| | | :y="item.coordinateTop" |
| | | v-on:resizing="resize($event, index)" |
| | | v-on:dragging="resize($event, index)" |
| | | :parentLimitation="parentLimitation" |
| | | :parentH="parentH" |
| | | :parentW="parentW" |
| | | :minw="70" |
| | | :minh="70" |
| | | :isDraggable="isDraggable" |
| | | :isResizable="isResizable" |
| | | :stickSize="6" |
| | | @deactivated="showGuideline = 'none'" |
| | | > |
| | | <div class="single-device" :style="{ width: item.vw + 'px', height: item.vh + 'px' }" |
| | | @click="openDetail(item)"> |
| | | <div class="device-status"> |
| | | <div |
| | | v-if="item.equipmentStatus == 2 || item.equipmentStatus == 1" |
| | | :style="{ backgroundImage: `url(${require('@/assets/yellow.png')})` }" |
| | | class="status-image" |
| | | ></div> |
| | | <div |
| | | v-if="item.equipmentStatus == 22" |
| | | :style="{ backgroundImage: `url(${require('@/assets/red.png')})` }" |
| | | class="status-image" |
| | | ></div> |
| | | <div |
| | | v-if="item.equipmentStatus == 0" |
| | | :style="{ backgroundImage: `url(${require('@/assets/gray.png')})` }" |
| | | class="status-image" |
| | | ></div> |
| | | <div |
| | | v-if="item.equipmentStatus == 3" |
| | | :style="{ backgroundImage: `url(${require('@/assets/green.png')})` }" |
| | | class="status-image" |
| | | ></div> |
| | | <div |
| | | :style="{ backgroundImage: `url(${getImgView(item.equipmentImage)})` }" |
| | | class="device-image" |
| | | ></div> |
| | | </div> |
| | | <div class="device-id" id="deviceId" |
| | | :style="{ color:workshopDetails.equipmentIdColor }"> |
| | | {{ item.equipmentId }} |
| | | </div> |
| | | </div> |
| | | </VueDragResize> |
| | | </div> |
| | | |
| | | <EquipmentDetailModal ref="EquipmentDetailModal"></EquipmentDetailModal> |
| | | </div> |
| | | </dv-full-screen-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import VueDragResize from 'vue-drag-resize' |
| | | import api from '@/api/mdc' |
| | | import { getFileAccessHttpUrl } from '@/api/manage' |
| | | import EquipmentDetailModal from './modules/WorkshopSignage/EquipmentDetailModal' |
| | | import { message } from 'ant-design-vue' |
| | | |
| | | message.config({ |
| | | maxCount: 3 |
| | | }) |
| | | |
| | | export default { |
| | | components: { |
| | | VueDragResize, |
| | | EquipmentDetailModal |
| | | }, |
| | | data() { |
| | | return { |
| | | pageHeaderHeight: 80,// 页头é«åº¦ |
| | | workshopDetails: {}, // 车é´è¯¦ç»ä¿¡æ¯, |
| | | isDraggable: false, // æ¯å¦å¼å¯ææ½ |
| | | isResizable: false, // æ¯å¦å¼å¯ç¼©æ¾ |
| | | isSwitchChecked: false, // æ¯å¦å¼å¯åè½ |
| | | timingAcquisition: null, // 宿¶å·æ°æ¯å¦å¼å¯ |
| | | parentH: 5000,//ç¶çº§é«åº¦ |
| | | parentW: 1920,//ç¶çº§å®½åº¦ |
| | | showGuideline: 'none', |
| | | guidelineXTop: 0, |
| | | guidelineYLeft: 0, |
| | | deviceList: [ |
| | | // { |
| | | // equipmentId: '123213213123232',// 设å¤ID |
| | | // equipmentImage: require('@/assets/8.png'), // 设å¤å¾ç |
| | | // coordinateTop: 200, // ææ½å
ç´ è·çåé¡¶è·ç¦» |
| | | // coordinateLeft: 100, // ææ½å
ç´ è·çå左侧è·ç¦» |
| | | // vw: 100, // 缩æ¾å
ç´ å®½åº¦ |
| | | // vh: 100, // 缩æ¾å
ç´ é«åº¦ |
| | | // equipmentStatus: 1 // 设å¤ç¶æ 0:å
³æº 22:æ¥è¦ 2:å¾
æº 3:è¿è¡ 弿º:1ï¼æ²¡æåè²ç¯æ è¯å½ä¸ºå¾
æºï¼ |
| | | // } |
| | | ], // 设å¤ä¿¡æ¯å表 |
| | | deviceList_copy: [], |
| | | deviceStatusList: [ |
| | | // { |
| | | // label: 'å
¨é¨', |
| | | // value: 99, |
| | | // color: '#fff', |
| | | // checked: true |
| | | // }, |
| | | { |
| | | label: 'å
³æº', |
| | | value: 0, |
| | | color: '#A8A8A8', |
| | | checked: false |
| | | }, |
| | | { |
| | | label: 'å¾
æº', |
| | | value: 2, |
| | | color: '#FFFF00', |
| | | checked: false |
| | | }, |
| | | { |
| | | label: 'è¿è¡', |
| | | value: 3, |
| | | color: '#00EE00', |
| | | checked: false |
| | | }, |
| | | { |
| | | label: 'æ¥è¦', |
| | | value: 22, |
| | | color: '#FF0000', |
| | | checked: false |
| | | } |
| | | ],// 设å¤ç¶ææç¤ºç¯åè¡¨ï¼ |
| | | windowHeight: null,// å½åæµè§å¨å¯è§åºåé«åº¦ï¼ï¼ä¸å
æ¬å·¥å
·æ ã书ç¾ãåºé¨ä»»å¡æ ï¼ |
| | | isFullScreen: false,// è¿å
¥çæ¿é¡µé¢æ¶æ¯å¦ä¸ºå
¨å±æ¨¡å¼ï¼ä¸å
æ¬æ£å¸¸æ¨¡å¼è¿å
¥ååæ¢ä¸ºå
¨å±æ¨¡å¼ |
| | | parentLimitation: false,// ææ½åºåæ¯å¦éå¶å¨ç¶å
ç´ åºåå
, |
| | | checkedStatusCount: null,// å·²å¾éçéç¶æä¸ªæ° |
| | | imgSrc: ''// 车é´å¾çº¸å°å |
| | | } |
| | | }, |
| | | watch: { |
| | | isSwitchChecked: { |
| | | handler(newVal) { |
| | | if (!newVal) { |
| | | console.log('宿¶å¨å¼å¯ä¸') |
| | | this.timingAcquisition = setInterval(() => { |
| | | this.getDeviceListByApi(this.$route.params.id) |
| | | }, 2000) |
| | | } else { |
| | | console.log('å
³é宿¶å¨') |
| | | clearInterval(this.timingAcquisition) |
| | | this.timingAcquisition = null |
| | | } |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * éè¿è½¦é´Idè°ç¨æ¥å£è·å设å¤ä¿¡æ¯å表 |
| | | * @param id 车é´Id |
| | | */ |
| | | getDeviceListByApi(id) { |
| | | console.log('éæ°å·æ°') |
| | | api.getDeviceListInWorkshopSignagePageApi(id).then((res) => { |
| | | if (res.result && res.result.length > 0) { |
| | | this.deviceList = res.result |
| | | this.deviceList_copy = res.result |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * éè¿è½¦é´Idè°ç¨æ¥å£è·å车é´è¯¦ç»ä¿¡æ¯ |
| | | * @param id 车é´Id |
| | | */ |
| | | getWorkshopDetailsByApi(id) { |
| | | api.getWorkshopDetailByWorkshopIdApi(id).then((res) => { |
| | | this.workshopDetails = res.result |
| | | // this.$refs.deviceContainerRef.style.backgroundImage = `url(${this.getImgView( |
| | | // this.workshopDetails.backgroundImage |
| | | // )})` |
| | | this.imgSrc = this.getImgView(this.workshopDetails.backgroundImage) |
| | | this.$refs.deviceContainerRef.style.height = (this.windowHeight - this.pageHeaderHeight) + 'px' |
| | | // this.parentH = this.windowHeight - this.pageHeaderHeight |
| | | this.parentH = 900 |
| | | this.parentLimitation = true // å¨ç¶å
ç´ é«åº¦è®¾ç½®åå设置éå¶ææ½åºåï¼ä¸è¿æ ·ææ¦ç导è´ç¶å
ç´ é«åº¦æªè®¾ç½®å°±éå¶ææ½ |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * å¾çé¢è§ |
| | | * @param text å¾çå°å |
| | | */ |
| | | getImgView(text) { |
| | | if (text && text.indexOf(',') > 0) { |
| | | text = text.substring(0, text.indexOf(',')) |
| | | } |
| | | return getFileAccessHttpUrl(text) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»ä¿åæé®è°ç¨æ¥å£ä¿åææ½åçä½ç½®ä¸è®¾å¤å¾æ 尺寸 |
| | | */ |
| | | saveDevicePositionAndSizeByApi() { |
| | | console.log('触åä¿å') |
| | | if (this.isOperatingDevice) { |
| | | api.saveDevicePositionAndSizeApi(this.deviceList).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | this.isOperatingDevice = false |
| | | if (this.isSwitchChecked) { |
| | | this.isSwitchChecked = false |
| | | this.isResizable = !this.isResizable |
| | | this.isDraggable = !this.isDraggable |
| | | } |
| | | this.getDeviceListByApi(this.$route.params.id) |
| | | } |
| | | }) |
| | | } else { |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: '请å¼å¯åè½ååè¿è¡ä¿å' |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * è®¾å¤ææ½æç¼©æ¾æ¶è§¦åäºä»¶ |
| | | * @param newRect ææ½æç¼©æ¾åç尺寸åè·ç¦» |
| | | * @param index ææ½è®¾å¤å¨æ°ç»ä¸ç䏿 |
| | | */ |
| | | resize(newRect, index) { |
| | | // if (newRect.width > 100) { |
| | | // if (newRect.width / newRect.height < 2) { |
| | | // this.deviceList[index].fontSize = newRect.width / 10 |
| | | // } else { |
| | | // this.deviceList[index].fontSize = newRect.height / 5 |
| | | // } |
| | | // } else { |
| | | // this.deviceList[index].fontSize = 12 |
| | | // } |
| | | this.showGuideline = 'block' |
| | | this.deviceList[index].vw = newRect.width |
| | | this.deviceList[index].vh = newRect.height |
| | | this.deviceList[index].coordinateTop = newRect.top |
| | | this.deviceList[index].coordinateLeft = newRect.left |
| | | this.guidelineXTop = newRect.top + newRect.height / 2 |
| | | this.guidelineYLeft = newRect.left + newRect.width / 2 |
| | | }, |
| | | |
| | | /** |
| | | * æ ¹æ®è®¾å¤ç¶æå¼è·å对åºè®¾å¤æ°é |
| | | * @param value 设å¤ç¶æå¼ |
| | | * @returns {number} è®¾å¤æ°é |
| | | */ |
| | | getDeviceNumberByStatus(value) { |
| | | if (value === 99) return this.deviceList_copy.length |
| | | return this.deviceList_copy.filter((item) => item.equipmentStatus === value).length |
| | | }, |
| | | |
| | | /** |
| | | * å¼å¯åè½è§¦åäºä»¶ |
| | | * @param checked å½åswitchç¶æï¼æ¯å¦å¼å¯ï¼åå§ä¸ºfalse |
| | | */ |
| | | handleSwitchChange(checked) { |
| | | this.isOperatingDevice = true |
| | | this.isResizable = !this.isResizable |
| | | this.isDraggable = !this.isDraggable |
| | | }, |
| | | |
| | | openDetail(item) { |
| | | if (!this.isSwitchChecked) { |
| | | if (item.equipmentStatus == 0) { |
| | | this.$message.warning('设å¤å¤äºå
³æºç¶æï¼') |
| | | return false |
| | | } |
| | | console.log(item) |
| | | console.log(this.$refs.EquipmentDetailModal) |
| | | this.$refs.EquipmentDetailModal.initData(item.equId) |
| | | this.$refs.EquipmentDetailModal.timerModel(item.equId) |
| | | // this.equipMessageTimer = setInterval(() => { |
| | | // setTimeout( this.$refs.equmentDetaiModel.initData(item.equipmentId),0) |
| | | // },1000*10) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * æµè§å¨å°ºå¯¸åçæ¹åæ¶è§¦å |
| | | */ |
| | | handleWindowSizeChange() { |
| | | // this.isFullScreen = !this.isFullScreen |
| | | // if (!this.isFullScreen) location.reload() // å¦æä¸ºå
¨å±æ¨¡å¼ï¼åå¨åæ¢æ¨¡å¼æ¶éæ°å 载页é¢ä»¥éæ°è·åæµè§å¨å¯è§åºåé«åº¦ |
| | | const windowHeight = |
| | | window.innerHeight || |
| | | document.documentElement.clientHeight || |
| | | document.body.clientHeight |
| | | // this.parentH = 99999 |
| | | // const scaleRate = windowHeight / this.windowHeight |
| | | // this.windowHeight = windowHeight |
| | | this.$refs.deviceContainerRef.style.height = (windowHeight - this.pageHeaderHeight) + 'px' |
| | | // const timer = setTimeout(() => { |
| | | // this.deviceList.forEach(item => { |
| | | // item.coordinateTop = item.coordinateTop * scaleRate |
| | | // item.vh = item.vh * scaleRate |
| | | // console.log('vh', item.vh) |
| | | // }) |
| | | // this.parentH = windowHeight - this.pageHeaderHeight |
| | | // console.log('changeDeviceList', this.deviceList) |
| | | // }, 500) |
| | | // console.log('scaleRate', scaleRate) |
| | | }, |
| | | |
| | | checkboxChange(obj) { |
| | | //éè¦å¤ææ¯å¦å¼å¯åè½ï¼ç®çæ¯ä¸ºäºå
³é宿¶å¨é¿å
çéå设å¤è¢«å®æ¶å·æ°çæ°è®¾å¤è¦ç |
| | | if (this.isOperatingDevice) { |
| | | obj.checked = !obj.checked |
| | | if (obj.value !== 99) { |
| | | if (obj.checked) this.checkedStatusCount++ |
| | | else this.checkedStatusCount-- |
| | | } |
| | | |
| | | if (obj.value == 99) { |
| | | this.deviceStatusList.forEach(item => { |
| | | if (item.value !== obj.value) item.checked = obj.checked |
| | | }) |
| | | if (obj.checked) { |
| | | this.deviceList = this.deviceList_copy |
| | | this.checkedStatusCount = this.deviceStatusList.length - 1 |
| | | } else { |
| | | this.deviceList = [] |
| | | this.checkedStatusCount = 0 |
| | | } |
| | | } else { |
| | | this.deviceStatusList.forEach(item => { |
| | | if (item.value === 99) { |
| | | if (this.checkedStatusCount !== this.deviceStatusList.length - 1 || this.checkedStatusCount === 0) item.checked = false |
| | | if (this.checkedStatusCount === this.deviceStatusList.length - 1) item.checked = true |
| | | } |
| | | }) |
| | | if (obj.checked) { |
| | | this.deviceList.push(...this.deviceList_copy.filter(item => item.equipmentStatus === obj.value)) |
| | | } else { |
| | | this.deviceList = this.deviceList.filter(item => item.equipmentStatus !== obj.value) |
| | | } |
| | | } |
| | | } else { |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: '请å¼å¯åè½ååè¿è¡çé' |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | handleScreenDevive(obj) { |
| | | //éè¦å¤ææ¯å¦å¼å¯åè½ï¼ç®çæ¯ä¸ºäºå
³é宿¶å¨é¿å
çéå设å¤è¢«å®æ¶å·æ°çæ°è®¾å¤è¦ç |
| | | if (this.isOperatingDevice) { |
| | | obj.checked = true |
| | | this.deviceList = this.deviceList_copy |
| | | this.deviceStatusList.forEach(item => { |
| | | if (item.value !== obj.value) item.checked = false |
| | | }) |
| | | |
| | | if (obj.value == 99) this.deviceList = this.deviceList_copy |
| | | else this.deviceList = this.deviceList.filter(item => item.equipmentStatus === obj.value) |
| | | |
| | | } else { |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: '请å¼å¯åè½ååè¿è¡çé' |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | if (this.$route.params.id) { |
| | | this.getDeviceListByApi(this.$route.params.id) |
| | | this.getWorkshopDetailsByApi(this.$route.params.id) |
| | | } |
| | | this.checkedStatusCount = this.deviceStatusList.length - 1 |
| | | }, |
| | | mounted() { |
| | | // ç¦æ¢ç¨æ·éä¸å
容 |
| | | document.onselectstart = () => false |
| | | |
| | | this.windowHeight = |
| | | window.innerHeight || |
| | | document.documentElement.clientHeight || |
| | | document.body.clientHeight |
| | | |
| | | // 夿æµè§å¨å¯è§åºåé«åº¦æ¯å¦çäºå辨çï¼è¥ç¸çå表示è¿å
¥æ¶æµè§å¨ä¸ºå
¨å±æ¨¡å¼ |
| | | // if (this.windowHeight === screen.height) this.isFullScreen = true |
| | | |
| | | window.addEventListener('resize', this.handleWindowSizeChange) |
| | | }, |
| | | beforeDestroy() { |
| | | // ç¡®ä¿éæ¯å®æ¶å¨ãäºä»¶ååæ¶èµæº |
| | | clearInterval(this.timingAcquisition) |
| | | this.timingAcquisition = null |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | .full-screen-container { |
| | | background-image: url('../../../assets/Bj.jpg'); |
| | | background-size: 100% 100%; |
| | | color: #fff; |
| | | |
| | | .page-header { |
| | | /*font-size: 50px;*/ |
| | | /*text-align: center;*/ |
| | | /*position: relative;*/ |
| | | |
| | | .header-left { |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | padding-top: 20px; |
| | | } |
| | | |
| | | .workshop-name { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 50px; |
| | | } |
| | | |
| | | .device-status-info { |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | align-items: center; |
| | | padding-top: 20px; |
| | | |
| | | .single-status-info { |
| | | margin: 10px; |
| | | cursor: pointer; |
| | | |
| | | .status-square { |
| | | width: 14px; |
| | | height: 14px; |
| | | border: 1px solid #fff; |
| | | border-radius: 3px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .content-container { |
| | | width: 100%; |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%; |
| | | position: relative; |
| | | |
| | | .guideline { |
| | | position: absolute; |
| | | border: 1px dashed #ccc; |
| | | } |
| | | |
| | | .guidelineX { |
| | | width: 1920px; |
| | | left: 0; |
| | | } |
| | | |
| | | .guidelineY { |
| | | top: 0; |
| | | height: 900px; |
| | | } |
| | | |
| | | .single-device { |
| | | position: absolute; |
| | | border: 1px solid transparent; |
| | | padding: 10px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | cursor: default; |
| | | |
| | | &:active { |
| | | border: 1px solid #1890ff; |
| | | } |
| | | |
| | | .device-status { |
| | | width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | -webkit-align-items: flex-end; |
| | | -moz-align-items: flex-end; |
| | | -ms-align-items: flex-end; |
| | | |
| | | .status-image { |
| | | background-size: 100% 100%; |
| | | background-repeat: no-repeat; |
| | | width: 10px; |
| | | height: 60%; |
| | | margin-right: 5px; |
| | | } |
| | | |
| | | .device-image { |
| | | background-size: 100% 100%; |
| | | background-repeat: no-repeat; |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /deep/ .ant-checkbox-inner { |
| | | background-color: transparent; |
| | | border-color: #fff; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="page-container"> |
| | | <a-list |
| | | :grid="{ gutter: [{xs: 0, sm: 24, md: 24, lg: 56, xl: 64, xxl: 80},20], xs: 1, sm: 2, md: 2, lg: 3, xl: 4, xxl: 4 }" |
| | | :data-source="workshopList"> |
| | | <a-list-item slot="renderItem" slot-scope="item, index"> |
| | | <div class="workshop-name" @click="navigateToWorkshopSignage(item.id)">{{item.workshopName}}</div> |
| | | </a-list-item> |
| | | </a-list> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import api from '@/api/mdc' |
| | | |
| | | export default { |
| | | name: 'WorkshopSignageEntrance', |
| | | data() { |
| | | return { |
| | | indexStyle: 1, |
| | | workshopList: [] |
| | | } |
| | | }, |
| | | created() { |
| | | this.getWorkshopListByApi() |
| | | }, |
| | | methods: { |
| | | /** |
| | | * éè¿è½¦é´Id跳转è³ç¸åºè½¦é´å¤§å±çæ¿ |
| | | * @param id 车é´Id |
| | | */ |
| | | navigateToWorkshopSignage(id) { |
| | | const url = this.$router.resolve(`/MdcWorkshopSignage/${id}`).href |
| | | window.open(url, '_blank') |
| | | }, |
| | | /** |
| | | * è·å车é´å表 |
| | | */ |
| | | getWorkshopListByApi() { |
| | | api.getWorkshopListInHomePageApi().then(res => { |
| | | console.log('res', res) |
| | | if (res.result && res.result.length > 0) { |
| | | this.workshopList = res.result |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | .page-container { |
| | | padding: 30px 30px 0; |
| | | |
| | | .workshop-name { |
| | | width: 100%; |
| | | background: #fff; |
| | | padding: 55px 0; |
| | | border-radius: 20px; |
| | | text-align: center; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | font-size: 30px; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div ref="wrap" @mouseenter="getModalNode"> |
| | | <a-modal |
| | | :title="title" |
| | | width="70%" |
| | | :visible="visible" |
| | | :getContainer="() => this.$refs.wrap" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é" |
| | | wrap-class-name="full-modal" |
| | | centered |
| | | :footer="null" |
| | | > |
| | | <div |
| | | id="mdcEquiInfo" |
| | | style="padding:1px;" |
| | | > |
| | | <table |
| | | width="100%" |
| | | style="border-collapse: separate;border-spacing:0px; color: #fff" |
| | | > |
| | | <tr> |
| | | <td v-if="this.spindlebeilv != null"> |
| | | <div |
| | | class="mdcEquipMon" |
| | | style="width: 250px; height: 200px;margin : 0 auto;padding: 0;" |
| | | align="center" |
| | | > |
| | | 主轴åç |
| | | <div |
| | | id="mdcEquiMoniGauge1" |
| | | ref="chart1" |
| | | style="width: 100%; height: 95%;" |
| | | ></div> |
| | | </div> |
| | | </td> |
| | | <td v-if="this.feedbeilv != null"> |
| | | <div |
| | | class="mdcEquipMon" |
| | | style="width: 210px; height: 180px;margin : 0 auto;" |
| | | align="center" |
| | | > |
| | | è¿ç»åç |
| | | <div |
| | | id="mdcEquiMoniGauge2" |
| | | ref="chart2" |
| | | style="width: 100%; height: 95%;" |
| | | ></div> |
| | | </div> |
| | | </td> |
| | | <td v-if="this.spindleload != null"> |
| | | <div |
| | | class="mdcEquipMon" |
| | | style="width: 210px; height: 180px;margin : 0 auto;" |
| | | align="center" |
| | | >主轴è´è· |
| | | <div |
| | | id="mdcEquiMoniGauge3" |
| | | ref="mdcEquiMoniGauge3" |
| | | style="width: 100%; height: 95%;" |
| | | ></div> |
| | | </div> |
| | | </td> |
| | | <td v-if="this.rapidfeed != null"> |
| | | <div |
| | | class="mdcEquipMon" |
| | | style="width: 210px; height: 180px;margin : 0 auto;" |
| | | align="center" |
| | | >å¿«éè¿ç»åç |
| | | <div |
| | | id="mdcEquiMoniGauge4" |
| | | ref="mdcEquiMoniGauge4" |
| | | style="width: 100%; height: 95%;" |
| | | ></div> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="5"> |
| | | <a-descriptions |
| | | title="åºç¡ä¿¡æ¯" |
| | | :column="4" |
| | | > |
| | | <a-descriptions-item label="设å¤ç¼å·">{{resultData.equipmentID|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="设å¤åç§°">{{resultData.equipmentName|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="IPå°å">{{resultData.equipmentIP|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="端å£å·">{{resultData.dataPort|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="ç³»ç»çæ¬å·">{{resultData.systemVersion|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="驱å¨ç±»å">{{resultData.driveType|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="设å¤åå·">{{resultData.equipmentModel|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="设å¤ç±»å">{{resultData.deviceType|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="设å¤åç">{{resultData.devicePower|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="ææè½´æ°">{{resultData.validAxis|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="æå¤§è½´æ°">{{resultData.maxAxis|formatDescriptionsItem}}</a-descriptions-item> |
| | | <a-descriptions-item label="夿³¨">{{resultData.remark|formatDescriptionsItem}}</a-descriptions-item> |
| | | </a-descriptions> |
| | | |
| | | <!-- <a-descriptions |
| | | title="è¿è¡æ°æ®" |
| | | v-if="driverType != 'LSV2' && driverType != 'ZUOLAN' " |
| | | :column="4" |
| | | > |
| | | <a-descriptions-item label="主轴åç(%)">{{resultData.spindlebeilv}}</a-descriptions-item> |
| | | <a-descriptions-item label="è¿ç»åç(%)">{{resultData.feedbeilv}}</a-descriptions-item> |
| | | <a-descriptions-item label="主轴è´è·(%)">{{resultData.spindleload}}</a-descriptions-item> |
| | | <a-descriptions-item label="主轴转é(rpm)">{{resultData.spindlespeed}}</a-descriptions-item> |
| | | <a-descriptions-item label="è¿ç»é度(mm/min)">{{resultData.feedrate}}</a-descriptions-item> |
| | | </a-descriptions> |
| | | |
| | | <a-descriptions |
| | | title="è¿è¡æ°æ® for lsv2" |
| | | v-if="driverType == 'LSV2'" |
| | | :column="4" |
| | | > |
| | | <a-descriptions-item label="主轴åç(%)">{{resultData.spindlebeilv}}</a-descriptions-item> |
| | | <a-descriptions-item label="è®¾å¤æ£å¸¸è¿è¡æ¶é´">{{resultData.equipmentNormalTime}}</a-descriptions-item> |
| | | <a-descriptions-item label="å¿«éè¿ç»åç(%)">{{resultData.rapidfeed}}</a-descriptions-item> |
| | | <a-descriptions-item label="NCæ£å¸¸è¿è¡æ¶é´">{{resultData.nCNormalTime}}</a-descriptions-item> |
| | | <a-descriptions-item label="è¿ç»åç(%)">{{resultData.feedbeilv}}</a-descriptions-item> |
| | | <a-descriptions-item label="设å¤è¿è¡æ¶é´">{{resultData.equipmentTime}}</a-descriptions-item> |
| | | <a-descriptions-item label="å½ååå
·å·">{{resultData.toolNum}}</a-descriptions-item> |
| | | </a-descriptions> --> |
| | | |
| | | <!-- <a-descriptions |
| | | title="ç¨åºä¿¡æ¯" |
| | | v-if="driverType != 'LSV2' && driverType != 'ZUOLAN' " |
| | | :column="4" |
| | | > |
| | | <a-descriptions-item label="åºåå·">{{resultData.sequencenumber}}</a-descriptions-item> |
| | | <a-descriptions-item |
| | | label="å½åæ§è¡ä»£ç " |
| | | :span="2" |
| | | >{{resultData.executingcode}}</a-descriptions-item> |
| | | <a-descriptions-item label="工件åç§°">{{resultData.productName}}</a-descriptions-item> |
| | | </a-descriptions> --> |
| | | |
| | | <!-- <a-descriptions |
| | | title="ç¨åºä¿¡æ¯ for lsv2" |
| | | v-if="driverType == 'LSV2'" |
| | | :column="4" |
| | | > |
| | | <a-descriptions-item label="å½åç¨åº">{{resultData.program}}</a-descriptions-item> |
| | | <a-descriptions-item label="ç¨åºæ§è¡ç¹">{{resultData.programPosition}}</a-descriptions-item> |
| | | <a-descriptions-item label="æä½æ¨¡å¼">{{resultData.operationType}}</a-descriptions-item> |
| | | <a-descriptions-item label="é误信æ¯ç¼å·ä¸">{{resultData.firstErrorNum}}</a-descriptions-item> |
| | | <a-descriptions-item label="é误信æ¯ä¸">{{resultData.firstError}}</a-descriptions-item> |
| | | <a-descriptions-item label="é误信æ¯">{{resultData.errorinfo}}</a-descriptions-item> |
| | | <a-descriptions-item label="é误信æ¯ç¼å·äº">{{resultData.secondErrorNum}}</a-descriptions-item> |
| | | <a-descriptions-item label="é误信æ¯äº">{{resultData.secondError}}</a-descriptions-item> |
| | | </a-descriptions> --> |
| | | |
| | | <!--<a-descriptions |
| | | title="è½´çæ§æ°æ® fro SIEMENS840DSL" |
| | | v-if="driverType == 'SIEMENS840DSL'" |
| | | :column="4" |
| | | > |
| | | <a-descriptions-item label="X轴温度">{{resultData.temperatureX}}</a-descriptions-item> |
| | | <a-descriptions-item label="Y轴温度">{{resultData.temperatureY}}</a-descriptions-item> |
| | | <a-descriptions-item label="Z轴温度">{{resultData.temperatureZ}}</a-descriptions-item> |
| | | <a-descriptions-item label="A轴温度">{{resultData.temperatureA}}</a-descriptions-item> |
| | | <a-descriptions-item label="B轴温度">{{resultData.temperatureB}}</a-descriptions-item> |
| | | <a-descriptions-item label="Xè½´çµæµ">{{resultData.equipmentCurrentX}}</a-descriptions-item> |
| | | <a-descriptions-item label="Yè½´çµæµ">{{resultData.equipmentCurrentY}}</a-descriptions-item> |
| | | <a-descriptions-item label="Zè½´çµæµ">{{resultData.equipmentCurrentZ}}</a-descriptions-item> |
| | | <a-descriptions-item label="Aè½´çµæµ">{{resultData.equipmentCurrentA}}</a-descriptions-item> |
| | | <a-descriptions-item label="Bè½´çµæµ">{{resultData.equipmentCurrentB}}</a-descriptions-item> |
| | | <a-descriptions-item label="Xè½´éå¨è¯¯å·®">{{resultData.equipmentLagErrorX}}</a-descriptions-item> |
| | | <a-descriptions-item label="Yè½´éå¨è¯¯å·®">{{resultData.equipmentLagErrorY}}</a-descriptions-item> |
| | | <a-descriptions-item label="Zè½´éå¨è¯¯å·®">{{resultData.equipmentLagErrorZ}}</a-descriptions-item> |
| | | <a-descriptions-item label="Aè½´éå¨è¯¯å·®">{{resultData.equipmentLagErrorA}}</a-descriptions-item> |
| | | <a-descriptions-item label="Bè½´éå¨è¯¯å·®">{{resultData.equipmentLagErrorB}}</a-descriptions-item> |
| | | </a-descriptions> |
| | | --> |
| | | <!-- <a-descriptions |
| | | title="åæ ä¿¡æ¯ " |
| | | v-if="driverType == 'FANUC'" |
| | | :column="3" |
| | | > |
| | | <a-descriptions-item label="ç»å¯¹åæ X">{{resultData.xabsolute}}</a-descriptions-item> |
| | | <a-descriptions-item label="ç»å¯¹åæ Y">{{resultData.yabsolute}}</a-descriptions-item> |
| | | <a-descriptions-item label="ç»å¯¹åæ Z">{{resultData.zabsolute}}</a-descriptions-item> |
| | | <a-descriptions-item label="æºåºåæ X">{{resultData.xmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="æºåºåæ Y">{{resultData.ymachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="æºåºåæ Z">{{resultData.zmachine}}</a-descriptions-item> |
| | | </a-descriptions> |
| | | |
| | | <a-descriptions |
| | | title="åæ ä¿¡æ¯ for lsv2" |
| | | v-if="driverType == 'LSV2'" |
| | | :column="4" |
| | | > |
| | | <a-descriptions-item label="Xåæ ">{{resultData.xmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Yåæ ">{{resultData.ymachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Zåæ ">{{resultData.zmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Aåæ ">{{resultData.amachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Båæ ">{{resultData.bmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Cåæ ">{{resultData.cmachine}}</a-descriptions-item> |
| | | </a-descriptions> |
| | | |
| | | <a-descriptions |
| | | title="åæ ä¿¡æ¯ for lsv2" |
| | | v-if="driverType == 'LSV2'" |
| | | :column="4" |
| | | > |
| | | <a-descriptions-item label="Xåæ ">{{resultData.xmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Yåæ ">{{resultData.ymachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Zåæ ">{{resultData.zmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Aåæ ">{{resultData.amachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Båæ ">{{resultData.bmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Cåæ ">{{resultData.cmachine}}</a-descriptions-item> |
| | | </a-descriptions> |
| | | |
| | | <a-descriptions |
| | | title="åæ ä¿¡æ¯" |
| | | v-if="driverType == 'LSV2'" |
| | | :column="4" |
| | | > |
| | | <a-descriptions-item label="Xåæ ">{{resultData.xmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Yåæ ">{{resultData.ymachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Zåæ ">{{resultData.zmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Aåæ ">{{resultData.amachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Båæ ">{{resultData.bmachine}}</a-descriptions-item> |
| | | <a-descriptions-item label="Cåæ ">{{resultData.cmachine}}</a-descriptions-item> |
| | | </a-descriptions> --> |
| | | <!---æ°æ®æºè°æ´ 卿å±ç¤º è¿è¡æ°æ®----> |
| | | |
| | | <a-descriptions |
| | | title="è¿è¡æ°æ®" |
| | | v-show="mdcDriveTypeParamConfigList != null" |
| | | v-if="driverType != 'PLC'" |
| | | :column="4" |
| | | class="operationData" |
| | | > |
| | | |
| | | <a-descriptions-item |
| | | v-for="(item,id) in mdcDriveTypeParamConfigList " |
| | | :key="item.id" |
| | | :label="item.chineseName" |
| | | > |
| | | <a-tooltip @mouseenter="mouseEnterItem"> |
| | | <template slot="title"> |
| | | {{item.value|formatDescriptionsItem}} |
| | | </template> |
| | | <div class="description-item-class">{{item.value|formatDescriptionsItem}}</div> |
| | | </a-tooltip> |
| | | |
| | | </a-descriptions-item> |
| | | |
| | | </a-descriptions> |
| | | |
| | | <!--<a-descriptions--> |
| | | <!--title="åæ ä¿¡æ¯"--> |
| | | <!--v-show="xyzAliasesList != null"--> |
| | | <!--v-if="driverType != 'PLC'"--> |
| | | <!--:column="4"--> |
| | | <!-->--> |
| | | <!--<a-descriptions-item--> |
| | | <!--v-for="(item,id) in xyzAliasesList "--> |
| | | <!--:key="item.id"--> |
| | | <!--:label="item.title"--> |
| | | <!-->{{item.value}}</a-descriptions-item>--> |
| | | <!--</a-descriptions>--> |
| | | |
| | | <!--<a-descriptions--> |
| | | <!--title="çæ¬ä¿¡æ¯ for lsv2"--> |
| | | <!--v-if="driverType == 'LSV2'"--> |
| | | <!--:column="4"--> |
| | | <!--class="lsv2Data"--> |
| | | <!-->--> |
| | | <!--<a-descriptions-item label="NCçæ¬">{{resultData.ncversion}}</a-descriptions-item>--> |
| | | <!--<a-descriptions-item label="TNCçæ¬">{{resultData.tncversion}}</a-descriptions-item>--> |
| | | <!--<a-descriptions-item label="OPTçæ¬">{{resultData.optversion}}</a-descriptions-item>--> |
| | | <!--<a-descriptions-item label="PLCçæ¬">{{resultData.plcversion}}</a-descriptions-item>--> |
| | | <!--</a-descriptions>--> |
| | | |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | <template slot="footer"> |
| | | <a-button |
| | | :style="{ marginRight: '8px' }" |
| | | @click="handleCancel" |
| | | style="color: #1191b0;" |
| | | >å
³é |
| | | </a-button> |
| | | </template> |
| | | </a-modal> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getAction, |
| | | postAction |
| | | } from '@/api/manage' |
| | | import { ajaxGetDictItems, getDictItemsFromCache, duplicateCheck } from '@/api/api' |
| | | import Template1 from '../../../../jeecg/JVxeDemo/layout-demo/Template1' |
| | | |
| | | export default { |
| | | name: 'EqumentDetaiModal', |
| | | components: { Template1 }, |
| | | props: {}, |
| | | data() { |
| | | return { |
| | | mdcDriveTypeParamConfigList: [], |
| | | xyzAliasesList: [], |
| | | title: '', |
| | | //主轴åç |
| | | spindlebeilv: 1, |
| | | //è¿ç»åç |
| | | feedbeilv: 1, |
| | | // 主轴è´è· |
| | | spindleload: 1, |
| | | //å¿«éè¿ç»åç |
| | | rapidfeed: 1, |
| | | visible: false, |
| | | resultData: {}, |
| | | driverType: '', |
| | | deviceTypeDict: '', |
| | | url: { |
| | | mdcEquipmentDetailedInfo: '/mdc/mdcEquipment/mdcEquipmentDetailedInfo' |
| | | }, |
| | | modalTimer: null, |
| | | ee: ' ', |
| | | modalNode: null, |
| | | timeout: null |
| | | } |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | watch: {}, |
| | | filters:{ |
| | | formatDescriptionsItem(value){ |
| | | return value?value:'æ ' |
| | | } |
| | | }, |
| | | methods: { |
| | | drawLine() { |
| | | let _this = this |
| | | if (_this.spindlebeilv) { |
| | | //åºäºåå¤å¥½çdomï¼åå§åechartså®ä¾ |
| | | let mdcEquiMoniGauge1 = this.$echarts.init(document.getElementById('mdcEquiMoniGauge1'), 'macarons') |
| | | let mdcEquiMoniGaugeOption1 = { |
| | | tooltip: { |
| | | formatter: '{a} <br/>{b} : {c}%' |
| | | }, |
| | | |
| | | series: [{ |
| | | name: 'å¤é¨çº¿', |
| | | type: 'gauge', |
| | | radius: '65%', // 卿 |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#31F3FF'] // 卿 |
| | | ], |
| | | width: 1 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { //æ é¢ |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å¤é¨å»åº¦', |
| | | type: 'gauge', |
| | | radius: '80%', |
| | | min: 0, //æå°å»åº¦ |
| | | max: 300, //æå¤§å»åº¦ |
| | | splitNumber: 10, //å»åº¦æ°é |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | show: false, |
| | | lineStyle: { |
| | | color: [ |
| | | [1, 'rgba(0,0,0,0)'] |
| | | ] |
| | | } |
| | | }, //仪表ç轴线 |
| | | axisLabel: { |
| | | show: true, |
| | | color: '#31F3FF', |
| | | fontSize: 10, // 卿 |
| | | distance: -20 // 卿 |
| | | |
| | | }, //å»åº¦æ ç¾ã |
| | | axisTick: { |
| | | show: false |
| | | }, //å»åº¦æ ·å¼ |
| | | splitLine: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å
é¨å®½çº¿æ¡', |
| | | type: 'gauge', |
| | | radius: '55%', |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#122B3C'] |
| | | ], |
| | | width: 4 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å
é¨ç»çº¿æ¡', |
| | | type: 'gauge', |
| | | radius: '40%', |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#122B3C'] |
| | | ], |
| | | width: 3 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'é´éæ¡å½¢', |
| | | type: 'gauge', |
| | | radius: '52.5%', |
| | | z: 4, |
| | | splitNumber: 35, |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | opacity: 0 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | | length: 20, |
| | | splitNumber: 1, |
| | | lineStyle: { |
| | | color: '#122B3C', |
| | | width: 1 |
| | | } |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'æ°æ®', |
| | | type: 'gauge', |
| | | radius: '52.5%', |
| | | z: 3, |
| | | startAngle: 225, |
| | | max: 300, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [_this.spindlebeilv / 300, '#31F3FF'], // 卿 |
| | | [1, '#185363'] |
| | | ], |
| | | width: 4 |
| | | } |
| | | }, |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: true, |
| | | fontWeight: 'bold', |
| | | fontSize: 12, |
| | | color: '#fff' |
| | | }, |
| | | pointer: { |
| | | show: true, |
| | | width: 3, |
| | | itemStyle:{ |
| | | color:'#fff' |
| | | } |
| | | }, |
| | | data: [{ |
| | | name: '', |
| | | value: _this.spindlebeilv |
| | | }] |
| | | }, |
| | | // å
å |
| | | { |
| | | 'name': 'å
åç¯', |
| | | 'type': 'pie', |
| | | 'radius': ['4%', '2%'], |
| | | 'hoverAnimation': false, |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | cursor: 'default', |
| | | 'labelLine': { |
| | | 'normal': { |
| | | 'show': false |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | color: '#fff' |
| | | }, |
| | | animation: false, |
| | | 'data': [1] |
| | | }, |
| | | // å
å |
| | | { |
| | | 'name': 'å
åç¯2', |
| | | 'type': 'pie', |
| | | 'radius': '2%', |
| | | 'hoverAnimation': false, |
| | | cursor: 'default', |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | 'labelLine': { |
| | | 'normal': { |
| | | 'show': false |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | color: '#31F3FF' |
| | | }, |
| | | animation: false, |
| | | 'data': [1] |
| | | } |
| | | ] |
| | | } |
| | | mdcEquiMoniGauge1.setOption(mdcEquiMoniGaugeOption1) |
| | | } |
| | | if (_this.feedbeilv) { |
| | | let mdcEquiMoniGauge2 = this.$echarts.init(document.getElementById('mdcEquiMoniGauge2'), 'macarons') |
| | | let mdcEquiMoniGaugeOption2 = { |
| | | tooltip: { |
| | | formatter: '{a} <br/>{b} : {c}%' |
| | | }, |
| | | |
| | | series: [{ |
| | | name: 'å¤é¨çº¿', |
| | | type: 'gauge', |
| | | radius: '65%', // 卿 |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#31F3FF'] // 卿 |
| | | ], |
| | | width: 1 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { //æ é¢ |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å¤é¨å»åº¦', |
| | | type: 'gauge', |
| | | radius: '80%', |
| | | min: 0, //æå°å»åº¦ |
| | | max: 300, //æå¤§å»åº¦ |
| | | splitNumber: 10, //å»åº¦æ°é |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | show: false, |
| | | lineStyle: { |
| | | color: [ |
| | | [1, 'rgba(0,0,0,0)'] |
| | | ] |
| | | } |
| | | }, //仪表ç轴线 |
| | | axisLabel: { |
| | | show: true, |
| | | color: '#31F3FF', |
| | | fontSize: 10, // 卿 |
| | | distance: -20 // 卿 |
| | | |
| | | }, //å»åº¦æ ç¾ã |
| | | axisTick: { |
| | | show: false |
| | | }, //å»åº¦æ ·å¼ |
| | | splitLine: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å
é¨å®½çº¿æ¡', |
| | | type: 'gauge', |
| | | radius: '55%', |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#122B3C'] |
| | | ], |
| | | width: 4 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å
é¨ç»çº¿æ¡', |
| | | type: 'gauge', |
| | | radius: '40%', |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#122B3C'] |
| | | ], |
| | | width: 3 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'é´éæ¡å½¢', |
| | | type: 'gauge', |
| | | radius: '52.5%', |
| | | z: 4, |
| | | splitNumber: 35, |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | opacity: 0 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | | length: 20, |
| | | splitNumber: 1, |
| | | lineStyle: { |
| | | color: '#122B3C', |
| | | width: 1 |
| | | } |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'æ°æ®', |
| | | type: 'gauge', |
| | | radius: '52.5%', |
| | | z: 3, |
| | | startAngle: 225, |
| | | max: 300, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [_this.feedbeilv / 300, '#31F3FF'], // 卿 |
| | | [1, '#185363'] |
| | | ], |
| | | width: 4 |
| | | } |
| | | }, |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: true, |
| | | fontWeight: 'bold', |
| | | fontSize: 12, |
| | | color: '#fff' |
| | | }, |
| | | pointer: { |
| | | show: true, |
| | | width: 3, |
| | | itemStyle:{ |
| | | color:'#fff' |
| | | } |
| | | }, |
| | | data: [{ |
| | | name: '', |
| | | value: _this.feedbeilv |
| | | }] |
| | | }, |
| | | // å
å |
| | | { |
| | | 'name': 'å
åç¯', |
| | | 'type': 'pie', |
| | | 'radius': ['4%', '2%'], |
| | | 'hoverAnimation': false, |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | cursor: 'default', |
| | | 'labelLine': { |
| | | 'normal': { |
| | | 'show': false |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | color: '#fff' |
| | | }, |
| | | animation: false, |
| | | 'data': [1] |
| | | }, |
| | | // å
å |
| | | { |
| | | 'name': 'å
åç¯2', |
| | | 'type': 'pie', |
| | | 'radius': '2%', |
| | | 'hoverAnimation': false, |
| | | cursor: 'default', |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | 'labelLine': { |
| | | 'normal': { |
| | | 'show': false |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | color: '#31F3FF' |
| | | }, |
| | | animation: false, |
| | | 'data': [1] |
| | | } |
| | | ] |
| | | } |
| | | mdcEquiMoniGauge2.setOption(mdcEquiMoniGaugeOption2) |
| | | } |
| | | if (_this.spindleload) { |
| | | let mdcEquiMoniGauge3 = this.$echarts.init(document.getElementById('mdcEquiMoniGauge3'), 'macarons') |
| | | let mdcEquiMoniGaugeOption3 = { |
| | | tooltip: { |
| | | formatter: '{a} <br/>{b} : {c}%' |
| | | }, |
| | | |
| | | series: [{ |
| | | name: 'å¤é¨çº¿', |
| | | type: 'gauge', |
| | | radius: '65%', // 卿 |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#31F3FF'] // 卿 |
| | | ], |
| | | width: 1 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { //æ é¢ |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å¤é¨å»åº¦', |
| | | type: 'gauge', |
| | | radius: '80%', |
| | | min: 0, //æå°å»åº¦ |
| | | max: 100, //æå¤§å»åº¦ |
| | | splitNumber: 10, //å»åº¦æ°é |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | show: false, |
| | | lineStyle: { |
| | | color: [ |
| | | [1, 'rgba(0,0,0,0)'] |
| | | ] |
| | | } |
| | | }, //仪表ç轴线 |
| | | axisLabel: { |
| | | show: true, |
| | | color: '#31F3FF', |
| | | fontSize: 10, // 卿 |
| | | distance: -20 // 卿 |
| | | |
| | | }, //å»åº¦æ ç¾ã |
| | | axisTick: { |
| | | show: false |
| | | }, //å»åº¦æ ·å¼ |
| | | splitLine: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å
é¨å®½çº¿æ¡', |
| | | type: 'gauge', |
| | | radius: '55%', |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#122B3C'] |
| | | ], |
| | | width: 4 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å
é¨ç»çº¿æ¡', |
| | | type: 'gauge', |
| | | radius: '40%', |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#122B3C'] |
| | | ], |
| | | width: 3 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'é´éæ¡å½¢', |
| | | type: 'gauge', |
| | | radius: '52.5%', |
| | | z: 4, |
| | | splitNumber: 35, |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | opacity: 0 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | | length: 20, |
| | | splitNumber: 1, |
| | | lineStyle: { |
| | | color: '#122B3C', |
| | | width: 1 |
| | | } |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'æ°æ®', |
| | | type: 'gauge', |
| | | radius: '52.5%', |
| | | z: 3, |
| | | startAngle: 225, |
| | | max: 100, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [_this.spindleload / 100, '#31F3FF'], // 卿 |
| | | [1, '#185363'] |
| | | ], |
| | | width: 4 |
| | | } |
| | | }, |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: true, |
| | | fontWeight: 'bold', |
| | | fontSize: 12, |
| | | color: '#fff' |
| | | }, |
| | | pointer: { |
| | | show: true, |
| | | width: 3, |
| | | itemStyle:{ |
| | | color:'#fff' |
| | | } |
| | | }, |
| | | data: [{ |
| | | name: '', |
| | | value: _this.spindleload |
| | | }] |
| | | }, |
| | | // å
å |
| | | { |
| | | 'name': 'å
åç¯', |
| | | 'type': 'pie', |
| | | 'radius': ['4%', '2%'], |
| | | 'hoverAnimation': false, |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | cursor: 'default', |
| | | 'labelLine': { |
| | | 'normal': { |
| | | 'show': false |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | color: '#fff' |
| | | }, |
| | | animation: false, |
| | | 'data': [1] |
| | | }, |
| | | // å
å |
| | | { |
| | | 'name': 'å
åç¯2', |
| | | 'type': 'pie', |
| | | 'radius': '2%', |
| | | 'hoverAnimation': false, |
| | | cursor: 'default', |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | 'labelLine': { |
| | | 'normal': { |
| | | 'show': false |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | color: '#31F3FF' |
| | | }, |
| | | animation: false, |
| | | 'data': [1] |
| | | } |
| | | ] |
| | | } |
| | | mdcEquiMoniGauge3.setOption(mdcEquiMoniGaugeOption3) |
| | | } |
| | | if (_this.rapidfeed) { |
| | | let mdcEquiMoniGauge4 = this.$echarts.init(document.getElementById('mdcEquiMoniGauge4'), 'macarons') |
| | | let mdcEquiMoniGaugeOption4 = { |
| | | tooltip: { |
| | | formatter: '{a} <br/>{b} : {c}%' |
| | | }, |
| | | |
| | | series: [{ |
| | | name: 'å¤é¨çº¿', |
| | | type: 'gauge', |
| | | radius: '65%', // 卿 |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#31F3FF'] // 卿 |
| | | ], |
| | | width: 1 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { //æ é¢ |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å¤é¨å»åº¦', |
| | | type: 'gauge', |
| | | radius: '80%', |
| | | min: 0, //æå°å»åº¦ |
| | | max: 300, //æå¤§å»åº¦ |
| | | splitNumber: 10, //å»åº¦æ°é |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | show: false, |
| | | lineStyle: { |
| | | color: [ |
| | | [1, 'rgba(0,0,0,0)'] |
| | | ] |
| | | } |
| | | }, //仪表ç轴线 |
| | | axisLabel: { |
| | | show: true, |
| | | color: '#31F3FF', |
| | | fontSize: 10, // 卿 |
| | | distance: -20 // 卿 |
| | | |
| | | }, //å»åº¦æ ç¾ã |
| | | axisTick: { |
| | | show: false |
| | | }, //å»åº¦æ ·å¼ |
| | | splitLine: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å
é¨å®½çº¿æ¡', |
| | | type: 'gauge', |
| | | radius: '55%', |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#122B3C'] |
| | | ], |
| | | width: 4 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'å
é¨ç»çº¿æ¡', |
| | | type: 'gauge', |
| | | radius: '40%', |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [1, '#122B3C'] |
| | | ], |
| | | width: 3 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'é´éæ¡å½¢', |
| | | type: 'gauge', |
| | | radius: '52.5%', |
| | | z: 4, |
| | | splitNumber: 35, |
| | | startAngle: 225, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | opacity: 0 |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | | length: 20, |
| | | splitNumber: 1, |
| | | lineStyle: { |
| | | color: '#122B3C', |
| | | width: 1 |
| | | } |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | title: { |
| | | show: false |
| | | } |
| | | }, |
| | | { |
| | | name: 'æ°æ®', |
| | | type: 'gauge', |
| | | radius: '52.5%', |
| | | z: 3, |
| | | startAngle: 225, |
| | | max: 300, |
| | | endAngle: -45, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [_this.rapidfeed / 300, '#31F3FF'], // 卿 |
| | | [1, '#185363'] |
| | | ], |
| | | width: 4 |
| | | } |
| | | }, |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: true, |
| | | fontWeight: 'bold', |
| | | fontSize: 12, |
| | | color: '#fff' |
| | | }, |
| | | pointer: { |
| | | show: true, |
| | | width: 3, |
| | | itemStyle:{ |
| | | color:'#fff' |
| | | } |
| | | }, |
| | | data: [{ |
| | | name: '', |
| | | value: _this.rapidfeed |
| | | }] |
| | | }, |
| | | // å
å |
| | | { |
| | | 'name': 'å
åç¯', |
| | | 'type': 'pie', |
| | | 'radius': ['4%', '2%'], |
| | | 'hoverAnimation': false, |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | cursor: 'default', |
| | | 'labelLine': { |
| | | 'normal': { |
| | | 'show': false |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | color: '#fff' |
| | | }, |
| | | animation: false, |
| | | 'data': [1] |
| | | }, |
| | | // å
å |
| | | { |
| | | 'name': 'å
åç¯2', |
| | | 'type': 'pie', |
| | | 'radius': '2%', |
| | | 'hoverAnimation': false, |
| | | cursor: 'default', |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | 'labelLine': { |
| | | 'normal': { |
| | | 'show': false |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | color: '#31F3FF' |
| | | }, |
| | | animation: false, |
| | | 'data': [1] |
| | | } |
| | | ] |
| | | } |
| | | mdcEquiMoniGauge4.setOption(mdcEquiMoniGaugeOption4) |
| | | } |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | // this.modalNode.removeEventListener('mouseleave', this.closeModal) |
| | | if(this.modalTimer){ |
| | | clearInterval(this.modalTimer) |
| | | this.modalTimer = null |
| | | } |
| | | if (this.timeout) { |
| | | clearTimeout(this.timeout) |
| | | this.timeout = null |
| | | } |
| | | }, |
| | | |
| | | timerModel(id) { |
| | | this.ee = id |
| | | this.modalTimer = setInterval(() => { |
| | | setTimeout(this.initData(this.ee), 0) |
| | | }, 1000 * 4) |
| | | }, |
| | | |
| | | initData(id) { |
| | | let _this = this |
| | | this.visible = true |
| | | // _this.drawLine() |
| | | getAction(this.url.mdcEquipmentDetailedInfo, { id: id }).then((res) => { |
| | | if (res.success) { |
| | | _this.resultData = res.result |
| | | _this.driverType = res.result.deviceType |
| | | _this.spindlebeilv = res.result.spindlebeilv |
| | | _this.feedbeilv = res.result.feedbeilv |
| | | _this.spindleload = res.result.spindleload |
| | | _this.rapidfeed = res.result.rapidfeed |
| | | _this.mdcDriveTypeParamConfigList = res.result.mdcDriveTypeParamConfigList |
| | | _this.xyzAliasesList = res.result.xyzAliasesList |
| | | this.$nextTick(() => { |
| | | _this.drawLine() |
| | | }) |
| | | // _this.initDeviceType(_this.resultData.deviceType) |
| | | } else { |
| | | // _this.$message.warn(res.message) |
| | | _this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getModalNode() { |
| | | // console.log(document.querySelector('.ant-modal-content')) |
| | | // this.modalNode = document.querySelector('.ant-modal-content') |
| | | // this.timeout = setTimeout(() => { |
| | | // this.modalNode.addEventListener('mouseleave', this.closeModal) |
| | | // }, 100) |
| | | }, |
| | | |
| | | closeModal() { |
| | | this.handleCancel() |
| | | }, |
| | | |
| | | mouseEnterItem(e){ |
| | | if (e.target.clientWidth >= e.target.scrollWidth) e.target.style.pointerEvents = 'none' // 黿¢é¼ æ äºä»¶ pointer-events 屿§ç¨äºè®¾ç½®å
ç´ æ¯å¦å¯¹é¼ æ äºä»¶ååºååºã |
| | | } |
| | | }, |
| | | beforeDestroy() { |
| | | clearInterval(this.modalTimer) |
| | | this.modalTimer = null |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | body { |
| | | overflow-y: hidden !important; |
| | | } |
| | | |
| | | .full-modal { |
| | | .ant-modal { |
| | | top: 0; |
| | | padding-bottom: 0; |
| | | margin: 0; |
| | | background-color: #4a4a48 !important; |
| | | opacity: 0.9; |
| | | } |
| | | /deep/ .ant-modal-content { |
| | | display: flex; |
| | | flex-direction: column; |
| | | /*height: calc(100vh);*/ |
| | | background-color: #4a4a48; |
| | | } |
| | | .ant-modal-body { |
| | | flex: 1; |
| | | } |
| | | } |
| | | |
| | | /deep/ .ant-modal-content { |
| | | /*background: -moz-linear-gradient(left, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.27) 100%);*/ |
| | | /*background: -webkit-gradient(linear, left left, right right, color-stop(0%, rgba(0, 0, 0, 0.66)), color-stop(100%, rgba(0, 0, 0, 0.4)));*/ |
| | | /*background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.4) 100%);*/ |
| | | /*background: -o-linear-gradient(left, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.4) 100%);*/ |
| | | /*background: -ms-linear-gradient(left, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.4) 100%);*/ |
| | | /*background: linear-gradient(to right, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.4) 100%);*/ |
| | | background-color: #312c2c; |
| | | opacity: 1; |
| | | } |
| | | |
| | | /deep/ .ant-modal-close { |
| | | color: #1191b0; |
| | | font-size: 24px; |
| | | } |
| | | |
| | | /deep/ .ant-modal-close-x { |
| | | font-size: 24px; |
| | | } |
| | | |
| | | /deep/ .ant-modal-footer { |
| | | border-top: none; |
| | | } |
| | | |
| | | /deep/ .ant-descriptions { |
| | | border: 1px solid #16738d; |
| | | margin: 10px 0; |
| | | } |
| | | |
| | | /deep/ .ant-descriptions-title { |
| | | color: #fff; |
| | | padding: 10px; |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | /*/deep/ .ant-descriptions-view {*/ |
| | | /*padding: 0 20px;*/ |
| | | /*}*/ |
| | | |
| | | /deep/ .ant-descriptions-view .ant-descriptions-row .ant-descriptions-item { |
| | | padding-bottom: 5px; |
| | | } |
| | | |
| | | /deep/ .ant-descriptions-item-colon { |
| | | color: #fff; |
| | | /*width: 5.1vw;*/ |
| | | } |
| | | |
| | | /deep/ .ant-descriptions-item-content { |
| | | color: #fff; |
| | | border: 1px solid #4bcfc8; |
| | | padding: 0 10px; |
| | | min-width: 130px; |
| | | } |
| | | |
| | | .mdcEquipMon { |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-descriptions-item-label{ |
| | | width: 6.7vw; |
| | | text-align: right; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | /deep/ .operationData .ant-descriptions-item-content, |
| | | .lsv2Data .ant-descriptions-item-content |
| | | { |
| | | width: 130px; |
| | | vertical-align: bottom; |
| | | } |
| | | |
| | | .description-item-class{ |
| | | overflow: hidden; |
| | | white-space: nowrap; |
| | | text-overflow: ellipsis; |
| | | } |
| | | </style> |