浏览代码

,演练/培训 bug修改

jingyuanchao 1 年之前
父节点
当前提交
e1dd46c179
共有 2 个文件被更改,包括 3 次插入7 次删除
  1. 1 5
      src/views/core/drill/task/dialog.evaluate.vue
  2. 2 2
      src/views/core/drill/task/index.vue

+ 1 - 5
src/views/core/drill/task/dialog.evaluate.vue

@@ -200,9 +200,6 @@ export default {
       if (!this.formData.commentScore) {
         this.$message.error("请选择评分!");
       }
-      if (!this.formData.comment) {
-        this.$message.error("请输入评语!");
-      }
       let { commentScore,comment,id} = { ...this.formData};
       let json={};
       json.score = commentScore;
@@ -213,9 +210,8 @@ export default {
         this.$emit("success", this.formData);
         this.onHide();
         this.$modal.msgSuccess("演练登记评价成功");
-
+        this.getList();
       });
-      this.getList();
     },
     async refresh(id, other) {
       if (!id) {

+ 2 - 2
src/views/core/drill/task/index.vue

@@ -179,8 +179,8 @@
     </el-row>
     <dialog-info ref="infoDialog" @success="handleQuery(true)"></dialog-info>
     <dialog-perform ref="performDialog" @success="handleQuery(true)"></dialog-perform>
-    <dialog-new-task ref="newTaskDialog"></dialog-new-task>
-    <dialog-evaluate ref="evaluateDialog"></dialog-evaluate>
+    <dialog-new-task ref="newTaskDialog" @success="handleQuery(true)"></dialog-new-task>
+    <dialog-evaluate ref="evaluateDialog" @success="handleQuery(true)"></dialog-evaluate>
   </div>
 </template>