From 9a11f818f304bc13bbd920313792e9560734922f Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期五, 27 九月 2024 15:31:25 +0800
Subject: [PATCH] 合并冲突

---
 src/api/fysp/evaluateApi.js |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/src/api/fysp/evaluateApi.js b/src/api/fysp/evaluateApi.js
index 26414ca..a09247d 100644
--- a/src/api/fysp/evaluateApi.js
+++ b/src/api/fysp/evaluateApi.js
@@ -12,7 +12,18 @@
   /**
    * 鏍规嵁宸℃煡浠诲姟鑾峰彇璇勫垎缁嗗垯
    */
-  
+  fetchItemEvaluation(subTaskId) {
+    const params = `?subTaskId=${subTaskId}`;
+    return $fysp.get(`evaluationsubrule/score${params}`).then((res) => res.data);    
+  },
+
+
+  /**
+   * 鎵归噺鏇存柊璇勫垎缁嗗垯寰楀垎
+   */
+  updateItemEvaluation(param) {
+    return $fysp.post(`itemevaluation/uplist`, param).then((res) => res.data);
+  },
 
   /**
    * 鏌ヨ璇勪及鎬昏鍒�
@@ -51,5 +62,49 @@
           window.URL.revokeObjectURL(url);
         }
       });
-  }
+  },
+
+  /** 
+   * 淇敼鏈�灏忛」寰楀垎
+   */
+  updateScore({itemList, subTaskId}) {
+    const param = `?subTaskId=${subTaskId}`
+    return $fysp.post(`/itemevaluation/update${param}`, itemList).then((res) => res.data);
+  },
+  /** 
+   * 鑾峰緱鎵�鏈夎鍒欑埗鑺傜偣
+   */
+  getAllParentRules() {
+    return $fysp.get("evaluationrule").then((res) => res.data);
+  },
+  /** 鏍规嵁鐖惰妭鐐筰d鑾峰彇瀛愯鍒� */
+  getSubRules(id) {
+    const param = `?id=${id}`
+    return $fysp.get(`/evaluationsubrule/byRule${param}`).then((res) => res.data);
+  },
+  /** 
+   * 鏇存柊鐖惰妭鐐硅鍒�
+   */
+  updateParentRule(data) {
+    return $fysp.post("evaluationrule", data).then((res) => res.data);
+  },
+  /** 
+   * 鍒犻櫎鐖惰妭鐐硅鍒�
+   */
+  deleteParentRuleById(id) {
+    return $fysp.delete(`evaluationrule/${id}`).then((res) => res.data);
+  },
+
+  /** 
+   * 鏇存柊瀛愯妭鐐硅鍒�
+   */
+  updateSubRule(data) {
+    return $fysp.post("evaluationsubrule", data).then((res) => res.data);
+  },
+  /** 
+   * 鍒犻櫎瀛愯妭鐐硅鍒�
+   */
+  deleteSubRuleById(id) {
+    return $fysp.delete(`evaluationsubrule/${id}`).then((res) => res.data);
+  },
 };

--
Gitblit v1.9.3