Browse Source

修复表单筛选问题

master_hella_20240701
TengXF 6 months ago
parent
commit
ace6293381
  1. 8
      src/api/system/tenant/index.ts
  2. 5
      src/views/mes/hrPersonAbility/hrPersonAbility.data.ts
  3. 13
      src/views/mes/ordermonthplan/mesOrderMonthMain.data.ts

8
src/api/system/tenant/index.ts

@ -33,8 +33,16 @@ export interface TenantExportReqVO {
// 查询租户列表
export const getTenantPage = (params: TenantPageReqVO) => {
console.log(params)
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return request.post({ url: '/system/tenant/senior', data })
} else {
return request.get({ url: '/system/tenant/page', params })
}
// return request.get({ url: '/system/tenant/page', params })
}
// 查询租户详情
export const getTenant = (id: number) => {

5
src/views/mes/hrPersonAbility/hrPersonAbility.data.ts

@ -123,10 +123,11 @@ export const HrPersonAbility = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '人员信息', // 查询弹窗标题
searchAllSchemas: searchUser.allSchemas, // 查询弹窗所需类
searchField: 'username', // 查询弹窗赋值字段
searchListPlaceholder: '请选择 人员工号', // 输入框占位文本
searchPage: UserApi.getUserPage, // 查询弹窗所需分页方法
searchCondition: [{
action: "==",
column: 'userType',
action: '==',
key: 'userType',
value: 'WORKER'
}]
}

13
src/views/mes/ordermonthplan/mesOrderMonthMain.data.ts

@ -46,12 +46,13 @@ export const MesOrderMonthMain = useCrudSchemas(reactive<CrudSchema[]>([
searchAllSchemas: FactoryList.allSchemas, // 查询弹窗所需类
searchPage: TenantApi.getTenantPage, // 查询弹窗所需分页方法
isHideFilterButton: true,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// action: '==',
// // isMainValue: false
// }
// ]
}
}
},

Loading…
Cancel
Save