| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="cxmc" |
| | | prop="eqp_name" |
| | | width="95" |
| | | label="产线名称" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div>{{ row.cxmc }}</div> |
| | | <div>{{ row.eqp_name }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="cpmc" |
| | | prop="partname" |
| | | width="100" |
| | | label="产品名称" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="ellipsis">{{ row.cpmc }}</div> |
| | | <div class="ellipsis">{{ row.partname }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | headTime: '', |
| | | |
| | | tableDataCenterTop: [], |
| | | tableDataCenterTopTemp: [] |
| | | tableDataCenterTopTemp: [], |
| | | |
| | | StepCode: 'Step02' |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, 1000 * 10) |
| | | }, |
| | | getLeftTopEcharts() { |
| | | BadTop5({ StepCode: 'Step02' }).then(res => { |
| | | BadTop5({ StepCode: this.StepCode }).then(res => { |
| | | const dataArr = res.data.map(i => i.cont) |
| | | const titlenameArr = res.data.map(i => i.name) |
| | | loadEcharts('bar01', bar02(dataArr, titlenameArr)) |
| | | }) |
| | | }, |
| | | getLeftBottomEcharts() { |
| | | BadWeek({ StepCode: 'Step02' }).then(res => { |
| | | BadWeek({ StepCode: this.StepCode }).then(res => { |
| | | const dataX = res.data.map(i => i.click_date) |
| | | const dataY = res.data.map(i => i.count) |
| | | loadEcharts('line01', line02(dataX, dataY)) |
| | | }) |
| | | }, |
| | | getRightTopEcharts() { |
| | | BadDayDistriBute({ StepCode: 'Step02' }).then(res => { |
| | | BadDayDistriBute({ StepCode: this.StepCode }).then(res => { |
| | | loadEcharts('bar02', bar04(res.data)) |
| | | }) |
| | | }, |
| | | getRightBottomEcharts() { |
| | | BadWeekDistriBute({ StepCode: 'Step02' }).then(res => { |
| | | BadWeekDistriBute({ StepCode: this.StepCode }).then(res => { |
| | | loadEcharts('pie01', pie02(res.data)) |
| | | }) |
| | | }, |
| | |
| | | getCenterTableDataSetInterval() { |
| | | let startValue = 0 // 初始值 |
| | | const scale = 23// 刻度 |
| | | BadContManger({ StepCode: 'Step02' }).then(res => { |
| | | BadContManger({ StepCode: this.StepCode }).then(res => { |
| | | this.tableDataCenterTopTemp = res.data |
| | | this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale) |
| | | |