Преглед изворни кода

引用元素表-关联清表默认选中修改

duy пре 2 година
родитељ
комит
73a7911f62

+ 6 - 9
src/views/manager/projectinfo/independent.vue

@@ -197,8 +197,6 @@ import {
   saveLinkTab,
   getExcelHtml,
 } from "@/api/exctab/excelmodel"
-import {
-  getDetail,} from "@/api/manager/wbsprivate";
 import Qute from "./qutediaolog/qute.vue";//引入元素库
 import Relation from './qutediaolog/relation.vue'//关联清表
 import EditElement from "@/views/manager/projectinfo/editElement/editElement.vue";//编辑元素
@@ -513,13 +511,12 @@ export default {
      Associationlist(row) {
        console.log('关联清表',row);
        this.$refs.Relation.show()
-      // this.GLExcelFrom.name = row.modeId;
+      // this.GLExcelFrom.name = row.title;
    
       this.GLExcelFrom.id = row.primaryKeyId;
-      // this.GLExcelFrom.excelId =row.id;
-      // this.GLExcelFrom.ids = row.id;
-      // this.GLEidxcelFrom.initTableName =row.title;
-      // this.GLExcelFrom.excelId=row.excelId
+      this.GLExcelFrom.excelId =row.excelIds;
+      this.GLExcelFrom.ids = row.id;
+      this.GLExcelFrom.initTableName =row.initTableName
     },
        //#region 编辑元素
     async rightClick(row) {
@@ -527,9 +524,9 @@ export default {
       await this.getExcelHtml2(row.id);
       // console.log('编辑元素');
       this.editElementQuery.pkeyId = row.primaryKeyId;
-      // this.editElementQuery.excelId = excelId;
+      this.editElementQuery.excelId = row.excelIds;
       this.editElementQuery.id = row.id;
-      this.editElementQuery.initTableName =row. title;
+      this.editElementQuery.initTableName =row. initTableName;
       this.editElementQuery.pid = this.$route.query.pid;
       this.editElementQuery.wbsid = this.$route.query.wbsid;
       // this.editElementQuery.nodeid = this.curTreeData.id;

+ 3 - 4
src/views/manager/projectinfo/qutediaolog/relation.vue

@@ -152,10 +152,9 @@ export default {
                     size: 100000,
                     parentId: 0,
                 });
-                // setTimeout(() => {
-                //     console.log(11111111);
-                //     // this.$refs.tree.setCheckedKeys([this.GLExcelFrom.excelId]);
-                // }, 2000);
+                setTimeout(() => {
+                    this.$refs.tree.setCheckedKeys([this.GLExcelFrom.excelId]);
+                }, 2000);
             },
            GLExcelMD() {
                 //弹框关闭事件