浏览代码

表单不出来

hongchuangyanfa 3 年之前
父节点
当前提交
5631193083

+ 8 - 0
src/views/manager/projectinfo/editElement/editElement.vue

@@ -308,6 +308,9 @@ export default {
           RightClick (tr, td, x1, x2, y1, y2) {//鼠标右键事件
             _that.RightClick2(tr, td, x1, x2, y1, y2)
           },
+          getInformation(a,b,c) {
+
+          }
         }
       })
       var component = new MyComponent().$mount()
@@ -318,6 +321,11 @@ export default {
       let _that = this
       var MyComponent = await Vue.extend({
         template: localStorage.getItem('editElement'),
+        data () {
+          return {
+            formData: {}
+          }
+        },
         methods: {
           RightClick (tr, td, x1, x2, y1, y2) {//鼠标右键事件
             _that.RightClick2(tr, td, x1, x2, y1, y2)

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

@@ -85,8 +85,8 @@ export default {
       var MyComponent = await Vue.extend({
         template: localStorage.getItem('excelHtml'),
         data () {
-          formData: {
-
+          return {
+            formData: {}
           }
         },
         methods: {
@@ -102,12 +102,12 @@ export default {
     async copss () {
       let _that = this
       var MyComponent = await Vue.extend({
-        template: localStorage.getItem('excelHtml'),
         data () {
-          formData: {
-
+          return {
+            formData: {}
           }
         },
+        template: localStorage.getItem('excelHtml'),
         getInformation (name, tr, td) {//鼠标右键事件
           _that.getInformation(name, tr, td)
         },
@@ -176,4 +176,3 @@ export default {
 
 
 
-