魏熙美 5 年 前
コミット
86e28cbea0
共有2 個のファイルを変更した4 個の追加6 個の削除を含む
  1. 4
    4
      src/pages/staff/list/StaffList.jsx
  2. 0
    2
      src/pages/system/document/audit.jsx

+ 4
- 4
src/pages/staff/list/StaffList.jsx ファイルの表示

103
 }
103
 }
104
 
104
 
105
 const header = (props) => {
105
 const header = (props) => {
106
-  const [tempData, setTempData] = useState([])
106
+  const [tempData, setTempData] = useState({ records: [] })
107
   const [pageTotal, setPageTotal] = useState('')
107
   const [pageTotal, setPageTotal] = useState('')
108
   useEffect(() => {
108
   useEffect(() => {
109
     getList({ pageNum: 1, pageSize: 10 });
109
     getList({ pageNum: 1, pageSize: 10 });
112
   const getList = (params) => {
112
   const getList = (params) => {
113
     request({ ...apis.staff.taUser, params: { ...params } }).then((data) => {
113
     request({ ...apis.staff.taUser, params: { ...params } }).then((data) => {
114
       console.log(data, "listData")
114
       console.log(data, "listData")
115
-      setTempData(data.records)
115
+      setTempData(data)
116
       setPageTotal(data.total)
116
       setPageTotal(data.total)
117
     })
117
     })
118
   }
118
   }
193
       <Button type="danger" style={{ margin: '20px 0', padding: '2px 36px' }} onClick={toEditStaff()}>新增</Button>
193
       <Button type="danger" style={{ margin: '20px 0', padding: '2px 36px' }} onClick={toEditStaff()}>新增</Button>
194
       <Row style={{ padding: ' 0 10px' }}>
194
       <Row style={{ padding: ' 0 10px' }}>
195
         {
195
         {
196
-          tempData.map((item, index) => (
196
+          tempData.records.map((item, index) => (
197
             <Col span={6}>
197
             <Col span={6}>
198
               <CartBody data={item} onFresh={()=> getList({ pageNum: 1, pageSize: 10 })}/>
198
               <CartBody data={item} onFresh={()=> getList({ pageNum: 1, pageSize: 10 })}/>
199
             </Col>
199
             </Col>
203
 
203
 
204
       {/* 分页  */}
204
       {/* 分页  */}
205
       <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
205
       <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
206
-        <Pagination showQuickJumper defaultCurrent={1} total={pageTotal} onChange={onChange} current={data.current}/>
206
+        <Pagination showQuickJumper defaultCurrent={1} total={pageTotal} onChange={onChange} current={tempData.current}/>
207
       </div>
207
       </div>
208
     </>
208
     </>
209
   )
209
   )

+ 0
- 2
src/pages/system/document/audit.jsx ファイルの表示

28
   }
28
   }
29
 
29
 
30
   function onVerify (params) {
30
   function onVerify (params) {
31
-
32
-    alert(params)
33
     // 网路请求
31
     // 网路请求
34
     request({ ...apis.system.updateTaPolicy, urlData: { id: documentVerifyId }, data: { verifyStatus: params } }).then(data => {
32
     request({ ...apis.system.updateTaPolicy, urlData: { id: documentVerifyId }, data: { verifyStatus: params } }).then(data => {
35
 
33