吴羡
16 小时以前 c6e96cdb8b1cfb51e9a45bf86c38d1353e983127
src/views/CNAS/resourceDemand/device/component/inspectionOfEquipment.vue
@@ -21,7 +21,8 @@
          <el-table-column label="复核状态" min-width="180" prop="status">
            <template #default="scope">
              <el-tag v-if="scope.row.status === 1" type="success">通 过</el-tag>
              <el-tag v-if="scope.row.status === 0" type="danger">不通过</el-tag>
              <el-tag v-else-if="scope.row.status === 0" type="danger">不通过</el-tag>
              <el-tag v-else type="info">待审核</el-tag>
            </template>
          </el-table-column>
          <!-- 操作按钮 -->
@@ -37,7 +38,7 @@
            </template>
          </el-table-column>
        </el-table>
        <el-pagination :current-page="1" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]"
        <el-pagination :current-page="pagination1.current" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]"
          :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" background
          @size-change="handleSizeChange1" @current-change="handleCurrentChange1">
        </el-pagination>
@@ -54,6 +55,7 @@
  exportDeviceInspectionRecord,
  deleteDeviceInspectionRecord,
} from '@/api/cnas/resourceDemand/device.js'
import { saveBlobOrShowError } from '@/utils/saveBlob'
export default {
  name: "inspection-of-equipment",
  // import 引入的组件需要注入到对象中才能使用
@@ -127,8 +129,9 @@
        inspectionRecordId: id
      }).then(res => {
        this.outLoading = false
        const blob = new Blob([res], { type: 'application/octet-stream' });
        this.$download.saveAs(blob, '设备点检记录表.doc')
        saveBlobOrShowError(res, '设备点检记录表.doc', 'application/msword')
      }).catch(() => {
        this.outLoading = false
      })
    },
    // 删除