1、调整导航栏为侧边模式时的项目标题
2、调整页面顶部栏颜色
3、解决设备报警页面由于缩放引起的组件遮挡文字问题
4、总控车间看板右侧图表调整为自动轮播
5、分控车间看板每日生产计划仅展示3项,完整表格在右上角查看更多中查看
| | |
| | | :type="collapsed ? 'menu-unfold' : 'menu-fold'" |
| | | @click="toggle"/> |
| | | |
| | | <span v-if="device === 'desktop'">欢è¿è¿å
¥ Jeecg-Boot ä¼ä¸çº§ä½ä»£ç å¹³å°</span> |
| | | <span v-if="device === 'desktop'">ä¸å½ä¸æé墿éå
¬å¸</span> |
| | | <span v-else>Jeecg-Boot</span> |
| | | |
| | | <user-menu :theme="theme"/> |
| | |
| | | components: { |
| | | UserMenu, |
| | | SMenu, |
| | | Logo, |
| | | Logo |
| | | }, |
| | | mixins: [mixin], |
| | | props: { |
| | |
| | | headerIndexRight: {}, |
| | | topSmenuStyle: {} |
| | | }, |
| | | chatStatus: '', |
| | | chatStatus: '' |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | // update-begin-author:sunjianlei date:20210508 for: ä¿®å¤å¨æåè½æµè¯èåã另忰èåæ é¢é误ãå±å¼é误çé®é¢ |
| | | handleUpdateMenuTitle(value) { |
| | | this.$emit('updateMenuTitle', value) |
| | | }, |
| | | } |
| | | // update-end-author:sunjianlei date:20210508 for: ä¿®å¤å¨æåè½æµè¯èåã另忰èåæ é¢é误ãå±å¼é误çé®é¢ |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | /* update_end author:scott date:20190220 for: 缩å°é¦é¡µå¸å±é¡¶é¨çé«åº¦*/ |
| | | /deep/ .ant-menu { |
| | | background-color: #E74C3C; |
| | | color: #fff; |
| | | .ant-menu-submenu { |
| | | color: #fff; |
| | | } |
| | | .ant-menu-submenu:hover { |
| | | } |
| | | .ant-menu-submenu-title:hover { |
| | | color: #fff; |
| | | /*background-color: #F65B4B !important;*/ |
| | | } |
| | | .ant-menu-submenu-open { |
| | | /*background-color: #F65B4B !important;*/ |
| | | } |
| | | .ant-menu-submenu-selected { |
| | | color: #fff !important; |
| | | /*background-color: #F65B4B !important;*/ |
| | | } |
| | | .ant-menu-item { |
| | | a { |
| | | color: #fff; |
| | | &:hover { |
| | | color: #fff; |
| | | } |
| | | } |
| | | |
| | | &.ant-menu-item-active { |
| | | /*background-color: #F65B4B;*/ |
| | | } |
| | | |
| | | &.ant-menu-item-selected { |
| | | /*background-color: #F65B4B;*/ |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | padding: 0 20px 0 0; |
| | | display: flex; |
| | | height: 59px; |
| | | color: #fff; |
| | | |
| | | .ant-menu.ant-menu-horizontal { |
| | | border: none; |
| | |
| | | } |
| | | |
| | | &.light { |
| | | background-color: #fff; |
| | | background-color: #E74C3C; |
| | | |
| | | .header-index-wide { |
| | | .header-index-left { |
| | |
| | | <img v-else src="~@/assets/logo-yt.jpg" alt="logo"> |
| | | <!-- update-begin- author:sunjianlei --- date:20190814 --- for: logoé¢è²æ ¹æ®ä¸»é¢é¢è²åå --> |
| | | |
| | | <h1 v-if="showTitle">{{ title }}</h1> |
| | | <h1 v-if="showTitle" style="color: #fff">{{ title }}</h1> |
| | | </router-link> |
| | | </div> |
| | | </template> |
| | |
| | | rightColChart2: '', |
| | | rightColChart3: '', |
| | | rightColChart2And3Data: '', |
| | | rightColChart2CarouselTime: null, |
| | | rightColChart3CarouselTime: null, |
| | | rightColChart4: '', |
| | | rightColChart4Data: '', |
| | | rightColChart4CarouselTime: null |
| | |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('resize', this.handleWindowResize) |
| | | if (this.rightColChart2CarouselTime) clearInterval(this.rightColChart2CarouselTime) |
| | | if (this.rightColChart3CarouselTime) clearInterval(this.rightColChart3CarouselTime) |
| | | if (this.rightColChart4CarouselTime) clearInterval(this.rightColChart4CarouselTime) |
| | | }, |
| | | methods: { |
| | |
| | | ] |
| | | const xAxisData = [] |
| | | const seriesData = [] |
| | | const colorList = [ |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | |
| | | { offset: 0, color: '#4A7DBD' }, |
| | | { offset: 1, color: '#31557B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#BD4D4A' }, |
| | | { offset: 1, color: '#7B3031' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#94AF52' }, |
| | | { offset: 1, color: '#637A39' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#7B61A4' }, |
| | | { offset: 1, color: '#52416B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#4AAAC6' }, |
| | | { offset: 1, color: '#29697B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#F79642' }, |
| | | { offset: 1, color: '#9C5D29' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | |
| | | { offset: 0, color: '#4A7DBD' }, |
| | | { offset: 1, color: '#31557B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#BD4D4A' }, |
| | | { offset: 1, color: '#7B3031' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#94AF52' }, |
| | | { offset: 1, color: '#637A39' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#7B61A4' }, |
| | | { offset: 1, color: '#52416B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#4AAAC6' }, |
| | | { offset: 1, color: '#29697B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#F79642' }, |
| | | { offset: 1, color: '#9C5D29' } |
| | | ] |
| | | ) |
| | | ] |
| | | |
| | | this.rightColChart2And3Data.forEach(item => { |
| | | xAxisData.push(item.equipmentName == null ? '' : item.equipmentName) |
| | | seriesData.push({ value: item.openRate }) |
| | |
| | | color: '#fff', |
| | | // rotate: 45, |
| | | margin: 15, |
| | | interval: 0, |
| | | fontSize: '55%', |
| | | formatter(value) { |
| | | const data = xAxisData |
| | |
| | | itemStyle: { |
| | | barBorderRadius: '', |
| | | color: function(params) { |
| | | const colorList = [ |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | |
| | | { offset: 0, color: '#4A7DBD' }, |
| | | { offset: 1, color: '#31557B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#BD4D4A' }, |
| | | { offset: 1, color: '#7B3031' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#94AF52' }, |
| | | { offset: 1, color: '#637A39' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#7B61A4' }, |
| | | { offset: 1, color: '#52416B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#4AAAC6' }, |
| | | { offset: 1, color: '#29697B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#F79642' }, |
| | | { offset: 1, color: '#9C5D29' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | |
| | | { offset: 0, color: '#4A7DBD' }, |
| | | { offset: 1, color: '#31557B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#BD4D4A' }, |
| | | { offset: 1, color: '#7B3031' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#94AF52' }, |
| | | { offset: 1, color: '#637A39' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#7B61A4' }, |
| | | { offset: 1, color: '#52416B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#4AAAC6' }, |
| | | { offset: 1, color: '#29697B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#F79642' }, |
| | | { offset: 1, color: '#9C5D29' } |
| | | ] |
| | | ) |
| | | ] |
| | | return colorList[params.dataIndex] |
| | | // build a color map as your need. |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | ], |
| | | dataZoom: [ |
| | | { |
| | | show: false, |
| | | startValue: 0, // ä»å¤´å¼å§ã |
| | | endValue: 9 // 䏿¬¡æ§å±ç¤ºå 个 |
| | | } |
| | | ] |
| | | } |
| | | option.xAxis.data = xAxisData |
| | | option.series[0].data = seriesData |
| | | this.rightColChart2.setOption(option, true) |
| | | |
| | | this.rightColChart2CarouselTime = setInterval(() => { |
| | | xAxisData.push(xAxisData.shift()) |
| | | seriesData.push(seriesData.shift()) |
| | | colorList.push(colorList.shift()) |
| | | this.$nextTick(() => { |
| | | this.rightColChart2.setOption(option, true) |
| | | }) |
| | | }, 3000) |
| | | }, |
| | | |
| | | /* ç»å¶å³ä¾§ç¬¬ä¸ä¸ªå¾è¡¨ */ |
| | |
| | | ] |
| | | const xAxisData = [] |
| | | const seriesData = [] |
| | | const colorList = [ |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | |
| | | { offset: 0, color: '#4A7DBD' }, |
| | | { offset: 1, color: '#31557B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#BD4D4A' }, |
| | | { offset: 1, color: '#7B3031' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#94AF52' }, |
| | | { offset: 1, color: '#637A39' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#7B61A4' }, |
| | | { offset: 1, color: '#52416B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#4AAAC6' }, |
| | | { offset: 1, color: '#29697B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#F79642' }, |
| | | { offset: 1, color: '#9C5D29' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | |
| | | { offset: 0, color: '#4A7DBD' }, |
| | | { offset: 1, color: '#31557B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#BD4D4A' }, |
| | | { offset: 1, color: '#7B3031' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#94AF52' }, |
| | | { offset: 1, color: '#637A39' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#7B61A4' }, |
| | | { offset: 1, color: '#52416B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#4AAAC6' }, |
| | | { offset: 1, color: '#29697B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#F79642' }, |
| | | { offset: 1, color: '#9C5D29' } |
| | | ] |
| | | ) |
| | | ] |
| | | this.rightColChart2And3Data.forEach(item => { |
| | | xAxisData.push(item.equipmentName == null ? '' : item.equipmentName) |
| | | seriesData.push({ value: item.utilizationRate }) |
| | |
| | | axisLabel: { |
| | | color: '#fff', |
| | | // rotate: 45, |
| | | interval: 0, |
| | | margin: 15, |
| | | fontSize: '55%', |
| | | formatter(value) { |
| | |
| | | show: false |
| | | } |
| | | }, |
| | | |
| | | series: [ |
| | | { |
| | | name: 'å©ç¨ç', |
| | |
| | | itemStyle: { |
| | | barBorderRadius: '', |
| | | color: function(params) { |
| | | const colorList = [ |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | |
| | | { offset: 0, color: '#4A7DBD' }, |
| | | { offset: 1, color: '#31557B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#BD4D4A' }, |
| | | { offset: 1, color: '#7B3031' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#94AF52' }, |
| | | { offset: 1, color: '#637A39' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#7B61A4' }, |
| | | { offset: 1, color: '#52416B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#4AAAC6' }, |
| | | { offset: 1, color: '#29697B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#F79642' }, |
| | | { offset: 1, color: '#9C5D29' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | |
| | | { offset: 0, color: '#4A7DBD' }, |
| | | { offset: 1, color: '#31557B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#BD4D4A' }, |
| | | { offset: 1, color: '#7B3031' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#94AF52' }, |
| | | { offset: 1, color: '#637A39' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#7B61A4' }, |
| | | { offset: 1, color: '#52416B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#4AAAC6' }, |
| | | { offset: 1, color: '#29697B' } |
| | | ] |
| | | ), |
| | | new echarts.graphic.LinearGradient( |
| | | 0, 0, 1, 0, |
| | | [ |
| | | { offset: 0, color: '#F79642' }, |
| | | { offset: 1, color: '#9C5D29' } |
| | | ] |
| | | ) |
| | | ] |
| | | return colorList[params.dataIndex] |
| | | // build a color map as your need. |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | ], |
| | | dataZoom: [ |
| | | { |
| | | show: false, |
| | | startValue: 0, // ä»å¤´å¼å§ã |
| | | endValue: 9 // 䏿¬¡æ§å±ç¤ºå 个 |
| | | } |
| | | ] |
| | | } |
| | | option.xAxis.data = xAxisData |
| | | option.series[0].data = seriesData |
| | | this.rightColChart3.setOption(option, true) |
| | | |
| | | this.rightColChart3CarouselTime = setInterval(() => { |
| | | xAxisData.push(xAxisData.shift()) |
| | | seriesData.push(seriesData.shift()) |
| | | colorList.push(colorList.shift()) |
| | | this.$nextTick(() => { |
| | | this.rightColChart3.setOption(option, true) |
| | | }) |
| | | }, 3000) |
| | | }, |
| | | |
| | | /* ç»å¶å³ä¾§ç¬¬å个å¾è¡¨ */ |
| | |
| | | <div>{{currentProductionInfo.productionName}}</div> |
| | | </div> |
| | | |
| | | <div class="load-more"> |
| | | <div @click="modalVisible=true">ç¹å»æ¥çæ´å¤>></div> |
| | | </div> |
| | | |
| | | <table class="plan-table"> |
| | | <thead> |
| | | <tr style="position: relative"> |
| | |
| | | |
| | | <tbody> |
| | | <tr v-for="(item,index) in todayProductionPlanList" :key="index"> |
| | | <td colspan="2">{{item.equipmentId}}</td> |
| | | <td colspan="2">{{item.equipmentName}}</td> |
| | | <a-tooltip :destroyTooltipOnHide="true" placement="topRight" @mouseenter="mouseEnterItem"> |
| | | <template slot="title"> |
| | | <span style="font-size: 1vw">{{item.productNo}}</span> |
| | | </template> |
| | | <td colspan="2">{{item.productNo}}</td> |
| | | </a-tooltip> |
| | | <td colspan="2">{{item.productName}}</td> |
| | | <td>{{item.planCount}}</td> |
| | | <td>{{item.completionCount}}</td> |
| | | <td>{{item.qualifiedCount}}</td> |
| | | <td>{{item.passRate+'%'}}</td> |
| | | <td colspan="2">{{item.processRoute}}</td> |
| | | <td colspan="2">{{item.orderId}}</td> |
| | | <td>{{item.clazz}}</td> |
| | | <template v-if="index<3"> |
| | | <td colspan="2">{{item.equipmentId}}</td> |
| | | <td colspan="2">{{item.equipmentName}}</td> |
| | | <a-tooltip :destroyTooltipOnHide="true" placement="topRight" @mouseenter="mouseEnterItem"> |
| | | <template slot="title"> |
| | | <span style="font-size: 1vw">{{item.productNo}}</span> |
| | | </template> |
| | | <td colspan="2">{{item.productNo}}</td> |
| | | </a-tooltip> |
| | | <td colspan="2">{{item.productName}}</td> |
| | | <td>{{item.planCount}}</td> |
| | | <td>{{item.completionCount}}</td> |
| | | <td>{{item.qualifiedCount}}</td> |
| | | <td>{{item.passRate+'%'}}</td> |
| | | <td colspan="2">{{item.processRoute}}</td> |
| | | <td colspan="2">{{item.orderId}}</td> |
| | | <td>{{item.clazz}}</td> |
| | | </template> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <SignageModal :todayProductionPlanList="todayProductionPlanList" :modalVisible="modalVisible" |
| | | @closeModal="modalVisible=false"/> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import moment from 'moment' |
| | | import api from '@/api/mdc' |
| | | import SignageModal from './modules/SubControlWorkshopSignage/SignageModal' |
| | | |
| | | export default { |
| | | name: 'SubControlWorkshopSignage', |
| | | components: {}, |
| | | components: { SignageModal }, |
| | | data() { |
| | | return { |
| | | currentProductionInfo: { |
| | |
| | | brandList: [], |
| | | lifeList: [] |
| | | }, |
| | | maxBrandToolLifeListLength: null |
| | | maxBrandToolLifeListLength: null, |
| | | modalVisible: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | if (res.success) this.todayProductionPlanList = res.result |
| | | }) |
| | | }, |
| | | |
| | | clickToLoadMore() { |
| | | |
| | | }, |
| | | |
| | | getEquipmentStatusByApi() { |
| | | api.getEquipmentStatusApi(this.currentProductionInfo.productionId) |
| | | .then(res => { |
| | | if (res.success) this.equipmentStatusList = res.result |
| | | }) |
| | | }, |
| | | |
| | | getToolLifeListByApi() { |
| | | api.getToolLifeListApi(this.currentProductionInfo.productionId) |
| | | .then(res => { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getToolCurrentLifeDataBgColor(record) { |
| | | if (record.currentLife / record.ratedLife > 0.8) { |
| | | return '#FF9A10' |
| | |
| | | font-size: 2.5vw; |
| | | } |
| | | |
| | | .load-more { |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | -webkit-justify-content: flex-end; |
| | | font-size: 1vw; |
| | | |
| | | div { |
| | | background-color: #83BF31; |
| | | margin: 0 0.5% 0.5% 0; |
| | | padding: 0 0.3%; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | |
| | | table { |
| | | td { |
| | | border: 0.1vw solid #fff; |
| | |
| | | .ant-table-striped /deep/ .table-striped td { |
| | | background-color: #fafafa; |
| | | } |
| | | |
| | | /deep/ .ant-col .ant-form-item-control-wrapper .ant-form-item-control .ant-form-item-children .ant-calendar-picker { |
| | | width: 100%; |
| | | min-width: 0 !important; |
| | | } |
| | | </style> |
| | |
| | | } else { |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description:res.message |
| | | description: res.message |
| | | }) |
| | | } |
| | | }).finally(() => { |
| | |
| | | .ant-table-striped /deep/ .table-striped td { |
| | | background-color: #fafafa; |
| | | } |
| | | |
| | | /deep/ .ant-col .ant-form-item-control-wrapper .ant-form-item-control .ant-form-item-children .ant-calendar-picker { |
| | | width: 100%; |
| | | min-width: 0 !important; |
| | | } |
| | | </style> |
| | |
| | | .ant-table-striped /deep/ .table-striped td { |
| | | background-color: #fafafa; |
| | | } |
| | | |
| | | /deep/ .ant-col .ant-form-item-control-wrapper .ant-form-item-control .ant-form-item-children .ant-calendar-picker { |
| | | width: 100%; |
| | | min-width: 0 !important; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal title="彿¥ç产计å" :width="modalWidth" :visible="modalVisible" :footer="null" @cancel="$emit('closeModal')"> |
| | | <a-table :columns="modalTableColumns" :dataSource="todayProductionPlanList" :pagination="false" :loading="loading" rowKey="equipmentId"></a-table> |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'SignageModal', |
| | | components: {}, |
| | | props: { |
| | | modalWidth: { |
| | | type: Number, |
| | | default: 1448 |
| | | }, |
| | | todayProductionPlanList: { |
| | | type: Object |
| | | }, |
| | | modalVisible: { |
| | | type: Boolean |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | dataSource: [], |
| | | modalTableColumns: [ |
| | | // { |
| | | // title: '#', |
| | | // dataIndex: '', |
| | | // key: 'rowIndex', |
| | | // width: 60, |
| | | // align: 'center', |
| | | // customRender: function(t, r, index) { |
| | | // return parseInt(index) + 1 |
| | | // } |
| | | // }, |
| | | { |
| | | width: 100, |
| | | align: 'center', |
| | | title: 'æºåºID', |
| | | dataIndex: 'equipmentId', |
| | | key: 'equipmentId' |
| | | }, |
| | | { |
| | | width: 100, |
| | | align: 'center', |
| | | title: 'æºåºåç§°', |
| | | dataIndex: 'equipmentName', |
| | | key: 'equipmentName' |
| | | }, |
| | | { |
| | | width: 160, |
| | | align: 'center', |
| | | title: 'é¶ä»¶å·', |
| | | dataIndex: 'productNo', |
| | | key: 'productNo' |
| | | }, |
| | | { |
| | | width: 100, |
| | | align: 'center', |
| | | title: 'é¶ä»¶åç§°', |
| | | key: 'productName', |
| | | dataIndex: 'productName' |
| | | }, |
| | | { |
| | | width: 75, |
| | | align: 'center', |
| | | title: '计åé', |
| | | key: 'planCount', |
| | | dataIndex: 'planCount' |
| | | }, |
| | | { |
| | | width: 75, |
| | | align: 'center', |
| | | title: '宿é', |
| | | key: 'completionCount', |
| | | dataIndex: 'completionCount' |
| | | }, |
| | | { |
| | | width: 75, |
| | | align: 'center', |
| | | title: 'åæ ¼é', |
| | | key: 'qualifiedCount', |
| | | dataIndex: 'qualifiedCount' |
| | | }, |
| | | { |
| | | width: 75, |
| | | align: 'center', |
| | | title: 'åæ ¼ç', |
| | | key: 'passRate', |
| | | dataIndex: 'passRate' |
| | | }, |
| | | { |
| | | width: 100, |
| | | align: 'center', |
| | | title: 'å·¥åºå·', |
| | | key: 'processRoute', |
| | | dataIndex: 'processRoute' |
| | | }, |
| | | { |
| | | width: 120, |
| | | align: 'center', |
| | | title: 'å·¥åå·', |
| | | key: 'orderId', |
| | | dataIndex: 'orderId' |
| | | }, |
| | | { |
| | | width: 100, |
| | | align: 'center', |
| | | title: 'çç»', |
| | | key: 'clazz', |
| | | dataIndex: 'clazz' |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | methods: {} |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | /deep/ .ant-modal-content { |
| | | background-color: #000; |
| | | } |
| | | |
| | | /deep/ .ant-modal-header { |
| | | background-color: #000; |
| | | } |
| | | |
| | | /deep/ .ant-modal-title { |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-modal-close { |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-input { |
| | | color: #fff; |
| | | background-color: #000; |
| | | } |
| | | |
| | | /deep/ .ant-form-item-label label { |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-table-thead th { |
| | | background-color: #5C5C5C; |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-table-tbody td { |
| | | background-color: #262626; |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td { |
| | | background: #7E7E7E; |
| | | } |
| | | |
| | | /deep/ .ant-table-placeholder { |
| | | background-color: #000; |
| | | } |
| | | |
| | | /deep/ .ant-table-placeholder .ant-empty-description { |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-pagination-item a { |
| | | background-color: #000; |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-pagination-item-link { |
| | | background-color: #000; |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-pagination-item-link:hover { |
| | | color: #1890FF; |
| | | border-color: #1890FF; |
| | | } |
| | | |
| | | /deep/ .ant-pagination-item-active { |
| | | background-color: #000; |
| | | } |
| | | |
| | | /deep/ .ant-select-selection--single { |
| | | background-color: #000; |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-pagination-options-quick-jumper { |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-pagination-options-quick-jumper input { |
| | | background-color: #000; |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-select-dropdown-menu-item { |
| | | background-color: #000; |
| | | color: #fff; |
| | | } |
| | | |
| | | /deep/ .ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled) { |
| | | background-color: #1890FF; |
| | | } |
| | | </style> |