|
@@ -10,10 +10,12 @@
|
|
|
<div class="data-sheet-main" id="box">
|
|
|
<div class="main-left left" id="left" v-show="!isSlideLeft">
|
|
|
<div class="datasheet_top">
|
|
|
- <el-button type="primary" style="margin-right:20px" @click="goAddSheetHandle(1)"
|
|
|
+ <el-button v-permission="permissionBtn.etaTablePermission.etaTable_excel"
|
|
|
+ type="primary" style="margin-right:20px" @click="goAddSheetHandle(1)"
|
|
|
>添加Excel表格</el-button >
|
|
|
|
|
|
- <el-dropdown @command="goAddSheetHandle">
|
|
|
+ <el-dropdown v-permission="permissionBtn.etaTablePermission.etaTable_customize"
|
|
|
+ @command="goAddSheetHandle">
|
|
|
<el-button type="primary">
|
|
|
自定义表格<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
@@ -165,6 +167,7 @@
|
|
|
</span>
|
|
|
<ul class="action-ul">
|
|
|
<li
|
|
|
+ v-permission="permissionBtn.etaTablePermission.etaTable_excel_save"
|
|
|
class="editsty"
|
|
|
@click="saveHandle"
|
|
|
v-if="
|
|
@@ -176,6 +179,7 @@
|
|
|
</li>
|
|
|
<template v-if="[2, 3].includes(sheetDetailInfo.Source)">
|
|
|
<li
|
|
|
+ v-permission="permissionBtn.etaTablePermission.etaTable_customize_edit"
|
|
|
class="editsty"
|
|
|
@click="goEditHandle"
|
|
|
v-if="sheetDetailInfo.Button.OpButton"
|
|
@@ -183,6 +187,7 @@
|
|
|
编辑
|
|
|
</li>
|
|
|
<li
|
|
|
+ v-permission="permissionBtn.etaTablePermission.etaTable_customize_refresh"
|
|
|
class="editsty"
|
|
|
@click="refreshSheet"
|
|
|
v-if="sheetDetailInfo.Button.RefreshButton"
|
|
@@ -190,6 +195,7 @@
|
|
|
刷新
|
|
|
</li>
|
|
|
<li
|
|
|
+ v-permission="permissionBtn.etaTablePermission.etaTable_customize_otherSave"
|
|
|
class="editsty"
|
|
|
@click="saveOtherHandle"
|
|
|
v-if="sheetDetailInfo.Button.CopyButton"
|
|
@@ -197,13 +203,15 @@
|
|
|
另存为
|
|
|
</li>
|
|
|
</template>
|
|
|
- <li class="editsty" @click="downloadExcel(sheetDetailInfo)">
|
|
|
+ <li v-if="isDownLoadShow(sheetDetailInfo)"
|
|
|
+ class="editsty" @click="downloadExcel(sheetDetailInfo)">
|
|
|
下载
|
|
|
</li>
|
|
|
<li
|
|
|
class="deletesty"
|
|
|
v-if="
|
|
|
sheetDetailInfo.Button && sheetDetailInfo.Button.DeleteButton
|
|
|
+ &&isDeleteShow(sheetDetailInfo)
|
|
|
"
|
|
|
@click="delSheetHandle(sheetDetailInfo, 'del')"
|
|
|
>
|
|
@@ -266,12 +274,14 @@
|
|
|
<span>创建时间: {{ cell.CreateTime.slice(0, 10) }}</span>
|
|
|
<div>
|
|
|
<span
|
|
|
+ v-if="isDownLoadShow(cell)"
|
|
|
class="editsty"
|
|
|
style="margin-right: 10px"
|
|
|
@click="downloadExcel(cell)"
|
|
|
>下载</span
|
|
|
>
|
|
|
<span
|
|
|
+ v-if="isDeleteShow(cell)"
|
|
|
class="deletesty"
|
|
|
@click="delSheetHandle(cell, 'del-list')"
|
|
|
>删除</span
|
|
@@ -855,6 +865,24 @@ export default {
|
|
|
: 150;
|
|
|
});
|
|
|
},
|
|
|
+ //判断右侧列表的下载按钮是否显示
|
|
|
+ isDownLoadShow(cell){
|
|
|
+ const {checkPermissionBtn,etaTablePermission} = this.permissionBtn
|
|
|
+ if(cell.Source===1){
|
|
|
+ return checkPermissionBtn(etaTablePermission.etaTable_excel_download)
|
|
|
+ }else{
|
|
|
+ return checkPermissionBtn(etaTablePermission.etaTable_customize_download)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //判断右侧列表的删除按钮是否显示
|
|
|
+ isDeleteShow(cell){
|
|
|
+ const {checkPermissionBtn,etaTablePermission} = this.permissionBtn
|
|
|
+ if(cell.Source===1){
|
|
|
+ return checkPermissionBtn(etaTablePermission.etaTable_excel_del)
|
|
|
+ }else{
|
|
|
+ return checkPermissionBtn(etaTablePermission.etaTable_customize_del)
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
if (this.$route.query.code) {
|