@daeryun/dr_components 0.4.39 → 0.4.41

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,3 +1,4 @@
1
+ 'use client';
1
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -11,13 +12,13 @@ import React, { useState, useEffect } from 'react';
11
12
  import { NoResult } from './NoResult';
12
13
  import { searchInit } from './integrateType';
13
14
  import { useRouter } from 'next/router';
14
- // import Lawyer from './Lawyer';
15
15
  import Field from './Field';
16
16
  import Success from './Success';
17
17
  import LawInfo from './LawInfo';
18
18
  import Broadcast from './Broadcast';
19
19
  import Reply from './Reply';
20
20
  import Map from './Map';
21
+ import Lawyer from './Lawyer';
21
22
  const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime_code }) => {
22
23
  const router = useRouter();
23
24
  const [tab, setTab] = useState('');
@@ -79,29 +80,17 @@ const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime
79
80
  });
80
81
  }} search={search}/>
81
82
 
82
- {/*<Lawyer*/}
83
- {/* tab={tab}*/}
84
- {/* listCount={listCount}*/}
85
- {/* list={list}*/}
86
- {/* pages={pages}*/}
87
- {/* center_code={center_code}*/}
88
- {/* onMoreViewText={handleMoreViewText}*/}
89
- {/* onMoreView={() => {*/}
90
- {/* paramFetch(*/}
91
- {/* `api/integrate/list`,*/}
92
- {/* {*/}
93
- {/* page: pages.lawyerList,*/}
94
- {/* type: 'lawyer',*/}
95
- {/* search: search,*/}
96
- {/* center_code: center_code,*/}
97
- {/* crime_code: crime_code*/}
98
- {/* },*/}
99
- {/* (obj: any) => {*/}
100
- {/* handleMoreView('lawyerList', obj.data.list.lawyerList);*/}
101
- {/* }*/}
102
- {/* );*/}
103
- {/* }}*/}
104
- {/*/>*/}
83
+ <Lawyer tab={tab} listCount={listCount} list={list} pages={pages} center_code={center_code} onMoreViewText={handleMoreViewText} onMoreView={() => {
84
+ paramFetch(`api/integrate/list`, {
85
+ page: pages.lawyerList,
86
+ type: 'lawyer',
87
+ search: search,
88
+ center_code: center_code,
89
+ crime_code: crime_code
90
+ }, (obj) => {
91
+ handleMoreView('lawyerList', obj.data.list.lawyerList);
92
+ });
93
+ }}/>
105
94
 
106
95
  <Broadcast listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => {
107
96
  paramFetch('/api/integrate/list', {
@@ -1,14 +1,16 @@
1
+ 'use client';
2
+
1
3
  import React, { useState, useEffect } from 'react';
2
4
  import { NoResult } from './NoResult';
3
5
  import { IListPagesType, IListTypes, searchInit } from './integrateType';
4
6
  import { useRouter } from 'next/router';
5
- // import Lawyer from './Lawyer';
6
7
  import Field from './Field';
7
8
  import Success from './Success';
8
9
  import LawInfo from './LawInfo';
9
10
  import Broadcast from './Broadcast';
10
11
  import Reply from './Reply';
11
12
  import Map from './Map';
13
+ import Lawyer from './Lawyer';
12
14
 
13
15
  const SearchData = ({
14
16
  list: propsList,
@@ -139,29 +141,29 @@ const SearchData = ({
139
141
  search={search}
140
142
  />
141
143
 
142
- {/*<Lawyer*/}
143
- {/* tab={tab}*/}
144
- {/* listCount={listCount}*/}
145
- {/* list={list}*/}
146
- {/* pages={pages}*/}
147
- {/* center_code={center_code}*/}
148
- {/* onMoreViewText={handleMoreViewText}*/}
149
- {/* onMoreView={() => {*/}
150
- {/* paramFetch(*/}
151
- {/* `api/integrate/list`,*/}
152
- {/* {*/}
153
- {/* page: pages.lawyerList,*/}
154
- {/* type: 'lawyer',*/}
155
- {/* search: search,*/}
156
- {/* center_code: center_code,*/}
157
- {/* crime_code: crime_code*/}
158
- {/* },*/}
159
- {/* (obj: any) => {*/}
160
- {/* handleMoreView('lawyerList', obj.data.list.lawyerList);*/}
161
- {/* }*/}
162
- {/* );*/}
163
- {/* }}*/}
164
- {/*/>*/}
144
+ <Lawyer
145
+ tab={tab}
146
+ listCount={listCount}
147
+ list={list}
148
+ pages={pages}
149
+ center_code={center_code}
150
+ onMoreViewText={handleMoreViewText}
151
+ onMoreView={() => {
152
+ paramFetch(
153
+ `api/integrate/list`,
154
+ {
155
+ page: pages.lawyerList,
156
+ type: 'lawyer',
157
+ search: search,
158
+ center_code: center_code,
159
+ crime_code: crime_code
160
+ },
161
+ (obj: any) => {
162
+ handleMoreView('lawyerList', obj.data.list.lawyerList);
163
+ }
164
+ );
165
+ }}
166
+ />
165
167
 
166
168
  <Broadcast
167
169
  listCount={listCount}