生产管理系统 - 员工管理提交
This commit is contained in:
@@ -7,7 +7,6 @@ import { Badge } from '@/components/ui/badge';
|
||||
import { Progress } from '@/components/ui/progress';
|
||||
import {
|
||||
Database,
|
||||
Play,
|
||||
Download,
|
||||
Eye,
|
||||
AlertTriangle,
|
||||
@@ -68,7 +67,7 @@ export default function BatchEvaluationPage() {
|
||||
const totalWeight = factorWeights.reduce((sum, f) => sum + f.weight, 0);
|
||||
|
||||
// 模拟从空间分析服务读取地块因子数据
|
||||
const fetchFieldFactorsFromSpatialService = (fieldId: string): EvaluationFactor[] => {
|
||||
const fetchFieldFactorsFromSpatialService = (): EvaluationFactor[] => {
|
||||
return [
|
||||
{
|
||||
id: 'ph',
|
||||
@@ -214,7 +213,7 @@ export default function BatchEvaluationPage() {
|
||||
const fieldId = `field-${i + 1}`;
|
||||
const fieldName = `地块${String.fromCharCode(65 + (i % 26))}${Math.floor(i / 26) + 1}`;
|
||||
|
||||
const factors = fetchFieldFactorsFromSpatialService(fieldId);
|
||||
const factors = fetchFieldFactorsFromSpatialService();
|
||||
const scoredFactors = factors.map(factor => ({
|
||||
...factor,
|
||||
score: calculateFactorScore(factor.value, factor.optimalRange)
|
||||
|
||||
Reference in New Issue
Block a user