hongchuangyanfa пре 3 година
родитељ
комит
c9d30a4e1c

+ 27 - 0
src/styles/element-ui.scss

@@ -69,3 +69,30 @@
 .el-divider--horizontal {
   margin: 12px 0 !important;
 }
+
+//表单上传组件 img
+
+.hc-upload-table-form {
+  position: relative;
+  height: 100%;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+.hc-upload-table-form .el-upload {
+  position: relative;
+  flex: 1;
+  height: 100%;
+  color: #ccc;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+.hc-upload-table-form .el-upload .hc-table-form-icon {
+  font-size: 24px;
+  font-weight: 100;
+}
+.hc-upload-table-form .el-upload .hc-table-form-img {
+  width: 100%;
+  height: 100%;
+}

+ 6 - 2
src/views/manager/projectinfo/editElement/editElement.vue

@@ -325,11 +325,13 @@ export default {
     },
     async cop () {
       let _that = this
+      console.log("33")
       var MyComponent = await Vue.extend({
         template: localStorage.getItem('editElement'),
         data () {
           return {
-            formData: {}
+            formData: {},
+            getTokenHeader: {}
           }
         },
         methods: {
@@ -347,11 +349,13 @@ export default {
     },
     async copss () {
       let _that = this
+      console.log("44")
       var MyComponent = await Vue.extend({
         template: localStorage.getItem('editElement'),
         data () {
           return {
-            formData: {}
+            formData: {},
+            getTokenHeader: {}
           }
         },
         methods: {

+ 32 - 2
src/views/manager/projectinfo/treeTemplate/dynamicExcel.vue

@@ -104,17 +104,21 @@ export default {
     },
     async cop () {
       let _that = this
+      console.log("11")
       var MyComponent = await Vue.extend({
         template: localStorage.getItem('excelHtml'),
         data () {
           return {
-            formData: {}
+            formData: {},
+            getTokenHeader: {}
           }
         },
         methods: {
           getInformation (name, tr, td) {//鼠标右键事件
             _that.getInformation(name, tr, td)
           },
+          formUploadSuccess(){},
+          formUploadExceed(){},
         }
       })
       var component = new MyComponent().$mount()
@@ -122,11 +126,13 @@ export default {
     },
     async copss () {
       let _that = this
+      console.log("22")
       var MyComponent = await Vue.extend({
         template: localStorage.getItem('excelHtml'),
         data () {
           return {
-            formData: {}
+            formData: {},
+            getTokenHeader: {}
           }
         },
         methods: {
@@ -146,6 +152,7 @@ export default {
     domss () {
       this.copss()
     },
+
     getInformation (name, tr, td) {//鼠标点击事件
       this.htmlData = {
         name,
@@ -202,6 +209,29 @@ export default {
     }
   }
 }
+
+// 设置图片样式
+.hc-upload-table-form {
+  position: relative;
+  height: 100%;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+.hc-upload-table-form .el-upload {
+  position: relative;
+  flex: 1;
+  height: 100%;
+  color: #ccc;
+}
+.hc-upload-table-form .el-upload .hc-table-form-icon {
+  font-size: 24px;
+  font-weight: 100;
+}
+.hc-upload-table-form .el-upload .hc-table-form-img {
+  width: 100%;
+  height: 100%;
+}
 </style>