diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue index de417d2..23cc910 100644 --- a/src/views/modules/tooling/searchToolApply.vue +++ b/src/views/modules/tooling/searchToolApply.vue @@ -860,18 +860,20 @@ methods: { // 查询审批信息 getApprovalList () { - let tempData = { - site: this.$store.state.user.site, - menuId: this.$route.meta.menuId, - documentNo: this.currentRow.applyNo - } - getApprovalList(tempData).then(({data}) => { - if (data && data.code === 0) { - this.approvalList = data.rows - } else { - this.approvalList = [] + if (Object.keys(this.currentRow).length !== 0) { + let tempData = { + site: this.$store.state.user.site, + menuId: this.$route.meta.menuId, + documentNo: this.currentRow.applyNo } - }) + getApprovalList(tempData).then(({data}) => { + if (data && data.code === 0) { + this.approvalList = data.rows + } else { + this.approvalList = [] + } + }) + } }, // 获取基础数据列表S