Prechádzať zdrojové kódy

元素识别,事件挂载

ZaiZai 2 rokov pred
rodič
commit
1398d38d5a

+ 40 - 20
src/views/exctab/ElementIdentification/index.vue

@@ -123,7 +123,7 @@
                     ></div>
                   </div>
                 <div class="region">
-                 
+
                   <el-table
                     class="martop20"
                     :data="tableData"
@@ -623,7 +623,7 @@
       </el-dialog>
       <!-- 添加到元素库 -->
       <el-dialog
-        
+
         title="保存元素表"
         class="excelBox"
         :visible.sync="eleDialog"
@@ -665,8 +665,8 @@
           </div>
         <span slot="footer" class="dialog-footer">
           <el-button @click="eleDialog = false">取 消</el-button>
-          <el-button type="primary" @click="submitEleDialog" 
-            v-preventClick v-loading="elloading" 
+          <el-button type="primary" @click="submitEleDialog"
+            v-preventClick v-loading="elloading"
             >确 定</el-button>
         </span>
       </el-dialog>
@@ -798,7 +798,7 @@ export default {
         tableType:'',
         tableOwner:""
       }
-  
+
     };
   },
   components: {
@@ -815,7 +815,7 @@ export default {
     //   },
     //   deep: true
     // },
- 
+
   },
   methods: {
     //数组去重
@@ -869,10 +869,10 @@ export default {
           this.$refs.treeall.filter(this.filterText);
         }
     } ,
-  
-   
+
+
     clearInput() {
-      
+
       (this.selectedId = ""),
         (this.GLExcelFromtag1 = false),
         (this.GLExcelFromtag = true);
@@ -881,11 +881,11 @@ export default {
               }
             if(this.$refs.treeall1){
                 this.nodeIds1 = this.$refs.treeall1.getCheckedKeys();
-            }   
+            }
             this.selectNodeIds=this.uniqueArr(this.nodeIds,this.nodeIds1 )
            console.log(this.selectNodeIds,'this.selectNodeIds111111');
             // this.$refs.tree.setCheckedKeys(this.selectNodeIds)
-             
+
              this.$nextTick(()=>{
                this.$refs.tree.setCheckedKeys(this.selectNodeIds)
              })
@@ -900,7 +900,7 @@ export default {
             if(this.$refs.treeall1){
                 this.nodeIds1 = this.$refs.treeall1.getCheckedKeys();
             }
-            
+
           this.selectNodeIds=this.uniqueArr(this.nodeIds,this.nodeIds1 )
           this.$refs.treeall1.setCheckedKeys(this.selectNodeIds)
           console.log(this.selectNodeIds,'this.selectNodeIds');
@@ -1059,6 +1059,26 @@ export default {
             };
           },
           template: res.data,
+          methods: {
+            contextmenuClick() {},
+            getInformation () {},
+            formUploadSuccess(){},
+            formUploadExceed(){},
+            formUploadLoading(){},
+            delTableFormFile(){},
+            formUploadError(){},
+            uploadprogress(){},
+            formRemoteMethod(){},
+            getRegularExpression(){},
+            checkboxGroupChange(){},
+            formRemoteChange(){},
+            dateKeydown(){},
+            keyupShiftUp() {},
+            keyupShiftDown() {},
+            keyupShiftLeft() {},
+            keyupShiftRight() {},
+            inputLeftClick() {},
+          }
         });
         var component = new MyComponent().$mount();
         let na = document.getElementById("parent");
@@ -1145,8 +1165,8 @@ export default {
               message: "请填写和选择新增的表名,表类型,表所属方",
             });
           }
-        
-       
+
+
         // this.allTreeData=[]//清空搜索树数据
 
 
@@ -1335,10 +1355,10 @@ export default {
             if(this.$refs.treeall1){
                this.nodeIds1 = this.$refs.treeall1.getCheckedKeys();
             }
-            
+
             this.selectNodeIds=this.uniqueArr(this.nodeIds,this.nodeIds1 )
             console.log(this.selectNodeIds,'去重的数组');
-           
+
             if (this.selectNodeIds.length < 1) {
               this.$message({
                 type: "warning",
@@ -1384,7 +1404,7 @@ export default {
        this.elloading=false
       if (res.code == 200) {
       // this.refreshNodeBy()//刷新树形控件数据
-        
+
         this.$message({
           type: "success",
           message: "设置成功",
@@ -1392,7 +1412,7 @@ export default {
         this.AssociatedPublicTap = false;
         this.AssociatedPublicClose();
          this.eleDialog=false;
-       
+
       }
     },
     //#endregion
@@ -1431,8 +1451,8 @@ export default {
                 })
               }
             }
-             
-           
+
+
     },
     //#region 接口
     async tabLazytree(modeId, parentId) {