云
2026-09-28 e4debe98827b39f521b8461ac184ee793a026fdd
src/views/equipmentManagement/operationManagement/index.vue
@@ -74,7 +74,7 @@
          align="center"
        >
          <template #default="scope">
            {{ scope.row.planRuntimeTime || '-' }}
            {{ dateOnly(scope.row.planRuntimeTime) || '-' }}
          </template>
        </el-table-column>
        <el-table-column
@@ -84,7 +84,7 @@
          align="center"
        >
          <template #default="scope">
            {{ scope.row.startRuntimeTime || '-' }}
            {{ dateOnly(scope.row.startRuntimeTime) || '-' }}
          </template>
        </el-table-column>
        <el-table-column
@@ -94,7 +94,7 @@
          align="center"
        >
          <template #default="scope">
            {{ scope.row.endRuntimeTime || '-' }}
            {{ dateOnly(scope.row.endRuntimeTime) || '-' }}
          </template>
        </el-table-column>
        <el-table-column
@@ -318,15 +318,7 @@
const changeDeviceStatus = async (device, status) => {
  try {
    const currentTime = new Date().toLocaleString('zh-CN', {
      year: 'numeric',
      month: '2-digit',
      day: '2-digit',
      hour: '2-digit',
      minute: '2-digit',
      second: '2-digit',
      hour12: false
    }).replace(/\//g, '-')
    const currentTime = dayjs().format('YYYY-MM-DD')
    
    // 更新设备状态和相关时间字段
    if (status === '启动运行') {