Karsa 6 сар өмнө
parent
commit
ce5e270b8a

+ 8 - 4
src/views/report/components/AddReportBaseInfoV2.vue

@@ -529,10 +529,10 @@ async function handleSave() {
 </template>
 <style scoped lang="scss">
 .reportInfo-page{
-    height: 100dvh;
     min-height: 95vh;
     position: relative;
     background: #EDEDED;
+    padding-bottom: 140px;
     :deep(.cell-con){
         flex: 2;
     }
@@ -541,11 +541,15 @@ async function handleSave() {
       margin: 10px 0;
     }
     .bot-btns{
-        position: absolute;
-        bottom: 48px;
+        height: 140px;
+        position: fixed;
+        bottom: 0;
         left: 0;
         width: 100%;
-        text-align: center;
+        background-color: #fff;
+        display: flex;
+        align-items: center;
+        justify-content: center;
     }
 }
 .bot-btn{

+ 2 - 1
src/views/report/hooks/useReport.js

@@ -151,7 +151,8 @@ export function useReportHandles() {
 						showCancelButton: true,
 						message: isPost?'发布后,是否推送模板消息?':'是否立即发布报告?',
 						confirmButtonText: isPost?'推送':'发布',
-						cancelButtonText: isPost?'不推送':'取消',      
+						cancelButtonText: isPost?'不推送':'取消',
+						closeOnClickOverlay: true    
 				}).then(() => {
 						reportPublish({
 								sendMsg: isPost?true:false,

+ 3 - 1
src/views/report/smartReport/components/ReportLayoutImg.vue

@@ -2,6 +2,7 @@
 import { reactive, ref } from 'vue'
 import apiReport from '@/api/report'
 import { vInfiniteScroll } from '@vueuse/components'
+import { showToast } from 'vant'
 
 
 
@@ -63,6 +64,7 @@ function handleCancle() {
   emit('close')
 }
 function handleConfirm() {
+  if(!selectItem.value) return showToast('请选择图片')
 
   emit('confirm',{
     type:filterState.type,
@@ -78,7 +80,7 @@ function handleConfirm() {
         <van-dropdown-menu>
           <van-dropdown-item v-model="filterState.type" :options="imgTypeOpts" @change="initList" :disabled="defaultVal?true:false"/>
         </van-dropdown-menu>
-        <span style="color:#0052D9" @click="handleConfirm">确定</span>
+        <span :style="{color:selectItem?'#0052D9':'#666'}" @click="handleConfirm">确定</span>
     </div>
 
     <div class="container">