Browse Source

检验申请任务记录筛选之后点击刷新重新获取页面的问题

linshi20240813
zhang_li 3 months ago
parent
commit
65919e6fdf
  1. 2
      src/api/qms/inspectionRecord/inspectionRecordMain/index.ts
  2. 2
      src/api/qms/inspectionRequest/index.ts
  3. 5
      src/views/qms/inspectionRequest/index.vue

2
src/api/qms/inspectionRecord/inspectionRecordMain/index.ts

@ -26,7 +26,7 @@ export interface InspectionRecordMainVO {
// 查询检验申请列表 // 查询检验申请列表
export const getInspectionRecordMainPage = async (params) => { export const getInspectionRecordMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch // delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/qms/inspection-record-main/senior', data }) return await request.post({ url: '/qms/inspection-record-main/senior', data })
} else { } else {

2
src/api/qms/inspectionRequest/index.ts

@ -20,7 +20,7 @@ export interface InspectionMainVO {
// 查询检验申请列表 // 查询检验申请列表
export const getInspectionMainPage = async (params) => { export const getInspectionMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch // delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/qms/inspection-request-main/senior', data }) return await request.post({ url: '/qms/inspection-request-main/senior', data })
} else { } else {

5
src/views/qms/inspectionRequest/index.vue

@ -175,8 +175,9 @@ const buttonBaseClick = (val, item) => {
handleExport() handleExport()
} else if (val == 'refresh') { } else if (val == 'refresh') {
// //
tableObject.params.isSearch = false // tableObject.params.isSearch = false
tableObject.params.filters = '' // tableObject.params.filters = ''
console.log(tableObject.params)
getList() getList()
} else if (val == 'filtrate') { } else if (val == 'filtrate') {
// //

Loading…
Cancel
Save