|
@@ -796,7 +796,8 @@ export default {
|
|
nodeName:'',
|
|
nodeName:'',
|
|
tableType:'',
|
|
tableType:'',
|
|
tableOwner:""
|
|
tableOwner:""
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ clickData:{}
|
|
|
|
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -959,6 +960,7 @@ export default {
|
|
//树节点点击事件
|
|
//树节点点击事件
|
|
console.log(data,'树节点点击事件');
|
|
console.log(data,'树节点点击事件');
|
|
if (data.fileType == 3) {
|
|
if (data.fileType == 3) {
|
|
|
|
+ this.clickData=data
|
|
this.getExcelHtmlCol(data.id); //获取excel模板
|
|
this.getExcelHtmlCol(data.id); //获取excel模板
|
|
this.excelId=data.id//表格id
|
|
this.excelId=data.id//表格id
|
|
if (this.dataType.length == 0) {
|
|
if (this.dataType.length == 0) {
|
|
@@ -1137,9 +1139,32 @@ export default {
|
|
this.addTableData = [];
|
|
this.addTableData = [];
|
|
},
|
|
},
|
|
addtoElement(){
|
|
addtoElement(){
|
|
- this.eleDialog=true;
|
|
|
|
- this.eleForm.tableOwner=''
|
|
|
|
- this.elloading=false
|
|
|
|
|
|
+ const {tabId}=this.clickData
|
|
|
|
+ if(!tabId){
|
|
|
|
+ this.eleDialog=true;
|
|
|
|
+ this.eleForm.tableOwner=''
|
|
|
|
+ this.elloading=false
|
|
|
|
+ }else{
|
|
|
|
+
|
|
|
|
+ if (
|
|
|
|
+ this.clickData.name &&
|
|
|
|
+ this.clickData.tableType &&
|
|
|
|
+ this.clickData.tableOwner
|
|
|
|
+ ) {
|
|
|
|
+
|
|
|
|
+ this.submitExcelRelationWbsTreeAndElement({
|
|
|
|
+ nodeName: this.clickData.nodeName,
|
|
|
|
+ tableType: this.clickData.tableType,
|
|
|
|
+ tableOwner: this.clickData.tableOwner,
|
|
|
|
+ elementList: this.tableData,
|
|
|
|
+ excelTabId: this.from.id,
|
|
|
|
+ submitStatus: 3,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
},
|
|
},
|
|
submitEleDialog(){
|
|
submitEleDialog(){
|