Explorar o código

删除按钮布局修改

duy %!s(int64=2) %!d(string=hai) anos
pai
achega
27322d627a
Modificáronse 1 ficheiros con 10 adicións e 11 borrados
  1. 10 11
      src/views/tentative/material/approach.vue

+ 10 - 11
src/views/tentative/material/approach.vue

@@ -166,7 +166,7 @@
         </HcDialog>
 
         <!--导入-->
-        <HcDialog :show="importModal" isRowFooter title="导入" widths="38rem" @close="importModalClose">
+        <HcDialog :show="importModal" isRowFooter title="导入" widths="38rem" @close="importModalClose" >
             <HcDragUpload ref="uploadRef" :api="'/api/blade-business/material/'" :datas="uploadData" action="mobilization/import"
                           @finished="uploadFinished" @progress="uploadprogress"/>
             <template #leftRowFooter>
@@ -188,7 +188,7 @@
         </HcDialog>
 
         <!--查看附件-->
-        <HcDialog :footer="false" :show="viewAttachmentModal" isTable title="查看附件" widths="70rem"
+        <HcDialog  :show="viewAttachmentModal" isTable title="查看附件" widths="70rem" isRowFooter
                   @close="viewAttachmentModalClose">
             <template #extra>
                 <HcNewSwitch :datas="tabTypeTab" :disabled="tableRowPdfDisabled" :keys="tabTypeKey"
@@ -196,11 +196,10 @@
             </template>
             <div class="hc-switch-tab-content">
                 <div class="h-full w-full">
-                    <div v-if="tableRowData[tabTypeKey]" style="text-align:center">
+                    <div v-if="tableRowData[tabTypeKey]" style="text-align:center;height:100%">
                         <iframe v-if="tableRowData[tabTypeKey]&&ispdf!==-1" :src="tableRowData[tabTypeKey]" allow="display-capture" frameborder='1'
-                                height='100%' style="height:500px;width:90%"
+                                height='100%' style="height: 100%;"
                                 width='100%'/>
-
                         <div v-if="ispdf==-1" class="hc-no-table-form">
                             <div class="table-form-no" style="margin-top:100px">
                                 <!-- <img :src="notableform" alt=""/>
@@ -215,12 +214,6 @@
                                 </el-link>
                             </div>
                         </div>
-
-                        <el-button hc-btn size="small" type="primary" @click="deleteFile">
-                            <HcIcon name="delete-bin-2"/>
-                            <span>删除</span>
-                        </el-button>
-
                     </div>
 
                     <div v-else class="hc-no-table-form">
@@ -236,6 +229,12 @@
                     </div>
                 </div>
             </div>
+            <template #rightRowFooter >
+                <el-button hc-btn size="large" type="primary" @click="deleteFile" v-if="tableRowData[tabTypeKey]">
+                                    <HcIcon name="delete-bin-2"/>
+                                    <span>删除</span>
+                </el-button>
+            </template>
         </HcDialog>
 
         <!--取样记录-->