Ver Fonte

提交合并

zhuxinbo há 5 anos atrás
pai
commit
967c3210b9

+ 13 - 11
src/components/ctop/ActorModal.vue

@@ -8,6 +8,7 @@
           <a-input placeholder="请输入演员姓名" v-decorator="['name', validatorRules.name ]" />
         </a-form-item>
         <a-form-item label="封面" :labelCol="labelCol" :wrapperCol="wrapperCol">
+          {{coverUrl}}
           <!-- <upload-to-ali
             v-model="coverUrl"
             :customDomain="customDomain"
@@ -21,18 +22,19 @@
             :accessKeySecret="accessKeySecret"
           ></upload-to-ali> -->
 
-          <uploadFile :fileListAll.sync="coverUrl" :checkFile="fileWater" @overUpload="overUploadImage"
-            @removeUpload="deleteImage" :fileCount="1" uploadType="image" :multiple="false" />
+          <uploadFile :value.sync="coverUrl" :fileCount="1" uploadType="image" :multiple="false" />
         </a-form-item>
         <a-form-item label="照片" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="!model.name">
-          <upload-to-ali v-model="imageUrl" :customDomain="customDomain" multiple preview :region="region"
+          <uploadFile :value.sync="imageUrl" :fileCount="1" uploadType="image" :multiple="false" />
+          <!-- <upload-to-ali v-model="imageUrl" :customDomain="customDomain" multiple preview :region="region"
             :bucket="bucket" :accept="acceptImage" :max="10" :size="1024000" :accessKeyId="accessKeyId"
-            :accessKeySecret="accessKeySecret"></upload-to-ali>
+            :accessKeySecret="accessKeySecret"></upload-to-ali> -->
         </a-form-item>
         <a-form-item label="视频作品" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="!model.name">
-          <upload-to-ali v-model="videoUrl" :customDomain="customDomain" multiple preview :region="region"
+          <uploadFile :value.sync="videoUrl" :fileCount="1" uploadType="video" :multiple="false" />
+          <!-- <upload-to-ali v-model="videoUrl" :customDomain="customDomain" multiple preview :region="region"
             :bucket="bucket" :accept="acceptVideo" :max="10" :size="1024000" :accessKeyId="accessKeyId"
-            :accessKeySecret="accessKeySecret"></upload-to-ali>
+            :accessKeySecret="accessKeySecret"></upload-to-ali> -->
         </a-form-item>
         <a-form-item label="生日" :labelCol="labelCol" :wrapperCol="wrapperCol">
           <a-date-picker style="width: 100%" placeholder="请选择生日"
@@ -78,7 +80,7 @@
         model: {},
         videoUrl: [],
         imageUrl: [],
-        coverUrl: [],
+        coverUrl: "",
         customDomain: '',
         region: 'oss-cn-beijing',
         bucket: 'ctop-media',
@@ -137,9 +139,9 @@
         that.form.resetFields();
         that.model = Object.assign({}, record);
         that.visible = true;
