Przeglądaj źródła

,演练/培训 bug修改

jingyuanchao 1 rok temu
rodzic
commit
e1dd46c179

+ 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>