fuliqi
2024-11-14 5b6951defb238197a46407a4db617f55fc99391a
白名单故障类型
4个文件已修改
119 ■■■■■ 已修改文件
src/api/platform/threshold.js 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/platform/work-order.js 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/check/result/detail/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/work-order/threshold/index.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/platform/threshold.js
@@ -98,3 +98,55 @@
    timeout: 150000
  })
}
// 获取工单白名单列表
export function getWhiteList(query) {
  return request({
    url: '/threshold/white/page',
    method: 'post',
    data: query
  })
}
// 获取工单白名单详情
export function getWhite(id) {
  return request({
    url: '/threshold/white/'+id,
    method: 'get',
  })
}
// 新增工单白名单
export function addWhiteList(data) {
  return request({
    url: '/threshold/white/add',
    method: 'post',
    data: data
  })
}
// 修改工单白名单
export function updateWhite(data) {
  return request({
    url: '/threshold/white/update',
    method: 'post',
    data: data
  })
}
// 批量删除工单白名单
export function bathDelete(data) {
  return request({
    url: '/threshold/white/batchDelete',
    method: 'delete',
    data: data
  })
}
// 导出
export function whiteExport(param) {
  return request({
    url: '/threshold/white/export',
    method: 'get',
    params: param,
    responseType: 'blob'
  })
}
src/api/platform/work-order.js
@@ -145,47 +145,7 @@
    timeout: 120 * 1000,
  })
}
// 获取工单白名单列表
export function getWhiteList(query) {
  return request({
    url: '/work-order/white/page',
    method: 'post',
    data: query
  })
}
// 获取工单白名单详情
export function getWhite(id) {
  return request({
    url: '/work-order/white/'+id,
    method: 'get',
  })
}
// 新增工单白名单
export function addWhiteList(data) {
  return request({
    url: '/work-order/white/add',
    method: 'post',
    data: data
  })
}
// 修改工单白名单
export function updateWhite(data) {
  return request({
    url: '/work-order/white/update',
    method: 'post',
    data: data
  })
}
// 批量删除工单白名单
export function bathDelete(data) {
  return request({
    url: '/work-order/white/batchDelete',
    method: 'delete',
    data: data
  })
}
// 批量删除工单
export function batchDelWorkOrder(data) {
@@ -203,3 +163,6 @@
    method: 'get',
  })
}
src/views/system/check/result/detail/index.vue
@@ -83,6 +83,7 @@
      <pagination
        v-show="total>0"
        :total="total"
        :auto-scroll="false"
        :page.sync="queryParamsList.pageNum"
        :limit.sync="queryParamsList.pageSize"
        @pagination="getList"
src/views/system/work-order/threshold/index.vue
@@ -347,6 +347,7 @@
        <pagination
          v-show="total>0"
          :total="total"
          :auto-scroll="false"
          :page.sync="queryParams.pageNum"
          :limit.sync="queryParams.pageSize"
          @pagination="getWhiteList"
@@ -411,22 +412,19 @@
  getThreshold,
  updateThreshold,
  importData,
} from "@/api/platform/threshold";
import {
  editCar,
  editFace,
  getCar,
  getFace,
  getVideo,
} from "../../../../api/platform/threshold";
import {
  getWhiteList,
  getWhite,
  addWhiteList,
  bathDelete,
  updateWhite
} from "@/api/platform/work-order";
  updateWhite,
  whiteExport
} from "@/api/platform/threshold";
import { pointSelectData } from "@/api/platform/point";
export default {
  dicts: ["image_qualify", "video_qualify", "error_type"],
@@ -434,6 +432,7 @@
  data() {
    return {
      download: false,
      scrollPosition: 0, // 用于保存滚动位置
      // 下拉加载
      selectLoading: false,
      ifEditVideo: false,
@@ -592,7 +591,7 @@
    },
    handleExport() {
      this.download = true
      exportData(this.queryParams).then(res => {
      whiteExport().then(res => {
        // 将二进制数据转换为 Blob 对象
        let blob = new Blob([res], { type: 'application/octet-stream' });
@@ -703,6 +702,7 @@
      });
    },
    getWhiteList() {
      // 保存当前滚动位置
      this.loading = true;
      getWhiteList(this.queryParams).then((response) => {
        this.workOrderWhiteList = response.data;
@@ -1031,6 +1031,8 @@
        this.upload = false
        this.fileList = []
        this.getWhiteList()
      }).catch(()=>{
        this.upload = false
      })
    }
  }
@@ -1077,6 +1079,9 @@
.content-warp {
  margin-top: 10px;
}
.bottom_ {
  width: 100%;
  margin-bottom: 8px;
}
</style>