Commit e9f7c5b2 authored by wangdanlei's avatar wangdanlei

合同bug

parent ead56ff1
...@@ -1621,11 +1621,16 @@ export function loadThirdJs(path) { ...@@ -1621,11 +1621,16 @@ export function loadThirdJs(path) {
}) })
} }
export function findByNameVnode(obj, targetName) { export function findByNameVnode(obj, targetName, operator='EQ') {
if (obj && obj.$vnode && obj.$vnode.tag && obj.$vnode.tag.includes(targetName)) { const tag = obj.$vnode.tag?obj.$vnode.tag.split('-')[obj.$vnode.tag.split('-').length-1]:''
return obj 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 { } else {
return findByNameVnode(obj.$parent, targetName) return obj
} }
} }
......
...@@ -346,7 +346,6 @@ export default { ...@@ -346,7 +346,6 @@ export default {
}, },
batchEdit() { batchEdit() {
const ids = this.selectionRow.map(r => r.id).join(',') const ids = this.selectionRow.map(r => r.id).join(',')
console.log('ids', ids)
get(`/ExtIEDPlan/exportIEDPlan?ids=${ids}`).then(res => { get(`/ExtIEDPlan/exportIEDPlan?ids=${ids}`).then(res => {
this.$utils.showMessageSuccess('操作成功') 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