Commit 471c15ae52ba7a499e67848a6832ba617ee6c9b9

Authored by “wangming”
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.
美国版/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 5 <meta charset="UTF-8" />
6 6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7 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 9 <link rel="stylesheet" crossorigin href="/assets/index-DKXCW1Pt.css">
10 10 </head>
11 11  
... ...
美国版/Food Labeling Management Platform/src/components/labels/LabelTemplatesView.tsx
... ... @@ -45,8 +45,7 @@ export function LabelTemplatesView() {
45 45 });
46 46  
47 47 const handleNewTemplate = () => {
48   - setEditingTemplateId(null);
49   - setViewMode('editor');
  48 + // 点击不跳转,仅保留按钮展示
50 49 };
51 50  
52 51 const handleEditTemplate = (id: string) => {
... ... @@ -97,7 +96,7 @@ export function LabelTemplatesView() {
97 96 </SelectContent>
98 97 </Select>
99 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 100 onClick={handleNewTemplate}
102 101 >
103 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 83 ];
84 84  
85 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 90 const MOCK_GROUPS = [
... ... @@ -99,6 +99,7 @@ const MOCK_MEMBERS = [
99 99 role: 'Manager',
100 100 locations: ['Downtown Store (101)', 'Uptown Store (102)'],
101 101 email: 'alice@example.com',
  102 + phone: '+1 (555) 111-2222',
102 103 status: 'active'
103 104 },
104 105 {
... ... @@ -107,6 +108,7 @@ const MOCK_MEMBERS = [
107 108 role: 'Team Member',
108 109 locations: ['Airport Kiosk (201)'],
109 110 email: 'bob@example.com',
  111 + phone: '+1 (555) 222-3333',
110 112 status: 'active'
111 113 },
112 114 {
... ... @@ -115,6 +117,7 @@ const MOCK_MEMBERS = [
115 117 role: 'Team Member',
116 118 locations: ['Downtown Store (101)'],
117 119 email: 'charlie@example.com',
  120 + phone: '+1 (555) 333-4444',
118 121 status: 'inactive'
119 122 },
120 123 ];
... ... @@ -256,6 +259,7 @@ export function PeopleView() {
256 259 <TableRow className="bg-gray-100">
257 260 <TableHead className="font-bold text-black border-r">Partner Name</TableHead>
258 261 <TableHead className="font-bold text-black border-r">Contact</TableHead>
  262 + <TableHead className="font-bold text-black border-r">Phone</TableHead>
259 263 <TableHead className="font-bold text-black border-r">Status</TableHead>
260 264 <TableHead className="font-bold text-black text-center">Actions</TableHead>
261 265 </TableRow>
... ... @@ -265,6 +269,7 @@ export function PeopleView() {
265 269 <TableRow key={p.id}>
266 270 <TableCell className="font-medium border-r">{p.name}</TableCell>
267 271 <TableCell className="border-r">{p.contact}</TableCell>
  272 + <TableCell className="border-r text-gray-600">{p.phone}</TableCell>
268 273 <TableCell className="border-r">
269 274 <Badge className={p.status === 'active' ? "bg-green-600" : "bg-gray-400"}>
270 275 {p.status}
... ... @@ -316,6 +321,7 @@ export function PeopleView() {
316 321 <TableRow className="bg-gray-100">
317 322 <TableHead className="font-bold text-black border-r">Name</TableHead>
318 323 <TableHead className="font-bold text-black border-r">Email</TableHead>
  324 + <TableHead className="font-bold text-black border-r">Phone</TableHead>
319 325 <TableHead className="font-bold text-black border-r">Role</TableHead>
320 326 <TableHead className="font-bold text-black border-r">Assigned Locations</TableHead>
321 327 <TableHead className="font-bold text-black border-r">Status</TableHead>
... ... @@ -327,6 +333,7 @@ export function PeopleView() {
327 333 <TableRow key={m.id}>
328 334 <TableCell className="font-medium border-r">{m.name}</TableCell>
329 335 <TableCell className="border-r text-gray-600">{m.email}</TableCell>
  336 + <TableCell className="border-r text-gray-600">{m.phone}</TableCell>
330 337 <TableCell className="border-r">
331 338 <Badge variant="outline" className="font-normal">{m.role}</Badge>
332 339 </TableCell>
... ... @@ -445,6 +452,10 @@ function CreatePartnerDialog({ open, onOpenChange }: { open: boolean; onOpenChan
445 452 <Label>Contact Email</Label>
446 453 <Input placeholder="admin@partner.com" />
447 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 459 <div className="flex items-center gap-2">
449 460 <Switch id="partner-status" defaultChecked />
450 461 <Label htmlFor="partner-status">Active</Label>
... ... @@ -530,6 +541,11 @@ function CreateMemberDialog({ open, onOpenChange, roles }: { open: boolean; onOp
530 541 </div>
531 542  
532 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 549 <ScrollArea className="h-[120px] w-full border rounded-md p-2">
534 550 <div className="space-y-2">
535 551 {MOCK_LOCATIONS.map(loc => (
... ...