|
@@ -806,7 +806,7 @@ export default {
|
|
|
//excel父节点点击检测
|
|
|
parentClick(e) {
|
|
|
|
|
|
-
|
|
|
+ let isNameEmpty = false;
|
|
|
const { metaKey, ctrlKey } = e
|
|
|
let target = e.target;
|
|
|
|
|
@@ -816,16 +816,24 @@ export default {
|
|
|
bgs[i].classList.remove("oldlace-bg");
|
|
|
}
|
|
|
let tdEle = this.getParentTD(target);
|
|
|
- console.log(tdEle, 'tdEle');
|
|
|
+
|
|
|
let target1
|
|
|
if (tdEle) {
|
|
|
let mydiv = tdEle.getElementsByTagName('div')
|
|
|
target1 = mydiv[0]
|
|
|
+ if(target1.classList.contains('warnstyle')){
|
|
|
+
|
|
|
+ isNameEmpty = true
|
|
|
+
|
|
|
+
|
|
|
+ }else{
|
|
|
+ isNameEmpty = false
|
|
|
+ }
|
|
|
} else {
|
|
|
tdEle = target
|
|
|
let mydiv = tdEle.getElementsByTagName('div')
|
|
|
target = mydiv[0]
|
|
|
-
|
|
|
+ isNameEmpty = false
|
|
|
}
|
|
|
|
|
|
let curTdEle = this.getTd(target);
|
|
@@ -846,14 +854,14 @@ export default {
|
|
|
this.checkList.push({
|
|
|
tr: target.getAttribute('trindex') || target1.getAttribute('trindex'),
|
|
|
td: target.getAttribute('tdindex') || target1.getAttribute('tdindex'),
|
|
|
- name: curTdEle.getAttribute("title")
|
|
|
+ name: !isNameEmpty?curTdEle.getAttribute("title")||'暂未匹配元素':'暂未匹配元素'
|
|
|
|
|
|
})
|
|
|
}else{
|
|
|
this.checkList=[{
|
|
|
tr: target.getAttribute('trindex') || target1.getAttribute('trindex'),
|
|
|
td: target.getAttribute('tdindex') || target1.getAttribute('tdindex'),
|
|
|
- name: curTdEle.getAttribute("title")
|
|
|
+ name: !isNameEmpty?curTdEle.getAttribute("title")||'暂未匹配元素':'暂未匹配元素'
|
|
|
|
|
|
}]
|
|
|
}
|