[uodate] 禅道 50467 提示错误

This commit is contained in:
zhaomeijing
2022-04-19 10:16:21 +08:00
parent bd4e824b65
commit 4af616d152
3 changed files with 21266 additions and 185 deletions
+21258 -181
View File
File diff suppressed because it is too large Load Diff
@@ -22,7 +22,7 @@
</a-upload> </a-upload>
<!-- </a-modal>--> <!-- </a-modal>-->
<a-modal <a-modal
:title="''" :title="titleItem"
class="split-error" class="split-error"
:visible="preErrVisible" :visible="preErrVisible"
@cancel="handleErrCancel" @cancel="handleErrCancel"
@@ -62,7 +62,8 @@
preErrVisible:false, preErrVisible:false,
errValue:'', errValue:'',
errValues:[], errValues:[],
menuIdValue:'' menuIdValue:'',
titleItem: '' // 错误标题
} }
}, },
computed:{ computed:{
@@ -130,6 +131,7 @@
if(val.response.code==1){ if(val.response.code==1){
this.$message.error(val.response.message); this.$message.error(val.response.message);
}else{ }else{
this.titleItem = '失败'
this.preErrVisible=true this.preErrVisible=true
let errValue=val.response.message let errValue=val.response.message
this.errValues=errValue.split('</br>') this.errValues=errValue.split('</br>')
@@ -44,7 +44,7 @@
</div> </div>
</div> </div>
<a-modal <a-modal
:title="''" :title="titleItem"
class="split-error" class="split-error"
:visible="preErrVisible" :visible="preErrVisible"
@cancel="handleErrCancel" @cancel="handleErrCancel"
@@ -142,7 +142,8 @@
flag:false, //提交表单标识 flag:false, //提交表单标识
cut:'', cut:'',
preErrVisible:false, preErrVisible:false,
errValue:'' errValue:'',
titleItem: '', // 错误标题
} }
}, },
props:{ props:{
@@ -291,6 +292,7 @@
if(res.data.code==1){ if(res.data.code==1){
this.$message.error(res.data.message); this.$message.error(res.data.message);
}else{ }else{
this.titleItem = '失败'
this.preErrVisible=true this.preErrVisible=true
this.errValue=res.data.message this.errValue=res.data.message
} }