@qmlight/web-platform-components 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import React, { useEffect, useRef, useState } from 'react';
2
- import TabList from '../tabList';
3
- import { getUsersByConditions, getOrgsByConditions } from '../../api/tabList';
4
- import { Pagination } from 'dcp-design-react';
1
+ import React, { useEffect, useRef, useState } from "react";
2
+ import TabList from "../tabList";
3
+ import { getUsersByConditions, getOrgsByConditions } from "../../api/tabList";
4
+ import { Pagination } from "dcp-design-react";
5
5
 
6
6
  const SearchPageIndex = (props) => {
7
7
  const {
@@ -27,16 +27,17 @@ const SearchPageIndex = (props) => {
27
27
  setItemKeys(selectedKeys || []);
28
28
  }, [selectedKeys]);
29
29
  const itemSelect = (value, checked) => {
30
- if (mode === 'multiple') {
30
+ if (mode === "multiple") {
31
31
  onItemSelect && onItemSelect(value, checked);
32
32
  return;
33
33
  }
34
34
  setItemKeys([value]);
35
35
  const field = dataSource.find((item) => item.id === value);
36
- onValueChange && onValueChange({ ...field, value: field.id, label: field.userName });
36
+ onValueChange &&
37
+ onValueChange({ ...field, value: field.id, label: field.userName });
37
38
  };
38
39
  const fetchHandleApi = async (params) => {
39
- if (type !== 'org') {
40
+ if (type !== "org") {
40
41
  return getUsersByConditions(params);
41
42
  }
42
43
  return getOrgsByConditions(params);
@@ -74,7 +75,7 @@ const SearchPageIndex = (props) => {
74
75
  useEffect(() => {
75
76
  if (fetchParams.currentPage) {
76
77
  if (fetchParams.name) {
77
- getData({ ...fetchParams, systemId: 'OPERATION-001' });
78
+ getData({ ...fetchParams });
78
79
  }
79
80
  }
80
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qmlight/web-platform-components",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A platform components for React",
5
5
  "keywords": [
6
6
  "React",