Commit 471c15ae52ba7a499e67848a6832ba617ee6c9b9
1 parent
e32d5dd8
Update index.html to reference new JavaScript file, remove obsolete asset, and e…
…nhance LabelTemplatesView and PeopleView components with phone number fields and styling adjustments.
Showing
4 changed files
with
30 additions
and
15 deletions
美国版/Food Labeling Management Platform/build/assets/index-CSLBXRYd.js renamed to 美国版/Food Labeling Management Platform/build/assets/index-ChMXTsCq.js
No preview for this file type
美国版/Food Labeling Management Platform/build/index.html
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <meta charset="UTF-8" /> | 5 | <meta charset="UTF-8" /> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 | <title>Food Labeling Management Platform</title> | 7 | <title>Food Labeling Management Platform</title> |
| 8 | - <script type="module" crossorigin src="/assets/index-CSLBXRYd.js"></script> | 8 | + <script type="module" crossorigin src="/assets/index-ChMXTsCq.js"></script> |
| 9 | <link rel="stylesheet" crossorigin href="/assets/index-DKXCW1Pt.css"> | 9 | <link rel="stylesheet" crossorigin href="/assets/index-DKXCW1Pt.css"> |
| 10 | </head> | 10 | </head> |
| 11 | 11 |
美国版/Food Labeling Management Platform/src/components/labels/LabelTemplatesView.tsx
| @@ -45,8 +45,7 @@ export function LabelTemplatesView() { | @@ -45,8 +45,7 @@ export function LabelTemplatesView() { | ||
| 45 | }); | 45 | }); |
| 46 | 46 | ||
| 47 | const handleNewTemplate = () => { | 47 | const handleNewTemplate = () => { |
| 48 | - setEditingTemplateId(null); | ||
| 49 | - setViewMode('editor'); | 48 | + // 点击不跳转,仅保留按钮展示 |
| 50 | }; | 49 | }; |
| 51 | 50 | ||
| 52 | const handleEditTemplate = (id: string) => { | 51 | const handleEditTemplate = (id: string) => { |
| @@ -97,7 +96,7 @@ export function LabelTemplatesView() { | @@ -97,7 +96,7 @@ export function LabelTemplatesView() { | ||
| 97 | </SelectContent> | 96 | </SelectContent> |
| 98 | </Select> | 97 | </Select> |
| 99 | <Button | 98 | <Button |
| 100 | - className="hidden bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-md h-10 px-6 shrink-0 ml-auto" | 99 | + className="bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-md h-10 px-6 shrink-0 ml-auto" |
| 101 | onClick={handleNewTemplate} | 100 | onClick={handleNewTemplate} |
| 102 | > | 101 | > |
| 103 | New Label Template <Plus className="ml-1 w-4 h-4" /> | 102 | New Label Template <Plus className="ml-1 w-4 h-4" /> |
美国版/Food Labeling Management Platform/src/components/people/PeopleView.tsx
| @@ -83,8 +83,8 @@ const MOCK_ROLES = [ | @@ -83,8 +83,8 @@ const MOCK_ROLES = [ | ||
| 83 | ]; | 83 | ]; |
| 84 | 84 | ||
| 85 | const MOCK_PARTNERS = [ | 85 | const MOCK_PARTNERS = [ |
| 86 | - { id: 'p1', name: 'Global Foods Inc.', status: 'active', contact: 'admin@globalfoods.com' }, | ||
| 87 | - { id: 'p2', name: 'Local Eateries Co.', status: 'active', contact: 'support@localeateries.com' }, | 86 | + { id: 'p1', name: 'Global Foods Inc.', status: 'active', contact: 'admin@globalfoods.com', phone: '+1 (555) 100-2000' }, |
| 87 | + { id: 'p2', name: 'Local Eateries Co.', status: 'active', contact: 'support@localeateries.com', phone: '+1 (555) 200-3000' }, | ||
| 88 | ]; | 88 | ]; |
| 89 | 89 | ||
| 90 | const MOCK_GROUPS = [ | 90 | const MOCK_GROUPS = [ |
| @@ -99,6 +99,7 @@ const MOCK_MEMBERS = [ | @@ -99,6 +99,7 @@ const MOCK_MEMBERS = [ | ||
| 99 | role: 'Manager', | 99 | role: 'Manager', |
| 100 | locations: ['Downtown Store (101)', 'Uptown Store (102)'], | 100 | locations: ['Downtown Store (101)', 'Uptown Store (102)'], |
| 101 | email: 'alice@example.com', | 101 | email: 'alice@example.com', |
| 102 | + phone: '+1 (555) 111-2222', | ||
| 102 | status: 'active' | 103 | status: 'active' |
| 103 | }, | 104 | }, |
| 104 | { | 105 | { |
| @@ -107,6 +108,7 @@ const MOCK_MEMBERS = [ | @@ -107,6 +108,7 @@ const MOCK_MEMBERS = [ | ||
| 107 | role: 'Team Member', | 108 | role: 'Team Member', |
| 108 | locations: ['Airport Kiosk (201)'], | 109 | locations: ['Airport Kiosk (201)'], |
| 109 | email: 'bob@example.com', | 110 | email: 'bob@example.com', |
| 111 | + phone: '+1 (555) 222-3333', | ||
| 110 | status: 'active' | 112 | status: 'active' |
| 111 | }, | 113 | }, |
| 112 | { | 114 | { |
| @@ -115,6 +117,7 @@ const MOCK_MEMBERS = [ | @@ -115,6 +117,7 @@ const MOCK_MEMBERS = [ | ||
| 115 | role: 'Team Member', | 117 | role: 'Team Member', |
| 116 | locations: ['Downtown Store (101)'], | 118 | locations: ['Downtown Store (101)'], |
| 117 | email: 'charlie@example.com', | 119 | email: 'charlie@example.com', |
| 120 | + phone: '+1 (555) 333-4444', | ||
| 118 | status: 'inactive' | 121 | status: 'inactive' |
| 119 | }, | 122 | }, |
| 120 | ]; | 123 | ]; |
| @@ -256,6 +259,7 @@ export function PeopleView() { | @@ -256,6 +259,7 @@ export function PeopleView() { | ||
| 256 | <TableRow className="bg-gray-100"> | 259 | <TableRow className="bg-gray-100"> |
| 257 | <TableHead className="font-bold text-black border-r">Partner Name</TableHead> | 260 | <TableHead className="font-bold text-black border-r">Partner Name</TableHead> |
| 258 | <TableHead className="font-bold text-black border-r">Contact</TableHead> | 261 | <TableHead className="font-bold text-black border-r">Contact</TableHead> |
| 262 | + <TableHead className="font-bold text-black border-r">Phone</TableHead> | ||
| 259 | <TableHead className="font-bold text-black border-r">Status</TableHead> | 263 | <TableHead className="font-bold text-black border-r">Status</TableHead> |
| 260 | <TableHead className="font-bold text-black text-center">Actions</TableHead> | 264 | <TableHead className="font-bold text-black text-center">Actions</TableHead> |
| 261 | </TableRow> | 265 | </TableRow> |
| @@ -265,6 +269,7 @@ export function PeopleView() { | @@ -265,6 +269,7 @@ export function PeopleView() { | ||
| 265 | <TableRow key={p.id}> | 269 | <TableRow key={p.id}> |
| 266 | <TableCell className="font-medium border-r">{p.name}</TableCell> | 270 | <TableCell className="font-medium border-r">{p.name}</TableCell> |
| 267 | <TableCell className="border-r">{p.contact}</TableCell> | 271 | <TableCell className="border-r">{p.contact}</TableCell> |
| 272 | + <TableCell className="border-r text-gray-600">{p.phone}</TableCell> | ||
| 268 | <TableCell className="border-r"> | 273 | <TableCell className="border-r"> |
| 269 | <Badge className={p.status === 'active' ? "bg-green-600" : "bg-gray-400"}> | 274 | <Badge className={p.status === 'active' ? "bg-green-600" : "bg-gray-400"}> |
| 270 | {p.status} | 275 | {p.status} |
| @@ -316,6 +321,7 @@ export function PeopleView() { | @@ -316,6 +321,7 @@ export function PeopleView() { | ||
| 316 | <TableRow className="bg-gray-100"> | 321 | <TableRow className="bg-gray-100"> |
| 317 | <TableHead className="font-bold text-black border-r">Name</TableHead> | 322 | <TableHead className="font-bold text-black border-r">Name</TableHead> |
| 318 | <TableHead className="font-bold text-black border-r">Email</TableHead> | 323 | <TableHead className="font-bold text-black border-r">Email</TableHead> |
| 324 | + <TableHead className="font-bold text-black border-r">Phone</TableHead> | ||
| 319 | <TableHead className="font-bold text-black border-r">Role</TableHead> | 325 | <TableHead className="font-bold text-black border-r">Role</TableHead> |
| 320 | <TableHead className="font-bold text-black border-r">Assigned Locations</TableHead> | 326 | <TableHead className="font-bold text-black border-r">Assigned Locations</TableHead> |
| 321 | <TableHead className="font-bold text-black border-r">Status</TableHead> | 327 | <TableHead className="font-bold text-black border-r">Status</TableHead> |
| @@ -327,6 +333,7 @@ export function PeopleView() { | @@ -327,6 +333,7 @@ export function PeopleView() { | ||
| 327 | <TableRow key={m.id}> | 333 | <TableRow key={m.id}> |
| 328 | <TableCell className="font-medium border-r">{m.name}</TableCell> | 334 | <TableCell className="font-medium border-r">{m.name}</TableCell> |
| 329 | <TableCell className="border-r text-gray-600">{m.email}</TableCell> | 335 | <TableCell className="border-r text-gray-600">{m.email}</TableCell> |
| 336 | + <TableCell className="border-r text-gray-600">{m.phone}</TableCell> | ||
| 330 | <TableCell className="border-r"> | 337 | <TableCell className="border-r"> |
| 331 | <Badge variant="outline" className="font-normal">{m.role}</Badge> | 338 | <Badge variant="outline" className="font-normal">{m.role}</Badge> |
| 332 | </TableCell> | 339 | </TableCell> |
| @@ -445,6 +452,10 @@ function CreatePartnerDialog({ open, onOpenChange }: { open: boolean; onOpenChan | @@ -445,6 +452,10 @@ function CreatePartnerDialog({ open, onOpenChange }: { open: boolean; onOpenChan | ||
| 445 | <Label>Contact Email</Label> | 452 | <Label>Contact Email</Label> |
| 446 | <Input placeholder="admin@partner.com" /> | 453 | <Input placeholder="admin@partner.com" /> |
| 447 | </div> | 454 | </div> |
| 455 | + <div className="space-y-2"> | ||
| 456 | + <Label>Phone Number</Label> | ||
| 457 | + <Input type="tel" placeholder="+1 (555) 000-0000" /> | ||
| 458 | + </div> | ||
| 448 | <div className="flex items-center gap-2"> | 459 | <div className="flex items-center gap-2"> |
| 449 | <Switch id="partner-status" defaultChecked /> | 460 | <Switch id="partner-status" defaultChecked /> |
| 450 | <Label htmlFor="partner-status">Active</Label> | 461 | <Label htmlFor="partner-status">Active</Label> |
| @@ -530,6 +541,11 @@ function CreateMemberDialog({ open, onOpenChange, roles }: { open: boolean; onOp | @@ -530,6 +541,11 @@ function CreateMemberDialog({ open, onOpenChange, roles }: { open: boolean; onOp | ||
| 530 | </div> | 541 | </div> |
| 531 | 542 | ||
| 532 | <div className="space-y-2"> | 543 | <div className="space-y-2"> |
| 544 | + <Label>Phone Number</Label> | ||
| 545 | + <Input type="tel" placeholder="+1 (555) 000-0000" /> | ||
| 546 | + </div> | ||
| 547 | + | ||
| 548 | + <div className="space-y-2"> | ||
| 533 | <ScrollArea className="h-[120px] w-full border rounded-md p-2"> | 549 | <ScrollArea className="h-[120px] w-full border rounded-md p-2"> |
| 534 | <div className="space-y-2"> | 550 | <div className="space-y-2"> |
| 535 | {MOCK_LOCATIONS.map(loc => ( | 551 | {MOCK_LOCATIONS.map(loc => ( |