Browse Source

时间修改

jwyu 1 year ago
parent
commit
ed62771d07
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/report/components/ReportPublishTimeSet.vue

+ 2 - 2
src/views/report/components/ReportPublishTimeSet.vue

@@ -28,7 +28,7 @@ function handleClose(){
     emits('update:modelValue',false)
 }
 function onConfirmDSFBTime(){
-    const time=`${dsfbDate.value.join('-')} ${dsfbTime.value.join(':')}`
+    const time=`${dsfbDate.value.join('-')} ${dsfbTime.value.join(':')}:00`
     const now=moment().format('YYYY-MM-DD HH:mm:ss')
     if(moment(time).isBefore(now,'second')){
         showToast('定时发布不得早于当前时间')
@@ -58,7 +58,7 @@ function onConfirmDSFBTime(){
             />
             <van-time-picker
                 v-model="dsfbTime"
-                :columns-type="['hour', 'minute','second']"
+                :columns-type="['hour', 'minute']"
                 :min-time="minDSFBTime"
             />
         </van-picker-group>