| | |
| | | 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' |
| | | }) |
| | | } |
| | |
| | | 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) { |
| | |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :auto-scroll="false" |
| | | :page.sync="queryParamsList.pageNum" |
| | | :limit.sync="queryParamsList.pageSize" |
| | | @pagination="getList" |
| | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :auto-scroll="false" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getWhiteList" |
| | |
| | | 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"], |
| | |
| | | data() { |
| | | return { |
| | | download: false, |
| | | scrollPosition: 0, // 用于保存滚动位置 |
| | | // 下拉加载 |
| | | selectLoading: false, |
| | | ifEditVideo: false, |
| | |
| | | }, |
| | | handleExport() { |
| | | this.download = true |
| | | exportData(this.queryParams).then(res => { |
| | | whiteExport().then(res => { |
| | | // 将二进制数据转换为 Blob 对象 |
| | | let blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | |
| | |
| | | }); |
| | | }, |
| | | getWhiteList() { |
| | | // 保存当前滚动位置 |
| | | this.loading = true; |
| | | getWhiteList(this.queryParams).then((response) => { |
| | | this.workOrderWhiteList = response.data; |
| | |
| | | this.upload = false |
| | | this.fileList = [] |
| | | this.getWhiteList() |
| | | }).catch(()=>{ |
| | | this.upload = false |
| | | }) |
| | | } |
| | | } |
| | |
| | | .content-warp { |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .bottom_ { |
| | | width: 100%; |
| | | margin-bottom: 8px; |
| | | } |
| | | |
| | | </style> |