Commit e9f7c5b2 authored by wangdanlei's avatar wangdanlei

合同bug

parent ead56ff1
......@@ -1621,11 +1621,16 @@ export function loadThirdJs(path) {
})
}
export function findByNameVnode(obj, targetName) {
if (obj && obj.$vnode && obj.$vnode.tag && obj.$vnode.tag.includes(targetName)) {
return obj
export function findByNameVnode(obj, targetName, operator='EQ') {
const tag = obj.$vnode.tag?obj.$vnode.tag.split('-')[obj.$vnode.tag.split('-').length-1]:''
if (tag) {
if (obj && obj.$vnode && obj.$vnode.tag &&(operator==='EQ'?tag===targetName:obj.$vnode.tag.includes(targetName))) {
return obj
} else {
return findByNameVnode(obj.$parent, targetName)
}
} else {
return findByNameVnode(obj.$parent, targetName)
return obj
}
}
......
......@@ -346,7 +346,6 @@ export default {
},
batchEdit() {
const ids = this.selectionRow.map(r => r.id).join(',')
console.log('ids', ids)
get(`/ExtIEDPlan/exportIEDPlan?ids=${ids}`).then(res => {
this.$utils.showMessageSuccess('操作成功')
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment