Yansen 2 年 前
コミット
01edafc4c1
共有3 個のファイルを変更した18 個の追加4 個の削除を含む
  1. 8
    2
      config/routes.js
  2. 2
    2
      src/pages/invoiceFill/index.jsx
  3. 8
    0
      src/pages/noFill/index.jsx

+ 8
- 2
config/routes.js ファイルの表示

@@ -31,7 +31,7 @@ export default [
31 31
     component: '@/pages/invoiceFill',    
32 32
   },
33 33
   {
34
-    path: '/invoiceFill/edit.jsx',
34
+    path: '/invoiceFill/edit',
35 35
     name: '班次编辑',
36 36
     icon: 'ProfileOutlined',
37 37
     component: '@/pages/invoiceFill/edit.jsx',
@@ -39,10 +39,16 @@ export default [
39 39
   },
40 40
   {
41 41
     path: '/invoiceDetail',
42
-    name: '开票明细列表',
42
+    name: '开票明细',
43 43
     icon: 'ProfileOutlined',
44 44
     component: '@/pages/invoiceDetail',    
45 45
   },
46
+  {
47
+    path: '/nofill',
48
+    name: '未填记录',
49
+    icon: 'FileSearchOutlined',
50
+    component: '@/pages/noFill',    
51
+  },
46 52
   {
47 53
     path: '/',
48 54
     redirect: '/welcome',

+ 2
- 2
src/pages/invoiceFill/index.jsx ファイルの表示

@@ -15,7 +15,7 @@ export default (props) => {
15 15
   const actionRef = useRef();
16 16
 
17 17
   const handleClick = () => {
18
-    history.push('/invoiceFill/edit.jsx');
18
+    history.push('/invoiceFill/edit');
19 19
   }
20 20
   const handleDelete = (id) => {
21 21
     deleteInvoiceFill(id).then((res) => {
@@ -65,7 +65,7 @@ export default (props) => {
65 65
       key: 'option',
66 66
       ellipsis: true,
67 67
       render: (_, record) => [
68
-        <Button type="link" key={1} onClick={() => history.push(`/invoiceFill/edit.jsx?id=${record.invoiceId}`)} style={{ padding: 0 }}>
68
+        <Button type="link" key={1} onClick={() => history.push(`/invoiceFill/edit?id=${record.invoiceId}`)} style={{ padding: 0 }}>
69 69
           编辑
70 70
         </Button>,
71 71
         <Popconfirm

+ 8
- 0
src/pages/noFill/index.jsx ファイルの表示

@@ -0,0 +1,8 @@
1
+import React from 'react';
2
+import { PageHeaderWrapper } from '@ant-design/pro-layout';
3
+
4
+export default (props) => {
5
+  return (
6
+    <PageHeaderWrapper></PageHeaderWrapper>
7
+  )
8
+}