| | |
| | | <div class="kb_dashboard"> |
| | | |
| | | <!-- 星空背景--> |
| | | <div ref="starsRef" class="stars"> |
| | | <div v-for="(item, index) in starsCount" :key="index" class="star" /> |
| | | </div> |
| | | <!-- <div ref="starsRef" class="stars">--> |
| | | <!-- <div v-for="(item, index) in starsCount" :key="index" class="star" />--> |
| | | <!-- </div>--> |
| | | |
| | | <div class="kb_header"> |
| | | <div class="flex_c_c kb_header_text"> |
| | |
| | | <el-table |
| | | ref="tableDataLeftCenterRef" |
| | | :data="tableDataCenterTop" |
| | | class="tableData" |
| | | class="tableData tableDataCell" |
| | | style="width: 100%;" |
| | | :header-cell-style="headerCellStyleCenter" |
| | | :cell-style="cellStyleCenter" |
| | |
| | | <el-table-column |
| | | prop="lm_date" |
| | | label="日期" |
| | | width="115" |
| | | width="100" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="eqp_name" |
| | | width="95" |
| | | width="80" |
| | | label="产线名称" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-table-column |
| | | prop="wo_code" |
| | | label="生产单号" |
| | | width="188" |
| | | width="173" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div style="color: #00FFFF">{{ row.wo_code }}</div> |
| | |
| | | |
| | | <el-table-column |
| | | prop="partname" |
| | | width="100" |
| | | width="190" |
| | | label="产品名称" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-table-column |
| | | prop="ng_qty" |
| | | label="不良数量" |
| | | width="92" |
| | | width="77" |
| | | /> |
| | | <el-table-column |
| | | prop="report_qty" |
| | | label="报工数量" |
| | | width="92" |
| | | width="77" |
| | | /> |
| | | <el-table-column |
| | | label="不良占比" |
| | | width="92" |
| | | width="77" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div>{{ parseFloat((row.ng_qty*100/(row.ng_qty+row.report_qty)).toFixed(2)) }}%</div> |
| | |
| | | |
| | | this.getEcharts() |
| | | |
| | | this.setStarsRef() |
| | | // this.setStarsRef() |
| | | }, |
| | | methods: { |
| | | setStarsRef() { |
| | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale) |
| | | nowLoop++ |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getCenterTableDataSetInterval() |
| | | } |
| | | |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }) |
| | | }, |
| | |
| | | .el-table__empty-text{ |
| | | color: $main_color; |
| | | } |
| | | |
| | | .tableDataCell { |
| | | ::v-deep .cell{ |
| | | padding: 0 2px ; |
| | | } |
| | | } |
| | | |
| | | </style> |
| | | |
| | | <!--星空--> |