Sfoglia il codice sorgente

fix(web): 方案管理页补齐plan接口函数修复白屏

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
E2E Test Bot 3 settimane fa
parent
commit
90e7ed35e1
2 ha cambiato i file con 20 aggiunte e 1 eliminazioni
  1. 19 0
      cfc-web/src/api/plan.js
  2. 1 1
      cfc-web/src/views/admin/PlanManagement.vue

+ 19 - 0
cfc-web/src/api/plan.js

@@ -0,0 +1,19 @@
+import request from '@/utils/request'
+
+// 指导师-方案审核 (PlanReviewController: /api/guide/plans/*)
+
+export function listFamilyPlans(data) {
+  return request({ url: '/api/guide/plans/family-list', method: 'post', data })
+}
+
+export function reviewPlan(data) {
+  return request({ url: '/api/guide/plans/review', method: 'post', data })
+}
+
+export function activatePlan(data) {
+  return request({ url: '/api/guide/plans/activate', method: 'post', data })
+}
+
+export function getGuidePlanDetail(data) {
+  return request({ url: '/api/guide/plans/detail', method: 'post', data })
+}

+ 1 - 1
cfc-web/src/views/admin/PlanManagement.vue

@@ -67,7 +67,7 @@
 </template>
 
 <script>
-import { listFamilyPlans, reviewPlan, activatePlan } from '@/api/assessment'
+import { listFamilyPlans, reviewPlan, activatePlan } from '@/api/plan'
 
 export default {
   computed: {