lxp
2025-03-14 38f01dc619fb9b7326abc345a216793750758c9a
src/views/CNAS/resourceDemand/device/component/state.vue
@@ -43,10 +43,9 @@
        <el-table-column label="当前状态" min-width="130" prop="currentState"></el-table-column>
        <el-table-column label="当前责任人" min-width="180" prop="currentResponsible"></el-table-column>
        <!-- 操作按钮 -->
        <el-table-column fixed="right" label="操作" min-width="150">
        <el-table-column fixed="right" label="操作" min-width="120" align="center">
          <template #default="{ row }">
            <el-button size="small" type="text" @click="handleViewClick(row)">查看</el-button>
            <el-button size="small" type="text" @click="handleDownOne(row)">导出</el-button>
            <el-button size="small" type="text" @click="handleDeleteClick(row)">删除</el-button>
          </template>
        </el-table-column>
@@ -240,7 +239,6 @@
import {
  saveDeviceState,
  selectDeviceByCode,
  exportDeviceStatus,
  deleteDeviceState,
  deviceStateExport,
  getDeviceStatePage,
@@ -422,15 +420,6 @@
        this.$refs['form'].clearValidate()
      })
      this.dialogVisible = true
    },
    // 导出
    handleDownOne(row) {
      this.outLoading = true
      exportDeviceStatus({ deviceId: row.deviceId, processNumber: row.processNumber }).then(res => {
        this.outLoading = false
        const blob = new Blob([res], { type: 'application/octet-stream' });
        this.$download.saveAs(blob, '设备停/启用.doc')
      })
    },
    // 删除
    handleDeleteClick(row) {