فهرست منبع

自动化测试失败提示

zhouna 5 سال پیش
والد
کامیت
1bc09f7e06
1فایلهای تغییر یافته به همراه23 افزوده شده و 1 حذف شده
  1. 23 1
      src/components/qualityControl/AutoTestList.vue

+ 23 - 1
src/components/qualityControl/AutoTestList.vue

@@ -96,6 +96,16 @@
                 <el-button type="primary" @click="addTask">确 定</el-button>
             </div>
         </el-dialog>
+        <el-dialog title="提示" :visible.sync="dialogTippop" class="tip-dialog">
+            <div class="dialog-body">
+                <p>经程序自动化测试,下列病历存在问题,请及时处理~</p>
+                <br/>
+                <div class="warn-tip" v-html="tips"></div>
+            </div>
+            <div slot="footer" class="dialog-footer">
+                <el-button type="primary" @click="addTask">确 定</el-button>
+            </div>
+        </el-dialog>
     </div>
 </template>
 
@@ -118,6 +128,8 @@
         hisTypes:[],
         taskName:"",
         dialogTaskName:false,
+        dialogTippop:false,
+        tips:'',
         filter: {
           hospitalId:'',
           entryName:'',
@@ -178,7 +190,17 @@
           if(res.data.code==="0"){
             //this.loading=false;
             loadingInstance.close();
-            this.warning('操作成功','success');
+            const {messages}=res.data.data;
+            let str='';
+            if(messages.length>0){
+              for(let i=0;i<messages.length;i++){
+                str+=`<p>`+messages[i]+`</p>`;
+              }
+              this.tips = str;
+              this.dialogTippop=true;
+            }else{
+              this.warning(res.data.msg||'操作成功','success');
+            }
             this.getDataList();
           }else{
             this.warning(res.data.msg||"自动化测试失败");