From 512d5d7e79e0a64b36e24cbe5d7c5f8d0adc0b94 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 26 九月 2024 17:46:48 +0800 Subject: [PATCH] 1.升级了element-plus版本 2.对外支持模块新设备匹配工地功能完成 3.新增设备匹配模块单挑匹配记录编辑功能(未完成) --- src/api/fysp/evaluateApi.js | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/api/fysp/evaluateApi.js b/src/api/fysp/evaluateApi.js index aef8028..3cf5a71 100644 --- a/src/api/fysp/evaluateApi.js +++ b/src/api/fysp/evaluateApi.js @@ -10,6 +10,22 @@ }, /** + * 鏍规嵁宸℃煡浠诲姟鑾峰彇璇勫垎缁嗗垯 + */ + 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); + }, + + /** * 鏌ヨ璇勪及鎬昏鍒� * @param {Object} param * @returns @@ -22,9 +38,12 @@ return $fysp.post(`evaluation/auto`, param).then((res) => res.data); }, - downloadAutoEvaluation(param) { + /** + * 涓嬭浇瑙勮寖鎬ц瘎浼颁笌鍒嗘瀽鎶ュ憡 + */ + downloadAutoEvaluation(param, forceUpdate) { return $fysp - .post(`evaluation/auto/record/download`, param, { responseType: 'blob' }) + .post(`evaluation/auto/record/download?forceUpdate=${forceUpdate}`, param, { responseType: 'blob' }) .then((res) => { // 鏂囨。鏈敓鎴愶紝宸插惎鍔ㄦ枃妗g敓鎴愬悗鍙颁换鍔� if (res.data.type == 'application/json') { -- Gitblit v1.9.3