Vue函数内多个方法同步执行
async btnB(item, btnIndex, coord) {// 查找dh/tmawait this.getPropertyByTable(item, this.filterForm.documentType, 'dh')await this.getPropertyByTable(item, this.filterForm.documentType, 'tm')await this.lo
·
async btnB(item, btnIndex, coord) {
// 查找dh/tm
await this.getPropertyByTable(item, this.filterForm.documentType, 'dh')
await this.getPropertyByTable(item, this.filterForm.documentType, 'tm')
await this.loopGetNodeParents(this.tabledata, 0)
},
getPropertyByTable(row, catId, property) {
return new Promise(resolve => {
getPropertyByTable(params).then(res => {
// 操作后端返回数据
resolve()
}).catch(() => {
this.$message.error('系统错误请联系管理员')
})
})
},
更多推荐
已为社区贡献8条内容
所有评论(0)