Browse Source

修复表单不显示的问题

ZaiZai 2 năm trước cách đây
mục cha
commit
08e1ed7ff8

+ 50 - 48
src/views/exctab/ElementIdentification/index333.vue

@@ -127,14 +127,14 @@
                           </div>
                        </el-tab-pane>
                       <el-tab-pane label="关联已有元素表" name="关联已有元素表">
-                        
+
                             <div class=" flexItemsC " style="justify-content: space-between;">
-                                <el-select 
-                                v-model="excelopmodel" 
-                                placeholder="请选择元素表" 
-                                filterable  size="mini" 
-                                remote   
-                                reserve-keyword  
+                                <el-select
+                                v-model="excelopmodel"
+                                placeholder="请选择元素表"
+                                filterable  size="mini"
+                                remote
+                                reserve-keyword
                                 :remote-method="remoteMethod"
                                  :loading="excelopmodelloading"
                                 >
@@ -154,7 +154,7 @@
                                 >新增元素
                               </el-button >
                             </div>
-                            
+
                       </el-tab-pane>
                       <el-tab-pane label="修改元素信息" name="修改元素信息">
                           <div class=" flexItemsC " style="justify-content: right;">
@@ -174,7 +174,7 @@
                                 >确认修改
                           </el-button >
                           </div>
-                        
+
                       </el-tab-pane>
                       <el-tab-pane label="编辑HTML表单" name="编辑HTML表单">
                         <el-tabs v-model="htmlactiveName" @tab-click="htmlhandleClick">
@@ -238,7 +238,7 @@
                </el-tabs>
 
                 <div class="region" >
-                 
+
                   <el-table
                     class="martop20"
                     :data="tableData"
@@ -738,7 +738,7 @@
       </el-dialog>
       <!-- 添加到元素库 -->
       <el-dialog
-        
+
         title="保存元素表"
         class="excelBox"
         :visible.sync="eleDialog"
@@ -780,8 +780,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>
@@ -795,7 +795,7 @@
             :closable="false"
             >
           </el-alert>
-        <el-table :data="gridData" :border="true" :header-cell-style="{ 
+        <el-table :data="gridData" :border="true" :header-cell-style="{
           background:'#e4e7ed',color:'#000000'}">
           <el-table-column property="name" label="项目名称" ></el-table-column>
           <el-table-column
@@ -985,7 +985,7 @@ export default {
           name: '王小虎',
           address: '上海市普陀区金沙江路 1518 弄'
         }],
-  
+
     };
   },
   components: {
@@ -1009,7 +1009,7 @@ export default {
     //   },
     //   deep: true
     // },
- 
+
   },
   methods: {
     //数组去重
@@ -1063,10 +1063,10 @@ export default {
           this.$refs.treeall.filter(this.filterText);
         }
     } ,
-  
-   
+
+
     clearInput() {
-      
+
       (this.selectedId = ""),
         (this.GLExcelFromtag1 = false),
         (this.GLExcelFromtag = true);
@@ -1075,11 +1075,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)
              })
@@ -1094,7 +1094,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');
@@ -1273,7 +1273,7 @@ export default {
       //获取excel模板
       const { data: res } = await getExcelHtmlCol({ id });
       console.log(res);
-       
+
       if (res.code == 200) {
         let _that = this
            localStorage.setItem('excelHtml', res.data)
@@ -1283,7 +1283,7 @@ export default {
               formData: {},
             };
           },
-       
+
           template: res.data,
           methods: {
             getInformation (name, tr, td) {//鼠标右键事件
@@ -1298,12 +1298,13 @@ export default {
             getRegularExpression(){},
             formRemoteMethod(){},
             checkboxGroupChange(){},
-            formRemoteChange(){}
+            formRemoteChange(){},
+            dateKeydown(){},
         },
-        
-       
-          
-          
+
+
+
+
         });
         var component = new MyComponent().$mount();
         let na = document.getElementById("parent");
@@ -1339,7 +1340,8 @@ export default {
           getRegularExpression(){},
           formRemoteMethod(){},
           checkboxGroupChange(){},
-          formRemoteChange(){}
+          formRemoteChange(){},
+          dateKeydown(){},
         }
       })
       var component = new MyComponent().$mount()
@@ -1427,8 +1429,8 @@ export default {
               message: "请填写和选择新增的表名,表类型,表所属方",
             });
           }
-        
-       
+
+
         // this.allTreeData=[]//清空搜索树数据
 
 
@@ -1617,10 +1619,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",
@@ -1666,7 +1668,7 @@ export default {
        this.elloading=false
       if (res.code == 200) {
       // this.refreshNodeBy()//刷新树形控件数据
-        
+
         this.$message({
           type: "success",
           message: "设置成功",
@@ -1674,7 +1676,7 @@ export default {
         this.AssociatedPublicTap = false;
         this.AssociatedPublicClose();
          this.eleDialog=false;
-       
+
       }
     },
     //#endregion
@@ -1713,8 +1715,8 @@ export default {
                 })
               }
             }
-             
-           
+
+
     },
     //#region 接口
     async tabLazytree(modeId, parentId) {
@@ -1971,10 +1973,10 @@ export default {
     parentClick(e) {
       console.log('父节点检测',e);
       let target = e.target;
-    
 
-   
-      
+
+
+
       let bgs = document.querySelectorAll("#parent .oldlace-bg");
       //console.log(bgs)
       for (let i = 0; i < bgs.length; i++) {
@@ -2001,7 +2003,7 @@ export default {
               break;
             }
           }
-          
+
           //this.$refs.tablescroll.$el.scrollTop = 120+this.titleIndex*65;
           //console.log(this.$refs.tablescroll.$el.scrollTop)
           this.$nextTick(() => {
@@ -2083,9 +2085,9 @@ export default {
       }
     },
      editableTabhandleClick(tab, event){
-      
+
         if(tab.name==='编辑HTML表单'){
-        this.getElementInfoByTabId() 
+        this.getElementInfoByTabId()
       }else if(tab.name==='关联已有元素表'){
         this.tabTypeLazyTreeAll()
       }
@@ -2096,16 +2098,16 @@ export default {
       console.log('同步到项目');
       this.syncprojectVisible=true
     }
-  
+
   },
   created() {
     this.getOwnerTypelist();
     this.excelType();
-    
-   
+
+
   },
   mounted(){
-  
+
   }
 };
 </script>

+ 3 - 1
src/views/manager/projectinfo/editElement/editElement.vue

@@ -224,7 +224,7 @@
 
       <!-- 公式 -->
       <el-dialog title="元素公式" :visible.sync="formulaCompVisible" fullscreen append-to-body class="full-dialog">
-        <FormulaEdit :wbsid="wbsid" :nodeid="nodeid" :eleid="eleid" :projectid="pid" @hideDialog="formulaCompVisible = false" v-if="formulaCompVisible"  
+        <FormulaEdit :wbsid="wbsid" :nodeid="nodeid" :eleid="eleid" :projectid="pid" @hideDialog="formulaCompVisible = false" v-if="formulaCompVisible"
         :globaltype="globaltype" :fromcurNode="editElementQuery"></FormulaEdit>
       </el-dialog>
       <el-dialog title="" :visible.sync="formulaCompVisible1" fullscreen append-to-body class="full-dialog">
@@ -523,6 +523,7 @@ export default {
             _that.getInformation2(a, b, c)
           },
           getRegularExpression(){},
+          dateKeydown(){},
           formUploadSuccess(){},
           formUploadExceed(){},
           formUploadLoading(){},
@@ -558,6 +559,7 @@ export default {
             _that.getInformation2(a, b, c)
           },
           getRegularExpression(){},
+          dateKeydown(){},
           formUploadSuccess(){},
           formUploadExceed(){},
           formUploadLoading(){},

+ 5 - 3
src/views/manager/projectinfo/treeTemplate/dynamicExcel.vue

@@ -128,7 +128,8 @@ export default {
           formRemoteMethod(){},
           getRegularExpression(){},
           checkboxGroupChange(){},
-          formRemoteChange(){}
+          formRemoteChange(){},
+          dateKeydown(){},
         }
       })
       var component = new MyComponent().$mount()
@@ -158,7 +159,8 @@ export default {
           getRegularExpression(){},
           formRemoteMethod(){},
           checkboxGroupChange(){},
-          formRemoteChange(){}
+          formRemoteChange(){},
+          dateKeydown(){},
         }
       })
       var component = new MyComponent().$mount()
@@ -210,7 +212,7 @@ export default {
           //橙色背景
           target.classList.add("oldlace-bg");
         }
-      }   
+      }
     },
 
     getParentTD(ele){