فهرست منبع

添加渲染项

noob 3 سال پیش
والد
کامیت
5be151f06c
1فایلهای تغییر یافته به همراه9 افزوده شده و 3 حذف شده
  1. 9 3
      src/pages/main/performance/components/sheet.vue

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

@@ -2,7 +2,7 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-12-04 14:23:58
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-12-04 16:58:17
+ * @LastEditTime : 2021-12-04 17:04:04
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\sheet.vue
 -->
 
@@ -34,10 +34,16 @@ export default {
         return {};
     },
     methods: {
-        handleInit() {},
+        handleInit() {
+            const options = {
+                container: "luckysheet",
+                title: "请上传模板",
+            };
+            window.luckysheet.create(options);
+        },
         handleCreate(file) {
             luckyexcel.transformExcelToLucky(file, (export_json) => {
-                var options = {
+                const options = {
                     container: "luckysheet",
                     data: export_json.sheets,
                     title: export_json.info.name,