|
@@ -265,7 +265,7 @@ export default {
|
|
|
// this.addElementForm.tableOwner = "";
|
|
|
this.getWbsTypeList();
|
|
|
console.log(this.from,'点击节点数据');
|
|
|
- this.excelType();
|
|
|
+
|
|
|
this.getOwnerTypelist();
|
|
|
this.getColByTabId()
|
|
|
|
|
@@ -278,10 +278,10 @@ export default {
|
|
|
this.excelType();
|
|
|
this.addElement = true;
|
|
|
},
|
|
|
- async excelType() {
|
|
|
+ async excelType(type) {
|
|
|
//清表类型
|
|
|
// const { data: res } = await excelType({ code: "sys_excltab_type" });
|
|
|
- const { data: res } = await excelType1({ code: "table_type" });
|
|
|
+ const { data: res } = await excelType1({ code: type });
|
|
|
console.log(res);
|
|
|
if (res.code === 200) {
|
|
|
this.exceltypeData = res.data;
|
|
@@ -368,7 +368,12 @@ export default {
|
|
|
},
|
|
|
|
|
|
handleNodeClickExcel(data) {
|
|
|
- console.log(data,'点击节点事件');
|
|
|
+ if(data.wbsType===2){
|
|
|
+ this.excelType('trial_table_type');
|
|
|
+ }else{
|
|
|
+ this.excelType('table_type');
|
|
|
+ }
|
|
|
+
|
|
|
//点击节点事件
|
|
|
this.addElementForm.wbsId = this.GLExcelFrom.name;
|
|
|
this.addElementForm.parentId = data.id;
|