-        that.coverUrl = record.coverUrl
-        that.imageUrl = record.imageUrl
-        that.videoUrl = record.videoUrl
+        // that.coverUrl = ""
+        // that.imageUrl = ""
+        // that.videoUrl = ""
         that.$nextTick(() => {
           that.form.setFieldsValue(pick(this.model, 'name', 'sex', 'speciality'))
           //时间格式化
@@ -185,7 +187,7 @@
                 that.$emit("updateList")
                 this.imageUrl = []
                 this.videoUrl = []
-                this.coverUrl = []
+                this.coverUrl = ""
               } else {
                 that.$message.warning(res.message);
               }

+ 9 - 5
src/components/ctop/vm-card.vue

@@ -201,7 +201,8 @@ li {
       @ok="handleOk('photo')"
       @cancel="handleCancel('photo')"
     >
-      <upload-to-ali
+    <uploadFile :value.sync="imageUrl" :fileCount="1" uploadType="image" :multiple="false" />
+      <!-- <upload-to-ali
         style="margin:10px"
         v-model="imageUrl"
         :customDomain="customDomain"
@@ -213,7 +214,7 @@ li {
         :size="1024000"
         :accessKeyId="accessKeyId"
         :accessKeySecret="accessKeySecret"
-      ></upload-to-ali>
+      ></upload-to-ali> -->
     </a-modal>
     <!-- 新增作品 -->
     <a-modal
@@ -222,7 +223,8 @@ li {
       @ok="handleOk('video')"
       @cancel="handleCancel('video')"
     >
-      <upload-to-ali
+    <uploadFile :value.sync="videoUrl" :fileCount="1" uploadType="video" :multiple="false" />
+      <!-- <upload-to-ali
         style="margin:10px"
         v-model="videoUrl"
         :customDomain="customDomain"
@@ -234,7 +236,7 @@ li {
         :size="1024000"
         :accessKeyId="accessKeyId"
         :accessKeySecret="accessKeySecret"
-      ></upload-to-ali>
+      ></upload-to-ali> -->
     </a-modal>
     <actor-modal ref="modalForm" @ok="modalFormOk" @updateList="updateList" @close="closeVideo"></actor-modal>
   </div>
@@ -255,6 +257,7 @@ import {
 } from '@/api/actor'
 import actorModal from './ActorModal'
 import UploadToAli from '@femessage/upload-to-ali'
+  import uploadFile from '@/components/uploadFile.vue'
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import { closeAllVideoFun } from '@/utils/videoControl'
 export default {
@@ -262,7 +265,8 @@ export default {
   mixins: [JeecgListMixin],
   components: {
     actorModal,
-    UploadToAli
+    UploadToAli,
+    uploadFile
   },
   props: {
     type: {

+ 71 - 10
src/components/uploadFile.vue

@@ -7,11 +7,11 @@
     <a-upload name="file" :multiple="multiple" list-type="picture-card" class="avatar-uploader"
       action="https://media-1301855440.cos.ap-chongqing.myqcloud.com/" :before-upload="beforeUpload"
       @change="handleChange" :accept="uploadType+'/*'" :file-list="fileList" :remove="removeFile"
-      @preview="handlePreview" :disabled="loadingElse">
+      @preview="handlePreview" :disabled="loadingElse||disabled">
       <div v-if="uploadType=='image'?fileList.length < fileCount:fileList.length<1">
         <a-progress v-if='loadingElse' :percent="percent" :show-info="false" />
         <div class="ant-upload-text">
-          Upload
+          点击上传
         </div>
       </div>
     </a-upload>
@@ -77,16 +77,20 @@
           return Promise.resolve()
         }
       },
-      fileListAll: {
-        type: Array,
+      disabled: {
+        type: Boolean,
         default () {
-          return []
+          return false
         }
+      },
+      value: {
+        type: [String, Array],
+        required: true
       }
     },
     data() {
       return {
-        fileList:[],
+        fileList: [],
         loadingElse: false,
         imageUrl: '',
         percent: 0,
@@ -96,8 +100,48 @@
     },
     filters: {},
     computed: {},
-    created() {},
-    watch: {},
+    mounted() {
+
+    },
+    watch: {
+      //    fileListAll
+      value: {
+        immediate: true,
+        handler(n, o) {
+          if (this.fileList.length == 0) {
+            if (typeof n == 'object') {
+              this.fileList = n.map((item, index) => {
+                return {
+                  uid: index + 1,
+                  name: index + 1,
+                  status: 'done',
+                  url: item,
+                }
+              })
+            } else {
+              if (n == '') {
+                this.fileList = []
+              } else {
+                this.fileList = [{
+                  uid: 1,
+                  name: 1,
+                  status: 'done',
+                  url: n,
+                }]
+
+              }
+
+            }
+          } else {
+            if (n.length == 0 || n == '') {
+              this.clearAll()
+            }
+          }
+
+        },
+        deep: true
+      }
+    },
     methods: {
       handleCancel() {
         closeAllVideoFun()
@@ -143,6 +187,9 @@
         })
 
       },
+      clearAll() {
+        this.fileList = []
+      },
       cosUpload(file) {
         var that = this
         let date = new Date()
@@ -180,13 +227,27 @@
           that.loadingElse = false
           if (that.fileList.length < that.fileCount) {
             that.fileList.push({
-              uid: i++,
+              uid: file.name,
               name: file.name,
               status: 'done',
               url: '//' + data.Location,
             })
+
+            // that.$emit('overUpload', that.fileList.map(item => {
+            //                 return item.url
+            //               }))
             that.$emit('overUpload', that.fileList)
-            that.$emit('update:fileListAll', that.fileList)
+
+            if (that.multiple) {
+              that.$emit('update:value', that.fileList.map(item => {
+                return item.url
+              }))
+            } else {
+              that.$emit('update:value', that.fileList.map(item => {
+                return item.url
+              })[0])
+            }
+
 
           } else {
             that.$message.error('上传已达上限' + that.fileCount + '张')

+ 2 - 1
src/utils/request.js

@@ -13,7 +13,8 @@ if (process.env.NODE_ENV == 'development') {
 else if (process.env.NODE_ENV == 'debug') { 
 } 
 else if (process.env.NODE_ENV == 'production') { 
-axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot';
+    axios.defaults.baseURL = 'http://192.168.1.251/jeecg-boot';
+// axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot';
 }
 const service = axios.create({
 //   baseURL: '/jeecg-boot', // api base_url

+ 1 - 1
src/views/modules/Statistics/materialRank.vue

@@ -28,7 +28,7 @@
     </div>
     <a-table :columns="columns" :data-source="dataSource" tableLayout='auto' bordered :pagination='false' :loading='loading'>
       <div slot="videoU" slot-scope="test,records">
-        <img :src="records.url+'?x-oss-process=video/snapshot,t_0,m_fast'" alt="" style="width:140px"
+        <img :src="records.coverUrl" alt="" style="width:140px"
           @click="openVideo(records.url)">
       </div>
       <span slot="convertRate" slot-scope="convertRate">{{ convertRate | toPercentage }}</span>

+ 1 - 1
src/views/modules/Statistics/performanceRelated/performanceRelated.vue

@@ -143,7 +143,7 @@
                         
                         <div slot="urls" slot-scope="test,records">
                             <img
-                            :src="records.url+'?x-oss-process=video/snapshot,t_0,m_fast'"
+                            :src="records.coverUrl"
                             alt
                             style="width:100px"
                             @click="openVideo(records.url)"                           

+ 1 - 1
src/views/modules/Statistics/videoStatics/vDay.vue

@@ -84,7 +84,7 @@
       @change="sort"
     >
       <div slot="videoU" slot-scope="test,records">
-        <img  :src="records.url+'?x-oss-process=video/snapshot,t_0,m_fast'"  alt=""  style="width:140px"  @click="openVideo(records.url)" @load="loadShow">
+        <img  :src="records.coverUrl"  alt=""  style="width:140px"  @click="openVideo(records.url)" @load="loadShow">
 
       </div>
       <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>

+ 1 - 1
src/views/modules/Statistics/videoStatics/vMonth.vue

@@ -93,7 +93,7 @@
       </span>
 
       <div slot="videoU" slot-scope="test,records">
-        <img  :src="records.url+'?x-oss-process=video/snapshot,t_0,m_fast'"  alt="" style="width:140px" @click="openVideo(records.url)" @load="loadShow">
+        <img  :src="records.coverUrl"  alt="" style="width:140px" @click="openVideo(records.url)" @load="loadShow">
       </div>
       <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
       <span

+ 1 - 1
src/views/modules/Statistics/videoStatics/vSummary.vue

@@ -93,7 +93,7 @@
     >
       <div slot="videoU" slot-scope="test,records">
         <img
-          :src="records.url+'?x-oss-process=video/snapshot,t_0,m_fast'"
+          :src="records.coverUrl"
           alt
           style="width:140px"
           @click="openVideo(records.url)"

+ 1 - 1
src/views/modules/Statistics/videoStatics/vWeek.vue

@@ -93,7 +93,7 @@
       </span>
 
       <div slot="videoU" slot-scope="test,records">
-       <img  :src="records.url+'?x-oss-process=video/snapshot,t_0,m_fast'"  alt="" style="width:140px" @click="openVideo(records.url)"  @load="loadShow">
+       <img  :src="records.coverUrl"  alt="" style="width:140px" @click="openVideo(records.url)"  @load="loadShow">
       </div>
       <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
       <span

+ 10 - 5
src/views/modules/actor/modules/ActorModal.vue

@@ -22,7 +22,9 @@
           :labelCol="labelCol"
           :wrapperCol="wrapperCol"
         >
-          <upload-to-ali
+
+        <uploadFile :value.sync="imageUrl" :fileCount="1" uploadType="image" :multiple="false" />
+          <!-- <upload-to-ali
             v-model="imageUrl"
             :customDomain="customDomain"
             multiple
@@ -34,14 +36,15 @@
             :size="1024000"
             :accessKeyId="accessKeyId"
             :accessKeySecret="accessKeySecret"
-          ></upload-to-ali>
+          ></upload-to-ali> -->
         </a-form-item>
         <a-form-item
           label="视频作品"
           :labelCol="labelCol"
           :wrapperCol="wrapperCol"
         >
-          <upload-to-ali
+        <uploadFile :value.sync="videoUrl" :fileCount="1" uploadType="video" :multiple="false" />
+          <!-- <upload-to-ali
             v-model="videoUrl"
             :customDomain="customDomain"
             multiple
@@ -53,7 +56,7 @@
             :size="1024000"
             :accessKeyId="accessKeyId"
             :accessKeySecret="accessKeySecret"
-          ></upload-to-ali>
+          ></upload-to-ali> -->
         </a-form-item>
         <a-form-item label="生日" :labelCol="labelCol" :wrapperCol="wrapperCol">
           <a-date-picker
@@ -87,11 +90,13 @@
   import JTreeSelect from '@/components/jeecg/JTreeSelect'
   import moment from 'moment'
   import UploadToAli from '@femessage/upload-to-ali'
+    import uploadFile from '@/components/uploadFile.vue'
   export default {
     name: "ActorModal",
     components: {
       UploadToAli,
-      JTreeSelect
+      JTreeSelect,
+      uploadFile
     },
     data() {
       return {

+ 82 - 79
src/views/modules/kuaishouapp/account/stepForm/Step3.vue

@@ -231,10 +231,13 @@
         </a-button>
       </template>
       <a-form-item label="" class="add-image-material">
+        <uploadFile v-if="addImageVisible" :value.sync="urlListImage.url" :checkFile="fileWater"
+          @overUpload="overUploadImage" @removeUpload="deleteImage" :fileCount="15" uploadType="image" />
+        <!-- 
         <upload-to-ali style="width:100%" v-model="urlListImage.url" :customDomain="customDomain" :multiple="true"
           preview :region="region" :bucket="bucket" :accept="acceptImage" :max="15" :size="1024000"
           :accessKeyId="accessKeyId" :accessKeySecret="accessKeySecret" :before-upload="fileWater" :dir="dirImg"
-          @delete='deleteImage' @loaded="overUploadImage"></upload-to-ali>
+          @delete='deleteImage' @loaded="overUploadImage"></upload-to-ali> -->
         <span v-if="material.filter(item => item == false).length > 0 && urlListImage.url.length > 0"
           style="color:red">上传素材的尺寸不符,请修改(<span v-for="(item, index) of material" :key="index"
             v-show="!item">第{{ index + 1 }}张</span>出错)</span>
@@ -251,10 +254,13 @@
         </a-button>
       </template>
       <a-form-item label="" class="add-image-material">
-        <upload-to-ali v-model="urlList.url" :customDomain="customDomain" preview :region="region" :bucket="bucket"
+        <uploadFile v-if="addVideoVisible" :checkFile="file" :value.sync="urlList.url" @overUpload="overUpload" :fileCount="10"
+          uploadType="video" :multiple="false" />
+
+        <!-- <upload-to-ali v-model="urlList.url" :customDomain="customDomain" preview :region="region" :bucket="bucket"
           :accept="acceptVideo" :max="10" :size="1024000" :accessKeyId="accessKeyId" :accessKeySecret="accessKeySecret"
           :before-upload="file" :dir="dirVideo" @loaded="overUpload">
-        </upload-to-ali>
+        </upload-to-ali> -->
         <span v-if="messageTip" style="color:red">{{messageTip}}</span>
       </a-form-item>
     </a-modal>
@@ -375,7 +381,7 @@
   } from '@/utils/videoControl' // 停止除当前外的其他视频播放,及停止所有视频播放的方法
   import checkMatemal from './stepModule/checkMatemal'
   import BMF from 'browser-md5-file'
-
+  import uploadFile from '@/components/uploadFile.vue'
 
   let nowIndex = 0
   let bestIndex = 0
@@ -385,7 +391,8 @@
     components: {
       UploadToAli,
       VuePreview,
-      checkMatemal
+      checkMatemal,
+      uploadFile
     },
     data() {
       return {
@@ -1008,76 +1015,76 @@
         that.imageArrList = []
         var img
         if (urlAll.length > 0) {
-          for (var i = 0; i < this.urlListImage.url.length; i++) {
+          for (var i = 0; i < urlAll.length; i++) {
             that.imageArrList.push({
               signature: this.urlListImage.md5[i],
-              url: this.urlListImage.url[i],
+              url: urlAll[i].url,
             })
 
             img = new Image()
-            img.src = this.urlListImage.url[i]
-            if (img.complete) {
-              // 打印
-              if (img.width == 720) {
-                if (img.height == 1280) {
-                  that.material.push(true)
-                } else {
-                  that.material.push(false)
-                }
-              } else if (img.width == 1080) {
-                if (img.height == 1920) {
-                  that.material.push(true)
-                } else {
-                  that.material.push(false)
-                }
-              } else if (img.width == 1280) {
-                if (img.height == 720) {
-                  that.material.push(true)
-                } else {
-                  that.material.push(false)
-                }
-              } else if (img.width == 1920) {
-                if (img.height == 1080) {
-                  that.material.push(true)
-                } else {
-                  that.material.push(false)
-                }
-              } else {
-                that.material.push(false)
-              }
-            } else {
-
-              img.onload = () => {
-                if (img.width == 720) {
-                  if (img.height == 1280) {
-                    that.material.push(true)
-                  } else {
-                    that.material.push(false)
-                  }
-                } else if (img.width == 1080) {
-                  if (img.height == 1920) {
-                    that.material.push(true)
-                  } else {
-                    that.material.push(false)
-                  }
-                } else if (img.width == 1280) {
-                  if (img.height == 720) {
-                    that.material.push(true)
-                  } else {
-                    that.material.push(false)
-                  }
-                } else if (img.width == 1920) {
-                  if (img.height == 1080) {
-                    that.material.push(true)
-                  } else {
-                    that.material.push(false)
-                  }
-                } else {
-                  that.material.push(false)
-                }
-
-              }
-            }
+            img.src = urlAll[i].url
+            // if (img.complete) {
+            //   // 打印
+            //   if (img.width == 720) {
+            //     if (img.height == 1280) {
+            //       that.material.push(true)
+            //     } else {
+            //       that.material.push(false)
+            //     }
+            //   } else if (img.width == 1080) {
+            //     if (img.height == 1920) {
+            //       that.material.push(true)
+            //     } else {
+            //       that.material.push(false)
+            //     }
+            //   } else if (img.width == 1280) {
+            //     if (img.height == 720) {
+            //       that.material.push(true)
+            //     } else {
+            //       that.material.push(false)
+            //     }
+            //   } else if (img.width == 1920) {
+            //     if (img.height == 1080) {
+            //       that.material.push(true)
+            //     } else {
+            //       that.material.push(false)
+            //     }
+            //   } else {
+            //     that.material.push(false)
+            //   }
+            // } else {
+
+            //   img.onload = () => {
+            //     if (img.width == 720) {
+            //       if (img.height == 1280) {
+            //         that.material.push(true)
+            //       } else {
+            //         that.material.push(false)
+            //       }
+            //     } else if (img.width == 1080) {
+            //       if (img.height == 1920) {
+            //         that.material.push(true)
+            //       } else {
+            //         that.material.push(false)
+            //       }
+            //     } else if (img.width == 1280) {
+            //       if (img.height == 720) {
+            //         that.material.push(true)
+            //       } else {
+            //         that.material.push(false)
+            //       }
+            //     } else if (img.width == 1920) {
+            //       if (img.height == 1080) {
+            //         that.material.push(true)
+            //       } else {
+            //         that.material.push(false)
+            //       }
+            //     } else {
+            //       that.material.push(false)
+            //     }
+
+            //   }
+            // }
           }
         }
 
@@ -1090,14 +1097,10 @@
         //   md5: []
         // }
         return new Promise(function (resolve, reject) {
-          for (let i = 0; i < file.length; i++) {
-            bmf.md5(file[i], (err, md5) => {
-              // that.urlListImage.name.push(file[i].name)
-              that.urlListImage.md5.push(md5)
-              resolve()
-
-            })
-          }
+          bmf.md5(file, (err, md5) => {
+            that.urlListImage.md5.push(md5)
+            resolve()
+          })
         })
       },
       overUpload(urlAll) {
@@ -1107,7 +1110,7 @@
         var bmf = new BMF()
         var that = this
         return new Promise(function (resolve, reject) {
-          bmf.md5(file[0], (err, md5) => {
+          bmf.md5(file, (err, md5) => {
 
 
             getAction('/kusiShouUpload/checkVideo', {

+ 1 - 1
src/views/modules/material/excellentMaterial.vue

@@ -220,7 +220,7 @@
                     }"></div>
                   <img v-if="active == 'IMAGE'" :src="items.url"
                     style="height:200px;max-width:100%;position:absolute;z-index:10;" />
-                  <img v-else :src="items.url + '?x-oss-process=video/snapshot,t_00000,m_fast'" alt=""
+                  <img v-else :src="items.coverUrl" alt=""
                     style="height:200px;max-width:100%;position:absolute;z-index:10;" />
                 </div>
 

+ 7 - 4
src/views/modules/material/fragmentMatemal.vue

@@ -384,12 +384,13 @@
         </a-form-item>
 
         <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="视频素材上传">
-          <upload-to-ali :customDomain="customDomain" preview :region="region" :bucket="bucket" :accept="acceptVideo"
+          <uploadFile :value.sync="urlList.url" :fileCount="1" uploadType="video" :multiple="false" />
+          <!-- <upload-to-ali :customDomain="customDomain" preview :region="region" :bucket="bucket" :accept="acceptVideo"
             :max="10" :size="1024000" :accessKeyId="accessKeyId" :accessKeySecret="accessKeySecret"
             :before-upload="file" :dir="dirVideo" @loaded="overUpload" v-decorator="[
               'url', // 给表单赋值或拉取表单时,该input对应的key
               { rules: [{ required: true, message: '请上传图片!' }] }
-            ]"></upload-to-ali>
+            ]"></upload-to-ali> -->
         </a-form-item>
         <a-form-item :label-col="labelCol" :wrapper-col="{
             xs: { span: 24 },
@@ -480,6 +481,7 @@
   } from '@/mixins/JeecgListMixin'
   import JEllipsis from '@/components/jeecg/JEllipsis'
   import UploadToAli from '@femessage/upload-to-ali'
+  import uploadFile from '@/components/uploadFile.vue'
   import {
     fileCheck,
     fileInsert,
@@ -525,7 +527,8 @@
       JEllipsis,
       UploadToAli,
       accountCheck,
-      checkMatemal
+      checkMatemal,
+      uploadFile
     },
 
     data() {
@@ -1250,7 +1253,7 @@
             }
             params.id = this.add ? null : this.id
             params.code = this.urlList.md5
-            params.url = values.url
+            params.url = this.urlList.url
             params.materialName = this.urlList.name
             params.userId = this.userInfo().id
             params.projectId = values.projectId

+ 17 - 20
src/views/modules/material/materialList.vue

@@ -303,7 +303,9 @@ a {
       </template>
       <a-form :form="form">
         <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="图片素材上传" class="add-image-material">
-          <upload-to-ali
+        <uploadFile :value.sync="urlList.url" :multiple='false'
+          @overUpload="overUpload" :fileCount="1" uploadType="image" />
+          <!-- <upload-to-ali
             style="width:160%"
             v-model="urlList.url"
             :customDomain="customDomain"
@@ -318,7 +320,7 @@ a {
             :before-upload="file"
             :dir="activeKey == 'image' ? dirImg : dirVideo"
             @loaded="overUpload"
-          ></upload-to-ali>
+          ></upload-to-ali> -->
           <span v-if="material.filter(item => item == false).length > 0 && urlList.url != ''" style="color:red"
             >上传素材的尺寸不符,请修改</span
           >
@@ -386,22 +388,9 @@ a {
               {{ refuseReason ? refuseReason : '无原因' }}
             </a-form-item>
             <a-form-item label="截图" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" v-if="active == '2'">
-              <upload-to-ali
-                v-if="refuseFile"
-                disabled
-                v-model="refuseFile"
-                :customDomain="customDomain"
-                multiple
-                preview
-                :region="region"
-                :bucket="bucket"
-                :accept="acceptImage"
-                :max="10"
-                :size="1024000"
-                :accessKeyId="accessKeyId"
-                :accessKeySecret="accessKeySecret"
-                :dir="dirImg"
-              ></upload-to-ali>
+              <div v-if="refuseFile" style="width:100%">
+                    <img style="width:100px;height:auto;margin:5px"  @click="showBoHui(item)" :src="item" v-for="(item,index) in refuseFile" :key="index" alt="">
+                </div>
               <div v-else>无截图</div>
             </a-form-item>
           </a-form>
@@ -417,6 +406,7 @@ a {
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import JEllipsis from '@/components/jeecg/JEllipsis'
 import UploadToAli from '@femessage/upload-to-ali'
+import uploadFile from '@/components/uploadFile.vue'
 import { fileCheck, fileInsert, fileEdit } from '@/api/actor'
 import { getAction, postAction, postFile, downFile, downFilePost, deleteAction, putAction } from '@/api/manage'
 
@@ -435,7 +425,8 @@ export default {
     JEllipsis,
     UploadToAli,
     accountCheck,
-    selectTable
+    selectTable,
+    uploadFile
   },
 
   data() {
@@ -539,7 +530,9 @@ export default {
       noList: [],
       material: [],
       excellent: 0,
-      code: ''
+      code: '',
+      bohui:"",
+      bohuiShow:false
     }
   },
   filters: {
@@ -606,6 +599,10 @@ export default {
     }
   },
   methods: {
+    showBoHui(item){
+      this.bohui = item
+      this.bohuiShow = true
+    },
     setSuccess() {
       var params = {}
       params.id = this.code

+ 114 - 74
src/views/modules/material/videoMaterial.vue

@@ -451,7 +451,7 @@ a {
                     v-if="items.whetherUnaudited"
                   />
                   <img
-                    :src="items.url + '?x-oss-process=video/snapshot,t_00000,m_fast'"
+                    :src="items.coverUrl"
                     alt=""
                     style="height:200px;max-width:100%;position:absolute;z-index:10;"
                   />
@@ -536,7 +536,13 @@ a {
                       </div>
                       <div>
                         截图:
-                        <upload-to-ali
+                        <uploadFile 
+                        v-if="refuseFile"
+                        :value.sync="refuseFile"
+                        :fileCount="15"
+                        uploadType="image"
+                        />
+                        <!-- <upload-to-ali
                           v-model="refuseFile"
                           :customDomain="customDomain"
                           multiple
@@ -549,7 +555,7 @@ a {
                           :accessKeyId="accessKeyId"
                           :accessKeySecret="accessKeySecret"
                           :dir="dirImg"
-                        ></upload-to-ali>
+                        ></upload-to-ali> -->
                       </div>
                     </div>
                     <a href="javascript:;" style="margin-right:20px">驳回</a>
@@ -640,7 +646,17 @@ a {
         </a-button>
       </template>
       <a-form-item label="" class="add-image-material">
-        <upload-to-ali
+          <uploadFile 
+          v-if="addImageVisible"
+          :value.sync="urlListImage.url"
+          :checkFile="fileWater" 
+          @overUpload="overUploadImage" 
+          @removeUpload="deleteImage"
+          :fileCount="15"
+          uploadType="image"
+          />
+
+        <!-- <upload-to-ali
           style="width:100%"
           v-model="urlListImage.url"
           :customDomain="customDomain"
@@ -657,7 +673,7 @@ a {
           :dir="dirImg"
           @delete='deleteImage'
           @loaded="overUploadImage"
-        ></upload-to-ali>
+        ></upload-to-ali> -->
         <span v-if="material.filter(item => item == false).length > 0 && urlListImage.url.length > 0" style="color:red"
           >上传素材的尺寸不符,请修改(<span v-for="(item, index) of material" :key="index" v-show="!item"
             >第{{ index + 1 }}张</span
@@ -728,6 +744,7 @@ a {
         <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="视频素材上传" v-if="getData('projectId')">
           <uploadFile 
           :checkFile="file" 
+          :value.sync="urlList.url"
           @overUpload="overUpload" 
           @removeUpload="removeUpload"
           :fileCount="10"
@@ -783,6 +800,7 @@ a {
             @loaded="overUploadImage"
           ></upload-to-ali> -->
           <uploadFile 
+          :value.sync="urlListImage.url"
           :checkFile="fileWater" 
           @overUpload="overUploadImage" 
           @removeUpload="deleteImage"
@@ -1058,7 +1076,14 @@ a {
             </div>
             <div>
               <a-form-item label="截图" v-if="active == '2'">
-                <upload-to-ali
+                <div v-if="refuseFile" style="width:100%">
+                    <img style="width:100px;height:auto;margin:5px"  @click="showBoHui(item)" :src="item" v-for="(item,index) in refuseFile" :key="index" alt="">
+                </div>
+                
+                <!-- :checkFile="fileWater" 
+                @overUpload="overUploadImage" 
+                @removeUpload="deleteImage" -->
+                <!-- <upload-to-ali
                   v-if="refuseFile"
                   disabled
                   v-model="refuseFile"
@@ -1073,7 +1098,7 @@ a {
                   :accessKeyId="accessKeyId"
                   :accessKeySecret="accessKeySecret"
                   :dir="dirImg"
-                ></upload-to-ali>
+                ></upload-to-ali> -->
                 <div v-else>无截图</div>
               </a-form-item>
             </div>
@@ -1120,7 +1145,13 @@ a {
                     </div>
                     <div>
                       截图:
-                      <upload-to-ali
+                        <uploadFile 
+                        v-if="refuseFile"
+                        :value.sync="refuseFile"
+                        :fileCount="15"
+                        uploadType="image"
+                        />
+                      <!-- <upload-to-ali
                         v-model="refuseFile"
                         :customDomain="customDomain"
                         multiple
@@ -1133,7 +1164,7 @@ a {
                         :accessKeyId="accessKeyId"
                         :accessKeySecret="accessKeySecret"
                         :dir="dirImg"
-                      ></upload-to-ali>
+                      ></upload-to-ali> -->
                     </div>
                   </div>
                   <a-button type="primary" v-show="active != '2'">驳回</a-button>
@@ -1168,7 +1199,9 @@ a {
         </div>
       </div>
     </a-modal>
-
+    <a-modal title="查看截图" v-model="bohuiShow" :width="300" :footer="null">
+      <img :src="bohui" alt="" style="width:100%">
+    </a-modal>
     <a-modal title="人员修改" v-model="personVisible"  @afterClose="closePerson">
         <template slot="footer">
             <a-button key="back" @click="closePerson">取消</a-button>
@@ -1412,7 +1445,9 @@ export default {
       imageArrList: [],
       showDataBool: false,
       kuaishouData: null,
-      douyinData: null
+      douyinData: null,
+      bohui:"",
+      bohuiShow:false
     }
   },
   filters: {
@@ -1493,6 +1528,10 @@ export default {
     }
   },
   methods: {
+      showBoHui(item){
+          this.bohui = item
+          this.bohuiShow = true
+      },
     editImage(item, status) {
       var params = {}
       params.id = item.id
@@ -1975,7 +2014,7 @@ export default {
       })
     },
     handleOkImage() {
-        if(this.urlListImage.url.length>0){
+        // if(this.urlListImage.url.length>0){
             var params = {}
             params.projectId = this.addImageData.projectId
             params.videoId = this.addImageData.code
@@ -1998,7 +2037,7 @@ export default {
                 this.loadingImage = false
                 }
             })
-        }
+        // }
      
     },
     handleOk() {
@@ -2189,6 +2228,7 @@ export default {
 
     },
     overUpload(urlAll) {
+      console.log(urlAll)
       this.confirmLoading = true
       this.repeat = false
       this.urlList.url = urlAll[0].url
@@ -2220,69 +2260,69 @@ export default {
                 materialName: this.urlListImage.name[i]
             })
             img = new Image()
-            img.src = this.urlListImage.url[i]
-            if (img.complete) {
-            // 打印
-            if (img.width == 720) {
-                if (img.height == 1280) {
-                that.material.push(true)
-                } else {
-                that.material.push(false)
-                }
-            } else if (img.width == 1080) {
-                if (img.height == 1920) {
-                that.material.push(true)
-                } else {
-                that.material.push(false)
-                }
-            } else if (img.width == 1280) {
-                if (img.height == 720) {
-                that.material.push(true)
-                } else {
-                that.material.push(false)
-                }
-            } else if (img.width == 1920) {
-                if (img.height == 1080) {
-                that.material.push(true)
-                } else {
-                that.material.push(false)
-                }
-            } else {
-                that.material.push(false)
-            }
-            } else {
+            img.src = urlAll[i].url
+            // if (img.complete) {
+            // // 打印
+            // if (img.width == 720) {
+            //     if (img.height == 1280) {
+            //     that.material.push(true)
+            //     } else {
+            //     that.material.push(false)
+            //     }
+            // } else if (img.width == 1080) {
+            //     if (img.height == 1920) {
+            //     that.material.push(true)
+            //     } else {
+            //     that.material.push(false)
+            //     }
+            // } else if (img.width == 1280) {
+            //     if (img.height == 720) {
+            //     that.material.push(true)
+            //     } else {
+            //     that.material.push(false)
+            //     }
+            // } else if (img.width == 1920) {
+            //     if (img.height == 1080) {
+            //     that.material.push(true)
+            //     } else {
+            //     that.material.push(false)
+            //     }
+            // } else {
+            //     that.material.push(false)
+            // }
+            // } else {
 
-            img.onload = () => {
-                if (img.width == 720) {
-                    if (img.height == 1280) {
-                    that.material.push(true)
-                    } else {
-                    that.material.push(false)
-                    }
-                } else if (img.width == 1080) {
-                    if (img.height == 1920) {
-                    that.material.push(true)
-                    } else {
-                    that.material.push(false)
-                    }
-                } else if (img.width == 1280) {
-                    if (img.height == 720) {
-                    that.material.push(true)
-                    } else {
-                    that.material.push(false)
-                    }
-                } else if (img.width == 1920) {
-                    if (img.height == 1080) {
-                    that.material.push(true)
-                    } else {
-                    that.material.push(false)
-                    }
-                } else {
-                    that.material.push(false)
-                }
+            // img.onload = () => {
+            //     if (img.width == 720) {
+            //         if (img.height == 1280) {
+            //         that.material.push(true)
+            //         } else {
+            //         that.material.push(false)
+            //         }
+            //     } else if (img.width == 1080) {
+            //         if (img.height == 1920) {
+            //         that.material.push(true)
+            //         } else {
+            //         that.material.push(false)
+            //         }
+            //     } else if (img.width == 1280) {
+            //         if (img.height == 720) {
+            //         that.material.push(true)
+            //         } else {
+            //         that.material.push(false)
+            //         }
+            //     } else if (img.width == 1920) {
+            //         if (img.height == 1080) {
+            //         that.material.push(true)
+            //         } else {
+            //         that.material.push(false)
+            //         }
+            //     } else {
+            //         that.material.push(false)
+            //     }
                 
-            }
-            }
+            // }
+            // }
         }
       }else{
 

+ 6 - 2
src/views/modules/onlineTraining/onlineTrainingList.vue

@@ -112,10 +112,12 @@
         </a-form-item>
         <a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="文件上传"
           v-show="(getData('title') && getData('topic'))||(oneList.length>0 && getData('topicAll'))">
-          <upload-to-ali v-model="fileUrl" :customDomain="customDomain" preview :region="region" :bucket="bucket"
+          <uploadFile :value.sync="fileUrl" :multiple='false':checkFile="file" :fileCount="1"
+            uploadType="video" />
+          <!-- <upload-to-ali v-model="fileUrl" :customDomain="customDomain" preview :region="region" :bucket="bucket"
             :accept="acceptVideo" :max="10" :size="1024000" :accessKeyId="accessKeyId"
             :accessKeySecret="accessKeySecret" :before-upload="file" :dir="dirVideo" @loaded="overUpload">
-          </upload-to-ali>
+          </upload-to-ali> -->
         </a-form-item>
 
       </a-form>
@@ -136,6 +138,7 @@
   import $ from 'jquery'
   import qs from 'qs'
   import UploadToAli from '@femessage/upload-to-ali'
+  import uploadFile from '@/components/uploadFile.vue'
   // document.write(textDes('https://ctop-media.oss-cn-beijing.aliyuncs.com/video/2020-03-20/20网服-1584693978588.mp4'))
   // document.write('<br>' + desDecrypt('s4HMPbmUfZ0=', 'ckplayerDesKey'))
   function textDes(str) {
@@ -250,6 +253,7 @@
     },
     components: {
       UploadToAli,
+      uploadFile
     },
     methods: {
       clear() {

+ 7 - 3
src/views/modules/prop/modules/ActorModal.vue

@@ -9,9 +9,11 @@
           <a-input placeholder="请输入道具名称" v-decorator="['name', validatorRules.name ]" />
         </a-form-item>
         <a-form-item label="照片" :labelCol="labelCol" :wrapperCol="wrapperCol">
-          <upload-to-ali v-model="imageUrl" :customDomain="customDomain" multiple preview :region="region"
+          <uploadFile :value.sync="imageUrl" @overUpload="overUpload" :fileCount="10"
+            uploadType="image" />
+          <!-- <upload-to-ali v-model="imageUrl" :customDomain="customDomain" multiple preview :region="region"
             :bucket="bucket" :accept="acceptImage" :max="10" :size="1024000" :accessKeyId="accessKeyId"
-            :accessKeySecret="accessKeySecret"></upload-to-ali>
+            :accessKeySecret="accessKeySecret"></upload-to-ali> -->
         </a-form-item>
         <!-- <a-form-item label="生日" :labelCol="labelCol" :wrapperCol="wrapperCol">
           <a-date-picker
@@ -44,11 +46,13 @@
   import JTreeSelect from '@/components/jeecg/JTreeSelect'
   import moment from 'moment'
   import UploadToAli from '@femessage/upload-to-ali'
+  import uploadFile from '@/components/uploadFile.vue'
   export default {
     name: "ActorModal",
     components: {
       UploadToAli,
-      JTreeSelect
+      JTreeSelect,
+      uploadFile
     },
     data() {
       return {

+ 9 - 5
src/views/modules/yard/YardList.vue

@@ -134,15 +134,17 @@
 
     <!-- 新增图集 -->
     <a-modal v-model="addPhoto" title="新增图集" @ok="handleOk('photo')" @cancel="handleCancel('photo')">
-      <upload-to-ali style="margin:10px" v-model="imageUrl" :customDomain="customDomain" preview :region="region"
+        <uploadFile :value.sync="imageUrl" :fileCount="1" uploadType="image" :multiple="false" />
+      <!-- <upload-to-ali style="margin:10px" v-model="imageUrl" :customDomain="customDomain" preview :region="region"
         :bucket="bucket" :accept="acceptImage" :max="1" :size="1024000" :accessKeyId="accessKeyId"
-        :accessKeySecret="accessKeySecret"></upload-to-ali>
+        :accessKeySecret="accessKeySecret"></upload-to-ali> -->
     </a-modal>
     <!-- 新增作品 -->
     <a-modal v-model="addVideo" title="新增作品" @ok="handleOk('video')" @cancel="handleCancel('video')">
-      <upload-to-ali style="margin:10px" v-model="videoUrl" :customDomain="customDomain" preview :region="region"
+        <uploadFile :value.sync="videoUrl" :fileCount="1" uploadType="video" :multiple="false" />
+      <!-- <upload-to-ali style="margin:10px" v-model="videoUrl" :customDomain="customDomain" preview :region="region"
         :bucket="bucket" :accept="acceptVideo" :max="1" :size="1024000" :accessKeyId="accessKeyId"
-        :accessKeySecret="accessKeySecret"></upload-to-ali>
+        :accessKeySecret="accessKeySecret"></upload-to-ali> -->
     </a-modal>
 
     <yard-modal ref="modalForm" @ok="modalFormOk"></yard-modal>
@@ -157,6 +159,7 @@
   } from '@/mixins/JeecgListMixin'
   import JEllipsis from '@/components/jeecg/JEllipsis'
   import UploadToAli from '@femessage/upload-to-ali'
+  import uploadFile from '@/components/uploadFile.vue'
   import {
     yardPhotoList,
     yardVideoList,
@@ -171,7 +174,8 @@
     components: {
       JEllipsis,
       YardModal,
-      UploadToAli
+      UploadToAli,
+      uploadFile
     },
     data() {
       return {

+ 10 - 5
src/views/modules/yard/modules/YardModal.vue

@@ -28,7 +28,8 @@
           :labelCol="labelCol"
           :wrapperCol="wrapperCol"
         >
-          <upload-to-ali
+        <uploadFile :value.sync="imageUrl" :fileCount="1" uploadType="image" :multiple="false" />
+          <!-- <upload-to-ali
             v-model="imageUrl"
             :customDomain="customDomain"
             multiple
@@ -40,14 +41,16 @@
             :size="1024000"
             :accessKeyId="accessKeyId"
             :accessKeySecret="accessKeySecret"
-          ></upload-to-ali>
+          ></upload-to-ali> -->
         </a-form-item>
         <a-form-item
           label="视频"
           :labelCol="labelCol"
           :wrapperCol="wrapperCol"
         >
-          <upload-to-ali
+
+         <uploadFile :value.sync="videoUrl" :fileCount="1" uploadType="video" :multiple="false" />
+          <!-- <upload-to-ali
             v-model="videoUrl"
             :customDomain="customDomain"
             multiple
@@ -59,7 +62,7 @@
             :size="1024000"
             :accessKeyId="accessKeyId"
             :accessKeySecret="accessKeySecret"
-          ></upload-to-ali>
+          ></upload-to-ali> -->
         </a-form-item>
 
         <a-form-item
@@ -91,11 +94,13 @@
   import JTreeSelect from '@/components/jeecg/JTreeSelect'
   import moment from 'moment'
   import UploadToAli from '@femessage/upload-to-ali'
+  import uploadFile from '@/components/uploadFile.vue'
   export default {
     name: "YardModal",
     components: {
       UploadToAli,
-      JTreeSelect
+      JTreeSelect,
+      uploadFile
     },
     data() {
       return {

+ 9 - 5
src/views/modules/yard/modules/yardDetail.vue

@@ -106,7 +106,8 @@ li {
       @ok="handleOk('photo')"
       @cancel="handleCancel('photo')"
     >
-      <upload-to-ali
+     <uploadFile :value.sync="imageUrl" :fileCount="1" uploadType="image" :multiple="false" />
+      <!-- <upload-to-ali
         style="margin:10px"
         v-model="imageUrl"
         :customDomain="customDomain"
@@ -118,7 +119,7 @@ li {
         :size="1024000"
         :accessKeyId="accessKeyId"
         :accessKeySecret="accessKeySecret"
-      ></upload-to-ali>
+      ></upload-to-ali> -->
     </a-modal>
     <!-- 新增作品 -->
     <a-modal
@@ -127,7 +128,8 @@ li {
       @ok="handleOk('video')"
       @cancel="handleCancel('video')"
     >
-      <upload-to-ali
+    <uploadFile :value.sync="videoUrl" :fileCount="1" uploadType="video" :multiple="false" />
+      <!-- <upload-to-ali
         style="margin:10px"
         v-model="videoUrl"
         :customDomain="customDomain"
@@ -139,7 +141,7 @@ li {
         :size="1024000"
         :accessKeyId="accessKeyId"
         :accessKeySecret="accessKeySecret"
-      ></upload-to-ali>
+      ></upload-to-ali> -->
     </a-modal>
   </div>
 </template>
@@ -149,13 +151,15 @@ import {
 
 } from '@/api/actor'
 import UploadToAli from '@femessage/upload-to-ali'
+import uploadFile from '@/components/uploadFile.vue'
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import { closeAllVideoFun } from '@/utils/videoControl'
 export default {
   name: 'VmCard',
   mixins: [JeecgListMixin],
   components: {
-    UploadToAli
+    UploadToAli,
+    uploadFile
   },
   props: {},
   data: function() {

+ 2 - 2
vue.config.js

@@ -65,8 +65,8 @@ module.exports = {
        },*/
       '/jeecg-boot': {
        
-        target: 'http://192.168.1.90:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
-        // target: 'http://192.168.0.111:8088', //请求本地 需要jeecg-boot后台项目  英豪
+        // target: 'http://192.168.1.90:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+        target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
        
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.54:8080', //请求本地 需要jeecg-boot后台项目  孙震