浏览代码

feature/表格配置跟新

dy 11 月之前
父节点
当前提交
bca41fab5c
共有 2 个文件被更改,包括 32 次插入7 次删除
  1. 29 3
      src/components/ExcelView/index.vue
  2. 3 4
      src/views/process/popUpView/checkPop.vue

+ 29 - 3
src/components/ExcelView/index.vue

@@ -9,14 +9,14 @@
           @click="downloadExcel"
           >导出</el-button
         >
-        <el-button
+        <!-- <el-button
           type="primary"
           class="btn"
           v-if="option.out"
           @click="print"
           v-print="'#print_html'"
           >打印</el-button
-        >
+        > -->
         <el-upload
           accept=".xlsx"
           ref="upload"
@@ -101,6 +101,30 @@ const resetOb = ref({
     sheet: false, //sheet页显示
     print: false,
   },
+  cellRightClickConfig: {
+    //右键单元格菜单设置
+    copy: true, // 复制
+    copyAs: true, // 复制为
+    paste: true, // 粘贴
+    insertRow: true, // 插入行
+    insertColumn: true, // 插入列
+    deleteRow: true, // 删除选中行
+    deleteColumn: true, // 删除选中列
+    deleteCell: true, // 删除单元格
+    hideRow: true, // 隐藏选中行和显示选中行
+    hideColumn: true, // 隐藏选中列和显示选中列
+    rowHeight: true, // 行高
+    columnWidth: true, // 列宽
+    clear: true, // 清除内容
+    matrix: true, // 矩阵操作选区
+    sort: true, // 排序选区
+    filter: true, // 筛选选区
+    chart: true, // 图表生成
+    image: true, // 插入图片
+    link: true, // 插入链接
+    data: true, // 数据验证
+    cellFormat: true, // 设置单元格格式
+  },
   data: null,
 });
 //print
@@ -133,7 +157,6 @@ const getActiveSheet = (sheets = []) => {
 //导入
 const leadingExcel = (item, fileList) => {
   const file = item.raw;
-  console.log("file", file);
   if (file == null || file.name == "") {
     return;
   }
@@ -205,6 +228,9 @@ onMounted(() => {
 </script>
 
 <style lang="scss" scoped>
+#luckysheet-bottom-controll-row {
+  display: none !important;
+}
 .oprea {
   padding: 0 20px;
   width: 100%;

+ 3 - 4
src/views/process/popUpView/checkPop.vue

@@ -38,11 +38,10 @@
       </el-scrollbar>
       <div class="btns">
         <el-button
-          size="large"
           type="primary"
           @click="validate"
-          class="titleText el-button-update"
-          style="width: 292px"
+          class="titleText"
+          style="width: 260px; height: 50px; border-radius: 16px"
           >提 交
         </el-button>
       </div>
@@ -138,7 +137,7 @@ onMounted(() => {
 
 .btns {
   width: 100%;
-  height: 60px;
+  height: 50px;
   @include flex;
 }