|
@@ -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%;
|