Yansen 2 years ago
parent
commit
873625cb60

+ 1
- 2
src/pages/dish/edit/Detail.jsx View File

@@ -16,7 +16,6 @@ export default (props) => {
16 16
     if (id) {
17 17
       getDishById(id).then((res) => {
18 18
         setDish(res);
19
-        console.log(res)
20 19
       });
21 20
     }
22 21
   }, [id]);
@@ -32,7 +31,7 @@ export default (props) => {
32 31
           </Typography>
33 32
         </Col>
34 33
         <Col span={12}>
35
-          <Image style={{ minWidth: '240px' }} src={dish.thumb} />
34
+          <Image style={{ minWidth: '240px', maxWidth: '480px' }} src={dish.thumb} />
36 35
         </Col>
37 36
       </Row>
38 37
     </Card>

+ 3
- 3
src/pages/guarantee/list/index.jsx View File

@@ -62,7 +62,7 @@ const GuaranteeList = (props) => {
62 62
           style={{ padding: 0 }}
63 63
           type="link"
64 64
           onClick={() => {
65
-            navigate(`/task/guarantee/edit?id=${record.id}`);
65
+            navigate(`/task/guaranteeUnits/edit?id=${record.id}`);
66 66
           }}
67 67
         >
68 68
           修改
@@ -83,7 +83,7 @@ const GuaranteeList = (props) => {
83 83
          style={{ padding: 0 }}
84 84
          type="link"
85 85
          onClick={() => {
86
-           navigate(`/task/guarantee/personnel/list?id=${record.id}`);
86
+           navigate(`/task/guaranteePerson?id=${record.id}`);
87 87
          }}
88 88
        >
89 89
          人员
@@ -103,7 +103,7 @@ const GuaranteeList = (props) => {
103 103
             key="2"
104 104
             type="primary"
105 105
             onClick={() => {
106
-              navigate("/task/guarantee/edit");
106
+              navigate("/task/guaranteeUnits/edit");
107 107
             }}
108 108
           >
109 109
             新增

+ 2
- 2
src/pages/guarantee/personnel/list/index.jsx View File

@@ -96,7 +96,7 @@ const GuaranteePersonnelList = (props) => {
96 96
           style={{ padding: 0 }}
97 97
           type="link"
98 98
           onClick={() => {
99
-            navigate(`/task/guarantee/personnel/edit?id=${record.id}`);
99
+            navigate(`/task/guaranteePerson/edit?id=${record.id}`);
100 100
           }}
101 101
         >
102 102
           修改
@@ -130,7 +130,7 @@ const GuaranteePersonnelList = (props) => {
130 130
             type="primary"
131 131
             onClick={() => {
132 132
               navigate(
133
-                "/task/guarantee/personnel/edit" + (id ? `?orgId=${id}` : "")
133
+                "/task/guaranteePerson/edit" + (id ? `?orgId=${id}` : "")
134 134
               );
135 135
             }}
136 136
           >

+ 10
- 10
src/routes/routes.jsx View File

@@ -137,37 +137,37 @@ export const authRoutes = [
137 137
         },
138 138
       },
139 139
       {
140
-        path: "guarantee/list",
140
+        path: "guaranteeUnits/list",
141 141
         element: <GuaranteeList />,
142 142
         meta: {
143 143
           title: "保障机构",
144
-          // permission: 'guaranteeTask.guarantee',
144
+          permission: 'guaranteeUnits',
145 145
         },
146 146
       },
147 147
       {
148
-        path: "guarantee/edit",
148
+        path: "guaranteeUnits/edit",
149 149
         element: <GuaranteeEdit />,
150 150
         meta: {
151 151
           title: "机构维护",
152 152
           hideInMenu: true,
153
-          // permission: 'guaranteeTask.guarantee',
153
+          permission: 'guaranteeUnits.edit',
154 154
         },
155 155
       },
156 156
       {
157
-        path: "guarantee/personnel/list",
157
+        path: "guaranteePerson",
158 158
         element: <GuaranteePersonnelList />,
159 159
         meta: {
160 160
           title: "机构人员",
161
-          // permission: 'guaranteeTask.guarantee',
161
+          permission: 'guaranteePerson',
162 162
         },
163 163
       },
164 164
       {
165
-        path: "guarantee/personnel/edit",
165
+        path: "guaranteePerson/edit",
166 166
         element: <GuaranteePersonnelEdit />,
167 167
         meta: {
168 168
           title: "机构人员维护",
169 169
           hideInMenu: true,
170
-          // permission: 'guaranteeTask.guarantee',
170
+          permission: 'guaranteePerson.edit',
171 171
         },
172 172
       },
173 173
       {
@@ -175,7 +175,7 @@ export const authRoutes = [
175 175
         element: <Supportability />,
176 176
         meta: {
177 177
           title: "保障能力",
178
-          permission: 'guaranteeTask.evaluate.list',
178
+          permission: 'supportability',
179 179
         },
180 180
       },
181 181
     ],
@@ -215,7 +215,7 @@ export const authRoutes = [
215 215
         meta: {
216 216
           hideInMenu: true,
217 217
           title: "菜肴详情",
218
-          // permission: 'dish.detail',
218
+          permission: 'dish.detail',
219 219
         },
220 220
       },
221 221
       {