noob vor 3 Jahren
Ursprung
Commit
7fcad523cf

+ 5 - 0
src/pages/main/performance/components/dialog.vue

@@ -1,5 +1,6 @@
 <template>
     <el-dialog
+        :fullscreen="fullscreen"
         :title="title"
         :visible.sync="visible"
         :key="reload"
@@ -37,6 +38,10 @@ export default {
             type: String,
             default: "500px",
         },
+        fullscreen: {
+            type: Boolean,
+            default: false
+        }
     },
     mounted() {
         console.log("我被初始化了");

+ 9 - 6
src/pages/main/performance/components/sheet.vue

@@ -2,14 +2,16 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-12-04 14:23:58
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-12-04 15:38:33
+ * @LastEditTime : 2021-12-04 16:00:20
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\sheet.vue
 -->
 
 <template>
     <div class="sheet-container">
         <el-upload action :on-change="handleChange" :show-file-list="false">
-            <el-button size="mini" type="success">上传</el-button>
+            <el-button size="mini" type="success" class="margin-bottom-20"
+                >上传</el-button
+            >
         </el-upload>
         <div id="luckysheet" class="sheet-container-block"></div>
     </div>
@@ -64,13 +66,14 @@ export default {
 
 <style lang="scss" scope>
 .sheet-container {
-    position: relative;
-    width: 1200px;
-    height: 500px;
+    position: fixed;
+    width: 100%;
+    height: 100%;
     &-block {
+        overflow: hidden;
         position: absolute;
         width: calc(100% - 40px);
-        height: 100%;
+        height: 80%;
     }
 }
 </style>

+ 1 - 0
src/pages/main/performance/mould.vue

@@ -60,6 +60,7 @@
             </el-form>
         </simple-dialog>
         <simple-dialog
+            fullscreen
             title="新增模板"
             :visible="add_visible"
             :reload="reload"