Просмотр исходного кода

隐藏驾驶舱的快捷操作内容

pm 2 месяцев назад
Родитель
Сommit
11b10b250e
2 измененных файлов с 0 добавлено и 67 удалено
  1. 0 29
      src/components/Dashboard.tsx
  2. 0 38
      src/components/ExecutorDashboard.tsx

+ 0 - 29
src/components/Dashboard.tsx

@@ -2420,35 +2420,6 @@ export default function Dashboard() {
         </div>
       </Card>
 
-      {/* 物料管理快捷操作 */}
-      <Card
-        title={
-          <div className="flex items-center gap-2">
-            <Rocket className="w-5 h-5 text-gray-600" />
-            <span>{t('cockpit.materialQuickActions')}</span>
-          </div>
-        }
-      >
-        <div className="flex gap-4">
-          <button className="flex-1 bg-white border border-gray-200 rounded-lg p-4 hover:bg-gray-50 hover:border-gray-300 transition-all flex flex-col items-center justify-center gap-2">
-            <Plus className="w-6 h-6 text-gray-600" />
-            <span className="text-sm font-medium text-gray-700">{t('cockpit.addMaterial')}</span>
-          </button>
-          <button className="flex-1 bg-white border border-gray-200 rounded-lg p-4 hover:bg-gray-50 hover:border-gray-300 transition-all flex flex-col items-center justify-center gap-2">
-            <RefreshCw className="w-6 h-6 text-gray-600" />
-            <span className="text-sm font-medium text-gray-700">{t('cockpit.refreshMaterialStatus')}</span>
-          </button>
-          <button className="flex-1 bg-white border border-gray-200 rounded-lg p-4 hover:bg-gray-50 hover:border-gray-300 transition-all flex flex-col items-center justify-center gap-2">
-            <AlertCircle className="w-6 h-6 text-gray-600" />
-            <span className="text-sm font-medium text-gray-700">{t('cockpit.handleExceptionMaterials')}</span>
-          </button>
-          <button className="flex-1 bg-white border border-gray-200 rounded-lg p-4 hover:bg-gray-50 hover:border-gray-300 transition-all flex flex-col items-center justify-center gap-2">
-            <FileText className="w-6 h-6 text-gray-600" />
-            <span className="text-sm font-medium text-gray-700">{t('cockpit.materialExport')}</span>
-          </button>
-        </div>
-      </Card>
-
       {/* 任务详情弹框 */}
       <Modal
         title={null}

+ 0 - 38
src/components/ExecutorDashboard.tsx

@@ -1742,44 +1742,6 @@ export default function ExecutorDashboard() {
         </div>
       </Card>
       
-      {/* 快捷操作 */}
-      <Card className="border border-gray-200 shadow-sm">
-        <div className="flex items-center gap-2 mb-4">
-          <Rocket className="w-5 h-5 text-gray-600" />
-          <h3 className="text-lg font-semibold text-gray-900">{t('cockpit.quickActions')}</h3>
-        </div>
-        <div className="flex gap-4">
-          <button
-            className="flex-1 bg-white border border-gray-200 rounded-lg p-4 hover:bg-gray-50 hover:border-gray-300 transition-all flex flex-col items-center justify-center gap-2"
-            onClick={() => navigate('/my-task')}
-          >
-            <CheckCircle className="w-6 h-6 text-gray-600" />
-            <span className="text-sm font-medium text-gray-700">{t('cockpit.submitTaskComplete')}</span>
-          </button>
-          <button
-            className="flex-1 bg-white border border-gray-200 rounded-lg p-4 hover:bg-gray-50 hover:border-gray-300 transition-all flex flex-col items-center justify-center gap-2"
-            onClick={() => navigate('/my-task')}
-          >
-            <Eye className="w-6 h-6 text-gray-600" />
-            <span className="text-sm font-medium text-gray-700">{t('cockpit.viewMyJobs')}</span>
-          </button>
-          <button
-            className="flex-1 bg-white border border-gray-200 rounded-lg p-4 hover:bg-gray-50 hover:border-gray-300 transition-all flex flex-col items-center justify-center gap-2"
-            onClick={() => message.info(t('cockpit.featureDeveloping'))}
-          >
-            <ShoppingCart className="w-6 h-6 text-gray-600" />
-            <span className="text-sm font-medium text-gray-700">{t('cockpit.claimJobMaterial')}</span>
-          </button>
-          <button
-            className="flex-1 bg-white border border-gray-200 rounded-lg p-4 hover:bg-gray-50 hover:border-gray-300 transition-all flex flex-col items-center justify-center gap-2"
-            onClick={() => message.info(t('cockpit.featureDeveloping'))}
-          >
-            <HelpCircle className="w-6 h-6 text-gray-600" />
-            <span className="text-sm font-medium text-gray-700">{t('cockpit.feedback')}</span>
-          </button>
-        </div>
-      </Card>
-
       {/* 任务详情弹框 */}
       <Modal
         title={null}