diff --git a/src/views/base/equipmentBindGroup/index.vue b/src/views/base/equipmentBindGroup/index.vue index 33477279..bab7525f 100644 --- a/src/views/base/equipmentBindGroup/index.vue +++ b/src/views/base/equipmentBindGroup/index.vue @@ -303,7 +303,7 @@ export default { handleDelete(row) { const id = row.id; this.$modal - .confirm('是否确认删除设备与分组绑定编号为"' + id + '"的数据项?') + .confirm('是否确认删除该分组绑定?') .then(function () { return deleteEquipmentBindGroup(id); }) diff --git a/src/views/equipment/analysis/efficiency/index.vue b/src/views/equipment/analysis/efficiency/index.vue index 87695fb6..3364c914 100644 --- a/src/views/equipment/analysis/efficiency/index.vue +++ b/src/views/equipment/analysis/efficiency/index.vue @@ -118,12 +118,12 @@ export default { { width: 128, prop: 'workTime', - label: '工作时长', + label: '工作时长[h]', }, { width: 128, prop: 'workRate', - label: '百分比', + label: '百分比[%]', filter: (val) => (val != null ? +val.toFixed(3) : '-'), }, ], @@ -134,9 +134,9 @@ export default { { width: 128, prop: 'stopTime', - label: '停机时长', + label: '停机时长[h]', }, - { width: 128, prop: 'stopRate', label: '百分比' }, + { width: 128, prop: 'stopRate', label: '百分比[%]' }, ], }, { @@ -145,10 +145,10 @@ export default { { width: 128, prop: 'downTime', - label: '故障时长', + label: '故障时长[h]', filter: (val) => (val != null ? +val.toFixed(3) : '-'), }, - { width: 128, prop: 'downRate', label: '百分比' }, + { width: 128, prop: 'downRate', label: '百分比[%]' }, { width: 128, prop: 'timeEfficiency', diff --git a/src/views/equipment/analysis/exception/index.vue b/src/views/equipment/analysis/exception/index.vue index a7afb2df..c3d38562 100644 --- a/src/views/equipment/analysis/exception/index.vue +++ b/src/views/equipment/analysis/exception/index.vue @@ -155,7 +155,7 @@ export default { async getList() { this.loading = true; // 执行查询 - const { data } = await this.$axios({ + const { code, data } = await this.$axios({ url: '/analysis/equipment-analysis/efficiency', method: 'get', params: { @@ -163,6 +163,11 @@ export default { recordTime: this.queryParams.recordTime || null, }, }); + if (code === 0) { + this.list = data; + } else { + this.list.splice(0); + } }, handleSearchBarBtnClick(btn) { diff --git a/src/views/equipment/analysis/quality/components/lineChart.vue b/src/views/equipment/analysis/quality/components/lineChart.vue index 025af935..60107a51 100644 --- a/src/views/equipment/analysis/quality/components/lineChart.vue +++ b/src/views/equipment/analysis/quality/components/lineChart.vue @@ -43,7 +43,7 @@ export default { eq.okQuantity, eq.nokQuantity, eq.totalQuantity, - eq.passRate.toFixed(2), + eq.passRate.toFixed(4), ]); }); return { @@ -53,6 +53,30 @@ export default { axisPointer: { type: 'shadow', }, + formatter: (params) => { + const name = params[0].name; + const goodRate = opt.find((item) => item[0] == name)[4]; + return ` +