|
@@ -82,7 +82,7 @@
|
|
|
@current-change="currentChange"
|
|
|
background
|
|
|
:page-size="pageSize"
|
|
|
- layout="total,prev, pager, next, jumper"
|
|
|
+ :layout="pageLayout"
|
|
|
:total="total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
@@ -92,6 +92,16 @@
|
|
|
<el-input v-model.tirm="taskName" placeholder="请输入任务名称" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="addTask" :disabled="addBtnDisable">确 定</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>
|
|
@@ -102,6 +112,7 @@
|
|
|
<script>
|
|
|
import api from '@api/qualityControl.js';
|
|
|
import { Loading } from 'element-ui';
|
|
|
+ import config from '@api/config.js';
|
|
|
|
|
|
export default {
|
|
|
name: 'AutoTestList',
|
|
@@ -118,6 +129,10 @@
|
|
|
hisTypes:[],
|
|
|
taskName:"",
|
|
|
dialogTaskName:false,
|
|
|
+ dialogTippop:false,
|
|
|
+ addBtnDisable:false,
|
|
|
+ pageLayout:config.pageLayout,
|
|
|
+ tips:'',
|
|
|
filter: {
|
|
|
hospitalId:'',
|
|
|
entryName:'',
|
|
@@ -178,7 +193,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||"自动化测试失败");
|
|
@@ -193,7 +218,9 @@
|
|
|
this.warning("请输入任务名称");
|
|
|
return;
|
|
|
}
|
|
|
+ this.addBtnDisable=true;
|
|
|
api.addTask({missionName:this.taskName}).then((res)=>{
|
|
|
+ this.addBtnDisable=false;
|
|
|
if(res.data.code==="0"){
|
|
|
this.dialogTaskName = false;
|
|
|
this.toTaskList();
|