Ver Fonte

2023/12/22 接口

WangRuiLin há 1 ano atrás
pai
commit
6759e8eeb1

+ 2 - 2
cirs-biz/src/main/java/com/cirs/biz/controller/TVerificationScoretaskDetailController.java

@@ -62,9 +62,9 @@ public class TVerificationScoretaskDetailController extends BaseController
     @PreAuthorize("@ss.hasPermi('biz:scoretaskdetail:export')")
     @Log(title = "打分算法验证详情", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
-    public void export(HttpServletResponse response, TVerificationScoretaskDetail tVerificationScoretaskDetail)
+    public void export(HttpServletResponse response, @RequestBody List<Long> taskids)
     {
-        List<TVerificationScoretaskDetail> list = tVerificationScoretaskDetailService.selectTVerificationScoretaskDetailList(tVerificationScoretaskDetail);
+        List<TVerificationScoretaskDetail> list = tVerificationScoretaskDetailService.selectTVerificationScoreaskDetailByTaskIds(taskids);
         ExcelUtil<TVerificationScoretaskDetail> util = new ExcelUtil<TVerificationScoretaskDetail>(TVerificationScoretaskDetail.class);
         util.exportExcel(response, list, "打分算法验证详情数据");
     }

+ 8 - 6
cirs-ui/src/views/biz/marking/index.vue

@@ -634,18 +634,20 @@ export default {
         marking(this.form).then(res=>{
           result = res
           if(res.code===200&&JSON.parse(res.data).code===200) {
-            this.form = JSON.parse(res.data).data
-            this.form.finalGrade = 'A'
+            this.form = JSON.parse(res.data).data.dataSet
+            updateMarkingrecord(this.form).then(updateres=>{
+              this.$modal.msgSuccess("调用打分算法成功")
+
+              this.getList()
+            })
             // console.log(this.form)
             // this.List.push(this.form)
-            this.$set(this.List,0,this.form)
-            this.$modal.msgSuccess("调用打分算法成功")
+            // this.$set(this.List,0,this.form)
 
-            // this.getList()
 
 
           } else {
-            this.$modal.msgError("调用打分算法失败")
+            this.$modal.msgError("调用打分算法失败,输入因素不能为空!")
           }
 
 

+ 1 - 1
cirs-ui/src/views/biz/recommend/index.vue

@@ -380,7 +380,7 @@ export default {
 
 
         } else {
-          this.$modal.msgError(res.msg)
+          this.$modal.msgError("调用推荐算法失败,输入因素不能为空!")
         }
 
       })

+ 4 - 3
cirs-ui/src/views/biz/scoretask/index.vue

@@ -85,7 +85,7 @@
 
     <el-table v-loading="loading" :data="scoretaskList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="编号" align="center" prop="id" />
+      <el-table-column label="任务编号" align="center" prop="id" />
       <el-table-column label="任务名称" align="center" prop="taskName" />
       <el-table-column label="状态" align="center" prop="taskStatus" />
       <el-table-column label="任务数" align="center" prop="subtaskNum" />
@@ -507,7 +507,8 @@ export default {
             console.log(res);
             code = JSON.parse(res.data).code;
             if (res.code === 200&&code===200) {
-              this.verificationdataset = JSON.parse(res.data).dataSet;
+              this.verificationdataset = JSON.parse(res.data).data.dataSet;
+              console.log(this.verificationdataset)
               //更新任务详情表
               updateDetails(this.verificationdataset).then(res1=>{
                 console.log(res1.msg)
@@ -536,7 +537,7 @@ export default {
               this.$set(this.ProgressMap, idx, this.ProgressMap[idx] + 1);
               if(code!==200&&code!==0){
                 clearInterval(intervalId);
-                this.$message.error('任务' + taskId + '运行失败!');
+                this.$message.error('任务' + taskId + '运行失败!'+' '+'该任务导入的数据很可能不足!');
               }
               // 如果进度达到100%,清除定时器并调用后端算法
               if (this.ProgressMap[idx] >= 100) {

+ 1 - 1
cirs-ui/src/views/biz/task/index.vue

@@ -562,7 +562,7 @@ export default {
               this.$set(this.ProgressMap, idx, this.ProgressMap[idx] + 1);
               if(code!==200&&code!==0){
                 clearInterval(intervalId);
-                this.$message.error('任务' + taskId + '运行失败!');
+                this.$message.error('任务' + taskId + '运行失败!'+' '+'该任务导入的数据很可能不足!');
               }
               // 如果进度达到100%,清除定时器并调用后端算法
               if (this.ProgressMap[idx] >= 100) {