Commit 1c8eb3b6 by wangzhihui

修复bug

1 parent bab20963
......@@ -36,22 +36,21 @@
</el-row>
</el-form>
</div>
<div v-if="operationList&&operationList.length">
<div v-if="operationList && operationList.length">
<p class="edit-title">操作记录</p>
<div class="block">
<el-timeline>
<template v-for="(item, index) in operationList">
<el-timeline-item :key="index">
<div class="timeline-item">
<div class="operation-result">
{{item.operationTypetext}}
<span :class="item.active">{{item.operationResult}}</span>
<template v-for="(item, index) in operationList">
<el-timeline-item :key="index">
<div class="timeline-item">
<div class="operation-result">
{{ item.operationTypetext }}
<span :class="item.active">{{ item.operationResult }}</span>
</div>
<div class="operation-Note">{{ item.operationNote }}</div>
</div>
<div class="operation-Note">{{item.operationNote}}</div>
</div>
</el-timeline-item>
</el-timeline-item>
</template>
</el-timeline>
</div>
</div>
......@@ -104,18 +103,22 @@ export default {
let arr
this.$apis.withdraw.getApprovalLog({ id: this.id }).then(res => {
arr = res.map(item => {
let active,operationTypetext
let active, operationTypetext
//单独处理付款审核时,屏蔽付款审核结果
if (item.operationType == 1) {
item.operationResult = ''
}
if (item.operationResult == '审批中') {
active = 'wait'
} else if (item.operationResult == '通过') {
active = 'success'
} else if(item.operationResult == '审批驳回'||item.operationResult == '不通过') {
} else if (item.operationResult == '审批驳回' || item.operationResult == '不通过') {
active = 'fail'
}else{
active='close'
} else {
active = 'close'
}
operationTypetext=operate_status[item.operationType]
operationTypetext = operate_status[item.operationType]
return {
...item,
active,
......@@ -239,7 +242,7 @@ export default {
}
.block {
margin-top: 20px;
max-height:250px;
max-height: 250px;
overflow-y: auto;
}
.timeline-item {
......@@ -259,8 +262,8 @@ export default {
.close {
color: #999999ff;
}
.fail{
color:#EB4E4EFF;
.fail {
color: #eb4e4eff;
}
}
.operation-Note {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!