|
@@ -163,8 +163,7 @@
|
|
|
<li
|
|
|
class="editsty"
|
|
|
@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"/>
|
|
|
<span>{{ editButtonText?editButtonText:'编辑' }}</span>
|
|
@@ -187,16 +186,15 @@
|
|
|
<span>另存为</span>
|
|
|
</li>
|
|
|
</template>
|
|
|
- <li v-if="isDownLoadShow(sheetDetailInfo)"
|
|
|
+ <li v-if="isSheetBtnShow('download')"
|
|
|
class="editsty" @click="downloadExcel(sheetDetailInfo)">
|
|
|
<img src="~@/assets/img/icons/download_blue.png"/>
|
|
|
<span>下载</span>
|
|
|
</li>
|
|
|
<li
|
|
|
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'})"
|
|
|
>
|
|
@@ -343,23 +341,6 @@ export default {
|
|
|
ExcelClassifyName: _.ExcelClassifyName,
|
|
|
}));
|
|
|
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() {
|
|
@@ -752,7 +733,7 @@ export default {
|
|
|
this.saveTime = this.$moment(this.sheetDetailInfo.ModifyTime).format('YYYY-MM-DD HH:mm:ss')||''
|
|
|
this.excelAdminId = this.sheetDetailInfo.SysUserId
|
|
|
this.editButtonText = this.sheetDetailInfo.CanEdit?'':`${this.sheetDetailInfo.Editor}编辑中`
|
|
|
- //从nextTick里面拉出来 更多功能按钮 才显示的出来
|
|
|
+ //从nextTick里面拉出来 更多功能按钮 显示的出来 但是删除表格,请求下一个表格详情时,表格内容不会更新。
|
|
|
// this.sheetDetailInfo.Source === 1 && this.$refs.sheetRef && this.$refs.sheetRef.init();
|
|
|
|
|
|
this.$nextTick(() => {
|