fix: 1. 接入入口模块的管理接口,优化样式。
2. 将查看文档评查结果详情对接接口,采用接口的方式进行查询。
This commit is contained in:
@@ -1204,8 +1204,6 @@ export async function getEvaluationPointGroups(
|
||||
...(token ? { headers: { 'Authorization': `Bearer ${token}` } } : {})
|
||||
});
|
||||
|
||||
// 🔍 调试:打印完整响应
|
||||
console.log('📦 getEvaluationPointGroups 完整响应:', JSON.stringify(response, null, 2));
|
||||
|
||||
if (response.error) {
|
||||
console.error('❌ getEvaluationPointGroups 错误:', response.error);
|
||||
@@ -1213,8 +1211,6 @@ export async function getEvaluationPointGroups(
|
||||
}
|
||||
|
||||
if (response.data) {
|
||||
console.log('📊 response.data:', response.data);
|
||||
console.log('📊 response.data.data:', response.data.data);
|
||||
|
||||
if (!response.data.data) {
|
||||
console.error('❌ response.data.data 不存在!完整 response.data:', response.data);
|
||||
@@ -1222,7 +1218,6 @@ export async function getEvaluationPointGroups(
|
||||
}
|
||||
|
||||
const ruleGroups = response.data.data.map(convertApiGroupToRuleGroup);
|
||||
console.log('✅ 转换后的 ruleGroups:', ruleGroups);
|
||||
return {
|
||||
data: ruleGroups,
|
||||
totalCount: response.data.total
|
||||
@@ -1415,7 +1410,6 @@ export async function createEvaluationPointGroup(
|
||||
|
||||
if (response.data) {
|
||||
const ruleGroup = convertApiGroupToRuleGroup(response.data);
|
||||
console.log('✅ createEvaluationPointGroup 成功:', ruleGroup);
|
||||
return { data: ruleGroup };
|
||||
}
|
||||
|
||||
@@ -1477,7 +1471,6 @@ export async function updateEvaluationPointGroup(
|
||||
|
||||
if (response.data) {
|
||||
const ruleGroup = convertApiGroupToRuleGroup(response.data);
|
||||
console.log('✅ updateEvaluationPointGroup 成功:', ruleGroup);
|
||||
return { data: ruleGroup };
|
||||
}
|
||||
|
||||
@@ -1520,7 +1513,6 @@ export async function deleteEvaluationPointGroup(
|
||||
}
|
||||
|
||||
if (response.data) {
|
||||
console.log('✅ deleteEvaluationPointGroup 成功:', response.data);
|
||||
return {
|
||||
success: response.data.success,
|
||||
message: response.data.message,
|
||||
@@ -1579,7 +1571,6 @@ export async function batchUpdateEvaluationPointGroupStatus(
|
||||
}
|
||||
|
||||
if (response.data) {
|
||||
console.log('✅ batchUpdateEvaluationPointGroupStatus 成功:', response.data);
|
||||
return {
|
||||
success: response.data.success,
|
||||
updated_count: response.data.updated_count,
|
||||
@@ -1635,7 +1626,6 @@ export async function batchDeleteEvaluationPointGroups(
|
||||
}
|
||||
|
||||
if (response.data) {
|
||||
console.log('✅ batchDeleteEvaluationPointGroups 成功:', response.data);
|
||||
return {
|
||||
success: response.data.success,
|
||||
deleted_groups: response.data.deleted_groups,
|
||||
|
||||
Reference in New Issue
Block a user