|
@@ -172,11 +172,24 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
getInformation (name, tr, td) {//鼠标点击事件
|
|
getInformation (name, tr, td) {//鼠标点击事件
|
|
- this.htmlData = {
|
|
|
|
|
|
+ //console.log(event)
|
|
|
|
+ let tdEle = null;
|
|
|
|
+ //获取TD元素
|
|
|
|
+ if(event.target.nodeName == "TD"){
|
|
|
|
+ tdEle = event.target
|
|
|
|
+ }else{
|
|
|
|
+ tdEle = this.getParentTD(event.target);
|
|
|
|
+ }
|
|
|
|
+ let moreObj = {};
|
|
|
|
+ if(tdEle){
|
|
|
|
+ moreObj = this.getWidget(tdEle);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.htmlData = Object.assign({
|
|
name,
|
|
name,
|
|
tr,
|
|
tr,
|
|
td
|
|
td
|
|
- }
|
|
|
|
|
|
+ },moreObj)
|
|
},
|
|
},
|
|
|
|
|
|
//excel父节点点击检测
|
|
//excel父节点点击检测
|
|
@@ -208,6 +221,30 @@ export default {
|
|
}
|
|
}
|
|
return targetParent;
|
|
return targetParent;
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //获取控件信息
|
|
|
|
+ getWidget(tdEle){
|
|
|
|
+ let checkLabels = tdEle.querySelectorAll('.el-checkbox-group span.el-checkbox__label');
|
|
|
|
+ //console.log(checkLabels)
|
|
|
|
+ if(checkLabels.length > 0){
|
|
|
|
+ let checkLabelDatas = [];
|
|
|
|
+ for (let i = 0; i < checkLabels.length; i++) {
|
|
|
|
+ //console.dir(checkLabels[i])
|
|
|
|
+ checkLabelDatas.push({
|
|
|
|
+ dictValue:checkLabels[i].innerText
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ return {
|
|
|
|
+ type:'checkbox',
|
|
|
|
+ checkLabelDatas
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return {};
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
setInputTPT,
|
|
setInputTPT,
|