licp
2024-07-01 c6334d29171e1d3edf2d10a01ab2489fbdd310c8
src/components/tool/excel.vue
@@ -20,6 +20,12 @@
      cursor: pointer;
   }
  #luckysheet .save_i{
    margin-right: 20px;
    font-size: 20px;
    cursor: help;
  }
   #luckysheet .save:hover {
      opacity: .8;
   }
@@ -33,7 +39,7 @@
</template>
<script>
import { data } from 'jquery';
import {exportExcel} from '../../util/downExcelByLuckSheet'
   // import { data } from 'jquery';
   export default {
      props: ['data', 'execlTitle'],
@@ -53,7 +59,7 @@
            } else {
               let rowlen = {}
               let columnlen = {}
               for(let a = 0; a<60; a++){
               for(let a = 0; a<50; a++){
                  rowlen[''+a] = 40
               }
               for(let a = 0; a<26; a++){
@@ -68,7 +74,7 @@
                        columnlen: columnlen
                     }
                  }],
                  row: 60,
                  row: 50,
                  column: 26
               }
            }
@@ -89,10 +95,10 @@
               dataVerification: false, // '数据验证'
               frozenMode: false, // '冻结方式'
               currencyFormat: false, //货币格式
               percentageFormat: false, //百分比格式
               percentageFormat: true, //百分比格式
               numberDecrease: true, // '减少小数位数'
               numberIncrease: true, // '增加小数位数
               moreFormats: false, // '更多格式'
               moreFormats: true, // '更多格式'
               strikethrough: false, // '删除线 (Alt+Shift+5)'
               underline: false, // '下划线 (Alt+Shift+6)'
               italic: false, // '斜体 (Ctrl+I)'
@@ -114,7 +120,7 @@
               cellFormat: false // 设置单元格格式
            },
            option.myFolderUrl = this.LOCATIONVUE + '/',
            option.functionButton = '<button onClick="excelClosed()" class="save">保存</button>'
            option.functionButton = '<i class="save_i el-icon-info" title="系统支持的变量:&#10样品编号&#10样品型号&#10序号&#10检验项&#10检验子项&#10设备名称&#10设备编码&#10单位&#10要求值&#10试验方法 | 检测方法&#10最终值&#10结论&#10计算值&#10检验值"></i><button onClick="excelClosed()" class="save">保存</button>'
            luckysheet.create(option)
         }
      }