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) => {
if (params.isSearch) {
delete params.isSearch
// delete params.isSearch
const data = {...params}
return await request.post({ url: '/qms/inspection-record-main/senior', data })
} else {

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

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

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

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

Loading…
Cancel
Save