This commit is contained in:
朱文强 2025-03-10 16:33:55 +08:00
parent 8e9b2f6444
commit bbd9972761
3 changed files with 8 additions and 6 deletions

View File

@ -1,8 +1,8 @@
/* /*
* @Author: Do not edit * @Author: Do not edit
* @Date: 2023-09-12 09:44:53 * @Date: 2023-09-12 09:44:53
* @LastEditTime: 2023-09-14 10:25:46 * @LastEditTime: 2025-03-03 10:43:34
* @LastEditors: DY * @LastEditors: zwq
* @Description: * @Description:
*/ */
import request from '@/utils/request' import request from '@/utils/request'
@ -37,6 +37,7 @@ export function getPdlAutoReportNewSearchNow(data) {
return request({ return request({
url: '/monitoring/production-monitor/getPdlAutoReportNewSearchNow', url: '/monitoring/production-monitor/getPdlAutoReportNewSearchNow',
method: 'post', method: 'post',
data: data data: data,
timeout: 60000,
}) })
} }

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: Do not edit * @Author: Do not edit
* @Date: 2023-08-29 14:59:29 * @Date: 2023-08-29 14:59:29
* @LastEditTime: 2025-02-24 14:51:47 * @LastEditTime: 2025-03-03 10:38:00
* @LastEditors: zwq * @LastEditors: zwq
* @Description: * @Description:
--> -->
@ -379,6 +379,7 @@ export default {
tables.removeChild(tables.querySelector('.el-table__fixed-right')); tables.removeChild(tables.querySelector('.el-table__fixed-right'));
} }
let exportTable = XLSX.utils.table_to_book(tables); let exportTable = XLSX.utils.table_to_book(tables);
exportTable.Sheets.Sheet1.A1.v = '序号' //
var exportTableOut = XLSX.write(exportTable, { var exportTableOut = XLSX.write(exportTable, {
bookType: 'xlsx', bookType: 'xlsx',

View File

@ -62,8 +62,8 @@ function getTodayStart(today) {
/** 颜色配置 */ /** 颜色配置 */
const types = [ const types = [
{ name: '运行', color: '#288AFF' }, { name: '运行', color: '#288AFF' },
{ name: '故障', color: '#FC9C91' },
{ name: '计划停机', color: '#FFDC94' }, { name: '计划停机', color: '#FFDC94' },
{ name: '故障', color: '#FC9C91' },
{ name: '空白', color: '#F2F4F9' }, { name: '空白', color: '#F2F4F9' },
]; ];
@ -267,7 +267,7 @@ export default class GanttGraph {
ylist.push(eqArr.key) ylist.push(eqArr.key)
eqArr.forEach(item => { eqArr.forEach(item => {
xdata.push({ xdata.push({
name: ['运行', '故障', '计划停机'][item.status], name: ['运行', '计划停机', '故障'][item.status],
showName: eqArr.key, showName: eqArr.key,
value: [index, item.startTime, item.startTime + item.duration * 60 * 1000, 0], value: [index, item.startTime, item.startTime + item.duration * 60 * 1000, 0],
itemStyle: { itemStyle: {