|
@@ -99,16 +99,16 @@ export default {
|
|
|
const url = `${location.origin}/#/monthlyReport/edit?pageType=read&reportId=334&subReportId=${this.$route.query.subReportId}&isHistory=new&historyId=${item.historyId}`
|
|
|
window.open(url, '_blank')
|
|
|
},
|
|
|
- rollback( subReportId, historyId ) {
|
|
|
+ rollback(subReportId, historyId) {
|
|
|
rollback({
|
|
|
subReportId,
|
|
|
historyId
|
|
|
}).then(res => {
|
|
|
- if(res.code === 200) {
|
|
|
- this.$message.success('回滚成功!')
|
|
|
- } else {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$message.success('回滚成功!')
|
|
|
+ } else {
|
|
|
this.$message.error(res.msg)
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
}
|