From 1377e545f9c63291e15c6640f290e012991c1213 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 08 七月 2024 09:28:36 +0800
Subject: [PATCH] 最新版本

---
 admin/src/components/operation/HiddenDangerParam.vue |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/admin/src/components/operation/HiddenDangerParam.vue b/admin/src/components/operation/HiddenDangerParam.vue
index c8bfb1a..f96d588 100644
--- a/admin/src/components/operation/HiddenDangerParam.vue
+++ b/admin/src/components/operation/HiddenDangerParam.vue
@@ -101,6 +101,7 @@
 import BaseOpera from '@/components/base/BaseOpera'
 import GlobalWindow from '@/components/common/GlobalWindow'
 import UploadFaceImg from '@/components/common/UploadFaceImg'
+import dayjs from 'dayjs'
 import { allList, memberList } from '@/api/business/hiddenDangerParam'
 import { create } from '@/api/business/hiddenDanger'
 export default {
@@ -135,6 +136,7 @@
     }
   },
   created () {
+    this.$set(this.param, 'submitTime', dayjs().format('YYYY-MM-DD HH:mm:ss'))
     this.initData()
   },
   methods: {
@@ -174,15 +176,15 @@
     uploadAvatarSuccess (file) {
       console.log('file', file)
       const item = file.data[0]
-      if (['.mp4', '.avi', '.flv', '.wmv'].indexOf(item.imgaddr) === -1) {
+      if (['.mp4', '.avi', '.flv', '.wmv'].some(char => item.imgaddr.includes(char))) {
         this.fileList.push({
-          type: 0,
+          type: 1,
           fileurl: item.imgaddr,
           fileurlFull: item.url
         })
       } else {
         this.fileList.push({
-          type: 1,
+          type: 0,
           fileurl: item.imgaddr,
           fileurlFull: item.url
         })
@@ -253,8 +255,8 @@
   display: flex;
   flex-wrap: wrap;
   .item {
-    width: 90px;
-    max-height: 90px;
+    width: 140px;
+    max-height: 140px;
     margin-left: 10px;
     position: relative;
     .close{
@@ -267,7 +269,7 @@
       cursor: pointer;
     }
     .img {
-      width: 90px;
+      width: 140px;
       max-height: 90px;
     }
   }

--
Gitblit v1.9.3