|
@@ -163,8 +163,7 @@
|
|
<li
|
|
<li
|
|
class="editsty"
|
|
class="editsty"
|
|
@click="goEditHandle"
|
|
@click="goEditHandle"
|
|
- v-if="isCreator ||
|
|
|
|
- (sheetDetailInfo.Button && sheetDetailInfo.Button.OpButton&&isSheetBtnShow('edit'))"
|
|
|
|
|
|
+ v-if="(sheetDetailInfo.Button && sheetDetailInfo.Button.OpButton&&isSheetBtnShow('edit'))"
|
|
>
|
|
>
|
|
<img src="~@/assets/img/icons/edit_blue_new.png" v-if="!editButtonText"/>
|
|
<img src="~@/assets/img/icons/edit_blue_new.png" v-if="!editButtonText"/>
|
|
<span>{{ editButtonText?editButtonText:'编辑' }}</span>
|
|
<span>{{ editButtonText?editButtonText:'编辑' }}</span>
|
|
@@ -187,16 +186,15 @@
|
|
<span>另存为</span>
|
|
<span>另存为</span>
|
|
</li>
|
|
</li>
|
|
</template>
|
|
</template>
|
|
- <li v-if="isDownLoadShow(sheetDetailInfo)"
|
|
|
|
|
|
+ <li v-if="isSheetBtnShow('download')"
|
|
class="editsty" @click="downloadExcel(sheetDetailInfo)">
|
|
class="editsty" @click="downloadExcel(sheetDetailInfo)">
|
|
<img src="~@/assets/img/icons/download_blue.png"/>
|
|
<img src="~@/assets/img/icons/download_blue.png"/>
|
|
<span>下载</span>
|
|
<span>下载</span>
|
|
</li>
|
|
</li>
|
|
<li
|
|
<li
|
|
class="deletesty"
|
|
class="deletesty"
|
|
- v-if="
|
|
|
|
- isCreator || (sheetDetailInfo.Button && sheetDetailInfo.Button.DeleteButton
|
|
|
|
- &&isDeleteShow(sheetDetailInfo))
|
|
|
|
|
|
+ v-if="(sheetDetailInfo.Button && sheetDetailInfo.Button.DeleteButton
|
|
|
|
+ &&isSheetBtnShow('del'))
|
|
"
|
|
"
|
|
@click="delSheetHandle({cell:sheetDetailInfo, type:'del'})"
|
|
@click="delSheetHandle({cell:sheetDetailInfo, type:'del'})"
|
|
>
|
|
>
|
|
@@ -343,23 +341,6 @@ export default {
|
|
ExcelClassifyName: _.ExcelClassifyName,
|
|
ExcelClassifyName: _.ExcelClassifyName,
|
|
}));
|
|
}));
|
|
return options;
|
|
return options;
|
|
- },
|
|
|
|
-
|
|
|
|
- //数据表格是否展示
|
|
|
|
- isShowDataSheet(){
|
|
|
|
- const cell = {Source:2}
|
|
|
|
- return this.isSheetBtnShow(cell,'edit')||this.isSheetBtnShow(cell,'refresh')||this.isSheetBtnShow(cell,'otherSave')
|
|
|
|
- || this.isSheetBtnShow(cell,'download')||this.isSheetBtnShow(cell,'del')
|
|
|
|
- },
|
|
|
|
- //混合表格是否展示
|
|
|
|
- isShowMixSheet(){
|
|
|
|
- const cell = {Source:3}
|
|
|
|
- return this.isSheetBtnShow(cell,'edit')||this.isSheetBtnShow(cell,'refresh')||this.isSheetBtnShow(cell,'otherSave')
|
|
|
|
- || this.isSheetBtnShow(cell,'download')||this.isSheetBtnShow(cell,'del')
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- isCreator(){
|
|
|
|
- return this.adminId==this.excelAdminId
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|