|
@@ -1997,14 +1997,13 @@ export default {
|
|
|
},
|
|
|
showReasonForRejection(item) {
|
|
|
const taskId = this.taskId
|
|
|
+ const id = item
|
|
|
this.http.post('/task/getFileRejectReason',{
|
|
|
taskId
|
|
|
},res => {
|
|
|
if(res.code == 'ok'){
|
|
|
- const text = (res.data || []).map(item => {
|
|
|
- return `文件【${item.documentName}】的驳回原因为:${item.fileRejectReason}<br/>`
|
|
|
- })
|
|
|
- this.$alert(text.join(''), '驳回原因', { dangerouslyUseHTMLString: true });
|
|
|
+ let text = res.data.find(item => item.id == id)
|
|
|
+ this.$alert(text.fileRejectReason, '驳回原因');
|
|
|
}else {
|
|
|
this.$message.error(res.msg)
|
|
|
}
|