@@ -110,78 +115,79 @@ const qualityYearList = [
{
name: '翻转机',
code: 'EQ20240110112358000235',
- status: '正常',
+ status: '运行',
error: true,
},
{
name: '烘干炉',
code: 'EQ20240110112537000241',
- status: '计划停机',
+ status: '停机',
error: true,
},
{
name: '清洗机',
code: ' EQ20240110112310000232',
- status: '正常',
+ status: '故障',
error: true,
},
{
name: '钢化清洗机',
code: 'EQ20240110111700000208',
- status: '正常',
+ status: '故障',
error: true,
},
{
name: '固化机',
code: 'EQ20240110111700000201',
- status: '正常',
+ status: '停机',
error: false,
},
{
name: '磨边清洗机',
code: ' EQ20240110111700000208',
- status: '正常',
+ status: '停机',
error: true,
},
{
name: '预热机',
code: 'EQ20240110111700000205',
- status: '故障',
+ status: '运行',
error: false,
},
{
name: '下片机',
- code: 'EQ20240115151435000279',
+ code: 'EQ20240115151435000279',
+ status: '故障',
error: true,
},
{
name: '冷却机',
code: 'EQ20240110111700000203',
- status: '正常',
+ status: '运行',
error: false,
},
{
name: 'A储片机106',
code: 'EQ20240110111700000202',
- status: '正常',
+ status: '停机',
error: true,
},
{
name: '二次清洗机',
code: 'EQ20240110111700000209',
- status: '正常',
+ status: '停机',
error: true,
},
{
name: '二次磨边机',
code: ' EQ20240110110927000181',
- status: '正常',
+ status: '停机',
error: false,
},
{
name: '测试设备',
code: 'EQ20240110111700000201',
- status: '正常',
+ status: '运行',
error: true,
},
];
@@ -292,11 +298,11 @@ export default {
// equipmentList:[],
EnergyMonitoringList: [],
eqConfig: {
- header: ['序号', '设备名称', '设备编码', '设备状态', '是否故障'],
+ header: ['序号', '设备名称', '产线名', '设备状态'],
headerBGC: 'rgba(32, 55, 96, 0.8)',
oddRowBGC: 'rgba(32, 55, 96, 0.8)',
evenRowBGC: 'rgba(14, 32, 62, 0.8)',
- columnWidth: [70, 100, 200, 90, 90],
+ columnWidth: [70, 130, 240, 120],
align: ['center'],
data: [],
// index:true,
@@ -373,15 +379,15 @@ export default {
this.websocketClose();
this.SJGWebsocketClose();
},
- mounted() {
+ mounted() {
let detData = [
{
id: '1',
- name: '测试工单',
+ name: '镀釉光伏玻璃GW',
progressRate: 0.933333,
specifications: '1100*5554*22',
- plan: 11111,
- actualQuantity:111,
+ plan: 111111111111,
+ actualQuantity:10000001111,
},
{
id: '2',
@@ -455,9 +461,9 @@ export default {
id: ele.id,
name: ele.name,
progressRate: parseFloat((ele.progressRate * 100).toFixed(0)),
- specifications: ele.specifications ? '规格' + ele.specifications :null,
- planQuantity: ele.plan ? '计划' + ele.plan + '片' : null,
- actualQuantity: ele.actualQuantity + '片',
+ specifications: ele.specifications ? '规格' + ele.specifications :'',
+ planQuantity: ele.plan ? '计划' + this.getStr(String(ele.plan)) : '',
+ actualQuantity: ele.actualQuantity ?this.getStr(String(ele.actualQuantity)) : '',
};
}
});
@@ -473,16 +479,15 @@ export default {
this.EnergyMonitoringNameList,
this.EnergyMonitoringList
);
- let eqArr = this.qualityYearList.map((item, index) => [
+ let eqArr = this.qualityYearList.map((item, index) => [
`
${index + 1 || ''}
`,
// formatDate(item.planStartTime) || '',
`
${item.name || ''}
`,
- `
${item.code || ''}`,
- `
${item.status || ''}`,
- `
${item.error == true ? '是' : '否' || ''}`,
+ `
${item.lineName || ''}`,
+ `
${item.status || ''}`,
]);
this.eqConfig.data = eqArr;
let data = [
@@ -561,6 +566,15 @@ export default {
// removeEventListener('resize', resizeFun)
// },
methods: {
+ getStr(str) {
+ //你要处理的字符串
+ if (str.length > 6) { //如果字符长度超过10,后面的字符就变成...可自行调整长度和代替字符
+ str = str.substr(0, 6) + "..." //截取从第一个字符开始,往后取10个字符,剩余的用...代替
+ return str
+ } else {
+ return str
+ }
+ },
getData() {
let processArr = qualityMonthList.map((item, index) => [
// console.log(item)
@@ -746,10 +760,10 @@ export default {
`
${item.name || ''}
`,
`
${
- item.code || ''
+ item.lineName || ''
}`,
- `
${item.status || ''}`,
- `
${item.error == true ?'是' :'否' || ''}`,
+ `
${item.status || ''}`,
+ // `
${item.error == true ?'是' :'否' || ''}`,
]);
this.eqConfig.data = eqArr;
// this.$nextTick(() => {
@@ -971,7 +985,7 @@ export default {
.now-secondary-title {
display: inline-block;
- width: 70px;
+ width: 110px;
margin: 0;
font-size: 14px;
line-height: 2em;
@@ -990,16 +1004,27 @@ export default {
width: 60px;
margin: 0;
font-size: 14px;
+ text-align: right;
+ color: rgba(0, 255, 247, 1);
+}
+.orderFinishTwo{
+ display: inline-block;
+ width: 15px;
+ margin: 0;
+ font-size: 14px;
line-height: 2em;
+ // text-overflow: ellipsis;
+ // white-space: nowrap;
+ // overflow: hidden;
text-align: right;
color: rgba(0, 255, 247, 1);
}
.orderPlan {
display: inline-block;
- width: 100px;
+ // width: 80px;
margin: 0;
font-size: 14px;
- line-height: 2em;
+ // line-height: 2em;
color: #fff;
text-align: left;
}
diff --git a/src/views/databoard/deepProcessing/EqAlarm.vue b/src/views/databoard/deepProcessing/EqAlarm.vue
index 805da998..5b755ec1 100644
--- a/src/views/databoard/deepProcessing/EqAlarm.vue
+++ b/src/views/databoard/deepProcessing/EqAlarm.vue
@@ -32,11 +32,11 @@ export default {
return {
timestr: '',
config: {
- header: ['序号', '设备名称', '设备编码', '设备状态', '是否故障'],
+ header: ['序号', '设备名称', '产线名', '设备状态'],
headerBGC: 'rgba(32, 55, 96, 0.8)',
oddRowBGC: 'rgba(32, 55, 96, 0.8)',
evenRowBGC: 'rgba(14, 32, 62, 0.8)',
- columnWidth: [60, 150, 190],
+ columnWidth: [60, 280, 120],
align: ['center'],
data: [],
// data: [
@@ -64,7 +64,7 @@ export default {
let outArr = this.sjgEquipment.map((item, index) => [
index + 1,
`
${item.name || ''}`,
- `
${item.code || ''}`,
+ `
${item.lineName || ''}`,
`
${item.status || ''}`,
- `
${item.error == true ? '是' : '否' || ''}`,
+ // `
${item.error == true ? '是' : '否' || ''}`,
]);
this.config.data = outArr;
this.$refs['eqScrollBoard'].updateRows(outArr);
diff --git a/src/views/databoard/kiln/GasHandle.vue b/src/views/databoard/kiln/GasHandle.vue
index 999c9274..2d6df9e6 100644
--- a/src/views/databoard/kiln/GasHandle.vue
+++ b/src/views/databoard/kiln/GasHandle.vue
@@ -80,7 +80,7 @@
-
+