Przeglądaj źródła

修改图片搜索

朱鑫波 4 lat temu
rodzic
commit
712d1dba92
2 zmienionych plików z 14 dodań i 6 usunięć
  1. 12 4
      src/views/modules/material/materialList.vue
  2. 2 2
      vue.config.js

+ 12 - 4
src/views/modules/material/materialList.vue

@@ -169,7 +169,8 @@ a {
           </a-col>
           <a-col :md="8" :sm="8">
             <a-form-item label="时间选择">
-              <a-date-picker v-model="queryParam.createTime" format="YYYY-MM-DD" style="width:100%" />
+              <!-- <a-date-picker v-model="queryParam.createTime" format="YYYY-MM-DD" style="width:100%" /> -->
+              <a-range-picker v-model="queryParam.createTime" format="YYYY-MM-DD" style="width: 100%" />
               <!-- <a-input placeholder="请输入查询时间" v-model="queryParam.createTime"></a-input> -->
             </a-form-item>
           </a-col>
@@ -351,7 +352,8 @@ a {
 
           <a-form v-if="detail" class="detail">
             <a-form-item label="绑定视频" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" v-if="detail.videoUrl">
-              <video
+              <img :src="detail.url" alt="" srcset=""  style="width:150px" @click="visibleVideo=true;videoUrlShow=detail.videoUrl">
+              <!-- <video
                 class="video"
                 :src="detail.videoUrl"
                 controls="controls"
@@ -359,7 +361,7 @@ a {
                 controlsList="nodownload"
               >
                 您的浏览器不支持 video 标签。
-              </video>
+              </video> -->
             </a-form-item>
             
             <a-form-item label="上传人" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" v-if="detail.userName">
@@ -396,7 +398,11 @@ a {
         </div>
       </div>
     </a-modal>
-
+    <a-modal title="查看视频" v-model="visibleVideo" :width="400" :footer="null">
+      <video class="video" :src="videoUrlShow" controls="controls" style="width: 100%">
+        您的浏览器不支持 video 标签。
+      </video>
+    </a-modal>
     <account-check ref="check" @synchro="implement"></account-check>
   </a-card>
 </template>
@@ -430,6 +436,8 @@ export default {
 
   data() {
     return {
+      visibleVideo:false,
+      videoUrlShow:'',
       projectId: '',
       videoId: '',
       inputVisible: false,

+ 2 - 2
vue.config.js

@@ -68,7 +68,7 @@ module.exports = {
     open : true,
     proxy: {
       '/jeecg-boot': {
-          // target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+          target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
           // target: 'http://192.168.1.8:8081', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.1.188:8088', //请求本地 需要jeecg-boot后台项目  英豪
@@ -80,7 +80,7 @@ module.exports = {
         // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
-         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+        // target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目