|
@@ -1994,40 +1994,39 @@ export default function TaskManagement() {
|
|
|
<div className="bg-white rounded-2xl border border-gray-200/50 shadow-sm overflow-hidden">
|
|
<div className="bg-white rounded-2xl border border-gray-200/50 shadow-sm overflow-hidden">
|
|
|
{/* 查询与操作栏 */}
|
|
{/* 查询与操作栏 */}
|
|
|
<div className="p-4 lg:p-5 border-b border-gray-200/50">
|
|
<div className="p-4 lg:p-5 border-b border-gray-200/50">
|
|
|
- <div className="flex flex-wrap gap-2 lg:gap-3 items-center min-w-0">
|
|
|
|
|
- {/* 搜索条件:按原宽度 200px,不超出,可缩小 */}
|
|
|
|
|
- <div className="flex items-center gap-2 lg:gap-3 w-[200px] min-w-[100px] flex-shrink">
|
|
|
|
|
- <span className="text-sm font-medium text-gray-700 whitespace-nowrap flex-shrink-0">作业编号:</span>
|
|
|
|
|
|
|
+ <div className="flex flex-wrap items-center gap-2 lg:gap-3 min-w-0">
|
|
|
|
|
+ {/* 搜索条件:放宽到 280px,可缩小但不挤压不可见 */}
|
|
|
|
|
+ <div className="flex items-center gap-2 lg:gap-3 w-[280px] min-w-[180px] flex-shrink">
|
|
|
|
|
+ <span className="text-sm font-medium text-gray-700 whitespace-nowrap flex-shrink-0">{t('form.workOrderNo')}:</span>
|
|
|
<Input
|
|
<Input
|
|
|
value={searchOrderNo}
|
|
value={searchOrderNo}
|
|
|
onChange={(e) => setSearchOrderNo(e.target.value)}
|
|
onChange={(e) => setSearchOrderNo(e.target.value)}
|
|
|
- placeholder="请输入作业编号"
|
|
|
|
|
|
|
+ placeholder={t('form.workOrderNoPlaceholder')}
|
|
|
allowClear
|
|
allowClear
|
|
|
className="min-w-0 w-full"
|
|
className="min-w-0 w-full"
|
|
|
onPressEnter={handleSearch}
|
|
onPressEnter={handleSearch}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
- <div className="flex items-center gap-2 lg:gap-3 w-[200px] min-w-[100px] flex-shrink">
|
|
|
|
|
- <span className="text-sm font-medium text-gray-700 whitespace-nowrap flex-shrink-0">作业名称:</span>
|
|
|
|
|
|
|
+ <div className="flex items-center gap-2 lg:gap-3 w-[280px] min-w-[180px] flex-shrink">
|
|
|
|
|
+ <span className="text-sm font-medium text-gray-700 whitespace-nowrap flex-shrink-0">{t('form.workName')}:</span>
|
|
|
<Input
|
|
<Input
|
|
|
value={searchName}
|
|
value={searchName}
|
|
|
onChange={(e) => setSearchName(e.target.value)}
|
|
onChange={(e) => setSearchName(e.target.value)}
|
|
|
- placeholder="请输入作业名称"
|
|
|
|
|
|
|
+ placeholder={t('form.workNamePlaceholder')}
|
|
|
allowClear
|
|
allowClear
|
|
|
className="min-w-0 w-full"
|
|
className="min-w-0 w-full"
|
|
|
onPressEnter={handleSearch}
|
|
onPressEnter={handleSearch}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- {/* 按钮组:小屏整行,大屏右对齐 */}
|
|
|
|
|
- <div className="flex gap-2 w-full sm:w-auto sm:ml-auto justify-start sm:justify-end">
|
|
|
|
|
|
|
+ <Space size="small">
|
|
|
<Button type="primary" icon={<Search className="w-4 h-4" />} onClick={handleSearch}>
|
|
<Button type="primary" icon={<Search className="w-4 h-4" />} onClick={handleSearch}>
|
|
|
{t('common.search')}
|
|
{t('common.search')}
|
|
|
</Button>
|
|
</Button>
|
|
|
<Button icon={<RotateCcw className="w-4 h-4" />} onClick={handleReset}>
|
|
<Button icon={<RotateCcw className="w-4 h-4" />} onClick={handleReset}>
|
|
|
{t('common.reset')}
|
|
{t('common.reset')}
|
|
|
</Button>
|
|
</Button>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </Space>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|