fix : 按钮放在右上角浮动

This commit is contained in:
2024-10-24 10:28:53 +08:00
parent 344a3a03b3
commit 5c4f25dc1a
3 changed files with 21 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
<div style="padding: 0 30px" id="printBox">
<div style="display: flex;justify-content: space-between">
<baseTitle title="项目基本信息"></baseTitle>
<div class="oper-page-btn" :style="{marginRight:taskId? '145px':'0'}">
<div class="oper-page-btn" :style="{marginRight:taskId? '145px':editShow?mode=='submit'?'145px':'170px':'0'}">
<el-button v-print="print" color="#ded0b2" icon="Printer" @click="handlePrint(print)"> 打印</el-button>
</div>
</div>
@@ -101,6 +101,16 @@ const props = defineProps({
taskId: {
type: String,
default: ''
},
//当项目详情是编辑模式时按钮位置
editShow: {
type: String,
default: ''
},
//当项目详情是提交模式还是重新提交时按钮位置
mode: {
type: String,
default: ''
}
})
const route = useRoute()