fangmingyue 2 年之前
父節點
當前提交
c0e2469aa3
共有 3 個文件被更改,包括 66 次插入55 次删除
  1. 22
    18
      src/pages/checkStand/list/index.jsx
  2. 22
    18
      src/pages/issueType/list/index.jsx
  3. 22
    19
      src/pages/position/list/index.jsx

+ 22
- 18
src/pages/checkStand/list/index.jsx 查看文件

@@ -3,6 +3,7 @@ import { useNavigate } from "react-router-dom";
3 3
 import { queryTable } from "@/utils/request";
4 4
 import { ProTable } from "@ant-design/pro-components";
5 5
 import { Button, message, Popconfirm } from "antd";
6
+import Page from "@/components/Page";
6 7
 import { getTaCheckStand } from "@/service/tacheckstand";
7 8
 
8 9
 const queryTaCheckStandList = queryTable(getTaCheckStand);
@@ -61,23 +62,26 @@ export default (props) => {
61 62
   ];
62 63
 
63 64
   return (
64
-    <ProTable
65
-      actionRef={actionRef}
66
-      rowKey="statndId"
67
-      search={false}
68
-      // toolBarRender={() => [
69
-      //   <Button
70
-      //     key="1"
71
-      //     type="primary"
72
-      //     onClick={() => {
73
-      //       navigate("/dict/locType/edit");
74
-      //     }}
75
-      //   >
76
-      //     新增
77
-      //   </Button>,
78
-      // ]}
79
-      request={queryTaCheckStandList}
80
-      columns={columns}
81
-    />
65
+    <Page>
66
+      <ProTable
67
+        actionRef={actionRef}
68
+        rowKey="statndId"
69
+        search={false}
70
+        // toolBarRender={() => [
71
+        //   <Button
72
+        //     key="1"
73
+        //     type="primary"
74
+        //     onClick={() => {
75
+        //       navigate("/dict/locType/edit");
76
+        //     }}
77
+        //   >
78
+        //     新增
79
+        //   </Button>,
80
+        // ]}
81
+        request={queryTaCheckStandList}
82
+        columns={columns}
83
+      />
84
+    </Page>
85
+
82 86
   );
83 87
 };

+ 22
- 18
src/pages/issueType/list/index.jsx 查看文件

@@ -2,6 +2,7 @@ import React from "react";
2 2
 import { useNavigate } from "react-router-dom";
3 3
 import { queryTable } from "@/utils/request";
4 4
 import { ProTable } from "@ant-design/pro-components";
5
+import Page from "@/components/Page";
5 6
 import { Button, message, Popconfirm } from "antd";
6 7
 import { getTdIssueType, deleteTdIssueType } from "@/service/tdissuetype";
7 8
 
@@ -97,23 +98,26 @@ export default (props) => {
97 98
   ];
98 99
 
99 100
   return (
100
-    <ProTable
101
-      actionRef={actionRef}
102
-      rowKey="typeId"
103
-      search={false}
104
-      toolBarRender={() => [
105
-        <Button
106
-          key="1"
107
-          type="primary"
108
-          onClick={() => {
109
-            navigate("/dict/issueType/edit");
110
-          }}
111
-        >
112
-          新增
113
-        </Button>,
114
-      ]}
115
-      request={queryTdIssueList}
116
-      columns={columns}
117
-    />
101
+    <Page>
102
+      <ProTable
103
+        actionRef={actionRef}
104
+        rowKey="typeId"
105
+        search={false}
106
+        toolBarRender={() => [
107
+          <Button
108
+            key="1"
109
+            type="primary"
110
+            onClick={() => {
111
+              navigate("/dict/issueType/edit");
112
+            }}
113
+          >
114
+            新增
115
+          </Button>,
116
+        ]}
117
+        request={queryTdIssueList}
118
+        columns={columns}
119
+      />
120
+    </Page>
121
+
118 122
   );
119 123
 };

+ 22
- 19
src/pages/position/list/index.jsx 查看文件

@@ -3,11 +3,12 @@ import { useNavigate } from "react-router-dom";
3 3
 import { queryTable, queryDict } from "@/utils/request";
4 4
 import { ProTable } from "@ant-design/pro-components";
5 5
 import { Button, message, Popconfirm } from "antd";
6
+import Page from "@/components/Page";
6 7
 import { getSysPosition, deleteSysPosition } from "@/service/sysposition";
7 8
 import { getSysOrg } from "@/service/sysorg";
8 9
 
9 10
 const querySysPositionList = queryTable(getSysPosition);
10
-const queryOrg = queryDict(getSysOrg, {labelKey: 'name', valueKey: 'orgId'})
11
+const queryOrg = queryDict(getSysOrg, { labelKey: 'name', valueKey: 'orgId' })
11 12
 
12 13
 export default (props) => {
13 14
   const actionRef = React.useRef();
@@ -106,23 +107,25 @@ export default (props) => {
106 107
   ];
107 108
 
108 109
   return (
109
-    <ProTable
110
-      actionRef={actionRef}
111
-      rowKey="positionId"
112
-      search={false}
113
-      toolBarRender={() => [
114
-        <Button
115
-          key="1"
116
-          type="primary"
117
-          onClick={() => {
118
-            navigate("/system/position/edit");
119
-          }}
120
-        >
121
-          新增
122
-        </Button>,
123
-      ]}
124
-      request={querySysPositionList}
125
-      columns={columns}
126
-    />
110
+    <Page>
111
+      <ProTable
112
+        actionRef={actionRef}
113
+        rowKey="positionId"
114
+        search={false}
115
+        toolBarRender={() => [
116
+          <Button
117
+            key="1"
118
+            type="primary"
119
+            onClick={() => {
120
+              navigate("/system/position/edit");
121
+            }}
122
+          >
123
+            新增
124
+          </Button>,
125
+        ]}
126
+        request={querySysPositionList}
127
+        columns={columns}
128
+      />
129
+    </Page>
127 130
   );
128 131
 };