diff --git a/src/components/keysFind/index.jsx b/src/components/keysFind/index.jsx index f3835835..9ab95165 100644 --- a/src/components/keysFind/index.jsx +++ b/src/components/keysFind/index.jsx @@ -2,7 +2,7 @@ * @Author: Wind * @Date: 2022-07-25 10:53:41 * @LastEditors: Wind - * @LastEditTime: 2022-07-28 09:49:31 + * @LastEditTime: 2022-07-28 11:26:12 * @Description:key列表查询组件 * @FilePath: \frontend\src\components\keysFind\index.jsx */ @@ -57,6 +57,16 @@ export default ({ onQuery }) => { }) }, []) + function onChange(data) { + return { + date: data.date.length || null, + reseller: data.reseller?.key, + plan: data.plan?.key, + state: data.state?.key, + key: data.key || null + } + } + return (
@@ -116,13 +126,13 @@ export default ({ onQuery }) => {
- diff --git a/src/pages/plan/keyList/index.jsx b/src/pages/plan/keyList/index.jsx index ad6eccca..465d8e9e 100644 --- a/src/pages/plan/keyList/index.jsx +++ b/src/pages/plan/keyList/index.jsx @@ -101,13 +101,13 @@ export default class acclist extends React.Component { } getKeyCodeList(data) { - console.log(data, this.state.conditionalQuery) let queryParams = _.omitBy( { ...data, ...this.state.conditionalQuery }, (value) => { return _.isNaN(value) || _.isNil(value) } ) + console.log(queryParams) let id = sessionStorage.getItem('key_batch_id') getkeyDetailList(id, queryParams).then((res) => {